]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
f281bd03dd8ac63e7bfe87c9eb9f309f7042f44d
[gcc.git] / gcc / ChangeLog
1 2009-04-22 Mark Heffernan <meheff@google.com>
2
3 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
4
5 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
6
7 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
8 where appropriate.
9
10 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
11
12 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
13 the same as a PLUS without a shift. Increase the cost of a
14 CONST_INT in MULT.
15
16 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17
18 * Makefile.in: Update dependencies.
19 * errors.c (warning): Remove unused parameter 'opt'. Returns
20 'void'.
21 * errors.h: Remove bogus comment about compatibility.
22 (warning): Update declaration.
23 * genautomata.c: Update all calls to warning.
24 * gimple.c: Do not include errors.h. Include toplev.h.
25 * tree-ssa-structalias.c: Do not include errors.h.
26 * omega.c: Likewise.
27 * tree-ssa-reassoc.c: Likewise.
28 * config/spu/spu-c.c: Likewise.
29 * config/spu/t-spu-elf: Update dependencies.
30
31 2009-04-22 Richard Guenther <rguenther@suse.de>
32
33 PR tree-optimization/39824
34 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
35 make sure the types are compatible.
36
37 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
38
39 PR c++/14875
40 * c-common.c (c_parse_error): Take a token_flags parameter.
41 Use token_type for the token type instead.
42 Pass token_flags to cpp_type2name.
43 * c-common.h (c_parse_error): Update declaration.
44 * c-parser.c (c_parser_error): Pass 0 as token flags.
45
46 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
47
48 PR rtl-optimization/39580
49 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
50
51 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
52
53 * function.c (expand_function_end): Do not emit a jump to the "naked"
54 return label for fall-through returns.
55 * except.c (sjlj_emit_function_exit): Always place the call to the
56 unregister function at the location installed by expand_function_end.
57
58 2009-04-22 Richard Guenther <rguenther@suse.de>
59
60 PR tree-optimization/39845
61 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
62 (gen_inbound_check): Likewise.
63
64 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
65
66 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
67 padding for PPC.
68 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
69 * config/vxlib.c (__gthread_once): Add race guard for PPC.
70
71 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
72
73 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
74 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
75 shift counts to avoid out-of-bounds array accesses.
76
77 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
78
79 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
80 (Pmode): Move above.
81
82 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
83
84 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
85 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
86 GET_CODE macro. Use IN_RANGE macro where appropriate.
87 * config/alpha/alpha.h: Ditto.
88 * config/alpha/alpha.md: Ditto.
89 * config/alpha/constraints.md: Ditto.
90 * config/alpha/predicates.md: Ditto.
91
92 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
93
94 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
95 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
96 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
97 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
98 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
99 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
100 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
101 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
102 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
103 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
104 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
105 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
106 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
107 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
108 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
109 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
110 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
111 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
112 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
113 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
114 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
115 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
116 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
117 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
118 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
119 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
120 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
121
122 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
123
124 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
125 references from comments.
126 * cfgbuild.c: (count_basic_blocks): Delete.
127 (find_basic_blocks_1): Delete.
128 (find_basic_blocks): Delete.
129 * except.c (finish_eh_generation): Make static. Move comment from
130 except.h here. Remove find_basic_blocks references from comments.
131 * except.h (finish_eh_generation): Delete.
132 * basic-block.h (find_basic_blocks): Delete.
133 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
134
135 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
136
137 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
138 (sdbout_parms): Likewise.
139
140 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
141
142 * config/sh/sh.c (prepare_cbranch_operands): Use
143 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
144 (expand_cbranchdi4): Likewise.
145 (from_compare): Add cast to enum type.
146 (expand_cbranchsi4): Use add_reg_note.
147 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
148 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
149 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
150 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
151 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
152 instead of CODE_FOR_nothing.
153 (cbranchdi4): Likewise. Fix the order of arguments for
154 gen_rtx_fmt_ee.
155 (push_fpscr): Use add_reg_note.
156 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
157 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
158
159 2009-04-21 Joseph Myers <joseph@codesourcery.com>
160
161 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
162 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
163 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
164 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
165 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
166 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
167 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
168 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
169 config/alpha/x-vms, config/arc/t-arc,
170 config/arm/README-interworking, config/arm/arm-c.c,
171 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
172 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
173 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
174 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
175 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
176 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
177 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
178 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
179 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
180 config/cris/t-elfmulti, config/crx/t-crx,
181 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
182 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
183 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
184 config/h8300/t-h8300, config/i386/athlon.md,
185 config/i386/darwin-libgcc.10.4.ver,
186 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
187 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
188 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
189 config/i386/t-linux64, config/i386/t-nwld,
190 config/i386/t-rtems-i386, config/i386/t-sol2-10,
191 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
192 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
193 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
194 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
195 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
196 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
197 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
198 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
199 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
200 config/m68k/t-uclinux, config/mcore/t-mcore,
201 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
202 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
203 config/mips/crtn.asm, config/mips/irix-crti.asm,
204 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
205 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
206 config/mips/mips-fixed.md, config/mips/sb1.md,
207 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
208 config/mips/t-iris6, config/mips/t-isa3264,
209 config/mips/t-libgcc-mips16, config/mips/t-linux64,
210 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
211 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
212 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
213 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
214 config/mn10300/t-linux, config/mn10300/t-mn10300,
215 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
216 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
217 config/picochip/libgccExtras/clzsi2.asm,
218 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
219 config/rs6000/darwin-libgcc.10.4.ver,
220 config/rs6000/darwin-libgcc.10.5.ver,
221 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
222 config/rs6000/t-aix43, config/rs6000/t-aix52,
223 config/rs6000/t-darwin, config/rs6000/t-fprules,
224 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
225 config/rs6000/t-lynx, config/rs6000/t-netbsd,
226 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
227 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
228 config/rs6000/t-rtems, config/rs6000/t-spe,
229 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
230 config/score/t-score-elf, config/sh/divcost-analysis,
231 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
232 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
233 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
234 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
235 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
236 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
237 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
238 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
239 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
240 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
241 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
242 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
243 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
244 limitx.h, version.c, xcoff.h: Add copyright and license notices.
245 * config/h8300/genmova.sh: Include copyright and license notices
246 in generated output.
247 * config/h8300/mova.md: Regenerate.
248 * doc/install.texi2html: Include word "Copyright" in copyright
249 notice and use name "Free Software Foundation, Inc.".
250 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
251 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
252 ChangeLog-2007, ChangeLog-2008: Correct dates.
253
254 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
255
256 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
257 NE_EXPR operations as well.
258 * c-parser.c (c_parser_condition): Do not set location information on
259 the condition.
260 (c_parser_conditional_expression): Likewise.
261 (c_parser_binary_expression): Set location information on operators.
262 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
263 TRUTH_NOT_EXPR has been folded.
264 * fold-const.c (fold_truth_not_expr): Copy location information from
265 the incoming expression to the outgoing one.
266 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
267 recursive calls on the LHS of the operator but pass that of the
268 operator to recursive calls on the RHS of the operator. Set it
269 on the COND_EXPR.
270 (shortcut_cond_expr): Set the locus of the operator on the second
271 COND_EXPR and that of the expression on the first in degenerate cases.
272 Pass the locus of the expression to calls to shortcut_cond_r.
273 Set the locus of the 'then' block on the associated jump, if any.
274 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
275 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
276 expression to call to gimplify_boolean_expr.
277
278 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
279
280 * config.gcc: Add additional configuration for
281 i686-w64-mingw* and x86_64-w64-mingw* triplet.
282 * config/i386/mingw-w64.h: New mingw-w64 specific header.
283 (CPP_SPEC): Redefine for allowing -municode option.
284 (STARTFILE_SPEC): Likewise.
285 * config/i386/t-mingw-w64: New.
286 * config/i386/mingw-w64.opt: New.
287 (municode): Add new target option.
288 * doc/invoke.texi (municode): Add documentation for new option.
289
290 2009-04-21 Ian Lance Taylor <iant@google.com>
291
292 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
293 Correct test for number of arguments.
294 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
295
296 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
297
298 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
299 argument of emit_library_call.
300
301 2009-04-21 Richard Guenther <rguenther@suse.de>
302
303 PR middle-end/39829
304 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
305 inside VIEW_CONVERT_EXPRs.
306
307 2009-04-21 Martin Jambor <mjambor@suse.cz>
308
309 * tree-switch-conversion.c (build_constructors): Split a long line.
310 (constructor_contains_same_values_p): New function.
311 (build_one_array): Create assigns of constants if possible, do not
312 call mark_sym_for_renaming, call update_stmt.
313 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
314 make_rename_temp. Do not call mark_symbols_for_renaming, call
315 update_stmt.
316 (gen_def_assigns): Do not call mark_symbols_for_renaming or
317 find_new_referenced_vars, call update_stmt.
318 (gen_inbound_check): Use create_tmp_var and create ssa names manually
319 instead of calling make_rename_temp. Do not call
320 find_new_referenced_vars or mark_symbols_for_renaming, call
321 update_stmt.
322
323 2009-04-21 Richard Guenther <rguenther@suse.de>
324
325 PR tree-optimization/39827
326 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
327 (tree_ssa_phiprop): Pass the correct array size.
328
329 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
330
331 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
332
333 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
334
335 PR 16202
336 * c-typeck.c (lvalue_p): Move declaration ...
337 * c-common.h (lvalue_p): ... to here.
338 * c-common.c (candidate_equal_p): New.
339 (add_tlist): Use it.
340 (merge_tlist): Use it.
341 (warn_for_collisions_1): Likewise.
342 (warning_candidate_p): Accept more candidates.
343 (verify_tree): A warning candidate can be an expression. Use
344 candidate_equal_p.
345
346 2009-04-21 Ben Elliston <bje@au.ibm.com>
347
348 PR target/5267
349 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
350 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
351 options. Remove -mcall-solaris documentation.
352
353 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
354
355 PR c++/13358
356 * doc/invoke.texi (-Wlong-long): Update description.
357 * c-lex (interpret_integer): Only warn if there was no previous
358 overflow and -Wlong-long is enabled.
359 * c-decl.c (declspecs_add_type): Drop redundant flags.
360 * c.opt (Wlong-long): Init to -1.
361 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
362 and front-end warn_long_long. Wlong-long only depends on other
363 flags if it is uninitialized.
364 * c-parser.c (disable_extension_diagnostics): warn_long_long is
365 the same for CPP and FE.
366 (restore_extension_diagnostics): Likewise.
367
368 2009-04-20 Ian Lance Taylor <iant@google.com>
369
370 Fix enum conversions which are invalid in C++:
371 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
372 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
373 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
374 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
375 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
376 (dbxout_parms): Likewise.
377 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
378 (df_clear_flags): Likewise.
379 * df-problems.c (df_rd_bb_local_compute_process_def): Change
380 top_flag parameter to int.
381 (df_chain_create_bb_process_use): Likewise.
382 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
383 Remove cast.
384 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
385 (df_ref_create_structure, df_def_record_1): Likewise.
386 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
387 (df_notes_rescan): Change 0 to VOIDmode in function call.
388 (df_get_call_refs, df_insn_refs_collect): Likewise.
389 (df_bb_regs_collect): Likewise.
390 (df_entry_block_defs_collect): Likewise.
391 (df_exit_block_uses_collect): Likewise.
392 * df.h: Update declarations.
393 * double-int.c (double_int_divmod): Add cast to enum type.
394 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
395 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
396 (based_loc_descr): Likewise.
397 (loc_descriptor_from_tree_1): Change first_op and second_op to
398 enum dwarf_location_atom. Add cast to enum type.
399 * expmed.c (init_expmed): Change 0 to SET in function call.
400 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
401 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
402 (do_store_flag): Likewise.
403 * fixed-value.h (struct fixed_value): Change mode to enum
404 machine_mode.
405 * function.c (assign_parms): Change 0 to VOIDmode in function call.
406 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
407 function call.
408 (insert_insn_decl, insert_decl, insert_state): Likewise.
409 (automata_list_finish): Likewise.
410 * genrecog.c (process_define_predicate): Add cast to enum type.
411 * gensupport.c (init_predicate_table): Add cast to enum type.
412 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
413 function call.
414 (gimple_build_call_1, gimple_build_label): Likewise.
415 (gimple_build_goto, gimple_build_asm_1): Likewise.
416 (gimple_build_switch_1, gimple_build_cdt): Likewise.
417 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
418 (enum fallback): Rename from enum fallback_t.
419 (fallback_t): Typedef as int.
420 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
421 GSI_SAME_STMT in function call.
422 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
423 enum type.
424 (setup_reg_class_relations): Likewise.
425 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
426 (setup_prohibited_class_mode_regs): Add cast to enum type.
427 (setup_prohibited_mode_move_regs): Likewise.
428 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
429 (record_address_regs): Change i to enum reg_class.
430 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
431 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
432 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
433 (GET_MODE_2XWIDER_MODE): Likewise.
434 (GET_CLASS_NARROWEST_MODE): Likewise.
435 * omp-low.c (expand_omp_for): Add cast to enum type.
436 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
437 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
438 * postreload.c (reload_cse_simplify_operands): Change rclass local
439 to enum reg_class.
440 * predict.c (combine_predictions_for_insn): Change best_predictor
441 and predictor to enum br_predictor.
442 (combine_predictions_for_bb): Likewise.
443 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
444 use SET_PREDICT_EXPR_OUTCOME.
445 * real.c (real_arithmetic): Change icode to code in function call.
446 * reginfo.c (init_move_cost): Add casts to enum type.
447 (init_reg_sets_1, init_fake_stack_mems): Likewise.
448 * regmove.c (regclass_compatible_p): Change class0 and class1 to
449 enum reg_class.
450 * reload.c (find_valid_class): Add casts to enum type.
451 (push_reload): Change 0 to NO_REGS in function call.
452 (find_reloads): Change this_alternative to array of enum
453 reg_class. Remove some now-unnecessary casts.
454 (make_memloc): Change 0 to VOIDmode in function call.
455 * reload1.c (reload): Change 0 to VOIDmode in function call.
456 (eliminate_regs_1, elimination_effects): Likewise.
457 (eliminate_regs_in_insn): Likewise.
458 (emit_input_reload_insns): Add cast to enum type.
459 (delete_output_reload): Change 0 to VOIDmode in function call.
460 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
461 to enum type in function call.
462 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
463 (SET_PREDICT_EXPR_OUTCOME): Define.
464 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
465 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
466 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
467 (dump_function): Likewise.
468 * tree-dump.h: Update declarations.
469 * tree-pass.h: Update declarations.
470 * varasm.c (assemble_integer): Change mclass to enum mode_class.
471 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
472 enum type.
473 (arm_rtx_costs_1): Correct parenthesization.
474 (arm_rtx_costs): Add casts to enum type.
475 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
476 (vfp_emit_fstmd): Use add_rg_note.
477 (emit_multi_reg_push, emit_sfm): Likewise.
478 (thumb_set_frame_pointer): Likewise.
479 (arm_expand_prologue): Likewise.
480 (arm_regno_class): Change return type to enum reg_class.
481 (thumb1_expand_prologue): Use add_reg_note.
482 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
483 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
484 in function call.
485 * config/arm/gentune.sh: Add cast to enum type.
486 * config/arm/arm-tune.md: Rebuild.
487 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
488 (ix86_split_fp_branch, predict_jump): Likewise.
489 (ix86_expand_multi_arg_builtin): Change sub_code from enum
490 insn_code to enum rtx_code.
491 (ix86_builtin_vectorized_function): Add cast to enum type.
492 * config/i386/i386.md (truncdfsf2): Change slot to enum
493 ix86_stack_slot.
494 (truncxf<mode>2, isinf<mode>2): Likewise.
495 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
496 enum type.
497 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
498 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
499 (insert_bundle_state): Change 1 to INSERT in function call.
500 (ia64_add_bundle_selector_before): Likewise.
501 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
502 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
503 (restore_stack_nonlocal): Likewise.
504 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
505 function call.
506 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
507 function call.
508 (mips_rtx_costs): Likewise.
509 (mips_override_options): Add casts to enum type.
510 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
511 in function call.
512 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
513 (store_reg, set_reg_plus_d): Likewise.
514 (hppa_expand_prologue, hppa_profile_hook): Likewise.
515 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
516 cast to enum type.
517 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
518 function call.
519 (emit_unlikely_jump): Use add_reg_note.
520 (rs6000_emit_allocate_stack): Likewise.
521 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
522 (output_toc): Change 1 to INSERT in function call.
523 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
524 (rs6000_initialize_trampoline): Likewise.
525 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
526 function call.
527 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
528 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
529 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
530 (save_gprs): Use add_reg_note.
531 (s390_emit_prologue): Likewise.
532 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
533 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
534 (sparc_fold_builtin): Add cast to enum type.
535 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
536 enum insn_code.
537 (spu_expand_prologue): Use add_reg_note.
538 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
539
540 2009-04-20 Ian Lance Taylor <iant@google.com>
541
542 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
543 (c_parser_postfix_expression_after_primary): Get VEC for list of
544 arguments. Get original types of arguments. Call
545 build_function_call_vec.
546 (cached_expr_list_1, cached_expr_list_2): New static variables.
547 (c_parser_expr_list): Change return type to VEC *. Add
548 p_orig_types parameter. Change all callers.
549 (c_parser_release_expr): New static function.
550 (c_parser_vec_to_tree_list): New static function.
551 * c-typeck.c (build_function_call): Rewrite to build a VEC and
552 call build_function_call_vec.
553 (build_function_call_vec): New function, based on old
554 build_function_call.
555 (convert_arguments): Remove nargs and argarray parameters. Change
556 values to a VEC. Add origtypes parameter.
557 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
558 (convert_for_assignment): Add origtype parameter. Change all
559 callers. If warn_cxx_compat, check for conversion to an enum
560 type when calling a function.
561 (store_init_value): Add origtype parameter. Change all callers.
562 (digest_init): Likewise.
563 (struct init_node): Add origtype field.
564 (add_pending_init): Add origtype parameter. Change all callers.
565 (output_init_element): Likewise.
566 (output_pending_init_elements): Pass origtype from init_node to
567 output_init_element.
568 (process_init_element): Pass origtype from c_expr to
569 output_init_element.
570 (c_finish_return): Add origtype parameter. Change all callers.
571 * c-common.c (sync_resolve_size): Change params to VEC *. Change
572 caller.
573 (sync_resolve_params): Likewise.
574 (sync_resolve_return): Change params to first_param. Change caller.
575 (resolve_overloaded_builtins): Change params to VEC *. Change
576 callers. Save first parameter around call to build_function_call_vec.
577 * c-decl.c (finish_decl): Add origtype parameter. Change all
578 callers. Call build_function_call_vec rather than
579 build_function_call for cleanup.
580 * c-tree.h: Update declarations.
581 * c-common.h: Update declarations.
582 * stub-objc.c (objc_rewrite_function_call): Change parameter from
583 params to first_param.
584 * target.h (struct gcc_target): Change resolve_overloaded_builtin
585 params parameter from tree to void *.
586 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
587 Change arglist parameter to have type void *, and to be a pointer
588 to a VEC.
589 * config/rs6000/rs6000-protos.h
590 (altivec_resolve_overloaded_builtin): Update declaration.
591 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
592 fnargs parameter to have type void *, and to be a pointer to a
593 VEC. Call build_function_call_vec instead of
594 build_function_call.
595 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
596
597 2009-04-20 Joey Ye <joey.ye@intel.com>
598 Xuepeng Guo <xuepeng.guo@intel.com>
599 H.J. Lu <hongjiu.lu@intel.com>
600
601 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
602
603 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
604 (IX86_LEA_PRIORITY): Likewise.
605 (distance_non_agu_define): New function.
606 (distance_agu_use): Likewise.
607 (ix86_lea_for_add_ok): Likewise.
608 (ix86_dep_by_shift_count): Likewise.
609
610 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
611 should split for LEA.
612
613 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
614 function.
615 (ix86_dep_by_shift_count): Likewise.
616
617 2009-04-20 Richard Guenther <rguenther@suse.de>
618
619 * expr.c (handled_component_p): Move ...
620 * tree.h (handled_component_p): ... here.
621 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
622 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
623 and REALPART_EXPR to be in one group.
624
625 2009-04-20 Richard Guenther <rguenther@suse.de>
626
627 * basic-block.h (get_all_dominated_blocks): Declare.
628 * dominance.c (get_all_dominated_blocks): New function.
629 * tree-cfg.c (get_all_dominated_blocks): Remove.
630 (remove_edge_and_dominated_blocks): Adjust.
631 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
632 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
633 instead of recursing.
634
635 2009-04-20 Doug Kwan <dougkwan@google.com>
636
637 * cgraph.h (cgraph_node_ptr): New type for vector functions.
638 (struct cgraph_node_set_def): New type.
639 (cgraph_node_set) New type. Also declare vector functions.
640 (struct cgraph_node_set_element_def): New type.
641 (cgraph_node_set_element): Ditto.
642 (cgraph_node_set_iterator): New iterator type.
643 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
644 cgraph_node_set_remove, dump_cgraph_node_set,
645 debug_cgraph_node_set): New prototypes.
646 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
647 cgraph_node_set_size): New inlines.
648 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
649 including cgraph.h.
650 (struct ipa_opt_pass): Add struct cgraph_node_set_def
651 argument to function 'write_summary'.
652 * ipa.c: Include ggc.h.
653 (hash_cgraph_node_set_element,
654 eq_cgraph_node_set_element, cgraph_node_set_new,
655 cgraph_node_set_add, cgraph_node_set_remove,
656 cgraph_node_set_find, dump_cgraph_node_set,
657 debug_cgraph_node_set): New functions.
658 * Makefile.in (ipa.o): Add dependency on GGC_H.
659
660 2009-04-20 Ira Rosen <irar@il.ibm.com>
661
662 PR tree-optimization/39675
663 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
664 check of the return code of vect_schedule_slp. Check that
665 stmt_vec_info still exists for the statement, before checking its
666 vectorization type.
667
668 2009-04-20 Michael Matz <matz@suse.de>
669
670 * Makefile.in (generated_files): Take out $(simple_generated_c).
671
672 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
673
674 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
675 (UINTPTR_TYPE): Likewise.
676
677 2009-04-19 Joseph Myers <joseph@codesourcery.com>
678
679 PR c/37481
680 * c-typeck.c (digest_init): Check for initializing an array with a
681 string literal.
682
683 2009-04-19 Joseph Myers <joseph@codesourcery.com>
684
685 PR c/19771
686 * c-semantics.c (pop_stmt_list): Propagate
687 STATEMENT_LIST_HAS_LABEL to parent statement list.
688
689 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
690
691 * config/mips/mips.h (mips_tune_attr): New macro.
692 * config/mips/mips.md (cpu): Use it.
693
694 2009-04-19 Joseph Myers <joseph@codesourcery.com>
695
696 PR c/38243
697 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
698 declaring a tag.
699
700 2009-04-19 Diego Novillo <dnovillo@google.com>
701
702 * toplev.c (compile_file): Move call to coverage_finish ...
703 * cgraphunit.c (ipa_passes): ... here.
704 Call cgraph_process_new_functions.
705 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
706 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
707
708 2009-04-19 Jan Hubicka <jh@suse.cz>
709
710 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
711 cfun.
712 (dump_cgraph_node): Dump can throw external flag.
713 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
714
715 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
716
717 PR c/32061
718 PR c++/36954
719 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
720 * common.opt (Wlogical-op): Move from here...
721 * c.opt (Wlogical-op): ... to here.
722 * c-typeck.c (parser_build_binary_op): Update call to
723 warn_logical_operator.
724 * c-opts.c (c_common_post_options): Enable warn_logical_op with
725 extra_warnings.
726 * c-common.c (warn_logical_op): Update.
727 * c-common.h (warn_logical_op): Update declaration.
728
729 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
730
731 * tree.c (protected_set_expr_location): Fix formatting.
732
733 2009-04-18 Joseph Myers <joseph@codesourcery.com>
734
735 PR c/27676
736 * c-typeck.c (readonly_warning): new.
737 (build_unary_op, build_modify_expr): Use readonly_warning for
738 storing into something readonly but not const-qualified.
739
740 2009-04-18 Joseph Myers <joseph@codesourcery.com>
741
742 PR c/22367
743 * c-typeck.c (build_unary_op): Check for taking address of
744 expression of type void.
745
746 2009-04-18 Joseph Myers <joseph@codesourcery.com>
747
748 PR c/35210
749 * c-typeck.c (build_function_call): Check for calling a function
750 with qualified void return types. Call require_complete_type when
751 generating a trap.
752
753 2009-04-18 Jan Hubicka <jh@suse.cz>
754
755 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
756 Set nothrow flag.
757 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
758 can_throw_external flag.
759 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
760 * ipa-pure-const.c (ignore_edge): New function.
761 (propagate): Compute order for NOTHROW computation; set NOTHROWs
762 only over can_throw_external edges.
763 (local_pure_const): Add nothrow flag.
764 * ipa-utils.c (searchc): Add ignore_edge callback.
765 (ipa_utils_reduced_inorder): Add ignore_edge callback.
766 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
767 (set_nothrow_function_flags): Update cgraph.
768 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
769
770 2009-04-18 Richard Guenther <rguenther@suse.de>
771
772 PR middle-end/39804
773 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
774 (fold_stmt): ... this and ...
775 (fold_stmt_inplace): ... this.
776 (fold_stmt_1): Fold references in calls and asms.
777 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
778
779 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
780
781 * tree-vrp.c (ssa_name_nonzero_p): Remove.
782 * tree.h: Remove the prototype for ssa_name_nonzero_p.
783
784 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
785
786 * tree.c (function_args_count): Remove.
787 * tree.h: Remove the prototype for function_args_count.
788
789 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
790
791 * tree-iterator.c (expr_only): Remove.
792 * tree.h: Remove the prototype for expr_only.
793
794 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
795
796 * reginfo.c (cannot_change_mode_set_regs): Remove.
797 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
798
799 2009-04-08 Anatoly Sokolov <aesok@post.ru>
800
801 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
802 whether operands 0 and 1 overlaps.
803
804 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
805
806 PR middle-end/36902
807 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
808 pointer. Use warning_at instead of warning.
809 (search_for_addr_array): Likewise.
810 (check_array_bounds): Likewise.
811 (check_all_array_refs): Check that the incoming edge is not in the
812 list of edges to be removed.
813 (check_all_array_refs): Avoid the temporal pointer.
814 (vrp_visit_cond_stmt): Fix typo.
815 (simplify_switch_using_ranges): Handle the case where the switch
816 index is an integer constant.
817
818 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
819
820 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
821
822 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
823
824 * doc/extend.texi, doc/invoke.texi: Fix typos.
825
826 2009-04-17 Cary Coutant <ccoutant@google.com>
827
828 * tree-flow-inline.h (get_lineno): Fix inverted test.
829
830 2009-04-17 Diego Novillo <dnovillo@google.com>
831
832 * tree-ssa-pre.c (create_expression_by_pieces): Remove
833 assertion for AVAIL_OUT.
834
835 2009-04-17 Mike Frysinger <vapier@gentoo.org>
836
837 PR target/38627
838 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
839 * config/sh/linux-atomic.asm: Likewise.
840
841 2009-04-17 Diego Novillo <dnovillo@google.com>
842
843 * except.c (debug_eh_tree): New.
844 (struct eh_region, struct eh_status): Move ...
845 * except.h: ... here.
846 (add_type_for_runtime): Declare extern.
847 (lookup_type_for_runtime): Likewise.
848 (debug_eh_tree): Declare.
849 * Makefile.in (GTFILES): List except.h before except.c
850
851 2009-04-17 Diego Novillo <dnovillo@google.com>
852
853 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
854 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
855 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
856 (find_vars_r): ... here.
857 * tree-flow.h (find_referenced_vars_in): Declare.
858 * tree-ssa-pre.c (create_expression_by_pieces): Assert
859 that AVAIL_OUT exists for BLOCK.
860 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
861 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
862 (tree-parloops.o): Likewise.
863
864 2009-04-17 Simon Baldwin <simonb@google.com>
865
866 * toplev.c (default_tree_printer): Add handling for %E format.
867
868 2009-04-17 Diego Novillo <dnovillo@google.com>
869
870 * tree-pretty-print.c (dump_generic_node): Add break after
871 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
872 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
873 FUNCTION_TYPE together. Call print_struct_decl when printing
874 structures and TDF_SLIM is not given.
875 (print_struct_decl): Fix logic for detecting recursion.
876
877 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
878
879 PR 31567
880 * gcc.c (create_at_file): New.
881 (compile_input_file_p): New.
882 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
883 * main.c (main): Update call to toplev_main.
884 * toplev.c (toplev_main): Change signature. Call expandargv.
885 * toplev.h (toplev_main): Change signature.
886
887 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
888
889 * dwarf2out.c (field_byte_offset): Use the type size as the field size
890 if the latter is not constant.
891
892 2009-04-17 David Edelsohn <edelsohn@gnu.org>
893
894 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
895
896 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
897
898 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
899 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
900
901 2009-04-17 Richard Guenther <rguenther@suse.de>
902
903 * tree-ssa-structalias.c (get_constraint_for_component_ref):
904 Handle component references view-converting an invariant address.
905
906 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
907
908 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
909 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
910 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
911 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
912 Use @deftypevr rather than @deftypevar.
913
914 2009-04-17 Richard Guenther <rguenther@suse.de>
915
916 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
917 (get_prop_source_stmt): Likewise.
918 (can_propagate_from): Likewise.
919
920 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
921
922 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
923 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
924 (--with-multilib-list): Add default value.
925 * configure: Regenerate.
926 * Makefile.in (TM_ENDIAN_CONFIG): Define.
927 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
928 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
929 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
930 Don't add default cpu to multilib list unnecessarily, but do enable
931 the relevant compiler option..
932 Add support for --with-multilib-list=<blank> and
933 --with-multilib-list=!<somelib> to supress unwanted multilibs.
934 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
935 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
936 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
937 TM_MULTILIB_CONFIG.
938 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
939 (MULTILIB_OSDIRNAMES): New variable.
940 * config/sh/t-1e: Delete file.
941 * config/sh/t-mlib-sh1: Delete file.
942 * config/sh/t-mlib-sh2: Delete file.
943 * config/sh/t-mlib-sh2a: Delete file.
944 * config/sh/t-mlib-sh2a-nofpu: Delete file.
945 * config/sh/t-mlib-sh2a-single: Delete file.
946 * config/sh/t-mlib-sh2a-single-only: Delete file.
947 * config/sh/t-mlib-sh2e: Delete file.
948 * config/sh/t-mlib-sh3e: Delete file.
949 * config/sh/t-mlib-sh4: Delete file.
950 * config/sh/t-mlib-sh4-nofpu: Delete file.
951 * config/sh/t-mlib-sh4-single: Delete file.
952 * config/sh/t-mlib-sh4-single-only: Delete file.
953 * config/sh/t-mlib-sh4a: Delete file.
954 * config/sh/t-mlib-sh4a-nofpu: Delete file.
955 * config/sh/t-mlib-sh4a-single: Delete file.
956 * config/sh/t-mlib-sh4a-single-only: Delete file.
957 * config/sh/t-mlib-sh4al: Delete file.
958 * config/sh/t-mlib-sh5-32media: Delete file.
959 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
960 * config/sh/t-mlib-sh5-64media: Delete file.
961 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
962 * config/sh/t-mlib-sh5-compact: Delete file.
963 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
964 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
965 * doc/install.texi (Options specification): Add
966 --with-multilib-list and --with-endian.
967
968 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
969
970 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
971 REVISION_c.
972 (OBJS-common): Add plugin-version.o.
973 (plugin-version.o): New.
974 * gcc-plugin.h (plugin_gcc_version): New.
975 (plugin_default_version_check): New.
976 (plugin_init_func, plugin_init): Add version argument.
977 * plugin-version.c: New.
978 * plugin.c (str_plugin_gcc_version_name): New.
979 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
980 pass it to the init function.
981 (plugin_default_version_check): New.
982
983 2009-04-17 Richard Guenther <rguenther@suse.de>
984
985 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
986 for decl-vs-decl disambiguation.
987
988 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
989
990 * config/s390/s390.h (s390_tune_attr): New macro definition.
991 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
992
993 2009-04-17 Richard Guenther <rguenther@suse.de>
994
995 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
996 (fold_stmt_r): Likewise.
997 (maybe_fold_reference): New function.
998 (fold_gimple_assign): Handle cases fold_stmt_r did.
999 (fold_stmt): Do not use fold_stmt_r.
1000 (fold_stmt_inplace): Likewise.
1001
1002 2009-04-17 Richard Guenther <rguenther@suse.de>
1003
1004 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
1005 (record_equivalences_from_stmt): Remove useless checks and
1006 simplifications.
1007 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
1008 the type is already suitable.
1009
1010 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
1011
1012 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
1013
1014 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
1015
1016 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
1017 (CMPtype): Define as __gcc_CMPtype.
1018
1019 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
1020
1021 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
1022 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
1023
1024 2009-04-17 Richard Guenther <rguenther@suse.de>
1025
1026 PR tree-optimization/39746
1027 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
1028 special-casing for builtins and static variable use/def.
1029 (call_may_clobber_ref_p_1): Likewise.
1030
1031 2009-04-16 Ian Lance Taylor <iant@google.com>
1032
1033 * df.h: Include "timevar.h".
1034 (struct df_problem): Change tv_id field to timevar_id_t.
1035 * tree-pass.h: Include "timevar.h".
1036 (struct opt_pass): Change tv_id field to timevar_id_t.
1037 * timevar.h (timevar_id_t): Define TV_NONE.
1038 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
1039 TV_NONE rather than tv_id != 0.
1040 (execute_one_pass): Likewise.
1041 * Makefile.in (DF_H): Add $(TIMEVAR_H).
1042 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
1043 dependencies to $(TREE_PASS_H).
1044 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
1045 to TV_NONE.
1046 (pass_branch_target_load_optimize2): Likewise.
1047 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
1048 (pass_outof_cfg_layout_mode): Likewise.
1049 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
1050 (pass_rebuild_cgraph_edges): Likewise.
1051 (pass_remove_cgraph_callee_edges): Likewise.
1052 * df-core.c (pass_df_initialize_opt): Likewise.
1053 (pass_df_initialize_no_opt): Likewise.
1054 (pass_df_finish): Likewise.
1055 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1056 * except.c (pass_set_nothrow_function_flags): Likewise.
1057 (pass_convert_to_eh_region_ranges): Likewise.
1058 * final.c (pass_compute_alignments): Likewise.
1059 * function.c (pass_instantiate_virtual_regs): Likewise.
1060 (pass_init_function): Likewise.
1061 (pass_leaf_regs): Likewise.
1062 (pass_match_asm_constraints): Likewise.
1063 * gimple-low.c (pass_lower_cf): Likewise.
1064 (pass_mark_used_blocks): Likewise.
1065 * init-regs.c (pass_initialize_regs): Likewise.
1066 * integrate.c (pass_initial_value_sets): Likewise.
1067 * ira.c (pass_ira): Likewise.
1068 * jump.c (pass_cleanup_barriers): Likewise.
1069 * omp-low.c (pass_expand_omp): Likewise.
1070 (pass_lower_omp): Likewise.
1071 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
1072 * recog.c (pass_split_all_insns): Likewise.
1073 (pass_split_after_reload): Likewise.
1074 (pass_split_before_regstack): Likewise.
1075 (pass_split_before_sched2): Likewise.
1076 (pass_split_for_shorten_branches): Likewise.
1077 * reginfo.c (pass_reginfo_init): Likewise.
1078 (pass_subregs_of_mode_init): Likewise.
1079 (pass_subregs_of_mode_finish): Likewise.
1080 * passes.c (pass_postreload): Likewise.
1081 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1082 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
1083 (pass_warn_function_return): Likewise.
1084 (pass_warn_function_noreturn): Likewise.
1085 * tree-complex.c (pass_lower_complex): Likewise.
1086 (pass_lower_complex_O0): Likewise.
1087 * tree-if-conv.c (pass_if_conversion): Likewise.
1088 * tree-into-ssa.c (pass_build_ssa): Likewise.
1089 * tree-mudflap.c (pass_mudflap_1): Likewise.
1090 (pass_mudflap_2): Likewise.
1091 * tree-nomudflap.c (pass_mudflap_1): Likewise.
1092 (pass_mudflap_2): Likewise.
1093 * tree-nrv.c (pass_return_slot): Likewise.
1094 * tree-object-size.c (pass_object_sizes): Likewise.
1095 * tree-optimize.c (pass_all_optimizations): Likewise.
1096 (pass_early_local_passes): Likewise.
1097 (pass_all_early_optimizations): Likewise.
1098 (pass_cleanup_cfg): Likewise.
1099 (pass_cleanup_cfg_post_optimizing): Likewise.
1100 (pass_free_datastructures): Likewise.
1101 (pass_free_cfg_annotations): Likewise.
1102 (pass_fixup_cfg): Likewise.
1103 (pass_init_datastructures): Likewise.
1104 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
1105 (pass_late_warn_uninitialized): Likewise.
1106 (pass_update_address_taken): Likewise.
1107 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
1108 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
1109 (pass_cse_sincos): Likewise.
1110 (pass_convert_to_rsqrt): Likewise.
1111 * tree-ssa-structalias.c (pass_build_alias): Likewise.
1112 * tree-stdarg.c (pass_stdarg): Likewise.
1113 * tree-tailcall.c (pass_tail_recursion): Likewise.
1114 (pass_tail_calls): Likewise.
1115 * tree-vect-generic.c (pass_lower_vector): Likewise.
1116 (pass_lower_vector_ssa): Likewise.
1117 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
1118
1119 2009-04-16 Joseph Myers <joseph@codesourcery.com>
1120
1121 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
1122 XLR entry.
1123 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
1124 Handle -march=xlr.
1125 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
1126 logical and signext.
1127
1128 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
1129
1130 PR target/39767
1131 * config/sh/predicates.md (arith_operand): Check if the operand
1132 of TRUNCATE is a REG.
1133
1134 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1135
1136 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1137 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1138
1139 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1140
1141 * tree-iterator.c (tsi_split_statement_list_after,
1142 tsi_split_statement_list_before): Remove.
1143 * tree-iterator.h: Remove the prototypes for
1144 tsi_split_statement_list_after and tsi_split_statement_list_before.
1145
1146 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1147
1148 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1149 * tree-ssa-propagate.h: Remove the prototype for
1150 stmt_makes_single_load.
1151
1152 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1153
1154 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1155 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1156
1157 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1158
1159 * tree-iterator.c (EXPR_LAST_BODY): Remove.
1160
1161 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1162
1163 * except.c (eh_region_outer_p): Remove.
1164 * except.h: Remove the prototype for eh_region_outer_p.
1165
1166 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1167
1168 * function.c (current_function_assembler_name): Remove.
1169 * function.h: Remove the prototype for
1170 current_function_assembler_name.
1171
1172 2009-04-16 Ian Lance Taylor <iant@google.com>
1173
1174 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1175 (add_reg_note): Call alloc_reg_note.
1176 * rtl.h (alloc_reg_note): Declare.
1177 * combine.c (try_combine): Use alloc_reg_note.
1178 (recog_for_combine, move_deaths): Likewise.
1179 (distribute_notes): Use alloc_reg_note and add_reg_note.
1180 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1181 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1182 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1183
1184 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
1185
1186 PR rtl-optimization/39762
1187 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1188 ira_may_move_out_cost): Add comments about way of their usage.
1189 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1190
1191 * ira-conflicts.c (process_regs_for_copy): Use function
1192 ira_get_register_move_cost instead of global
1193 ira_register_move_cost.
1194
1195 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1196 color_pass, move_spill_restore, update_curr_costs): Ditto.
1197
1198 * ira-lives.c (process_single_reg_class_operands): Ditto.
1199
1200 * ira-emit.c (emit_move_list): Ditto.
1201
1202 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1203 (record_reg_classes): Ditto. Use functions
1204 ira_get_register_move_cost and ira_get_may_move_cost instead of
1205 global vars ira_register_move_cost, ira_may_move_out_cost and
1206 ira_may_move_in_cost.
1207 (record_address_regs): Don't call ira_init_register_move_cost.
1208 Use function ira_get_may_move_cost instead of global
1209 ira_may_move_in_cost.
1210 (process_bb_node_for_hard_reg_moves): Use function
1211 ira_get_register_move_cost instead of global ira_register_move_cost.
1212 (ira_costs): Don't call ira_init_register_move_cost.
1213
1214 2009-04-16 Richard Guenther <rguenther@suse.de>
1215
1216 * tree-cfg.c (verify_gimple_assign_binary):
1217 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1218 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1219 (create_general_new_stmt): Note that this function is broken.
1220
1221 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1222
1223 * common.opt (fhelp): Add Var(help_flag).
1224 * gcc-plugin.h (plugin_info): Add help.
1225 * plugin.c (plugin_name_args): Add help.
1226 (register_plugin_info): Set plugin->help.
1227 (print_help_one_plugin): New.
1228 (print_plugins_help): New.
1229 * plugin.h (print_plugins_help): New.
1230 * toplev.c (toplev_main): Call print_plugins_help if needed.
1231
1232 2009-04-16 Richard Guenther <rguenther@suse.de>
1233
1234 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1235 (gimple_ior_addresses_taken_1): New function.
1236 (gimple_ior_addresses_taken): Likewise.
1237 * gimple.h (struct gimple_statement_with_ops_base): Remove
1238 addresses_taken member.
1239 (gimple_ior_addresses_taken): Declare.
1240 (gimple_addresses_taken, gimple_addresses_taken_ptr,
1241 gimple_set_addresses_taken): Remove.
1242 * ipa-reference.c (mark_address): New function.
1243 (scan_stmt_for_static_refs): Use it for marking addresses taken.
1244 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1245 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
1246 (gimple_add_to_addresses_taken): Remove.
1247 (get_tmr_operands): Call mark_address_taken.
1248 (get_asm_expr_operands): Likewise.
1249 (get_expr_operands): Likewise.
1250 (build_ssa_operands): Do not clear the addresses_taken bitmap.
1251 (free_stmt_operands): Do not free it.
1252 * tree-ssa.c (delete_tree_ssa): Likewise.
1253 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1254
1255 2009-04-16 Richard Guenther <rguenther@suse.de>
1256
1257 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1258 (walk_stmt_load_store_ops): Likewise.
1259 * gimple.c (get_base_loadstore): New function.
1260 (walk_stmt_load_store_addr_ops): Likewise.
1261 (walk_stmt_load_store_ops): Likewise.
1262 * ipa-pure-const.c (check_op): Simplify.
1263 (check_load, check_store): New functions.
1264 (check_stmt): Use walk_stmt_load_store_ops.
1265 * ipa-reference.c (mark_load): Adjust signature.
1266 (mark_store): Likewise.
1267 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1268
1269 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1270
1271 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1272 (plugin_info): New.
1273 * opts.c (common_handle_option): Don't call print_version.
1274 * plugin.c (plugin_name_args): Add version.
1275 (register_plugin_info): New.
1276 (register_callback): Handle PLUGIN_INFO.
1277 (try_init_one_plugin): New.
1278 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1279 if failed to init.
1280 (finalize_one_plugin): New.
1281 (finalize_plugins): New.
1282 (print_one_plugin): New.
1283 (print_plugins_versions): New.
1284 * plugin.h (print_plugins_versions): New.
1285 (finalize_plugins): New.
1286 * toplev.c (compile_file): Don't call initialize_plugins.
1287 (print_version): Call print_plugins_versions.
1288 (toplev_main): Call initialize_plugins. Print version if needed.
1289 Call finalize_plugins.
1290
1291 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1292
1293 * common.opt (fversion): New.
1294 * gcc.c (print_version): New.
1295 (process_command): Don't print the version. Just set print_version.
1296 (main): Print version. Call subprocesses if print_version and
1297 verbose_flag are set.
1298 * opts.c (common_handle_option): Handle OPT_fversion.
1299
1300 2009-04-16 Richard Guenther <rguenther@suse.de>
1301 Ira Rosen <irar@il.ibm.com>
1302
1303 PR tree-optimization/39698
1304 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1305 type of the reduction variable. Only generate the def if
1306 it is needed.
1307
1308 * omp-low.c (expand_omp_for_generic): When converting to a pointer
1309 make sure to first convert to an integer of the same precision.
1310 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1311 the type of the evolution correctly in computing the new
1312 induction variable base.
1313
1314 2009-04-16 Richard Guenther <rguenther@suse.de>
1315
1316 PR middle-end/39625
1317 * tree-cfg.c (make_blocks): Split statements with to-be
1318 abnormal SSA names on the lhs.
1319
1320 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
1321
1322 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1323 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1324 * c-typeck.c (really_start_incremental_init): Likewise.
1325 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1326 (TARGET_INITIALIZER): Remove it.
1327 * target.h (struct target): Remove vector_opaque_p.
1328 * tree.c (build_opaque_vector_type): New.
1329 * tree.h (TYPE_VECTOR_OPAQUE): New.
1330 (build_opaque_vector_type): Declare.
1331 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1332 * config/rs6000/rs6000.c (build_opaque_vector_type,
1333 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1334 (rs6000_init_builtins): Use build_opaque_vector_type for
1335 opaque_V4SI_type_node.
1336
1337 2009-04-15 Catherine Moore <clm@codesourcery.com>
1338
1339 * debug.h (set_name): Declare.
1340 * dwarf2out.c (dwarf2out_set_name): Declare.
1341 (dwarf2_debug_hooks): Add set_name.
1342 (find_AT_string): New.
1343 (add_AT_string): Call find_AT_string.
1344 (dwarf2out_set_name): New.
1345 * cp/decl.c (grokdeclarator): Call set_name.
1346 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1347 * debug.c (do_nothing_debug_hooks): Likewise.
1348 * dbxout.c (dbx_debug_hooks): Likewise.
1349 * sdbout.c (sdb_debug_hooks): Likewise.
1350
1351 2009-04-15 Michael Eager <eager@eagercon.com>
1352
1353 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1354 reg for single-precision FPU.
1355 * config/rs6000/rs6000.md (movsi_internal1): Only for
1356 !TARGET_SINGLE_FPU.
1357 (movsi_internal1_single): New. Add pattern to move SI values to/from
1358 single-precision FP regs.
1359
1360 2009-04-15 Richard Guenther <rguenther@suse.de>
1361
1362 * omp-low.c (lower_rec_input_clauses): Build correct address
1363 expressions.
1364 (expand_omp_for_generic): Fix multiplication type.
1365 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1366 (generate_memset_zero): Fix types.
1367 * tree-profile.c (prepare_instrumented_value): Correctly
1368 widen a pointer.
1369
1370 2009-04-15 Ian Lance Taylor <iant@google.com>
1371
1372 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
1373 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1374 for -Wall and for -Wc++-compat.
1375 (c_common_post_options): For C++, set warn_enum_compare if not
1376 already set.
1377 * c-tree.h (struct c_expr): Add field original_type.
1378 (build_external_ref): Update declaration.
1379 * c-parser.c (c_parser_braced_init): Set original_type.
1380 (c_parser_initelt): Likewise.
1381 (c_parser_expr_no_commas): Likewise.
1382 (c_parser_conditional_expression): Likewise.
1383 (c_parser_cast_expression): Likewise.
1384 (c_parser_unary_expression): Likewise. Pull setting of
1385 original_code to top of function.
1386 (c_parser_sizeof_expression): Set original_type.
1387 (c_parser_alignof_expression): Likewise.
1388 (c_parser_postfix_expression): Likewise. Pull setting of
1389 original_code to top of function.
1390 (c_parser_postfix_expression_after_paren_type): Set original_type.
1391 (c_parser_postfix_expression_after_primary): Likewise.
1392 (c_parser_expression): Likewise.
1393 * c-typeck.c (build_external_ref): Add type parameter. Change all
1394 callers.
1395 (c_expr_sizeof_expr): Set original_type field.
1396 (parser_build_unary_op): Likewise.
1397 (parser_build_binary_op): Likewise. Optionally warn about
1398 comparisons of enums of different types.
1399 (digest_init): Set original_type field.
1400 (really_start_incremental_init): Likewise.
1401 (push_init_level, pop_init_level): Likewise.
1402 * doc/invoke.texi (Warning Options): -Wenum-compare now
1403 supported in C.
1404
1405 2009-04-15 Richard Guenther <rguenther@suse.de>
1406
1407 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
1408 out a necessary conversion.
1409 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
1410 names we didn't value number.
1411 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
1412
1413 2009-04-15 Richard Guenther <rguenther@suse.de>
1414
1415 PR tree-optimization/39764
1416 * tree-ssa-ccp.c (get_value): Canonicalize value with
1417 canonicalize_float_value.
1418
1419 2009-04-15 Jan Hubicka <jh@suse.cz>
1420
1421 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
1422 Wrong version of patch.
1423
1424 2009-04-15 Jan Hubicka <jh@suse.cz>
1425
1426 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
1427
1428 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
1429
1430 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
1431 our distinct integral and vector types.
1432
1433 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
1434
1435 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
1436 * init.c (build_vtbl_address): Remove call to assemble_external.
1437
1438 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1439
1440 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
1441 output for other floating point modes.
1442
1443 2009-04-14 Diego Novillo <dnovillo@google.com>
1444
1445 * diagnostic.c (diagnostic_report_diagnostic): Do not
1446 warn about loaded plugins for DK_ERROR and DK_WARNING.
1447 * c-decl.c (declspecs_add_type): Move call to
1448 invoke_plugin_callbacks ...
1449 * c-parser.c (c_parser_declspecs): ... here.
1450 * plugin.c (dump_active_plugins): Tidy output.
1451
1452 2009-04-14 Diego Novillo <dnovillo@google.com>
1453 Le-Chun Wu <lcwu@google.com>
1454
1455 * configure.ac: Add --enable-plugin support.
1456 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
1457 * Makefile.in (PLUGIN_H): Define.
1458 Export ENABLE_PLUGIN and GMPINC to site.exp.
1459 Add PLUGINLIBS to link command.
1460 Add/modify dependencies for plugin.o and files including plugin.h.
1461 (plugin.o): New.
1462 * config.in: Regenerate.
1463
1464 * opts.c (common_handle_option): Handle OPT_fplugin_ and
1465 OPT_fplugin_arg_.
1466
1467 2009-04-14 Le-Chun Wu <lcwu@google.com>
1468
1469 * tree-pass.h (register_one_dump_file): Add a prototype for
1470 register_one_dump_file.
1471 * toplev.c (compile_file): Call initialize_plugins.
1472 (do_compile): Call invoke_plugin_callbacks.
1473 (toplev_main): Call invoke_plugin_callbacks.
1474 * common.opt: Add -fplugin= and -fplugin-arg-.
1475 * gcc-plugin.h: New public header file for plugins to include.
1476 * plugin.c: New source file.
1477 * plugin.h: New internal header file.
1478 * passes.c (register_one_dump_file): Make it external.
1479
1480 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
1481
1482 2009-04-14 Diego Novillo <dnovillo@google.com>
1483
1484 * doc/plugins.texi: New.
1485 * doc/gccint.texi: Add reference to Plugins chapter.
1486 * doc/invoke.texi: Document -fplugin and -fplugin-arg
1487 * diagnostic.c (diagnostic_report_diagnostic): Warn about
1488 loaded plugins, if any.
1489 * timevar.def (TV_PLUGIN_INIT): Define.
1490 (TV_PLUGIN_RUN): Define.
1491 * plugin.c: Include timevar.h
1492 (plugins_active_p): New.
1493 (dump_active_plugins): New.
1494 (debug_active_plugins): New.
1495
1496 2009-04-14 Joseph Myers <joseph@codesourcery.com>
1497
1498 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
1499 library paths.
1500 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
1501
1502 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
1503
1504 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
1505 the same as a minus without a shift.
1506
1507 2009-04-14 Nick Clifton <nickc@redhat.com>
1508
1509 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
1510 comparisons with small integers will always produce a short
1511 branch.
1512
1513 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
1514
1515 Merge:
1516 2008-12-19 Diego Novillo <dnovillo@google.com>
1517
1518 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
1519
1520 2009-04-14 Richard Guenther <rguenther@suse.de>
1521
1522 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
1523 verification.
1524 (verify_gimple_assign_binary): Likewise. Handle shifts and
1525 rotates correctly.
1526 (verify_gimple_phi): Print the mismatched argument position.
1527 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1528 Fix types.
1529 (vect_update_init_of_dr): Likewise.
1530 * matrix-reorg.c (transform_access_sites): Do what the
1531 comment suggests.
1532 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
1533
1534 2009-04-13 Michael Eager <eager@eagercon.com>
1535
1536 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
1537 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
1538 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
1539 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
1540 remove duplicate config
1541
1542 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1543
1544 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
1545 file_name:line_number type locator of the call site.
1546
1547 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
1548
1549 * genautomata.c: Put blank after comma.
1550 (automaton_decls): New.
1551 (struct unit_usage): Add comments to member next.
1552 (store_alt_unit_usage): Keep the list ordered.
1553 (unit_present_on_list_p, equal_alternatives_p): New.
1554 (check_regexp_units_distribution): Check units distribution
1555 correctness correctly.
1556 (main): Don't write automata if error is found. Return correct
1557 exit code.
1558
1559 * config/m68k/cf.md (cfv4_ds): Remove.
1560 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
1561 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
1562
1563 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
1564 power4-load-ext, power4-store, power4-store-update,
1565 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
1566 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
1567 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
1568 power4-sqrt, power4-isync): Modify reservation to make correct
1569 unit distribution to automata.
1570
1571 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
1572 power5-store-update, power5-two, power5-three, power5-lmul,
1573 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
1574
1575 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
1576
1577 * except.c (pass_set_nothrow_function_flags): Set name and add
1578 TODO_dump_func.
1579 (set_nothrow_function_flags): Mention in the dump file when
1580 changing a function to nothrow.
1581
1582 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
1583
1584 PR/39066
1585 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
1586 instead of unsigned long.
1587
1588 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1589
1590 * config/arm/arm.c (return_used_this_function): Remove.
1591 (arm_output_function_prologue): Remove use of
1592 return_used_this_function.
1593 (output_return_instruction): Replace use of
1594 return_used_this_function
1595 by cfun->machine->return_used_this_function.
1596 (arm_output_epilogue): Likewise.
1597 (arm_output_function_epilogue): Likewise.
1598 (thumb_unexpanded_epilogue): Likewise.
1599 * config/arm/arm.h (struct machine_function):
1600 New member return_used_this_function.
1601
1602 2009-04-12 Mark Mitchell <mark@codesourcery.com>
1603
1604 * doc/install.texi: Correct description of default directory for
1605 --with-gxx-include-dir.
1606
1607 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
1608
1609 * fold-const.c (build_range_check): Properly deal with enumeral and
1610 boolean base types.
1611
1612 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
1613
1614 * doc/invoke.texi (max_gcse_passes): Remove documentation.
1615 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
1616 * params.h (MAX_GCSE_PASSES): Remove.
1617 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
1618 in sequence. Remove ability to run multiple passes.
1619 (bypass_jumps): Report run as third CPROP pass.
1620
1621 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
1622
1623 PR middle-end/39651
1624 * except.c (can_throw_external): Look at each insn in a SEQUENCE
1625 when deciding whether the whole SEQUENCE can throw.
1626
1627 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
1628
1629 PR target/39740
1630 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
1631 offseted label references.
1632
1633 2009-04-11 Jan Hubicka <jh@suse.cz>
1634
1635 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
1636
1637 2009-04-11 Richard Guenther <rguenther@suse.de>
1638
1639 PR middle-end/39732
1640 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
1641 return variables as TREE_ADDRESSABLE.
1642
1643 2009-04-11 Richard Guenther <rguenther@suse.de>
1644
1645 PR tree-optimization/39713
1646 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
1647 reference trees have SSA_NAME operands.
1648
1649 2009-04-11 Richard Guenther <rguenther@suse.de>
1650
1651 PR c/39712
1652 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
1653 address expressions.
1654
1655 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
1656
1657 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
1658 match changes in Cygwin 1.7
1659 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1660 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
1661
1662 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
1663
1664 PR tree-optimization/39701
1665 * doc/invoke.texi (Optimization Options): Document change in
1666 meaning and initialization of -fdelete-null-pointer-checks.
1667
1668 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
1669
1670 PR middle-end/39701
1671 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
1672
1673 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
1674 here.
1675
1676 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
1677
1678 2009-04-10 Chao-ying Fu <fu@mips.com>
1679
1680 * doc/tm.texi (Instruction Output): Document
1681 TARGET_ASM_FINAL_POSTSCAN_INSN.
1682 * target.h (final_postscan_insn): New field in asm_out.
1683 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
1684 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
1685 * final.c (final_scan_insn): Call
1686 targetm.asm_out.final_postscan_insn after outputting
1687 an asm macro and a normal instruction.
1688
1689 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
1690 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
1691 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
1692 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
1693 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
1694
1695 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
1696
1697 PR middle-end/39701
1698 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
1699 variables as non-NULL even with -fdelete-null-pointer-checks.
1700
1701 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
1702
1703 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
1704
1705 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
1706
1707 PR target/39678
1708 * config/i386/i386.c (classify_argument): Handle SCmode with
1709 (bit_offset % 64) != 0.
1710
1711 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
1712
1713 * doc/invoke.texi (Optimize Options): Add cross-reference to
1714 -Q --help=optimizers examples.
1715
1716 2009-04-10 Ben Elliston <bje@au.ibm.com>
1717
1718 PR target/36800
1719 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
1720 regalign for the reg == fpr and TDmode case.
1721
1722 2009-04-09 David Ayers <ayers@fsfe.org>
1723
1724 PR objc/29200
1725 * objc/objc-act.c (warn_with_method): Remove helper function.
1726 (check_duplicates): Call warning and inform directly.
1727 (really_start_method): Likewise.
1728
1729 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
1730
1731 * expmed.c (expand_divmod): Always use a comparison for a division
1732 by a large unsigned integer.
1733
1734 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
1735 for things others than variables or functions as nonzero.
1736
1737 2009-04-09 Nick Clifton <nickc@redhat.com>
1738
1739 * unwind-compat.c: Change copyright header to refer to version
1740 3 of the GNU General Public License with version 3.1 of the
1741 GCC Runtime Library Exception and to point readers at the
1742 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
1743 * config/alpha/crtfastmath.c: Likewise.
1744 * config/alpha/linux-unwind.h: Likewise.
1745 * config/alpha/qrnnd.asm: Likewise.
1746 * config/alpha/vms-crt0-64.c: Likewise.
1747 * config/alpha/vms-crt0.c: Likewise.
1748 * config/alpha/vms-dwarf2.asm: Likewise.
1749 * config/alpha/vms-dwarf2eh.asm: Likewise.
1750 * config/alpha/vms-psxcrt0-64.c: Likewise.
1751 * config/alpha/vms-psxcrt0.c: Likewise.
1752 * config/alpha/vms_tramp.asm: Likewise.
1753 * config/arc/initfini.c: Likewise.
1754 * config/arc/lib1funcs.asm: Likewise.
1755 * config/arm/bpabi-v6m.S: Likewise.
1756 * config/arm/bpabi.S: Likewise.
1757 * config/arm/bpabi.c: Likewise.
1758 * config/arm/crti.asm: Likewise.
1759 * config/arm/crtn.asm: Likewise.
1760 * config/arm/ieee754-df.S: Likewise.
1761 * config/arm/ieee754-sf.S: Likewise.
1762 * config/arm/lib1funcs.asm: Likewise.
1763 * config/arm/libunwind.S: Likewise.
1764 * config/arm/linux-atomic.c: Likewise.
1765 * config/arm/mmintrin.h: Likewise.
1766 * config/arm/pr-support.c: Likewise.
1767 * config/arm/unaligned-funcs.c: Likewise.
1768 * config/arm/unwind-arm.c: Likewise.
1769 * config/arm/unwind-arm.h: Likewise.
1770 * config/avr/libgcc.S: Likewise.
1771 * config/bfin/crti.s: Likewise.
1772 * config/bfin/crtlibid.s: Likewise.
1773 * config/bfin/crtn.s: Likewise.
1774 * config/bfin/lib1funcs.asm: Likewise.
1775 * config/bfin/linux-unwind.h: Likewise.
1776 * config/cris/arit.c: Likewise.
1777 * config/cris/cris_abi_symbol.c: Likewise.
1778 * config/darwin-64.c: Likewise.
1779 * config/darwin-crt2.c: Likewise.
1780 * config/darwin-crt3.c: Likewise.
1781 * config/darwin.h: Likewise.
1782 * config/dbxelf.h: Likewise.
1783 * config/dfp-bit.c: Likewise.
1784 * config/dfp-bit.h: Likewise.
1785 * config/elfos.h: Likewise.
1786 * config/fixed-bit.c: Likewise.
1787 * config/fixed-bit.h: Likewise.
1788 * config/fp-bit.c: Likewise.
1789 * config/fp-bit.h: Likewise.
1790 * config/fr30/crti.asm: Likewise.
1791 * config/fr30/crtn.asm: Likewise.
1792 * config/fr30/lib1funcs.asm: Likewise.
1793 * config/freebsd-spec.h: Likewise.
1794 * config/frv/cmovd.c: Likewise.
1795 * config/frv/cmovh.c: Likewise.
1796 * config/frv/cmovw.c: Likewise.
1797 * config/frv/frvbegin.c: Likewise.
1798 * config/frv/frvend.c: Likewise.
1799 * config/frv/lib1funcs.asm: Likewise.
1800 * config/glibc-stdint.h: Likewise.
1801 * config/h8300/clzhi2.c: Likewise.
1802 * config/h8300/crti.asm: Likewise.
1803 * config/h8300/crtn.asm: Likewise.
1804 * config/h8300/ctzhi2.c: Likewise.
1805 * config/h8300/fixunssfsi.c: Likewise.
1806 * config/h8300/lib1funcs.asm: Likewise.
1807 * config/h8300/parityhi2.c: Likewise.
1808 * config/h8300/popcounthi2.c: Likewise.
1809 * config/i386/ammintrin.h: Likewise.
1810 * config/i386/att.h: Likewise.
1811 * config/i386/avxintrin.h: Likewise.
1812 * config/i386/biarch64.h: Likewise.
1813 * config/i386/bmmintrin.h: Likewise.
1814 * config/i386/cpuid.h: Likewise.
1815 * config/i386/cross-stdarg.h: Likewise.
1816 * config/i386/crtfastmath.c: Likewise.
1817 * config/i386/crtprec.c: Likewise.
1818 * config/i386/cygming-crtbegin.c: Likewise.
1819 * config/i386/cygming-crtend.c: Likewise.
1820 * config/i386/cygwin.asm: Likewise.
1821 * config/i386/emmintrin.h: Likewise.
1822 * config/i386/gmm_malloc.h: Likewise.
1823 * config/i386/gthr-win32.c: Likewise.
1824 * config/i386/i386.h: Likewise.
1825 * config/i386/immintrin.h: Likewise.
1826 * config/i386/linux-unwind.h: Likewise.
1827 * config/i386/linux64.h: Likewise.
1828 * config/i386/mm3dnow.h: Likewise.
1829 * config/i386/mmintrin-common.h: Likewise.
1830 * config/i386/mmintrin.h: Likewise.
1831 * config/i386/nmmintrin.h: Likewise.
1832 * config/i386/pmm_malloc.h: Likewise.
1833 * config/i386/pmmintrin.h: Likewise.
1834 * config/i386/smmintrin.h: Likewise.
1835 * config/i386/sol2-c1.asm: Likewise.
1836 * config/i386/sol2-ci.asm: Likewise.
1837 * config/i386/sol2-cn.asm: Likewise.
1838 * config/i386/sol2-gc1.asm: Likewise.
1839 * config/i386/tmmintrin.h: Likewise.
1840 * config/i386/unix.h: Likewise.
1841 * config/i386/w32-unwind.h: Likewise.
1842 * config/i386/wmmintrin.h: Likewise.
1843 * config/i386/x86-64.h: Likewise.
1844 * config/i386/x86intrin.h: Likewise.
1845 * config/i386/xmmintrin.h: Likewise.
1846 * config/ia64/crtbegin.asm: Likewise.
1847 * config/ia64/crtend.asm: Likewise.
1848 * config/ia64/crtfastmath.c: Likewise.
1849 * config/ia64/crti.asm: Likewise.
1850 * config/ia64/crtn.asm: Likewise.
1851 * config/ia64/fde-glibc.c: Likewise.
1852 * config/ia64/lib1funcs.asm: Likewise.
1853 * config/ia64/linux-unwind.h: Likewise.
1854 * config/ia64/quadlib.c: Likewise.
1855 * config/ia64/unwind-ia64.c: Likewise.
1856 * config/linux.h: Likewise.
1857 * config/m32c/m32c-lib1.S: Likewise.
1858 * config/m32c/m32c-lib2-trapv.c: Likewise.
1859 * config/m32c/m32c-lib2.c: Likewise.
1860 * config/m32r/initfini.c: Likewise.
1861 * config/m68hc11/larith.asm: Likewise.
1862 * config/m68hc11/m68hc11-crt0.S: Likewise.
1863 * config/m68k/cf.md: Likewise.
1864 * config/m68k/crti.s: Likewise.
1865 * config/m68k/crtn.s: Likewise.
1866 * config/m68k/lb1sf68.asm: Likewise.
1867 * config/m68k/linux-unwind.h: Likewise.
1868 * config/mcore/crti.asm: Likewise.
1869 * config/mcore/crtn.asm: Likewise.
1870 * config/mcore/lib1.asm: Likewise.
1871 * config/mips/linux-unwind.h: Likewise.
1872 * config/mips/loongson.h: Likewise.
1873 * config/mips/mips16.S: Likewise.
1874 * config/mmix/crti.asm: Likewise.
1875 * config/mmix/crtn.asm: Likewise.
1876 * config/pa/fptr.c: Likewise.
1877 * config/pa/hpux-unwind.h: Likewise.
1878 * config/pa/lib2funcs.asm: Likewise.
1879 * config/pa/linux-atomic.c: Likewise.
1880 * config/pa/linux-unwind.h: Likewise.
1881 * config/pa/milli64.S: Likewise.
1882 * config/pa/quadlib.c: Likewise.
1883 * config/pa/stublib.c: Likewise.
1884 * config/picochip/libgccExtras/adddi3.asm: Likewise.
1885 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
1886 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
1887 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
1888 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
1889 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
1890 * config/picochip/libgccExtras/divmod15.asm: Likewise.
1891 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
1892 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
1893 * config/picochip/libgccExtras/longjmp.asm: Likewise.
1894 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
1895 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
1896 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
1897 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
1898 * config/picochip/libgccExtras/setjmp.asm: Likewise.
1899 * config/picochip/libgccExtras/subdi3.asm: Likewise.
1900 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
1901 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
1902 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
1903 * config/rs6000/750cl.h: Likewise.
1904 * config/rs6000/altivec.h: Likewise.
1905 * config/rs6000/biarch64.h: Likewise.
1906 * config/rs6000/crtresfpr.asm: Likewise.
1907 * config/rs6000/crtresgpr.asm: Likewise.
1908 * config/rs6000/crtresxfpr.asm: Likewise.
1909 * config/rs6000/crtresxgpr.asm: Likewise.
1910 * config/rs6000/crtsavfpr.asm: Likewise.
1911 * config/rs6000/crtsavgpr.asm: Likewise.
1912 * config/rs6000/darwin-asm.h: Likewise.
1913 * config/rs6000/darwin-fallback.c: Likewise.
1914 * config/rs6000/darwin-fpsave.asm: Likewise.
1915 * config/rs6000/darwin-ldouble.c: Likewise.
1916 * config/rs6000/darwin-tramp.asm: Likewise.
1917 * config/rs6000/darwin-unwind.h: Likewise.
1918 * config/rs6000/darwin-vecsave.asm: Likewise.
1919 * config/rs6000/darwin-world.asm: Likewise.
1920 * config/rs6000/e500crtres32gpr.asm: Likewise.
1921 * config/rs6000/e500crtres64gpr.asm: Likewise.
1922 * config/rs6000/e500crtres64gprctr.asm: Likewise.
1923 * config/rs6000/e500crtrest32gpr.asm: Likewise.
1924 * config/rs6000/e500crtrest64gpr.asm: Likewise.
1925 * config/rs6000/e500crtresx32gpr.asm: Likewise.
1926 * config/rs6000/e500crtresx64gpr.asm: Likewise.
1927 * config/rs6000/e500crtsav32gpr.asm: Likewise.
1928 * config/rs6000/e500crtsav64gpr.asm: Likewise.
1929 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1930 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
1931 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
1932 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
1933 * config/rs6000/eabi-ci.asm: Likewise.
1934 * config/rs6000/eabi-cn.asm: Likewise.
1935 * config/rs6000/eabi.asm: Likewise.
1936 * config/rs6000/linux-unwind.h: Likewise.
1937 * config/rs6000/linux64.h: Likewise.
1938 * config/rs6000/paired.h: Likewise.
1939 * config/rs6000/paired.md: Likewise.
1940 * config/rs6000/ppc64-fp.c: Likewise.
1941 * config/rs6000/ppu_intrinsics.h: Likewise.
1942 * config/rs6000/rs6000.h: Likewise.
1943 * config/rs6000/si2vmx.h: Likewise.
1944 * config/rs6000/sol-ci.asm: Likewise.
1945 * config/rs6000/sol-cn.asm: Likewise.
1946 * config/rs6000/spe.h: Likewise.
1947 * config/rs6000/spu2vmx.h: Likewise.
1948 * config/rs6000/sysv4.h: Likewise.
1949 * config/rs6000/tramp.asm: Likewise.
1950 * config/rs6000/vec_types.h: Likewise.
1951 * config/s390/linux-unwind.h: Likewise.
1952 * config/s390/tpf-unwind.h: Likewise.
1953 * config/score/crti.asm: Likewise.
1954 * config/score/crtn.asm: Likewise.
1955 * config/sh/crt1.asm: Likewise.
1956 * config/sh/crti.asm: Likewise.
1957 * config/sh/crtn.asm: Likewise.
1958 * config/sh/divtab-sh4-300.c: Likewise.
1959 * config/sh/divtab-sh4.c: Likewise.
1960 * config/sh/divtab.c: Likewise.
1961 * config/sh/lib1funcs-4-300.asm: Likewise.
1962 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
1963 * config/sh/lib1funcs.asm: Likewise.
1964 * config/sh/lib1funcs.h: Likewise.
1965 * config/sh/linux-atomic.asm: Likewise.
1966 * config/sh/linux-unwind.h: Likewise.
1967 * config/sh/shmedia.h: Likewise.
1968 * config/sh/sshmedia.h: Likewise.
1969 * config/sh/ushmedia.h: Likewise.
1970 * config/sparc/crtfastmath.c: Likewise.
1971 * config/sparc/linux-unwind.h: Likewise.
1972 * config/sparc/sol2-c1.asm: Likewise.
1973 * config/sparc/sol2-ci.asm: Likewise.
1974 * config/sparc/sol2-cn.asm: Likewise.
1975 * config/spu/divmodti4.c: Likewise.
1976 * config/spu/divv2df3.c: Likewise.
1977 * config/spu/float_disf.c: Likewise.
1978 * config/spu/float_unsdidf.c: Likewise.
1979 * config/spu/float_unsdisf.c: Likewise.
1980 * config/spu/float_unssidf.c: Likewise.
1981 * config/spu/mfc_multi_tag_release.c: Likewise.
1982 * config/spu/mfc_multi_tag_reserve.c: Likewise.
1983 * config/spu/mfc_tag_release.c: Likewise.
1984 * config/spu/mfc_tag_reserve.c: Likewise.
1985 * config/spu/mfc_tag_table.c: Likewise.
1986 * config/spu/multi3.c: Likewise.
1987 * config/spu/spu_internals.h: Likewise.
1988 * config/spu/spu_intrinsics.h: Likewise.
1989 * config/spu/spu_mfcio.h: Likewise.
1990 * config/spu/vec_types.h: Likewise.
1991 * config/spu/vmx2spu.h: Likewise.
1992 * config/stormy16/stormy16-lib2.c: Likewise.
1993 * config/svr4.h: Likewise.
1994 * config/sync.c: Likewise.
1995 * config/v850/lib1funcs.asm: Likewise.
1996 * config/vxlib-tls.c: Likewise.
1997 * config/vxlib.c: Likewise.
1998 * config/vxworks-dummy.h: Likewise.
1999 * config/xtensa/crti.asm: Likewise.
2000 * config/xtensa/crtn.asm: Likewise.
2001 * config/xtensa/ieee754-df.S: Likewise.
2002 * config/xtensa/ieee754-sf.S: Likewise.
2003 * config/xtensa/lib1funcs.asm: Likewise.
2004 * config/xtensa/lib2funcs.S: Likewise.
2005 * config/xtensa/linux-unwind.h: Likewise.
2006 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2007 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
2008 * coretypes.h: Likewise.
2009 * crtstuff.c: Likewise.
2010 * defaults.h: Likewise.
2011 * dwarf2.h: Likewise.
2012 * emutls.c: Likewise.
2013 * gbl-ctors.h: Likewise.
2014 * gcov-io.h: Likewise.
2015 * ginclude/float.h: Likewise.
2016 * ginclude/iso646.h: Likewise.
2017 * ginclude/stdarg.h: Likewise.
2018 * ginclude/stdbool.h: Likewise.
2019 * ginclude/stddef.h: Likewise.
2020 * ginclude/stdfix.h: Likewise.
2021 * ginclude/stdint-gcc.h: Likewise.
2022 * ginclude/tgmath.h: Likewise.
2023 * gthr-aix.h: Likewise.
2024 * gthr-dce.h: Likewise.
2025 * gthr-gnat.c: Likewise.
2026 * gthr-gnat.h: Likewise.
2027 * gthr-lynx.h: Likewise.
2028 * gthr-mipssde.h: Likewise.
2029 * gthr-nks.h: Likewise.
2030 * gthr-posix.c: Likewise.
2031 * gthr-posix.h: Likewise.
2032 * gthr-posix95.h: Likewise.
2033 * gthr-rtems.h: Likewise.
2034 * gthr-single.h: Likewise.
2035 * gthr-solaris.h: Likewise.
2036 * gthr-tpf.h: Likewise.
2037 * gthr-vxworks.h: Likewise.
2038 * gthr-win32.h: Likewise.
2039 * gthr.h: Likewise.
2040 * libgcc2.c: Likewise.
2041 * libgcc2.h: Likewise.
2042 * libgcov.c: Likewise.
2043 * tsystem.h: Likewise.
2044 * typeclass.h: Likewise.
2045 * unwind-c.c: Likewise.
2046 * unwind-compat.h: Likewise.
2047 * unwind-dw2-fde-compat.c: Likewise.
2048 * unwind-dw2-fde-darwin.c: Likewise.
2049 * unwind-dw2-fde-glibc.c: Likewise.
2050 * unwind-dw2-fde.c: Likewise.
2051 * unwind-dw2-fde.h: Likewise.
2052 * unwind-dw2.c: Likewise.
2053 * unwind-dw2.h: Likewise.
2054 * unwind-generic.h: Likewise.
2055 * unwind-pe.h: Likewise.
2056 * unwind-sjlj.c: Likewise.
2057 * unwind.inc: Likewise.
2058 * config/arm/neon-gen.ml: Change generated copyright header to
2059 refer to version 3 of the GNU General Public License with
2060 version 3.1 of the GCC Runtime Library Exception and to point
2061 readers at the COPYING3 and COPYING3.RUNTIME files and the
2062 FSF's license web page.
2063 * config/arm/arm_neon.h: Regenerate.
2064
2065 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2066
2067 * config/cris/cris.md: Change copyright header to refer to version
2068 3 of the GNU General Public License.
2069 * doc/install.texi2html: Change copyright header to refer to version
2070 3 of the GNU General Public License and to point readers at the
2071 COPYING3 file and the FSF's license web page.
2072 * config/vax/linux.h: Likewise.
2073
2074 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2075
2076 * config/i386/i386.md (cmpcc): New.
2077 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
2078 (sync_compare_and_swap_cc*): Delete.
2079
2080 * config/s390/s390.c (s390_compare_emitted): Remove.
2081 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
2082 s390_compare_emitted used to be handled. Assert that modes match.
2083 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
2084 refer to sync_compare_and_swap_ccsi.
2085 * config/s390/s390.h (s390_compare_emitted): Remove.
2086 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
2087 instead of s390_compare_emitted.
2088 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
2089 instead of s390_compare_emitted.
2090 * config/s390/s390.md (cmpcc): New.
2091 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
2092 CC_REGNUM, do not pretend it's set.
2093 (sync_compare_and_swap_cc*): Delete.
2094 * config/s390/predicates.md (cc_reg_operand): New.
2095
2096 * expr.c (sync_compare_and_swap_cc): Delete.
2097 * optabs.h (sync_compare_and_swap_cc): Delete.
2098 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
2099 is being used with can_compare_p.
2100 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
2101 (find_cc_set): New.
2102 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
2103 look for a MODE_CC set instead. Use emit_store_flag.
2104 (expand_compare_and_swap_loop): Likewise, with some additional
2105 complication to avoid a force_reg when useless. Use
2106 emit_cmp_and_jump_insns.
2107 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
2108 * doc/md.texi (sync_compare_and_swap_cc): Merge with
2109 sync_compare_and_swap documentation.
2110
2111 2009-04-09 Jan Hubicka <jh@suse.cz>
2112
2113 * except.c (find_prev_try): Break out from ....
2114 (duplicate_eh_regions): ... here; properly update prev_try pointers
2115 when duplication part of tree.
2116 (dump_eh_tree): Improve dumping.
2117 (verify_eh_region): New.
2118 (verify_eh_tree): Use it.
2119
2120 2009-04-06 Richard Guenther <rguenther@suse.de>
2121
2122 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
2123 &ARRAY addresses by adjusting their types and prepending
2124 a conversion.
2125 * tree-cfg.c (verify_gimple_assign_single): Verify that
2126 addresses are correct.
2127
2128 2009-04-09 Richard Guenther <rguenther@suse.de>
2129
2130 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
2131 indices into an array reference if possible.
2132 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2133 Fold POINTER_PLUS_EXPR statements with invariant address.
2134
2135 2009-04-09 Alan Modra <amodra@bigpond.net.au>
2136
2137 PR target/39634
2138 * config.gcc (powerpc64-*-linux*): Always build biarch.
2139
2140 2009-04-09 Joseph Myers <joseph@codesourcery.com>
2141
2142 PR c/39613
2143 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2144 it and pedwarn if this results in an INTEGER_CST.
2145
2146 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2147
2148 * doc/install.texi: Update minimum GMP version. Remove obsolete
2149 text in MPFR section.
2150
2151 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2152
2153 * dwarf2out.c (class_scope_p): New static inline.
2154 (class_or_namespace_scope_p): Use it.
2155 (gen_variable_die): Use DW_TAG_member tag for static data member
2156 declarations instead of DW_TAG_variable.
2157
2158 PR middle-end/39573
2159 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2160 variables.
2161
2162 2009-04-08 Richard Guenther <rguenther@suse.de>
2163
2164 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2165 valueize random data.
2166
2167 2009-04-08 David Edelsohn <edelsohn@gnu.org>
2168
2169 * config.gcc (aix tm_file): Add aix-stdint.h.
2170 (aix tm clause use_gcc_stdint): Set to wrap.
2171 * config/rs6000/aix-stdint.h: New file.
2172
2173 2009-04-08 Richard Guenther <rguenther@suse.de>
2174
2175 PR middle-end/36291
2176 * tree-dfa.c (add_referenced_var): Do not recurse into
2177 global initializers.
2178 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2179 exposed variables.
2180 (fold_const_aggregate_ref): Likewise.
2181
2182 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2183
2184 * recog.c (ordered_comparison_operator): New.
2185 * gensupport.c (std_preds): Add it.
2186 * doc/md.texi (Machine-Independent Predicates): Document it.
2187
2188 2009-04-08 Jan Hubicka <jh@suse.cz>
2189
2190 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2191 * function.h (rtl_eh): Remove exception_handler_label_map.
2192 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2193 remove_exception_handler_label, for_each_eh_label_1): Remove.
2194 (rtl_remove_unreachable_regions): Remove.
2195 (convert_from_eh_region_ranges): Do not remove unreachable regions.
2196 (find_exception_handler_labels): Don't build the hashtable.
2197 (maybe_remove_eh_handler): Remove.
2198 (for_each_eh_label): Rewrite to walk the tree.
2199 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2200 * except.h (maybe_remove_eh_handler): Remove.
2201 * passes.c (init_optimization_passes): Schedule second EH cleanup
2202 before out-of-ssa.
2203 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2204 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2205
2206 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2207
2208 * genoutput.c (validate_optab_operands): New.
2209 (gen_insn, gen_expand): Call it.
2210
2211 * genflags.c (gen_insn): Detect misused iterators.
2212 (main): Pass line_no to gen_insn, exit with status 1 on error.
2213
2214 * genextract.c (line_no): Make global.
2215 (VEC_safe_set_locstr): Change assertion to error message.
2216 (main): Exit with status 1 on error.
2217
2218 2009-04-08 Joseph Myers <joseph@codesourcery.com>
2219
2220 PR c/39614
2221 PR c/39673
2222 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2223 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2224 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2225 * c-convert.c (convert): Do not call fold on results of conversion
2226 functions when the result is a C_MAYBE_CONST_EXPR.
2227 * c-parser.c (c_parser_postfix_expression): Do not fold condition
2228 of __builtin_choose_expr.
2229 * c-typeck.c (remove_c_maybe_const_expr): New.
2230 (build_unary_op, build_conditional_expr, build_compound_expr,
2231 build_binary_op, c_objc_common_truthvalue_conversion): Call
2232 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2233 integer operands.
2234
2235 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2236
2237 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2238 CODE to produce a new one. Add a prototype to use fold_convert_const
2239
2240 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
2241
2242 PR bootstrap/39660
2243 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2244 mix declarations and code.
2245
2246 2009-04-08 Ben Elliston <bje@au.ibm.com>
2247
2248 * gcc.c: Replace `CC' with `GCC' throughout.
2249
2250 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
2251
2252 * doc/invoke.texi: Document Atom support.
2253
2254 2009-04-07 Jason Merrill <jason@redhat.com>
2255
2256 PR c++/25185
2257 * c-common.h, c-common.c: Add flag_pretty_templates.
2258 * c-opts.c (c_common_handle_option): Set it.
2259 * c.opt: Add -fno-pretty-templates.
2260 * doc/invoke.texi (C++ Dialect Options): Likewise.
2261
2262 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
2263
2264 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2265 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2266 (ia64_expand_builtin): Likewise.
2267
2268 2009-04-07 Martin Jambor <mjambor@suse.cz>
2269
2270 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2271 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2272 ADDR_EXPRS are include too.
2273
2274 2009-04-07 Richard Guenther <rguenther@suse.de>
2275
2276 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2277 decls are only used if passes as parameters or if they are
2278 local statics and the call is not to a builtin.
2279 (call_may_clobber_ref_p_1): Likewise.
2280
2281 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2282
2283 * expr.c (do_store_flag): Remove last argument. Simplify code
2284 to avoid duplication of tests already done by can_compare_p.
2285 (expand_expr_real_1): Adjust caller.
2286
2287 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2288
2289 * optabs.c (can_compare_p): Test the predicate of a
2290 cbranch and cstore pattern.
2291
2292 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2293
2294 * expr.c (convert_move): Use emit_store_flag instead of
2295 "emulating" it.
2296
2297 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2298
2299 * config/i386/i386.c (ix86_compare_emitted): Remove.
2300 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2301 ix86_compare_op0 like ix86_compare_emitted used to be handled.
2302 * config/i386/i386.h (ix86_compare_emitted): Remove.
2303 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2304 instead of ix86_compare_emitted.
2305 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2306
2307 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
2308
2309 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2310 Add t-sysroot-suffix to tmake_file.
2311 * config/print-sysroot-suffix.sh: New file.
2312 * config/t-sysroot-suffix: New file.
2313
2314 2009-04-07 Ben Elliston <bje@au.ibm.com>
2315
2316 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2317 as the latter produces a warning when the target does not support
2318 infinity.
2319
2320 2009-04-07 Ben Elliston <bje@au.ibm.com>
2321
2322 * dfp.c: Replace type punning assignments with memcpy throughout.
2323 * Makefile.in (dfp.o-warn): Remove.
2324
2325 2009-04-07 Alan Modra <amodra@bigpond.net.au>
2326
2327 PR target/39634
2328 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2329 Include soft-fp/t-softfp after rs6000/t-linux64.
2330
2331 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
2332
2333 * stor-layout.c (set_sizetype): Use the full precision of their
2334 machine mode for bitsize types.
2335
2336 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
2337
2338 * config/i386/i386.md: Revert 2 accidental checkins.
2339
2340 2009-04-06 Joey Ye <joey.ye@intel.com>
2341 Xuepeng Guo <xuepeng.guo@intel.com>
2342 H.J. Lu <hongjiu.lu@intel.com>
2343
2344 Atom pipeline model, tuning and insn selection.
2345 * config.gcc (atom): Add atom config options and target.
2346
2347 * config/i386/atom.md: New.
2348
2349 * config/i386/i386.c (atom_cost): New cost.
2350 (m_ATOM): New macro flag.
2351 (initial_ix86_tune_features): Set m_ATOM.
2352 (x86_accumulate_outgoing_args): Likewise.
2353 (x86_arch_always_fancy_math_387): Likewise.
2354 (processor_target): Add Atom cost.
2355 (cpu_names): Add Atom cpu name.
2356 (override_options): Set Atom ISA.
2357 (ix86_issue_rate): New case PROCESSOR_ATOM.
2358 (ix86_adjust_cost): Likewise.
2359
2360 * config/i386/i386.h (TARGET_ATOM): New target macro.
2361 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2362 (TARGET_OPT_AGU): New target option.
2363 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2364 (processor_type): Add PROCESSOR_ATOM.
2365
2366 * config/i386/i386.md (cpu): Add new value "atom".
2367 (use_carry, movu): New attr.
2368 (atom.md): Include atom.md.
2369 (adddi3_carry_rex64): Set attr "use_carry".
2370 (addqi3_carry): Likewise.
2371 (addhi3_carry): Likewise.
2372 (addsi3_carry): Likewise.
2373 (*addsi3_carry_zext): Likewise.
2374 (subdi3_carry_rex64): Likewise.
2375 (subqi3_carry): Likewise.
2376 (subhi3_carry): Likewise.
2377 (subsi3_carry): Likewise.
2378 (x86_movdicc_0_m1_rex64): Likewise.
2379 (*x86_movdicc_0_m1_se): Likewise.
2380 (x86_movsicc_0_m1): Likewise.
2381 (*x86_movsicc_0_m1_se): Likewise.
2382 (*adddi_1_rex64): Emit add insn as much as possible.
2383 (*addsi_1): Likewise.
2384 (return_internal): Set atom_unit.
2385 (return_internal_long): Likewise.
2386 (return_pop_internal): Likewise.
2387 (*rcpsf2_sse): Set atom_sse_attr attr.
2388 (*qrt<mode>2_sse): Likewise.
2389 (*prefetch_sse): Likewise.
2390
2391 * config/i386/i386-c.c (ix86_target_macros_internal): New case
2392 PROCESSOR_ATOM.
2393 (ix86_target_macros_internal): Likewise.
2394
2395 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
2396 (*prefetch_sse_rex): Likewise.
2397 (sse_rcpv4sf2): Likewise.
2398 (sse_vmrcpv4sf2): Likewise.
2399 (sse_sqrtv4sf2): Likewise.
2400 (<sse>_vmsqrt<mode>2): Likewise.
2401 (sse_ldmxcsr): Likewise.
2402 (sse_stmxcsr): Likewise.
2403 (*sse_sfence): Likewise.
2404 (sse2_clflush): Likewise.
2405 (*sse2_mfence): Likewise.
2406 (*sse2_lfence): Likewise.
2407 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
2408 (<sse>_movup<ssemodesuffixf2c>): Likewise.
2409 (avx_movdqu<avxmodesuffix>): Likewise.
2410 (avx_lddqu<avxmodesuffix>): Likewise.
2411 (sse2_movntv2di): Change attr "type" to "ssemov".
2412 (sse2_movntsi): Likewise.
2413 (rsqrtv8sf2): Change attr "type" to "sseadd".
2414 (sse3_addsubv2df3): Set attr "atom_unit".
2415 (sse3_h<plusminus_insn>v4sf3): Likewise.
2416 (*sse2_pmaddwd): Likewise.
2417 (*vec_extractv2di_1_rex64): Likewise.
2418 (*vec_extractv2di_1_avx): Likewise.
2419 (sse2_psadbw): Likewise.
2420 (ssse3_phaddwv8hi3): Likewise.
2421 (ssse3_phaddwv4hi3): Likewise.
2422 (ssse3_phadddv4si3): Likewise.
2423 (ssse3_phadddv2si3): Likewise.
2424 (ssse3_phaddswv8hi3): Likewise.
2425 (ssse3_phaddswv4hi3): Likewise.
2426 (ssse3_phsubwv8hi3): Likewise.
2427 (ssse3_phsubwv4hi3): Likewise.
2428 (ssse3_phsubdv4si3): Likewise.
2429 (ssse3_phsubdv2si3): Likewise.
2430 (ssse3_phsubswv8hi3): Likewise.
2431 (ssse3_phsubswv4hi3): Likewise.
2432 (ssse3_pmaddubsw128): Likewise.
2433 (sse3_pmaddubsw: Likewise.
2434 (ssse3_palignrti): Likewise.
2435 (ssse3_palignrdi): Likewise.
2436
2437 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
2438
2439 * doc/install.texi (Specific): Fix two cross-references to MinGW.
2440
2441 2009-04-06 Richard Guenther <rguenther@suse.de>
2442
2443 PR tree-optimization/28868
2444 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
2445 of which PHI results we inserted.
2446 (insert_into_preds_of_block): Record inserted PHIs.
2447 (eliminate): Eliminate redundant PHI nodes.
2448 (init_pre): Init inserted_phi_names.
2449
2450 2009-04-06 Richard Guenther <rguenther@suse.de>
2451
2452 PR tree-optimization/39643
2453 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
2454 IMAGPART_EXPRs of complex constants.
2455 (execute_fold_all_builtins): If we folded a call queue
2456 TODO_update_address_taken.
2457
2458 2009-04-06 Jan Hubicka <jh@suse.cz>
2459
2460 PR middle-end/39659
2461 * except.c (remove_unreachable_regions): Propagate may_contain_throw
2462 flag.
2463
2464 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
2465
2466 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
2467 delay slot.
2468 (ic_invalidate_array): Likewise.
2469
2470 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
2471
2472 * calls.c (emit_library_call_value_1): Fix a problem with parameter
2473 alignment for library calls.
2474
2475 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
2476
2477 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
2478 (mingw32 tm clause use_gcc_stdint): Set to wrap.
2479 * config/i386/mingw-stdint.h: New file.
2480
2481 2009-04-05 Richard Guenther <rguenther@suse.de>
2482
2483 PR tree-optimization/39648
2484 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
2485 our &A vs. &A[0] IL deficiencies.
2486
2487 2009-04-04 Jan Hubicka <jh@suse.cz>
2488
2489 * except.c (sjlj_find_directly_reachable_regions): Be ready for
2490 removed toplevel regions.
2491 (sjlj_mark_call_sites): Likewise.
2492
2493 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
2494
2495 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
2496 (cygwin tm clause use_gcc_stdint): Set to wrap.
2497 * config/i386/cygwin-stdint.h: New file.
2498
2499 2009-04-04 Richard Guenther <rguenther@suse.de>
2500
2501 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
2502 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
2503 single-argument PHIs if we are in loop-closed SSA form.
2504 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
2505 for the pre-condition.
2506 (slpeel_tree_peel_loop_to_edge): Likewise.
2507 (vect_build_loop_niters): Take an optional sequence to append stmts.
2508 (vect_generate_tmps_on_preheader): Likewise.
2509 (vect_do_peeling_for_loop_bound): Take extra guards for the
2510 pre-condition.
2511 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
2512 the cost model check.
2513 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
2514 guards if we are going to peel. Do not apply versioning in that case.
2515 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
2516 (vect_do_peeling_for_loop_bound): Likewise.
2517 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
2518 loop bound only record extra pre-conditions, do not apply loop
2519 versioning.
2520
2521 2009-04-04 Richard Guenther <rguenther@suse.de>
2522
2523 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
2524 renaming code.
2525
2526 2009-04-04 Jan Hubicka <jh@suse.cz>
2527
2528 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2529 last_basic_block for size of bb->index indexed array.
2530 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
2531 compute_out, link_btr_uses, build_btr_def_use_webs,
2532 build_btr_def_use_webs, migrate_btr_defs): Likewise.
2533
2534 2009-04-04 Jan Hubicka <jh@suse.cz>
2535
2536 * except.c (remove_eh_handler_and_replace): Break out from ...
2537 (remove_eh_handler): ... here.
2538 (bring_to_root): New function.
2539 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
2540 handled ones, bring others to root of tree.
2541
2542 2009-04-04 Jan Hubicka <jh@suse.cz>
2543
2544 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
2545 (all_phis_safe_to_merge): New function.
2546 (update_info): New structure.
2547 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
2548 (cleanup_empty_eh): Update SSA if possible.
2549
2550 2009-04-04 Richard Guenther <rguenther@suse.de>
2551
2552 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
2553 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
2554 (append_vuse): Likewise.
2555
2556 2009-04-04 Jakub Jelinek <jakub@redhat.com>
2557
2558 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
2559 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
2560 instead of REG_UNSAVED for DW_CFA_undefined.
2561 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
2562 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
2563 outermost frame.
2564
2565 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
2566
2567 PR target/39501
2568 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
2569 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
2570 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
2571
2572 2009-04-04 Richard Guenther <rguenther@suse.de>
2573
2574 PR tree-optimization/8781
2575 PR tree-optimization/37892
2576 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
2577 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
2578 (valueize_refs): Call it for *& valueizations.
2579 (shared_reference_ops_from_ref): Rename to ...
2580 (valueize_shared_reference_ops_from_ref): ... this and valueize.
2581 (shared_reference_ops_from_call): Rename to ...
2582 (valueize_shared_reference_ops_from_call): ... this and valueize.
2583 (vn_reference_lookup): Update.
2584 (visit_reference_op_call): Likewise.
2585 * tree-ssa-pre.c (phi_translate_1): Fold *&.
2586 (eliminate): Value-replace the call address in call statements.
2587
2588 2009-04-04 Richard Guenther <rguenther@suse.de>
2589
2590 PR tree-optimization/39636
2591 * tree-ssa-forwprop.c
2592 (forward_propagate_addr_into_variable_array_index): Check for
2593 GIMPLE_ASSIGN before accessing the rhs code.
2594
2595 2009-04-03 Jason Merrill <jason@redhat.com>
2596
2597 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
2598
2599 2009-04-03 Steve Ellcey <sje@cup.hp.com>
2600
2601 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
2602 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
2603 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
2604 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
2605 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
2606 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
2607 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
2608 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
2609 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
2610 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
2611 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
2612 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
2613 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
2614 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
2615 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
2616 Use fr_reg_or_fp01_operand instead of fr_register_operand
2617
2618 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
2619 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
2620 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
2621
2622 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
2623
2624 PR rtl-optimization/39607
2625 PR rtl-optimization/39631
2626
2627 Revert:
2628
2629 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
2630 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
2631 instead of DF_LR_OUT.
2632 * ira-lives.c (process_bb_node_lives): Ditto.
2633 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
2634 instead of DF_LR_{OUT,IN}.
2635 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
2636 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
2637
2638 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
2639
2640 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
2641 (execute_lower_omp): Always run but take the short way out if -fopenmp
2642 is not given.
2643 (gate_lower_omp): Remove, forcing the pass manager to always run the
2644 pass and always set PROP_gimple_lomp.
2645 (pass_lower_omp): Remove gate function.
2646 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
2647 PROP_trees. Instead, require it.
2648 * ipa-cp.c (pass_ipa_cp): Likewise.
2649 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
2650 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
2651 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
2652 and PROP_gimple_leh.
2653
2654 2009-04-03 Richard Guenther <rguenther@suse.de>
2655
2656 PR middle-end/13146
2657 PR tree-optimization/23940
2658 PR tree-optimization/33237
2659 PR middle-end/33974
2660 PR middle-end/34093
2661 PR tree-optimization/36201
2662 PR tree-optimization/36230
2663 PR tree-optimization/38049
2664 PR tree-optimization/38207
2665 PR tree-optimization/38230
2666 PR tree-optimization/38301
2667 PR tree-optimization/38585
2668 PR middle-end/38895
2669 PR tree-optimization/38985
2670 PR tree-optimization/39299
2671 * tree-ssa-structalias.h: Remove.
2672 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
2673 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
2674 (struct vuse_element_d): Remove.
2675 (struct vuse_vec_d): Likewise.
2676 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
2677 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
2678 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
2679 VUSE_ELEMENT_VAR): Likewise.
2680 (struct voptype_d): Likewise.
2681 (NUM_VOP_FREE_BUCKETS): Likewise.
2682 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
2683 (struct stmt_operands_d): Remove.
2684 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
2685 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
2686 VDEF_NUM, VDEF_VECT): Likewise.
2687 (copy_virtual_operands): Remove.
2688 (operand_build_cmp): Likewise.
2689 (create_ssa_artificial_load_stmt): Likewise.
2690 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
2691 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
2692 vuse_index and mayuse_index members. Pack and move done and iter_type
2693 members to the front.
2694 (SSA_OP_VMAYUSE): Remove.
2695 (SSA_OP_VIRTUAL_USES): Adjust.
2696 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
2697 (unlink_stmt_vdef): Declare.
2698 (add_to_addressable_set): Remove.
2699 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
2700 (vrp_visit_stmt): Likewise.
2701 * doc/tree-ssa.texi (Alias analysis): Update.
2702 * doc/invoke.texi (max-aliased-vops): Remove docs.
2703 (avg-aliased-vops): Likewise.
2704 * tree-into-ssa.c (syms_to_rename): Remove.
2705 (need_to_update_vops_p): Likewise.
2706 (need_to_initialize_update_ssa_p): Rename to ...
2707 (update_ssa_initialized_fn): ... this. Track function we are
2708 initialized for.
2709 (symbol_marked_for_renaming): Simplify.
2710 (add_new_name_mapping): Do not set need_to_update_vops_p.
2711 (dump_currdefs): Use SYMS_TO_RENAME.
2712 (rewrite_update_stmt): Always walk all uses/defs.
2713 (dump_update_ssa): Adjust.
2714 (init_update_ssa): Take function argument. Track what we are
2715 initialized for.
2716 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
2717 (create_new_def_for): Initialize for cfun, assert we are initialized
2718 for cfun.
2719 (mark_sym_for_renaming): Simplify.
2720 (mark_set_for_renaming): Do not initialize update-ssa.
2721 (need_ssa_update_p): Simplify. Take function argument.
2722 (name_mappings_registered_p): Assert we ask for the correct function.
2723 (name_registered_for_update_p): Likewise.
2724 (ssa_names_to_replace): Likewise.
2725 (release_ssa_name_after_update_ssa): Likewise.
2726 (update_ssa): Likewise. Use SYMS_TO_RENAME.
2727 (dump_decl_set): Do not print a newline.
2728 (debug_decl_set): Do it here.
2729 (dump_update_ssa): And here.
2730 * tree-ssa-loop-im.c (move_computations): Adjust.
2731 (movement_possibility): Likewise.
2732 (determine_max_movement): Likewise.
2733 (gather_mem_refs_stmt): Likewise.
2734 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
2735 or NAME_MEMORY_TAG.
2736 * tree-complex.c (update_all_vops): Remove.
2737 (expand_complex_move): Adjust.
2738 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
2739 Simplify test for memory referencing statement. Exclude
2740 non-invariant ADDR_EXPRs.
2741 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
2742 * tree-loop-distribution.c (generate_memset_zero): Adjust.
2743 (rdg_flag_uses): Likewise.
2744 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
2745 related code.
2746 (tree_optimize_tail_calls_1): Also split the
2747 edge from the entry block if we have degenerate PHI nodes in
2748 the first basic block.
2749 * tree.c (init_ttree): Remove memory-tag related code.
2750 (tree_code_size): Likewise.
2751 (tree_node_structure): Likewise.
2752 (build7_stat): Re-write to be build6_stat.
2753 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
2754 (SSA_VAR_P): Adjust.
2755 (struct tree_memory_tag): Remove.
2756 (struct tree_memory_partition_tag): Likewise.
2757 (union tree_node): Adjust.
2758 (build7): Re-write to be build6.
2759 * tree-pass.h (pass_reset_cc_flags): Remove.
2760 (TODO_update_address_taken): New flag.
2761 (pass_simple_dse): Remove.
2762 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
2763 * params.h (MAX_ALIASED_VOPS): Remove.
2764 (AVG_ALIASED_VOPS): Likewise.
2765 * omp-low.c (expand_omp_taskreg): Update SSA form.
2766 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
2767 aliases the lhs in a copy stmt.
2768 * tree-ssa-dse.c (struct address_walk_data): Remove.
2769 (memory_ssa_name_same): Likewise.
2770 (memory_address_same): Likewise.
2771 (get_kill_of_stmt_lhs): Likewise.
2772 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
2773 unused stores. Look through PHI nodes into post-dominated regions.
2774 (dse_optimize_stmt): Simplify. Properly remove stores.
2775 (tree_ssa_dse): Compute dominators.
2776 (execute_simple_dse): Remove.
2777 (pass_simple_dse): Likewise.
2778 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
2779 gimple_loaded_syms and gimple_stored_syms computation.
2780 * toplev.c (dump_memory_report): Dump alias and pta stats.
2781 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
2782 (vn_reference_eq): Likewise.
2783 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
2784 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
2785 valueize_vuses): Remove.
2786 (get_def_ref_stmt_vuses): Simplify. Rename to ...
2787 (get_def_ref_stmt_vuse): ... this.
2788 (vn_reference_lookup_2): New function.
2789 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
2790 walking equivalent vuses. Simplify.
2791 (vn_reference_lookup): Likewise.
2792 (vn_reference_insert): Likewise.
2793 (vn_reference_insert_pieces): Likewise.
2794 (visit_reference_op_call): Simplify.
2795 (visit_reference_op_load): Likewise.
2796 (visit_reference_op_store): Likewise.
2797 (init_scc_vn): Remove shared_lookup_vuses initialization.
2798 (free_scc_vn): Remove shared_lookup_vuses freeing.
2799 (sort_vuses, sort_vuses_heap): Remove.
2800 (get_ref_from_reference_ops): Export.
2801 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
2802 vector with single vuse pointer.
2803 (vn_reference_lookup_pieces, vn_reference_lookup,
2804 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
2805 (shared_vuses_from_stmt): Remove.
2806 (get_ref_from_reference_ops): Declare.
2807 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
2808 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
2809 memory-tag related code.
2810 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
2811 (likely_value): Add comment, skip static-chain of call statements.
2812 (surely_varying_stmt_p): Adjust.
2813 (gimplify_and_update_call_from_tree): Likewise.
2814 (execute_fold_all_builtins): Do not rebuild alias info.
2815 (gimplify_and_update_call_from_tree): Properly update VOPs.
2816 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
2817 (copy_ref_info): Remove memory-tag related code.
2818 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
2819 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
2820 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
2821 computation.
2822 * tree-ssa-dom.c (gimple_p): Remove typedef.
2823 (eliminate_redundant_computations): Adjust.
2824 (record_equivalences_from_stmt): Likewise.
2825 (avail_expr_hash): Likewise.
2826 (avail_expr_eq): Likewise.
2827 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
2828 (stmt_makes_single_load): Likewise.
2829 (stmt_makes_single_store): Likewise.
2830 * tree-ssa-alias.c: Rewrite completely.
2831 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
2832 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
2833 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
2834 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
2835 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
2836 Remove public functions.
2837 (pass_reset_cc_flags): Remove.
2838 (pass_build_alias): Move ...
2839 * tree-ssa-structalias.c (pass_build_alias): ... here.
2840 * tree-ssa-alias.c (may_be_aliased): Move ...
2841 * tree-flow-inline.h (may_be_aliased): ... here.
2842 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
2843 count_uses_and_derefs): Move ...
2844 * gimple.c: ... here.
2845 * gimple.h (count_uses_and_derefs): Declare.
2846 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
2847 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
2848 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
2849 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
2850 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
2851 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
2852 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
2853 New functions.
2854 * tree-dfa.c (refs_may_alias_p): Move ...
2855 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
2856 * tree-ssa-alias.h: New file.
2857 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
2858 (statement_sink_location): Likewise.
2859 * opts.c (decode_options): Do not adjust max-aliased-vops or
2860 avg-aliased-vops values.
2861 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
2862 (TV_CALL_CLOBBER): Likewise.
2863 (TV_FLOW_SENSITIVE): Likewise.
2864 (TV_FLOW_INSENSITIVE): Likewise.
2865 (TV_MEMORY_PARTITIONING): Likewise.
2866 (TV_ALIAS_STMT_WALK): New timevar.
2867 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
2868 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
2869 (get_address_description): Remove memory-tag related code.
2870 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
2871 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
2872 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
2873 and immediate uses in statements. Document.
2874 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
2875 (dump_symbols): Remove.
2876 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
2877 * alias.c (get_deref_alias_set): New function split out from ...
2878 (get_alias_set): ... here.
2879 * alias.h (get_deref_alias_set): Declare.
2880 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
2881 type parameter. Remove restrict pointer handling. Create a
2882 ref-all pointer in case type-based alias sets do not conflict.
2883 (vect_analyze_data_refs): Remove SMT related code.
2884 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
2885 (vectorizable_load): Likewise.
2886 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
2887 (DR_SYMBOL_TAG, DR_VOPS): Remove.
2888 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
2889 Ignore vops and SMTs.
2890 (dr_analyze_alias): Likewise..
2891 (free_data_ref): Likewise.
2892 (create_data_ref): Likewise.
2893 (analyze_all_data_dependences): Likewise.
2894 (get_references_in_stmt): Adjust.
2895 * tree-flow-inline.h (gimple_aliases_computed_p,
2896 gimple_addressable_vars, gimple_call_clobbered_vars,
2897 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
2898 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
2899 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
2900 gimple_mem_ref_stats): Remove.
2901 (gimple_vop): New function.
2902 (op_iter_next_use): Remove vuses and mayuses cases.
2903 (op_iter_next_def): Remove vdefs case.
2904 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
2905 (clear_and_done_ssa_iter): Do not set removed fields.
2906 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
2907 Assert we are not iterating over vuses or vdefs if not also
2908 iterating over uses or defs.
2909 (op_iter_init_use): Likewise.
2910 (op_iter_init_def): Likewise.
2911 (op_iter_next_vdef): Remove.
2912 (op_iter_next_mustdef): Likewise.
2913 (op_iter_init_vdef): Likewise.
2914 (compare_ssa_operands_equal): Likewise.
2915 (link_use_stmts_after): Handle vuse operand.
2916 (is_call_used): Use is_call_clobbered.
2917 (is_call_clobbered): Global variables are always call clobbered,
2918 query the call-clobbers bitmap.
2919 (mark_call_clobbered): Ignore global variables.
2920 (clear_call_clobbered): Likewise.
2921 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
2922 virtual operands sanity check.
2923 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
2924 Remove.
2925 (TARGET_MEM_REF): Remove TMR_TAG operand.
2926 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
2927 Remove call-clobber related code.
2928 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
2929 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
2930 partitions or escape reason.
2931 (get_single_def_stmt, get_single_def_stmt_from_phi,
2932 get_single_def_stmt_with_phi): Remove.
2933 (dump_referenced_vars): Tidy.
2934 (get_ref_base_and_extent): Allow bare decls.
2935 (collect_dfa_stats): Adjust.
2936 * graphite.c (rename_variables_in_stmt): Adjust.
2937 (graphite_copy_stmts_from_block): Likewise.
2938 (translate_clast): Likewise.
2939 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
2940 (EXPR_DIES): New.
2941 (translate_vuse_through_block): Use the oracle.
2942 (phi_translate_1): Adjust.
2943 (value_dies_in_block_x): Use the oracle. Cache the outcome
2944 in EXPR_DIES.
2945 (valid_in_sets): Check if the VUSE for
2946 a REFERENCE is available.
2947 (eliminate): Do not remove stmts during elimination,
2948 instead queue and remove them afterwards.
2949 (do_pre): Do not rebuild alias info.
2950 (pass_pre): Run TODO_rebuild_alias before PRE.
2951 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
2952 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
2953 (mark_all_v_defs_stmt): Remove.
2954 (mark_all_v_defs_seq): Adjust.
2955 (sra_replace): Likewise.
2956 (scalarize_use): Likewise.
2957 (scalarize_copy): Likewise.
2958 (scalarize_init): Likewise.
2959 (scalarize_ldst): Likewise.
2960 (todoflags): Remove.
2961 (tree_sra): Do not rebuild alias info.
2962 (tree_sra_early): Adjust.
2963 (pass_sra): Run TODO_update_address_taken before SRA.
2964 * tree-predcom.c (set_alias_info): Remove.
2965 (prepare_initializers_chain): Do not call it.
2966 (mark_virtual_ops_for_renaming): Adjust.
2967 (mark_virtual_ops_for_renaming_list): Remove.
2968 (initialize_root_vars): Adjust.
2969 (initialize_root_vars_lm): Likewise.
2970 (prepare_initializers_chain): Likewise.
2971 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
2972 (may_propagate_copy_into_stmt): Likewise.
2973 (merge_alias_info): Do nothing for now.
2974 (propagate_tree_value_into_stmt): Adjust.
2975 (stmt_may_generate_copy): Likewise.
2976 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
2977 not mark symbols for renaming.
2978 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
2979 with the same statement, make sure to update the new pointed-to one.
2980 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
2981 call statements, do not mark symbols for renaming.
2982 (mark_operand_necessary): Dump something.
2983 (ref_may_be_aliased): New function.
2984 (mark_aliased_reaching_defs_necessary_1): New helper function.
2985 (mark_aliased_reaching_defs_necessary): Likewise.
2986 (mark_all_reaching_defs_necessary_1): Likewise.
2987 (mark_all_reaching_defs_necessary): Likewise.
2988 (propagate_necessity): Do not process virtual PHIs. For
2989 non-aliased loads mark all reaching definitions as necessary.
2990 For aliased loads and stores mark the immediate dominating
2991 aliased clobbers as necessary.
2992 (visited): New global static.
2993 (perform_tree_ssa_dce): Free visited bitmap after propagating
2994 necessity.
2995 (remove_dead_phis): Perform simple dead virtual PHI removal.
2996 (remove_dead_stmt): Properly unlink virtual operands when
2997 removing stores.
2998 (eliminate_unnecessary_stmts): Schedule PHI removal after
2999 stmt removal.
3000 * tree-ssa-ter.c (is_replaceable_p): Adjust.
3001 (process_replaceable): Likewise.
3002 (find_replaceable_in_bb): Likewise.
3003 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
3004 based on the single gimple vop.
3005 (verify_flow_insensitive_alias_info): Remove.
3006 (verify_flow_sensitive_alias_info): Likewise.
3007 (verify_call_clobbering): Likewise.
3008 (verify_memory_partitions): Likewise.
3009 (verify_alias_info): Likewise.
3010 (verify_ssa): Adjust..
3011 (execute_update_addresses_taken): Export. Update SSA
3012 manually. Optimize only when optimizing. Use a local bitmap.
3013 (pass_update_address_taken): Remove TODO_update_ssa, add
3014 TODO_dump_func.
3015 (pass_update_address_taken): Just use TODO_update_address_taken.
3016 (init_tree_ssa): Do not initialize addressable_vars.
3017 (verify_ssa): Verify new VUSE / VDEF properties.
3018 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
3019 Do not call verify_alias_info.
3020 (delete_tree_ssa): Clear the VUSE, VDEF operands.
3021 Do not free the loaded and stored syms bitmaps. Reset the escaped
3022 and callused solutions. Do not free addressable_vars.
3023 Remove memory-tag related code.
3024 (warn_uninitialized_var): Aliases are always available.
3025 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
3026 * lambda-code.c (can_put_in_inner_loop): Adjust.
3027 (can_put_after_inner_loop): Likewise.
3028 (perfect_nestify): Likewise.
3029 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
3030 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
3031 (vectorizable_conversion): Do not mark symbols for renaming.
3032 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
3033 (expand_call_inline): Unlink the calls virtual operands before
3034 replacing it.
3035 (tree_function_versioning): Do not call update_ssa if we are not
3036 updating clones. Simplify.
3037 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
3038 (propagate_with_phi): Likewise..
3039 * tree-outof-ssa.c (create_temp): Remove memory tag and call
3040 clobber code. Assert we are not aliased or global.
3041 * tree-flow.h: Include tree-ssa-alias.h
3042 (enum escape_type): Remove.
3043 (struct mem_sym_stats_d): Likewise.
3044 (struct mem_ref_stats_d): Likewise.
3045 (struct gimple_df): Add vop member. Remove global_var,
3046 call_clobbered_vars, call_used_vars, addressable_vars,
3047 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
3048 escaped and callused members.
3049 (struct ptr_info_def): Remove all members, add points-to solution
3050 member pt.
3051 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
3052 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
3053 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
3054 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
3055 (tree-ssa-alias.o): Likewise.
3056 (toplev.o): Add tree-ssa-alias.h
3057 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
3058 * gimple.c (gimple_set_bb): Fix off-by-one error.
3059 (is_gimple_reg): Do not handle memory tags.
3060 (gimple_copy): Also copy virtual operands.
3061 Delay updating the statement. Do not reset loaded and stored syms.
3062 (gimple_set_stored_syms): Remove.
3063 (gimple_set_loaded_syms): Likewise.
3064 (gimple_call_copy_skip_args): Copy the virtual operands
3065 and mark the new statement modified.
3066 * tree-ssa-structalias.c (may_alias_p): Remove.
3067 (set_uids_in_ptset): Take the alias set to prune with as
3068 parameter. Fold in the alias test of may_alias_p.
3069 (compute_points_to_sets): Compute whether a ptr is dereferenced
3070 in a local sbitmap.
3071 (process_constraint): Deal with &ANYTHING on the lhs, reject all
3072 other ADDRESSOF constraints on the lhs.
3073 (get_constraint_for_component_ref): Assert that we don't get
3074 ADDRESSOF constraints from the base of the reference.
3075 Properly generate UNKNOWN_OFFSET for DEREF if needed.
3076 (struct variable_info): Remove collapsed_to member.
3077 (get_varinfo_fc): Remove.
3078 (new_var_info): Do not set collapsed_to.
3079 (dump_constraint): Do not follow cycles.
3080 (dump_constraint_graph): Likewise.
3081 (build_pred_graph): Likewise.
3082 (build_succ_graph): Likewise.
3083 (rewrite_constraints): Likewise.
3084 (do_simple_structure_copy): Remove.
3085 (do_rhs_deref_structure_copy): Remove.
3086 (do_lhs_deref_structure_copy): Remove.
3087 (collapse_rest_of_var): Remove.
3088 (do_structure_copy): Re-implement.
3089 (pta_stats): New global variable.
3090 (dump_pta_stats): New function.
3091 (struct constraint_expr): Make offset signed.
3092 (UNKNOWN_OFFSET): Define special value.
3093 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
3094 (solution_set_expand): New helper function split out from ...
3095 (do_sd_constraint): ... here.
3096 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
3097 (do_ds_constraint): Likewise.
3098 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
3099 and CALLUSED = *CALLUSED.
3100 (set_union_with_increment): Make inc argument signed.
3101 (type_safe): Remove.
3102 (get_constraint_for_ptr_offset): Handle unknown and negative
3103 constant offsets.
3104 (first_vi_for_offset): Handle offsets before start. Bail
3105 out early for offsets beyond the variable extent.
3106 (first_or_preceding_vi_for_offset): New function.
3107 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
3108 Together with ESCAPED = *ESCAPED this properly computes reachability.
3109 (find_what_var_points_to): New function.
3110 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
3111 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
3112 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
3113 pt_solutions_intersect): New functions.
3114 (compute_call_used_vars): Remove.
3115 (compute_may_aliases): New main entry into PTA computation.
3116 * gimple.h (gimple_p): New typedef.
3117 (struct gimple_statement_base): Remove references_memory_p.
3118 (struct gimple_statement_with_memory_ops_base): Remove
3119 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
3120 members.
3121 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
3122 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
3123 gimple_set_references_memory): Remove.
3124 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
3125 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
3126 New functions.
3127 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
3128 (verify_expr): Allow RESULT_DECL.
3129 (gimple_duplicate_bb): Do not copy virtual operands.
3130 (gimple_duplicate_sese_region): Adjust.
3131 (gimple_duplicate_sese_tail): Likewise.
3132 (mark_virtual_ops_in_region): Remove.
3133 (move_sese_region_to_fn): Do not call it.
3134 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3135 and pass_simple_dse.
3136 (execute_function_todo): Handle TODO_update_address_taken,
3137 call execute_update_addresses_taken for TODO_rebuild_alias.
3138 (execute_todo): Adjust.
3139 (execute_one_pass): Init dump files early.
3140 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3141 call-clobbered.
3142 (create_general_new_stmt): Clear vops.
3143 * tree-ssa-reassoc.c (get_rank): Adjust.
3144 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3145 symbols for renaming.
3146 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3147 (PARAM_AVG_ALIASED_VOPS): Likewise.
3148 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3149 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3150 * tree-ssa-operands.c: Simplify for new virtual operand representation.
3151 (operand_build_cmp, copy_virtual_operands,
3152 create_ssa_artificial_load_stmt, add_to_addressable_set,
3153 gimple_add_to_addresses_taken): Remove public functions.
3154 (unlink_stmt_vdef): New function.
3155
3156 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3157
3158 * config.gcc (powerpc-*-linux*): Merge variants.
3159
3160 2009-04-02 Chao-ying Fu <fu@mips.com>
3161 James Grosbach <james.grosbach@microchip.com>
3162
3163 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3164 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3165 cop0_sp_offset.
3166 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3167 keep_interrupts_masked_p, use_debug_exception_return_p.
3168 (mips_attribute_table): Add interrupt, use_shadow_register_set,
3169 keep_interrupts_masked, use_debug_exception_return.
3170 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3171 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3172 New functions.
3173 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3174 (mips_print_operand): Process COP0 registers to print $0 .. $31
3175 correctly for GAS to process.
3176 (mips_interrupt_extra_call_saved_reg_p): New function.
3177 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3178 extra registers.
3179 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3180 (mips_compute_frame_info): Add supports for interrupt context that
3181 includes doubleword accumulators and COP0 registers.
3182 (mips_for_each_saved_acc): New function.
3183 (mips_for_each_saved_gpr_and_fpr): Change the function name from
3184 mips_for_each_saved_reg.
3185 (mips_save_reg): Save accumulators.
3186 (mips_kernel_reg_p): A new for_each_rtx callback.
3187 (mips_expand_prologue): Support interrupt handlers.
3188 (mips_restore_reg): Restore accumulators.
3189 (mips_expand_epilogue): Support interrupt handlers.
3190 (mips_can_use_return_insn): Return false for interrupt handlers.
3191 (mips_epilogue_uses): New function.
3192 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3193 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3194 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3195 cop0_move): New instructions.
3196 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3197 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3198 defines.
3199 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3200 New defines.
3201 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3202 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3203 interrupt handlers, we use K0 as the temporary register.
3204 (EPILOGUE_USES): Change to a function call.
3205 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3206 handlers, we use K0 as the temporary register.
3207
3208 * doc/extend.texi (Function Attributes): Document interrupt,
3209 use_shadow_register_set, keep_interrupts_masked,
3210 use_debug_exception_return for MIPS attributes.
3211
3212 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3213
3214 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3215 Remove a number of t-files from tmake_file.
3216 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3217 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3218 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3219 target_prototype, not TARGET_PROTOTYPE.
3220 (LINK_OS_GNU_SPEC): Define.
3221 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3222 and darwin-ldoubdle.c.
3223
3224 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3225
3226 PR driver/39293
3227 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3228 (cpp_options): Ditto.
3229 (default_compilers): Ditto.
3230 (display_help): Ditto.
3231 (process_command): Ditto.
3232 (do_spec_1): Ditto.
3233 (set_input): Use lbasename instead of duplicate code.
3234 (save_temps_prefix): New static for -save-temps=obj.
3235 (save_temps_length): Ditto.
3236
3237 * doc/invoke.texi (-save-temps=obj): Document new variant to
3238 -save-temps switch.
3239
3240 2009-04-02 Jeff Law <law@redhat.com>
3241
3242 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3243 variable.
3244
3245 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3246
3247 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3248 * configure: Regenerated.
3249
3250 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3251
3252 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3253 share the argument list.
3254
3255 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3256
3257 Merge
3258
3259 2009-02-12 Diego Novillo <dnovillo@google.com>
3260
3261 * varpool.c (debug_varpool): New.
3262 * cgraph.h (debug_varpool): Declare.
3263
3264 2009-04-02 Jan Hubicka <jh@suse.cz>
3265
3266 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3267 pass.
3268
3269 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3270
3271 * config/i386/i386.c (ix86_abi): Move initialization to ...
3272 (override_options): Here.
3273
3274 2009-04-02 Christian Bruel <christian.bruel@st.com>
3275
3276 * config/sh/sh.c (sh_dwarf_register_span): New function.
3277 (TARGET_DWARF_REGISTER_SPAN): Define.
3278 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3279
3280 2009-04-02 Ira Rosen <irar@il.ibm.com>
3281
3282 PR tree-optimization/39595
3283 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3284 interleaved loads group is not greater than the SLP group size.
3285
3286 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3287
3288 * builtins.c (is_builtin_name): New.
3289 (called_as_built_in): Use is_builtin_name.
3290 * tree.h (is_builtin_name): New.
3291 * varasm.c (incorporeal_function_p): Use is_builtin_name
3292
3293 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
3294
3295 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3296
3297 2009-04-02 Dodji Seketeli <dodji@redhat.com>
3298
3299 PR c++/26693
3300 * c-decl.c (clone_underlying_type): Move this ...
3301 * c-common.c (set_underlying_type): ... here.
3302 Also, make sure the function properly sets TYPE_STUB_DECL() on
3303 the newly created typedef variant type.
3304 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3305 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3306 points.
3307
3308 2009-04-02 Richard Guenther <rguenther@suse.de>
3309
3310 PR tree-optimization/37221
3311 * tree-flow.h (degenerate_phi_result): Declare.
3312 * tree-ssa-dom.c (degenerate_phi_result): Export.
3313 * tree-scalar-evolution.c (analyze_initial_condition): If
3314 the initial condition is defined by a degenerate PHI node
3315 use the degenerate value.
3316
3317 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
3318
3319 PR rtl-optimization/39588
3320 * combine.c (merge_outer_ops): Do not set the constant when this
3321 is not necessary.
3322 (simplify_shift_const_1): Do not modify it either in this case.
3323
3324 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
3325
3326 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3327 tuning is deprecated if -mtune value is set to an Itanium1 variant.
3328
3329 2009-04-01 Janis Johnson <janis187@us.ibm.com>
3330
3331 PR c/29027
3332 * c-lex.c (interpret_float): Default (no suffix) is double.
3333
3334 2009-04-1 Xinliang David Li <davidxl@google.com>
3335
3336 * config/i386/i386.c (legitimate_constant_p): Recognize
3337 all one vector constant.
3338
3339 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3340
3341 * gcc/config/vax/vax.c: Add #includes to silence warnings.
3342 Change #include order to silence two warnings.
3343
3344 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3345
3346 * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3347 (ASM_SPEC): Pass -k to the assembler for PIC code.
3348
3349 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3350
3351 * gcc/config.gcc: Add vax-*-linux* to the switch.
3352 * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3353 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3354
3355 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3356
3357 * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3358 Use predicate macros instead of GET_CODE() == foo.
3359 * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3360 ashlsi3, rotrsi3, <unnamed>): Likewise.
3361
3362 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3363
3364 * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3365 jbbccihi, jbbccisi): Remova trailing whitespace.
3366 * gcc/config/vax/constraints.md: Likewise.
3367 * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3368 * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3369 * gcc/config/vax/predicates.md: Likewise.
3370 * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3371 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3372 * gcc/config/vax/vax.h: Likewise.
3373 * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3374
3375 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3376
3377 * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3378 (indirectable_address_p, adjacent_operands_p): Add spaces around
3379 braces.
3380 * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3381
3382 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3383
3384 * gcc/config/vax/vax.c (legitimate_constant_address_p,
3385 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3386 index_term_p, reg_plus_index_p, legitimate_address_p,
3387 vax_mode_dependent_address_p): Update comments to match functions
3388 modified by the recent int->bool conversion.
3389
3390 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3391
3392 * gcc/config/vax/builtins.md: Update copyright message.
3393 * gcc/config/vax/constraints.md: Likewise.
3394 * gcc/config/vax/netbsd-elf.h: Likewise.
3395 * gcc/config/vax/predicates.md: Likewise.
3396 * gcc/config/vax/vax-protos.h: Likewise.
3397 * gcc/config/vax/vax.c: Likewise.
3398 * gcc/config/vax/vax.h: Likewise.
3399 * gcc/config/vax/vax.md: Likewise.
3400 * gcc/config/vax/vax.opt: Likewise.
3401
3402 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3403
3404 * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3405 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3406 * gcc/config/vax/constraints.md (B, R): Likewise.
3407 * gcc/config/vax/predicates.md (external_memory_operand,
3408 nonimmediate_addsub_di_operand): Likewise.
3409 * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3410 * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3411 untyped_call): Likewise.
3412
3413 2009-04-01 Matt Thomas <matt@3am-software.com>
3414
3415 * config/vax/predicates.md: New file.
3416 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3417 external_const_operand, nonsymbolic_operand, external_memory_operand,
3418 indirect_memory_operand, indexed_memory_operand,
3419 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3420 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3421 predicate.
3422 * config/vax/constraints.md: New file.
3423 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3424 New constraint.
3425 * config/vax/builtins.md: New file.
3426 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3427 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3428 jbbccisi): Define.
3429 * config/vax/vax.opt (mqmath): Add option.
3430 * config/vax/vax.md (isfx): Extend with DI.
3431 (VAXintQH, VAXintQHSD): Define.
3432 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3433 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3434 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3435 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3436 (movdi): Update constraints and use vax_output_int_move().
3437 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3438 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3439 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3440 nonlocal_goto): New.
3441 (mov<mode>): Extend accepted operand types.
3442 (subdi3_old): Rename from subdi3, change update constraints and use
3443 a new implementation.
3444 * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3445 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3446 MOVE_RATIO, CLEAR_RATIO): Define.
3447 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3448 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3449 (PRINT_OPERAND): Redefine using a function instead of inlined code.
3450 * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3451 (split_quadword_operands): Make static and really allow variable
3452 splitting.
3453 (print_operand_address): Update for PIC generation.
3454 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3455 indexable_address_p, fixup_mathdi_operand,
3456 vax_expand_addsub_di_operands, adjacent_operands_p): New.
3457 (vax_float_literal, legitimate_constant_p,
3458 indirectable_constant_address_p, index_term_p,
3459 reg_plus_index_p): Return bool instead of int.
3460 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3461 where needed.
3462 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3463 generation.
3464 (vax_output_conditional_branch): Indent.
3465 (legitimate_constant_address_p, indirectable_constant_address_p,
3466 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3467 vax_mode_dependent_address_p): Return bool instead of int, update for
3468 PIC generation.
3469 * config/vax/vax-protos.h (legitimate_constant_address_p,
3470 legitimate_constant_p, legitimate_address_p,
3471 vax_mode_dependent_address_p): Change declaration to bool.
3472 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
3473 vax_expand_addsub_di_operands, vax_output_int_subtract,
3474 vax_output_movmemsi): Declare.
3475 (split_quadword_operands, vax_float_literal): Delete declaration.
3476 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
3477 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
3478 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
3479 ASM_OUTPUT_DWARF_PCREL): Define.
3480 (ASM_SPEC): Change definition to allow PIC generation.
3481
3482 2009-04-01 Steve Ellcey <sje@cup.hp.com>
3483
3484 * doc/sourcebuild.texi: Update front-end requirements.
3485
3486 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3487
3488 PR target/39226
3489 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
3490 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
3491 (booldi3_internal3): Use boolean_or_operator instead of
3492 boolean_operator.
3493
3494 2009-04-01 Joseph Myers <joseph@codesourcery.com>
3495
3496 PR c/39605
3497 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
3498 declarator whose size is not an integer constant expression but
3499 folds to an integer constant, then treat it as a constant
3500 subsequently.
3501
3502 2009-04-01 Richard Guenther <rguenther@suse.de>
3503
3504 * fold-const.c (fold_plusminus_mult_expr): Do not fold
3505 i * 4 + 2 to (i * 2 + 1) * 2.
3506
3507 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3508
3509 PR c/37772
3510 * c-parser.c (c_parser_asm_statement): Skip until close paren and
3511 return if c_parser_asm_string_literal returned NULL.
3512
3513 2009-04-01 Nick Clifton <nickc@redhat.com>
3514
3515 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
3516 already defined.
3517 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
3518 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
3519 other typedefs to avoid conflicts with libgcc2.c. Define labels
3520 to gain 16-bit bit-manipulation functions from libgcc2.c and then
3521 include it.
3522 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
3523 to gain 16-bit trapping arithmetic functions from libgcc2.c and
3524 then include it.
3525
3526 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
3527
3528 * varasm.c (default_function_rodata_section): Declare DOT as
3529 const char*.
3530
3531 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
3532 Andrey Galkin <agalkin@hypercom.com>
3533
3534 PR/39492
3535 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3536 Make object_name unique for each process.
3537
3538 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3539
3540 PR other/39591
3541 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
3542 addressable variables in the parallel that could go out of scope while
3543 running queued tasks.
3544
3545 2009-04-01 Anatoly Sokolov <aesok@post.ru>
3546
3547 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
3548 (CASE_VALUES_THRESHOLD): Redefine.
3549 * config/avr/avr.c (avr_override_options): Remove initialization of
3550 avr_case_values_threshold variable.
3551 (avr_case_values_threshold): Remove variable. Add new function.
3552 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
3553 * config/avr/avr.opt (mno-tablejump): Remove option.
3554 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
3555
3556 2009-04-01 DJ Delorie <dj@redhat.com>
3557
3558 * varasm.c (default_function_rodata_section): Don't assume
3559 anything about where the first '.' in the section name is.
3560
3561 2009-04-01 Alan Modra <amodra@bigpond.net.au>
3562
3563 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
3564 rs6000_emit_stack_tie.
3565
3566 2009-03-31 Ian Lance Taylor <iant@google.com>
3567
3568 * tree-eh.c (tree_remove_unreachable_handlers): Compare
3569 gimple_code with GIMPLE_RESX, not RESX.
3570
3571 2009-03-31 Joseph Myers <joseph@codesourcery.com>
3572
3573 * c-common.c (c_get_ident): New.
3574 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
3575
3576 2009-04-01 Ben Elliston <bje@au.ibm.com>
3577
3578 * config/rs6000/sysv4.opt (msdata): Improve option description.
3579
3580 2009-03-31 Steve Ellcey <sje@cup.hp.com>
3581
3582 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
3583 (divdf3_internal_lat): Remove.
3584 (divxf3_internal_lat): Remove.
3585 (divxf3_internal_thr): Remove.
3586 (divxf): Use divxf3_internal.
3587 * config/ia64/div.md (divsf3_internal_lat): New.
3588 (divdf3_internal_lat): New.
3589 (divxf3_internal): New.
3590
3591 2009-03-31 Joseph Myers <joseph@codesourcery.com>
3592
3593 PR c/448
3594 * Makefile.in (USE_GCC_STDINT): Define.
3595 (stmp-int-hdrs): Install stdint.h if applicable.
3596 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
3597 if known.
3598 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
3599 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
3600 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
3601 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3602 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3603 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3604 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3605 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3606 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3607 (c_common_nodes_and_builtins): Initialize
3608 underlying_wchar_type_node. Do not initialize
3609 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
3610 nodes for new types.
3611 (c_stddef_cpp_builtins): Define macros for new types.
3612 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
3613 Remove.
3614 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
3615 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
3616 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
3617 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
3618 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
3619 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
3620 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
3621 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
3622 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
3623 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
3624 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
3625 int16_type_node, int32_type_node, int64_type_node,
3626 uint8_type_node, uint16_type_node, c_uint32_type_node,
3627 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
3628 int_least32_type_node, int_least64_type_node,
3629 uint_least8_type_node, uint_least16_type_node,
3630 uint_least32_type_node, uint_least64_type_node,
3631 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
3632 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
3633 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
3634 uintptr_type_node): Define.
3635 * c-cppbuiltin.c (builtin_define_constants,
3636 builtin_define_type_minmax): New.
3637 (builtin_define_stdint_macros): Define more macros.
3638 (c_cpp_builtins): Define more limit macros.
3639 (type_suffix): New.
3640 (builtin_define_type_max): Define in terms of
3641 builtin_define_type_minmax. Remove is_long parameter. All
3642 callers changed.
3643 * config.gcc (use_gcc_stdint): Define.
3644 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
3645 Add newlib-stdint.h for generic targets.
3646 * config/glibc-stdint.h, config/newlib-stdint.h,
3647 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
3648 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
3649 * config/score/score.h (UINTPTR_TYPE): Define.
3650 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
3651 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
3652 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3653 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3654 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3655 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3656 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3657 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3658 * config/spu/spu.h (STDINT_LONG32): Define.
3659 * configure.ac (use_gcc_stdint): Substitute.
3660 * configure: Regenerate.
3661 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
3662 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
3663 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
3664 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
3665 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
3666 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
3667 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
3668 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
3669 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
3670 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
3671 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
3672 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
3673 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
3674 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
3675 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
3676 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
3677 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
3678 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
3679 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
3680 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
3681 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
3682 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
3683 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
3684 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3685 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3686 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3687 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3688 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3689 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
3690
3691 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
3692
3693 * loop-iv.c (suitable_set_for_replacement): Renamed from
3694 simplify_using_assignment; changed to return bool and to accept new
3695 args DEST and SRC. Return true iff we find a source/destination pair
3696 that can be used to make a replacement, and fill SRC and DEST if so.
3697 Remove arg ALTERED. Don't deal with altered regs here. All callers
3698 changed.
3699 (simplify_using_initial_values): Deal with altered regs here and track
3700 more precisely the effect they have on the validity of our expression.
3701
3702 * loop-iv.c (simplify_using_condition): A condition of the form
3703 (EQ REG CONST) can be used to simply make a substitution.
3704 (simplify_using_initial_values): Keep track of conditions we have seen
3705 and keep using them to simplify new expressions, while applying the
3706 same substitutions to them as to the expression.
3707
3708 * simplify-rtx.c (simplify_relational_operation_1): Simplify
3709 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
3710 GEU/LTU reversed.
3711
3712 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
3713 changed. Use this when trying to improve the upper bound.
3714 Generate the comparison by using simplify_gen_relational.
3715
3716 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
3717
3718 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
3719 functions.
3720 (simplify_using_assignment, simplify_using_initial_values): Call
3721 replace_in_expr to make replacements. Call replace_single_def_regs
3722 once on the initial version of the expression.
3723
3724 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3725
3726 PR target/27237
3727 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
3728
3729 2009-03-31 Richard Guenther <rguenther@suse.de>
3730
3731 PR middle-end/31029
3732 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
3733 equality comparisons. Fold C - X CMP X if C % 2 == 1.
3734
3735 2009-03-31 Richard Guenther <rguenther@suse.de>
3736
3737 * tree.h (div_if_zero_remainder): Declare.
3738 * fold-const.c (div_if_zero_remainder): Export.
3739 * tree-ssa-forwprop.c
3740 (forward_propagate_addr_into_variable_array_index): Handle
3741 constant array index addition outside of the variable index.
3742
3743 2009-03-31 Joseph Myers <joseph@codesourcery.com>
3744
3745 PR target/39592
3746 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
3747 define_splits, floatunssi<mode>2): Require x87 conversions from
3748 DImode to be permitted.
3749
3750 2009-03-31 Joseph Myers <joseph@codesourcery.com>
3751
3752 PR preprocessor/15638
3753 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
3754
3755 2009-03-31 Richard Guenther <rguenther@suse.de>
3756
3757 PR middle-end/23401
3758 PR middle-end/27810
3759 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
3760 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
3761 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
3762 a separate statement.
3763 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
3764 (lookup_tmp_var): Likewise.
3765 (is_gimple_formal_tmp_or_call_rhs): Remove.
3766 (is_gimple_reg_or_call_rhs): Rename to ...
3767 (is_gimple_reg_rhs_or_call): ... this.
3768 (is_gimple_mem_or_call_rhs): Rename to ...
3769 (is_gimple_mem_rhs_or_call): ... this.
3770 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
3771 DECL_GIMPLE_REG_P only if is_formal is true.
3772 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
3773 for non-proper post-modify expression gimplification.
3774 (gimplify_self_mod_expr): For post-modify expressions gimplify
3775 the lvalue to a minimal lvalue.
3776 (rhs_predicate_for): Remove formal temp case.
3777 (gimplify_modify_expr_rhs): Likewise.
3778 (gimplify_addr_expr): Use is_gimple_reg.
3779 (gimplify_expr): Remove formal temp cases.
3780 (gimple_regimplify_operands): Likewise.
3781 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
3782 and FILTER_EXPR like constants.
3783 * gimple.c (walk_gimple_op): Fix val_only initialization, use
3784 is_gimple_reg.
3785 (is_gimple_formal_tmp_rhs): Remove.
3786 (is_gimple_reg_rhs): Remove special casing.
3787 (is_gimple_mem_rhs): Fix.
3788 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
3789 (is_gimple_formal_tmp_var): Remove.
3790 (is_gimple_formal_tmp_reg): Likewise.
3791 (is_gimple_min_lval): Allow invariant component ref parts.
3792 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
3793 is_gimple_formal_tmp_reg): Remove declarations.
3794 * tree-cfg.c (verify_expr): Verify that variables with address
3795 taken do not have DECL_GIMPLE_REG_P set.
3796 * tree-mudflap.c (mf_build_check_statement_for): Use
3797 force_gimple_operand instead of gimplify_expr.
3798
3799 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
3800
3801 * modulo-sched.c (sms_schedule_by_order): Pass the actual
3802 schedulable rows to compute_split_row.
3803
3804 2009-03-31 Ben Elliston <bje@au.ibm.com>
3805
3806 PR target/31635
3807 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
3808 OPT_mvrsave.
3809
3810 2009-03-31 Alan Modra <amodra@bigpond.net.au>
3811
3812 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
3813 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
3814 * configure: Regenerate.
3815 * config.in: Regenerate.
3816 * config/rs6000/rs6000.opt (mtls-markers): Add.
3817 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
3818 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
3819 (tls_ld_aix, tls_ld_sysv): Likewise.
3820 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
3821 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
3822
3823 2009-03-31 Alan Modra <amodra@bigpond.net.au>
3824
3825 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
3826
3827 2009-03-30 Jan Hubicka <jh@suse.cz>
3828
3829 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
3830 out of RESX.
3831 (tree_remove_unreachable_handlers): Cleanup EH predecestor
3832 detection and label handling.
3833
3834 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
3835
3836 * ira-int.h (ira_allocno): Rename left_conflicts_num to
3837 left_conflicts_size.
3838 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
3839 ALLOCNO_LEFT_CONFLICTS_SIZE.
3840
3841 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
3842 remove_allocno_from_bucket_and_push,
3843 allocno_spill_priority_compare, push_allocnos_to_stack,
3844 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
3845 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
3846 (setup_allocno_left_conflicts_num): Ditto. Rename to
3847 setup_allocno_left_conflicts_size.
3848 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
3849 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
3850 setup_allocno_left_conflicts_size instead of
3851 setup_allocno_left_conflicts_num.
3852
3853 * ira-build.c (ira_create_allocno): Use
3854 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
3855 ALLOCNO_LEFT_CONFLICTS_NUM.
3856
3857 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
3858
3859 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3860 instead of DF_LR_OUT.
3861
3862 * ira-lives.c (process_bb_node_lives): Ditto.
3863
3864 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3865 instead of DF_LR_{OUT,IN}.
3866
3867 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3868
3869 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3870
3871 2009-03-30 Jan Hubicka <jh@suse.cz>
3872
3873 * except.c (label_to_region_map): Fix thinko.
3874
3875 2009-03-30 Steve Ellcey <sje@cup.hp.com>
3876
3877 PR middle-end/38237
3878 * tree.h (tree_find_value): New declaration.
3879 * tree.c (tree_find_value): New function.
3880 * varasm.c (assemble_external): Avoid duplicate entries on lists.
3881
3882 2009-03-30 Jakub Jelinek <jakub@redhat.com>
3883
3884 PR debug/39563
3885 * c-decl.c (struct c_binding): Add locus field.
3886 (bind): Add locus argument, set locus field from it.
3887 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
3888 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
3889 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
3890 implicitly_declare, undeclared_variable, lookup_label,
3891 declare_label, c_make_fname_decl, c_builtin_function,
3892 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
3893 bind callers.
3894
3895 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
3896
3897 PR target/38781
3898 * config/i386/i386.c (classify_argument): Check total size of
3899 structure.
3900
3901 2009-03-30 Martin Jambor <mjambor@suse.cz>
3902
3903 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
3904 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
3905 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
3906 respectively.
3907
3908 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
3909 seen_variable_array_ref while also traversing a union.
3910
3911 * tree-inline.c (optimize_inline_calls): Do not call
3912 cgraph_node_remove_callees.
3913 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
3914 (pass_remove_cgraph_callee_edges): New variable.
3915 * passes.c (init_optimization_passes): Add
3916 pass_remove_cgraph_callee_edges after early inlining and before all
3917 late intraprocedural passes.
3918
3919 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
3920
3921 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3922
3923 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
3924 Fix typos in names.
3925
3926 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3927
3928 * combine.c (simplify_comparison): Use have_insn_for.
3929 * dojump.c (do_jump): Likewise.
3930
3931 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3932
3933 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
3934 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
3935 sparc_compare_op0 like sparc_compare_emitted used to be handled.
3936 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
3937 instead of sparc_compare_emitted.
3938 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
3939 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
3940 instead of sparc_compare_emitted.
3941
3942 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3943
3944 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
3945 enter/exit cfglayout mode.
3946 (pass_partition_block): Require it.
3947 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
3948 (combine_instructions): Track basic blocks instead of labels.
3949 (update_cfg_for_uncondjump): New.
3950 (try_combine): Use it. Update jumps after rescanning.
3951 (pass_combine): Require PROP_cfglayout.
3952 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
3953
3954 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3955
3956 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
3957 Provide/destroy PROP_cfglayout respectively.
3958 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
3959 * tree-pass.h (PROP_cfglayout): New.
3960
3961 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3962
3963 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
3964 fold_convert_const_fixed_from_fixed,
3965 fold_convert_const_fixed_from_int,
3966 fold_convert_const_fixed_from_real, fold_negate_const): Do not
3967 set TREE_CONSTANT_OVERFLOW.
3968 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
3969 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
3970
3971 2009-03-30 Ira Rosen <irar@il.ibm.com>
3972
3973 * tree-vect-loop-manip.c: New file.
3974 * tree-vectorizer.c: Update documentation and included files.
3975 (vect_loop_location): Make extern.
3976 (rename_use_op): Move to tree-vect-loop-manip.c
3977 (rename_variables_in_bb, rename_variables_in_loop,
3978 slpeel_update_phis_for_duplicate_loop,
3979 slpeel_update_phi_nodes_for_guard1,
3980 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
3981 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
3982 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
3983 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
3984 find_loop_location): Likewise.
3985 (new_stmt_vec_info): Move to tree-vect-stmts.c.
3986 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
3987 get_vectype_for_scalar_type, vect_is_simple_use,
3988 supportable_widening_operation, supportable_narrowing_operation):
3989 Likewise.
3990 (bb_in_loop_p): Move to tree-vect-loop.c.
3991 (new_loop_vec_info, destroy_loop_vec_info,
3992 reduction_code_for_scalar_code, report_vect_op,
3993 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
3994 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
3995 (vect_supportable_dr_alignment): Likewise.
3996 * tree-vectorizer.h (tree-data-ref.h): Include.
3997 (vect_loop_location): Declare.
3998 Reorganize function declarations according to the new file structure.
3999 * tree-vect-loop.c: New file.
4000 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4001 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4002 * tree-vect-data-refs.c: New file.
4003 * tree-vect-patterns.c (timevar.h): Don't include.
4004 * tree-vect-stmts.c: New file.
4005 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4006 tree-vect-slp.c, tree-vect-loop.c.
4007 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4008 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4009 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4010 (tree-vect-analyze.o): Remove.
4011 (tree-vect-transform.o): Likewise.
4012 (tree-vect-data-refs.o): Add rule.
4013 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4014 tree-vect-slp.o): Likewise.
4015 (tree-vect-patterns.o): Remove redundant dependencies.
4016 (tree-vectorizer.o): Likewise.
4017 * tree-vect-slp.c: New file.
4018
4019 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4020
4021 * optc-gen.awk: Warn if an option flag has multiple different
4022 help strings.
4023
4024 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
4025
4026 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4027 -floop-block): Document dependences on PPL, CLooG and Graphite.
4028
4029 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4030
4031 PR rtl-optimization/323
4032 * c-common.c (c_fully_fold, convert_and_check,
4033 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4034 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4035 * c-common.def (EXCESS_PRECISION_EXPR): New.
4036 * c-cppbuiltin.c (builtin_define_float_constants): Define
4037 constants with enough digits for long double.
4038 * c-lex.c (interpret_float): Interpret constant with excess
4039 precision where appropriate.
4040 * c-opts.c (c_common_post_options): Set
4041 flag_excess_precision_cmdline. Give an error for
4042 -fexcess-precision=standard for C++ for processors where the
4043 option is significant.
4044 * c-parser.c (c_parser_conditional_expression): Handle excess
4045 precision in condition.
4046 * c-typeck.c (convert_arguments): Handle arguments with excess
4047 precision.
4048 (build_unary_op): Move excess precision outside operation.
4049 (build_conditional_expr): Likewise.
4050 (build_compound_expr): Likewise.
4051 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4052 (build_modify_expr): Handle excess precision in RHS.
4053 (convert_for_assignment): Handle excess precision in converted
4054 value.
4055 (digest_init, output_init_element, process_init_element): Handle
4056 excess precision in initializer.
4057 (c_finish_return): Handle excess precision in return value.
4058 (build_binary_op): Handle excess precision in operands and add
4059 excess precision as needed for operation.
4060 * common.opt (-fexcess-precision=): New option.
4061 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4062 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4063 For standard excess precision, output explicit conversion to and
4064 truncation from XFmode.
4065 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4066 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4067 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4068 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4069 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4070 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4071 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4072 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4073 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4074 define_splits, sqrt<mode>2): Disable where appropriate for
4075 standard excess precision.
4076 * convert.c (convert_to_real): Do not shorten arithmetic to type
4077 for which excess precision would be used.
4078 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4079 * doc/invoke.texi (-fexcess-precision=): Document option.
4080 (-mfpmath=): Correct index entry.
4081 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4082 flag_excess_precision): New.
4083 * langhooks.c (lhd_post_options): Set
4084 flag_excess_precision_cmdline.
4085 * opts.c (common_handle_option): Handle -fexcess-precision=.
4086 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4087 init_excess_precision): New.
4088 (lang_dependent_init_target): Call init_excess_precision.
4089 * tree.c (excess_precision_type): New.
4090 * tree.h (excess_precision_type): Declare.
4091
4092 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4093
4094 PR c/35235
4095 * c-typeck.c (build_component_ref): Do not copy qualifiers from
4096 non-lvalue to component.
4097
4098 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4099
4100 PR preprocessor/34695
4101 * Makefile.in (c-opts.o): Depend on c-tree.h.
4102 * c-common.c: Move down include of diagnostic.h.
4103 (done_lexing, c_cpp_error): New.
4104 * c-common.h (done_lexing): Declare.
4105 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4106 (parse_in).
4107 * c-opts.c: Include c-tree.h.
4108 (c_common_init_options): Set preprocessor error callback.
4109 (c_common_handle_option): Do not set preprocessor
4110 inhibit_warnings, warnings_are_errors, warn_system_headers,
4111 pedantic_errors or inhibit_warnings flags.
4112 (c_common_post_options): Do not check cpp_errors (parse_in).
4113 (c_common_finish): Do not output dependencies if there were
4114 errors. Do not check return value of cpp_finish.
4115 * c-ppoutput.c (pp_file_change): Set input_location.
4116 * c-tree.h (c_cpp_error): Declare.
4117 * diagnostic.c (diagnostic_set_info_translated): Also initialize
4118 override_column.
4119 (diagnostic_build_prefix): Check override_column.
4120 * diagnostic.h (diagnostic_info): Add override_column field.
4121 (diagnostic_override_column): Define.
4122
4123 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
4124
4125 * c-common.c (c_expand_expr, c_staticp): Remove.
4126 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4127 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4128 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4129 * c-gimplify.c (gimplify_compound_literal_expr,
4130 optimize_compound_literals_in_ctor): Remove.
4131 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4132 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4133 * c-semantics.c (emit_local_var): Remove.
4134
4135 * langhooks-def.h (lhd_expand_expr): Remove.
4136 * langhooks.c (lhd_expand_expr): Remove.
4137 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4138
4139 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4140 handling from c-semantics.c; don't call into langhook.
4141 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4142 * gimplify.c (gimplify_compound_literal_expr,
4143 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4144 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4145 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4146 as was done in c-gimplify.c.
4147 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4148 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4149 Move from c-common.h.
4150 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4151
4152 * tree.c (staticp): Do not call langhook.
4153 * langhooks.c (lhd_staticp): Delete.
4154 * langhooks-def.h (lhd_staticp): Delete prototype.
4155 (LANG_HOOKS_STATICP): Delete.
4156 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4157
4158 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4159 instead of DECL_STMTs.
4160
4161 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4162
4163 PR c/456
4164 PR c/5675
4165 PR c/19976
4166 PR c/29116
4167 PR c/31871
4168 PR c/35198
4169 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4170 void_type_node.
4171 (fold_call_expr): Return a NOP_EXPR from folding rather than the
4172 contained expression.
4173 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4174 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
4175 conditional expressions for C.
4176 (decl_constant_value_for_optimization): Move from
4177 decl_constant_value_for_broken_optimization in c-typeck.c. Check
4178 whether optimizing and that the expression is a VAR_DECL not of
4179 array type instead of doing such checks in the caller. Do not
4180 check pedantic. Call gcc_unreachable for C++.
4181 * c-common.def (C_MAYBE_CONST_EXPR): New.
4182 * c-common.h (c_fully_fold, c_save_expr,
4183 decl_constant_value_for_optimization): New prototypes.
4184 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4185 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4186 EXPR_INT_CONST_OPERANDS): Define.
4187 * c-convert.c (convert): Strip nops from expression.
4188 * c-decl.c (groktypename): Take extra parameters expr and
4189 expr_const_operands. Update call to grokdeclarator.
4190 (start_decl): Update call to grokdeclarator. Add statement for
4191 expressions used in type of decl.
4192 (grokparm): Update call to grokdeclarator.
4193 (push_parm_decl): Update call to grokdeclarator.
4194 (build_compound_literal): Add parameter non_const and build a
4195 C_MAYBE_COSNT_EXPR if applicable.
4196 (grokdeclarator): Take extra parameters expr and
4197 expr_const_operands. Track expressions used in declaration
4198 specifiers and declarators. Fold array sizes and track whether
4199 they are constant expressions and whether they are integer
4200 constant expressions.
4201 (parser_xref_tag): Set expr and expr_const_operands fields in
4202 return value.
4203 (grokfield): Update call to grokdeclarator.
4204 (start_function): Update call to grokdeclarator.
4205 (build_null_declspecs): Set expr and expr_const_operands fields in
4206 return value.
4207 (declspecs_add_type): Handle expressions in typeof specifiers.
4208 * c-parser.c (c_parser_declspecs): Set expr and
4209 expr_const_operands fields for declaration specifiers.
4210 (c_parser_enum_specifier): Likewise.
4211 (c_parser_struct_or_union_specifier): Likewise.
4212 (c_parser_typeof_specifier): Likewise. Update call to
4213 groktypename. Fold expression as needed. Return expressions with
4214 type instead of adding statements.
4215 (c_parser_attributes): Update calls to c_parser_expr_list.
4216 (c_parser_statement_after_labels): Fold expression before passing
4217 to objc_build_throw_stmt.
4218 (c_parser_condition): Fold expression.
4219 (c_parser_asm_operands): Fold expression.
4220 (c_parser_conditional_expression): Use c_save_expr. Update call
4221 to build_conditional_expr.
4222 (c_parser_alignof_expression): Update call to groktypename.
4223 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4224 original_code. Fold expression argument of va_arg. Create
4225 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4226 argument to va_arg. Update calls to groktypename. Fold array
4227 index for offsetof. Verify that first argument to
4228 __builtin_choose_expr has integer type.
4229 (c_parser_postfix_expression_after_paren_type): Update calls to
4230 groktypename and build_compound_literal. Handle expressions with
4231 side effects in type name.
4232 (c_parser_postfix_expression_after_primary): Update call to
4233 c_parser_expr_list. Set original_code for calls to
4234 __builtin_constant_p.
4235 (c_parser_expr_list): Take extra parameter fold_p. Fold
4236 expressions if requested.
4237 (c_parser_objc_type_name): Update call to groktypename.
4238 (c_parser_objc_synchronized_statement): Fold expression.
4239 (c_parser_objc_receiver): Fold expression.
4240 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4241 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4242 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4243 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4244 (struct c_typespec): Add elements expr and expr_const_operands.
4245 (struct c_declspecs): Add elements expr and expr_const_operands.
4246 (groktypename, build_conditional_expr, build_compound_literal):
4247 Update prototypes.
4248 (in_late_binary_op): Declare.
4249 * c-typeck.c (note_integer_operands): New function.
4250 (in_late_binary_op): New variable.
4251 (decl_constant_value_for_broken_optimization): Move to c-common.c
4252 and rename to decl_constant_value_for_optimization.
4253 (default_function_array_conversion): Do not strip nops.
4254 (default_conversion): Do not call
4255 decl_constant_value_for_broken_optimization.
4256 (build_array_ref): Do not fold result.
4257 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
4258 result when operand is a VLA.
4259 (c_expr_sizeof_type): Update call to groktypename. Handle
4260 expressions included in type name. Use C_MAYBE_CONST_EXPR for
4261 result when operand names a VLA type.
4262 (build_function_call): Update call to build_compound_literal.
4263 Only fold result for calls to __builtin_* functions. Strip
4264 NOP_EXPR from INTEGER_CST returned from such functions. Fold
4265 the function designator.
4266 (convert_arguments): Fold arguments. Update call to
4267 convert_for_assignment.
4268 (build_unary_op): Handle increment and decrement of
4269 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
4270 decrement earlier. Fold operand of increment and decrement.
4271 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
4272 built for integer operand. Wrap returns that are INTEGER_CSTs
4273 without being integer constant expressions or that have integer
4274 constant operands without being INTEGER_CSTs.
4275 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4276 (build_conditional_expr): Add operand ifexp_bcp. Track whether
4277 result is an integer constant expression or can be used in
4278 unevaluated parts of one and avoid folding and wrap as
4279 appropriate. Fold operands before possibly doing -Wsign-compare
4280 warnings.
4281 (build_compound_expr): Wrap result for C99 if operands can be used
4282 in integer constant expressions.
4283 (build_c_cast): Update call to digest_init. Do not ignore
4284 overflow from casting floating-point constants to integers. Wrap
4285 results that could be confused with integer constant expressions,
4286 null pointer constants or floating-point constants.
4287 (c_cast_expr): Update call to groktypename. Handle expressions
4288 included in type name.
4289 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
4290 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
4291 Update calls to convert_for_assignment.
4292 (convert_for_assignment): Take new parameter
4293 null_pointer_constant. Do not strip nops or call
4294 decl_constant_value_for_broken_optimization. Set
4295 in_late_binary_op for conversions to boolean.
4296 (store_init_value): Update call to digest_init.
4297 (digest_init): Take new parameter null_pointer_constant. Do not
4298 call decl_constant_value_for_broken_optimization. pedwarn for
4299 initializers not constant expressions. Update calls to
4300 convert_for_assignment.
4301 (constructor_nonconst): New.
4302 (struct constructor_stack): Add nonconst element.
4303 (really_start_incremental_init, push_init_level, pop_init_level):
4304 Handle constructor_nonconst and nonconst element.
4305 (set_init_index): Call constant_expression_warning for array
4306 designators.
4307 (output_init_element): Fold value. Set constructor_nonconst as
4308 applicable. pedwarn for initializers not constant expressions.
4309 Update call to digest_init. Call constant_expression_warning
4310 where constant initializers are required.
4311 (process_init_element): Use c_save_expr.
4312 (c_finish_goto_ptr): Fold expression.
4313 (c_finish_return): Fold return value. Update call to
4314 convert_for_assignment.
4315 (c_start_case): Fold switch expression.
4316 (c_process_expr_stmt): Fold expression.
4317 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4318 ensure statement expression is not evaluated in constant expression.
4319 (build_binary_op): Track whether results are integer constant
4320 expressions or may occur in such, disable folding and wrap results
4321 as applicable. Fold operands for -Wsign-compare warnings unless
4322 in_late_binary_op.
4323 (c_objc_common_truthvalue_conversion): Handle results folded to
4324 integer constants that are not integer constant expressions.
4325 * doc/extend.texi: Document when typeof operands are evaluated,
4326 that condition of __builtin_choose_expr is an integer constant
4327 expression, and more about use of __builtin_constant_p in
4328 initializers.
4329
4330 2009-03-29 Richard Guenther <rguenther@suse.de>
4331
4332 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4333 propagate addresses of array references.
4334
4335 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
4336
4337 * regmove.c (perhaps_ends_bb_p): Remove.
4338 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
4339 from INSN and check that the main loop stays within that basic block.
4340 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4341 (regmove_forward_pass): Split out from regmove_optimize. Use
4342 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4343 (regmove_backward_pass): Split out from regmove_optimize. Use
4344 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4345 (regmove_optimize): Simplify.
4346
4347 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4348
4349 PR target/39545
4350 * config/i386/i386.c (classify_argument): Ignore flexible array
4351 member in struct and warn ABI change.
4352
4353 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4354
4355 * config/i386/i386-protos.h (ix86_agi_dependent): New.
4356
4357 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4358 (ix86_adjust_cost): Updated.
4359
4360 2009-03-29 Jan Hubicka <jh@suse.cz>
4361
4362 PR middle-end/28850
4363 * tree-pass.h (pass_cleanup_eh): New function.
4364 (remove_unreachable_regions): Break code handling RTL
4365 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4366 that can not be reached by runtime.
4367 (can_be_reached_by_runtime): New function.
4368 (label_to_region_map): New function.
4369 (num_eh_regions): New function.
4370 (rtl_remove_unreachable_regions): New function.
4371 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4372 (remove_eh_region): New function.
4373 * except.h: Include sbitmap and vecprim.
4374 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4375 num_eh_regions): Declare.
4376 * passes.c (init_optimization_passes): Schedule cleanup_eh.
4377 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4378 * tree-eh.c (tree_remove_unreachable_handlers): New function.
4379 (tree_empty_eh_handler_p): New function.
4380 (cleanup_empty_eh): New function.
4381 (cleanup_eh): New function.
4382 (pass_cleanup_eh): New function.
4383
4384 2009-03-29 Jan Hubicka <jh@suse.cz>
4385
4386 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4387 for removed regions.
4388
4389 2009-03-29 Jan Hubicka <jh@suse.cz>
4390
4391 * except.c (dump_eh_tree): Dump all datastructures.
4392
4393 2009-03-29 Jan Hubicka <jh@suse.cz>
4394
4395 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
4396 (duplicate_eh_regions_1): Likewise.
4397 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
4398 vector; call EH verification.
4399 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4400 Be ready for region being removed.
4401
4402 2009-03-29 Jan Hubicka <jh@suse.cz>
4403
4404 * bitmap.c (bitmap_last_set_bit): New function.
4405 * bitmap.h (bitmap_last_set_bit): Declare.
4406
4407 2009-03-29 David Ayers <ayers@fsfe.org>
4408
4409 PR objc/27377
4410 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
4411 by calling objc_compare_types and surpress warnings about
4412 incompatible C pointers that are compatible ObjC pointers.
4413
4414 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
4415
4416 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
4417 call initialize_inline_failed.
4418 (initialize_inline_failed): Move it from here ...
4419 * cgraph.c (initialize_inline_failed): ... to here.
4420 (cgraph_create_edge): Call initialize_inline_failed rather than
4421 setting inline_failed directly.
4422
4423 2009-03-29 Ben Elliston <bje@au.ibm.com>
4424
4425 PR target/32542
4426 * sysv4.opt (msdata): Improve comment.
4427 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
4428 * sysv4.h (SVR4_ASM_SPEC): Likewise.
4429
4430 2009-03-29 Ben Elliston <bje@au.ibm.com>
4431
4432 PR target/30451
4433 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
4434 load and store attributes.
4435
4436 2009-03-29 Ben Elliston <bje@au.ibm.com>
4437
4438 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
4439 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
4440 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
4441 * doc/extend.texi (X86 Built-in Functions): Add index entries for
4442 __builtin_infq and __builtin_huge_valq.
4443
4444 2009-03-28 Anatoly Sokolov <aesok@post.ru>
4445
4446 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
4447 atmega8m1 devices.
4448 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4449 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
4450
4451 2009-03-28 Xinliang David Li <davidxl@google.com>
4452
4453 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
4454 (do_dbg_cnt): New function.
4455
4456 2009-03-28 Jan Hubicka <jh@suse.cz>
4457
4458 Merge from pretty-ipa:
4459
4460 2009-03-27 Jan Hubicka <jh@suse.cz>
4461
4462 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4463 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
4464 * passes.c (function_called_by_processed_nodes_p): New.
4465 * ipa-pure-const.c (check_call): Fix handling of operands.
4466 (analyze_function): Dump debug output for skipped bodies.
4467 (local_pure_const): Use function_called_by_processed_nodes_p.
4468 * dwarf2out.c (reference_to_unused): Use output.
4469 * passes.c (do_per_function_toporder): Likewise.
4470
4471 2008-11-12 Jan Hubicka <jh@suse.cz>
4472
4473 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
4474 * ipa-pure-const.c (funct_state_d): Add can throw field; make
4475 state_set_in_source enum
4476 (check_decl): Ignore memory tags; do not set fake looping flags;
4477 dump diagnostics.
4478 (check_operand, check_tree, check_rhs_var, check_lhs_var,
4479 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
4480 (check_call, analyze_function): Rewrite.
4481 (check_stmt): New.
4482 (add_new_function): Update call of analyze_function.
4483 (generate_summary): Add call of analyze_function.
4484 (propagate): Propagate can_throw; handle state_set_in_source correctly.
4485 (local_pure_const): New function.
4486 (pass_local_pure_const): New pass.
4487 * ipa-inline.c (inline_transform): Set after_inlining.
4488 * tree-eh.c (stmt_can_throw_external): New.
4489 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
4490 work with aliasing built.
4491 * tree-flow.h (stmt_can_throw_external): New.
4492 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
4493 and local pure/const pass in early and late optimization queue.
4494
4495 2009-03-28 Martin Jambor <mjambor@suse.cz>
4496
4497 * fold-const.c (get_pointer_modulus_and_residue): New parameter
4498 allow_func_align.
4499 (fold_binary): Allow function decl aligment consideration is the
4500 second argument is integer constant one.
4501 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
4502 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
4503 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
4504
4505 2009-03-28 Jan Hubicka <jh@suse.cz>
4506
4507 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
4508 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
4509 * function.h (rtl_data): Add nothrow flag.
4510 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
4511 set DECL_NOTHROW for AVAILABLE functions.
4512
4513 2009-03-28 Jakub Jelinek <jakub@redhat.com>
4514
4515 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
4516 following vector keyword has expansion starting with pixel or bool
4517 keyword, expand vector to __vector and pixel or bool to __pixel or
4518 __bool.
4519
4520 PR c++/39554
4521 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
4522 warn_if_disallowed_function_p): Removed.
4523 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
4524 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
4525 warning_if_disallowed_function_p.
4526 * flags.h (warn_if_disallowed_function_p,
4527 warn_disallowed_functions): Removed.
4528 * common.opt (Wdisallowed-function-list=): Removed.
4529 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
4530
4531 2009-03-28 Richard Guenther <rguenther@suse.de>
4532
4533 PR tree-optimization/38723
4534 * tree-ssa-pre.c (compute_avail): Add all default definitions to
4535 the entry block.
4536
4537 2009-03-28 Jan Hubicka <jh@suse.cz>
4538
4539 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
4540 test introduced by my previous patch.
4541
4542 2009-03-28 Richard Guenther <rguenther@suse.de>
4543
4544 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
4545 the PHIs value undefined.
4546
4547 2009-03-28 Jan Hubicka <jh@suse.cz>
4548
4549 * tree-pass.h (pass_fixup_cfg): New pass.
4550 * ipa-inline.c (inline_transform): Set
4551 always_inline_functions_inlined/after_inlining.
4552 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
4553 (pass_fixup_cfg): New pass.
4554 * passes.c (init_optimization_passes): Add fixup_cfg.
4555
4556 2009-03-28 Richard Guenther <rguenther@suse.de>
4557
4558 PR tree-optimization/38458
4559 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
4560 argument use the arguments copy-of value.
4561
4562 2009-03-28 Richard Guenther <rguenther@suse.de>
4563
4564 PR tree-optimization/38180
4565 * tree-ssa-ccp.c (get_default_value): Simplify.
4566 (likely_value): Likewise.
4567 (surely_varying_stmt_p): Properly handle VOP case.
4568 (ccp_initialize): Likewise.
4569 (ccp_fold): Handle propagating through *&.
4570 (fold_const_aggregate_ref): Also handle decls.
4571
4572 2009-03-28 Jan Hubicka <jh@suse.cz>
4573
4574 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4575 * cgraph.h (cgraph_node): Likewise.
4576 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
4577 (cgraph_reset_node): Use process flag.
4578 (cgraph_mark_functions_to_output): Likewise.
4579 (cgraph_expand_function): Likewise.
4580 (cgraph_expand_all_functions): Likewise.
4581 (cgraph_output_in_order): Likewise.
4582 * dwarf2out.c (reference_to_unused): Likewise.
4583 * passes.c do_per_function_toporder): Likewise.
4584
4585 2009-03-28 Jan Hubicka <jh@suse.cz>
4586
4587 Bring from lto-branch:
4588
4589 2008-09-03 Doug Kwan <dougkwan@google.com>
4590
4591 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
4592 enums instead of reason strings.
4593 * cgraph.c (cgraph_create_edge): Same.
4594 (cgraph_inline_failed_string): New function.
4595 * cgraph.h (cgraph_inline_failed_t): New enum type.
4596 (cgraph_inline_failed_string): New prototype.
4597 (struct cgraph_edge): Change type of INLINED_FAILED from constant
4598 char pointer to cgraph_inline_failed_t.
4599 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
4600 (cgraph_default_inline_p): Ditto.
4601 * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
4602 to cgraph_inline_failed_t pointer.
4603 * cif-code.def: New file.
4604 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
4605 reason string.
4606 (cgraph_check_inline_limits): Change type of REASON to pointer to
4607 cgraph_inline_failed_t. Replace reason strings with enums.
4608 (cgraph_default_inline_p): Ditto.
4609 (cgraph_recursive_inlining_p): Ditto.
4610 (update_caller_keys): Change type of FAILED_REASON to
4611 cgraph_inline_failed_t.
4612 (cgraph_set_inline_failed): Change type of REASON to pointer to
4613 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
4614 convert enums to strings for text output.
4615 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
4616 to be of type cgraph_inline_failed_t. Replace reason strings with
4617 enums. Call cgraph_inline_failed_string to covert enums
4618 to strings for text output.
4619 (cgraph_decide_inlining): Replace reason strings with enums.
4620 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
4621 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
4622 for text output.
4623 * tree-inline.c (expand_call_inline): Change type of REASON
4624 to cgraph_inline_failed_t. Replace reason strings with enums.
4625 Call cgraph_inline_failed_string for text output.
4626 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
4627 (cgraph.o): Ditto.
4628
4629 2009-03-28 Jan Hubicka <jh@suse.cz>
4630
4631 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
4632 cgraph_clone_node): Remove master clone handling.
4633 (cgraph_is_master_clone, cgraph_master_clone): Remove.
4634 * cgraph.h (master_clone): Remove.
4635 (cgraph_is_master_clone, cgraph_master_clone): Remove.
4636 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
4637 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4638
4639 2009-03-28 Jan Hubicka <jh@suse.cz>
4640
4641 * cgraph.c (cgraph_function_body_availability): Functions declared
4642 inline are always safe to assume that it is not going to be replaced.
4643
4644 2009-03-28 Richard Guenther <rguenther@suse.de>
4645
4646 PR tree-optimization/38513
4647 * tree-ssa-pre.c (eliminate): Remove redundant stores.
4648 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4649 EXC_PTR_EXPR and FILTER_EXPR.
4650 (get_ref_from_reference_ops): Likewise.
4651
4652 2009-03-28 Richard Guenther <rguenther@suse.de>
4653
4654 PR tree-optimization/38968
4655 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
4656 Use FLOOR_MOD_EXPR to compute misalignment.
4657
4658 2009-03-28 Richard Guenther <rguenther@suse.de>
4659
4660 PR tree-optimization/37795
4661 * tree.h (combine_comparisons): Declare.
4662 * fold-const.c (combine_comparisons): Export.
4663 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
4664 comparisons.
4665 (ifcombine_iforif): Use combine_comparisons.
4666
4667 2009-03-28 Jan Hubicka <jh@suse.cz>
4668
4669 * tree-eh.c (inlinable_call_p): New function.
4670 (make_eh_edges): Use it.
4671 (verify_eh_edges): Use it.
4672 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
4673 * except.c (reachable_next_level): Add inlinable_function argument
4674 (sjlj_find_directly_reachable_regions): Update.
4675 (add_reachable_handler): Do not set saw_any_handlers.
4676 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
4677 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4678 Add new inlinable call parameter.
4679 (can_throw_internal, can_throw_external): Update.
4680 * except.h (can_throw_internal_1, can_throw_external_1,
4681 foreach_reachable_handler): Update declaration.
4682
4683 2009-03-28 Joseph Myers <joseph@codesourcery.com>
4684
4685 * config/arm/t-arm-coff, config/h8300/coff.h,
4686 config/i386/i386-aout.h, config/i386/i386-coff.h,
4687 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
4688 config/pdp11/2bsd.h, config/rs6000/aix41.h,
4689 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
4690 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
4691 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
4692 sys-types.h: Remove.
4693 * Makefile.in: Remove protoize and fixproto support and references
4694 in comments.
4695 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
4696 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
4697 Remove.
4698 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
4699 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
4700 unprotoize$(exeext).
4701 (rest.encap): Don't depend on $(STMP_FIXPROTO)
4702 (.PHONY): Don't depend on proto.
4703 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
4704 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
4705 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
4706 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
4707 build/gen-protos.o, build/scan.o, xsys-protos.h,
4708 build/fix-header$(build_exeext), build/fix-header.o,
4709 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
4710 stmp-install-fixproto): Remove.
4711 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
4712 SYSCALLS.c or fixproto files.
4713 (install-common): Don't install protoize.
4714 (install-headers-tar, install-headers-cpio, install-headers-cp):
4715 Don't depend on $(STMP_FIXPROTO).
4716 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
4717 install fixproto files or write out fixproto settings.
4718 (uninstall): Don't uninstall protoize.
4719 * config.gcc (use_fixproto): Remove.
4720 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
4721 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
4722 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
4723 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
4724 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
4725 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
4726 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
4727 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
4728 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
4729 * config/t-vxworks (STMP_FIXPROTO): Remove.
4730 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
4731 STMP_FIXPROTO): Remove.
4732 * config.in, configure: Regenerate.
4733 * crtstuff.c (gid_t, uid_t): Don't undefine.
4734 * doc/install.texi: Change m68k-coff to m68k-elf in example.
4735 (arm-*-coff, arm-*-aout: Remove target entries.
4736 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
4737 Remove mention of AIX 4.1.
4738 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
4739 * doc/invoke.texi (Running Protoize): Remove.
4740 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
4741 (Protoize Caveats): Remove.
4742 * tsystem.h: Update comments on headers assumed to exist.
4743
4744 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
4745
4746 * genautomata.c: Add a new year to the copyright. Add a new
4747 reference.
4748 (struct insn_reserv_decl): Add comments for member bypass_list.
4749 (find_bypass): Remove.
4750 (insert_bypass): New.
4751 (process_decls): Use insert_bypass.
4752 (output_internal_insn_latency_func): Output all bypasses with the
4753 same input insn in one switch case.
4754
4755 * rtl.def (define_bypass): Describe bypass choice.
4756 * doc/md.texi (define_bypass): Ditto.
4757
4758 2009-03-27 Richard Guenther <rguenther@suse.de>
4759
4760 * gimplify.c (mark_addressable): Export.
4761 * tree-flow.h (mark_addressable): Declare.
4762 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
4763 * tree-ssa.c (verify_phi_args): Verify that address taken
4764 variables have TREE_ADDRESSABLE set.
4765
4766 2009-03-27 Richard Guenther <rguenther@suse.de>
4767
4768 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
4769 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
4770 Do not mark decls TREE_ADDRESSABLE.
4771 (build_fold_addr_expr): Adjust.
4772 (fold_addr_expr): Remove.
4773 (fold_unary): Use build_fold_addr_expr.
4774 (fold_comparison): Likewise.
4775 (split_address_to_core_and_offset): Likewise.
4776 * coverage.c (tree_coverage_counter_addr): Mark the array decl
4777 TREE_ADDRESSABLE.
4778 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
4779 (gimplify_modify_expr_to_memcpy): Mark source and destination
4780 addressable.
4781 * omp-low.c (create_omp_child_function): Mark the object decl
4782 TREE_ADDRESSABLE.
4783 (lower_rec_input_clauses): Mark the var we take the address of
4784 TREE_ADDRESSABLE.
4785 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
4786
4787 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4788
4789 PR middle-end/39315
4790 * cfgexpand.c (expand_one_stack_var_at): Change alignment
4791 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
4792
4793 2009-03-27 Richard Guenther <rguenther@suse.de>
4794
4795 PR tree-optimization/39120
4796 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
4797 constraints.
4798 (handle_lhs_call): Process return constraints. Add escape
4799 constraints if necessary.
4800 (handle_const_call): Fill out return constraints. Make nested
4801 case more precise. Avoid consttmp if possible.
4802 (handle_pure_call): Fill out return constraints. Avoid
4803 callused if possible.
4804 (find_func_aliases): Simplify call handling.
4805
4806 2009-03-27 Richard Guenther <rguenther@suse.de>
4807
4808 PR tree-optimization/39120
4809 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
4810 as a representative.
4811 (solve_graph): Do propagate CALLUSED.
4812 (handle_pure_call): Use a scalar constraint from CALLUSED for
4813 the return value.
4814 (find_what_p_points_to): CALLUSED shall not appear in poins-to
4815 solutions.
4816
4817 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4818
4819 PR c/39323
4820 * c-common.c (handle_aligned_attribute): Properly check alignment
4821 overflow. Use (1U << i) instead of (1 << i).
4822
4823 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
4824
4825 * expr.h (get_mem_align_offset): Updated.
4826
4827 * tree.h (tree_decl_common): Change align to "unsigned int" and
4828 move it before pointer_alias_set.
4829
4830 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4831 Jakub Jelinek <jakub@redhat.com>
4832
4833 PR target/38034
4834 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
4835 gr_register_operand with gr_reg_or_0_operand.
4836 (cmpxchg_rel_di): Likewise.
4837 (sync_lock_test_and_set<mode>): Likewise.
4838
4839 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4840
4841 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
4842 (true_regnum): Likewise.
4843
4844 * rtlanal.c (subreg_info): Moved to ...
4845 * rtl.h (subreg_info): Here. New.
4846 (subreg_get_info): New.
4847
4848 * rtlanal.c (subreg_get_info): Make it extern.
4849
4850 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4851
4852 PR target/39472
4853 * config/i386/i386.c (ix86_abi): New.
4854 (override_options): Handle -mabi=.
4855 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
4856 (ix86_call_abi_override): Likewise.
4857 (init_cumulative_args): Likewise.
4858 (function_arg_advance): Likewise.
4859 (function_arg_64): Likewise.
4860 (function_arg): Likewise.
4861 (ix86_pass_by_reference): Likewise.
4862 (ix86_function_value_regno_p): Likewise.
4863 (ix86_build_builtin_va_list_abi): Likewise.
4864 (setup_incoming_varargs_64): Likewise.
4865 (is_va_list_char_pointer): Likewise.
4866 (ix86_init_machine_status): Likewise.
4867 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
4868 (ix86_function_type_abi): Return enum calling_abi. Rewrite
4869 for 64bit. Replace DEFAULT_ABI with ix86_abi.
4870 (ix86_function_abi): Make it static and return enum calling_abi.
4871 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
4872 with ix86_abi.
4873 (ix86_fn_abi_va_list): Updated.
4874
4875 * config/i386/i386.h (ix86_abi): New.
4876 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
4877 (CONDITIONAL_REGISTER_USAGE): Likewise.
4878 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
4879 (machine_function): Likewise.
4880
4881 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
4882 with ix86_abi.
4883 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
4884 (STACK_BOUNDARY): Likewise.
4885 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
4886
4887 * config/i386/i386.opt (mabi=): New.
4888
4889 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
4890 return enum calling_abi.
4891 (ix86_function_type_abi): Likewise.
4892 (ix86_function_abi): Removed.
4893
4894 * doc/invoke.texi: Document -mabi= option for x86.
4895
4896 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4897
4898 * builtins.c (real_dconstp): Delete.
4899 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
4900
4901 2009-03-27 Dodji Seketeli <dodji@redhat.com>
4902 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR debug/37959
4905 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
4906 (gen_subprogram_die): When a function is explicit, generate the
4907 DW_AT_explicit attribute.
4908 * langhooks.h (struct lang_hooks_for_decls): Add
4909 function_decl_explicit_p langhook.
4910 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
4911 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
4912
4913 2009-03-27 Jakub Jelinek <jakub@redhat.com>
4914
4915 * builtins.c (fold_builtin_memory_op): Optimize memmove
4916 into memcpy if we can prove source and destination don't overlap.
4917
4918 * tree-inline.c: Include gt-tree-inline.h.
4919 (clone_fn_id_num): New variable.
4920 (clone_function_name): New function.
4921 (tree_function_versioning): Use it.
4922 * Makefile.in (GTFILES): Add tree-inline.c.
4923
4924 2009-03-27 Mark Mitchell <mark@codesourcery.com>
4925
4926 * BASE-VER: Change to 4.5.0.
4927
4928 2009-03-27 Xinliang David Li <davidxl@google.com>
4929
4930 PR tree-optimization/39557
4931 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
4932
4933 2009-03-27 Xinliang David Li <davidxl@google.com>
4934
4935 PR tree-optimization/39548
4936 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4937 candidate check.
4938
4939 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4940
4941 * c-common.c (pointer_int_sum): Use %wd on return from
4942 tree_low_cst.
4943
4944 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4945
4946 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
4947 on return from tree_low_cst.
4948
4949 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
4950
4951 PR c++/36799
4952 * ginclude/stdarg.h (va_copy): Define also for
4953 __GXX_EXPERIMENTAL_CXX0X__.
4954
4955 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4956
4957 PR c++/35652
4958 * builtins.h (c_strlen): Do not warn here.
4959 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
4960 * c-common.c (pointer_int_sum): Take an explicit location.
4961 Warn about offsets out of bounds.
4962 * c-common.h (pointer_int_sum): Adjust declaration.
4963
4964 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4965
4966 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
4967 markup glitch.
4968
4969 2009-03-26 Jakub Jelinek <jakub@redhat.com>
4970
4971 PR c++/39554
4972 * opts.c (warn_if_disallowed_function_p): Don't assume
4973 get_callee_fndecl must return non-NULL.
4974
4975 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
4976
4977 PR rtl-optimization/39522
4978 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
4979 when reg_reloaded_valid is set.
4980
4981 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4982
4983 * config/spu/divv2df3.c: New file.
4984 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
4985 (DPBIT_FUNCS): Filter out _div_df.
4986
4987 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
4988
4989 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
4990 a jump insn, count that jump in the distance to the loop start.
4991
4992 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
4993
4994 PR target/39523
4995 * config/sh/sh.c (calc_live_regs): Fix condition for global
4996 registers except PIC_OFFSET_TABLE_REGNUM.
4997
4998 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
4999
5000 PR/39518
5001 * doc/invoke.texi (-mconsole): New.
5002 (-mcygwin): New.
5003 (-mno-cygwin): New.
5004 (-mdll): New.
5005 (-mnop-fun-dllimport): New.
5006 (-mthread): New.
5007 (-mwin32): New.
5008 (-mwindows): New.
5009 (sub section "i386 and x86-64 Windows Options"): New.
5010
5011 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
5012
5013 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5014 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5015
5016 2009-03-25 Richard Guenther <rguenther@suse.de>
5017
5018 PR middle-end/39497
5019 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5020 of -Wno-error.
5021
5022 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
5023
5024 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5025 neither of haifa/selective schedulers are working.
5026
5027 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5028
5029 * doc/invoke.texi (Debugging Options): Fix description of
5030 -fno-merge-debug-strings.
5031
5032 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
5033
5034 * config/cris/libgcc.ver: New version-script.
5035 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5036
5037 * configure.ac <GAS features, nop mnemonic>: Add pattern
5038 crisv32-*-* for "nop".
5039 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5040 * configure: Regenerate.
5041
5042 2009-03-24 Ira Rosen <irar@il.ibm.com>
5043
5044 PR tree-optimization/39529
5045 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5046 mark_sym_for_renaming for the tag copied to the new vector
5047 pointer.
5048
5049 2009-03-24 Arthur Loiret <aloiret@debian.org>
5050
5051 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5052 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5053 EXTRA_SPEC_FUNCTIONS.
5054 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5055 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5056 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5057 -march and -mtune options.
5058
5059 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
5060
5061 * config/m68k/t-rtems: Add m5329 multilib.
5062
5063 2009-03-24 Dodji Seketeli <dodji@redhat.com>
5064 Jakub Jelinek <jakub@redhat.com>
5065
5066 PR debug/39524
5067 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5068 nodes.
5069
5070 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5071
5072 PR c/39495
5073 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5074 instead of c_parser_expression_conv, if original_code isn't one of the
5075 4 allowed comparison codes, fail.
5076
5077 2009-03-23 Richard Guenther <rguenther@suse.de>
5078
5079 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5080 * tree.h (struct tree_type): Likewise.
5081 * reload.h (struct insn_chain): Likewise.
5082 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5083 * function.h (struct function): Likewise.
5084 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5085
5086 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5087
5088 PR tree-optimization/39516
5089 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5090
5091 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
5092
5093 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5094 should be set true if BITS_PER_WORD of target is bigger than 32
5095
5096 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
5097
5098 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5099 Translate -B-options to -rpath-link. Correct existing
5100 rpath-link and conditionalize on !nostdlib.
5101
5102 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5103
5104 * doc/extend.texi (Function Attributes, Variable Attributes):
5105 Fix typos.
5106 * doc/invoke.texi (Debugging Options, Optimize Options)
5107 (i386 and x86-64 Options, MCore Options): Likewise.
5108
5109 2009-03-20 Jakub Jelinek <jakub@redhat.com>
5110
5111 PR debug/37890
5112 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5113 it for block local namespace aliases.
5114 (gen_decl_die): Pass context_die to gen_namespace_die.
5115
5116 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5117
5118 PR c/39495
5119 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5120 minimum or maximum value.
5121
5122 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
5123
5124 * reginfo.c (globalize_reg): Recompute derived reg sets.
5125
5126 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
5127
5128 PR target/39063
5129 * libgcc2.c (mprotect): Do not use signed arguments for
5130 VirtualProtect, use DWORD arguments. Also fix the 'may
5131 be used uninitialized' warning for the np variable.
5132
5133 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5134
5135 PR target/39496
5136 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5137 functions using regparm calling conventions when not optimizing.
5138 (ix86_function_sseregparm): Similarly for sseregparm calling
5139 conventions.
5140
5141 2009-03-19 Li Feng <nemokingdom@gmail.com>
5142
5143 PR middle-end/39500
5144 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5145 dependence if the first conflict is after niter iterations.
5146
5147 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
5148
5149 PR middle-end/38609
5150 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5151 functions with dynamic stack-pointer adjustments.
5152
5153 2009-03-19 Ben Elliston <bje@au.ibm.com>
5154
5155 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5156 option; change to -msdata=data.
5157
5158 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5159
5160 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5161 and -fopenmp.
5162
5163 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
5164
5165 PR target/35180
5166 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5167
5168 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
5169
5170 * doc/invoke.texi (Code Gen Options): Expand discussion of
5171 -fno-common.
5172
5173 2009-03-18 Jakub Jelinek <jakub@redhat.com>
5174
5175 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5176 * matrix-reorg.c (struct matrix_info): Likewise.
5177 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5178 * rtl.h (struct mem_attrs): Likewise.
5179 * df.h (struct df): Likewise.
5180 * tree-data-ref.h (struct data_dependence_relation): Likewise.
5181 * ira-int.h (struct ira_allocno): Likewise.
5182 * df-scan.c (struct df_collection_rec): Likewise.
5183 * ira.c (struct equivalence): Likewise.
5184 * function.c (struct temp_slot): Likewise.
5185 * cfgloop.h (struct loop): Likewise.
5186
5187 PR debug/39485
5188 * function.c (use_register_for_decl): When not optimizing, disregard
5189 register keyword for variables with types containing methods.
5190
5191 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
5192
5193 PR middle-end/39447
5194 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5195 (is_simple_operand): Call contains_component_ref_p before calling data
5196 reference analysis that would fail on COMPONENT_REFs.
5197
5198 * tree-vrp.c (search_for_addr_array): Fix formatting.
5199
5200 2009-03-18 Richard Guenther <rguenther@suse.de>
5201
5202 * tree-vect-transform.c (vect_loop_versioning): Fold the
5203 generated comparisons.
5204 * tree-vectorizer.c (set_prologue_iterations): Likewise.
5205 (slpeel_tree_peel_loop_to_edge): Likewise.
5206
5207 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5208
5209 PR middle-end/37805
5210 * opts.c (print_specific_help): In addition to `undocumented',
5211 accept `separate' and `joined' flags if passed alone. Describe
5212 output by the first matched one of those.
5213 (common_handle_option): Skip over empty strings.
5214 * gcc.c (display_help): Fix help string for `--help='.
5215 * doc/invoke.texi (Option Summary, Overall Options): With
5216 `--help=', classes and qualifiers can both be repeated, but
5217 only the latter can be negated. One should not pass only
5218 negated qualifiers. Fix markup and examples.
5219
5220 Revert
5221 2008-10-14 Jakub Jelinek <jakub@redhat.com>
5222 PR middle-end/37805
5223 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5224 and -fhelp=separate.
5225
5226 2009-03-17 Jing Yu <jingyu@google.com>
5227
5228 PR middle-end/39378
5229 * function.h (struct rtl_data): Move is_thunk from here...
5230 (struct function): ...to here.
5231 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5232 * varasm.c (assemble_start_function): Change is_thunk from crtl to
5233 cfun.
5234 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5235 cfun.
5236 (alpha_does_function_need_gp, alpha_start_function): Likewise.
5237 (alpha_output_function_end_prologue): Likewise.
5238 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5239 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5240 (rs6000_output_function_epilogue): Likewise.
5241 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5242
5243 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
5244
5245 PR target/39482
5246 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5247 from different units in a single alternative.
5248 (*truncdfsf_i387): Ditto.
5249 (*truncxfsf2_mixed): Ditto.
5250 (*truncxfdf2_mixed): Ditto.
5251
5252 2009-03-17 Jakub Jelinek <jakub@redhat.com>
5253
5254 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5255 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5256
5257 PR debug/39474
5258 * tree-ssa-live.c (remove_unused_locals): Don't remove local
5259 unused non-artificial variables when not optimizing.
5260
5261 PR debug/39471
5262 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5263 DW_TAG_imported_module even if decl is IMPORTED_DECL with
5264 NAMESPACE_DECL in its DECL_INITIAL.
5265
5266 PR middle-end/39443
5267 * optabs.c (set_user_assembler_libfunc): New function.
5268 * expr.h (set_user_assembler_libfunc): New prototype.
5269 * c-common.c: Include libfuncs.h.
5270 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5271 for memcmp, memset, memcpy, memmove and abort.
5272 * Makefile.in (c-common.o): Depend on libfuncs.h.
5273
5274 PR debug/39412
5275 * dwarf2out.c (gen_inlined_enumeration_type_die,
5276 gen_inlined_structure_type_die, gen_inlined_union_type_die,
5277 gen_tagged_type_instantiation_die): Removed.
5278 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5279 do nothing.
5280
5281 2009-03-17 Janis Johnson <janis187@us.ibm.com>
5282
5283 PR testsuite/38526
5284 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5285 its use.
5286 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5287 (check-parallel-%): Ditto.
5288 (check-consistency): Ditto.
5289
5290 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
5291
5292 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5293 local variable rhs by NULL_TREE.
5294
5295 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5296
5297 PR target/39477
5298 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5299
5300 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5301
5302 PR target/39476
5303 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5304
5305 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5306
5307 PR target/39473
5308 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5309 for ms->sysv ABI calls only in 64bit mode.
5310
5311 * config/i386/i386.md (untyped_call): Support 32bit.
5312
5313 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
5314
5315 * doc/extend.texi: Replace x86_65 with x86_64.
5316
5317 2009-03-16 Jakub Jelinek <jakub@redhat.com>
5318
5319 PR tree-optimization/39455
5320 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5321 mismatches for POINTER_TYPE_P (type).
5322 (number_of_iterations_le): Likewise.
5323
5324 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
5325
5326 * config/picochip/picochip.c: Removed profiling support.
5327 * config/picochip/picochip.md: Removed profiling instruction.
5328 * config/picochip/picochip.h: Removed profiling builtin.
5329
5330 2009-03-16 Joseph Myers <joseph@codesourcery.com>
5331
5332 * doc/install.texi (--with-host-libstdcxx): Document.
5333
5334 2009-03-14 Anatoly Sokolov <aesok@post.ru>
5335
5336 PR target/34299
5337 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5338 generate a warning if the function name does not begin with
5339 "__vector" and the function has either the 'signal' or 'interrupt'
5340 attribute, from here to ...
5341 (avr_declare_function_name): ...here. New function.
5342 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5343 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5344
5345 2009-03-14 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR bootstrap/39454
5348 * cse.c (fold_rtx): Don't modify original const_arg1 when
5349 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5350 separate variable instead.
5351 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5352 from out of range shift counts.
5353 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5354
5355 2009-03-13 Catherine Moore <clm@codesourcery.com>
5356
5357 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5358 diagnostic.h with $(DIAGNOSTIC_H).
5359
5360 2009-03-12 Jakub Jelinek <jakub@redhat.com>
5361
5362 PR target/39431
5363 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5364 predicate.
5365 * config/i386/sync.md (sync_compare_and_swap<mode>,
5366 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5367 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5368 into a register.
5369 (sync_double_compare_and_swapdi_pic,
5370 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5371 cmpxchg8b_pic_memory_operand instead of just memory_operand.
5372
5373 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5374
5375 PR target/39445
5376 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5377
5378 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5379
5380 PR target/39327
5381 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5382 (avx_addsubv4df3): Likewise.
5383 (*avx_addsubv4sf3): Likewise.
5384 (sse3_addsubv4sf3): Likewise.
5385
5386 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5387
5388 PR target/38824
5389 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
5390
5391 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
5392
5393 PR debug/39432
5394 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
5395 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5396 registers for allocnos created from user-defined variables.
5397
5398 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5399
5400 PR target/39181
5401 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
5402 of non-integer mode as well.
5403
5404 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
5405
5406 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
5407 for functions for which the parameter types are unknown.
5408
5409 2009-03-11 Jakub Jelinek <jakub@redhat.com>
5410
5411 PR target/39137
5412 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
5413 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
5414 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
5415 * config/i386/i386.c (ix86_local_alignment): For
5416 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
5417 long long variables on the stack to avoid dynamic realignment.
5418 Allow the first argument to be a decl rather than type.
5419 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
5420
5421 2009-03-11 Nick Clifton <nickc@redhat.com>
5422
5423 PR target/5362
5424 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
5425 options.
5426 Add description to mno-lsim option.
5427 * config/mcore/mcore.h: Remove comment about deprecated m4align
5428 option.
5429 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
5430 * doc/invoke.texi: Add description of mno-lsim and
5431 mstack-increment options.
5432
5433 * config/fr30/fr30.opt: Document the -mno-lsim option.
5434 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
5435 and -mno-lsim options.
5436
5437 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5438
5439 * fold-const.c (fold_comparison): Only call fold_inf_compare
5440 if the mode supports infinities.
5441
5442 2009-03-11 Jason Merrill <jason@redhat.com>
5443
5444 PR debug/39086
5445 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
5446 end already did. Notice GIMPLE_CALL modifications of the result.
5447 Don't copy debug information from an ignored decl or a decl from
5448 another function.
5449
5450 2009-03-10 Richard Guenther <rguenther@suse.de>
5451 Nathan Froyd <froydnj@codesourcery.com>
5452
5453 PR middle-end/37850
5454 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
5455 (__divMODE3): Likewise.
5456
5457 2009-03-09 Jakub Jelinek <jakub@redhat.com>
5458
5459 PR tree-optimization/39394
5460 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
5461 DECL_SIZE_UNIT of variable length FIELD_DECLs.
5462
5463 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5464
5465 * recog.c (verfiy_changes): Disallow renaming of hard regs in
5466 inline asms for register asm ("") declarations.
5467
5468 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
5469
5470 * fold-const.c (fold_unary): Fix comment.
5471
5472 2009-03-07 Jan Hubicka <jh@suse.cz>
5473
5474 PR target/39361
5475 * tree-inline.c (setup_one_parameter): Do replacement of const
5476 argument by constant in SSA form.
5477
5478 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5479
5480 PR middle-end/38028
5481 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
5482 determine alignment passed to assign_stack_local.
5483 (assign_parms_unsplit_complex): Likewise.
5484 * except.c (sjlj_build_landing_pads): Likewise.
5485
5486 2009-03-06 Jakub Jelinek <jakub@redhat.com>
5487
5488 PR middle-end/39360
5489 * tree-flow.h (add_referenced_var): Return bool instead of void.
5490 * tree-dfa.c (add_referenced_var): Return result of
5491 referenced_var_check_and_insert call.
5492 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
5493 of referenced_var_check_and_insert.
5494
5495 PR debug/39372
5496 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
5497 (gen_variable_die): Emit DW_AT_location on abstract static variable's
5498 DIE, don't emit it if abstract origin already has it.
5499 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
5500 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
5501
5502 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5503
5504 * genpreds.c (needs_variable): Fix parentheses at variable name
5505 detection.
5506 (write_tm_constrs_h): Indent generated code.
5507
5508 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5509
5510 * doc/extend.texi (Function Attributes): Add documentation
5511 for isr attributes.
5512
5513 2009-03-06 Jakub Jelinek <jakub@redhat.com>
5514
5515 PR debug/39387
5516 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
5517 take locus from its DECL_SOURCE_LOCATION instead of input_location.
5518
5519 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
5520
5521 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
5522 the loop as bad.
5523
5524 2009-03-05 Jakub Jelinek <jakub@redhat.com>
5525
5526 PR debug/39379
5527 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
5528 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
5529
5530 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
5531
5532 * config/i386/i386.md (R8_REG, R9_REG): New constants.
5533 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
5534 constants instead of magic numbers.
5535 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
5536 (QI_REG_P): Ditto.
5537 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
5538 (x86_64_ms_abi_int_parameter_registers): Ditto.
5539 (x86_64_int_return_registers): Ditto.
5540 (ix86_maybe_switch_abi): Ditto.
5541 (ix86_expand_call): Ditto for clobbered_registers array.
5542 (ix86_hard_regno_mode_ok): Ditto.
5543 (x86_extended_QIreg_mentioned_p): Ditto.
5544
5545 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
5546
5547 PR tree-optimization/39349
5548 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
5549
5550 * combine.c (gen_lowpart_for_combine): Use omode when generating
5551 clobber.
5552
5553 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
5554
5555 PR rtl-optimization/39235
5556 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
5557
5558 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
5559
5560 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
5561
5562 2009-03-04 Richard Guenther <rguenther@suse.de>
5563
5564 PR tree-optimization/39362
5565 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
5566 that occur in abnormal PHIs should be varying.
5567
5568 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
5569
5570 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
5571 Extend comments.
5572 (simple_iv): Take loop as an argument instead of statement.
5573 * tree-scalar-evolution.h (simple_iv): Declaration changed.
5574 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
5575 to simple_iv.
5576 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
5577 Ditto.
5578 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
5579 * matrix-reorg.c (analyze_transpose): Ditto.
5580 * tree-data-ref.c (dr_analyze_innermost): Ditto.
5581 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
5582 * tree-predcom.c (ref_at_iteration): Ditto.
5583 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
5584
5585 2009-03-04 Richard Guenther <rguenther@suse.de>
5586
5587 PR tree-optimization/39358
5588 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
5589 escaped_id and callused_id.
5590 (solve_graph): Likewise.
5591
5592 2009-03-04 Richard Guenther <rguenther@suse.de>
5593
5594 PR tree-optimization/39339
5595 * tree-sra.c (try_instantiate_multiple_fields): Make it
5596 no longer ICE on the above.
5597
5598 2009-03-03 Joseph Myers <joseph@codesourcery.com>
5599
5600 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
5601 that fits within Pmode.
5602
5603 2009-03-03 Steve Ellcey <sje@cup.hp.com>
5604
5605 PR middle-end/10109
5606 * tm.texi (LIBCALL_VALUE): Update description.
5607
5608 2009-03-03 Steve Ellcey <sje@cup.hp.com>
5609
5610 PR middle-end/34443
5611 * doc/extend.texi (section): Update description.
5612
5613 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
5614
5615 PR middle-end/39345
5616 * tree-inline.c (remapped_type): New.
5617 (can_be_nonlocal): Call remapped_type instead of remap_type.
5618
5619 2009-03-03 Jakub Jelinek <jakub@redhat.com>
5620
5621 PR fortran/39354
5622 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
5623 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
5624
5625 2009-03-03 Richard Guenther <rguenther@suse.de>
5626
5627 PR middle-end/39272
5628 * tree.c (tree_nonartificial_location): New function.
5629 * tree.h (tree_nonartificial_location): Declare.
5630 * builtins.c (expand_builtin_memory_chk): Provide location
5631 of the call location for artificial function pieces.
5632 (maybe_emit_chk_warning): Likewise.
5633 (maybe_emit_sprintf_chk_warning): Likewise.
5634 (maybe_emit_free_warning): Likewise.
5635 * expr.c (expand_expr_real_1): Likewise.
5636
5637 2009-03-03 Jakub Jelinek <jakub@redhat.com>
5638
5639 PR tree-optimization/39343
5640 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
5641 COMPONENT_REF t has ARRAY_TYPE.
5642
5643 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5644
5645 PR middle-end/39335
5646 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5647 when the type precision of the induction variable should be
5648 larger than the type precision of nit.
5649 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5650 * graphite.c (graphite_loop_normal_form): Same.
5651 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5652
5653 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
5654
5655 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
5656 (*call_1_rex64_ms_sysv): Use named constants instead of magic
5657 numbers to describe clobbered registers.
5658 (*call_value_0_rex64_ms_sysv): Ditto.
5659 * config/i386/mmx.md (mmx_emms): Ditto.
5660 (mmx_femms): Ditto.
5661
5662 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
5663
5664 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
5665 of ABI_64.
5666
5667 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5668
5669 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
5670 (spu_section_type_flags): New function.
5671
5672 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
5673
5674 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
5675 reg_class_contents of FLOAT_REGS into a temporary.
5676
5677 2009-03-02 Richard Guenther <rguenther@suse.de>
5678 Ira Rosen <irar@il.ibm.com>
5679
5680 PR tree-optimization/39318
5681 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
5682 information to the vectorized statement.
5683
5684 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
5685
5686 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
5687 variable. Use defined names instead of magic constants for REX SSE
5688 registers.
5689
5690 2009-03-01 Richard Guenther <rguenther@suse.de>
5691
5692 PR tree-optimization/39331
5693 * omp-low.c (lower_send_shared_vars): Do not receive new
5694 values for the reference of DECL_BY_REFERENCE parms or results.
5695
5696 2009-03-01 Jan Hubicka <jh@suse.cz>
5697
5698 PR debug/39267
5699 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
5700 BLOCK_NONLOCALIZED_VAR): New macros.
5701 (tree_block): Add nonlocalized_vars.
5702 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
5703 gen_decl_die): Add origin argument. Allow generation of die with
5704 origin at hand only.
5705 (gen_member_die, gen_type_die_with_usage, force_decl_die,
5706 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
5707 of gen_*.
5708 (gen_block_die): Fix checking for unused blocks.
5709 (process_scope_var): Break out from .... ; work with origins only.
5710 (decls_for_scope) ... here; process nonlocalized list.
5711 (dwarf2out_ignore_block): Look for nonlocalized vars.
5712 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
5713 vars.
5714 (dump_scope_block): Dump them.
5715 * tree-inline.c (remap_decls): Handle nonlocalized vars.
5716 (remap_block): Likewise.
5717 (can_be_nonlocal): New predicate.
5718 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
5719
5720 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5721
5722 * configure: Regenerate.
5723
5724 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5725
5726 * optc-gen.awk: No need to duplicate option flags twice.
5727 Reuse help texts for duplicate options which do not have any.
5728
5729 * gcc.c (display_help): Document --version.
5730
5731 * gcc.c (main): If print_help_list and verbose_flag, ensure
5732 driver output comes before subprocess output.
5733
5734 * optc-gen.awk: Assign all remaining fields to help string,
5735 space-separated, for multi-line help in *.opt.
5736
5737 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
5738 -Wno-pedantic-ms-format is for MinGW targets only.
5739
5740 * doc/options.texi (Option file format): Fix bad indentation,
5741 restoring dropped sentence.
5742
5743 2009-02-28 Jan Hubicka <jh@suse.cz>
5744
5745 * tree-inline.c (tree_function_versioning): Output debug info.
5746
5747 2009-02-28 Jan Hubicka <jh@suse.cz>
5748
5749 PR debug/39267
5750 * tree-inline.c (setup_one_parameter): Do not copy propagate
5751 arguments when not optimizing.
5752
5753 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
5754
5755 PR target/39327
5756 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5757 (avx_addsubv4df3): Likewise.
5758 (*avx_addsubv4sf3): Likewise.
5759 (sse3_addsubv4sf3): Likewise.
5760 (*avx_addsubv2df3): Likewise.
5761 (sse3_addsubv2df3): Likewise.
5762 (avx_unpckhps256): Correct item selectors.
5763 (avx_unpcklps256): Likewise.
5764 (avx_unpckhpd256): Likewise.
5765 (avx_unpcklpd256): Likewise.
5766
5767 2009-02-28 Jan Hubicka <jh@suse.cz>
5768
5769 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
5770 static vars.
5771 (copy_arguments_for_versioning): If var is declared don't declare it.
5772 (tree_function_versioning): First setup substitutions and then copy
5773 args.
5774
5775 2009-02-27 Jan Hubicka <jh@suse.cz>
5776
5777 PR debug/39267
5778 * cgraph.h (varpool_output_debug_info): Remove.
5779 * cgraphunit.c (varpool_output_debug_info): Remove.
5780 * dwarf2out.c (deferred_locations_struct): New struct
5781 (deferred_locations): New type.
5782 (deferred_locations_list): New static var.
5783 (deffer_location): New function.
5784 (gen_variable_die): Use it.
5785 (decls_for_scope): Output info on local static vars.
5786 (dwarf2out_finish): Process deferred locations.
5787 * varpool.c (varpool_output_debug_info): Remove.
5788
5789 2009-02-27 Jan Hubicka <jh@suse.cz>
5790
5791 PR debug/39267
5792 * tree.h (TREE_PROTECTED): Fix comment.
5793 (BLOCK_HANDLER_BLOCK): Remove.
5794 (struct tree_block): Remove handler_block add body_block.
5795 (inlined_function_outer_scope_p): New.
5796 (is_body_block): Remove.
5797 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
5798 * dwarf2out.c (is_inlined_entry_point): Remove.
5799 (add_high_low_attributes): Use inlined_function_outer_scope_p.
5800 (gen_block_die): Use is_inlined_entry_point check. Remove body block
5801 code.
5802 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
5803 * gimplify.c (gimplify_expr): Gimplify body blocks.
5804 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
5805 block with multiple subblocks.
5806 (dump_scope_block): Prettier output; dump more flags and info.
5807 (dump_scope_blocks): New.
5808 (remove_unused_locals): Use dump_scope_blocks.
5809 * tree-flow.h (dump_scope_blocks): Declare.
5810 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
5811 * stmt.c (is_body_block): Remove.
5812 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
5813 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
5814
5815 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5816
5817 PR middle-end/39308
5818 * graphite.c (graphite_loop_normal_form): Do not call
5819 number_of_iterations_exit from a gcc_assert.
5820
5821 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5822
5823 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
5824 jumps if COND is NULL.
5825 (find_cond_jump): New function.
5826 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
5827 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
5828
5829 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
5830
5831 * config/alpha/alpha.h (alpha_expand_mov): Return false if
5832 force_const_mem returns NULL_RTX.
5833
5834 2009-02-26 Jan Hubicka <jh@suse.cz>
5835
5836 PR debug/39267
5837 * cgraph.h (varpool_output_debug_info): Remove.
5838 * cgraphunit.c (varpool_output_debug_info): Remove.
5839 * dwarf2out.c (deferred_locations_struct): New struct
5840 (deferred_locations): New type.
5841 (deferred_locations_list): New static var.
5842 (deffer_location): New function.
5843 (gen_variable_die): Use it.
5844 (decls_for_scope): Output info on local static vars.
5845 (dwarf2out_finish): Process deferred locations.
5846 * varpool.c (varpool_output_debug_info): Remove.
5847
5848 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
5849
5850 PR rtl-optimization/39241
5851 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
5852 to subreg_offset_representable_p.
5853
5854 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
5855
5856 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
5857 execute function prototype. Get f and nregs from max_reg_num
5858 and get_insns. Remove the first backward pass as it's dead,
5859 guard the forward pass by flag_expensive_optimizations.
5860 (rest_of_handle_regmove): Delete.
5861 (pass_regmove): Replace it with regmove_optimize.
5862
5863 2009-02-25 Martin Jambor <mjambor@suse.cz>
5864
5865 PR tree-optimization/39259
5866 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
5867 calls_alloca function flags.
5868 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
5869 calls are detected.
5870
5871 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
5872
5873 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
5874 flags_set_1_rtx, flags_set_1_set): Delete.
5875 (regmove_optimize): Do not call mark_flags_life_zones.
5876
5877 2009-02-24 Julian Brown <julian@codesourcery.com>
5878
5879 PR target/35965
5880 * config/arm/arm.c (require_pic_register): Only set
5881 cfun->machine->pic_reg once per function.
5882
5883 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
5884
5885 * doc/invoke.texi (Link Options): Document an easier way to pass
5886 options that take arguments to the GNU linker using -Xlinker and -Wl.
5887
5888 2009-02-24 Steve Ellcey <sje@cup.hp.com>
5889
5890 PR target/33785
5891 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
5892
5893 2009-02-24 Richard Guenther <rguenther@suse.de>
5894
5895 PR debug/39285
5896 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
5897
5898 2009-02-24 Richard Guenther <rguenther@suse.de>
5899 Zdenek Dvorak <ook@ucw.cz>
5900
5901 PR tree-optimization/39233
5902 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
5903 from converting them to a generic type.
5904
5905 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5906
5907 PR tree-optimization/39260
5908 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
5909 contains a condition with a real type.
5910 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
5911
5912 2009-02-23 Jason Merrill <jason@redhat.com>
5913
5914 PR c++/38880
5915 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
5916 narrowing_initializer_constant_valid_p.
5917 (narrowing_initializer_constant_valid_p): Don't return
5918 null_pointer_node for adding a pointer to itself.
5919
5920 2009-02-23 Jan Hubicka <jh@suse.cz>
5921
5922 PR c/12245
5923 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
5924 resizing.
5925
5926 2009-02-23 Jan Hubicka <jh@suse.cz>
5927
5928 PR tree-optimization/37709
5929 * tree.c (block_ultimate_origin): Move here from dwarf2out.
5930 * tree.h (block_ultimate_origin): Declare.
5931 * dwarf2out.c (block_ultimate_origin): Move to tree.c
5932 * tree-ssa-live.c (remove_unused_scope_block_p):
5933 Eliminate blocks containig no instructions nor live variables nor
5934 nested blocks.
5935 (dump_scope_block): New function.
5936 (remove_unused_locals): Enable removal of dead blocks by default;
5937 enable dumping at TDF_DETAILS.
5938
5939 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5940
5941 * config/i386/i386.c (classify_argument): Don't allow COImode
5942 and OImode.
5943 (function_arg_advance_32): Don't allow OImode.
5944 (function_arg_32): Likewise.
5945 (function_value_32): Likewise.
5946 (return_in_memory_32): Likewise.
5947 (function_arg_64): Remove OImode comment.
5948
5949 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 PR target/39261
5952 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5953 ix86_expand_vector_set for V4DImode in 64bit mode only.
5954 (ix86_expand_vector_init_one_var): Likewise.
5955
5956 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5957
5958 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
5959
5960 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
5961
5962 PR bootstrap/39257
5963 * loop-iv.c: Revert last change.
5964 * emit-rtl.c: Likewise.
5965
5966 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5967
5968 PR target/39256
5969 * config/i386/i386.c (type_natural_mode): Remove an extra
5970 space in the warning message.
5971 (function_value_32): Handle 32-byte vector modes.
5972 (return_in_memory_32): Likewise.
5973
5974 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
5975
5976 * loop-iv.c (truncate_value): New function.
5977 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
5978 of lowpart_subreg.
5979 (lowpart_subreg): Move to...
5980 * emit-rtl.c: ...here.
5981
5982 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
5983
5984 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
5985 accidental and undocumented change at revision 140860.
5986
5987 2009-02-21 Joseph Myers <joseph@codesourcery.com>
5988
5989 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
5990 take gimple_seq * arguments.
5991 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
5992 types_compatible_p langhook.
5993
5994 2009-02-20 Mark Mitchell <mark@codesourcery.com>
5995 Joseph Myers <joseph@codesourcery.com>
5996
5997 * config/arm/arm.c (arm_builtin_va_list): New function.
5998 (arm_expand_builtin_va_start): Likewise.
5999 (arm_gimplify_va_arg_expr): Likewise.
6000 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6001 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6002 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6003 (va_list_type): New variable.
6004 (arm_mangle_type): Mangle va_list_type appropriately.
6005
6006 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6007
6008 PR middle-end/39157
6009 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6010 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6011 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6012 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6013 parameter to 1000 for -O1 by default.
6014 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6015 parameter.
6016 * loop-invariant.c: Include params.h.
6017 (move_loop_invariants): Don't call move_single_loop_invariants on
6018 very large loops.
6019
6020 2009-02-20 Jaka Mocnik <jaka@xlab.si>
6021
6022 * calls.c (emit_library_call_value_1): Use slot_offset instead of
6023 offset when calculating bounds for indexing stack_usage_map. Fixes
6024 a buffer overflow with certain target setups.
6025
6026 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR target/39240
6029 * calls.c (expand_call): Clear try_tail_call if caller and callee
6030 disagree in promotion of function return value.
6031
6032 2009-02-19 Jakub Jelinek <jakub@redhat.com>
6033
6034 PR target/39175
6035 * c-common.c (c_determine_visibility): If visibility changed and
6036 DECL_RTL has been already set, call make_decl_rtl to update symbol
6037 flags.
6038
6039 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
6040
6041 PR c++/39188
6042 * varasm.c (assemble_variable): Don't check DECL_NAME when
6043 globalizing a variable.
6044
6045 2009-02-19 Joseph Myers <joseph@codesourcery.com>
6046
6047 PR c/38483
6048 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6049 expression before any __builtin_trap call.
6050 * c-typeck.c (build_function_call): Convert and check function
6051 arguments before generating a call to a trap. Evaluate the
6052 function arguments before the trap.
6053
6054 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
6055
6056 PR target/39228
6057 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6058 (UNSPEC_FXAM_MEM): New unspec.
6059 (fxam<mode>2_i387_with_temp): New insn and split pattern.
6060 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
6061 memory using fxam<mode>2_i387_with_temp to remove excess precision.
6062
6063 2009-02-19 Richard Guenther <rguenther@suse.de>
6064
6065 PR tree-optimization/39207
6066 PR tree-optimization/39074
6067 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6068 storedanything_tree): New.
6069 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6070 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6071 (build_succ_graph): Add edges from STOREDANYTHING to all
6072 non-direct nodes.
6073 (init_base_vars): Initialize STOREDANYTHING.
6074 (compute_points_to_sets): Free substitution info after
6075 building the succ graph.
6076 (ipa_pta_execute): Likewise.
6077
6078 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6079 field.
6080 (do_ds_constraint): Do not add to special var or non-pointer
6081 field solutions.
6082 (type_could_have_pointers): Split out from ...
6083 (could_have_pointers): ... here. For arrays use the element type.
6084 (create_variable_info_for): Initialize may_have_pointers.
6085 (new_var_info): Likewise.
6086 (handle_lhs_call): Make the HEAP variable unknown-sized.
6087 (intra_create_variable_infos): Use a type with pointers for
6088 PARM_NOALIAS, make it unknown-sized.
6089
6090 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6091
6092 PR target/39224
6093 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6094
6095 2009-02-18 Jason Merrill <jason@redhat.com>
6096
6097 PR target/39179
6098 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6099 value if DECL_EXTERNAL.
6100 * tree-sra.c (sra_walk_gimple_assign): Likewise.
6101 * target.h (gcc_target::binds_local_p): Clarify "module".
6102 * tree.h (TREE_PUBLIC): Clarify "module".
6103
6104 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
6105
6106 PR target/38891
6107 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6108 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6109
6110 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
6111
6112 PR target/39082
6113 * c.opt (Wabi): Support C and ObjC.
6114 (Wpsabi): New.
6115
6116 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6117
6118 * config/i386/i386.c (classify_argument): Warn once about the ABI
6119 change when passing union with long double.
6120
6121 * doc/invoke.texi: Update -Wabi for warning psABI changes.
6122
6123 2009-02-18 Joseph Myers <joseph@codesourcery.com>
6124
6125 PR c/35447
6126 * c-parser.c (c_parser_compound_statement): Always enter and leave
6127 a scope.
6128
6129 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6130
6131 PR target/34587
6132 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6133
6134 2009-02-18 Jakub Jelinek <jakub@redhat.com>
6135
6136 PR tree-optimization/36922
6137 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6138 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6139 Likewise.
6140
6141 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6142
6143 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6144 to 0 for EABI64.
6145
6146 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6147
6148 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6149
6150 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6151
6152 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6153 tree sharing.
6154
6155 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
6156 Richard Sandiford <rdsandiford@googlemail.com>
6157
6158 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6159 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6160 (loongson_biadd): ...this.
6161
6162 2009-02-17 Richard Guenther <rguenther@suse.de>
6163
6164 PR tree-optimization/39202
6165 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6166 a var make sure to follow existing collapses.
6167
6168 2009-02-17 Richard Guenther <rguenther@suse.de>
6169
6170 PR middle-end/39214
6171 * langhooks.c (lhd_print_error_function): Check for NULL block.
6172
6173 2009-02-17 Richard Guenther <rguenther@suse.de>
6174
6175 PR tree-optimization/39204
6176 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6177 of the PHI arg.
6178
6179 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
6180
6181 * config/soft-fp/double.h: Update from glibc CVS.
6182
6183 2009-02-17 Richard Guenther <rguenther@suse.de>
6184
6185 PR tree-optimization/39207
6186 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6187 strict-aliasing warnings for pointers pointing to NULL.
6188
6189 2009-02-16 Joseph Myers <joseph@codesourcery.com>
6190
6191 PR c/35446
6192 * c-parser.c (c_parser_braced_init): Call pop_init_level when
6193 skipping until next close brace.
6194
6195 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
6196
6197 PR target/37049
6198 * config/i386/i386.c (ix86_expand_push): Set memory alignment
6199 to function argument boundary.
6200
6201 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
6202
6203 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6204 in the lea_add. Reload eventually constraints it properly.
6205 * config/picochip/constraints.md : Remove the target constraint
6206 "b", since it is not needed anymore.
6207
6208 2009-02-16 Jakub Jelinek <jakub@redhat.com>
6209
6210 * gthr-dce.h: Uglify function parameter and local variable names.
6211 * gthr-gnat.h: Likewise.
6212 * gthr-mipssde.h: Likewise.
6213 * gthr-nks.h: Likewise.
6214 * gthr-posix95.h: Likewise.
6215 * gthr-posix.h: Likewise.
6216 * gthr-rtems.h: Likewise.
6217 * gthr-single.h: Likewise.
6218 * gthr-solaris.h: Likewise.
6219 * gthr-tpf.h: Likewise.
6220 * gthr-vxworks.h: Likewise.
6221 * gthr-win32.h: Likewise.
6222
6223 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
6224
6225 PR target/39196
6226 * config/i386/i386.md: Restrict the new peephole2 to move
6227 between MMX/SSE registers.
6228
6229 2009-02-15 Richard Guenther <rguenther@suse.de>
6230
6231 Revert
6232 2009-02-13 Richard Guenther <rguenther@suse.de>
6233
6234 * configure.ac: Enable LFS.
6235 * configure: Re-generate.
6236 * config.in: Likewise.
6237
6238 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6239
6240 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6241 spu_srqwbyte, spu_srqwbytebc): Define.
6242 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6243 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6244 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6245 "shrqby_<mode>"): New insn-and-split patterns.
6246 * config/spu/spu.c (expand_builtin_args): Determine and return
6247 number of operands using spu_builtin_description data.
6248 (spu_expand_builtin_1): Use it.
6249
6250 2009-02-13 Steve Ellcey <sje@cup.hp.com>
6251
6252 PR target/38056
6253 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6254 TARGET_CONST_GP.
6255
6256 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6257
6258 PR target/39149
6259 * config/i386/i386.c (override_options): Correct warning
6260 messages for -malign-loops, -malign-jumps and -malign-functions.
6261
6262 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6263
6264 PR target/39152
6265 * config/i386/i386.md: Restrict the new peephole2 to move
6266 between the general purpose registers.
6267
6268 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6269
6270 PR target/39162
6271 * config/i386/i386.c (type_natural_mode): Add a new argument.
6272 Return the original mode and warn ABI change if vector size is 32byte.
6273 (function_arg_advance): Updated.
6274 (function_arg): Likewise.
6275 (ix86_function_value): Likewise.
6276 (ix86_return_in_memory): Likewise.
6277 (ix86_sol10_return_in_memory): Likewise.
6278 (ix86_gimplify_va_arg): Likewise.
6279 (function_arg_32): Don't warn ABX ABI change here.
6280 (function_arg_64): Likewise.
6281
6282 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
6283
6284 * loop-iv.c (implies_p): In the final case, test that operands 0
6285 of the two comparisons match.
6286
6287 * config/bfin/bfin.c (find_prev_insn_start): New function.
6288 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6289 (find_next_insn_start): Move.
6290
6291 2009-02-13 Richard Guenther <rguenther@suse.de>
6292
6293 * configure.ac: Enable LFS.
6294 * configure: Re-generate.
6295 * config.in: Likewise.
6296
6297 2009-02-13 Joseph Myers <joseph@codesourcery.com>
6298
6299 PR c/35444
6300 * c-parser.c (c_parser_parms_list_declarator): Discard pending
6301 sizes on syntax error after some arguments have been parsed.
6302
6303 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6304
6305 * doc/invoke.texi (-fira): Remove.
6306
6307 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6308
6309 * caller-save.c: Replace regclass.c with reginfo.c in comments.
6310 * recog.c: Likewise.
6311 * rtl.h: Likewise.
6312
6313 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
6314
6315 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6316 (umul_ppmm): Likewise.
6317 (count_leading_zeros): Likewise.
6318 (count_trailing_zeros): Likewise.
6319 (UMUL_TIME): Likewise.
6320
6321 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6322
6323 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6324 soft-fp/t-softfp to tmake_file.
6325
6326 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6327 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6328 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6329 IA64_BUILTIN_INFQ]: New.
6330 (ia64_init_builtins): Initialize __builtin_infq,
6331 __builtin_fabsq and __builtin_copysignq if not HPUX.
6332 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6333 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6334
6335 * config/ia64/lib1funcs.asm (__divtf3): Define only if
6336 SHARED is defined.
6337 (__fixtfti): Likewise.
6338 (__fixunstfti): Likewise.
6339 (__floattitf): Likewise.
6340
6341 * config/ia64/libgcc-glibc.ver: New.
6342 * config/ia64/t-fprules-softfp: Likewise.
6343 * config/ia64/sfp-machine.h: Likewise.
6344
6345 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6346 (LIBGCC2_TF_CEXT): Likewise.
6347 (TF_SIZE): Likewise.
6348 (TARGET_INIT_LIBFUNCS): Likewise.
6349
6350 * config/ia64/t-glibc (SHLINB_MAPFILES):
6351 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6352
6353 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6354
6355 * config/i386/i386.c (construct_container): Rewrite processing
6356 BLKmode with X86_64_SSE_CLASS.
6357
6358 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
6359
6360 PR target/39152
6361 * config/i386/i386.md: Replace simplify_replace_rtx with
6362 replace_rtx in the new peephole2.
6363
6364 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
6365
6366 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6367 loop unrolling do not happen at -O2.
6368
6369 2009-02-12 Michael Matz <matz@suse.de>
6370
6371 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6372
6373 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6374
6375 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6376 for -g3.
6377
6378 2009-02-12 Ben Elliston <bje@au.ibm.com>
6379
6380 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6381 patterns when updating the back chain. Missed in the 2009-02-10
6382 change.
6383
6384 2009-02-11 Janis Johnson <janis187@us.ibm.com>
6385
6386 * doc/extend.texi (Decimal Floating Types): Update identifier of
6387 draft TR and list of missing support.
6388
6389 2009-02-11 Jakub Jelinek <jakub@redhat.com>
6390
6391 PR middle-end/39154
6392 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
6393 bit to variable length decl's flags, add it also to its
6394 pointer replacement variable.
6395
6396 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
6397 Jakub Jelinek <jakub@redhat.com>
6398
6399 PR target/39118
6400 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
6401 (memory_blockage): New expander.
6402 (*memory_blockage): New insn pattern.
6403 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
6404 instead of general blockage at the end of function prologue when
6405 frame pointer is used to access red zone area. Do not emit blockage
6406 when profiling, it is emitted in generic code.
6407 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
6408 function epilogue when frame pointer is used to access red zone area.
6409
6410 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
6411
6412 PR target/38824
6413 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
6414 by arithmetic with memory operands.
6415 * config/i386/predicates.md (commutative_operator): New.
6416
6417 2009-02-10 Janis Johnson <janis187@us.ibm.com>
6418
6419 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
6420 bulleted lists.
6421
6422 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
6423
6424 * alias.h (record_alias_subset): Declare.
6425 * alias.c (record_alias_subset): Make global.
6426
6427 2009-02-10 Nick Clifton <nickc@redhat.com>
6428
6429 * tree-parloops.c: Change license to GPLv3.
6430 * ipa-struct-reorg.c: Change license to GPLv3.
6431 * ipa-struct-reorg.h: Change license to GPLv3.
6432
6433 2009-02-10 Steve Ellcey <sje@cup.hp.com>
6434
6435 PR c/39084
6436 * c-decl.c (start_struct): Return NULL on error.
6437
6438 2009-02-10 Jakub Jelinek <jakub@redhat.com>
6439
6440 PR middle-end/39124
6441 * cfgloopmanip.c (remove_path): Call remove_bbs after
6442 cancel_loop_tree, not before it.
6443
6444 PR target/39139
6445 * function.h (struct function): Add has_local_explicit_reg_vars bit.
6446 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
6447 VAR_DECLs were seen.
6448 * tree-ssa-live.c (remove_unused_locals): Recompute
6449 cfun->has_local_explicit_reg_vars.
6450 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
6451 copies or clearings if cfun->has_local_explicit_reg_vars.
6452
6453 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
6454
6455 PR target/39118
6456 * config/i386/i386.c (expand_prologue): Emit blockage at the end
6457 of function prologue when frame pointer is used to access
6458 red zone area.
6459
6460 2009-02-10 Richard Guenther <rguenther@suse.de>
6461
6462 PR middle-end/39127
6463 * gimplify.c (gimple_regimplify_operands): Always look if
6464 we need to create a temporary.
6465
6466 2009-02-10 Richard Guenther <rguenther@suse.de>
6467
6468 PR tree-optimization/39132
6469 * tree-loop-distribution.c (todo): New global var.
6470 (generate_memset_zero): Trigger TODO_rebuild_alias.
6471 (tree_loop_distribution): Return todo.
6472
6473 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
6474
6475 PR target/39119
6476 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
6477 (x86_64_reg_class_name): Removed.
6478 (classify_argument): Return 0 if bytes > 32. Return 0 if the
6479 first one isn't X86_64_SSE_CLASS or any other ones aren't
6480 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
6481 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
6482 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
6483 and 3 X86_64_SSEUP_CLASS.
6484 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
6485 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
6486
6487 2009-02-10 Ben Elliston <bje@au.ibm.com>
6488
6489 * config/rs6000/rs6000.md (allocate_stack): Always use an update
6490 form instruction to update the stack back chain word, even if the
6491 user has disabled the generation of update instructions.
6492 (movdi_<mode>_update_stack): New.
6493 (movsi_update_stack): Likewise.
6494 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
6495 always use an update form instruction to update the stack back
6496 chain word.
6497
6498 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
6499
6500 PR middle-end/38953
6501 * graphite.c (if_region_set_false_region): After moving a region in
6502 the false branch of a condition, remove the empty dummy basic block.
6503 (gloog): Remove wrong fix for PR38953.
6504
6505 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6506
6507 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
6508 generation due to implicit sign extension.
6509
6510 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
6511
6512 PR middle-end/38981
6513 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
6514 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
6515
6516 2009-02-09 Richard Guenther <rguenther@suse.de>
6517
6518 PR middle-end/35202
6519 * convert.c (convert_to_real): Disable (float)fn((double)x)
6520 to fnf(x) conversion if errno differences may occur and
6521 -fmath-errno is set.
6522
6523 2009-02-07 Anatoly Sokolov <aesok@post.ru>
6524
6525 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
6526 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6527 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6528
6529 2009-02-06 Joseph Myers <joseph@codesourcery.com>
6530
6531 PR c/35434
6532 * c-common.c (handle_alias_attribute): Disallow attribute for
6533 anything not a FUNCTION_DECL or VAR_DECL.
6534
6535 2009-02-06 Janis Johnson <janis187@us.ibm.com>
6536
6537 PR c/39035
6538 * real.c (do_compare): Special-case compare of zero against
6539 decimal float value.
6540
6541 2009-02-06 Joseph Myers <joseph@codesourcery.com>
6542
6543 PR c/36432
6544 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
6545 as indicating flexible array members unless the field itself is
6546 being declarared as the incomplete array.
6547
6548 2009-02-06 Jan Hubicka <jh@suse.cz>
6549
6550 PR tree-optimization/38844
6551 * ipa-inline.c (try_inline): Stop inlining recursion when edge
6552 is already inlined.
6553
6554 2009-02-06 Richard Guenther <rguenther@suse.de>
6555
6556 PR middle-end/38977
6557 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
6558 fork because we may expand it as __gcov_fork.
6559
6560 2009-02-06 Nick Clifton <nickc@redhat.com>
6561
6562 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
6563
6564 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
6565
6566 PR tree-optimization/35659
6567 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
6568 vn_phi_eq): Shortcut if hashcode does not match.
6569 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
6570 NULL operands.
6571 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
6572 and avoid iterative_hash_expr.
6573 (FOR_EACH_VALUE_ID_IN_SET): New.
6574 (value_id_compare): Remove.
6575 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
6576 sort expressions by value id.
6577
6578 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
6579
6580 PR target/38991
6581 * config/sh/predicates.md (general_movsrc_operand): Don't check
6582 the subreg of system registers here.
6583
6584 2009-02-05 Jakub Jelinek <jakub@redhat.com>
6585
6586 PR c++/39106
6587 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
6588 on the copied decl.
6589
6590 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
6591
6592 PR rtl-optimization/39110
6593 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
6594 addresses, not aligned ones.
6595
6596 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
6597 Richard Guenther <rguenther@suse.de>
6598
6599 PR tree-optimization/39100
6600 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
6601 comment says and add edges.
6602
6603 2009-02-05 Joseph Myers <joseph@codesourcery.com>
6604
6605 PR c/35435
6606 * c-common.c (handle_tls_model_attribute): Ignore attribute for
6607 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
6608
6609 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
6610
6611 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6612 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6613 register_bb_in_sese, new_sese, free_sese): Moved.
6614 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6615 outermost_loop_in_scop, build_scop_iteration_domain,
6616 expand_scalar_variables_ssa_name, get_vdef_before_scop,
6617 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6618 Use loop_in_sese_p instead of loop_in_scop_p.
6619 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
6620 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
6621 (scopdet_basic_block_info): Fix bug in scop detection.
6622 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6623 eq_loop_to_cloog_loop): Remove.
6624 (nb_loops_around_loop_in_scop, nb_loop
6625 ref_nb_loops): Moved here...
6626 * graphite.h (ref_nb_loops): ... from here.
6627 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
6628 (loop_domain_dim, loop_iteration_vector_dim): Remove.
6629 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6630 * testsuite/gcc.dg/graphite/scop-19.c: New
6631
6632 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
6633 Hans-Peter Nilsson <hp@axis.com>
6634
6635 PR rtl-optimization/37889
6636 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
6637 Move offset handling from PLUS to before the switch. Use new
6638 arguments when considering SYMBOL_REFs too.
6639 (rtx_addr_can_trap_p): Pass dummy offset and size.
6640 (enum may_trap_p_flags): Remove.
6641 (may_trap_p_1): Pass size from MEM_SIZE.
6642
6643 PR rtl-optimization/38921
6644 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
6645 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
6646 * rtlanal.c (may_trap_after_code_motion_p): Delete.
6647 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
6648
6649 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
6650
6651 AVX Programming Reference (January, 2009)
6652 * config/i386/sse.md (*vpclmulqdq): New.
6653
6654 2009-02-04 Jakub Jelinek <jakub@redhat.com>
6655
6656 PR tree-optimization/38977
6657 PR gcov-profile/38292
6658 * calls.c (special_function_p): Disregard __builtin_ prefix.
6659
6660 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
6661
6662 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
6663 non-indexable addresses even before reload.
6664
6665 2009-02-03 Joseph Myers <joseph@codesourcery.com>
6666
6667 PR c/29129
6668 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
6669 as having variable size. Do not give an error for unnamed
6670 parameters with [*] declarators. Give a warning for type names
6671 with [*] declarators and mark them as variable size.
6672 * c-parser.c (c_parser_sizeof_expression): Do not give an error
6673 for sizeof applied to [*] type names.
6674
6675 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
6676
6677 PR C++/36607
6678 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
6679
6680 2009-02-03 Jakub Jelinek <jakub@redhat.com>
6681
6682 * gcc.c (process_command): Update copyright notice dates.
6683 * gcov.c (print_version): Likewise.
6684 * gcov-dump.c (print_version): Likewise.
6685 * mips-tfile.c (main): Likewise.
6686 * mips-tdump.c (main): Likewise.
6687
6688 2009-02-03 Joseph Myers <joseph@codesourcery.com>
6689
6690 PR c/35433
6691 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
6692 for composite type involving a zero-length array type.
6693
6694 2009-02-03 Jakub Jelinek <jakub@redhat.com>
6695
6696 PR target/35318
6697 * function.c (match_asm_constraints_1): Skip over
6698 initial optional % in the constraint.
6699
6700 PR inline-asm/39059
6701 * c-parser.c (c_parser_postfix_expression): If fixed point is not
6702 supported, don't accept FIXED_CSTs.
6703 * c-decl.c (finish_declspecs): Error if fixed point is not supported
6704 and _Sat is used without _Fract/_Accum. Set specs->type to
6705 integer_type_node for cts_fract/cts_accum if fixed point is not
6706 supported.
6707
6708 2009-02-02 Catherine Moore <clm@codesourcery.com>
6709
6710 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
6711
6712 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
6713
6714 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
6715 (ABI_HAS_64BIT_SYMBOLS): Use it.
6716 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
6717
6718 2009-02-02 Paul Brook <paul@codesourcery.com>
6719
6720 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
6721
6722 2009-02-02 Jakub Jelinek <jakub@redhat.com>
6723
6724 PR inline-asm/39058
6725 * recog.h (asm_operand_ok): Add constraints argument.
6726 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
6727 recurse on matching constraint.
6728 (check_asm_operands): Pass constraints as 3rd argument to
6729 asm_operand_ok. Don't look up matching constraint here.
6730 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
6731 to asm_operand_ok.
6732
6733 2009-02-02 Ben Elliston <bje@au.ibm.com>
6734
6735 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
6736 TARGET_NARROW_VOLATILE_BITFIELD macro names.
6737
6738 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6739
6740 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
6741 information. Remove some obsolete information. Reorganize.
6742
6743 * config/pa/fptr.c: Revert license to GPL 2.
6744 * config/pa/milli64.S: Likewise.
6745
6746 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
6747
6748 PR target/38904
6749 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
6750 LIBRARY name in, instead of hard-coding it.
6751 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
6752 extra target make frag to tmake_files according to EH model.
6753 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6754 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
6755 frags that define makefile variable EH_MODEL appropriately.
6756 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
6757 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
6758 to "-sjlj" according to type of EH configured.
6759 (LIBGCC_SONAME): Concatenate it to shared library base name.
6760 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
6761 to "_sjlj" according to type of EH configured.
6762 (LIBGCC_SONAME): Concatenate it to shared library base name.
6763 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
6764 (SHLIB_LINK): Add missing semicolon to if-else construct.
6765 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
6766 string value of "pe_dll" command-line option.
6767 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
6768 (SHLIB_SONAME): Use it when overriding t-cygming default.
6769 (SHLIB_IMPLIB): Override t-cygming default.
6770 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
6771 string value of "pe_dll" command-line option.
6772
6773 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
6774
6775 PR target/38952
6776 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
6777 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
6778
6779 2009-01-31 Richard Guenther <rguenther@suse.de>
6780
6781 PR tree-optimization/38937
6782 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
6783 computing the transitive closure.
6784
6785 2009-01-30 Richard Guenther <rguenther@suse.de>
6786
6787 PR tree-optimization/39041
6788 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
6789 Propagate variable indices only if the types match for this stmt.
6790
6791 2009-01-30 Jakub Jelinek <jakub@redhat.com>
6792
6793 PR target/39013
6794 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
6795 inline but never defined.
6796
6797 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
6798
6799 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
6800 (*insv_h_di_reg_extimm): New insn.
6801 (*insv_l<mode>_reg_extimm): New insn.
6802
6803 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
6804
6805 * config/picochip/picochip.c (flag_conserve_stack): set
6806 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
6807 fconserve-stack. Reduce call-overhead used by inliner.
6808
6809 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
6810
6811 PR/38157
6812 * common.opt (flag_conserve_stack): Initialised to zero.
6813
6814 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
6815
6816 PR/39002
6817 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
6818 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
6819 method.
6820
6821 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
6822
6823 * ira-color.c (allocno_reload_assign): Update comments.
6824 * regmove.c (regmove_optimize): Likewise.
6825
6826 * ra.h: Removed.
6827
6828 2009-01-29 Robert Millan <rmh@aybabtu.com>
6829
6830 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
6831 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
6832 `MD_UNWIND_SUPPORT'.
6833 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
6834
6835 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
6836
6837 PR tree-optimization/39007
6838 * tree-loop-distribution.c (generate_builtin): Use
6839 recompute_dominator to compute the immediate dominator of the
6840 basic block just after the loop.
6841
6842 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6843
6844 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
6845 (ASM_OUTPUT_DWARF_PCREL): Define.
6846
6847 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
6848
6849 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
6850 * doc/passes.texi: Remove entries about regclass, local-alloc, and
6851 global. Modify entries about regmove and IRA.
6852
6853 * ra-conflict.c: Remove the file.
6854
6855 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
6856
6857 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
6858 (pass_regclass_init): Rename to pass_reginfo_init.
6859
6860 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
6861
6862 * toplev.h (flag_ira): Remove.
6863
6864 * caller-save.c (setup_save_areas): Remove flag_ira.
6865
6866 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
6867
6868 * global.c: Remove the file.
6869
6870 * opts.c (decode_options): Remove flag_ira.
6871
6872 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
6873
6874 * regmove.c: Modify file description.
6875 (find_use_as_address, try_auto_increment): Define them only if
6876 AUTO_INC_DEC is defined.
6877 (replacement_quality, replace_in_call_usage, fixup_match_1,
6878 stable_and_no_regs_but_for_p): Remove.
6879 (reg_set_in_bb): Make it static.
6880 (regmove_optimize): Remove flag_ira and code which worked for
6881 !flag_ira.
6882
6883 * local-alloc.c: Remove the file.
6884
6885 * common.opt (fira): Remove.
6886
6887 * ira.c: Include except.h.
6888 (eliminable_regset): Move from global.c.
6889 (mark_elimination): Ditto. Remove flag_ira.
6890 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
6891 equiv_mem_modified, validate_equiv_mem_from_store,
6892 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
6893 contains_replace_regs, memref_referenced_p, memref_used_between_p,
6894 no_equiv, recorded_label_ref): Move from local-alloc.c.
6895 (update_equiv_regs): Ditto. Make it static.
6896 (print_insn_chain, print_insn_chains): Move it from global.c.
6897 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
6898 (build_insn_chain): Ditto. Make it static.
6899 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
6900 Rename to init_live_subregs.
6901 (gate_ira): Remove flag_ira.
6902
6903 * regclass.c: Rename reginfo.c. Change file description.
6904 (FORBIDDEN_INC_DEC_CLASSES): Remove.
6905 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
6906 (init_reg_sets_1): Remove code for evaluation of
6907 reg_class_superclasses and losing_caller_save_reg_set.
6908 (init_regs): Remove init_reg_autoinc.
6909 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
6910 ok_for_base_p_nonstrict): Remove.
6911 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
6912 (pass_regclass_init): Rename to pass_reginfo_init. Modify
6913 corresponding entries.
6914 (dump_regclass, record_operand_costs, scan_one_insn,
6915 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
6916 record_address_regs, auto_inc_dec_reg_p): Remove.
6917 (gt-regclass.h): Rename to gt-reginfo.h.
6918
6919 * rtl.h (dump_global_regs, retry_global_alloc,
6920 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
6921
6922 * Makefile.in (RA_H): Remove.
6923 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
6924 Rename regclass.o to reginfo.o.
6925 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
6926 gt-reginfo.h.
6927 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
6928 (GTFILES): Rename regclass.c to reginfo.c.
6929
6930 * passes.c (init_optimization_passes): Remove pass_local_alloc and
6931 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
6932
6933 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
6934 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
6935 Remove flag_ira.
6936 (finish_spills): Ditto. Remove code for !flag_ira.
6937
6938 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
6939
6940 PR middle-end/35854
6941 * doc/invoke.texi (rtl debug options): Complete rewrite.
6942 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
6943 to auto_inc_dec".
6944 * mode-switching.c (pass_mode_switching): Rename pass from
6945 "mode-sw" to "mode_sw".
6946 * except.c (pass_convert_to_eh_ranges): Rename pass from
6947 "eh-ranges" to "eh_ranges".
6948 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
6949 to "subreg1".
6950
6951
6952 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
6953 Alexander Monakov <amonakov@ispras.ru>
6954
6955 PR middle-end/38857
6956 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
6957 register.
6958 (move_exprs_to_boundary): Change return type and pass through
6959 should_move from move_op. Relax assert. Update usage ...
6960 (schedule_expr_on_boundary): ... here. Use should_move instead of
6961 cant_move.
6962 (move_op_orig_expr_found): Indicate that insn was disconnected from
6963 stream.
6964 (code_motion_process_successors): Do not call after_merge_succs
6965 callback if original expression was not found when traversing any of
6966 the branches.
6967 (code_motion_path_driver): Change return type. Update prototype.
6968 (move_op): Update comment. Add a new parameter (should_move). Update
6969 prototype. Set *should_move based on indication provided by
6970 move_op_orig_expr_found.
6971
6972 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
6973
6974 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
6975 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
6976 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
6977 * config/rs6000/rs6000.c (rs6000_override_options): Default
6978 avoid-indexed-addresses on for Power6, off for everything else.
6979 (avoiding_indexed_address_p): New function.
6980 (rs6000_legitimize_address): Use it.
6981 (rs6000_legitimate_address): Likewise.
6982 * config/rs6000/rs6000.md (movXX_updateX): Likewise
6983
6984 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
6985
6986 PR tree-optimization/38997
6987 * tree-loop-distribution.c (generate_memset_zero): Use
6988 POINTER_PLUS_EXPR for a pointer addition.
6989
6990 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
6991
6992 * config/s390/s390.md (bswap<mode>2): New pattern added.
6993
6994 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
6995
6996 * config/s390/s390.md (*tls_load_31): Added type attribute.
6997
6998 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
6999
7000 * config/s390/s390.md: Fix a few comments.
7001
7002 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7003
7004 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7005 (*tm<mode>_full): Fixed z10prop attribute.
7006 (*tst<mode>_extimm): Fixed z10prop attribute.
7007 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7008 (*tstqiCCT_cconly): Fixed z10prop attribute.
7009 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7010 (*movsi_larl): Fixed z10prop attribute.
7011 (*movsi_zarch): Fixed z10prop attribute.
7012 (*movsi_eas): Fixed z10prop attribute.
7013 (*movhi): Fixed z10prop attribute.
7014 (*movqi): Fixed z10prop attribute.
7015 (*movstrictqi): Fixed z10prop attribute.
7016 (*mov<mode>): Fixed z10prop attribute.
7017 (*movcc): Fixed z10prop attribute.
7018 (*sethighpartdi_64): Fixed z10prop attribute.
7019 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7020 (*negdi2_sign_cc): Fixed z10prop attribute.
7021 (*negdi2_sign): Fixed z10prop attribute.
7022 (*absdi2_sign_cc): Fixed z10prop attribute.
7023 (*absdi2_sign): Fixed z10prop attribute.
7024 (*negabsdi2_sign_cc): Fixed z10prop attribute.
7025 (*negabsdi2_sign): Fixed z10prop attribute.
7026 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7027 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7028 (doloop_si64): Fixed z10prop attribute.
7029 (doloop_si31): Fixed z10prop attribute.
7030 (doloop_long): Fixed z10prop attribute.
7031 (indirect_jump): Fixed z10prop attribute.
7032 (nop): Fixed z10prop attribute.
7033 (main_base_64): Fixed z10prop attribute.
7034 (reload_base_64): Fixed z10prop attribute.
7035
7036 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7037
7038 PR rtl-optimization/38740
7039 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7040 if !optimize.
7041 * config/mips/mips.c (mips_reorg): Likewise.
7042
7043 2009-01-28 Richard Guenther <rguenther@suse.de>
7044
7045 PR tree-optimization/38926
7046 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7047 with the correct value id to a value.
7048 (do_regular_insertion): Use the value number of edoubleprime
7049 for the value number of the expr.
7050
7051 Revert
7052 2008-08-21 Richard Guenther <rguenther@suse.de>
7053
7054 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7055 a PHI ask VN if it is already available.
7056 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7057 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7058
7059 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7060
7061 PR middle-end/38934
7062 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7063 set to varying whenever max has TREE_OVERFLOW set, similarly
7064 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7065
7066 2009-01-28 Richard Guenther <rguenther@suse.de>
7067
7068 PR middle-end/38908
7069 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7070 uninitialized aggregate uses in call arguments.
7071
7072 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
7073
7074 PR tree-optimization/38984
7075 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7076 the nothing_id variable if -fno-delete-null-pointer-checks.
7077
7078 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
7079
7080 PR target/38988
7081 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7082 (set_got_offset_rex64): Ditto.
7083
7084 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
7085
7086 PR target/38941
7087 * doc/extend.texi: Improve local variable with asm reg.
7088
7089 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
7090
7091 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7092 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7093 was not supplied then set warn_packed_bitfield_compat to the
7094 default value of 1.
7095 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7096 against 1.
7097
7098 2009-01-27 Richard Guenther <rguenther@suse.de>
7099
7100 PR tree-optimization/38503
7101 * cfgexpand.c (expand_gimple_basic_block): Ignore
7102 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7103 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7104 variables that cannot have TBAA applied.
7105 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7106 statements.
7107
7108 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
7109
7110 PR middle-end/38969
7111 * calls.c (initialize_argument_information): Do not wrap complex
7112 arguments in SAVE_EXPR.
7113
7114 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
7115
7116 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7117 (INSTALL_LIBGCC): Revert typo commit.
7118
7119 2009-01-26 Richard Guenther <rguenther@suse.de>
7120
7121 PR tree-optimization/38745
7122 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7123 from special handling.
7124
7125 2009-01-26 Richard Guenther <rguenther@suse.de>
7126
7127 PR tree-optimization/38745
7128 * tree-ssa.c (execute_update_addresses_taken): Do not include
7129 variables that cannot possibly be a register in not_reg_needs.
7130 Do not clear TREE_ADDRESSABLE on vars that may not become
7131 registers.
7132 * tree-ssa.c (update_alias_info_1): Include those in the set
7133 of addressable vars.
7134
7135 2009-01-26 Richard Guenther <rguenther@suse.de>
7136
7137 PR middle-end/38851
7138 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7139 * tree-ssa-dse.c: Include langhooks.h
7140 (execute_simple_dse): Remove stores with zero size.
7141
7142 2009-01-24 Jakub Jelinek <jakub@redhat.com>
7143
7144 PR c/38957
7145 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7146 as PLUS_EXPR.
7147
7148 2009-01-24 Julian Brown <julian@codesourcery.com>
7149
7150 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7151 config/arm/linux-atomic.c.
7152 * config/arm/linux-atomic.c: New.
7153
7154 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
7155
7156 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7157 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7158 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7159
7160 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
7161
7162 PR c/38938
7163 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7164 properly.
7165
7166 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
7167
7168 PR tree-optimization/38953
7169 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7170 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7171 (gloog): Split the exit of the scop when the scop exit is a loop exit.
7172 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7173 changed the CFG.
7174
7175 2009-01-24 Paul Brook <paul@codesourcery.com>
7176
7177 * config/arm/neon.md (neon_type): Move to arm.md.
7178 (neon_mov<VSTRUCT>): Add neon_type attribute.
7179 * config/arm/arm.md (neon_type): Move to here.
7180 (conds): Add "unconditioal" and use as default for NEON insns.
7181
7182 2009-01-24 Ben Elliston <bje@au.ibm.com>
7183
7184 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7185 void *' warning from -Wc++-compat.
7186 * Makefile.in (dominance.o-warn): Remove.
7187
7188 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
7189
7190 PR tree-optimization/38932
7191 * fold-const.c (fold_unary_ignore_overflow): New.
7192 * tree.h (fold_unary_ignore_overflow): Declare.
7193 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7194 * tree-ssa-sccvn.c (visit_reference_op_load,
7195 simplify_unary_expression): Likewise.
7196
7197 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
7198
7199 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7200 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
7201 regardless of their type.
7202 * c-common.c (handle_packed_attribute): Don't ignore packed on
7203 bitfields.
7204 * c.opt (Wpacked-bitfield-compat): New warning option.
7205 * stor-layout.c (place_field): Warn if offset of a field changed.
7206 * doc/extend.texi (packed): Mention the ABI change.
7207 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7208 (Warning Options): Add it to the list.
7209
7210 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
7211
7212 * c-opts.c (c_common_post_options): Fix a typo in comments.
7213
7214 2009-01-22 Steve Ellcey <sje@cup.hp.com>
7215
7216 PR middle-end/38615
7217 * gimplify.c (gimplify_init_constructor): Fix promotion of const
7218 variables to static.
7219 * doc/invoke.texi (-fmerge-all-constants): Update description.
7220
7221 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
7222
7223 PR target/38931
7224 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7225 (*movdi_1_rex64): Use type "mmx" for alternative 5.
7226
7227 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
7228
7229 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7230 a word boundary.
7231 (LOCAL_ALIGNMENT): Similarly.
7232
7233 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7234 Joseph Myers <joseph@codesourcery.com>
7235
7236 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7237 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7238 * config/arm/arm-tune.md: Regenerate.
7239 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7240 -march=iwmmxt2.
7241
7242 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7243
7244 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7245 version number to five.
7246
7247 2009-01-22 Dodji Seketeli <dodji@redhat.com>
7248
7249 PR c++/38930
7250 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7251 * c-common.c (set_underlying_type): Likewise.
7252 (is_typedef_decl ): Likewise
7253 * tree.h: Likewise
7254 (set_underlying_type): Likewise.
7255 (is_typedef_type): Likewise.
7256
7257 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
7258
7259 PR middle-end/38587
7260 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7261 crossing setjmps.
7262
7263 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
7264
7265 PR bootstrap/37660
7266 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
7267 (LIBGCC_SPEC): Don't define.
7268 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
7269
7270 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
7271
7272 PR rtl-optimization/38879
7273 * alias.c (base_alias_check): Unaligned access via AND address can
7274 alias all surrounding object types except those with sizes equal
7275 or wider than the size of unaligned access.
7276
7277 2009-01-21 Dodji Seketeli <dodji@redhat.com>
7278
7279 PR c++/26693
7280 * c-decl.c (clone_underlying_type): Move this ...
7281 * c-common.c (set_underlying_type): ... here.
7282 Also, make sure the function properly sets TYPE_STUB_DECL() on
7283 the newly created typedef variant type.
7284 (is_typedef_decl ): New entry point.
7285 * tree.h: Added a new member member_types_needing_access_check to
7286 struct tree_decl_non_common.
7287 (set_underlying_type): New entry point.
7288 (is_typedef_type): Likewise.
7289
7290 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
7291
7292 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7293 Check whether two instructions have memory references that
7294 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
7295 are helper functions for traversing.
7296 * alias.h (insn_alias_sets_confilict_p): New prototypes.
7297 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7298 not to draw dependency edge for instructions with non-conflicting
7299 alias sets.
7300
7301 2009-01-20 Joseph Myers <joseph@codesourcery.com>
7302
7303 PR other/38758
7304 * longlong.h: Update copyright years. Use soft-fp license notice.
7305 Sync __clz_tab declaration with glibc.
7306
7307 2009-01-20 Steve Ellcey <sje@cup.hp.com>
7308
7309 PR target/30687
7310 * doc/extend.texi (syscall_linkage): New.
7311 (version_id): Modify.
7312
7313 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7314 Richard Guenther <rguenther@suse.de>
7315
7316 PR tree-optimization/38747
7317 PR tree-optimization/38748
7318 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7319 conversion if the base address is an indirect reference and the
7320 aliasing sets could cause issues.
7321
7322 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7323
7324 * common.opt (fgraphite, fgraphite-identity): Add comment for
7325 explaining why these options are not documented.
7326
7327 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7328
7329 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7330 gimple_call_lhs is NULL.
7331
7332 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7333
7334 PR target/38868
7335 * emit-rtl.c (adjust_address_1): Make sure memref is never
7336 overwritten.
7337
7338 2009-01-20 Ben Elliston <bje@au.ibm.com>
7339
7340 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7341 const qualifier from arg parameter. Remove unnecessary cast to char *.
7342 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7343 const qualifier from arg 2.
7344
7345 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7346
7347 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7348
7349 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
7350
7351 PR c/38869
7352 * rtl.h (reinit_regs): New prototype.
7353 * regclass.c: Include ira.h.
7354 (reinit_regs): New.
7355 * Makefile.in (regclass.o): Add ira.h.
7356 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7357
7358 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
7359
7360 PR target/38736
7361 * c-common.c (handle_aligned_attribute): Use
7362 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7363 default alignment value.
7364
7365 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7366
7367 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7368 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7369
7370 * doc/extend.texi: Update __attribute__ ((aligned)). Document
7371 __BIGGEST_ALIGNMENT__.
7372
7373 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7374
7375 2009-01-18 Richard Guenther <rguenther@suse.de>
7376
7377 PR tree-optimization/38819
7378 * tree-flow.h (operation_could_trap_helper_p): Declare.
7379 * tree-eh.c (operation_could_trap_helper_p): Export.
7380 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7381 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7382 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7383 are about to insert a possibly trapping instruction and fail
7384 in this case.
7385
7386 2009-01-18 Andreas Schwab <schwab@suse.de>
7387
7388 * doc/install.texi (Configuration): Remove obsolete paragraph
7389 about use of --with-gnu-ld with --with-gnu-as.
7390
7391 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
7392
7393 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
7394 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
7395 Follow spelling conventions.
7396
7397 2009-01-18 Ben Elliston <bje@au.ibm.com>
7398
7399 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
7400 C++ warning about implicit conversion from void * to struct
7401 bitmap_head_def *.
7402 (bitmap_obstack_free): Likewise for bitmap_element *.
7403 * Makefile.in (bitmap.o-warn): Remove.
7404
7405 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
7406
7407 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
7408
7409 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
7410 Tobias Grosser <tobi.grosser@amd.com>
7411
7412 * graphite.c (graphite_trans_scop_block): Do not block single
7413 nested loops.
7414
7415 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
7416
7417 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
7418 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
7419 test with assertion.
7420
7421 2009-01-16 Richard Guenther <rguenther@suse.de>
7422
7423 PR tree-optimization/38835
7424 PR middle-end/36227
7425 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
7426 and INT + PTR -> (INT)(PTR p+ INT) folding.
7427 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
7428
7429 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
7430
7431 PR target/38554
7432 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
7433 the subreg from a lowpart subreg if it is also casting the value.
7434
7435 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7436 Tobias Grosser <tobi.grosser@amd.com>
7437
7438 * graphite.c (compare_prefix_loops): New.
7439 (build_scop_canonical_schedules): Rewritten.
7440 (graphite_transform_loops): Move build_scop_canonical_schedules
7441 after build_scop_iteration_domain.
7442
7443 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7444 Tobias Grosser <tobi.grosser@amd.com>
7445
7446 * graphite.c (add_conditions_to_domain): Add the loops to
7447 the dimension of the iteration domain. Do copy the domain
7448 only when it exists.
7449 (build_scop_conditions_1): Do not call add_conditions_to_domain.
7450 (add_conditions_to_constraints): New.
7451 (can_generate_code_stmt, can_generate_code): Removed.
7452 (gloog): Do not call can_generate_code.
7453 (graphite_transform_loops): Call add_conditions_to_constraints
7454 after building the iteration domain.
7455
7456 2009-01-16 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR tree-optimization/38789
7459 * tree-ssa-threadedge.c
7460 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7461 __builtin_constant_p.
7462
7463 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7464
7465 * dce.c (delete_unmarked_insns): Reversed the order that insns are
7466 examined before deleting them.
7467
7468 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
7469
7470 * function.c (aggregate_value_p): Correctly extract the function
7471 type from CALL_EXPR_FN lookup.
7472
7473 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
7474
7475 * config/picochip/picochip.c (picochip_override_options): Revert
7476 CFI asm flag disable commited previously.
7477
7478 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
7479 Tobias Grosser <tobi.grosser@amd.com>
7480 Jan Sjodin <jan.sjodin@amd.com>
7481
7482 * graphite.c (scan_tree_for_params): On substractions negate
7483 all the coefficients of the term.
7484 (clast_to_gcc_expression_red): New. Handle reduction expressions
7485 of more than two operands.
7486 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
7487 (get_vdef_before_scop): Handle also the case of default definitions.
7488
7489 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
7490
7491 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
7492 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
7493 Also use them when walking CALL_INSN_FUNCTION_USAGE.
7494
7495 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
7496 Joey Ye <joey.ye@intel.com>
7497
7498 PR middle-end/37843
7499 * cfgexpand.c (expand_stack_alignment): Don't update stack
7500 boundary nor check incoming stack boundary here.
7501 (gimple_expand_cfg): Update stack boundary and check incoming
7502 stack boundary here.
7503
7504 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7505
7506 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
7507
7508 2009-01-14 Jakub Jelinek <jakub@redhat.com>
7509
7510 PR rtl-optimization/38245
7511 * calls.c (expand_call): Add stack arguments to
7512 CALL_INSN_FUNCTION_USAGE even for pure calls (when
7513 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
7514 in regs and partially in memory or BLKmode arguments.
7515 (emit_library_call_value_1): Add stack arguments to
7516 CALL_INSN_FUNCTION_USAGE even for pure calls (when
7517 ACCUMULATE_OUTGOING_ARGS).
7518 * dce.c: Include tm_p.h.
7519 (find_call_stack_args): New function.
7520 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
7521 argument.
7522 (mark_insn): Call find_call_stack_args for CALL_Ps.
7523 (prescan_insns_for_dce): Walk insns backwards in bb rather than
7524 forwards. Allocate and free arg_stores bitmap if needed, pass it
7525 down to deletable_insn_p, don't mark stores set in arg_stores
7526 bitmap, clear the bitmap at the beginning of each bb.
7527 * Makefile.in (dce.o): Depend on $(TM_P_H).
7528
7529 2009-01-14 Michael Meissner <gnu@the-meissners.org>
7530
7531 PR target/22599
7532 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
7533 to make sure the insn is a conditional test (bug 22599). Reformat a
7534 few long lines.
7535
7536 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
7537
7538 PR middle-end/38431
7539 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
7540 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
7541 (gloog): Do not call cleanup_tree_cfg.
7542 (graphite_transform_loops): Call cleanup_tree_cfg after all
7543 scops have been code generated.
7544
7545 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
7546 * doc/gty.texi (Invoking the garbage collector): Added new node
7547 and section documenting ggc_collect.
7548
7549 2009-01-14 Richard Guenther <rguenther@suse.de>
7550
7551 PR tree-optimization/38826
7552 PR middle-end/38477
7553 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
7554 initialization notes only if we actually emitted a warning.
7555 (intra_create_variable_infos): Add constraints for a result decl
7556 that is passed by hidden reference.
7557 (build_pred_graph): Mark all related variables non-direct on
7558 address-taking.
7559
7560 2009-01-14 Nick Clifton <nickc@redhat.com>
7561
7562 * ira-conflicts.c: Include addresses.h for the definition of
7563 base_reg_class.
7564 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
7565 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
7566
7567 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
7568
7569 PR target/38811
7570 * Makefile.in (ira-lives.o): Add except.h.
7571
7572 * ira-lives.c: Include except.h.
7573 (process_bb_node_lives): Process can_throw_internal.
7574
7575 2009-01-13 Jakub Jelinek <jakub@redhat.com>
7576
7577 PR rtl-optimization/38774
7578 * combine.c (simplify_set): When undoing cc_use change, don't do
7579 PUT_CODE on the newly created comparison, but instead put back the
7580 old comparison.
7581
7582 2009-01-13 Joseph Myers <joseph@codesourcery.com>
7583
7584 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
7585 values. Remove duplicate arm8 entry.
7586
7587 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
7588
7589 PR tree-optimization/38786
7590 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
7591 the SSA_NAME case of expand_scalar_variables_expr.
7592 Set the type of an expression to the type of its assign statement.
7593 (expand_scalar_variables_expr): Also gather the scalar computation
7594 used to index the memory access. Do not pass loop_p.
7595 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
7596 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
7597 the gimple_stmt_iterator where it inserts new code.
7598 Do not pass loop_p.
7599 (copy_bb_and_scalar_dependences): Do not pass loop_p.
7600 (translate_clast): Update call to copy_bb_and_scalar_dependences.
7601
7602 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
7603
7604 * graphite.h (debug_value): Removed.
7605 * graphite.c (debug_value): Removed.
7606
7607 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
7608
7609 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
7610 ldrd/strd with two 32-bit instructions.
7611
7612 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
7613
7614 * config/arm/arm.c (struct processors): Pass for speed down into
7615 cost helper functions.
7616 (const_ok_for_op): Handle COMPARE and inequality nodes.
7617 (arm_rtx_costs_1): Rewrite.
7618 (arm_size_rtx_costs): Update prototype.
7619 (arm_rtx_costs): Pass speed down to helper functions.
7620 (arm_slowmul_rtx_costs): Rework cost calculations.
7621 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
7622 (arm_9e_rtx_costs): Likewise.
7623
7624 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
7625
7626 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
7627 relocations of local symbols wider than UNITS_PER_WORD are not valid.
7628 (alpha_legitimize_address): Do not split local symbols wider than
7629 UNITS_PER_WORD into HIGH/LO_SUM parts.
7630
7631 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
7632
7633 PR bootstrap/38580
7634 * gcc.c (process_command): Replace call to execvp with calls
7635 to pex_one and exit.
7636
7637 2009-01-03 Anatoly Sokolov <aesok@post.ru>
7638
7639 PR target/29141
7640 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
7641 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
7642 variant for devices with 3-byte PC.
7643 (__tablejump_elpm__): New.
7644
7645 2009-01-12 Jakub Jelinek <jakub@redhat.com>
7646
7647 PR c/32041
7648 * c-parser.c (c_parser_postfix_expression): Allow `->' in
7649 offsetof member-designator, handle it as `[0].'.
7650
7651 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7652
7653 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
7654 function when not using named sections on targets with named sections
7655 if branch distance is less than 262132.
7656
7657 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
7658
7659 * combine.c (combine_instructions): Recompute
7660 optimize_this_for_speed_p for each BB in the main combine loop.
7661
7662 2009-01-12 Tomas Bily <tbily@suse.cz>
7663
7664 PR middlend/38385
7665 * tree-loop-distribution.c (prop_phis): New function.
7666 (generate_builtin): Call prop_phis.
7667 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
7668
7669 2009-01-12 Jakub Jelinek <jakub@redhat.com>
7670
7671 PR tree-optimization/38807
7672 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
7673 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
7674
7675 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
7676
7677 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
7678 subreg of op0 to the original op0.
7679
7680 2009-01-11 Laurent GUERBY <laurent@guerby.net>
7681
7682 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
7683
7684 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
7685
7686 PR debug/7055
7687 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
7688 starting with digits.
7689
7690 2009-01-10 Jakub Jelinek <jakub@redhat.com>
7691
7692 PR target/38695
7693 * config/arm/arm.c (arm_is_long_call_p): Don't call
7694 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
7695
7696 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
7697
7698 * regrename.c (regrename_optimize): Fix dumping.
7699 (find_oldest_value_reg): Preserve REG_POINTER.
7700 (copy_hardreg_forward_1): Likewise.
7701
7702 2009-01-09 Diego Novillo <dnovillo@google.com>
7703
7704 * gimple.h (struct gimple_statement_base) <uid>: Document
7705 the restrictions on its use.
7706 (gimple_uid): Tidy.
7707 (gimple_set_uid): Tidy.
7708
7709 2009-01-09 Jakub Jelinek <jakub@redhat.com>
7710
7711 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
7712 zero guard even if align_bytes != 0 and count is smaller than
7713 size_needed.
7714
7715 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
7716
7717 PR rtl-optimization/38495
7718 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
7719 (add_range_and_copies_from_move_list): Print all added ranges.
7720 Add ranges to memory optimized destination.
7721
7722 2009-01-09 Jakub Jelinek <jakub@redhat.com>
7723
7724 PR target/38686
7725 PR target/38708
7726 * config/i386/i386.c (override_options): Reject
7727 -mstringop-strategy=rep_8byte with -m32.
7728 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
7729 to 1. Do count comparison against epilogue_size_needed at compile
7730 time even when count_exp was constant forced into register. For
7731 size_needed don't jump to epilogue, instead just avoid aligning
7732 and invoke the body algorithm. If need_zero_guard, add zero guard
7733 even if count is non-zero, but smaller than size_needed + number of
7734 bytes that could be stored for alignment.
7735 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
7736 to 1. If need_zero_guard, add zero guard even if count is non-zero,
7737 but smaller than size_needed + number of bytes that could be stored
7738 for alignment. Compare size_needed with epilogue_size_needed instead
7739 of desired_align - align, don't adjust size_needed, pass
7740 epilogue_size_needed to the epilogue expanders.
7741
7742 PR c/35742
7743 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
7744
7745 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7746
7747 * pa.c (last_address): Change to unsigned.
7748 (update_total_code_bytes): Change argument to unsigned. Don't
7749 check if insn addresses are set.
7750 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
7751 addresses are not set.
7752 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
7753
7754 2009-01-09 Nick Clifton <nickc@redhat.com>
7755
7756 * config/sh/symbian.c: Replace uses of DECL_INLINE with
7757 DECL_DECLARED_INLINE_P.
7758
7759 2009-01-09 Jakub Jelinek <jakub@redhat.com>
7760
7761 PR middle-end/38347
7762 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
7763 GET_MODE (op0) in operand_subword_force calls.
7764
7765 PR middle-end/38771
7766 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
7767 fold_convert arg0 operands to TREE_TYPE (op0) first.
7768
7769 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
7770
7771 * params.def (ira-max-conflict-table-size): Decrease default value
7772 to 1000.
7773
7774 2009-01-08 Jakub Jelinek <jakub@redhat.com>
7775
7776 PR tree-optimization/37031
7777 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
7778 on parameter_set.
7779 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
7780 allocate it using gc instead of heap, use VEC_quick_push instead of
7781 VEC_safe_push.
7782 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
7783 instead of heap, use VEC_quick_push instead of VEC_safe_push.
7784 * tree-data-ref.h (struct access_matrix): Change matrix to gc
7785 allocated vector from heap allocated.
7786 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
7787 * tree-loop-linear.c (linear_transform_loops): Allocate nest
7788 vector only after perfect_loop_nest_depth call.
7789
7790 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
7791 Jan Sjodin <jan.sjodin@amd.com>
7792
7793 PR tree-optimization/38559
7794 * graphite.c (debug_value, copy_constraint,
7795 swap_constraint_variables, scale_constraint_variable, ): New.
7796 (get_lower_bound, get_upper_bound): Removed.
7797 (graphite_trans_bb_strip_mine): Clean up this code that works
7798 only for constant number of iterations. Fully copy upper and
7799 lower bound constraints, not only the constant part of them.
7800 * graphite.h (debug_value): Declared.
7801
7802 2009-01-08 Ira Rosen <irar@il.ibm.com>
7803
7804 PR tree-optimization/37194
7805 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
7806 Don't add the cost of cost model guard in prologue to scalar
7807 outside cost in case of known number of iterations.
7808
7809 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
7810 Alan Modra <amodra@bigpond.net.au>
7811
7812 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
7813 non-word-aligned REG+CONST addressing.
7814
7815 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
7816
7817 PR target/38706
7818 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
7819 free_after_compilation when outputting a thunk.
7820 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
7821 Do not call free_after_compilation here.
7822
7823 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
7824
7825 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
7826 (ix86_valid_target_attribute_inner_p): Ditto.
7827
7828 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
7829
7830 PR tree-optimization/38492
7831 PR tree-optimization/38498
7832 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
7833 * tree-chrec.h (scev_is_linear_expression): Declared.
7834 * graphite.c (graphite_cannot_represent_loop_niter): New.
7835 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
7836 (graphite_loop_normal_form): Use gcc_assert.
7837 (scan_tree_for_params): Use CASE_CONVERT.
7838 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
7839 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
7840 Use gcc_assert. Discard scops that contain unhandled cases.
7841 (build_scop_conditions): Return a boolean status for unhandled cases.
7842 (strip_mine_profitable_p): Print the loop number, not its depth.
7843 (is_interchange_valid): Pass the depth of the loop nest, don't
7844 recompute it wrongly.
7845 (graphite_trans_bb_block): Same.
7846 (graphite_trans_bb_block): Print tentative of loop blocking.
7847 (graphite_trans_scop_block): Do not print that the loop has been
7848 blocked.
7849 (graphite_transform_loops): Do not handle scops that contain condition
7850 scalar phi nodes.
7851
7852 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
7853
7854 AVX Programming Reference (December, 2008)
7855 * config/i386/avxintrin.h (_mm256_stream_si256): New.
7856 (_mm256_stream_pd): Likewise.
7857 (_mm256_stream_ps): Likewise.
7858
7859 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
7860 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
7861 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
7862 (bdesc_special_args): Add __builtin_ia32_movntdq256,
7863 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
7864 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
7865 (ix86_expand_special_args_builtin): Likewise.
7866
7867 * config/i386/sse.md (AVXMODEDI): New.
7868 (avx_movnt<mode>): Likewise.
7869 (avx_movnt<mode>): Likewise.
7870 (<sse>_movnt<mode>): Remove AVX support.
7871 (sse2_movntv2di): Likewise.
7872
7873 2009-01-07 Richard Guenther <rguenther@suse.de>
7874
7875 PR middle-end/38751
7876 * fold-const.c (extract_muldiv): Remove obsolete comment.
7877 (fold_plusminus_mult_expr): Undo MINUS_EXPR
7878 to PLUS_EXPR canonicalization for the canonicalization.
7879
7880 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
7881
7882 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
7883 hosted cross-compilers generating less efficient code.
7884
7885 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7886
7887 * function.h (rtl_data): Add a dbr_scheduled_p field.
7888 * reorg.c (dbr_schedule): Set it.
7889 (gate_handle_delay_slots): Check it.
7890 * config/mips/mips.c (mips_base_delayed_branch): Delete.
7891 (mips_reorg): Check flag_delayed_branch instead of
7892 mips_base_delayed_branch.
7893 (mips_override_options): Don't set mips_base_delayed_branch
7894 or flag_delayed_branch.
7895
7896 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7897
7898 PR rtl-optimization/38426.
7899 * ira.c (ira): Set current_function_is_leaf earlier.
7900
7901 2009-01-06 Jakub Jelinek <jakub@redhat.com>
7902
7903 PR rtl-optimization/38722
7904 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
7905 too early, only set a flag and modify after last possible
7906 undo_all point.
7907
7908 2009-01-06 Janis Johnson <janis187@us.ibm.com>
7909
7910 PR c/34252
7911 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
7912 * real.c (decimal_single_format): Correct values of emin and emax.
7913 (decimal_double_format): Ditto.
7914 (decimal_quad_format): Ditto.
7915 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
7916 computation of DECnn_MIN and DECnn_MAX for corrected values of
7917 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
7918 __DECnn_MIN__, and adjust its computation for the corrected value
7919 of emin.
7920
7921 2009-01-06 Jan Hubicka <jh@suse.cz>
7922
7923 PR target/38744
7924 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
7925
7926 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
7927
7928 * doc/contrib.texi (Contributors): Slightly adjust the end note.
7929 Add Robert Clark to the list of testers.
7930
7931 2009-01-06 Jan Hubicka <jh@suse.cz>
7932 Kai Tietz <kai.tietz@onevision.com>
7933
7934 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
7935 * config/i386/i386.c (ix86_expand_call): Add clobbers.
7936
7937 2009-01-06 Jan Hubicka <jh@suse.cz>
7938 Kai Tietz <kai.tietz@onevision.com>
7939
7940 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
7941 for w64 ABI.
7942 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7943 (ix86_nsaved_regs): Count only general purpose regs.
7944 (ix86_nsaved_sseregs): New.
7945 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
7946 to 16 for w64; compute padding and size of sse reg save area.
7947 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
7948 general purpose regs.
7949 (ix86_emit_save_sse_regs_using_mov): New.
7950 (ix86_expand_prologue): Save SSE regs if needed.
7951 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
7952 (ix86_emit_restore_sse_regs_using_mov): New.
7953 (ix86_expand_epilogue): Save SSE regs if needed.
7954
7955 2009-01-06 Jan Hubicka <jh@suse.cz>
7956 Kai Tietz <kai.tietz@onevision.com>
7957
7958 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
7959 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
7960 functions when accumulate outgoing args is off.
7961
7962 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
7963
7964 PR bootstrap/38742
7965 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
7966 before using pseudos_have_intersected_live_ranges_p.
7967
7968 * ira-int.h (ira_assert): Always define.
7969
7970 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
7971
7972 AVX Programming Reference (December, 2008)
7973 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
7974 (_mm256_permute2_pd): Likewise.
7975 (_mm_permute2_ps): Likewise.
7976 (_mm256_permute2_ps): Likewise.
7977 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
7978 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
7979
7980 * config/i386/i386.c (ix86_builtins): Remove
7981 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
7982 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
7983 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
7984 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
7985 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
7986 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
7987 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
7988 __builtin_ia32_vpermil2ps256.
7989 (ix86_init_mmx_sse_builtins): Updated.
7990 (ix86_expand_args_builtin): Likewise.
7991
7992 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7993
7994 * pa.c (output_call): Relocate non-jump insns in the delay slot of
7995 long absolute calls when generating PA 2.0 code.
7996
7997 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
7998
7999 PR rtl-optimization/38583
8000 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8001
8002 * params.def (ira-max-conflict-table-size): New.
8003
8004 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8005
8006 * ira.h (ira_conflicts_p): New external definition.
8007
8008 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8009 table. Report this. Return result of building.
8010 (ira_build_conflicts): Use ira_conflicts_p. Check result of
8011 building conflict table.
8012
8013 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8014 (ira_color): Use ira_conflicts_p.
8015
8016 * global.c: Include ira.h.
8017 (pseudo_for_reload_consideration_p, build_insn_chain): Use
8018 ira_conflicts_p.
8019
8020 * Makefile.in (global.o): Add ira.h.
8021
8022 * ira-build.c (mark_all_loops_for_removal,
8023 propagate_some_info_from_allocno): New.
8024 (remove_unnecessary_allocnos): Call
8025 propagate_some_info_from_allocno.
8026 (remove_low_level_allocnos): New.
8027 (remove_unnecessary_regions): Add parameter. Call
8028 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
8029 parameter to remove_unnecessary_regions.
8030 (ira_build): Remove all regions but root if the conflict table was
8031 not built. Update conflict hard regs for allocnos crossing calls.
8032
8033 * ira.c (ira_conflicts_p): New global.
8034 (ira): Define and use ira_conflicts_p.
8035
8036 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8037 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8038 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8039
8040 2009-01-06 Ben Elliston <bje@au.ibm.com>
8041
8042 * gengtype-lex.l (YY_NO_INPUT): Define.
8043
8044 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8045
8046 PR c/34911
8047 * c-common.c (handle_vector_size_attribute): Also reject
8048 BOOLEAN_TYPE types.
8049
8050 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
8051
8052 PR tree-optimization/38492
8053 * graphite.c (rename_map_elt, debug_rename_elt,
8054 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8055 rename_map_elt_info, eq_rename_map_elts,
8056 get_new_name_from_old_name, bb_in_sese_p): Moved around.
8057 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8058 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8059 (sese_build_livein_liveouts): New.
8060 (new_sese, free_sese): New.
8061 (new_scop): Call new_sese.
8062 (free_scop): Call free_sese.
8063 (rename_variables_from_edge, rename_phis_end_scop): Removed.
8064 (register_old_new_names): Renamed register_old_and_new_names.
8065 (register_scop_liveout_renames, add_loop_exit_phis,
8066 insert_loop_close_phis, struct igp,
8067 default_liveout_before_guard, add_guard_exit_phis,
8068 insert_guard_phis, copy_renames): New.
8069 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8070 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8071 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8072 (scop_adjust_phis_for_liveouts): New.
8073 (gloog): Call scop_adjust_phis_for_liveouts.
8074
8075 * graphite.h (struct sese): Documented. Added fields liveout,
8076 num_ver and livein.
8077 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8078 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8079 (struct scop): Added field liveout_renames.
8080 (SCOP_LIVEOUT_RENAMES): New.
8081
8082 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8083
8084 PR tree-optimization/38510
8085 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8086 (translate_clast): Call recompute_all_dominators before
8087 graphite_verify.
8088 (gloog): Call recompute_all_dominators before graphite_verify.
8089
8090 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8091 Jan Sjodin <jan.sjodin@amd.com>
8092
8093 PR tree-optimization/38500
8094 * graphite.c (create_sese_edges): Call fix_loop_structure after
8095 splitting blocks.
8096
8097 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8098
8099 * config.gcc: Add m32r*-*-rtems*.
8100 * config/m32r/rtems.h: New file.
8101
8102 2009-01-05 Ben Elliston <bje@au.ibm.com>
8103
8104 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8105 (.po.pox): Likewise.
8106 (po/gcc.pot): Likewise.
8107
8108 2009-01-04 David S. Miller <davem@davemloft.net>
8109
8110 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8111 (STARTING_FRAME_OFFSET): Always set to zero.
8112
8113 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8114
8115 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8116 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8117 fixed-point types, and vectors of the same.
8118
8119 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8120
8121 * config/mips/sync.md (*mb_barrier): Rename to...
8122 (*memory_barrier): ...this.
8123
8124 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
8125
8126 * doc/extend.texi (Function Attributes): Move @cindex after @item
8127 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8128 and put in alphabetical order. Fix 'target' name and put in order.
8129 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8130 typos.
8131
8132 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
8133
8134 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8135 (memory_barrier): Expand as unspec instead of unspec_volatile.
8136 Remove mem:BLK from insn operands. Use Pmode scratch register.
8137 (*memory_barrier): Define as unspec instead of unspec_volatile.
8138 Use (match_dup 0) as input operand.
8139
8140 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8141 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8142 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
8143 scratch register. Remove operand 1.
8144 (*stbar): Define as unspec instead of unspec_volatile.
8145 Use (match_dup 0) as input operand, remove (const_int 8).
8146 (*membar): Define as unspec instead of unspec_volatile.
8147 Use (match_dup 0) as input operand, remove input operand 2.
8148
8149 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8150 (memory_barrier): Expand as unspec instead of unspec_volatile.
8151 Remove mem:BLK from insn operands. Use Pmode scratch register.
8152 (*memory_barrier): Define as unspec instead of unspec_volatile.
8153 Use (match_dup 0) as input operand.
8154
8155 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8156 Remove mem:BLK from insn operands. Use Pmode scratch register.
8157 Set volatile flag on operand 0.
8158 (*memory_barrier): New insn pattern.
8159
8160 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8161 insn operands.
8162 (*memory_barrier): Use (match_dup 0) as input operand.
8163
8164 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8165 Remove mem:BLK from insn operands. Use Pmode scratch register.
8166 Set volatile flag on operand 0.
8167 (*mb_internal): New insn pattern.
8168
8169 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8170
8171 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8172
8173 PR middle-end/38586
8174 * function.c (struct temp_slot): Move to the section of the file
8175 that deals with temp slots. Remove field 'address'.
8176 (temp_slot_address_table): New hash table of address -> temp slot.
8177 (struct temp_slot_address_entry): New struct, items for the table.
8178 (temp_slot_address_compute_hash, temp_slot_address_hash,
8179 temp_slot_address_eq, insert_temp_slot_address): Support functions
8180 for the new table.
8181 (find_temp_slot_from_address): Rewrite to use the new hash table.
8182 (remove_unused_temp_slot_addresses): Remove addresses of temp
8183 slots that have been made available.
8184 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8185 worker function for remove_unused_temp_slot_addresses.
8186 (assign_stack_temp_for_type): Don't clear the temp slot address list.
8187 Add the temp slot address to the address -> temp slot map.
8188 (update_temp_slot_address): Update via insert_temp_slot_address.
8189 (free_temp_slots): Call remove_unused_temp_slot_addresses.
8190 (pop_temp_slots): Likewise.
8191 (init_temp_slots): Allocate the address -> temp slot map, or empty
8192 the map if it is already allocated.
8193 (prepare_function_start): Initialize temp slot processing.
8194
8195 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8196
8197 PR middle-end/38584
8198 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8199 Calculate the size of all stack vars assuming no packing of stack
8200 vars will happen, replacing a quadratic algorithm with a linear one.
8201
8202 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8203
8204 PR target/38707
8205 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8206 can't be used.
8207
8208 2009-01-03 Diego Novillo <dnovillo@google.com>
8209
8210 * doc/contrib.texi: Update contributions.
8211
8212 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8213
8214 PR c++/38705
8215 * builtins.c (fold_builtin_memory_op): Give up if either operand
8216 is volatile. Set srctype or desttype to non-qualified version
8217 of the other type.
8218
8219 PR c/38700
8220 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8221 and FUNCTION_DECLs.
8222
8223 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
8224
8225 PR rtl-optimization/35805
8226 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8227 problem if fast dce is able to remove any instructions.
8228 * dce.c (dce_process_block): Fix dump message.
8229
8230 2009-01-02 Mark Mitchell <mark@codesourcery.com>
8231
8232 PR 33649
8233 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8234
8235 2009-01-02 Jakub Jelinek <jakub@redhat.com>
8236
8237 PR middle-end/38690
8238 * tree-flow.h (op_code_prio, op_prio): New prototypes.
8239 * tree-pretty-print.c (op_code_prio): New function.
8240 (op_prio): No longer static. Use op_code_prio.
8241 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8242 Use op_prio and op_code_prio to determine if () should be
8243 printed around operand(s) or not.
8244
8245 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8246 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8247 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8248 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8249 pp_character instead of pp_string for single letter printing.
8250
8251 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8252
8253 * doc/extend.texi: Fix '#pragma GCC option' typo.
8254
8255 2009-01-02 Richard Guenther <rguenther@suse.de>
8256
8257 * doc/install.texi (--enable-checking): Mention different
8258 default for stage1.
8259 (--enable-stage1-checking): Document.
8260
8261 2009-01-01 Andrew Pinski <pinskia@gmail.com>
8262
8263 PR middle-end/30142
8264 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
8265 case to be an error.
8266
8267 2009-01-02 Ben Elliston <bje@au.ibm.com>
8268
8269 * config/fp-bit.h (pack_d): Constify argument.
8270 * config/fp-bit.c (makenan): Constify return type. Remove casts.
8271 (isnan): Constify argument.
8272 (isinf): Likewise.
8273 (iszero): Likewise.
8274 (pack_d): Likewise.
8275 (_fpadd_parts): Constify return type.
8276 (_fpmul_parts): Likewise.
8277 (_fpdiv_parts): Likewise.
8278
8279 2009-01-01 Jakub Jelinek <jakub@redhat.com>
8280
8281 PR c/36489
8282 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
8283 warn about overwriting initializer with side-effects or
8284 -Woverride-init if !IMPLICIT.
8285 (output_init_element): Likewise. Pass IMPLICIT down to
8286 add_pending_init.
8287 (process_init_element): Add IMPLICIT argument. Pass it down
8288 to output_init_element.
8289 (push_init_element, pop_init_level, set_designator): Adjust
8290 process_init_element callers.
8291 (set_nonincremental_init, set_nonincremental_init_from_string):
8292 Adjust add_pending_init callers.
8293 (output_pending_init_elements): Adjust output_init_element callers.
8294 * c-tree.h (process_init_element): Adjust prototype.
8295 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8296 process_init_element callers.
8297
8298 \f
8299 Copyright (C) 2009 Free Software Foundation, Inc.
8300
8301 Copying and distribution of this file, with or without modification,
8302 are permitted in any medium without royalty provided the copyright
8303 notice and this notice are preserved.
This page took 0.373113 seconds and 4 git commands to generate.