]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
throw_allocator.h: Remove redundante include.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
6ec637a4
JJ
12009-05-07 Janis Johnson <janis187@us.ibm.com>
2
3 PR c/39037
4 * c-common.h (mark_valid_location_for_stdc_pragma,
5 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
6 clear_float_const_decimal64, float_const_decimal64_p): New.
7 * c.opt (Wunsuffixed-float-constants): New.
8 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
9 unsuffixed float constant, handle new warning.
10 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
11 * c-decl.c (c_scope): New flag float_const_decimal64.
12 (set_float_const_decimal64, clear_float_const_decimal64,
13 float_const_decimal64_p): New.
14 (push_scope): Set new flag.
15 * c-parser.c (c_parser_translation_unit): Mark when it's valid
16 to use STDC pragmas.
17 (c_parser_external_declaration): Ditto.
18 (c_parser_compound_statement_nostart): Ditto.
19 * c-pragma.c (valid_location_for_stdc_pragma,
20 mark_valid_location_for_stdc_pragma,
21 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
22 handle_pragma_float_const_decimal64): New.
23 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
24 * cp/semantics.c (valid_location_for_stdc_pragma_p,
25 set_float_const_decimal64, clear_float_const_decimal64,
26 float_const_decimal64_p): New dummy functions.
27 * doc/extend.texi (Decimal Float): Remove statement that the
28 pragma, and suffix for double constants, are not supported.
29 * doc/invoke.texi (Warning Options): List new option.
30 (-Wunsuffixed-float-constants): New.
31
45b9b2e9
SB
322009-05-08 Steven Bosscher <steven@gcc.gnu.org>
33
34 * config/i386/i386.c: Do not include c-common.h.
35
e71da632
MH
362009-05-07 Mark Heffernan <meheff@google.com>
37
38 * doc/invoke.texi (Debugging Options): Document change of debugging
39 dump location.
40 * opts.c (decode_options): Make dump_base_name relative to
41 aux_base_name directory.
42
fe4c7bc6
HS
432009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
44
45 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
46 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
47
3b3e44eb
RAE
482009-05-07 Rafael Avila de Espindola <espindola@google.com>
49
50 * Makefile.in (install-plugin): Simplify a bit.
51
fac41238
PB
522009-05-07 Paolo Bonzini <bonzini@gnu.org>
53
54 * Makefile.in (OBJS-common): Add regcprop.o.
55 (regcprop.o): New.
56 * timevar.def (TV_CPROP_REGISTERS): New.
57 * regrename.c (regrename_optimize): Return 0.
58 (rest_of_handle_regrename): Delete.
59 (pass_rename_registers): Point to regrename_optimize.
60 (struct value_data_entry, struct value_data,
61 kill_value_one_regno, kill_value_regno, kill_value,
62 set_value_regno, init_value_data, kill_clobbered_value,
63 kill_set_value, kill_autoinc_value, copy_value,
64 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
65 replace_oldest_value_reg, replace_oldest_value_addr,
66 replace_oldest_value_mem, copyprop_hardreg_forward_1,
67 debug_value_data, validate_value_data): Move...
68 * regcprop.c: ... here.
69 (rest_of_handle_cprop): Delete.
70 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
71
472e0df9
JJ
722009-05-07 Jakub Jelinek <jakub@redhat.com>
73
74 PR middle-end/40057
75 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
76 GEN_INT for 1 << bitnum.
77 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
78 build_int_cst_type.
79
0d50d55a
UB
802009-05-07 Uros Bizjak <ubizjak@gmail.com>
81
82 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
83 Remove wrong description of "nand" functionality.
84
22f597f1
RG
852009-05-06 Richard Guenther <rguenther@suse.de>
86 Adam Nemet <anemet@caviumnetworks.com>
87
88 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
89 comment. Add that if LHS is not a gimple register, then RHS1 has
90 to be a single object (GIMPLE_SINGLE_RHS).
91
641cac0b
AN
922009-05-06 Adam Nemet <anemet@caviumnetworks.com>
93
94 * expr.c (get_def_for_expr): Move it up in the file.
95 (store_field): When expanding a bit-field store, look at the
96 defining gimple stmt for the masking conversion.
97
5a5c6435
JJ
982009-05-06 Janis Johnson <janis187@us.ibm.com>
99
100 PR middle-end/39986
101 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
102 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
103 32-bit memcpy into long.
104
96474f36
JJ
1052009-05-06 Jakub Jelinek <jakub@redhat.com>
106
107 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
108 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
109 new_reg_loc_descr.
110 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
111 instead of appending DW_OP_deref*.
112
529ff441
MM
1132009-05-06 Michael Matz <matz@suse.de>
114
115 PR middle-end/40021
116 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
117 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
118
9419a9fd
RAE
1192009-05-06 Rafael Avila de Espindola <espindola@google.com>
120
121 * Makefile.in (install-plugin): Fix srcdir handling.
122
fff1894c
AB
1232009-05-06 Andrey Belevantsev <abel@ispras.ru>
124
125 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
126 when processing for not_regs_needed bitmap.
127 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
128 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
129 handling it for rhs.
130
700ae70c
L
1312009-05-06 H.J. Lu <hongjiu.lu@intel.com>
132
ab3426a7 133 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 134 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
135 * config/i386/predicates.md (incdec_operand): Likewise.
136 (aligned_operand): Likewise.
137 * config/i386/sse.md (divv8sf3): Likewise.
138 (sqrtv8sf2): Likewise.
139
67341fb5
L
1402009-05-06 H.J. Lu <hongjiu.lu@intel.com>
141
142 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
143
144 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
145
87946f42
L
1462009-05-06 H.J. Lu <hongjiu.lu@intel.com>
147
148 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
149 ssemodesuffixf2c with avxmodesuffixf2c.
150
1202aec1
JM
1512009-05-06 Joseph Myers <joseph@codesourcery.com>
152
153 PR c/40032
aa016ff7 154 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 155
6e57a01d
JJ
1562009-05-05 Jakub Jelinek <jakub@redhat.com>
157
158 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
159 (struct tree_base): Adjust spacing for 8 bit boundaries.
160 (struct tree_decl_common): Add decl_by_reference_flag bit.
161 (DECL_BY_REFERENCE): Adjust.
162 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
163 print DECL_BY_REFERENCE bit.
164 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
165 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
166 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
167 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
168 unconditionally.
169
32f579f6
JJ
170 PR middle-end/39666
171 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
172 range of the type, but default label is missing, add it with one
173 of the existing labels instead of adding a new label for it.
174
617ab743
JM
1752009-05-05 Joseph Myers <joseph@codesourcery.com>
176
177 * dwarf.h: Remove.
178
bf016de8
RAE
1792009-05-05 Rafael Avila de Espindola <espindola@google.com>
180
181 * Makefile.in (enable_plugin, plugin_includedir): New.
182 (install): Depend on install-plugin.
183 (PLUGIN_HEADERS): New.
184 (install-plugin): New.
185 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
186
7f8fdb9f
RG
1872009-05-05 Richard Guenther <rguenther@suse.de>
188
189 PR tree-optimization/40022
190 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
191 the only vuse.
192 (phivn_valid_p): Fix tuplification error, simplify.
193 (phiprop_insert_phi): Add dumps.
194 (propagate_with_phi): Simplify.
195
8d972839
RG
1962009-05-05 Richard Guenther <rguenther@suse.de>
197
198 PR middle-end/40023
aa016ff7 199 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 200
66ba9b0b
SZ
2012009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
202
203 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
204 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
205 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
206 block_ultimate_origin): Rearrange the declarations line to match the
207 comment that indicates the .c file which the functions are defined.
208 (dwarf2out_*, set_decl_rtl): Add comment.
209 (get_base_address): Adjust comment.
210 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
211 declarations line and add comment.
212 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 213
4f1e4960
JM
2142009-05-04 Joseph Myers <joseph@codesourcery.com>
215
216 * attribs.c (decl_attributes): Use %qE for identifiers in
217 diagnostics.
218 * cgraphunit.c (verify_cgraph_node): Translate function names to
219 locale character set in diagnostics.
220 * coverage.c (get_coverage_counts): Use %qE for identifiers in
221 diagnostics.
222 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
223 Document that functions are named in UTF-8.
224 * expr.c (expand_expr_real_1): Translate function names to locale
225 character set in diagnostics.
226 * gimplify.c (omp_notice_variable, omp_is_private,
227 gimplify_scan_omp_clauses): Use %qE for identifiers in
228 diagnostics.
229 * langhooks.c (lhd_print_error_function): Translate function names
230 to locale character set.
231 * langhooks.h (decl_printable_name): Document that return value is
232 in internal character set.
233 * stmt.c: Include pretty-print.h
234 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
235 diagnostics.
236 (resolve_operand_name_1): Translate named operand name to locale
237 character set.
238 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
239 diagnostics.
240 * toplev.c (announce_function): Translate function names to locale
241 character set.
242 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
243 (default_tree_printer): Use pp_identifier or translate identifiers
244 to locale character set. Mark "<anonymous>" for translation.
245 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
246 for identifiers in diagnostics.
247 * tree.c (handle_dll_attribute): Use %qE for identifiers in
248 diagnostics.
249 * varasm.c (output_constructor): Use %qE for identifiers in
250 diagnostics.
251
40540e68
RAE
2522009-05-04 Rafael Avila de Espindola <espindola@google.com>
253
254 * configure.ac: use ` ` instead of $()
255 * configure: Regenerate.
256
33fc884c
BE
2572009-05-05 Ben Elliston <bje@au.ibm.com>
258
259 * config/pa/linux-atomic.c: Eliminate conditional include of
260 errno.h on non-LP64 systems to simplify build requirements.
261
88388a52
JM
2622009-05-04 Joseph Myers <joseph@codesourcery.com>
263
264 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
265 diagnostics.
266 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
267 and pass value to identifier_to_locale.
268 (warn_variable_length_array): Make name a tree.
269 (grokdeclarator): Separate diagnostic texts for named and unnamed
270 declarators. Use %qE for named declarators.
271 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
272 diagnostics.
273 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
274 identifiers in diagnostics.
275 * c-typeck.c (push_member_name, start_init): Pass identifiers to
276 identifier_to_locale. Mark "anonymous" strings for translation.
277
960c5c79
ME
2782009-05-04 Michael Eager <eager@eagercon.com>
279
280 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 281 address for DImode/DFmode only if double-precision FP regs.
960c5c79 282
d083fbba
ME
2832009-05-04 Michael Eager <eager@eagercon.com>
284
285 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
286 TARGET_SINGLE_FLOAT check.
287
c3ba8d32
ME
2882009-05-04 Michael Eager <eager@eagercon.com>
289
290 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
291
edce9f18
ME
2922009-05-04 Michael Eager <eager@eagercon.com>
293
294 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
295 * config/rs6000/t-xilinx: New
296
506d7b68
PB
2972009-05-04 Paolo Bonzini <bonzini@gnu.org>
298
299 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
300 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
301 * gcc/explow.c (memory_address): Use target hook.
302 * gcc/targhooks.c (default_legitimize_address): New.
303 * gcc/targhooks.h (default_legitimize_address): New.
304 * gcc/target.h (legitimize_address): New.
305 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
306 (TARGET_INITIALIZER): Include it.
307 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
308
309 * config/bfin/bfin-protos.h (legitimize_address): Remove.
310 * config/bfin/bfin.c (legitimize_address): Remove.
311 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
312 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
313 Remove.
506d7b68
PB
314 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
315 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
316
317 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
318 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
319 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
320 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
321 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
322 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
323 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
324 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
325 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
326 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
327 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
328 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
329 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
330 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
331 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
332 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
333 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
334 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
335 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
336 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
337 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
338 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
339 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
340
341 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
342 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
343 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
344 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
345 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
346 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
347 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
348 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
349 (thumb_legitimize_address): Delete.
350 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
351 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
352 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
353 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
354 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
355 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
356 Delete.
357 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
358 Delete.
506d7b68
PB
359
360 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
361 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
362 * config/m32r/m32r.c (m32r_legitimize_address): New.
363 * config/m68k/m68k.c (m68k_legitimize_address): New.
364 * config/score/score.c (score_legitimize_address): Standardize.
365 * config/score/score3.c (score3_legitimize_address): Standardize.
366 * config/score/score3.h (score3_legitimize_address): Adjust.
367 * config/score/score7.c (score7_legitimize_address): Standardize.
368 * config/score/score7.h (score7_legitimize_address): Adjust.
369 * config/sh/sh.c (sh_legitimize_address): New.
370 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
371
372 * gcc/config/s390/s390.c (legitimize_address): Rename to...
373 (s390_legitimize_address): ... this.
374 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
375 (sparc_legitimize_address): ... this.
376 * gcc/config/i386/i386.c (legitimize_address): Rename to...
377 (ix86_legitimize_address): ... this.
378 * gcc/config/avr/avr.c (legitimize_address): Rename to...
379 (avr_legitimize_address): ... this.
380 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
381 (mn10300_legitimize_address): ... this.
382 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
383 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
384 (alpha_expand_mov): Adjust call.
385
386 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
387 * config/spu/spu.c (spu_legitimize_address): Likewise.
388 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
389 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
390
a3af5087
JM
3912009-05-04 Joseph Myers <joseph@codesourcery.com>
392
393 * intl.c (locale_encoding, locale_utf8): New.
394 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
395 * intl.h (locale_encoding, locale_utf8): Declare.
396 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
397 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
398 New.
399 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
400 argument.
401 (pp_tree_identifier): Define to call pp_base_tree_identifier.
402 (pp_base_tree_identifier): Declare as function.
403 (identifier_to_locale): Declare.
404 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 405 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 406
ea5cd5f1
RG
4072009-05-04 Richard Guenther <rguenther@suse.de>
408
409 PR middle-end/40015
410 * builtins.c (fold_builtin_memory_op): Do not decay to element
411 type if the size matches the whole array.
412
ddc2690a
KH
4132009-05-04 Kazu Hirata <kazu@codesourcery.com>
414
415 * expmed.c (synth_mult): When trying out a shift, pass the result
416 of a signed shift.
417
ef268d34
KH
4182009-05-04 Kazu Hirata <kazu@codesourcery.com>
419
420 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
421 (shiftsub1_cost): New.
422 (init_expmed): Compute shiftsub1_cost.
423 (synth_mult): Optimize multiplications by constants of the form
424 -(2^^m-1) for some constant positive integer m.
425
255d3827
RG
4262009-05-03 Richard Guenther <rguenther@suse.de>
427
428 PR c/39983
429 * c-typeck.c (array_to_pointer_conversion): Do not built
430 ADDR_EXPRs of arrays of pointer-to-element type.
431 * c-gimplify.c (c_gimplify_expr): Revert change fixing
432 up wrong ADDR_EXPRs after-the-fact.
433 * c-common.c (strict_aliasing_warning): Strip pointer
434 conversions for obtaining the original type.
435 * builtins.c (fold_builtin_memset): Handle array types.
436 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
437 and array types
438
16c33770
RG
4392009-05-03 Richard Guenther <rguenther@suse.de>
440
441 PR middle-end/23329
442 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
443 Do not lose casts from array types with unknown extent to array
444 types with known extent.
445 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
446 alias set compatibility.
447
62a67c94
MLI
4482009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
449
450 * flags.h (extra_warnings): Delete.
451 * toplev.c (process_options): Handle Wuninitialized here.
452 * opts.c (extra_warnings): Delete.
453 (set_Wextra): Delete.
454 (common_handle_option): -Wextra can be handled automatically.
455 * c-opts.c (c_common_handle_option): Delete obsolete code.
456 (c_common_post_options): Simplify comment.
457 * common.opt (W): Add Var.
458 (Wextra): Add Var.
459 (Wuninitialized): Initialize to -1.
460
8c7926c4
AN
4612009-05-03 Adam Nemet <anemet@caviumnetworks.com>
462 Richard Guenther <rguenther@suse.de>
463
464 * expr.c (get_def_for_expr): New function.
465 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
466 SSA rather than trees.
467 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
468 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
469
fa5da7de
JM
4702009-05-03 Joseph Myers <joseph@codesourcery.com>
471
472 * c-common.c (reswords): Add _Imaginary.
473 * c-common.c (enum rid): Add RID_IMAGINARY.
474
2ddd5020
PB
4752009-05-03 Paolo Bonzini <bonzini@gnu.org>
476
477 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
478 Patch by Richard Guenther.
479
aea88c05
AS
4802009-05-03 Anatoly Sokolov <aesok@post.ru>
481
482 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
483 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
484 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
485 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
486 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
487 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
488 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
489 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
490 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
491 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
492 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
493 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
494 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
495 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
496 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
497 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
498 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
499 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
500
85e59f3a
RG
5012009-05-02 Richard Guenther <rguenther@suse.de>
502
503 PR tree-optimization/39940
504 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
505 doing so.
506
4636b850
RG
5072009-05-02 Richard Guenther <rguenther@suse.de>
508
509 PR middle-end/40001
510 * tree-ssa.c (execute_update_addresses_taken): Properly check
511 if we can mark a variable DECL_GIMPLE_REG_P.
512 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
513 back to the end of the function.
514 (is_gimple_reg_type): Remove complex type special casing.
515 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
516 if not optimizing.
517
5e10cb5a
BE
5182009-05-02 Ben Elliston <bje@au.ibm.com>
519
520 * doc/collect2.texi (Collect2): Document search path behaviour
521 when configured with --with-ld.
522
048bf48b
JH
5232009-05-02 Jan Hubicka <jh@suse.cz>
524
525 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
526 parameter; update callers.
aa016ff7
UB
527 (coalesce_cost_edge): EH edges are costier because they needs
528 splitting even if not critical and even more costier when there are
529 multiple EH predecestors.
048bf48b 530
d5c5f9ab
JH
5312009-05-02 Jan Hubicka <jh@suse.cz>
532
533 * except.c (remove_eh_handler_and_replace): Handle updating after
534 removing TRY blocks.
535
2ed1959a
EB
5362009-05-02 Eric Botcazou <ebotcazou@adacore.com>
537
538 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
539
d363a7e7
SB
5402009-05-02 Steven Bosscher <steven@gcc.gnu.org>
541
542 * varasm.c: Do not include c-pragma.h.
543 * attribs.c: Do not incude c-common.h.
544
9c3d55b4
MM
5452009-05-01 Michael Matz <matz@suse.de>
546
547 * calls.c (initialize_argument_information): Handle SSA names like
548 decls with a non MEM_P DECL_RTL.
549
ea264ca5
SB
5502009-05-01 Steven Bosscher <steven@gcc.gnu.org>
551
552 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
553 * ipa-utils.c: Likewise.
554 * ipa-type-escape.c: Likewise.
555 * cgraphunit.c Do not include c-common.h.
556 * ipa-pure-const.c: Likewise.
557 * tree-if-conv.c: Likewise.
558 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
559 * ipa-struct-reorg.c: Likewise.
560 * tree-nomudflap.c: Likewise.
561 * tree-ssa-structalias.c: Likewise.
562
6c5d4d1a
SB
5632009-05-01 Steven Bosscher <steven@gcc.gnu.org>
564
565 * store-motion.c: Many cleanups to make this pass a first-class
566 citizen instead of an appendix to gcse load motion. Add TODO list
567 to make this pass faster/cleaner/better.
568
569 (struct ls_expr): Post gcse.c-split cleanups.
570 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
571 "stores" field to "avail_stores".
572 (pre_ldst_mems): Rename to store_motion_mems.
573 (pre_ldst_table): Rename to store_motion_mems_table.
574 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
575 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
576 (ldst_entry): Rename to st_expr_entry, update users.
577 (free_ldst_entry): Rename to free_st_expr_entry, update users.
578 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
579 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
580 update caller.
6c5d4d1a
SB
581 (first_ls_expr): Rename to first_st_expr, update users.
582 (next_ls_expr): Rename to next_st_expr, update users.
583 (print_ldst_list): Rename to print_store_motion_mems. Print names of
584 fields properly for store motion instead of names inherited from load
585 motion in gcse.c.
586 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
587 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
588 are done with it.
589
590 (ae_kill): Rename to st_kill, update users.
591 (ae_gen): Rename to st_avloc, update users.
592 (transp): Rename to st_transp, update users.
593 (pre_insert_map): Rename to st_insert_map, update users.
594 (pre_delete_map): Rename to st_delete_map, update users.
595 (insert_store, build_store_vectors, free_store_memory,
596 one_store_motion_pass): Update for abovementioned changes.
597
598 (gcse_subst_count, gcse_create_count): Remove.
599 (one_store_motion_pass): New statistics counters "n_stores_deleted"
600 and "n_stores_created", local variables.
601
602 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
603 use for_each_rtx.
604
605 (regvec, compute_store_table_current_insn): Remove.
606 (reg_set_info, reg_clear_last_set): Remove.
607 (compute_store_table): Use DF caches instead of local dataflow
608 solvers.
609
b02cec6e
JM
6102009-05-01 Joseph Myers <joseph@codesourcery.com>
611
612 * c-objc-common.c (c_tree_printer): Print identifiers with
613 pp_identifier, not pp_string. Mark "({anonymous})" for
614 translation.
615 * c-pretty-print.c (pp_c_ws_string): New.
616 (pp_c_cv_qualifier, pp_c_type_specifier,
617 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
618 pp_c_storage_class_specifier, pp_c_function_specifier,
619 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
620 pp_c_primary_expression, pp_c_postfix_expression,
621 pp_c_unary_expression, pp_c_shift_expression,
622 pp_c_relational_expression, pp_c_equality_expression,
623 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
624 use pp_string and pp_c_ws_string in place of pp_identifier and
625 pp_c_identifier for non-identifiers. Mark English strings for
626 translation.
627 * c-pretty-print.h (pp_c_ws_string): Declare.
628
cd533689
PP
6292009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
630 Roland McGrath <roland@redhat.com>
631
aa016ff7 632 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
633 (ENABLE_LD_BUILDID): New configuration option.
634 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
635 (LINK_BUILDID_SPEC): New macro.
636 (init_spec): If defined, prepend it between LINK_EH_SPEC and
637 link_spec.
638 * doc/install.texi: Document --enable-linker-build-id option.
639 * configure: Rebuild.
640 * config.in: Rebuild.
641
ba6adec4
AN
6422009-04-30 Adam Nemet <anemet@caviumnetworks.com>
643
644 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
645 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
646 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
647 MIPS_GP_SAVE_AREA_SIZE.
648 * config/mips/mips.c (struct mips_frame_info): Update comment
649 before arg_pointer_offset and hard_frame_pointer_offset.
650 (mips_compute_frame_info): Update diagram before function: to
651 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
652 indicate the position of frame_pointer_rtx with -fstack-protector and
653 to show args_size. Don't allocate cprestore area for leaf functions
654 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
655 cprestore_size.
656 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
657
48f5b722
MM
6582009-04-30 Michael Matz <matz@suse.de>
659
ba6adec4
AN
660 PR tree-optimization/39955
661 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 662
b65d6744
DK
6632009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
664
665 * ira.c (setup_cover_and_important_classes): Use safe macro
666 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
667 directly.
668 * genpreds.c (write_tm_preds_h): Output suitable definition of
669 REG_CLASS_FOR_CONSTRAINT.
670
f136c8ae
RAE
6712009-04-30 Rafael Avila de Espindola <espindola@google.com>
672
673 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
674 instead of an int.
675 * bitmap.c (bitmap_descriptor): Likewise.
676 * ggc-common.c (loc_descriptor): Likewise.
677 * varray.c (varray_descriptor): Likewise.
678 * vec.c (vec_descriptor): Likewise.
679
43fcece8 6802009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
681
682 * Makefile.in (dce.o): Add $(EXCEPT_H).
683 * dce.c: Include except.h and delete redundant vector definitions.
684 (deletable_insn_p): Return false for non-call insns that can throw
685 if DF is running.
686
df35c271
SB
6872009-04-30 Steven Bosscher <steven@gcc.gnu.org>
688
689 * gcse.c (ae_gen): Remove.
690 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
691 and make non-static function to make it available in store-motion.c.
692 Update call sites with search-and-replace.
693 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
694 extract_mentioned_regs, extract_mentioned_regs_helper,
695 find_moveable_store, compute_store_table, load_kills_store, find_loads,
696 store_killed_in_insn, store_killed_after, store_killed_before,
697 build_store_vectors, insert_insn_start_basic_block, insert-store,
698 remove_reachable_equiv_notes, replace_store_insn, delete_store,
699 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
700 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
701 * store-motion.c: ...new file. Also copy data structures from gcse.c
702 and clean up to remove parts not used by store motion.
703 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
704 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
705
f711a87a
RR
7062009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
707
708 PR target/38571
709 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
710 when optimizing for size.
711
fa5ed76e
HPN
7122009-04-30 Hans-Peter Nilsson <hp@axis.com>
713
714 * gcse.c (gcse_constant_p): Fix typo in last change.
715
0acbbdb0
RAE
7162009-04-30 Rafael Avila de Espindola <espindola@google.com>
717
718 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
719
82f5c05d
AK
7202009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
721
722 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
723
6d8f135b
JW
7242009-04-29 James E. Wilson <wilson@codesourcery.com>
725
726 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
727 CONST_HIGH_PART result.
728
c21ca196
AS
7292009-04-29 Anatoly Sokolov <aesok@post.ru>
730
731 * config/avr/avr.c (initial_elimination_offset): Rename to
732 avr_initial_elimination_offset.
733 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
734 change return type to bool.
735 (avr_can_eliminate): New function.
736 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
737 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
738 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 739 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
740 avr_initial_elimination_offset.
741 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
742 (avr_initial_elimination_offset): Define.
743
2a34bece 7442009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 745 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
746
747 PR rtl-optimization/39938
748 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
749 * cfgrtl.c: Include insn-attr.h.
750 (rest_of_pass_free_cfg): New function.
751 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
752 * resource.c (init_resource_info): Remove call to df_analyze.
753
5dc7911e
RG
7542009-04-29 Richard Guenther <rguenther@suse.de>
755
756 PR target/39943
757 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
758 allow conversion to signed integers.
759
1fe479fd
RG
7602009-04-29 Richard Guenther <rguenther@suse.de>
761
762 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
763 shifts of floating point vectors if the shift amount is
764 a constant multiple of the element size.
765
8e001680
AK
7662009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
767 Michael Matz <matz@suse.de>
768
769 PR middle-end/39927
770 PR bootstrap/39929
771 * tree-outof-ssa.c (emit_partition_copy): New function.
772 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
773 insert_part_to_rtx_on_edge): Perform the partition base var
774 copy using emit_partition_copy.
775 (insert_value_copy_on_edge): Convert constants to the right mode.
776 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
777 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
778
e50e3081
BS
7792009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
780
781 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
782 scan backwards to try to find a constant to initialize it.
783
4e5d521b
BS
784 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
785 insn before the loop_end instruction, don't look past labels.
786
7c90021d
RG
7872009-04-29 Richard Guenther <rguenther@suse.de>
788
789 PR middle-end/39937
790 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
791 loose type conversions.
792 (forward_propagate_addr_expr): Fix tuplification bug. Remove
793 stmts only if there are no uses of its definition.
794
97a988bc
BS
7952009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
796
797 * config/bfin/bfin.h (splitting_loops): Declare.
798 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
799 Reorder bit definitions to be ascending.
800 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
801 * config/bfin/bfin.c (splitting_loops): New variable.
802 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
803 (struct loop_info): Remove members INIT and LOOP_INIT.
804 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
805 the LSETUP sequence. Allow LC to be loaded from any register, but
806 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
807 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
808 set to 1.
809 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
810 of reload_completed.
aa016ff7 811
97a988bc
BS
812 From Jie Zhang:
813 * config/bfin/bfin.md (movsi_insn): Refine constraints.
814
0c463e16
RAE
8152009-04-29 Rafael Avila de Espindola <espindola@google.com>
816
817 * Makefile.in (PLUGIN_VERSION_H): New.
818 (OBJS-common): Remove plugin-version.o.
819 (plugin.o): Depend on (PLUGIN_VERSION_H).
820 (plugin-version.o): Remove.
821 * configure: Regenerate
822 * configure.ac: Create plugin-version.h.
823 * gcc-plugin.h (plugin_gcc_version): Remove.
824 (plugin_default_version_check): Change signature.
825 * plugin-version.c: Remove.
826 * plugin.c: Include plugin-version.h.
827 (str_plugin_gcc_version_name): Remove.
828 (try_init_one_plugin): Pass gcc version to plugin_init.
829 (plugin_default_version_check): Both gcc and plugin versions are now
830 arguments.
831
307e7eab
BS
8322009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
833
834 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
835 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
836 Remove special case testing for last insn of inner loops. Don't fail
837 if the loop ends with a jump, emit an extra nop instead.
307e7eab 838
c5d96723
BS
839 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
840 DREGS rather than comparing directly. Remove code that tries to
841 account for latencies.
842
de0b4ad5
RG
8432009-04-29 Richard Guenther <rguenther@suse.de>
844
845 PR tree-optimization/39941
846 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
847 eliminating an indirect call.
848
3a19701a
RG
8492009-04-29 Richard Guenther <rguenther@suse.de>
850
851 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
852 parameter. Allow invariants as base if !require_lvalue.
853 (verify_gimple_assign_single): Adjust.
854
a0a31d1e
BS
8552009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
856
857 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
858 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
859 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
860 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
861 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
862 a VEC_SELECT.
aa016ff7
UB
863 * config/bfin/bfin.c (bfin_expand_builtin,
864 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 865
795bd26a
RG
8662009-04-28 Richard Guenther <rguenther@suse.de>
867
868 * tree-vect-loop.c (get_initial_def_for_induction): Use
869 correct types for pointer increment.
870
04be270f
KG
8712009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
872
873 * toplev.c (print_version): Update GMP version string calculation.
874
e1a3b85c
EB
8752009-04-28 Eric Botcazou <ebotcazou@adacore.com>
876
877 PR rtl-optimization/39938
878 * resource.c (init_resource_info): Add call to df_analyze.
879
8224166e
UB
8802009-04-28 Uros Bizjak <ubizjak@gmail.com>
881
882 * config/alpha/alpha.md (usegp): Cast the result of
883 alpha_find_lo_sum_using_gp to enum attr_usegp.
884 * config/alpha/alpha.c (override_options): Remove end-of-structure
885 marker element from cpu_table. Use array size of cpu_table to handle
886 -mcpu and -mtune options.
887 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
888
c5f0fe67
JM
8892009-04-28 Joseph Myers <joseph@codesourcery.com>
890
891 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
892 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
893 tune_32 and tune_64.
894 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
895 support on PowerPC.
896 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
897 * config/rs6000/option-defaults.h: ... here. New file.
898 (OPT_64, OPT_32): Define.
899 (MASK_64BIT): Define to 0 if not already defined.
900 (OPT_ARCH64, OPT_ARCH32): Define.
901 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
902 and tune_64.
903
0c48a567
RR
9042009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
905
906 * config/arm/arm.c (arm_override_options): Emit error on using
907 fpa with AAPCS.
908
f1028b9d
UB
9092009-04-28 Uros Bizjak <ubizjak@gmail.com>
910
911 PR rtl-optimization/39914
912 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
913 registers for allocnos created from user-defined variables only
914 when not optimizing.
915
e0dd989a
RG
9162009-04-28 Richard Guenther <rguenther@suse.de>
917
918 PR middle-end/39937
919 * fold-const.c (fold_binary): Use distribute_real_division only
920 on float types.
921
9a17c91d
SE
9222009-04-28 Steve Ellcey <sje@cup.hp.com>
923
924 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
925 add hpux-stdint.h to tm_file.
926 (hppa[12]*-*-hpux11*): Ditto.
927 (ia64*-*-hpux*): Ditto.
928 * config/hpux-stdint.h: New.
60839f5d 929 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 930 __STDC_EXT__ for all compiles.
60839f5d
EB
931 * config/pa/pa-hpux.h: Ditto.
932 * config/pa/pa-hpux10.h: Ditto.
933 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 934
af04e659
CM
9352009-04-28 Catherine Moore <clm@codesourcery.com>
936
937 * debug.h (set_name): Add comment.
938
04ef80ce
AP
9392009-04-28 Andrew Pinski <pinskia@gmail.com>
940
941 PR target/39929
942 * config/darwin.c (machopic_gen_offset): Check
943 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
944 * config/arm/arm.c (require_pic_register): Likewise.
945
65ad77af
PB
9462009-04-28 Paolo Bonzini <bonzini@gnu.org>
947
8224166e
UB
948 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
949 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
950 m32c_promote_prototypes): Delete.
65ad77af 951
1b15a008
MM
9522009-04-28 Michael Matz <matz@suse.de>
953
954 PR middle-end/39922
955 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
956 constants.
957
7569a6cc
RG
9582009-04-28 Richard Guenther <rguenther@suse.de>
959
f1028b9d 960 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 961
ead204d9
RR
9622009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
963
964 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
965 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
966 * config/arm/arm-tune.md: Regenerate.
967
f2c45f08 9682009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 969
f2c45f08
AM
970 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
971 block if there are complex incoming edges.
972 (sel_merge_blocks): Remove useless assert.
973 (sel_redirect_edge_and_branch): Check that edge was redirected.
974 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
975 (sel_find_rgns): Delete declaration.
976 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
977 the region when it is not a preheader.
978
7a00d767
UB
9792009-04-28 Uros Bizjak <ubizjak@gmail.com>
980
981 PR c/39323
982 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
983
448ee662
RG
9842009-04-28 Richard Guenther <rguenther@suse.de>
985
986 * tree.h (SSA_NAME_VALUE): Remove.
987 (struct tree_ssa_name): Remove value_handle member.
988 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
989 array for jump threading.
990 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
991 SSA_NAME_VALUEs.
992 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
993 * tree-flow.h (threadedge_initialize_values): Declare.
994 (threadedge_finalize_values): Likewise.
995 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
996 (SSA_NAME_VALUE): Define.
997 (threadedge_initialize_values): New function.
998 (threadedge_finalize_values): Likewise.
999 * tree-ssa-dom.c (ssa_name_values): New global variable.
1000 (SSA_NAME_VALUE): Define.
f1028b9d 1001 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 1002
8644a673
IR
10032009-04-28 Ira Rosen <irar@il.ibm.com>
1004
1005 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1006 Use REPORT_VECTORIZED_LOCATIONS instead
1007 REPORT_VECTORIZED_LOOPS.
1008 * tree-vectorizer.c (vect_verbosity_level): Make static.
1009 (vect_loop_location): Rename to vect_location.
1010 (vect_set_verbosity_level): Update comment.
1011 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
1012 and vect_location.
1013 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
1014 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
1015 instead REPORT_UNVECTORIZED_LOOPS.
1016 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
1017 vect_loop_def to vect_external_def and vect_internal_def.
1018 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 1019 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
1020 REPORT_UNVECTORIZED_LOCATIONS.
1021 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
1022 and vect_used_in_loop and to vect_unused_in_scope and
1023 vect_used_in_scope.
1024 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
1025 (vect_verbosity_level): Remove declaration.
1026 (vect_analyze_operations): Likewise.
1027 (vect_analyze_stmt): Declare.
1028 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
1029 REPORT_UNVECTORIZED_LOCATIONS.
1030 (vect_get_loop_niters): Fix indentation.
1031 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
1032 (vect_analyze_loop_operations): New function.
1033 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
1034 vect_analyze_operations.
1035 (vect_is_simple_reduction): Use new names.
1036 (vectorizable_live_operation, vect_transform_loop): Likewise.
1037 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
1038 specify whether the data references can be a part of interleaving chain.
1039 (vect_analyze_data_ref_dependence): Use new names.
1040 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
1041 (vect_create_addr_base_for_vector_ref): Remove redundant code.
1042 * tree-vect-patterns.c (widened_name_p): Use new names.
1043 (vect_recog_dot_prod_pattern): Likewise.
1044 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
1045 (process_use, vect_mark_stmts_to_be_vectorized,
1046 vect_model_simple_cost, vect_model_store_cost,
1047 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
1048 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
1049 vectorizable_operation, vectorizable_type_demotion,
1050 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
1051 vectorizable_condition): Likewise.
1052 (vect_analyze_operations): Split into vect_analyze_loop_operations
1053 and ...
1054 (vect_analyze_stmt): ... new function.
1055 (new_stmt_vec_info): Use new names.
1056 (vect_is_simple_use): Use new names and fix comment.
1057 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
1058 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
1059
b91322f2
UB
10602009-04-28 Uros Bizjak <ubizjak@gmail.com>
1061
1062 PR target/39911
1063 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
1064 and integer modes for x87 operands. Do not ICE for unsupported size,
1065 generate error instead. Generate error for unsupported operand types.
1066 ['z']: Do not handle HImode memory operands specially. Warning
1067 for floating-point operands. Fallthru to 'Z' for unsupported operand
1068 types. Do not ICE for unsupported size, generate error instead.
1069 (output_387_binary_op): Use %Z to output operands.
1070 (output_fp_compare): Ditto.
1071 (output_387_reg_move): Ditto.
1072
b2ed71b6
BE
10732009-04-28 Ben Elliston <bje@au.ibm.com>
1074
1075 PR c++/35652
1076 Revert:
1077
1078 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1079
1080 * builtins.c (c_strlen): Do not warn here.
1081 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
1082 * c-common.c (pointer_int_sum): Take an explicit location.
1083 Warn about offsets out of bounds.
1084 * c-common.h (pointer_int_sum): Adjust declaration.
1085
81f40b79
ILT
10862009-04-27 Ian Lance Taylor <iant@google.com>
1087
1088 * collect2.c (is_ctor_dtor): Change type of ret field in struct
1089 names to symkind.
1090 * dce.c (run_fast_df_dce): Change type of old_flags to int.
1091 * df-core.c (df_set_flags): Change return type to int. Change
1092 type of old_flags to int.
1093 (df_clear_flags): Likewise.
1094 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
1095 (df_get_conditional_uses): Likewise.
1096 * df.h (df_set_flags, df_clear_flags): Update declarations.
1097 * dwarf2out.c (struct indirect_string_node): Change type of form
1098 field to enum dwarf_form.
1099 (AT_string_form): Change return type to enum dwarf_form.
1100 * fixed-value.c (fixed_compare): Add cast to enum type.
1101 * fwprop.c (update_df): Change 0 to VOIDmode.
1102 * gensupport.c: Change 0 to UNKNOWN.
1103 * gimple.h (gimple_cond_code): Add cast to enum type.
1104 * haifa-sched.c (reemit_notes): Add cast to enum type.
1105 * hooks.c (hook_int_void_no_regs): Remove function.
1106 * hooks.h (hook_int_void_no_regs): Remove declaration.
1107 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 1108 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
1109 * real.c (real_arithmetic): Add cast to enum type.
1110 (real_compare): Likewise.
1111 * target.h (struct gcc_target): Change return type of
1112 branch_target_register_class to enum reg_class.
1113 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
1114 default_branch_target_register_class.
7a00d767 1115 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 1116 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 1117 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
1118 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
1119 cast to int.
1120 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
1121 ERROR_MARK.
1122 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
1123 vect_uninitialized_def. Change 0 to ERROR_MARK.
1124 * tree-vect-stmts.c (supportable_widening_operation): Don't
1125 initialize icode1 and icode2.
7a00d767 1126 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
1127 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
1128 and to STD_C89.
1129 (cmn_err_flag_specs): Change 0 to STD_C89.
1130 (cmn_err_char_table): Likewise.
1131 * config/arm/arm.c (get_arm_condition_code): Change type of code
1132 to enum arm_cond_code.
1133 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
1134 (IWMMXT_BUILTIN2): Likewise.
1135 (neon_builtin_type_bits): Don't define typedef.
1136 (neon_builtin_datum): Change type of bits field to int.
1137 (arm_expand_neon_args): Add cast to enum type.
1138 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
1139 TLS_MODEL_NONE.
1140 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
1141 casts to enum type.
1142 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
1143 MIPS_FP_COND_f.
1144 * config/mips/mips.md (jal_macro): Return enum constant.
1145 (single_insn): Likewise.
1146 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
1147 CODE_FOR_nothing.
1148 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1149 casts to enum type.
1150 * config/s390/s390.c (s390_tune_flags): Change type to int.
1151 (s390_arch_flags): Likewise.
7a00d767 1152 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
1153 * config/s390/s390.h (s390_tune_flags): Update declaration.
1154 (s390_arch_flags): Likewise.
1155 * config/sh/sh.c (prepare_move_operands): Compare
1156 tls_symbolic_operand result with enum constant.
1157 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
1158 (sh_expand_prologue): Add cast to enum type.
1159 (sh_expand_epilogue): Likewise.
1160 (tls_symbolic_operand): Change return type to enum tls_model.
1161 (fpscr_set_from_mem): Add cast to enum type.
1162 (legitimize_pic_address): Compare tls_symbolic_operand result with
1163 enum constant.
1164 (sh_target_reg_class): Change return type to enum reg_class.
1165 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
1166 PROCESSOR_xxx.
7a00d767
UB
1167 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
1168 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
1169 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
1170 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
1171 (delayed_branch, tls_call_delay): Likewise.
1172 (eligible_for_sibcall_delay): Likewise.
1173 (eligible_for_return_delay): Likewise.
1174 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
1175 (spu_expand_builtin_1): Likewise.
1176
1177 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
1178 for all types of conversions.
1179 (output_init_element): Issue -Wc++-compat warning if needed when
1180 initializing a bitfield with enum type.
1181 * c-parser.c (c_parser_expression): Set original_type to
1182 original_type of right hand operand of comman operator.
1183
e4ae5e77
RW
11842009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1185
1186 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
1187 grammar nits.
7a00d767 1188 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
1189 * doc/cpp.texi (Standard Predefined Macros)
1190 (Implementation-defined behavior): Likewise.
7a00d767 1191 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
1192 * doc/gimple.texi (GIMPLE Exception Handling)
1193 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 1194 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
1195 * doc/invoke.texi (Warning Options, Optimize Options)
1196 (AVR Options, Darwin Options): Likewise.
1197 (Optimize Options): Reformulate -fwhole-program description.
1198 * doc/loop.texi (Lambda): Likewise.
1199 * doc/md.texi (Output Template, Define Constraints)
1200 (Standard Names, Insn Splitting): Likewise.
1201 * doc/options.texi (Option properties): Likewise.
1202 * doc/passes.texi (Tree-SSA passes): Likewise.
1203 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
1204 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
1205 (File Names and DBX): Likewise.
1206 * doc/trouble.texi (Incompatibilities): Likewise.
1207
1883802f 12082009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
1209
1210 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
1211 instruction is correct.
1212
1883802f 12132009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
1214
1215 Allow non-constant arguments to conversion intrinsics.
1216 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
1217 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
1218 * spu.c (print_operand): Handle 'v' and 'w'.
1219 (exp2_immediate_p, spu_gen_exp2): Define.
1220 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
1221 spu_convtf_1): Update parameter descriptions.
7a00d767 1222 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
1223 * constraints.md ('v', 'w'): New.
1224 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
1225 Remove.
1226 (i2f, I2F): New define_mode_attr.
1227 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
1228 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
1229 fixuns_truncv4sfv4si2): Update to use mode attribute.
1230 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
1231 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
1232 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
1233 patterns for combine.
1234
5f39ad47
SB
12352009-04-27 Steven Bosscher <steven@gcc.gnu.org>
1236
1237 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
1238 (cprop, hoist, pre, store_motion): New debug counters.
1239 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
1240 is not an RTL pass anymore.
1241 (pass_profiling): Remove extern decl for pass removed in 2005.
1242 (pass_gcse, pass_jump_bypass): Remove.
1243 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
1244 to 0 for clean state.
1245 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
1246 * cse.c (gate_handle_cse_after_global_opts,
1247 rest_of_handle_cse_after_global_opts): New functions.
1248 (pass_cse_after_global_opts): New pass, does local CSE.
1249 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
1250 (TV_CPROP): New timevar.
1251 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
1252 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
1253 (gcse_main, recompute_all_luids): Remove.
1254 (compute_hash_table_work): Call max_reg_num instead of reading
1255 max_gcse_regno.
1256 (cprop_jump): Don't set run_jump_opt_after_gcse.
1257 (constprop_register): Always allow to alter jumps.
1258 (cprop_insn): Likewise.
1259 (do_local_cprop): Likewise.
1260 (local_cprop_pass): Likewise. Return non-zero if something changed.
1261 (cprop): Remove function, fold interesting bits into one_cprop_pass.
1262 (find_implicit_sets): Add note about missed optimization opportunity.
1263 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
1264 pass_rtl_cprop execute function.
1265 Don't bother tracking the pass number, each pass gets its own dumpfile
1266 now anyway.
1267 Always allow to alter jumpsand bypass jumps.
1268 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
1269 will just find no suitable set.
1270 (pre_edge_insert): Fix dumping, this function is for PRE only.
1271 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
1272 pass_rtl_pre execute function.
1273 (hoist_code): Return non-zero if something changed. Keep track of
1274 substitutions and insertions for statistics gathering similar to PRE.
1275 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
1276 called from the pass_rtl_hoist execute function. Show pass statistics.
1277 (compute_store_table): Use max_reg_num directly instead of using the
1278 formerly global max_gcse_regno.
1279 (build_store_vectors): Likewise.
1280 (replace_store_insn): Fix dumping.
1281 (store_motion): Rename to ...
1282 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
1283 pass, called from the pass_rtl_store_motion execute function. Keep
1284 track of substitutions and insertions for statistics gathering similar
1285 to PRE.
1286 (bypass_jumps): Remove, fold interesting bits into ...
1287 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
1288 from the pass_rtl_cprop execute function.
1289 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
1290 pass_jump_bypass): Remove.
1291 (gate_handle_gcse, rest_of_handle_gcse): Remove.
1292 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
1293 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
1294 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
1295 (gate_rtl_store_motion, execute_rtl_store_motion,
1296 pass_rtl_store_motion): New.
1297 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
1298 make it clear that -fcse-skip-blocks is a no-op for backward compat.
1299 * passes.c (init_optimization_passes): Remove pass_gcse and
1300 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
1301 and cse_after_global_opts in place of pass_gcse. Schedule cprop
1302 instead of pass_jump_bypass.
1303
c685de4a
RG
13042009-04-27 Richard Guenther <rguenther@suse.de>
1305
1306 PR middle-end/39928
1307 * gimplify.c (gimplify_expr): If we are required to create
1308 a temporary make sure it ends up as register.
1309
72d41f29
L
13102009-04-27 H.J. Lu <hongjiu.lu@intel.com>
1311
1312 PR target/39903
1313 * config/i386/i386.c (construct_container): Don't call
1314 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
1315 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
1316
e97809c6
MM
13172009-04-27 Michael Matz <matz@suse.de>
1318
1319 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
1320 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
1321 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
1322 (dump_replaceable_exprs): Take a bitmap.
1323 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
1324 array.
1325 (expand_gimple_basic_block): Likewise.
1326 * tree-ssa-ter.c (struct temp_expr_table_d): Make
1327 replaceable_expressions member a bitmap.
1328 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
1329 (mark_replaceable): Likewise.
1330 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
1331 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
1332
211ca15c
RG
13332009-04-27 Richard Guenther <rguenther@suse.de>
1334
1335 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
1336 (verify_stmts): Dispatch to gimple/type verification code.
1337 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
1338 issue with call argument types.
1339
fca5f3d1
MM
13402009-04-27 Michael Matz <matz@suse.de>
1341
1342 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
1343 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
1344 to above.
1345
a1fa3e79 13462009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 1347 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
1348
1349 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
1350 a label's basic block.
1351 (mark_target_live_regs): Tidy and rework obsolete comments.
1352 Change back DF problem to LIVE. If a label starts a basic block,
1353 assume that all registers that used to be live then still are.
1354 (init_resource_info): If a label starts a basic block, set its
1355 BLOCK_FOR_INSN accordingly.
1356 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
1357
33b223c0
RG
13582009-04-27 Richard Guenther <rguenther@suse.de>
1359
1360 * tree-flow-inline.h (function_ann): Remove.
1361 (get_function_ann): Likewise.
1362 * tree-dfa.c (create_function_ann): Remove.
1363 * tree-flow.h (struct static_var_ann_d): Remove.
1364 (struct function_ann_d): Likewise.
1365 (union tree_ann_d): Remove fdecl member.
1366 (function_ann_t): Remove.
1367 (function_ann, get_function_ann, create_function_ann): Remove
1368 declarations.
1369
e3136fa2
UB
13702009-04-27 Uros Bizjak <ubizjak@gmail.com>
1371
1372 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
1373
f87c9042
JH
13742009-04-27 Jan Hubicka <jh@suse.cz>
1375
1376 * ipa-pure-const.c (struct funct_state_d): New fields
1377 state_previously_known, looping_previously_known; remove
1378 state_set_in_source.
1379 (analyze_function): Use new fields.
1380 (propagate): Avoid assumption that state_set_in_source imply
1381 nonlooping.
1382
1383 * tree-ssa-loop-niter.c (finite_loop_p): New function.
1384 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
1385 * cfgloop.h (finite_loop_p): Declare.
1386
33abd718
MM
13872009-04-26 Michael Matz <matz@suse.de>
1388
e3136fa2 1389 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 1390
ddc34084
MM
13912009-04-26 Michael Matz <matz@suse.de>
1392
1393 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
1394 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
1395 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
1396 pass_mark_used_blocks): Remove.
1397 * tree-optimize.c (pass_free_datastructures,
1398 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
1399 * passes.c (init_optimization_passes): Don't call
1400 pass_mark_used_blocks, remove dead code.
1401
1fec7ed4
L
14022009-04-26 H.J. Lu <hongjiu.lu@intel.com>
1403
1404 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
1405 * tree-ssa-live.h (register_ssa_partition): Likewise.
1406
4e3825db
MM
14072009-04-26 Michael Matz <matz@suse.de>
1408
1409 Expand from SSA.
1410 * builtins.c (fold_builtin_next_arg): Handle SSA names.
1411 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
1412 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
1413 SSA names.
1414 (compare_pairs): Swap cost comparison.
1415 (coalesce_ssa_name): Don't use change_partition_var.
1416 * tree-nrv.c (struct nrv_data): Add modified member.
1417 (finalize_nrv_r): Set it.
1418 (tree_nrv): Use it to update statements.
1419 (pass_nrv): Require PROP_ssa.
1420 * tree-mudflap.c (mf_decl_cache_locals,
1421 mf_build_check_statement_for): Use make_rename_temp.
1422 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
1423 * alias.c (find_base_decl): Handle SSA names.
1424 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
1425 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
1426 * rtl.h (set_reg_attrs_for_parm): Declare.
1427 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
1428 to "optimized", remove unused locals at finish.
1429 (execute_free_datastructures): Make global, call
1430 delete_tree_cfg_annotations.
1431 (execute_free_cfg_annotations): Don't call
1432 delete_tree_cfg_annotations.
1433
1434 * ssaexpand.h: New file.
1435 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 1436 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
1437 (expand_expr_real_1): Expand SSA names.
1438 * cfgexpand.c (toplevel): Include ssaexpand.h.
1439 (SA): New global variable.
1440 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
1441 (SSAVAR): New macro.
1442 (set_rtl): New helper function.
1443 (add_stack_var): Deal with SSA names, use set_rtl.
1444 (expand_one_stack_var_at): Likewise.
1445 (expand_one_stack_var): Deal with SSA names.
1446 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
1447 before unique numbers.
1448 (expand_stack_vars): Use set_rtl.
1449 (expand_one_var): Accept SSA names, add asserts for them, feed them
1450 to above subroutines.
1451 (expand_used_vars): Expand all partitions (without default defs),
1452 then only the local decls (ignoring those expanded already).
1453 (expand_gimple_cond): Remove edges when jumpif() expands an
1454 unconditional jump.
1455 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
1456 or remove abnormal edges. Ignore insns setting the LHS of a TERed
1457 SSA name.
1458 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
1459 members of SA; deal with PARM_DECL partitions here; expand
1460 all PHI nodes, free tree datastructures and SA. Commit instructions
1461 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
1462 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
1463 info and statements at start, collect garbage at finish.
1464 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
1465 (VAR_ANN_PARTITION) Remove.
1466 (change_partition_var): Don't declare.
1467 (partition_to_var): Always return SSA names.
1468 (var_to_partition): Only accept SSA names.
1469 (register_ssa_partition): Only check argument.
1470 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
1471 member.
1472 (delete_var_map): Don't free it.
1473 (var_union): Only accept SSA names, simplify.
1474 (partition_view_init): Mark only useful SSA names as used.
1475 (partition_view_fini): Only deal with SSA names.
1476 (change_partition_var): Remove.
1477 (dump_var_map): Use ssa_name instead of partition_to_var member.
1478 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
1479 basic blocks.
1480 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
1481 (struct _elim_graph): New member const_dests; nodes member vector of
1482 ints.
1483 (set_location_for_edge): New static helper.
1484 (create_temp): Remove.
1485 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 1486 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
1487 (new_elim_graph): Allocate const_dests member.
1488 (clean_elim_graph): Truncate const_dests member.
1489 (delete_elim_graph): Free const_dests member.
1490 (elim_graph_size): Adapt to new type of nodes member.
1491 (elim_graph_add_node): Likewise.
1492 (eliminate_name): Likewise.
1493 (eliminate_build): Don't take basic block argument, deal only with
1494 partition numbers, not variables.
1495 (get_temp_reg): New static helper.
1496 (elim_create): Use it, deal with RTL temporaries instead of trees.
1497 (eliminate_phi): Adjust all calls to new signature.
1498 (assign_vars, replace_use_variable, replace_def_variable): Remove.
1499 (rewrite_trees): Only do checking.
1500 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
1501 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
1502 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
1503 contains_tree_r, MAX_STMTS_IN_LATCH,
1504 process_single_block_loop_latch, analyze_edges_for_bb,
1505 perform_edge_inserts): Remove.
1506 (expand_phi_nodes): New global function.
1507 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
1508 functions, initialize new parameter, remember partitions having a
1509 default def.
1510 (finish_out_of_ssa): New global function.
1511 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
1512 don't reset in_ssa_p here, don't disable TER when mudflap.
1513 (pass_del_ssa): Remove.
1514 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
1515 partition members.
1516 (execute_free_datastructures): Declare.
1517 * Makefile.in (SSAEXPAND_H): New variable.
1518 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
1519 * basic-block.h (commit_one_edge_insertion): Declare.
1520 * passes.c (init_optimization_passes): Move pass_nrv and
1521 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
1522 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
1523 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
1524 (redirect_branch_edge): Deal with super block when expanding, split
1525 out jump patching itself into ...
1526 (patch_jump_insn): ... here, new static helper.
1527
17c665a9
MM
15282009-04-26 Michael Matz <matz@suse.de>
1529
1530 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
1531 beyond num_ssa_names.
1532 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1533 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1534
92061771
JJ
15352009-04-26 Jakub Jelinek <jakub@redhat.com>
1536
ce372372
JJ
1537 PR inline-asm/39543
1538 * fwprop.c (forward_propagate_asm): New function.
1539 (forward_propagate_and_simplify): Propagate also into __asm, if it
1540 doesn't increase the number of referenced registers.
1541
92061771
JJ
1542 PR c/39889
1543 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
1544
15452009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
1546
1547 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
1548 note_nonlocal_vla_type for nonlocal VLAs.
1549 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
1550 contains_remapped_vars, remap_vla_decls): New functions.
1551 (convert_nonlocal_reference_stmt): If not optimizing, call
1552 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
1553 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
1554 if it wasn't found in var_map.
1555 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
1556 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
1557 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
1558 declare_vars.
1559 * gimplify.c (nonlocal_vlas): New variable.
1560 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
1561 referenced VLAs.
1562 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 1563
4561e242
JJ
1564 * dwarf2out.c (loc_descr_plus_const): New function.
1565 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
1566 mem_loc_descriptor, loc_descriptor_from_tree_1,
1567 descr_info_loc, gen_variable_die): Use it.
1568
a9548ddf
JJ
1569 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
1570 !TREE_STATIC VAR_DECLs.
1571 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
1572 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
1573 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
1574 DECL_BY_REFERENCE is valid.
1575 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
1576 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
1577 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
1578 Copy DECL_BY_REFERENCE.
1579 (struct nesting_copy_body_data): New type.
1580 (nesting_copy_decl): New function.
1581 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
1582 if they have variable length.
1583
10555d08
MM
15842009-04-26 Michael Matz <matz@suse.de>
1585
1586 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
1587 mark new temporaries for renaming.
1588
e11187cc
JM
15892009-04-26 Joseph Myers <joseph@codesourcery.com>
1590
1591 PR c/39581
1592 * c-decl.c (global_bindings_p): Return negative value.
1593 (c_variable_size): New. Based on variable_size from
1594 stor-layout.c.
1595 (grokdeclarator): Call c_variable_size not variable_size.
1596
f6a51d31
UB
15972009-04-26 Uros Bizjak <ubizjak@gmail.com>
1598
1599 * config/i386/i386.c (print_operand) ['z']: Fix typo.
1600
4b97723d
KT
16012009-04-26 Kai Tietz <kai.tietz@onevision.com>
1602
1603 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
1604 Redefine it to just use mingw/include.
1605 (ASM_SPEC): Rules for -m32 and -m64.
1606 (LINK_SPEC): Use Likewise.
1607 (SPEC_32): New define.
1608 (SPEC_64): Likewise.
1609 (SUB_LINK_SPEC): Likewise.
1610 (MULTILIB_DEFAULTS): New define.
1611 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
1612 Add multilib options.
1613 (MULTILIB_DIRNAMES): Likewise.
1614 (MULTILIB_OSDIRNAMES): Likewise.
1615 (LIBGCC): Likewise.
1616 (INSTALL_LIBGCC): Likewise.
1617
991d6621
JM
16182009-04-26 Joseph Myers <joseph@codesourcery.com>
1619
1620 PR c/39556
1621 * c-tree.h (enum c_inline_static_type): New.
1622 (record_inline_static): Declare.
1623 * c-decl.c (struct c_inline_static, c_inline_statics,
1624 record_inline_static, check_inline_statics): New.
1625 (pop_file_scope): Call check_inline_statics.
1626 (start_decl): Call record_inline_static instead of pedwarning
1627 directly for static in inline function.
1628 * c-typeck.c (build_external_ref): Call record_inline_static
1629 instead of pedwarning directly for static referenced in inline
1630 function.
1631
4a81774c
SB
16322009-04-26 Steven Bosscher <steven@gcc.gnu.org>
1633
1634 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
1635 not new but only being rescanned.
1636 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
1637 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
1638 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
1639 record_set_info, compute_set, grealloc): Remove.
1640 (recompute_all_luids): New function.
1641 (gcse_main): Don't compute sets, and don't do related memory
1642 allocations/free-ing. If something changed before the end of the
1643 pass, update LUIDs using recompute_all_luids.
1644 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
1645 (free_gcse_mem): Don't free it either.
1646 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
1647 Use the df insn LUIDs.
1648 (load_killed_in_block): Likewise.
1649 (compute_hash_table_work): Don't compute reg_set_in_block.
1650 (compute_transp): Use DF_REG_DEF_CHAINs.
1651 (local_cprop_pass): Don't use compute_sets and related functions.
1652 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
1653 Use get_max_uid() instead of max_cuid.
1654 (insert_insn_end_basic_block, pre_insert_copy_insn,
1655 update_ld_motion_stores): Don't try to
1656 keep reg_set tables up to date.
1657 (pre_insert_copies): Use df insn LUIDs.
1658 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
1659 (reg_set_info): Don't use extra bitmap argument.
1660 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
1661 information to compute regs_set_in_block.
1662 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
1663 (bypass_jumps): Don't use compute_sets and friends.
1664
e8f99a9d
RW
16652009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1666
1667 PR testsuite/39710
1668 * opts.c (undocumented_msg): Do not leave blank even with
1669 ENABLE_CHECKING.
1670
6895bac8
JM
16712009-04-25 Joseph Myers <joseph@codesourcery.com>
1672
1673 * c-decl.c (build_enumerator): Allow values folding to integer
1674 constants but not integer constant expressions with a pedwarn if
1675 pedantic.
1676
24070fcb
JM
16772009-04-25 Joseph Myers <joseph@codesourcery.com>
1678
1679 PR c/39582
1680 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
1681 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
1682 type is an integer constant.
1683
d6d89aa1
UB
16842009-04-25 Uros Bizjak <ubizjak@gmail.com>
1685
1686 PR target/39897
1687 * config/i386/i386.c (print_operand) ['z']: Revert handling of
1688 HImode operands.
1689
92f6fd0b
JM
16902009-04-25 Joseph Myers <joseph@codesourcery.com>
1691
1692 PR c/39564
1693 * c-decl.c (grokdeclarator): Diagnose declarations of functions
1694 with variably modified return type and no storage class
1695 specifiers, except for the case of nested functions. Distinguish
1696 extern declarations of functions with variably modified return
1697 types from those of objects with variably modified types.
1698
a3710436
JH
16992009-04-25 Jan Hubicka <jh@suse.cz>
1700
1701 * tree.c (list_equal_p): New function.
1702 * tree.h (list_equal_p): Declare.
1703 * coretypes.h (edge_def, edge, const_edge, basic_block_def
1704 basic_block_def, basic_block, const_basic_block): New.
1705 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
1706 (redirect_eh_edge): New function.
1707 (make_eh_edge_update_phi): EH edges are not abnormal.
1708 * except.c: Include tree-flow.h.
1709 (list_match): New function.
1710 (eh_region_replaceable_by_p): New function.
1711 (replace_region): New function.
1712 (hash_type_list): New function.
1713 (hash_eh_region): New function.
1714 (eh_regions_equal_p): New function.
1715 (merge_peers): New function.
1716 (remove_unreachable_regions): Verify EH tree when checking;
1717 merge peers.
1718 (copy_eh_region_1): New function.
1719 (copy_eh_region): New function.
1720 (push_reachable_handler): New function.
1721 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
1722 regions without label but with live RESX.
1723 * except.h (redirect_eh_edge_to_label): New.
1724 * tree-flow.h (redirect_eh_edge): New.
1725 * coretypes.h (edge_def, edge, const_edge, basic_block_def
1726 basic_block_def, basic_block, const_basic_block): Remove.
1727 * Makefile.in (except.o): Add dependency on tree-flow.h
1728 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
1729 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
1730 Remove.
1731
3764d512
EB
17322009-04-25 Eric Botcazou <ebotcazou@adacore.com>
1733
1734 PR bootstrap/39645
1735 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
1736 on the destination of memcpy.
1737
1c62e8f2
PB
17382009-04-25 Paolo Bonzini <bonzini@gnu.org>
1739
1740 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1741 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
1742 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
1743
496a4ef5
JH
17442009-04-25 Jan Hubicka <jh@suse.cz>
1745
1746 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
1747 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
1748 to be reached by different label than left.
1749 (update_eh_edges): Update comment; remove edge_to_remove if possible
1750 and return true if suceeded.
1751 (cleanup_empty_eh): Accept sharing map; handle shared regions.
1752 (cleanup_eh): Compute sharing map.
1753 * except.c (remove_eh_handler_and_replace): Add argument if we should
1754 update regions.
1755 (remove_unreachable_regions): Update for label sharing.
1756 (label_to_region_map): Likewise.
1757 (get_next_region_sharing_label): New function.
1758 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
1759 prev_try pointers.
1760 (remove_eh_handler): Update.
1761 (remove_eh_region_and_replace_by_outer_of): New function.
1762 * except.h (struct eh_region): Add next_region_sharing_label.
1763 (remove_eh_region_and_replace_by_outer_of,
1764 get_next_region_sharing_label): Declare.
1765 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
1766
17672009-04-25 Jan Hubicka <jh@suse.cz>
1768
1769 * tree-cfg.c (split_critical_edges): Split also edges where we can't
1770 insert code even if they are not critical.
1771
17722009-04-25 Jan Hubicka <jh@suse.cz>
1773
1774 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1775 (gimple_can_remove_branch_p): EH edges won't remove branch by
1776 redirection.
1777 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
1778 updating of non-abnormal EH edges.
1779 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1780 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
1781 (split_critical_edges): Split also edges where emitting code on them
1782 will lead to splitting later.
1783
a3a5e3d1
UB
17842009-04-25 Uros Bizjak <ubizjak@gmail.com>
1785 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 PR target/39590
1788 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
1789 the configured assembler supports fildq and fistpq mnemonics.
1790 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
1791 * configure: Regenerated.
1792 * config.in: Ditto.
1793
1794 * config/i386/i386.c (print_operand): Handle 'Z'.
1795 ['z']: Remove handling of special fild/fist suffixes.
1796 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
1797 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
1798 suffix of fild insn.
1799 (*floatsi<mode>2_vector_mixed): Ditto.
1800 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
1801 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
1802 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1803 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
1804 * config/i386/gas.h (GAS_MNEMONICS): Remove.
1805
23750d7f
BE
18062009-04-25 Ben Elliston <bje@au.ibm.com>
1807
1808 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
1809 the source of a set operation.
1810
e6ff3083
AS
18112009-04-25 Anatoly Sokolov <aesok@post.ru>
1812
1813 * target.h (struct gcc_target): Add case_values_threshold field.
1814 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
1815 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
1816 * targhooks.c (default_case_values_threshold): New function.
1817 * targhooks.h (default_case_values_threshold): Declare function.
1818 * stmt.c (expand_case): Use case_values_threshold target hook.
1819 * expr.h (case_values_threshold): Remove declartation.
1820 * expr.c (case_values_threshold): Remove function.
1821 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
1822
1823 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
1824 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1825 (avr_case_values_threshold): Declare as static.
1826 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
1827
1828 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
1829 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1830 (mn10300_case_values_threshold): New function.
1831
569c72fc
L
18322009-04-24 H.J. Lu <hongjiu.lu@intel.com>
1833
1834 * ira.c (setup_cover_and_important_classes): Add enum cast.
1835
ff3cb468
VM
18362009-04-24 Vladimir Makarov <vmakarov@redhat.com>
1837
1838 * genpreds.c (write_enum_constraint_num): Output definition of
1839 CONSTRAINT_NUM_DEFINED_P macro.
1840 * ira.c (setup_cover_and_important_classes): Use
1841 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
1842
4f7be849
DD
18432009-04-24 DJ Delorie <dj@redhat.com>
1844
1845 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
1846 __SH2A_SINGLE_ONLY__ also.
1847
735b94a7
SE
18482009-04-24 Steve Ellcey <sje@cup.hp.com>
1849
1850 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
1851 (movdf_internal): Ditto.
1852 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
1853 SFmode and DFmode constants.
1854 (ia64_print_operand): Add 'G' format for printing
1855 floating point constants.
1856
77a30264
RG
18572009-04-24 Richard Guenther <rguenther@suse.de>
1858
1859 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
1860 from unsigned additions.
1861
2b6da65c
JM
18622009-04-24 Joseph Myers <joseph@codesourcery.com>
1863
1864 * c-typeck.c (set_init_index): Allow array designators that are
1865 not integer constant expressions with a pedwarn if pedantic.
1866
f5a17c43
BS
18672009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1868
1869 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
1870 zero if no overlap in nonzero bits between the operands.
1871
32e8bb8e
ILT
18722009-04-24 Ian Lance Taylor <iant@google.com>
1873
1874 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
1875 (record_dead_and_set_regs): Likewise.
1876 * df.h (struct df_mw_hardreg): Change flags field to int.
1877 (struct df_base_ref): Likewise.
1878 (struct df): Change changeable_flags field to int.
1879 * df-scan.c (df_defs_record): Change clobber_flags to int.
1880 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
1881 constants rather than #define macros.
1882 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
1883 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
1884 (enum dwarf_calling_convention): Likewise.
1885 (enum dwarf_line_number_x_ops): Likewise.
1886 (enum dwarf_call_frame_info): Likewise.
1887 (enum dwarf_source_language): Likewise.
1888 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
1889 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
1890 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
1891 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
1892 * genrecog.c (maybe_both_true_2): Change c to int.
1893 (write_switch): Likewise. Add cast to enum type.
1894 * gimplify.c (gimplify_omp_for): Handle return values from
1895 gimplify_expr using MIN rather than bitwise or.
1896 (gimplify_expr): Add cast to enum type.
1897 * ipa-prop.c (update_jump_functions_after_inlining): Change
1898 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
1899 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
1900 Add casts to enum type.
32e8bb8e
ILT
1901 (setup_cover_and_important_classes): Change cl to int. Add casts
1902 to enum type.
1903 (setup_class_translate): Change cl and mode to int.
1904 (ira_init_once): Change mode to int.
1905 (free_register_move_costs): Likewise.
1906 (setup_prohibited_mode_move_regs): Add casts to enum type.
1907 * langhooks.c (add_builtin_function_common): Rework assertion that
1908 value fits bitfield.
1909 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
1910 * omega.c (omega_do_elimination): Avoid math on enum types.
1911 * optabs.c (expand_vec_shift_expr): Remove casts to int.
1912 * opts.c (set_debug_level): Change 2 to enum constant. Use new
1913 int local to handle integral_argment value.
1914 * regmove.c (try_auto_increment): Change PUT_MODE to
1915 PUT_REG_NOTE_KIND.
1916 * reload.c (push_secondary_reload): Add casts to enum type.
1917 (secondary_reload_class, find_valid_class): Likewise.
1918 * reload1.c (emit_input_reload_insns): Likewise.
1919 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
1920 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
1921 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
1922 constant.
1923 * tree.c (build_common_builtin_nodes): Add casts to enum type.
1924 * tree-complex.c (complex_lattice_t): Typedef to int rather than
1925 enum type.
1926 (expand_complex_libcall): Add casts to enum type.
1927 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
1928 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
1929 with ERROR_MARK, not NUM_TREE_CODES.
1930 (vect_create_epilog_for_reduction): Likewise.
1931 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 1932 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
1933 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
1934 enum machine_mode.
1935 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
1936 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 1937 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
1938 * var-tracking.c (get_init_value): Change return type to enum
1939 var_init_status.
1940 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1941 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
1942 arm_fp_model.
1943 (arm_override_options): Add casts to enum type.
1944 (arm_emit_tls_decoration): Likewise.
1945 * config/i386/i386.c (ix86_function_specific_restore): Add casts
1946 to enum type.
1947 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
1948 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
1949 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
1950 enum type.
1951 * config/s390/s390.c (code_for_builtin_64): Change to array of
1952 enum insn_code.
1953 (code_for_builtin_31): Likewise.
1954 (s390_expand_builtin): Change code_for_builtin to enum insn_code
1955 const *.
1956 * config/sparc/sparc.c (sparc_override_options): Change value
1957 field in struct code_model to enum cmodel. In initializer change
1958 0 to NULL and add cast to enum type.
1959
1960 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
1961 Change all callers. Issue a -Wc++-compat warning using
1962 lhs_origtype if necessary.
1963 (convert_for_assignment): Issue -Wc++-compat warnings about
1964 invalid conversions to enum type on assignment.
1965 * c-common.h (build_modify_expr): Update declaration.
1966
ac4fc08a
NC
19672009-04-24 Nick Clifton <nickc@redhat.com>
1968
1969 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
1970 (function_arg_advance): Likewise.
1971 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
1972 5th alternative.
1973
f22e891a
AK
19742009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
1975
1976 * config/s390/constraints.md ('I', 'J'): Fix condition.
1977
ad58aabe
DN
19782009-04-24 Diego Novillo <dnovillo@google.com>
1979
1980 * gengtype-parse.c (parse_error): Add newline after message.
1981
879a4a01
L
19822009-04-24 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 * config/i386/sse.md (avxmodesuffixs): Removed.
1985 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
1986 (*avx_pinsr<ssevecsize>): This.
1987
f63426af
BS
19882009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1989
1990 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
1991 follow chains of regs with a single definition, and allow expressions
1992 that are function_invariant_p.
ce72fe6c 1993 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 1994
30349c74
PB
19952009-04-24 Paolo Bonzini <bonzini@gnu.org>
1996
1997 PR middle-end/39867
1998 * fold-const.c (fold_cond_expr_with_comparison): When folding
1999 > and >= to MAX, make sure the MAX uses the same type as the
2000 comparison's operands.
2001
8d8256c1
NC
20022009-04-24 Nick Clifton <nickc@redhat.com>
2003
2004 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
2005 addressing for DImode accesses.
2006 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 2007 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 2008
6216f94e
JJ
20092009-04-24 Jakub Jelinek <jakub@redhat.com>
2010
2011 PR rtl-optimization/39794
2012 * alias.c (canon_true_dependence): Add x_addr argument.
2013 * rtl.h (canon_true_dependence): Adjust prototype.
2014 * cse.c (check_dependence): Adjust canon_true_dependence callers.
2015 * cselib.c (cselib_invalidate_mem): Likewise.
2016 * gcse.c (compute_transp): Likewise.
2017 * dse.c (scan_reads_nospill): Likewise.
2018 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
2019 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
2020 canon_base_addr of the group, plus optional offset.
2021 (struct group_info): Rename canon_base_mem to
2022 canon_base_addr.
2023 (get_group_info): Set canon_base_addr to canon_rtx of base, not
2024 canon_rtx of base_mem.
2025
6de7a512
PB
20262009-04-23 Paolo Bonzini <bonzini@gnu.org>
2027
2028 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2029 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
2030
4a3a2376
UW
20312009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2032
2033 * config/spu/spu-builtins.h: Delete file.
2034
2035 * config/spu/spu.h (enum spu_builtin_type): Move here from
2036 spu-builtins.h.
2037 (struct spu_builtin_description): Likewise. Add GTY marker.
2038 Do not use enum spu_function_code or enum insn_code.
2039 (spu_builtins): Add extern declaration.
2040
2041 * config/spu/spu.c: Do not include "spu-builtins.h".
2042 (enum spu_function_code, enum spu_builtin_type_index,
2043 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
2044 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
2045 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
2046 unsigned_V2DI_type_node): Move here from spu-builtins.h.
2047 (spu_builtin_types): Make static. Add GTY marker.
2048 (spu_builtins): Add extern declaration with GTY marker.
2049 Include "gt-spu.h".
2050
2051 * config/spu/spu-c.c: Do not include "spu-builtins.h".
2052 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
2053 Check programmatically whether all parameters are scalar.
2054
2055 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
2056
bbaba73f
EB
20572009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2058
2059 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
2060 assignment from the constructor either if the target is volatile.
2061
ee93c1c6
DJ
20622009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2063
2064 * config/arm/arm.md (insv): Do not share operands[0].
2065
b2f21330
NS
20662009-04-23 Nathan Sidwell <nathan@codesourcery.com>
2067
2068 * config/vxlib-tls.c (active_tls_threads): Delete.
2069 (delete_hook_installed): New.
2070 (tls_delete_hook): Don't delete the delete hook.
2071 (tls_destructor): Delete it here.
2072 (__gthread_set_specific): Adjust installing the delete hook.
2073 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
2074 __gthread_leave_tsd_dtor_context.
2075
4782dfa7
RAE
20762009-04-23 Rafael Avila de Espindola <espindola@google.com>
2077
2078 * c-format.c (gcc_tdiag_char_table): Add support for %E.
2079
bf758008
UB
20802009-04-23 Uros Bizjak <ubizjak@gmail.com>
2081
2082 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
2083 enum type.
2084 (alpha_rtx_costs): Ditto.
2085 (emit_unlikely_jump): Use add_reg_note.
2086 (emit_frame_store_1): Ditto.
2087 (alpha_expand_prologue): Ditto.
2088 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2089 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
2090
7323a100
NC
20912009-04-23 Nick Clifton <nickc@redhat.com>
2092
2093 * config/v850/v850.md (epilogue): Remove suppressed code.
2094 (return): Rename to return_simple and remove test of frame size.
2095 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
2096 to gen_return_simple.
2097
360032ba
JY
20982009-04-22 Jing Yu <jingyu@google.com>
2099
2100 PR testsuite/39781
2101 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
2102
53650abe
AP
21032009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
2104
2105 PR C/31499
2106 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
2107 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
2108 value is a VECTOR_CST, the element type is the element type of the
2109 vector.
2110
89043e8a
DD
21112009-04-22 DJ Delorie <dj@redhat.com>
2112
2113 * config/m32c/m32c.h: Update GTY annotations to new syntax.
2114
023f059b
JJ
21152009-04-22 Jakub Jelinek <jakub@redhat.com>
2116
2117 * alias.c (find_base_term): Move around LO_SUM case, so that
2118 CONST falls through into PLUS/MINUS handling.
2119
2c0eba5a
JJ
2120 PR c/39855
2121 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
2122 into 0, use omit_one_operand.
2123
9a461028
BE
21242009-04-23 Ben Elliston <bje@au.ibm.com>
2125
2126 * config/rs6000/linux-unwind.h (get_regs): Remove type
2127 puns. Change the type of `pc' to an array of unsigned ints and
2128 update all users. Constify frame24.
2129
653e2568
DD
21302009-04-22 DJ Delorie <dj@redhat.com>
2131
2132 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
2133 declarations before code.
2134 (current_function_special_page_vector): Likewise.
2135 (m32c_expand_insv): Silence a warning.
2136
60839f5d 21372009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
2138
2139 * alias.c: Update GTY annotations to new syntax.
2140 * basic-block.h: Likewise.
2141 * bitmap.h: Likewise.
2142 * c-common.h: Likewise.
2143 * c-decl.c: Likewise.
2144 * c-parser.c: Likewise.
2145 * c-pragma.c: Likewise.
2146 * c-tree.h: Likewise.
2147 * cfgloop.h: Likewise.
2148 * cgraph.h: Likewise.
2149 * config/alpha/alpha.c: Likewise.
2150 * config/arm/arm.h: Likewise.
2151 * config/avr/avr.h: Likewise.
2152 * config/bfin/bfin.c: Likewise.
2153 * config/cris/cris.c: Likewise.
2154 * config/darwin.c: Likewise.
2155 * config/frv/frv.c: Likewise.
2156 * config/i386/i386.c: Likewise.
2157 * config/i386/i386.h: Likewise.
2158 * config/i386/winnt.c: Likewise.
2159 * config/ia64/ia64.h: Likewise.
2160 * config/iq2000/iq2000.c: Likewise.
2161 * config/mips/mips.c: Likewise.
2162 * config/mmix/mmix.h: Likewise.
2163 * config/pa/pa.c: Likewise.
2164 * config/pa/pa.h: Likewise.
2165 * config/rs6000/rs6000.c: Likewise.
2166 * config/s390/s390.c: Likewise.
2167 * config/sparc/sparc.c: Likewise.
2168 * config/xtensa/xtensa.c: Likewise.
2169 * cselib.h: Likewise.
2170 * dbxout.c: Likewise.
2171 * dwarf2out.c: Likewise.
2172 * except.c: Likewise.
2173 * except.h: Likewise.
2174 * fixed-value.h: Likewise.
2175 * function.c: Likewise.
2176 * function.h: Likewise.
2177 * gimple.h: Likewise.
2178 * integrate.c: Likewise.
2179 * optabs.c: Likewise.
2180 * output.h: Likewise.
2181 * real.h: Likewise.
2182 * rtl.h: Likewise.
2183 * stringpool.c: Likewise.
2184 * tree-data-ref.c: Likewise.
2185 * tree-flow.h: Likewise.
2186 * tree-scalar-evolution.c: Likewise.
2187 * tree-ssa-address.c: Likewise.
2188 * tree-ssa-alias.h: Likewise.
2189 * tree-ssa-operands.h: Likewise.
2190 * tree.c: Likewise.
2191 * tree.h: Likewise.
2192 * varasm.c: Likewise.
2193 * varray.h: Likewise.
2194 * vec.h: Likewise.
bf758008 2195 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
2196 * doc/gty.texi: Update GTY documentation to new syntax.
2197 * gengtype-lex.l: Enforce attribute-like syntax for GTY
2198 annotations on structs.
2199 * gengtype-parse.c: Likewise.
2200
a123d175
MH
22012009-04-22 Mark Heffernan <meheff@google.com>
2202
bf758008 2203 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 2204
4c7c486a
KH
22052009-04-22 Kazu Hirata <kazu@codesourcery.com>
2206
2207 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
2208 where appropriate.
2209
6e782a29
KH
22102009-04-22 Kazu Hirata <kazu@codesourcery.com>
2211
2212 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
2213 the same as a PLUS without a shift. Increase the cost of a
2214 CONST_INT in MULT.
2215
38d2336a
MLI
22162009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2217
2218 * Makefile.in: Update dependencies.
bf758008 2219 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
2220 * errors.h: Remove bogus comment about compatibility.
2221 (warning): Update declaration.
2222 * genautomata.c: Update all calls to warning.
2223 * gimple.c: Do not include errors.h. Include toplev.h.
2224 * tree-ssa-structalias.c: Do not include errors.h.
2225 * omega.c: Likewise.
2226 * tree-ssa-reassoc.c: Likewise.
2227 * config/spu/spu-c.c: Likewise.
2228 * config/spu/t-spu-elf: Update dependencies.
2229
aea4deba
RG
22302009-04-22 Richard Guenther <rguenther@suse.de>
2231
2232 PR tree-optimization/39824
2233 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
2234 make sure the types are compatible.
2235
cfc93532
MLI
22362009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2237
2238 PR c++/14875
2239 * c-common.c (c_parse_error): Take a token_flags parameter.
2240 Use token_type for the token type instead.
2241 Pass token_flags to cpp_type2name.
2242 * c-common.h (c_parse_error): Update declaration.
2243 * c-parser.c (c_parser_error): Pass 0 as token flags.
2244
8632d02a
AB
22452009-04-22 Andrey Belevantsev <abel@ispras.ru>
2246
2247 PR rtl-optimization/39580
2248 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
2249
4c33221c
UW
22502009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2251
2252 * function.c (expand_function_end): Do not emit a jump to the "naked"
2253 return label for fall-through returns.
2254 * except.c (sjlj_emit_function_exit): Always place the call to the
2255 unregister function at the location installed by expand_function_end.
2256
9925bce0
RG
22572009-04-22 Richard Guenther <rguenther@suse.de>
2258
2259 PR tree-optimization/39845
2260 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
2261 (gen_inbound_check): Likewise.
2262
24a40b35
NS
22632009-04-22 Nathan Sidwell <nathan@codesourcery.com>
2264
2265 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
2266 padding for PPC.
2267 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
2268 * config/vxlib.c (__gthread_once): Add race guard for PPC.
2269
6c34a092
PB
22702009-04-22 Paolo Bonzini <bonzini@gnu.org>
2271
2272 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
2273 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
2274 shift counts to avoid out-of-bounds array accesses.
2275
baa48dfa
PB
22762009-04-22 Paolo Bonzini <bonzini@gnu.org>
2277
2278 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
2279 (Pmode): Move above.
2280
7d83f4f5
UB
22812009-04-22 Uros Bizjak <ubizjak@gmail.com>
2282
2283 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
2284 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
2285 GET_CODE macro. Use IN_RANGE macro where appropriate.
2286 * config/alpha/alpha.h: Ditto.
2287 * config/alpha/alpha.md: Ditto.
2288 * config/alpha/constraints.md: Ditto.
2289 * config/alpha/predicates.md: Ditto.
2290
3ad606bc
PB
22912009-04-22 Paolo Bonzini <bonzini@gnu.org>
2292
2293 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
2294 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2295 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2296 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2297 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2298 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2299 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2300 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2301 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2302 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2303 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2304 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2305 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2306 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2307 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2308 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2309 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2310 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2311 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2312 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2313 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2314 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2315 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2316 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2317 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2318 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2319 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2320
3cabd6d1
LB
23212009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2322
2323 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
2324 references from comments.
2325 * cfgbuild.c: (count_basic_blocks): Delete.
2326 (find_basic_blocks_1): Delete.
2327 (find_basic_blocks): Delete.
2328 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 2329 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
2330 * except.h (finish_eh_generation): Delete.
2331 * basic-block.h (find_basic_blocks): Delete.
2332 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
2333
270d1bcd
DK
23342009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
2335
2336 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
2337 (sdbout_parms): Likewise.
2338
b757d36f
KK
23392009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
2340
2341 * config/sh/sh.c (prepare_cbranch_operands): Use
2342 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
2343 (expand_cbranchdi4): Likewise.
2344 (from_compare): Add cast to enum type.
2345 (expand_cbranchsi4): Use add_reg_note.
2346 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
2347 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
2348 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
2349 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2350 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
2351 instead of CODE_FOR_nothing.
2352 (cbranchdi4): Likewise. Fix the order of arguments for
2353 gen_rtx_fmt_ee.
2354 (push_fpscr): Use add_reg_note.
2355 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
2356 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
2357
ad41bd84
JM
23582009-04-21 Joseph Myers <joseph@codesourcery.com>
2359
2360 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
2361 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2362 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2363 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
2364 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
2365 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
2366 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
2367 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
2368 config/alpha/x-vms, config/arc/t-arc,
2369 config/arm/README-interworking, config/arm/arm-c.c,
2370 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
2371 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
2372 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
2373 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
2374 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
2375 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
2376 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
2377 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
2378 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
2379 config/cris/t-elfmulti, config/crx/t-crx,
2380 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
2381 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
2382 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
2383 config/h8300/t-h8300, config/i386/athlon.md,
2384 config/i386/darwin-libgcc.10.4.ver,
2385 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
2386 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
2387 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
2388 config/i386/t-linux64, config/i386/t-nwld,
2389 config/i386/t-rtems-i386, config/i386/t-sol2-10,
2390 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
2391 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
2392 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
2393 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
2394 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
2395 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
2396 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
2397 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
2398 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
2399 config/m68k/t-uclinux, config/mcore/t-mcore,
2400 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
2401 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
2402 config/mips/crtn.asm, config/mips/irix-crti.asm,
2403 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
2404 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
2405 config/mips/mips-fixed.md, config/mips/sb1.md,
2406 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
2407 config/mips/t-iris6, config/mips/t-isa3264,
2408 config/mips/t-libgcc-mips16, config/mips/t-linux64,
2409 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
2410 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
2411 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
2412 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
2413 config/mn10300/t-linux, config/mn10300/t-mn10300,
2414 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
2415 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
2416 config/picochip/libgccExtras/clzsi2.asm,
2417 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
2418 config/rs6000/darwin-libgcc.10.4.ver,
2419 config/rs6000/darwin-libgcc.10.5.ver,
2420 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
2421 config/rs6000/t-aix43, config/rs6000/t-aix52,
2422 config/rs6000/t-darwin, config/rs6000/t-fprules,
2423 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
2424 config/rs6000/t-lynx, config/rs6000/t-netbsd,
2425 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
2426 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
2427 config/rs6000/t-rtems, config/rs6000/t-spe,
2428 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
2429 config/score/t-score-elf, config/sh/divcost-analysis,
2430 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
2431 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
2432 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
2433 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
2434 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
2435 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
2436 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
2437 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
2438 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
2439 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
2440 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
2441 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
2442 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
2443 limitx.h, version.c, xcoff.h: Add copyright and license notices.
2444 * config/h8300/genmova.sh: Include copyright and license notices
2445 in generated output.
2446 * config/h8300/mova.md: Regenerate.
2447 * doc/install.texi2html: Include word "Copyright" in copyright
2448 notice and use name "Free Software Foundation, Inc.".
2449 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2450 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2451 ChangeLog-2007, ChangeLog-2008: Correct dates.
2452
ca80e52b
EB
24532009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2454
2455 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
2456 NE_EXPR operations as well.
2457 * c-parser.c (c_parser_condition): Do not set location information on
2458 the condition.
2459 (c_parser_conditional_expression): Likewise.
2460 (c_parser_binary_expression): Set location information on operators.
2461 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
2462 TRUTH_NOT_EXPR has been folded.
2463 * fold-const.c (fold_truth_not_expr): Copy location information from
2464 the incoming expression to the outgoing one.
2465 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
2466 recursive calls on the LHS of the operator but pass that of the
2467 operator to recursive calls on the RHS of the operator. Set it
2468 on the COND_EXPR.
2469 (shortcut_cond_expr): Set the locus of the operator on the second
2470 COND_EXPR and that of the expression on the first in degenerate cases.
2471 Pass the locus of the expression to calls to shortcut_cond_r.
2472 Set the locus of the 'then' block on the associated jump, if any.
2473 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
2474 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
2475 expression to call to gimplify_boolean_expr.
2476
35091630
KT
24772009-04-21 Kai Tietz <kai.tietz@onevision.com>
2478
2479 * config.gcc: Add additional configuration for
2480 i686-w64-mingw* and x86_64-w64-mingw* triplet.
2481 * config/i386/mingw-w64.h: New mingw-w64 specific header.
2482 (CPP_SPEC): Redefine for allowing -municode option.
2483 (STARTFILE_SPEC): Likewise.
2484 * config/i386/t-mingw-w64: New.
2485 * config/i386/mingw-w64.opt: New.
2486 (municode): Add new target option.
2487 * doc/invoke.texi (municode): Add documentation for new option.
2488
0267afc4
ILT
24892009-04-21 Ian Lance Taylor <iant@google.com>
2490
2491 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2492 Correct test for number of arguments.
2493 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2494
2ba9daa7
AS
24952009-04-21 Andreas Schwab <schwab@linux-m68k.org>
2496
2497 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
2498 argument of emit_library_call.
2499
ad8a1ac0
RG
25002009-04-21 Richard Guenther <rguenther@suse.de>
2501
2502 PR middle-end/39829
2503 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
2504 inside VIEW_CONVERT_EXPRs.
2505
7156c8ab
MJ
25062009-04-21 Martin Jambor <mjambor@suse.cz>
2507
2508 * tree-switch-conversion.c (build_constructors): Split a long line.
2509 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
2510 (build_one_array): Create assigns of constants if possible, do not
2511 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
2512 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
2513 make_rename_temp. Do not call mark_symbols_for_renaming, call
2514 update_stmt.
2515 (gen_def_assigns): Do not call mark_symbols_for_renaming or
2516 find_new_referenced_vars, call update_stmt.
2517 (gen_inbound_check): Use create_tmp_var and create ssa names manually
2518 instead of calling make_rename_temp. Do not call
2519 find_new_referenced_vars or mark_symbols_for_renaming, call
2520 update_stmt.
2521
2970ccb3
RG
25222009-04-21 Richard Guenther <rguenther@suse.de>
2523
2524 PR tree-optimization/39827
7d83f4f5 2525 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
2526 (tree_ssa_phiprop): Pass the correct array size.
2527
47f402d1
UB
25282009-04-21 Uros Bizjak <ubizjak@gmail.com>
2529
2530 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
2531
1e4ae551
MLI
25322009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2533
2534 PR 16202
2535 * c-typeck.c (lvalue_p): Move declaration ...
2536 * c-common.h (lvalue_p): ... to here.
2537 * c-common.c (candidate_equal_p): New.
2538 (add_tlist): Use it.
2539 (merge_tlist): Use it.
2540 (warn_for_collisions_1): Likewise.
2541 (warning_candidate_p): Accept more candidates.
2542 (verify_tree): A warning candidate can be an expression. Use
2543 candidate_equal_p.
2544
244609a6
BE
25452009-04-21 Ben Elliston <bje@au.ibm.com>
2546
2547 PR target/5267
2548 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2549 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
2550 options. Remove -mcall-solaris documentation.
2551
9c650d90
MLI
25522009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2553
2554 PR c++/13358
2555 * doc/invoke.texi (-Wlong-long): Update description.
2556 * c-lex (interpret_integer): Only warn if there was no previous
2557 overflow and -Wlong-long is enabled.
2558 * c-decl.c (declspecs_add_type): Drop redundant flags.
2559 * c.opt (Wlong-long): Init to -1.
2560 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
2561 and front-end warn_long_long. Wlong-long only depends on other
2562 flags if it is uninitialized.
2563 * c-parser.c (disable_extension_diagnostics): warn_long_long is
2564 the same for CPP and FE.
2565 (restore_extension_diagnostics): Likewise.
2566
bbbbb16a
ILT
25672009-04-20 Ian Lance Taylor <iant@google.com>
2568
2569 Fix enum conversions which are invalid in C++:
47f402d1
UB
2570 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
2571 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
2572 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
2573 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 2574 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 2575 (dbxout_parms): Likewise.
47f402d1 2576 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
2577 (df_clear_flags): Likewise.
2578 * df-problems.c (df_rd_bb_local_compute_process_def): Change
2579 top_flag parameter to int.
2580 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
2581 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
2582 Remove cast.
bbbbb16a
ILT
2583 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
2584 (df_ref_create_structure, df_def_record_1): Likewise.
2585 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
2586 (df_notes_rescan): Change 0 to VOIDmode in function call.
2587 (df_get_call_refs, df_insn_refs_collect): Likewise.
2588 (df_bb_regs_collect): Likewise.
2589 (df_entry_block_defs_collect): Likewise.
2590 (df_exit_block_uses_collect): Likewise.
2591 * df.h: Update declarations.
2592 * double-int.c (double_int_divmod): Add cast to enum type.
2593 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
2594 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
2595 (based_loc_descr): Likewise.
2596 (loc_descriptor_from_tree_1): Change first_op and second_op to
2597 enum dwarf_location_atom. Add cast to enum type.
2598 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 2599 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
2600 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
2601 (do_store_flag): Likewise.
2602 * fixed-value.h (struct fixed_value): Change mode to enum
2603 machine_mode.
47f402d1 2604 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
2605 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
2606 function call.
2607 (insert_insn_decl, insert_decl, insert_state): Likewise.
2608 (automata_list_finish): Likewise.
2609 * genrecog.c (process_define_predicate): Add cast to enum type.
2610 * gensupport.c (init_predicate_table): Add cast to enum type.
2611 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
2612 function call.
2613 (gimple_build_call_1, gimple_build_label): Likewise.
2614 (gimple_build_goto, gimple_build_asm_1): Likewise.
2615 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 2616 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
2617 (enum fallback): Rename from enum fallback_t.
2618 (fallback_t): Typedef as int.
2619 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
2620 GSI_SAME_STMT in function call.
2621 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
2622 enum type.
2623 (setup_reg_class_relations): Likewise.
47f402d1 2624 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
2625 (setup_prohibited_class_mode_regs): Add cast to enum type.
2626 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 2627 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
2628 (record_address_regs): Change i to enum reg_class.
2629 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
2630 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
2631 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
2632 (GET_MODE_2XWIDER_MODE): Likewise.
2633 (GET_CLASS_NARROWEST_MODE): Likewise.
2634 * omp-low.c (expand_omp_for): Add cast to enum type.
2635 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
2636 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
2637 * postreload.c (reload_cse_simplify_operands): Change rclass local
2638 to enum reg_class.
2639 * predict.c (combine_predictions_for_insn): Change best_predictor
2640 and predictor to enum br_predictor.
2641 (combine_predictions_for_bb): Likewise.
2642 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
2643 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 2644 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
2645 * reginfo.c (init_move_cost): Add casts to enum type.
2646 (init_reg_sets_1, init_fake_stack_mems): Likewise.
2647 * regmove.c (regclass_compatible_p): Change class0 and class1 to
2648 enum reg_class.
2649 * reload.c (find_valid_class): Add casts to enum type.
2650 (push_reload): Change 0 to NO_REGS in function call.
2651 (find_reloads): Change this_alternative to array of enum
2652 reg_class. Remove some now-unnecessary casts.
2653 (make_memloc): Change 0 to VOIDmode in function call.
2654 * reload1.c (reload): Change 0 to VOIDmode in function call.
2655 (eliminate_regs_1, elimination_effects): Likewise.
2656 (eliminate_regs_in_insn): Likewise.
2657 (emit_input_reload_insns): Add cast to enum type.
2658 (delete_output_reload): Change 0 to VOIDmode in function call.
2659 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
2660 to enum type in function call.
2661 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
2662 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 2663 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
2664 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
2665 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
2666 (dump_function): Likewise.
2667 * tree-dump.h: Update declarations.
2668 * tree-pass.h: Update declarations.
2669 * varasm.c (assemble_integer): Change mclass to enum mode_class.
2670 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
2671 enum type.
2672 (arm_rtx_costs_1): Correct parenthesization.
2673 (arm_rtx_costs): Add casts to enum type.
2674 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
2675 (vfp_emit_fstmd): Use add_rg_note.
2676 (emit_multi_reg_push, emit_sfm): Likewise.
2677 (thumb_set_frame_pointer): Likewise.
2678 (arm_expand_prologue): Likewise.
2679 (arm_regno_class): Change return type to enum reg_class.
2680 (thumb1_expand_prologue): Use add_reg_note.
2681 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
2682 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
2683 in function call.
2684 * config/arm/gentune.sh: Add cast to enum type.
2685 * config/arm/arm-tune.md: Rebuild.
2686 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
2687 (ix86_split_fp_branch, predict_jump): Likewise.
2688 (ix86_expand_multi_arg_builtin): Change sub_code from enum
2689 insn_code to enum rtx_code.
2690 (ix86_builtin_vectorized_function): Add cast to enum type.
2691 * config/i386/i386.md (truncdfsf2): Change slot to enum
2692 ix86_stack_slot.
2693 (truncxf<mode>2, isinf<mode>2): Likewise.
2694 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
2695 enum type.
2696 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
2697 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
2698 (insert_bundle_state): Change 1 to INSERT in function call.
2699 (ia64_add_bundle_selector_before): Likewise.
2700 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
2701 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
2702 (restore_stack_nonlocal): Likewise.
2703 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
2704 function call.
2705 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
2706 function call.
2707 (mips_rtx_costs): Likewise.
2708 (mips_override_options): Add casts to enum type.
2709 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
2710 in function call.
2711 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
2712 (store_reg, set_reg_plus_d): Likewise.
2713 (hppa_expand_prologue, hppa_profile_hook): Likewise.
2714 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2715 cast to enum type.
2716 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
2717 function call.
2718 (emit_unlikely_jump): Use add_reg_note.
2719 (rs6000_emit_allocate_stack): Likewise.
2720 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
2721 (output_toc): Change 1 to INSERT in function call.
2722 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
2723 (rs6000_initialize_trampoline): Likewise.
2724 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
2725 function call.
2726 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
2727 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
2728 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
2729 (save_gprs): Use add_reg_note.
2730 (s390_emit_prologue): Likewise.
47f402d1 2731 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
2732 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
2733 (sparc_fold_builtin): Add cast to enum type.
2734 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
2735 enum insn_code.
2736 (spu_expand_prologue): Use add_reg_note.
47f402d1 2737 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
2738
27392009-04-20 Ian Lance Taylor <iant@google.com>
2740
2741 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
2742 (c_parser_postfix_expression_after_primary): Get VEC for list of
2743 arguments. Get original types of arguments. Call
2744 build_function_call_vec.
2745 (cached_expr_list_1, cached_expr_list_2): New static variables.
2746 (c_parser_expr_list): Change return type to VEC *. Add
2747 p_orig_types parameter. Change all callers.
2748 (c_parser_release_expr): New static function.
2749 (c_parser_vec_to_tree_list): New static function.
2750 * c-typeck.c (build_function_call): Rewrite to build a VEC and
2751 call build_function_call_vec.
2752 (build_function_call_vec): New function, based on old
2753 build_function_call.
2754 (convert_arguments): Remove nargs and argarray parameters. Change
2755 values to a VEC. Add origtypes parameter.
47f402d1 2756 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
2757 (convert_for_assignment): Add origtype parameter. Change all
2758 callers. If warn_cxx_compat, check for conversion to an enum
2759 type when calling a function.
2760 (store_init_value): Add origtype parameter. Change all callers.
2761 (digest_init): Likewise.
2762 (struct init_node): Add origtype field.
2763 (add_pending_init): Add origtype parameter. Change all callers.
2764 (output_init_element): Likewise.
2765 (output_pending_init_elements): Pass origtype from init_node to
2766 output_init_element.
f28a61ab 2767 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
2768 output_init_element.
2769 (c_finish_return): Add origtype parameter. Change all callers.
2770 * c-common.c (sync_resolve_size): Change params to VEC *. Change
2771 caller.
2772 (sync_resolve_params): Likewise.
47f402d1 2773 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 2774 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 2775 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
2776 * c-decl.c (finish_decl): Add origtype parameter. Change all
2777 callers. Call build_function_call_vec rather than
2778 build_function_call for cleanup.
2779 * c-tree.h: Update declarations.
2780 * c-common.h: Update declarations.
2781 * stub-objc.c (objc_rewrite_function_call): Change parameter from
2782 params to first_param.
2783 * target.h (struct gcc_target): Change resolve_overloaded_builtin
2784 params parameter from tree to void *.
2785 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2786 Change arglist parameter to have type void *, and to be a pointer
2787 to a VEC.
2788 * config/rs6000/rs6000-protos.h
2789 (altivec_resolve_overloaded_builtin): Update declaration.
2790 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
2791 fnargs parameter to have type void *, and to be a pointer to a
2792 VEC. Call build_function_call_vec instead of
2793 build_function_call.
47f402d1 2794 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 2795
6ff078d4 27962009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 2797 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
2798 H.J. Lu <hongjiu.lu@intel.com>
2799
2800 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
2801
2802 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
2803 (IX86_LEA_PRIORITY): Likewise.
2804 (distance_non_agu_define): New function.
2805 (distance_agu_use): Likewise.
2806 (ix86_lea_for_add_ok): Likewise.
2807 (ix86_dep_by_shift_count): Likewise.
2808
2809 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
2810 should split for LEA.
2811
2812 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
2813 function.
2814 (ix86_dep_by_shift_count): Likewise.
2815
87a5b4cc
RG
28162009-04-20 Richard Guenther <rguenther@suse.de>
2817
2818 * expr.c (handled_component_p): Move ...
2819 * tree.h (handled_component_p): ... here.
2820 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
2821 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
2822 and REALPART_EXPR to be in one group.
2823
438c239d
RG
28242009-04-20 Richard Guenther <rguenther@suse.de>
2825
2826 * basic-block.h (get_all_dominated_blocks): Declare.
2827 * dominance.c (get_all_dominated_blocks): New function.
2828 * tree-cfg.c (get_all_dominated_blocks): Remove.
2829 (remove_edge_and_dominated_blocks): Adjust.
2830 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
2831 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
2832 instead of recursing.
2833
fed5ae11
DK
28342009-04-20 Doug Kwan <dougkwan@google.com>
2835
2836 * cgraph.h (cgraph_node_ptr): New type for vector functions.
2837 (struct cgraph_node_set_def): New type.
2838 (cgraph_node_set) New type. Also declare vector functions.
2839 (struct cgraph_node_set_element_def): New type.
2840 (cgraph_node_set_element): Ditto.
2841 (cgraph_node_set_iterator): New iterator type.
2842 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
2843 cgraph_node_set_remove, dump_cgraph_node_set,
2844 debug_cgraph_node_set): New prototypes.
2845 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
2846 cgraph_node_set_size): New inlines.
2847 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
2848 including cgraph.h.
2849 (struct ipa_opt_pass): Add struct cgraph_node_set_def
2850 argument to function 'write_summary'.
2851 * ipa.c: Include ggc.h.
2852 (hash_cgraph_node_set_element,
2853 eq_cgraph_node_set_element, cgraph_node_set_new,
2854 cgraph_node_set_add, cgraph_node_set_remove,
2855 cgraph_node_set_find, dump_cgraph_node_set,
2856 debug_cgraph_node_set): New functions.
2857 * Makefile.in (ipa.o): Add dependency on GGC_H.
2858
c4551b28
IR
28592009-04-20 Ira Rosen <irar@il.ibm.com>
2860
2861 PR tree-optimization/39675
2ba9daa7 2862 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
2863 check of the return code of vect_schedule_slp. Check that
2864 stmt_vec_info still exists for the statement, before checking its
2865 vectorization type.
c4551b28 2866
21a495fb
MM
28672009-04-20 Michael Matz <matz@suse.de>
2868
2869 * Makefile.in (generated_files): Take out $(simple_generated_c).
2870
8e208874
DK
28712009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
2872
2873 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
2874 (UINTPTR_TYPE): Likewise.
2875
a45e580b
JM
28762009-04-19 Joseph Myers <joseph@codesourcery.com>
2877
2878 PR c/37481
2879 * c-typeck.c (digest_init): Check for initializing an array with a
2880 string literal.
2881
20845d35
JM
28822009-04-19 Joseph Myers <joseph@codesourcery.com>
2883
2884 PR c/19771
2885 * c-semantics.c (pop_stmt_list): Propagate
2886 STATEMENT_LIST_HAS_LABEL to parent statement list.
2887
28143fdd
AN
28882009-04-19 Adam Nemet <anemet@caviumnetworks.com>
2889
2890 * config/mips/mips.h (mips_tune_attr): New macro.
2891 * config/mips/mips.md (cpu): Use it.
2892
da377db9
JM
28932009-04-19 Joseph Myers <joseph@codesourcery.com>
2894
2895 PR c/38243
2896 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
2897 declaring a tag.
2898
3baf459d
DN
28992009-04-19 Diego Novillo <dnovillo@google.com>
2900
2901 * toplev.c (compile_file): Move call to coverage_finish ...
2902 * cgraphunit.c (ipa_passes): ... here.
2903 Call cgraph_process_new_functions.
2904 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
2905 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
2906
b6fa5b01
JH
29072009-04-19 Jan Hubicka <jh@suse.cz>
2908
47f402d1
UB
2909 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
2910 cfun.
b6fa5b01
JH
2911 (dump_cgraph_node): Dump can throw external flag.
2912 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
2913
ca409efd
MLI
29142009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2915
2916 PR c/32061
2917 PR c++/36954
2918 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
2919 * common.opt (Wlogical-op): Move from here...
2920 * c.opt (Wlogical-op): ... to here.
2921 * c-typeck.c (parser_build_binary_op): Update call to
2922 warn_logical_operator.
2923 * c-opts.c (c_common_post_options): Enable warn_logical_op with
2924 extra_warnings.
2925 * c-common.c (warn_logical_op): Update.
2926 * c-common.h (warn_logical_op): Update declaration.
2927
9db4cdd3
EB
29282009-04-19 Eric Botcazou <ebotcazou@adacore.com>
2929
2930 * tree.c (protected_set_expr_location): Fix formatting.
2931
f37acdf9
JM
29322009-04-18 Joseph Myers <joseph@codesourcery.com>
2933
2934 PR c/27676
2935 * c-typeck.c (readonly_warning): new.
2936 (build_unary_op, build_modify_expr): Use readonly_warning for
2937 storing into something readonly but not const-qualified.
2938
2b4b7036
JM
29392009-04-18 Joseph Myers <joseph@codesourcery.com>
2940
2941 PR c/22367
2942 * c-typeck.c (build_unary_op): Check for taking address of
2943 expression of type void.
2944
3ce62965
JM
29452009-04-18 Joseph Myers <joseph@codesourcery.com>
2946
2947 PR c/35210
2948 * c-typeck.c (build_function_call): Check for calling a function
2949 with qualified void return types. Call require_complete_type when
2950 generating a trap.
2951
2505c5ed
JH
29522009-04-18 Jan Hubicka <jh@suse.cz>
2953
2954 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
2955 Set nothrow flag.
2956 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
2957 can_throw_external flag.
2958 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
2959 * ipa-pure-const.c (ignore_edge): New function.
2960 (propagate): Compute order for NOTHROW computation; set NOTHROWs
2961 only over can_throw_external edges.
2962 (local_pure_const): Add nothrow flag.
2963 * ipa-utils.c (searchc): Add ignore_edge callback.
2964 (ipa_utils_reduced_inorder): Add ignore_edge callback.
2965 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
2966 (set_nothrow_function_flags): Update cgraph.
2967 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
2968
2586ba4b
RG
29692009-04-18 Richard Guenther <rguenther@suse.de>
2970
2971 PR middle-end/39804
2972 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
2973 (fold_stmt): ... this and ...
2974 (fold_stmt_inplace): ... this.
2975 (fold_stmt_1): Fold references in calls and asms.
2976 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
2977
1eefab17
KH
29782009-04-18 Kazu Hirata <kazu@codesourcery.com>
2979
2980 * tree-vrp.c (ssa_name_nonzero_p): Remove.
2981 * tree.h: Remove the prototype for ssa_name_nonzero_p.
2982
aa424b01
KH
29832009-04-18 Kazu Hirata <kazu@codesourcery.com>
2984
2985 * tree.c (function_args_count): Remove.
2986 * tree.h: Remove the prototype for function_args_count.
2987
613a896b
KH
29882009-04-18 Kazu Hirata <kazu@codesourcery.com>
2989
2990 * tree-iterator.c (expr_only): Remove.
2991 * tree.h: Remove the prototype for expr_only.
2992
579e694c
KH
29932009-04-18 Kazu Hirata <kazu@codesourcery.com>
2994
2995 * reginfo.c (cannot_change_mode_set_regs): Remove.
2996 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
2997
ee7e3ad3
AS
29982009-04-08 Anatoly Sokolov <aesok@post.ru>
2999
3000 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
3001 whether operands 0 and 1 overlaps.
3002
92ef7fb1
MLI
30032009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3004
3005 PR middle-end/36902
3006 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
3007 pointer. Use warning_at instead of warning.
3008 (search_for_addr_array): Likewise.
3009 (check_array_bounds): Likewise.
3010 (check_all_array_refs): Check that the incoming edge is not in the
3011 list of edges to be removed.
3012 (check_all_array_refs): Avoid the temporal pointer.
3013 (vrp_visit_cond_stmt): Fix typo.
3014 (simplify_switch_using_ranges): Handle the case where the switch
3015 index is an integer constant.
3016
0e097268
AN
30172009-04-18 Adam Nemet <anemet@caviumnetworks.com>
3018
3019 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
3020
c782f1dd
KH
30212009-04-18 Kazu Hirata <kazu@codesourcery.com>
3022
3023 * doc/extend.texi, doc/invoke.texi: Fix typos.
3024
668fb0e8
CC
30252009-04-17 Cary Coutant <ccoutant@google.com>
3026
3027 * tree-flow-inline.h (get_lineno): Fix inverted test.
3028
4d4014c1
DN
30292009-04-17 Diego Novillo <dnovillo@google.com>
3030
3031 * tree-ssa-pre.c (create_expression_by_pieces): Remove
3032 assertion for AVAIL_OUT.
3033
2984e1b6
MF
30342009-04-17 Mike Frysinger <vapier@gentoo.org>
3035
3036 PR target/38627
3037 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
3038 * config/sh/linux-atomic.asm: Likewise.
3039
9994a182
DN
30402009-04-17 Diego Novillo <dnovillo@google.com>
3041
3042 * except.c (debug_eh_tree): New.
3043 (struct eh_region, struct eh_status): Move ...
3044 * except.h: ... here.
3045 (add_type_for_runtime): Declare extern.
3046 (lookup_type_for_runtime): Likewise.
3047 (debug_eh_tree): Declare.
3048 * Makefile.in (GTFILES): List except.h before except.c
3049
07485407
DN
30502009-04-17 Diego Novillo <dnovillo@google.com>
3051
47f402d1 3052 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
3053 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3054 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
3055 (find_vars_r): ... here.
3056 * tree-flow.h (find_referenced_vars_in): Declare.
3057 * tree-ssa-pre.c (create_expression_by_pieces): Assert
3058 that AVAIL_OUT exists for BLOCK.
3059 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
3060 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
3061 (tree-parloops.o): Likewise.
3062
4e53d196
SB
30632009-04-17 Simon Baldwin <simonb@google.com>
3064
3065 * toplev.c (default_tree_printer): Add handling for %E format.
3066
413d3aa8
DN
30672009-04-17 Diego Novillo <dnovillo@google.com>
3068
47f402d1
UB
3069 * tree-pretty-print.c (dump_generic_node): Add break after
3070 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
3071 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
3072 FUNCTION_TYPE together. Call print_struct_decl when printing
3073 structures and TDF_SLIM is not given.
413d3aa8
DN
3074 (print_struct_decl): Fix logic for detecting recursion.
3075
5a691e98
RAE
30762009-04-17 Rafael Avila de Espindola <espindola@google.com>
3077
3078 PR 31567
3079 * gcc.c (create_at_file): New.
3080 (compile_input_file_p): New.
3081 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
3082 * main.c (main): Update call to toplev_main.
3083 * toplev.c (toplev_main): Change signature. Call expandargv.
3084 * toplev.h (toplev_main): Change signature.
3085
9eacf7a6
EB
30862009-04-17 Eric Botcazou <ebotcazou@adacore.com>
3087
3088 * dwarf2out.c (field_byte_offset): Use the type size as the field size
3089 if the latter is not constant.
3090
58298177
DE
30912009-04-17 David Edelsohn <edelsohn@gnu.org>
3092
3093 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
3094
5b4c43d7
EB
30952009-04-17 Eric Botcazou <ebotcazou@adacore.com>
3096
3097 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
3098 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
3099
b51605c4
RG
31002009-04-17 Richard Guenther <rguenther@suse.de>
3101
3102 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3103 Handle component references view-converting an invariant address.
3104
9e3be889
AN
31052009-04-17 Adam Nemet <anemet@caviumnetworks.com>
3106
3107 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
3108 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
3109 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
3110 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
3111 Use @deftypevr rather than @deftypevar.
3112
7c3e9dc3
RG
31132009-04-17 Richard Guenther <rguenther@suse.de>
3114
47f402d1 3115 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
3116 (get_prop_source_stmt): Likewise.
3117 (can_propagate_from): Likewise.
3118
aca600aa
AS
31192009-04-17 Andrew Stubbs <ams@codesourcery.com>
3120
3121 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
3122 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
3123 (--with-multilib-list): Add default value.
3124 * configure: Regenerate.
3125 * Makefile.in (TM_ENDIAN_CONFIG): Define.
3126 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
3127 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
3128 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
3129 Don't add default cpu to multilib list unnecessarily, but do enable
3130 the relevant compiler option..
3131 Add support for --with-multilib-list=<blank> and
3132 --with-multilib-list=!<somelib> to supress unwanted multilibs.
3133 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
3134 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
3135 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
3136 TM_MULTILIB_CONFIG.
3137 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
3138 (MULTILIB_OSDIRNAMES): New variable.
3139 * config/sh/t-1e: Delete file.
3140 * config/sh/t-mlib-sh1: Delete file.
3141 * config/sh/t-mlib-sh2: Delete file.
3142 * config/sh/t-mlib-sh2a: Delete file.
3143 * config/sh/t-mlib-sh2a-nofpu: Delete file.
3144 * config/sh/t-mlib-sh2a-single: Delete file.
3145 * config/sh/t-mlib-sh2a-single-only: Delete file.
3146 * config/sh/t-mlib-sh2e: Delete file.
3147 * config/sh/t-mlib-sh3e: Delete file.
3148 * config/sh/t-mlib-sh4: Delete file.
3149 * config/sh/t-mlib-sh4-nofpu: Delete file.
3150 * config/sh/t-mlib-sh4-single: Delete file.
3151 * config/sh/t-mlib-sh4-single-only: Delete file.
3152 * config/sh/t-mlib-sh4a: Delete file.
3153 * config/sh/t-mlib-sh4a-nofpu: Delete file.
3154 * config/sh/t-mlib-sh4a-single: Delete file.
3155 * config/sh/t-mlib-sh4a-single-only: Delete file.
3156 * config/sh/t-mlib-sh4al: Delete file.
3157 * config/sh/t-mlib-sh5-32media: Delete file.
3158 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
3159 * config/sh/t-mlib-sh5-64media: Delete file.
3160 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
3161 * config/sh/t-mlib-sh5-compact: Delete file.
3162 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
3163 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
3164 * doc/install.texi (Options specification): Add
3165 --with-multilib-list and --with-endian.
3166
cf8aba7f
RAE
31672009-04-17 Rafael Avila de Espindola <espindola@google.com>
3168
3169 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
3170 REVISION_c.
3171 (OBJS-common): Add plugin-version.o.
3172 (plugin-version.o): New.
3173 * gcc-plugin.h (plugin_gcc_version): New.
3174 (plugin_default_version_check): New.
3175 (plugin_init_func, plugin_init): Add version argument.
3176 * plugin-version.c: New.
3177 * plugin.c (str_plugin_gcc_version_name): New.
3178 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
3179 pass it to the init function.
3180 (plugin_default_version_check): New.
3181
61e20b90
RG
31822009-04-17 Richard Guenther <rguenther@suse.de>
3183
3184 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
3185 for decl-vs-decl disambiguation.
3186
90c6fd8a
AK
31872009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
3188
3189 * config/s390/s390.h (s390_tune_attr): New macro definition.
3190 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
3191
9fe9fe04
RG
31922009-04-17 Richard Guenther <rguenther@suse.de>
3193
3194 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
3195 (fold_stmt_r): Likewise.
3196 (maybe_fold_reference): New function.
3197 (fold_gimple_assign): Handle cases fold_stmt_r did.
3198 (fold_stmt): Do not use fold_stmt_r.
3199 (fold_stmt_inplace): Likewise.
3200
7e673273
RG
32012009-04-17 Richard Guenther <rguenther@suse.de>
3202
3203 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
3204 (record_equivalences_from_stmt): Remove useless checks and
3205 simplifications.
3206 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
3207 the type is already suitable.
3208
fabf2749
PB
32092009-04-17 Paolo Bonzini <bonzini@gnu.org>
3210
3211 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
3212
68f7b061
UB
32132009-04-17 Uros Bizjak <ubizjak@gmail.com>
3214
3215 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
3216 (CMPtype): Define as __gcc_CMPtype.
3217
532bfb0a
AJ
32182009-04-17 Aurelien Jarno <aurelien@aurel32.net>
3219
3220 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
3221 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
3222
e3ac77ff
RG
32232009-04-17 Richard Guenther <rguenther@suse.de>
3224
3225 PR tree-optimization/39746
3226 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
3227 special-casing for builtins and static variable use/def.
3228 (call_may_clobber_ref_p_1): Likewise.
3229
7072a650
ILT
32302009-04-16 Ian Lance Taylor <iant@google.com>
3231
3232 * df.h: Include "timevar.h".
3233 (struct df_problem): Change tv_id field to timevar_id_t.
3234 * tree-pass.h: Include "timevar.h".
3235 (struct opt_pass): Change tv_id field to timevar_id_t.
3236 * timevar.h (timevar_id_t): Define TV_NONE.
3237 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
3238 TV_NONE rather than tv_id != 0.
3239 (execute_one_pass): Likewise.
3240 * Makefile.in (DF_H): Add $(TIMEVAR_H).
3241 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
3242 dependencies to $(TREE_PASS_H).
3243 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
3244 to TV_NONE.
3245 (pass_branch_target_load_optimize2): Likewise.
3246 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
3247 (pass_outof_cfg_layout_mode): Likewise.
3248 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
3249 (pass_rebuild_cgraph_edges): Likewise.
3250 (pass_remove_cgraph_callee_edges): Likewise.
3251 * df-core.c (pass_df_initialize_opt): Likewise.
3252 (pass_df_initialize_no_opt): Likewise.
3253 (pass_df_finish): Likewise.
3254 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
3255 * except.c (pass_set_nothrow_function_flags): Likewise.
3256 (pass_convert_to_eh_region_ranges): Likewise.
3257 * final.c (pass_compute_alignments): Likewise.
3258 * function.c (pass_instantiate_virtual_regs): Likewise.
3259 (pass_init_function): Likewise.
3260 (pass_leaf_regs): Likewise.
3261 (pass_match_asm_constraints): Likewise.
3262 * gimple-low.c (pass_lower_cf): Likewise.
3263 (pass_mark_used_blocks): Likewise.
3264 * init-regs.c (pass_initialize_regs): Likewise.
3265 * integrate.c (pass_initial_value_sets): Likewise.
3266 * ira.c (pass_ira): Likewise.
3267 * jump.c (pass_cleanup_barriers): Likewise.
3268 * omp-low.c (pass_expand_omp): Likewise.
3269 (pass_lower_omp): Likewise.
3270 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
3271 * recog.c (pass_split_all_insns): Likewise.
3272 (pass_split_after_reload): Likewise.
3273 (pass_split_before_regstack): Likewise.
3274 (pass_split_before_sched2): Likewise.
3275 (pass_split_for_shorten_branches): Likewise.
3276 * reginfo.c (pass_reginfo_init): Likewise.
3277 (pass_subregs_of_mode_init): Likewise.
3278 (pass_subregs_of_mode_finish): Likewise.
3279 * passes.c (pass_postreload): Likewise.
3280 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3281 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
3282 (pass_warn_function_return): Likewise.
3283 (pass_warn_function_noreturn): Likewise.
3284 * tree-complex.c (pass_lower_complex): Likewise.
3285 (pass_lower_complex_O0): Likewise.
3286 * tree-if-conv.c (pass_if_conversion): Likewise.
3287 * tree-into-ssa.c (pass_build_ssa): Likewise.
3288 * tree-mudflap.c (pass_mudflap_1): Likewise.
3289 (pass_mudflap_2): Likewise.
3290 * tree-nomudflap.c (pass_mudflap_1): Likewise.
3291 (pass_mudflap_2): Likewise.
3292 * tree-nrv.c (pass_return_slot): Likewise.
3293 * tree-object-size.c (pass_object_sizes): Likewise.
3294 * tree-optimize.c (pass_all_optimizations): Likewise.
3295 (pass_early_local_passes): Likewise.
3296 (pass_all_early_optimizations): Likewise.
3297 (pass_cleanup_cfg): Likewise.
3298 (pass_cleanup_cfg_post_optimizing): Likewise.
3299 (pass_free_datastructures): Likewise.
3300 (pass_free_cfg_annotations): Likewise.
3301 (pass_fixup_cfg): Likewise.
3302 (pass_init_datastructures): Likewise.
3303 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
3304 (pass_late_warn_uninitialized): Likewise.
3305 (pass_update_address_taken): Likewise.
3306 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
3307 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
3308 (pass_cse_sincos): Likewise.
3309 (pass_convert_to_rsqrt): Likewise.
3310 * tree-ssa-structalias.c (pass_build_alias): Likewise.
3311 * tree-stdarg.c (pass_stdarg): Likewise.
3312 * tree-tailcall.c (pass_tail_recursion): Likewise.
3313 (pass_tail_calls): Likewise.
3314 * tree-vect-generic.c (pass_lower_vector): Likewise.
3315 (pass_lower_vector_ssa): Likewise.
3316 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
3317
0051ef59
JM
33182009-04-16 Joseph Myers <joseph@codesourcery.com>
3319
3320 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
3321 XLR entry.
3322 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
3323 Handle -march=xlr.
3324 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
3325 logical and signext.
3326
b3f8558a
KK
33272009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
3328
3329 PR target/39767
3330 * config/sh/predicates.md (arith_operand): Check if the operand
3331 of TRUNCATE is a REG.
3332
f57597d9
KH
33332009-04-16 Kazu Hirata <kazu@codesourcery.com>
3334
3335 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
3336 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
3337
b172d063
KH
33382009-04-16 Kazu Hirata <kazu@codesourcery.com>
3339
3340 * tree-iterator.c (tsi_split_statement_list_after,
3341 tsi_split_statement_list_before): Remove.
3342 * tree-iterator.h: Remove the prototypes for
532bfb0a 3343 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 3344
78fe4f1f
KH
33452009-04-16 Kazu Hirata <kazu@codesourcery.com>
3346
3347 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
3348 * tree-ssa-propagate.h: Remove the prototype for
3349 stmt_makes_single_load.
3350
43dd3201
KH
33512009-04-16 Kazu Hirata <kazu@codesourcery.com>
3352
3353 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
3354 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
3355
4252a4aa
KH
33562009-04-16 Kazu Hirata <kazu@codesourcery.com>
3357
3358 * tree-iterator.c (EXPR_LAST_BODY): Remove.
3359
bfb69968
KH
33602009-04-16 Kazu Hirata <kazu@codesourcery.com>
3361
3362 * except.c (eh_region_outer_p): Remove.
3363 * except.h: Remove the prototype for eh_region_outer_p.
3364
c7db7fa5
KH
33652009-04-16 Kazu Hirata <kazu@codesourcery.com>
3366
3367 * function.c (current_function_assembler_name): Remove.
3368 * function.h: Remove the prototype for
3369 current_function_assembler_name.
3370
efc0b2bd
ILT
33712009-04-16 Ian Lance Taylor <iant@google.com>
3372
532bfb0a 3373 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
3374 (add_reg_note): Call alloc_reg_note.
3375 * rtl.h (alloc_reg_note): Declare.
3376 * combine.c (try_combine): Use alloc_reg_note.
3377 (recog_for_combine, move_deaths): Likewise.
3378 (distribute_notes): Use alloc_reg_note and add_reg_note.
3379 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
3380 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
3381 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
3382
6080348f
VM
33832009-04-16 Vladimir Makarov <vmakarov@redhat.com>
3384
3385 PR rtl-optimization/39762
3386 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
3387 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 3388 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 3389
6080348f
VM
3390 * ira-conflicts.c (process_regs_for_copy): Use function
3391 ira_get_register_move_cost instead of global
3392 ira_register_move_cost.
3393
3394 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
3395 color_pass, move_spill_restore, update_curr_costs): Ditto.
3396
3397 * ira-lives.c (process_single_reg_class_operands): Ditto.
3398
3399 * ira-emit.c (emit_move_list): Ditto.
3400
3401 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
3402 (record_reg_classes): Ditto. Use functions
3403 ira_get_register_move_cost and ira_get_may_move_cost instead of
3404 global vars ira_register_move_cost, ira_may_move_out_cost and
3405 ira_may_move_in_cost.
3406 (record_address_regs): Don't call ira_init_register_move_cost.
3407 Use function ira_get_may_move_cost instead of global
3408 ira_may_move_in_cost.
3409 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 3410 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 3411 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 3412
646bea10
RG
34132009-04-16 Richard Guenther <rguenther@suse.de>
3414
3415 * tree-cfg.c (verify_gimple_assign_binary):
3416 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
3417 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
3418 (create_general_new_stmt): Note that this function is broken.
3419
02e819ff
RAE
34202009-04-16 Rafael Avila de Espindola <espindola@google.com>
3421
3422 * common.opt (fhelp): Add Var(help_flag).
3423 * gcc-plugin.h (plugin_info): Add help.
3424 * plugin.c (plugin_name_args): Add help.
3425 (register_plugin_info): Set plugin->help.
3426 (print_help_one_plugin): New.
3427 (print_plugins_help): New.
3428 * plugin.h (print_plugins_help): New.
3429 * toplev.c (toplev_main): Call print_plugins_help if needed.
3430
ccacdf06
RG
34312009-04-16 Richard Guenther <rguenther@suse.de>
3432
3433 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
3434 (gimple_ior_addresses_taken_1): New function.
3435 (gimple_ior_addresses_taken): Likewise.
3436 * gimple.h (struct gimple_statement_with_ops_base): Remove
3437 addresses_taken member.
3438 (gimple_ior_addresses_taken): Declare.
3439 (gimple_addresses_taken, gimple_addresses_taken_ptr,
3440 gimple_set_addresses_taken): Remove.
3441 * ipa-reference.c (mark_address): New function.
3442 (scan_stmt_for_static_refs): Use it for marking addresses taken.
3443 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
3444 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
3445 (gimple_add_to_addresses_taken): Remove.
3446 (get_tmr_operands): Call mark_address_taken.
3447 (get_asm_expr_operands): Likewise.
3448 (get_expr_operands): Likewise.
3449 (build_ssa_operands): Do not clear the addresses_taken bitmap.
3450 (free_stmt_operands): Do not free it.
3451 * tree-ssa.c (delete_tree_ssa): Likewise.
3452 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
3453
346ef3fa
RG
34542009-04-16 Richard Guenther <rguenther@suse.de>
3455
3456 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
3457 (walk_stmt_load_store_ops): Likewise.
3458 * gimple.c (get_base_loadstore): New function.
3459 (walk_stmt_load_store_addr_ops): Likewise.
3460 (walk_stmt_load_store_ops): Likewise.
3461 * ipa-pure-const.c (check_op): Simplify.
3462 (check_load, check_store): New functions.
3463 (check_stmt): Use walk_stmt_load_store_ops.
3464 * ipa-reference.c (mark_load): Adjust signature.
3465 (mark_store): Likewise.
3466 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
3467
44e9f006
RAE
34682009-04-16 Rafael Avila de Espindola <espindola@google.com>
3469
3470 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
3471 (plugin_info): New.
3472 * opts.c (common_handle_option): Don't call print_version.
3473 * plugin.c (plugin_name_args): Add version.
3474 (register_plugin_info): New.
3475 (register_callback): Handle PLUGIN_INFO.
3476 (try_init_one_plugin): New.
3477 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
3478 if failed to init.
3479 (finalize_one_plugin): New.
3480 (finalize_plugins): New.
3481 (print_one_plugin): New.
3482 (print_plugins_versions): New.
3483 * plugin.h (print_plugins_versions): New.
3484 (finalize_plugins): New.
3485 * toplev.c (compile_file): Don't call initialize_plugins.
3486 (print_version): Call print_plugins_versions.
3487 (toplev_main): Call initialize_plugins. Print version if needed.
3488 Call finalize_plugins.
3489
41fd0f9b
RAE
34902009-04-16 Rafael Avila de Espindola <espindola@google.com>
3491
3492 * common.opt (fversion): New.
3493 * gcc.c (print_version): New.
3494 (process_command): Don't print the version. Just set print_version.
3495 (main): Print version. Call subprocesses if print_version and
3496 verbose_flag are set.
3497 * opts.c (common_handle_option): Handle OPT_fversion.
3498
550918ca 34992009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 3500 Ira Rosen <irar@il.ibm.com>
550918ca
RG
3501
3502 PR tree-optimization/39698
3503 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
3504 type of the reduction variable. Only generate the def if
3505 it is needed.
3506
3507 * omp-low.c (expand_omp_for_generic): When converting to a pointer
3508 make sure to first convert to an integer of the same precision.
3509 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
3510 the type of the evolution correctly in computing the new
3511 induction variable base.
3512
54634841
RG
35132009-04-16 Richard Guenther <rguenther@suse.de>
3514
3515 PR middle-end/39625
3516 * tree-cfg.c (make_blocks): Split statements with to-be
3517 abnormal SSA names on the lhs.
3518
b6fc2cdb
PB
35192009-04-16 Paolo Bonzini <bonzini@gnu.org>
3520
3521 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
3522 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
3523 * c-typeck.c (really_start_incremental_init): Likewise.
3524 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
3525 (TARGET_INITIALIZER): Remove it.
3526 * target.h (struct target): Remove vector_opaque_p.
3527 * tree.c (build_opaque_vector_type): New.
3528 * tree.h (TYPE_VECTOR_OPAQUE): New.
3529 (build_opaque_vector_type): Declare.
3530 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
3531 * config/rs6000/rs6000.c (build_opaque_vector_type,
3532 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
3533 (rs6000_init_builtins): Use build_opaque_vector_type for
3534 opaque_V4SI_type_node.
3535
a417cdd9
CM
35362009-04-15 Catherine Moore <clm@codesourcery.com>
3537
532bfb0a
AJ
3538 * debug.h (set_name): Declare.
3539 * dwarf2out.c (dwarf2out_set_name): Declare.
3540 (dwarf2_debug_hooks): Add set_name.
3541 (find_AT_string): New.
3542 (add_AT_string): Call find_AT_string.
3543 (dwarf2out_set_name): New.
3544 * cp/decl.c (grokdeclarator): Call set_name.
3545 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
3546 * debug.c (do_nothing_debug_hooks): Likewise.
3547 * dbxout.c (dbx_debug_hooks): Likewise.
3548 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 3549
60839f5d 35502009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 3551
532bfb0a
AJ
3552 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
3553 reg for single-precision FPU.
3554 * config/rs6000/rs6000.md (movsi_internal1): Only for
3555 !TARGET_SINGLE_FPU.
3556 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
3557 single-precision FP regs.
3558
ada39f0b
RG
35592009-04-15 Richard Guenther <rguenther@suse.de>
3560
3561 * omp-low.c (lower_rec_input_clauses): Build correct address
3562 expressions.
3563 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 3564 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
3565 (generate_memset_zero): Fix types.
3566 * tree-profile.c (prepare_instrumented_value): Correctly
3567 widen a pointer.
3568
6866c6e8
ILT
35692009-04-15 Ian Lance Taylor <iant@google.com>
3570
3571 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
3572 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
3573 for -Wall and for -Wc++-compat.
3574 (c_common_post_options): For C++, set warn_enum_compare if not
3575 already set.
3576 * c-tree.h (struct c_expr): Add field original_type.
3577 (build_external_ref): Update declaration.
3578 * c-parser.c (c_parser_braced_init): Set original_type.
3579 (c_parser_initelt): Likewise.
3580 (c_parser_expr_no_commas): Likewise.
3581 (c_parser_conditional_expression): Likewise.
3582 (c_parser_cast_expression): Likewise.
3583 (c_parser_unary_expression): Likewise. Pull setting of
3584 original_code to top of function.
3585 (c_parser_sizeof_expression): Set original_type.
3586 (c_parser_alignof_expression): Likewise.
3587 (c_parser_postfix_expression): Likewise. Pull setting of
3588 original_code to top of function.
532bfb0a 3589 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
3590 (c_parser_postfix_expression_after_primary): Likewise.
3591 (c_parser_expression): Likewise.
3592 * c-typeck.c (build_external_ref): Add type parameter. Change all
3593 callers.
3594 (c_expr_sizeof_expr): Set original_type field.
3595 (parser_build_unary_op): Likewise.
3596 (parser_build_binary_op): Likewise. Optionally warn about
3597 comparisons of enums of different types.
3598 (digest_init): Set original_type field.
3599 (really_start_incremental_init): Likewise.
3600 (push_init_level, pop_init_level): Likewise.
3601 * doc/invoke.texi (Warning Options): -Wenum-compare now
3602 supported in C.
3603
f116fecf
RG
36042009-04-15 Richard Guenther <rguenther@suse.de>
3605
3606 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
3607 out a necessary conversion.
3608 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
3609 names we didn't value number.
3610 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
3611
25e20805
RG
36122009-04-15 Richard Guenther <rguenther@suse.de>
3613
3614 PR tree-optimization/39764
3615 * tree-ssa-ccp.c (get_value): Canonicalize value with
3616 canonicalize_float_value.
3617
90cc3676
JH
36182009-04-15 Jan Hubicka <jh@suse.cz>
3619
3620 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
3621 Wrong version of patch.
3622
6d14c006
JH
36232009-04-15 Jan Hubicka <jh@suse.cz>
3624
3625 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
3626
5afaa917
NS
36272009-04-15 Nathan Sidwell <nathan@codesourcery.com>
3628
3629 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
3630 our distinct integral and vector types.
3631
3b482fca
RAE
36322009-04-15 Rafael Avila de Espindola <espindola@google.com>
3633
3634 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
3635 * init.c (build_vtbl_address): Remove call to assemble_external.
3636
6cd1d2e2
DJ
36372009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3638
3639 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
3640 output for other floating point modes.
3641
dab71827
DN
36422009-04-14 Diego Novillo <dnovillo@google.com>
3643
3644 * diagnostic.c (diagnostic_report_diagnostic): Do not
3645 warn about loaded plugins for DK_ERROR and DK_WARNING.
3646 * c-decl.c (declspecs_add_type): Move call to
3647 invoke_plugin_callbacks ...
3648 * c-parser.c (c_parser_declspecs): ... here.
3649 * plugin.c (dump_active_plugins): Tidy output.
3650
68a607d8
DN
36512009-04-14 Diego Novillo <dnovillo@google.com>
3652 Le-Chun Wu <lcwu@google.com>
3653
3654 * configure.ac: Add --enable-plugin support.
3655 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
3656 * Makefile.in (PLUGIN_H): Define.
3657 Export ENABLE_PLUGIN and GMPINC to site.exp.
3658 Add PLUGINLIBS to link command.
3659 Add/modify dependencies for plugin.o and files including plugin.h.
3660 (plugin.o): New.
3661 * config.in: Regenerate.
2ba9daa7 3662
68a607d8
DN
3663 * opts.c (common_handle_option): Handle OPT_fplugin_ and
3664 OPT_fplugin_arg_.
3665
36662009-04-14 Le-Chun Wu <lcwu@google.com>
3667
3668 * tree-pass.h (register_one_dump_file): Add a prototype for
3669 register_one_dump_file.
3670 * toplev.c (compile_file): Call initialize_plugins.
3671 (do_compile): Call invoke_plugin_callbacks.
3672 (toplev_main): Call invoke_plugin_callbacks.
3673 * common.opt: Add -fplugin= and -fplugin-arg-.
3674 * gcc-plugin.h: New public header file for plugins to include.
3675 * plugin.c: New source file.
3676 * plugin.h: New internal header file.
3677 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 3678
68a607d8
DN
3679 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
3680
36812009-04-14 Diego Novillo <dnovillo@google.com>
3682
3683 * doc/plugins.texi: New.
3684 * doc/gccint.texi: Add reference to Plugins chapter.
3685 * doc/invoke.texi: Document -fplugin and -fplugin-arg
3686 * diagnostic.c (diagnostic_report_diagnostic): Warn about
3687 loaded plugins, if any.
3688 * timevar.def (TV_PLUGIN_INIT): Define.
3689 (TV_PLUGIN_RUN): Define.
3690 * plugin.c: Include timevar.h
3691 (plugins_active_p): New.
3692 (dump_active_plugins): New.
3693 (debug_active_plugins): New.
3694
50617257
JM
36952009-04-14 Joseph Myers <joseph@codesourcery.com>
3696
3697 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
3698 library paths.
3699 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
3700
b32f6fff
KH
37012009-04-14 Kazu Hirata <kazu@codesourcery.com>
3702
3703 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
3704 the same as a minus without a shift.
3705
85d04fa2
NC
37062009-04-14 Nick Clifton <nickc@redhat.com>
3707
3708 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
3709 comparisons with small integers will always produce a short
3710 branch.
3711
e495a0c8
RAE
37122009-04-14 Rafael Avila de Espindola <espindola@google.com>
3713
3714 Merge:
e495a0c8
RAE
3715 2008-12-19 Diego Novillo <dnovillo@google.com>
3716
532bfb0a 3717 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 3718
ad41bd84 37192009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
3720
3721 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
3722 verification.
3723 (verify_gimple_assign_binary): Likewise. Handle shifts and
3724 rotates correctly.
3725 (verify_gimple_phi): Print the mismatched argument position.
3726 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3727 Fix types.
3728 (vect_update_init_of_dr): Likewise.
3729 * matrix-reorg.c (transform_access_sites): Do what the
3730 comment suggests.
3731 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
3732
60839f5d 37332009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
3734
3735 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
3736 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
3737 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 3738 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
3739 remove duplicate config
3740
b0e2d008
DR
37412009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3742
3743 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
3744 file_name:line_number type locator of the call site.
2ba9daa7 3745
1244a8b7
VM
37462009-04-13 Vladimir Makarov <vmakarov@redhat.com>
3747
3748 * genautomata.c: Put blank after comma.
3749 (automaton_decls): New.
3750 (struct unit_usage): Add comments to member next.
3751 (store_alt_unit_usage): Keep the list ordered.
3752 (unit_present_on_list_p, equal_alternatives_p): New.
3753 (check_regexp_units_distribution): Check units distribution
3754 correctness correctly.
3755 (main): Don't write automata if error is found. Return correct
3756 exit code.
2ba9daa7 3757
1244a8b7
VM
3758 * config/m68k/cf.md (cfv4_ds): Remove.
3759 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
3760 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
3761
3762 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
3763 power4-load-ext, power4-store, power4-store-update,
3764 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
3765 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
3766 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
3767 power4-sqrt, power4-isync): Modify reservation to make correct
3768 unit distribution to automata.
3769
3770 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
3771 power5-store-update, power5-two, power5-three, power5-lmul,
3772 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 3773
f7dd1864
AN
37742009-04-13 Adam Nemet <anemet@caviumnetworks.com>
3775
3776 * except.c (pass_set_nothrow_function_flags): Set name and add
3777 TODO_dump_func.
3778 (set_nothrow_function_flags): Mention in the dump file when
3779 changing a function to nothrow.
3780
59a1171f
OS
37812009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3782
3783 PR/39066
3784 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
3785 instead of unsigned long.
3786
934c2060
RR
37872009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3788
f7dd1864
AN
3789 * config/arm/arm.c (return_used_this_function): Remove.
3790 (arm_output_function_prologue): Remove use of
934c2060 3791 return_used_this_function.
f7dd1864 3792 (output_return_instruction): Replace use of
934c2060
RR
3793 return_used_this_function
3794 by cfun->machine->return_used_this_function.
f7dd1864
AN
3795 (arm_output_epilogue): Likewise.
3796 (arm_output_function_epilogue): Likewise.
3797 (thumb_unexpanded_epilogue): Likewise.
3798 * config/arm/arm.h (struct machine_function):
934c2060 3799 New member return_used_this_function.
f7dd1864 3800
ae5cc016
MM
38012009-04-12 Mark Mitchell <mark@codesourcery.com>
3802
3803 * doc/install.texi: Correct description of default directory for
3804 --with-gxx-include-dir.
3805
a0ce68df 38062009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
3807
3808 * fold-const.c (build_range_check): Properly deal with enumeral and
3809 boolean base types.
3810
3906a4a1
SB
38112009-04-12 Steven Bosscher <steven@gcc.gnu.org>
3812
3813 * doc/invoke.texi (max_gcse_passes): Remove documentation.
3814 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
3815 * params.h (MAX_GCSE_PASSES): Remove.
3816 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
3817 in sequence. Remove ability to run multiple passes.
3818 (bypass_jumps): Report run as third CPROP pass.
3819
efaadb93
AN
38202009-04-12 Adam Nemet <anemet@caviumnetworks.com>
3821
3822 PR middle-end/39651
3823 * except.c (can_throw_external): Look at each insn in a SEQUENCE
3824 when deciding whether the whole SEQUENCE can throw.
3825
4c48007b
UB
38262009-04-12 Uros Bizjak <ubizjak@gmail.com>
3827
3828 PR target/39740
3829 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
3830 offseted label references.
3831
b4104018
JH
38322009-04-11 Jan Hubicka <jh@suse.cz>
3833
3834 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
3835
32848948
RG
38362009-04-11 Richard Guenther <rguenther@suse.de>
3837
3838 PR middle-end/39732
3839 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
3840 return variables as TREE_ADDRESSABLE.
3841
8810712e
RG
38422009-04-11 Richard Guenther <rguenther@suse.de>
3843
3844 PR tree-optimization/39713
3845 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
3846 reference trees have SSA_NAME operands.
3847
fa78c0c1
RG
38482009-04-11 Richard Guenther <rguenther@suse.de>
3849
3850 PR c/39712
3851 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
3852 address expressions.
3853
4d722130
DK
38542009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
3855
3856 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
3857 match changes in Cygwin 1.7
3858 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
3859 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
3860
567a90f5
PB
38612009-04-10 Paolo Bonzini <bonzini@gnu.org>
3862
3863 PR tree-optimization/39701
3864 * doc/invoke.texi (Optimization Options): Document change in
3865 meaning and initialization of -fdelete-null-pointer-checks.
3866
1ad2f450
L
38672009-04-10 H.J. Lu <hongjiu.lu@intel.com>
3868
3869 PR middle-end/39701
3870 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
3871
3872 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
3873 here.
3874
3875 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
3876
1afc5373
CF
38772009-04-10 Chao-ying Fu <fu@mips.com>
3878
3879 * doc/tm.texi (Instruction Output): Document
3880 TARGET_ASM_FINAL_POSTSCAN_INSN.
3881 * target.h (final_postscan_insn): New field in asm_out.
3882 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3883 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
3884 * final.c (final_scan_insn): Call
3885 targetm.asm_out.final_postscan_insn after outputting
3886 an asm macro and a normal instruction.
3887
3888 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
3889 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
3890 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
3891 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
3892 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3893
4d35e75c
PB
38942009-04-10 Paolo Bonzini <bonzini@gnu.org>
3895
3896 PR middle-end/39701
1ad2f450
L
3897 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
3898 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 3899
62c49b83
L
39002009-04-10 H.J. Lu <hongjiu.lu@intel.com>
3901
3902 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
3903
80558628
L
39042009-04-09 H.J. Lu <hongjiu.lu@intel.com>
3905
3906 PR target/39678
3907 * config/i386/i386.c (classify_argument): Handle SCmode with
3908 (bit_offset % 64) != 0.
3909
8c70d28b
SL
39102009-04-09 Sandra Loosemore <sandra@codesourcery.com>
3911
3912 * doc/invoke.texi (Optimize Options): Add cross-reference to
3913 -Q --help=optimizers examples.
3914
e1ff19bf
BE
39152009-04-10 Ben Elliston <bje@au.ibm.com>
3916
3917 PR target/36800
3918 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
3919 regalign for the reg == fpr and TDmode case.
3920
52daca75
DA
39212009-04-09 David Ayers <ayers@fsfe.org>
3922
3923 PR objc/29200
3924 * objc/objc-act.c (warn_with_method): Remove helper function.
3925 (check_duplicates): Call warning and inform directly.
3926 (really_start_method): Likewise.
3927
b45f0e58
PB
39282009-04-09 Paolo Bonzini <bonzini@gnu.org>
3929
3930 * expmed.c (expand_divmod): Always use a comparison for a division
3931 by a large unsigned integer.
3932
1ad2f450
L
3933 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
3934 for things others than variables or functions as nonzero.
b45f0e58 3935
748086b7
JJ
39362009-04-09 Nick Clifton <nickc@redhat.com>
3937
3938 * unwind-compat.c: Change copyright header to refer to version
3939 3 of the GNU General Public License with version 3.1 of the
3940 GCC Runtime Library Exception and to point readers at the
7a715bba 3941 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
3942 * config/alpha/crtfastmath.c: Likewise.
3943 * config/alpha/linux-unwind.h: Likewise.
3944 * config/alpha/qrnnd.asm: Likewise.
3945 * config/alpha/vms-crt0-64.c: Likewise.
3946 * config/alpha/vms-crt0.c: Likewise.
3947 * config/alpha/vms-dwarf2.asm: Likewise.
3948 * config/alpha/vms-dwarf2eh.asm: Likewise.
3949 * config/alpha/vms-psxcrt0-64.c: Likewise.
3950 * config/alpha/vms-psxcrt0.c: Likewise.
3951 * config/alpha/vms_tramp.asm: Likewise.
3952 * config/arc/initfini.c: Likewise.
3953 * config/arc/lib1funcs.asm: Likewise.
3954 * config/arm/bpabi-v6m.S: Likewise.
3955 * config/arm/bpabi.S: Likewise.
3956 * config/arm/bpabi.c: Likewise.
3957 * config/arm/crti.asm: Likewise.
3958 * config/arm/crtn.asm: Likewise.
3959 * config/arm/ieee754-df.S: Likewise.
3960 * config/arm/ieee754-sf.S: Likewise.
3961 * config/arm/lib1funcs.asm: Likewise.
3962 * config/arm/libunwind.S: Likewise.
3963 * config/arm/linux-atomic.c: Likewise.
3964 * config/arm/mmintrin.h: Likewise.
3965 * config/arm/pr-support.c: Likewise.
3966 * config/arm/unaligned-funcs.c: Likewise.
3967 * config/arm/unwind-arm.c: Likewise.
3968 * config/arm/unwind-arm.h: Likewise.
3969 * config/avr/libgcc.S: Likewise.
3970 * config/bfin/crti.s: Likewise.
3971 * config/bfin/crtlibid.s: Likewise.
3972 * config/bfin/crtn.s: Likewise.
3973 * config/bfin/lib1funcs.asm: Likewise.
3974 * config/bfin/linux-unwind.h: Likewise.
3975 * config/cris/arit.c: Likewise.
3976 * config/cris/cris_abi_symbol.c: Likewise.
3977 * config/darwin-64.c: Likewise.
3978 * config/darwin-crt2.c: Likewise.
3979 * config/darwin-crt3.c: Likewise.
3980 * config/darwin.h: Likewise.
3981 * config/dbxelf.h: Likewise.
3982 * config/dfp-bit.c: Likewise.
3983 * config/dfp-bit.h: Likewise.
3984 * config/elfos.h: Likewise.
3985 * config/fixed-bit.c: Likewise.
3986 * config/fixed-bit.h: Likewise.
3987 * config/fp-bit.c: Likewise.
3988 * config/fp-bit.h: Likewise.
3989 * config/fr30/crti.asm: Likewise.
3990 * config/fr30/crtn.asm: Likewise.
3991 * config/fr30/lib1funcs.asm: Likewise.
3992 * config/freebsd-spec.h: Likewise.
3993 * config/frv/cmovd.c: Likewise.
3994 * config/frv/cmovh.c: Likewise.
3995 * config/frv/cmovw.c: Likewise.
3996 * config/frv/frvbegin.c: Likewise.
3997 * config/frv/frvend.c: Likewise.
3998 * config/frv/lib1funcs.asm: Likewise.
3999 * config/glibc-stdint.h: Likewise.
4000 * config/h8300/clzhi2.c: Likewise.
4001 * config/h8300/crti.asm: Likewise.
4002 * config/h8300/crtn.asm: Likewise.
4003 * config/h8300/ctzhi2.c: Likewise.
4004 * config/h8300/fixunssfsi.c: Likewise.
4005 * config/h8300/lib1funcs.asm: Likewise.
4006 * config/h8300/parityhi2.c: Likewise.
4007 * config/h8300/popcounthi2.c: Likewise.
4008 * config/i386/ammintrin.h: Likewise.
4009 * config/i386/att.h: Likewise.
4010 * config/i386/avxintrin.h: Likewise.
4011 * config/i386/biarch64.h: Likewise.
4012 * config/i386/bmmintrin.h: Likewise.
4013 * config/i386/cpuid.h: Likewise.
4014 * config/i386/cross-stdarg.h: Likewise.
4015 * config/i386/crtfastmath.c: Likewise.
4016 * config/i386/crtprec.c: Likewise.
4017 * config/i386/cygming-crtbegin.c: Likewise.
4018 * config/i386/cygming-crtend.c: Likewise.
4019 * config/i386/cygwin.asm: Likewise.
4020 * config/i386/emmintrin.h: Likewise.
4021 * config/i386/gmm_malloc.h: Likewise.
4022 * config/i386/gthr-win32.c: Likewise.
4023 * config/i386/i386.h: Likewise.
4024 * config/i386/immintrin.h: Likewise.
4025 * config/i386/linux-unwind.h: Likewise.
4026 * config/i386/linux64.h: Likewise.
4027 * config/i386/mm3dnow.h: Likewise.
4028 * config/i386/mmintrin-common.h: Likewise.
4029 * config/i386/mmintrin.h: Likewise.
4030 * config/i386/nmmintrin.h: Likewise.
4031 * config/i386/pmm_malloc.h: Likewise.
4032 * config/i386/pmmintrin.h: Likewise.
4033 * config/i386/smmintrin.h: Likewise.
4034 * config/i386/sol2-c1.asm: Likewise.
4035 * config/i386/sol2-ci.asm: Likewise.
4036 * config/i386/sol2-cn.asm: Likewise.
4037 * config/i386/sol2-gc1.asm: Likewise.
4038 * config/i386/tmmintrin.h: Likewise.
4039 * config/i386/unix.h: Likewise.
4040 * config/i386/w32-unwind.h: Likewise.
4041 * config/i386/wmmintrin.h: Likewise.
4042 * config/i386/x86-64.h: Likewise.
4043 * config/i386/x86intrin.h: Likewise.
4044 * config/i386/xmmintrin.h: Likewise.
4045 * config/ia64/crtbegin.asm: Likewise.
4046 * config/ia64/crtend.asm: Likewise.
4047 * config/ia64/crtfastmath.c: Likewise.
4048 * config/ia64/crti.asm: Likewise.
4049 * config/ia64/crtn.asm: Likewise.
4050 * config/ia64/fde-glibc.c: Likewise.
4051 * config/ia64/lib1funcs.asm: Likewise.
4052 * config/ia64/linux-unwind.h: Likewise.
4053 * config/ia64/quadlib.c: Likewise.
4054 * config/ia64/unwind-ia64.c: Likewise.
4055 * config/linux.h: Likewise.
4056 * config/m32c/m32c-lib1.S: Likewise.
4057 * config/m32c/m32c-lib2-trapv.c: Likewise.
4058 * config/m32c/m32c-lib2.c: Likewise.
4059 * config/m32r/initfini.c: Likewise.
4060 * config/m68hc11/larith.asm: Likewise.
4061 * config/m68hc11/m68hc11-crt0.S: Likewise.
4062 * config/m68k/cf.md: Likewise.
4063 * config/m68k/crti.s: Likewise.
4064 * config/m68k/crtn.s: Likewise.
4065 * config/m68k/lb1sf68.asm: Likewise.
4066 * config/m68k/linux-unwind.h: Likewise.
4067 * config/mcore/crti.asm: Likewise.
4068 * config/mcore/crtn.asm: Likewise.
4069 * config/mcore/lib1.asm: Likewise.
4070 * config/mips/linux-unwind.h: Likewise.
4071 * config/mips/loongson.h: Likewise.
4072 * config/mips/mips16.S: Likewise.
4073 * config/mmix/crti.asm: Likewise.
4074 * config/mmix/crtn.asm: Likewise.
4075 * config/pa/fptr.c: Likewise.
4076 * config/pa/hpux-unwind.h: Likewise.
4077 * config/pa/lib2funcs.asm: Likewise.
4078 * config/pa/linux-atomic.c: Likewise.
4079 * config/pa/linux-unwind.h: Likewise.
4080 * config/pa/milli64.S: Likewise.
4081 * config/pa/quadlib.c: Likewise.
4082 * config/pa/stublib.c: Likewise.
4083 * config/picochip/libgccExtras/adddi3.asm: Likewise.
4084 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
4085 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
4086 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
4087 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
4088 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
4089 * config/picochip/libgccExtras/divmod15.asm: Likewise.
4090 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
4091 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
4092 * config/picochip/libgccExtras/longjmp.asm: Likewise.
4093 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
4094 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
4095 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
4096 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
4097 * config/picochip/libgccExtras/setjmp.asm: Likewise.
4098 * config/picochip/libgccExtras/subdi3.asm: Likewise.
4099 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
4100 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
4101 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
4102 * config/rs6000/750cl.h: Likewise.
4103 * config/rs6000/altivec.h: Likewise.
4104 * config/rs6000/biarch64.h: Likewise.
4105 * config/rs6000/crtresfpr.asm: Likewise.
4106 * config/rs6000/crtresgpr.asm: Likewise.
4107 * config/rs6000/crtresxfpr.asm: Likewise.
4108 * config/rs6000/crtresxgpr.asm: Likewise.
4109 * config/rs6000/crtsavfpr.asm: Likewise.
4110 * config/rs6000/crtsavgpr.asm: Likewise.
4111 * config/rs6000/darwin-asm.h: Likewise.
4112 * config/rs6000/darwin-fallback.c: Likewise.
4113 * config/rs6000/darwin-fpsave.asm: Likewise.
4114 * config/rs6000/darwin-ldouble.c: Likewise.
4115 * config/rs6000/darwin-tramp.asm: Likewise.
4116 * config/rs6000/darwin-unwind.h: Likewise.
4117 * config/rs6000/darwin-vecsave.asm: Likewise.
4118 * config/rs6000/darwin-world.asm: Likewise.
4119 * config/rs6000/e500crtres32gpr.asm: Likewise.
4120 * config/rs6000/e500crtres64gpr.asm: Likewise.
4121 * config/rs6000/e500crtres64gprctr.asm: Likewise.
4122 * config/rs6000/e500crtrest32gpr.asm: Likewise.
4123 * config/rs6000/e500crtrest64gpr.asm: Likewise.
4124 * config/rs6000/e500crtresx32gpr.asm: Likewise.
4125 * config/rs6000/e500crtresx64gpr.asm: Likewise.
4126 * config/rs6000/e500crtsav32gpr.asm: Likewise.
4127 * config/rs6000/e500crtsav64gpr.asm: Likewise.
4128 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4129 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
4130 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
4131 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
4132 * config/rs6000/eabi-ci.asm: Likewise.
4133 * config/rs6000/eabi-cn.asm: Likewise.
4134 * config/rs6000/eabi.asm: Likewise.
4135 * config/rs6000/linux-unwind.h: Likewise.
4136 * config/rs6000/linux64.h: Likewise.
4137 * config/rs6000/paired.h: Likewise.
4138 * config/rs6000/paired.md: Likewise.
4139 * config/rs6000/ppc64-fp.c: Likewise.
4140 * config/rs6000/ppu_intrinsics.h: Likewise.
4141 * config/rs6000/rs6000.h: Likewise.
4142 * config/rs6000/si2vmx.h: Likewise.
4143 * config/rs6000/sol-ci.asm: Likewise.
4144 * config/rs6000/sol-cn.asm: Likewise.
4145 * config/rs6000/spe.h: Likewise.
4146 * config/rs6000/spu2vmx.h: Likewise.
4147 * config/rs6000/sysv4.h: Likewise.
4148 * config/rs6000/tramp.asm: Likewise.
4149 * config/rs6000/vec_types.h: Likewise.
4150 * config/s390/linux-unwind.h: Likewise.
4151 * config/s390/tpf-unwind.h: Likewise.
4152 * config/score/crti.asm: Likewise.
4153 * config/score/crtn.asm: Likewise.
4154 * config/sh/crt1.asm: Likewise.
4155 * config/sh/crti.asm: Likewise.
4156 * config/sh/crtn.asm: Likewise.
4157 * config/sh/divtab-sh4-300.c: Likewise.
4158 * config/sh/divtab-sh4.c: Likewise.
4159 * config/sh/divtab.c: Likewise.
4160 * config/sh/lib1funcs-4-300.asm: Likewise.
4161 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
4162 * config/sh/lib1funcs.asm: Likewise.
4163 * config/sh/lib1funcs.h: Likewise.
4164 * config/sh/linux-atomic.asm: Likewise.
4165 * config/sh/linux-unwind.h: Likewise.
4166 * config/sh/shmedia.h: Likewise.
4167 * config/sh/sshmedia.h: Likewise.
4168 * config/sh/ushmedia.h: Likewise.
4169 * config/sparc/crtfastmath.c: Likewise.
4170 * config/sparc/linux-unwind.h: Likewise.
4171 * config/sparc/sol2-c1.asm: Likewise.
4172 * config/sparc/sol2-ci.asm: Likewise.
4173 * config/sparc/sol2-cn.asm: Likewise.
4174 * config/spu/divmodti4.c: Likewise.
4175 * config/spu/divv2df3.c: Likewise.
4176 * config/spu/float_disf.c: Likewise.
4177 * config/spu/float_unsdidf.c: Likewise.
4178 * config/spu/float_unsdisf.c: Likewise.
4179 * config/spu/float_unssidf.c: Likewise.
4180 * config/spu/mfc_multi_tag_release.c: Likewise.
4181 * config/spu/mfc_multi_tag_reserve.c: Likewise.
4182 * config/spu/mfc_tag_release.c: Likewise.
4183 * config/spu/mfc_tag_reserve.c: Likewise.
4184 * config/spu/mfc_tag_table.c: Likewise.
4185 * config/spu/multi3.c: Likewise.
4186 * config/spu/spu_internals.h: Likewise.
4187 * config/spu/spu_intrinsics.h: Likewise.
4188 * config/spu/spu_mfcio.h: Likewise.
4189 * config/spu/vec_types.h: Likewise.
4190 * config/spu/vmx2spu.h: Likewise.
4191 * config/stormy16/stormy16-lib2.c: Likewise.
4192 * config/svr4.h: Likewise.
4193 * config/sync.c: Likewise.
4194 * config/v850/lib1funcs.asm: Likewise.
4195 * config/vxlib-tls.c: Likewise.
4196 * config/vxlib.c: Likewise.
4197 * config/vxworks-dummy.h: Likewise.
4198 * config/xtensa/crti.asm: Likewise.
4199 * config/xtensa/crtn.asm: Likewise.
4200 * config/xtensa/ieee754-df.S: Likewise.
4201 * config/xtensa/ieee754-sf.S: Likewise.
4202 * config/xtensa/lib1funcs.asm: Likewise.
4203 * config/xtensa/lib2funcs.S: Likewise.
4204 * config/xtensa/linux-unwind.h: Likewise.
4205 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4206 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
4207 * coretypes.h: Likewise.
4208 * crtstuff.c: Likewise.
4209 * defaults.h: Likewise.
4210 * dwarf2.h: Likewise.
4211 * emutls.c: Likewise.
4212 * gbl-ctors.h: Likewise.
4213 * gcov-io.h: Likewise.
4214 * ginclude/float.h: Likewise.
4215 * ginclude/iso646.h: Likewise.
4216 * ginclude/stdarg.h: Likewise.
4217 * ginclude/stdbool.h: Likewise.
4218 * ginclude/stddef.h: Likewise.
4219 * ginclude/stdfix.h: Likewise.
4220 * ginclude/stdint-gcc.h: Likewise.
4221 * ginclude/tgmath.h: Likewise.
4222 * gthr-aix.h: Likewise.
4223 * gthr-dce.h: Likewise.
4224 * gthr-gnat.c: Likewise.
4225 * gthr-gnat.h: Likewise.
4226 * gthr-lynx.h: Likewise.
4227 * gthr-mipssde.h: Likewise.
4228 * gthr-nks.h: Likewise.
4229 * gthr-posix.c: Likewise.
4230 * gthr-posix.h: Likewise.
4231 * gthr-posix95.h: Likewise.
4232 * gthr-rtems.h: Likewise.
4233 * gthr-single.h: Likewise.
4234 * gthr-solaris.h: Likewise.
4235 * gthr-tpf.h: Likewise.
4236 * gthr-vxworks.h: Likewise.
4237 * gthr-win32.h: Likewise.
4238 * gthr.h: Likewise.
4239 * libgcc2.c: Likewise.
4240 * libgcc2.h: Likewise.
4241 * libgcov.c: Likewise.
4242 * tsystem.h: Likewise.
4243 * typeclass.h: Likewise.
4244 * unwind-c.c: Likewise.
4245 * unwind-compat.h: Likewise.
4246 * unwind-dw2-fde-compat.c: Likewise.
4247 * unwind-dw2-fde-darwin.c: Likewise.
4248 * unwind-dw2-fde-glibc.c: Likewise.
4249 * unwind-dw2-fde.c: Likewise.
4250 * unwind-dw2-fde.h: Likewise.
4251 * unwind-dw2.c: Likewise.
4252 * unwind-dw2.h: Likewise.
4253 * unwind-generic.h: Likewise.
4254 * unwind-pe.h: Likewise.
4255 * unwind-sjlj.c: Likewise.
4256 * unwind.inc: Likewise.
4257 * config/arm/neon-gen.ml: Change generated copyright header to
4258 refer to version 3 of the GNU General Public License with
4259 version 3.1 of the GCC Runtime Library Exception and to point
4260 readers at the COPYING3 and COPYING3.RUNTIME files and the
4261 FSF's license web page.
4262 * config/arm/arm_neon.h: Regenerate.
4263
42642009-04-09 Jakub Jelinek <jakub@redhat.com>
4265
4266 * config/cris/cris.md: Change copyright header to refer to version
4267 3 of the GNU General Public License.
4268 * doc/install.texi2html: Change copyright header to refer to version
4269 3 of the GNU General Public License and to point readers at the
4270 COPYING3 file and the FSF's license web page.
4271 * config/vax/linux.h: Likewise.
4272
4a77c72b
PB
42732009-04-09 Paolo Bonzini <bonzini@gnu.org>
4274
1ad2f450
L
4275 * config/i386/i386.md (cmpcc): New.
4276 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
4277 (sync_compare_and_swap_cc*): Delete.
4278
4279 * config/s390/s390.c (s390_compare_emitted): Remove.
4280 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
4281 s390_compare_emitted used to be handled. Assert that modes match.
4282 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
4283 refer to sync_compare_and_swap_ccsi.
4284 * config/s390/s390.h (s390_compare_emitted): Remove.
4285 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
4286 instead of s390_compare_emitted.
4287 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
4288 instead of s390_compare_emitted.
4289 * config/s390/s390.md (cmpcc): New.
4290 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
4291 CC_REGNUM, do not pretend it's set.
4292 (sync_compare_and_swap_cc*): Delete.
4293 * config/s390/predicates.md (cc_reg_operand): New.
4294
4295 * expr.c (sync_compare_and_swap_cc): Delete.
4296 * optabs.h (sync_compare_and_swap_cc): Delete.
4297 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
4298 is being used with can_compare_p.
4299 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
4300 (find_cc_set): New.
4301 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
4302 look for a MODE_CC set instead. Use emit_store_flag.
4303 (expand_compare_and_swap_loop): Likewise, with some additional
4304 complication to avoid a force_reg when useless. Use
4305 emit_cmp_and_jump_insns.
4306 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
4307 * doc/md.texi (sync_compare_and_swap_cc): Merge with
4308 sync_compare_and_swap documentation.
4a77c72b 4309
0c0efb33
JH
43102009-04-09 Jan Hubicka <jh@suse.cz>
4311
4312 * except.c (find_prev_try): Break out from ....
4313 (duplicate_eh_regions): ... here; properly update prev_try pointers
4314 when duplication part of tree.
4315 (dump_eh_tree): Improve dumping.
4316 (verify_eh_region): New.
4317 (verify_eh_tree): Use it.
4318
22a65a54
RG
43192009-04-06 Richard Guenther <rguenther@suse.de>
4320
4321 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
4322 &ARRAY addresses by adjusting their types and prepending
4323 a conversion.
4324 * tree-cfg.c (verify_gimple_assign_single): Verify that
4325 addresses are correct.
4326
f76968e6
RG
43272009-04-09 Richard Guenther <rguenther@suse.de>
4328
4329 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
4330 indices into an array reference if possible.
4331 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4332 Fold POINTER_PLUS_EXPR statements with invariant address.
4333
c90c5fb5
AM
43342009-04-09 Alan Modra <amodra@bigpond.net.au>
4335
4336 PR target/39634
4337 * config.gcc (powerpc64-*-linux*): Always build biarch.
4338
17cede2e
JM
43392009-04-09 Joseph Myers <joseph@codesourcery.com>
4340
4341 PR c/39613
4342 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
4343 it and pedwarn if this results in an INTEGER_CST.
4344
a3337ea2
KG
43452009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4346
4347 * doc/install.texi: Update minimum GMP version. Remove obsolete
4348 text in MPFR section.
4349
ce9ba79b
JJ
43502009-04-08 Jakub Jelinek <jakub@redhat.com>
4351
4352 * dwarf2out.c (class_scope_p): New static inline.
4353 (class_or_namespace_scope_p): Use it.
4354 (gen_variable_die): Use DW_TAG_member tag for static data member
4355 declarations instead of DW_TAG_variable.
4356
4f0ae266
JJ
4357 PR middle-end/39573
4358 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
4359 variables.
4360
d27f0ddc
RG
43612009-04-08 Richard Guenther <rguenther@suse.de>
4362
4363 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
4364 valueize random data.
4365
557cc596
DE
43662009-04-08 David Edelsohn <edelsohn@gnu.org>
4367
4368 * config.gcc (aix tm_file): Add aix-stdint.h.
4369 (aix tm clause use_gcc_stdint): Set to wrap.
4370 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 4371
75ccc1e7
RG
43722009-04-08 Richard Guenther <rguenther@suse.de>
4373
4374 PR middle-end/36291
4375 * tree-dfa.c (add_referenced_var): Do not recurse into
4376 global initializers.
4377 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
4378 exposed variables.
4379 (fold_const_aggregate_ref): Likewise.
4380
c6963675
PB
43812009-04-08 Paolo Bonzini <bonzini@gnu.org>
4382
6c44cf79
L
4383 * recog.c (ordered_comparison_operator): New.
4384 * gensupport.c (std_preds): Add it.
c6963675
PB
4385 * doc/md.texi (Machine-Independent Predicates): Document it.
4386
6d07ad98
JH
43872009-04-08 Jan Hubicka <jh@suse.cz>
4388
4389 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
4390 * function.h (rtl_eh): Remove exception_handler_label_map.
4391 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
4392 remove_exception_handler_label, for_each_eh_label_1): Remove.
4393 (rtl_remove_unreachable_regions): Remove.
4394 (convert_from_eh_region_ranges): Do not remove unreachable regions.
4395 (find_exception_handler_labels): Don't build the hashtable.
4396 (maybe_remove_eh_handler): Remove.
4397 (for_each_eh_label): Rewrite to walk the tree.
4398 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
4399 * except.h (maybe_remove_eh_handler): Remove.
4400 * passes.c (init_optimization_passes): Schedule second EH cleanup
4401 before out-of-ssa.
4402 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
4403 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
4404
7ddf71e3
PB
44052009-04-08 Paolo Bonzini <bonzini@gnu.org>
4406
4407 * genoutput.c (validate_optab_operands): New.
4408 (gen_insn, gen_expand): Call it.
4409
4410 * genflags.c (gen_insn): Detect misused iterators.
4411 (main): Pass line_no to gen_insn, exit with status 1 on error.
4412
4413 * genextract.c (line_no): Make global.
4414 (VEC_safe_set_locstr): Change assertion to error message.
4415 (main): Exit with status 1 on error.
4416
4d84fe7c
JM
44172009-04-08 Joseph Myers <joseph@codesourcery.com>
4418
4419 PR c/39614
4420 PR c/39673
4421 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4422 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4423 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
4424 * c-convert.c (convert): Do not call fold on results of conversion
4425 functions when the result is a C_MAYBE_CONST_EXPR.
4426 * c-parser.c (c_parser_postfix_expression): Do not fold condition
4427 of __builtin_choose_expr.
4428 * c-typeck.c (remove_c_maybe_const_expr): New.
4429 (build_unary_op, build_conditional_expr, build_compound_expr,
4430 build_binary_op, c_objc_common_truthvalue_conversion): Call
4431 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
4432 integer operands.
4433
60839f5d 44342009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 4435
2ba9daa7 4436 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 4437 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 4438
8e481a2c
DS
44392009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
4440
4441 PR bootstrap/39660
4442 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
4443 mix declarations and code.
4444
ee618c17
BE
44452009-04-08 Ben Elliston <bje@au.ibm.com>
4446
4447 * gcc.c: Replace `CC' with `GCC' throughout.
4448
f2a758a2
L
44492009-04-07 H.J. Lu <hongjiu.lu@intel.com>
4450
4451 * doc/invoke.texi: Document Atom support.
4452
6ea2bd47
JM
44532009-04-07 Jason Merrill <jason@redhat.com>
4454
4455 PR c++/25185
4456 * c-common.h, c-common.c: Add flag_pretty_templates.
4457 * c-opts.c (c_common_handle_option): Set it.
4458 * c.opt: Add -fno-pretty-templates.
4459 * doc/invoke.texi (C++ Dialect Options): Likewise.
4460
fcb82ab0
UB
44612009-04-07 Uros Bizjak <ubizjak@gmail.com>
4462
4463 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
4464 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
4465 (ia64_expand_builtin): Likewise.
4466
dc5e7298
MJ
44672009-04-07 Martin Jambor <mjambor@suse.cz>
4468
4469 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
4470 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
4471 ADDR_EXPRS are include too.
4472
0609b355
RG
44732009-04-07 Richard Guenther <rguenther@suse.de>
4474
4475 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
4476 decls are only used if passes as parameters or if they are
4477 local statics and the call is not to a builtin.
4478 (call_may_clobber_ref_p_1): Likewise.
4479
d8e535fa
PB
44802009-04-07 Paolo Bonzini <bonzini@gnu.org>
4481
4482 * expr.c (do_store_flag): Remove last argument. Simplify code
4483 to avoid duplication of tests already done by can_compare_p.
4484 (expand_expr_real_1): Adjust caller.
4485
c3c64f50
PB
44862009-04-07 Paolo Bonzini <bonzini@gnu.org>
4487
fcb82ab0
UB
4488 * optabs.c (can_compare_p): Test the predicate of a
4489 cbranch and cstore pattern.
c3c64f50 4490
9a53bc17
PB
44912009-04-07 Paolo Bonzini <bonzini@gnu.org>
4492
fcb82ab0
UB
4493 * expr.c (convert_move): Use emit_store_flag instead of
4494 "emulating" it.
9a53bc17 4495
67b8f1c1
PB
44962009-04-07 Paolo Bonzini <bonzini@gnu.org>
4497
fcb82ab0
UB
4498 * config/i386/i386.c (ix86_compare_emitted): Remove.
4499 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
4500 ix86_compare_op0 like ix86_compare_emitted used to be handled.
4501 * config/i386/i386.h (ix86_compare_emitted): Remove.
4502 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
4503 instead of ix86_compare_emitted.
4504 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 4505
44509946
AS
45062009-04-07 Andrew Stubbs <ams@codesourcery.com>
4507
4508 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
4509 Add t-sysroot-suffix to tmake_file.
4510 * config/print-sysroot-suffix.sh: New file.
4511 * config/t-sysroot-suffix: New file.
4512
ca22d882
BE
45132009-04-07 Ben Elliston <bje@au.ibm.com>
4514
4515 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
4516 as the latter produces a warning when the target does not support
4517 infinity.
4518
95aac11b
BE
45192009-04-07 Ben Elliston <bje@au.ibm.com>
4520
4521 * dfp.c: Replace type punning assignments with memcpy throughout.
4522 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 4523
633dd061
AM
45242009-04-07 Alan Modra <amodra@bigpond.net.au>
4525
4526 PR target/39634
4527 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
4528 Include soft-fp/t-softfp after rs6000/t-linux64.
4529
fe0a25ec
EB
45302009-04-06 Eric Botcazou <ebotcazou@adacore.com>
4531
4532 * stor-layout.c (set_sizetype): Use the full precision of their
4533 machine mode for bitsize types.
4534
0c011bc3
L
45352009-04-06 H.J. Lu <hongjiu.lu@intel.com>
4536
4537 * config/i386/i386.md: Revert 2 accidental checkins.
4538
b6837b94 45392009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 4540 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
4541 H.J. Lu <hongjiu.lu@intel.com>
4542
4543 Atom pipeline model, tuning and insn selection.
4544 * config.gcc (atom): Add atom config options and target.
4545
4546 * config/i386/atom.md: New.
4547
4548 * config/i386/i386.c (atom_cost): New cost.
4549 (m_ATOM): New macro flag.
4550 (initial_ix86_tune_features): Set m_ATOM.
4551 (x86_accumulate_outgoing_args): Likewise.
4552 (x86_arch_always_fancy_math_387): Likewise.
4553 (processor_target): Add Atom cost.
4554 (cpu_names): Add Atom cpu name.
4555 (override_options): Set Atom ISA.
4556 (ix86_issue_rate): New case PROCESSOR_ATOM.
4557 (ix86_adjust_cost): Likewise.
4558
4559 * config/i386/i386.h (TARGET_ATOM): New target macro.
4560 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
4561 (TARGET_OPT_AGU): New target option.
4562 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
4563 (processor_type): Add PROCESSOR_ATOM.
4564
4565 * config/i386/i386.md (cpu): Add new value "atom".
4566 (use_carry, movu): New attr.
4567 (atom.md): Include atom.md.
4568 (adddi3_carry_rex64): Set attr "use_carry".
4569 (addqi3_carry): Likewise.
4570 (addhi3_carry): Likewise.
4571 (addsi3_carry): Likewise.
4572 (*addsi3_carry_zext): Likewise.
4573 (subdi3_carry_rex64): Likewise.
4574 (subqi3_carry): Likewise.
4575 (subhi3_carry): Likewise.
4576 (subsi3_carry): Likewise.
4577 (x86_movdicc_0_m1_rex64): Likewise.
4578 (*x86_movdicc_0_m1_se): Likewise.
4579 (x86_movsicc_0_m1): Likewise.
4580 (*x86_movsicc_0_m1_se): Likewise.
4581 (*adddi_1_rex64): Emit add insn as much as possible.
4582 (*addsi_1): Likewise.
4583 (return_internal): Set atom_unit.
4584 (return_internal_long): Likewise.
4585 (return_pop_internal): Likewise.
4586 (*rcpsf2_sse): Set atom_sse_attr attr.
4587 (*qrt<mode>2_sse): Likewise.
4588 (*prefetch_sse): Likewise.
4589
4590 * config/i386/i386-c.c (ix86_target_macros_internal): New case
4591 PROCESSOR_ATOM.
4592 (ix86_target_macros_internal): Likewise.
4593
4594 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
4595 (*prefetch_sse_rex): Likewise.
4596 (sse_rcpv4sf2): Likewise.
4597 (sse_vmrcpv4sf2): Likewise.
4598 (sse_sqrtv4sf2): Likewise.
4599 (<sse>_vmsqrt<mode>2): Likewise.
4600 (sse_ldmxcsr): Likewise.
4601 (sse_stmxcsr): Likewise.
4602 (*sse_sfence): Likewise.
4603 (sse2_clflush): Likewise.
4604 (*sse2_mfence): Likewise.
4605 (*sse2_lfence): Likewise.
4606 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
4607 (<sse>_movup<ssemodesuffixf2c>): Likewise.
4608 (avx_movdqu<avxmodesuffix>): Likewise.
4609 (avx_lddqu<avxmodesuffix>): Likewise.
4610 (sse2_movntv2di): Change attr "type" to "ssemov".
4611 (sse2_movntsi): Likewise.
4612 (rsqrtv8sf2): Change attr "type" to "sseadd".
4613 (sse3_addsubv2df3): Set attr "atom_unit".
4614 (sse3_h<plusminus_insn>v4sf3): Likewise.
4615 (*sse2_pmaddwd): Likewise.
4616 (*vec_extractv2di_1_rex64): Likewise.
4617 (*vec_extractv2di_1_avx): Likewise.
4618 (sse2_psadbw): Likewise.
4619 (ssse3_phaddwv8hi3): Likewise.
4620 (ssse3_phaddwv4hi3): Likewise.
4621 (ssse3_phadddv4si3): Likewise.
4622 (ssse3_phadddv2si3): Likewise.
4623 (ssse3_phaddswv8hi3): Likewise.
4624 (ssse3_phaddswv4hi3): Likewise.
4625 (ssse3_phsubwv8hi3): Likewise.
4626 (ssse3_phsubwv4hi3): Likewise.
4627 (ssse3_phsubdv4si3): Likewise.
4628 (ssse3_phsubdv2si3): Likewise.
4629 (ssse3_phsubswv8hi3): Likewise.
4630 (ssse3_phsubswv4hi3): Likewise.
4631 (ssse3_pmaddubsw128): Likewise.
4632 (sse3_pmaddubsw: Likewise.
4633 (ssse3_palignrti): Likewise.
4634 (ssse3_palignrdi): Likewise.
4635
53e350d3
GP
46362009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
4637
4638 * doc/install.texi (Specific): Fix two cross-references to MinGW.
4639
439ef907
RG
46402009-04-06 Richard Guenther <rguenther@suse.de>
4641
4642 PR tree-optimization/28868
4643 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
4644 of which PHI results we inserted.
4645 (insert_into_preds_of_block): Record inserted PHIs.
4646 (eliminate): Eliminate redundant PHI nodes.
4647 (init_pre): Init inserted_phi_names.
4648
4bad83f5
RG
46492009-04-06 Richard Guenther <rguenther@suse.de>
4650
4651 PR tree-optimization/39643
4652 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
4653 IMAGPART_EXPRs of complex constants.
4654 (execute_fold_all_builtins): If we folded a call queue
4655 TODO_update_address_taken.
4656
570c4247
JH
46572009-04-06 Jan Hubicka <jh@suse.cz>
4658
4659 PR middle-end/39659
4660 * except.c (remove_unreachable_regions): Propagate may_contain_throw
4661 flag.
4662
a460d7a1
AS
46632009-04-06 Andrew Stubbs <ams@codesourcery.com>
4664
4665 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
4666 delay slot.
4667 (ic_invalidate_array): Likewise.
4668
60839f5d 46692009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
4670
4671 * calls.c (emit_library_call_value_1): Fix a problem with parameter
4672 alignment for library calls.
4673
7d253f6e
DS
46742009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
4675
4676 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
4677 (mingw32 tm clause use_gcc_stdint): Set to wrap.
4678 * config/i386/mingw-stdint.h: New file.
4679
941c3614
RB
46802009-04-05 Richard Guenther <rguenther@suse.de>
4681
4682 PR tree-optimization/39648
4683 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
4684 our &A vs. &A[0] IL deficiencies.
4685
12633413
JH
46862009-04-04 Jan Hubicka <jh@suse.cz>
4687
941c3614
RB
4688 * except.c (sjlj_find_directly_reachable_regions): Be ready for
4689 removed toplevel regions.
12633413
JH
4690 (sjlj_mark_call_sites): Likewise.
4691
bb2aaded
DK
46922009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
4693
4694 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
4695 (cygwin tm clause use_gcc_stdint): Set to wrap.
4696 * config/i386/cygwin-stdint.h: New file.
4697
86290011
RG
46982009-04-04 Richard Guenther <rguenther@suse.de>
4699
4700 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
4701 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
4702 single-argument PHIs if we are in loop-closed SSA form.
4703 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
4704 for the pre-condition.
4705 (slpeel_tree_peel_loop_to_edge): Likewise.
4706 (vect_build_loop_niters): Take an optional sequence to append stmts.
4707 (vect_generate_tmps_on_preheader): Likewise.
4708 (vect_do_peeling_for_loop_bound): Take extra guards for the
4709 pre-condition.
4710 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
4711 the cost model check.
4712 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 4713 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
4714 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
4715 (vect_do_peeling_for_loop_bound): Likewise.
4716 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
4717 loop bound only record extra pre-conditions, do not apply loop
4718 versioning.
4719
5eeeac64
RG
47202009-04-04 Richard Guenther <rguenther@suse.de>
4721
4722 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
4723 renaming code.
4724
1ff7d06b
JH
47252009-04-04 Jan Hubicka <jh@suse.cz>
4726
4727 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4728 last_basic_block for size of bb->index indexed array.
4729 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
4730 compute_out, link_btr_uses, build_btr_def_use_webs,
4731 build_btr_def_use_webs, migrate_btr_defs): Likewise.
4732
14925fcd
JH
47332009-04-04 Jan Hubicka <jh@suse.cz>
4734
4735 * except.c (remove_eh_handler_and_replace): Break out from ...
4736 (remove_eh_handler): ... here.
4737 (bring_to_root): New function.
4738 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
4739 handled ones, bring others to root of tree.
4740
4e6d1743
JH
47412009-04-04 Jan Hubicka <jh@suse.cz>
4742
4cb735f7
JH
4743 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
4744 (all_phis_safe_to_merge): New function.
4745 (update_info): New structure.
4746 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
4747 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 4748
c6803d43
RG
47492009-04-04 Richard Guenther <rguenther@suse.de>
4750
4751 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
4752 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
4753 (append_vuse): Likewise.
4754
54f5943c
JJ
47552009-04-04 Jakub Jelinek <jakub@redhat.com>
4756
4757 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
4758 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
4759 instead of REG_UNSAVED for DW_CFA_undefined.
4760 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
4761 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
4762 outermost frame.
4763
aad2bccb
RE
47642009-04-04 Richard Earnshaw <rearnsha@arm.com>
4765
4766 PR target/39501
4767 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
4768 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
4769 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
4770
aa7069aa
RG
47712009-04-04 Richard Guenther <rguenther@suse.de>
4772
4773 PR tree-optimization/8781
4774 PR tree-optimization/37892
4775 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
4776 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
4777 (valueize_refs): Call it for *& valueizations.
4778 (shared_reference_ops_from_ref): Rename to ...
4779 (valueize_shared_reference_ops_from_ref): ... this and valueize.
4780 (shared_reference_ops_from_call): Rename to ...
4781 (valueize_shared_reference_ops_from_call): ... this and valueize.
4782 (vn_reference_lookup): Update.
4783 (visit_reference_op_call): Likewise.
4784 * tree-ssa-pre.c (phi_translate_1): Fold *&.
4785 (eliminate): Value-replace the call address in call statements.
4786
cd15ad3e
RG
47872009-04-04 Richard Guenther <rguenther@suse.de>
4788
4789 PR tree-optimization/39636
4790 * tree-ssa-forwprop.c
4791 (forward_propagate_addr_into_variable_array_index): Check for
4792 GIMPLE_ASSIGN before accessing the rhs code.
4793
462f3262
JM
47942009-04-03 Jason Merrill <jason@redhat.com>
4795
4796 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
4797
6adb807e
SE
47982009-04-03 Steve Ellcey <sje@cup.hp.com>
4799
4800 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
4801 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
4802 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
4803 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
4804 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
4805 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
4806 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
4807 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
4808 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
4809 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
4810 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
4811 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
4812 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
4813 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
4814 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
4815 Use fr_reg_or_fp01_operand instead of fr_register_operand
4816
4817 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
4818 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
4819 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
4820
174b3107
VM
48212009-04-03 Vladimir Makarov <vmakarov@redhat.com>
4822
b844e5d8
L
4823 PR rtl-optimization/39607
4824 PR rtl-optimization/39631
7a715bba
UB
4825
4826 Revert:
2ba9daa7 4827
174b3107
VM
4828 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4829 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4830 instead of DF_LR_OUT.
4831 * ira-lives.c (process_bb_node_lives): Ditto.
4832 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4833 instead of DF_LR_{OUT,IN}.
4834 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4835 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4836
535b544a
SB
48372009-04-03 Steven Bosscher <steven@gcc.gnu.org>
4838
4839 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
4840 (execute_lower_omp): Always run but take the short way out if -fopenmp
4841 is not given.
4842 (gate_lower_omp): Remove, forcing the pass manager to always run the
4843 pass and always set PROP_gimple_lomp.
4844 (pass_lower_omp): Remove gate function.
4845 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
4846 PROP_trees. Instead, require it.
4847 * ipa-cp.c (pass_ipa_cp): Likewise.
4848 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
4849 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
4850 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
4851 and PROP_gimple_leh.
4852
5006671f
RG
48532009-04-03 Richard Guenther <rguenther@suse.de>
4854
4855 PR middle-end/13146
4856 PR tree-optimization/23940
4857 PR tree-optimization/33237
4858 PR middle-end/33974
4859 PR middle-end/34093
4860 PR tree-optimization/36201
4861 PR tree-optimization/36230
4862 PR tree-optimization/38049
4863 PR tree-optimization/38207
4864 PR tree-optimization/38230
4865 PR tree-optimization/38301
4866 PR tree-optimization/38585
4867 PR middle-end/38895
4868 PR tree-optimization/38985
4869 PR tree-optimization/39299
4870 * tree-ssa-structalias.h: Remove.
4871 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
4872 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
4873 (struct vuse_element_d): Remove.
4874 (struct vuse_vec_d): Likewise.
4875 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
4876 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
4877 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
4878 VUSE_ELEMENT_VAR): Likewise.
4879 (struct voptype_d): Likewise.
4880 (NUM_VOP_FREE_BUCKETS): Likewise.
4881 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
4882 (struct stmt_operands_d): Remove.
4883 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
4884 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
4885 VDEF_NUM, VDEF_VECT): Likewise.
4886 (copy_virtual_operands): Remove.
4887 (operand_build_cmp): Likewise.
4888 (create_ssa_artificial_load_stmt): Likewise.
4889 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
4890 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
4891 vuse_index and mayuse_index members. Pack and move done and iter_type
4892 members to the front.
4893 (SSA_OP_VMAYUSE): Remove.
4894 (SSA_OP_VIRTUAL_USES): Adjust.
4895 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
4896 (unlink_stmt_vdef): Declare.
4897 (add_to_addressable_set): Remove.
4898 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
4899 (vrp_visit_stmt): Likewise.
4900 * doc/tree-ssa.texi (Alias analysis): Update.
4901 * doc/invoke.texi (max-aliased-vops): Remove docs.
4902 (avg-aliased-vops): Likewise.
4903 * tree-into-ssa.c (syms_to_rename): Remove.
4904 (need_to_update_vops_p): Likewise.
4905 (need_to_initialize_update_ssa_p): Rename to ...
4906 (update_ssa_initialized_fn): ... this. Track function we are
4907 initialized for.
4908 (symbol_marked_for_renaming): Simplify.
4909 (add_new_name_mapping): Do not set need_to_update_vops_p.
4910 (dump_currdefs): Use SYMS_TO_RENAME.
4911 (rewrite_update_stmt): Always walk all uses/defs.
4912 (dump_update_ssa): Adjust.
4913 (init_update_ssa): Take function argument. Track what we are
4914 initialized for.
4915 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
4916 (create_new_def_for): Initialize for cfun, assert we are initialized
4917 for cfun.
4918 (mark_sym_for_renaming): Simplify.
4919 (mark_set_for_renaming): Do not initialize update-ssa.
4920 (need_ssa_update_p): Simplify. Take function argument.
4921 (name_mappings_registered_p): Assert we ask for the correct function.
4922 (name_registered_for_update_p): Likewise.
4923 (ssa_names_to_replace): Likewise.
4924 (release_ssa_name_after_update_ssa): Likewise.
4925 (update_ssa): Likewise. Use SYMS_TO_RENAME.
4926 (dump_decl_set): Do not print a newline.
4927 (debug_decl_set): Do it here.
4928 (dump_update_ssa): And here.
4929 * tree-ssa-loop-im.c (move_computations): Adjust.
4930 (movement_possibility): Likewise.
4931 (determine_max_movement): Likewise.
4932 (gather_mem_refs_stmt): Likewise.
4933 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
4934 or NAME_MEMORY_TAG.
4935 * tree-complex.c (update_all_vops): Remove.
4936 (expand_complex_move): Adjust.
4937 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
4938 Simplify test for memory referencing statement. Exclude
4939 non-invariant ADDR_EXPRs.
4940 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
4941 * tree-loop-distribution.c (generate_memset_zero): Adjust.
4942 (rdg_flag_uses): Likewise.
4943 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
4944 related code.
4945 (tree_optimize_tail_calls_1): Also split the
4946 edge from the entry block if we have degenerate PHI nodes in
4947 the first basic block.
4948 * tree.c (init_ttree): Remove memory-tag related code.
4949 (tree_code_size): Likewise.
4950 (tree_node_structure): Likewise.
4951 (build7_stat): Re-write to be build6_stat.
4952 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
4953 (SSA_VAR_P): Adjust.
4954 (struct tree_memory_tag): Remove.
4955 (struct tree_memory_partition_tag): Likewise.
4956 (union tree_node): Adjust.
4957 (build7): Re-write to be build6.
4958 * tree-pass.h (pass_reset_cc_flags): Remove.
4959 (TODO_update_address_taken): New flag.
4960 (pass_simple_dse): Remove.
4961 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
4962 * params.h (MAX_ALIASED_VOPS): Remove.
4963 (AVG_ALIASED_VOPS): Likewise.
4964 * omp-low.c (expand_omp_taskreg): Update SSA form.
4965 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
4966 aliases the lhs in a copy stmt.
4967 * tree-ssa-dse.c (struct address_walk_data): Remove.
4968 (memory_ssa_name_same): Likewise.
4969 (memory_address_same): Likewise.
4970 (get_kill_of_stmt_lhs): Likewise.
4971 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
4972 unused stores. Look through PHI nodes into post-dominated regions.
4973 (dse_optimize_stmt): Simplify. Properly remove stores.
4974 (tree_ssa_dse): Compute dominators.
4975 (execute_simple_dse): Remove.
4976 (pass_simple_dse): Likewise.
4977 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
4978 gimple_loaded_syms and gimple_stored_syms computation.
4979 * toplev.c (dump_memory_report): Dump alias and pta stats.
4980 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
4981 (vn_reference_eq): Likewise.
4982 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
4983 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
4984 valueize_vuses): Remove.
4985 (get_def_ref_stmt_vuses): Simplify. Rename to ...
4986 (get_def_ref_stmt_vuse): ... this.
4987 (vn_reference_lookup_2): New function.
4988 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
4989 walking equivalent vuses. Simplify.
4990 (vn_reference_lookup): Likewise.
4991 (vn_reference_insert): Likewise.
4992 (vn_reference_insert_pieces): Likewise.
4993 (visit_reference_op_call): Simplify.
4994 (visit_reference_op_load): Likewise.
4995 (visit_reference_op_store): Likewise.
4996 (init_scc_vn): Remove shared_lookup_vuses initialization.
4997 (free_scc_vn): Remove shared_lookup_vuses freeing.
4998 (sort_vuses, sort_vuses_heap): Remove.
4999 (get_ref_from_reference_ops): Export.
5000 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
5001 vector with single vuse pointer.
5002 (vn_reference_lookup_pieces, vn_reference_lookup,
5003 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
5004 (shared_vuses_from_stmt): Remove.
5005 (get_ref_from_reference_ops): Declare.
5006 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
5007 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
5008 memory-tag related code.
5009 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
5010 (likely_value): Add comment, skip static-chain of call statements.
5011 (surely_varying_stmt_p): Adjust.
5012 (gimplify_and_update_call_from_tree): Likewise.
5013 (execute_fold_all_builtins): Do not rebuild alias info.
5014 (gimplify_and_update_call_from_tree): Properly update VOPs.
5015 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
5016 (copy_ref_info): Remove memory-tag related code.
5017 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
5018 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
5019 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
5020 computation.
5021 * tree-ssa-dom.c (gimple_p): Remove typedef.
5022 (eliminate_redundant_computations): Adjust.
5023 (record_equivalences_from_stmt): Likewise.
5024 (avail_expr_hash): Likewise.
5025 (avail_expr_eq): Likewise.
7a715bba 5026 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
5027 (stmt_makes_single_load): Likewise.
5028 (stmt_makes_single_store): Likewise.
5029 * tree-ssa-alias.c: Rewrite completely.
5030 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
5031 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
5032 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
5033 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
5034 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
5035 Remove public functions.
5036 (pass_reset_cc_flags): Remove.
5037 (pass_build_alias): Move ...
5038 * tree-ssa-structalias.c (pass_build_alias): ... here.
5039 * tree-ssa-alias.c (may_be_aliased): Move ...
5040 * tree-flow-inline.h (may_be_aliased): ... here.
5041 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
5042 count_uses_and_derefs): Move ...
5043 * gimple.c: ... here.
5044 * gimple.h (count_uses_and_derefs): Declare.
5045 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
5046 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
5047 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
5048 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
5049 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
5050 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
5051 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
5052 New functions.
5053 * tree-dfa.c (refs_may_alias_p): Move ...
5054 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
5055 * tree-ssa-alias.h: New file.
5056 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
5057 (statement_sink_location): Likewise.
5058 * opts.c (decode_options): Do not adjust max-aliased-vops or
5059 avg-aliased-vops values.
5060 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
5061 (TV_CALL_CLOBBER): Likewise.
5062 (TV_FLOW_SENSITIVE): Likewise.
5063 (TV_FLOW_INSENSITIVE): Likewise.
5064 (TV_MEMORY_PARTITIONING): Likewise.
5065 (TV_ALIAS_STMT_WALK): New timevar.
5066 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
5067 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
5068 (get_address_description): Remove memory-tag related code.
5069 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
5070 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
5071 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
5072 and immediate uses in statements. Document.
5073 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
5074 (dump_symbols): Remove.
5075 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
5076 * alias.c (get_deref_alias_set): New function split out from ...
5077 (get_alias_set): ... here.
5078 * alias.h (get_deref_alias_set): Declare.
5079 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
5080 type parameter. Remove restrict pointer handling. Create a
5081 ref-all pointer in case type-based alias sets do not conflict.
5082 (vect_analyze_data_refs): Remove SMT related code.
5083 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
5084 (vectorizable_load): Likewise.
5085 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
5086 (DR_SYMBOL_TAG, DR_VOPS): Remove.
5087 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
5088 Ignore vops and SMTs.
5089 (dr_analyze_alias): Likewise..
5090 (free_data_ref): Likewise.
5091 (create_data_ref): Likewise.
5092 (analyze_all_data_dependences): Likewise.
5093 (get_references_in_stmt): Adjust.
5094 * tree-flow-inline.h (gimple_aliases_computed_p,
5095 gimple_addressable_vars, gimple_call_clobbered_vars,
5096 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
5097 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
5098 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
5099 gimple_mem_ref_stats): Remove.
5100 (gimple_vop): New function.
5101 (op_iter_next_use): Remove vuses and mayuses cases.
5102 (op_iter_next_def): Remove vdefs case.
5103 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
5104 (clear_and_done_ssa_iter): Do not set removed fields.
5105 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
5106 Assert we are not iterating over vuses or vdefs if not also
5107 iterating over uses or defs.
5108 (op_iter_init_use): Likewise.
5109 (op_iter_init_def): Likewise.
5110 (op_iter_next_vdef): Remove.
5111 (op_iter_next_mustdef): Likewise.
5112 (op_iter_init_vdef): Likewise.
5113 (compare_ssa_operands_equal): Likewise.
5114 (link_use_stmts_after): Handle vuse operand.
5115 (is_call_used): Use is_call_clobbered.
5116 (is_call_clobbered): Global variables are always call clobbered,
5117 query the call-clobbers bitmap.
5118 (mark_call_clobbered): Ignore global variables.
5119 (clear_call_clobbered): Likewise.
5120 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
5121 virtual operands sanity check.
5122 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
5123 Remove.
5124 (TARGET_MEM_REF): Remove TMR_TAG operand.
5125 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
5126 Remove call-clobber related code.
5127 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
5128 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
5129 partitions or escape reason.
5130 (get_single_def_stmt, get_single_def_stmt_from_phi,
5131 get_single_def_stmt_with_phi): Remove.
5132 (dump_referenced_vars): Tidy.
5133 (get_ref_base_and_extent): Allow bare decls.
5134 (collect_dfa_stats): Adjust.
5135 * graphite.c (rename_variables_in_stmt): Adjust.
5136 (graphite_copy_stmts_from_block): Likewise.
5137 (translate_clast): Likewise.
5138 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
5139 (EXPR_DIES): New.
5140 (translate_vuse_through_block): Use the oracle.
5141 (phi_translate_1): Adjust.
5142 (value_dies_in_block_x): Use the oracle. Cache the outcome
5143 in EXPR_DIES.
5144 (valid_in_sets): Check if the VUSE for
5145 a REFERENCE is available.
5146 (eliminate): Do not remove stmts during elimination,
5147 instead queue and remove them afterwards.
5148 (do_pre): Do not rebuild alias info.
5149 (pass_pre): Run TODO_rebuild_alias before PRE.
5150 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
5151 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
5152 (mark_all_v_defs_stmt): Remove.
5153 (mark_all_v_defs_seq): Adjust.
5154 (sra_replace): Likewise.
5155 (scalarize_use): Likewise.
5156 (scalarize_copy): Likewise.
5157 (scalarize_init): Likewise.
5158 (scalarize_ldst): Likewise.
5159 (todoflags): Remove.
5160 (tree_sra): Do not rebuild alias info.
5161 (tree_sra_early): Adjust.
5162 (pass_sra): Run TODO_update_address_taken before SRA.
5163 * tree-predcom.c (set_alias_info): Remove.
5164 (prepare_initializers_chain): Do not call it.
5165 (mark_virtual_ops_for_renaming): Adjust.
5166 (mark_virtual_ops_for_renaming_list): Remove.
5167 (initialize_root_vars): Adjust.
5168 (initialize_root_vars_lm): Likewise.
5169 (prepare_initializers_chain): Likewise.
5170 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
5171 (may_propagate_copy_into_stmt): Likewise.
5172 (merge_alias_info): Do nothing for now.
5173 (propagate_tree_value_into_stmt): Adjust.
5174 (stmt_may_generate_copy): Likewise.
5175 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
5176 not mark symbols for renaming.
5177 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
5178 with the same statement, make sure to update the new pointed-to one.
5179 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
5180 call statements, do not mark symbols for renaming.
5181 (mark_operand_necessary): Dump something.
5182 (ref_may_be_aliased): New function.
5183 (mark_aliased_reaching_defs_necessary_1): New helper function.
5184 (mark_aliased_reaching_defs_necessary): Likewise.
5185 (mark_all_reaching_defs_necessary_1): Likewise.
5186 (mark_all_reaching_defs_necessary): Likewise.
5187 (propagate_necessity): Do not process virtual PHIs. For
5188 non-aliased loads mark all reaching definitions as necessary.
5189 For aliased loads and stores mark the immediate dominating
5190 aliased clobbers as necessary.
5191 (visited): New global static.
5192 (perform_tree_ssa_dce): Free visited bitmap after propagating
5193 necessity.
5194 (remove_dead_phis): Perform simple dead virtual PHI removal.
5195 (remove_dead_stmt): Properly unlink virtual operands when
5196 removing stores.
5197 (eliminate_unnecessary_stmts): Schedule PHI removal after
5198 stmt removal.
5199 * tree-ssa-ter.c (is_replaceable_p): Adjust.
5200 (process_replaceable): Likewise.
5201 (find_replaceable_in_bb): Likewise.
5202 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
5203 based on the single gimple vop.
5204 (verify_flow_insensitive_alias_info): Remove.
5205 (verify_flow_sensitive_alias_info): Likewise.
5206 (verify_call_clobbering): Likewise.
5207 (verify_memory_partitions): Likewise.
5208 (verify_alias_info): Likewise.
5209 (verify_ssa): Adjust..
5210 (execute_update_addresses_taken): Export. Update SSA
5211 manually. Optimize only when optimizing. Use a local bitmap.
5212 (pass_update_address_taken): Remove TODO_update_ssa, add
5213 TODO_dump_func.
5214 (pass_update_address_taken): Just use TODO_update_address_taken.
5215 (init_tree_ssa): Do not initialize addressable_vars.
5216 (verify_ssa): Verify new VUSE / VDEF properties.
5217 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
5218 Do not call verify_alias_info.
5219 (delete_tree_ssa): Clear the VUSE, VDEF operands.
5220 Do not free the loaded and stored syms bitmaps. Reset the escaped
5221 and callused solutions. Do not free addressable_vars.
5222 Remove memory-tag related code.
5223 (warn_uninitialized_var): Aliases are always available.
5224 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
5225 * lambda-code.c (can_put_in_inner_loop): Adjust.
5226 (can_put_after_inner_loop): Likewise.
5227 (perfect_nestify): Likewise.
5228 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
5229 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
5230 (vectorizable_conversion): Do not mark symbols for renaming.
5231 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
5232 (expand_call_inline): Unlink the calls virtual operands before
5233 replacing it.
5234 (tree_function_versioning): Do not call update_ssa if we are not
5235 updating clones. Simplify.
5236 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
5237 (propagate_with_phi): Likewise..
5238 * tree-outof-ssa.c (create_temp): Remove memory tag and call
5239 clobber code. Assert we are not aliased or global.
5240 * tree-flow.h: Include tree-ssa-alias.h
5241 (enum escape_type): Remove.
5242 (struct mem_sym_stats_d): Likewise.
5243 (struct mem_ref_stats_d): Likewise.
5244 (struct gimple_df): Add vop member. Remove global_var,
5245 call_clobbered_vars, call_used_vars, addressable_vars,
5246 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
5247 escaped and callused members.
5248 (struct ptr_info_def): Remove all members, add points-to solution
5249 member pt.
5250 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
5251 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
5252 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
5253 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
5254 (tree-ssa-alias.o): Likewise.
5255 (toplev.o): Add tree-ssa-alias.h
5256 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
5257 * gimple.c (gimple_set_bb): Fix off-by-one error.
5258 (is_gimple_reg): Do not handle memory tags.
5259 (gimple_copy): Also copy virtual operands.
5260 Delay updating the statement. Do not reset loaded and stored syms.
5261 (gimple_set_stored_syms): Remove.
5262 (gimple_set_loaded_syms): Likewise.
5263 (gimple_call_copy_skip_args): Copy the virtual operands
5264 and mark the new statement modified.
5265 * tree-ssa-structalias.c (may_alias_p): Remove.
5266 (set_uids_in_ptset): Take the alias set to prune with as
5267 parameter. Fold in the alias test of may_alias_p.
5268 (compute_points_to_sets): Compute whether a ptr is dereferenced
5269 in a local sbitmap.
5270 (process_constraint): Deal with &ANYTHING on the lhs, reject all
5271 other ADDRESSOF constraints on the lhs.
5272 (get_constraint_for_component_ref): Assert that we don't get
5273 ADDRESSOF constraints from the base of the reference.
5274 Properly generate UNKNOWN_OFFSET for DEREF if needed.
5275 (struct variable_info): Remove collapsed_to member.
5276 (get_varinfo_fc): Remove.
5277 (new_var_info): Do not set collapsed_to.
5278 (dump_constraint): Do not follow cycles.
5279 (dump_constraint_graph): Likewise.
5280 (build_pred_graph): Likewise.
5281 (build_succ_graph): Likewise.
5282 (rewrite_constraints): Likewise.
5283 (do_simple_structure_copy): Remove.
5284 (do_rhs_deref_structure_copy): Remove.
5285 (do_lhs_deref_structure_copy): Remove.
5286 (collapse_rest_of_var): Remove.
5287 (do_structure_copy): Re-implement.
5288 (pta_stats): New global variable.
5289 (dump_pta_stats): New function.
5290 (struct constraint_expr): Make offset signed.
5291 (UNKNOWN_OFFSET): Define special value.
5292 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
5293 (solution_set_expand): New helper function split out from ...
5294 (do_sd_constraint): ... here.
5295 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
5296 (do_ds_constraint): Likewise.
5297 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
5298 and CALLUSED = *CALLUSED.
5299 (set_union_with_increment): Make inc argument signed.
5300 (type_safe): Remove.
5301 (get_constraint_for_ptr_offset): Handle unknown and negative
5302 constant offsets.
5303 (first_vi_for_offset): Handle offsets before start. Bail
5304 out early for offsets beyond the variable extent.
5305 (first_or_preceding_vi_for_offset): New function.
5306 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
5307 Together with ESCAPED = *ESCAPED this properly computes reachability.
5308 (find_what_var_points_to): New function.
5309 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
5310 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
5311 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
5312 pt_solutions_intersect): New functions.
5313 (compute_call_used_vars): Remove.
5314 (compute_may_aliases): New main entry into PTA computation.
5315 * gimple.h (gimple_p): New typedef.
5316 (struct gimple_statement_base): Remove references_memory_p.
5317 (struct gimple_statement_with_memory_ops_base): Remove
5318 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
5319 members.
5320 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
5321 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
5322 gimple_set_references_memory): Remove.
5323 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
5324 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
5325 New functions.
5326 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
5327 (verify_expr): Allow RESULT_DECL.
5328 (gimple_duplicate_bb): Do not copy virtual operands.
5329 (gimple_duplicate_sese_region): Adjust.
5330 (gimple_duplicate_sese_tail): Likewise.
5331 (mark_virtual_ops_in_region): Remove.
5332 (move_sese_region_to_fn): Do not call it.
5333 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
5334 and pass_simple_dse.
5335 (execute_function_todo): Handle TODO_update_address_taken,
5336 call execute_update_addresses_taken for TODO_rebuild_alias.
5337 (execute_todo): Adjust.
5338 (execute_one_pass): Init dump files early.
5339 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
5340 call-clobbered.
5341 (create_general_new_stmt): Clear vops.
5342 * tree-ssa-reassoc.c (get_rank): Adjust.
5343 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
5344 symbols for renaming.
5345 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
5346 (PARAM_AVG_ALIASED_VOPS): Likewise.
5347 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
5348 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 5349 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
5350 (operand_build_cmp, copy_virtual_operands,
5351 create_ssa_artificial_load_stmt, add_to_addressable_set,
5352 gimple_add_to_addresses_taken): Remove public functions.
5353 (unlink_stmt_vdef): New function.
5354
457d1d00
AM
53552009-04-03 Alan Modra <amodra@bigpond.net.au>
5356
5357 * config.gcc (powerpc-*-linux*): Merge variants.
5358
e19da24c 53592009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 5360 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
5361
5362 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
5363 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
5364 cop0_sp_offset.
5365 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
5366 keep_interrupts_masked_p, use_debug_exception_return_p.
5367 (mips_attribute_table): Add interrupt, use_shadow_register_set,
5368 keep_interrupts_masked, use_debug_exception_return.
5369 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
5370 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
5371 New functions.
5372 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
5373 (mips_print_operand): Process COP0 registers to print $0 .. $31
5374 correctly for GAS to process.
5375 (mips_interrupt_extra_call_saved_reg_p): New function.
5376 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
5377 extra registers.
5378 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5379 (mips_compute_frame_info): Add supports for interrupt context that
5380 includes doubleword accumulators and COP0 registers.
5381 (mips_for_each_saved_acc): New function.
5382 (mips_for_each_saved_gpr_and_fpr): Change the function name from
5383 mips_for_each_saved_reg.
5384 (mips_save_reg): Save accumulators.
5385 (mips_kernel_reg_p): A new for_each_rtx callback.
5386 (mips_expand_prologue): Support interrupt handlers.
5387 (mips_restore_reg): Restore accumulators.
5388 (mips_expand_epilogue): Support interrupt handlers.
5389 (mips_can_use_return_insn): Return false for interrupt handlers.
5390 (mips_epilogue_uses): New function.
5391 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
5392 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
5393 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
5394 cop0_move): New instructions.
5395 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
5396 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
5397 defines.
5398 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
5399 New defines.
5400 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
5401 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
5402 interrupt handlers, we use K0 as the temporary register.
5403 (EPILOGUE_USES): Change to a function call.
5404 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
5405 handlers, we use K0 as the temporary register.
2ba9daa7 5406
e19da24c
CF
5407 * doc/extend.texi (Function Attributes): Document interrupt,
5408 use_shadow_register_set, keep_interrupts_masked,
5409 use_debug_exception_return for MIPS attributes.
5410
aa1ca044
AM
54112009-04-03 Alan Modra <amodra@bigpond.net.au>
5412
5413 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
5414 Remove a number of t-files from tmake_file.
5415 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
5416 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
5417 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5418 target_prototype, not TARGET_PROTOTYPE.
5419 (LINK_OS_GNU_SPEC): Define.
5420 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
5421 and darwin-ldoubdle.c.
5422
14fdc613
MM
54232009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5424
5425 PR driver/39293
5426 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
5427 (cpp_options): Ditto.
5428 (default_compilers): Ditto.
5429 (display_help): Ditto.
5430 (process_command): Ditto.
5431 (do_spec_1): Ditto.
5432 (set_input): Use lbasename instead of duplicate code.
5433 (save_temps_prefix): New static for -save-temps=obj.
5434 (save_temps_length): Ditto.
2ba9daa7 5435
14fdc613
MM
5436 * doc/invoke.texi (-save-temps=obj): Document new variant to
5437 -save-temps switch.
5438
d3aa398e
JL
54392009-04-02 Jeff Law <law@redhat.com>
5440
5441 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
5442 variable.
5443
83f0ccb8
L
54442009-04-02 H.J. Lu <hongjiu.lu@intel.com>
5445
5446 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
5447 * configure: Regenerated.
5448
dcb6e951
RAE
54492009-04-02 Rafael Avila de Espindola <espindola@google.com>
5450
5451 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
5452 share the argument list.
5453
d85478c2
RAE
54542009-04-02 Rafael Avila de Espindola <espindola@google.com>
5455
5456 Merge
5457
5458 2009-02-12 Diego Novillo <dnovillo@google.com>
5459
83f0ccb8
L
5460 * varpool.c (debug_varpool): New.
5461 * cgraph.h (debug_varpool): Declare.
d85478c2 5462
34f42a49
JH
54632009-04-02 Jan Hubicka <jh@suse.cz>
5464
5465 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
5466 pass.
5467
a4747b4a
L
54682009-04-02 H.J. Lu <hongjiu.lu@intel.com>
5469
5470 * config/i386/i386.c (ix86_abi): Move initialization to ...
5471 (override_options): Here.
5472
63a9de54
CB
54732009-04-02 Christian Bruel <christian.bruel@st.com>
5474
5475 * config/sh/sh.c (sh_dwarf_register_span): New function.
5476 (TARGET_DWARF_REGISTER_SPAN): Define.
5477 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 5478
2f0fa28e
IR
54792009-04-02 Ira Rosen <irar@il.ibm.com>
5480
5481 PR tree-optimization/39595
2ba9daa7 5482 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
5483 interleaved loads group is not greater than the SLP group size.
5484
bbf7ce11
RAE
54852009-04-02 Rafael Avila de Espindola <espindola@google.com>
5486
5487 * builtins.c (is_builtin_name): New.
5488 (called_as_built_in): Use is_builtin_name.
5489 * tree.h (is_builtin_name): New.
5490 * varasm.c (incorporeal_function_p): Use is_builtin_name
5491
47e4dfcf
AS
54922009-04-02 Andrew Stubbs <ams@codesourcery.com>
5493
5494 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
5495
d0940d56
DS
54962009-04-02 Dodji Seketeli <dodji@redhat.com>
5497
5498 PR c++/26693
532bfb0a 5499 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
5500 * c-common.c (set_underlying_type): ... here.
5501 Also, make sure the function properly sets TYPE_STUB_DECL() on
5502 the newly created typedef variant type.
5503 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
5504 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
5505 points.
d0940d56 5506
bf1cbdc6
RG
55072009-04-02 Richard Guenther <rguenther@suse.de>
5508
5509 PR tree-optimization/37221
5510 * tree-flow.h (degenerate_phi_result): Declare.
5511 * tree-ssa-dom.c (degenerate_phi_result): Export.
5512 * tree-scalar-evolution.c (analyze_initial_condition): If
5513 the initial condition is defined by a degenerate PHI node
5514 use the degenerate value.
5515
87cfb32c
EB
55162009-04-01 Eric Botcazou <ebotcazou@adacore.com>
5517
5518 PR rtl-optimization/39588
5519 * combine.c (merge_outer_ops): Do not set the constant when this
5520 is not necessary.
5521 (simplify_shift_const_1): Do not modify it either in this case.
5522
bbb6eae8
SB
55232009-04-01 Steven Bosscher <steven@gcc.gnu.org>
5524
5525 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
5526 tuning is deprecated if -mtune value is set to an Itanium1 variant.
5527
839a3b8a
JJ
55282009-04-01 Janis Johnson <janis187@us.ibm.com>
5529
5530 PR c/29027
5531 * c-lex.c (interpret_float): Default (no suffix) is double.
5532
667e8acb
XDL
55332009-04-1 Xinliang David Li <davidxl@google.com>
5534
5535 * config/i386/i386.c (legitimate_constant_p): Recognize
5536 all one vector constant.
5537
60839f5d 55382009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5539
60839f5d 5540 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
5541 Change #include order to silence two warnings.
5542
60839f5d 55432009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5544
60839f5d 5545 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
5546 (ASM_SPEC): Pass -k to the assembler for PIC code.
5547
60839f5d 55482009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5549
60839f5d
EB
5550 * config.gcc: Add vax-*-linux* to the switch.
5551 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
5552 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
5553
60839f5d 55542009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5555
60839f5d 5556 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 5557 Use predicate macros instead of GET_CODE() == foo.
60839f5d 5558 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
5559 ashlsi3, rotrsi3, <unnamed>): Likewise.
5560
60839f5d 55612009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5562
60839f5d 5563 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 5564 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
5565 * config/vax/constraints.md: Likewise.
5566 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5567 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
5568 * config/vax/predicates.md: Likewise.
5569 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 5570 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
5571 * config/vax/vax.h: Likewise.
5572 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 5573
60839f5d 55742009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5575
60839f5d 5576 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
5577 (indirectable_address_p, adjacent_operands_p): Add spaces around
5578 braces.
60839f5d 5579 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 5580
60839f5d 55812009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5582
60839f5d 5583 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
5584 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
5585 index_term_p, reg_plus_index_p, legitimate_address_p,
5586 vax_mode_dependent_address_p): Update comments to match functions
5587 modified by the recent int->bool conversion.
5588
60839f5d 55892009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5590
60839f5d
EB
5591 * config/vax/builtins.md: Update copyright message.
5592 * config/vax/constraints.md: Likewise.
5593 * config/vax/netbsd-elf.h: Likewise.
5594 * config/vax/predicates.md: Likewise.
5595 * config/vax/vax-protos.h: Likewise.
5596 * config/vax/vax.c: Likewise.
5597 * config/vax/vax.h: Likewise.
5598 * config/vax/vax.md: Likewise.
5599 * config/vax/vax.opt: Likewise.
c4e75102 5600
60839f5d 56012009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 5602
60839f5d 5603 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 5604 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
5605 * config/vax/constraints.md (B, R): Likewise.
5606 * config/vax/predicates.md (external_memory_operand,
c4e75102 5607 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
5608 * config/vax/vax.c (vax_output_int_add): Likewise.
5609 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
5610 untyped_call): Likewise.
5611
60839f5d 56122009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 5613
7a715bba
UB
5614 * config/vax/predicates.md: New file.
5615 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
5616 external_const_operand, nonsymbolic_operand, external_memory_operand,
5617 indirect_memory_operand, indexed_memory_operand,
5618 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
5619 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
5620 predicate.
7a715bba
UB
5621 * config/vax/constraints.md: New file.
5622 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
5623 New constraint.
5624 * config/vax/builtins.md: New file.
5625 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
5626 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
5627 jbbccisi): Define.
c4e75102
MT
5628 * config/vax/vax.opt (mqmath): Add option.
5629 * config/vax/vax.md (isfx): Extend with DI.
5630 (VAXintQH, VAXintQHSD): Define.
5631 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
5632 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
5633 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
5634 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
5635 (movdi): Update constraints and use vax_output_int_move().
5636 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
5637 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
5638 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
5639 nonlocal_goto): New.
5640 (mov<mode>): Extend accepted operand types.
5641 (subdi3_old): Rename from subdi3, change update constraints and use
5642 a new implementation.
60839f5d 5643 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
5644 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
5645 MOVE_RATIO, CLEAR_RATIO): Define.
5646 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
5647 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
5648 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 5649 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
5650 (split_quadword_operands): Make static and really allow variable
5651 splitting.
5652 (print_operand_address): Update for PIC generation.
5653 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
5654 indexable_address_p, fixup_mathdi_operand,
5655 vax_expand_addsub_di_operands, adjacent_operands_p): New.
5656 (vax_float_literal, legitimate_constant_p,
5657 indirectable_constant_address_p, index_term_p,
5658 reg_plus_index_p): Return bool instead of int.
5659 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
5660 where needed.
5661 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
5662 generation.
5663 (vax_output_conditional_branch): Indent.
5664 (legitimate_constant_address_p, indirectable_constant_address_p,
5665 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
5666 vax_mode_dependent_address_p): Return bool instead of int, update for
5667 PIC generation.
5668 * config/vax/vax-protos.h (legitimate_constant_address_p,
5669 legitimate_constant_p, legitimate_address_p,
5670 vax_mode_dependent_address_p): Change declaration to bool.
5671 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
5672 vax_expand_addsub_di_operands, vax_output_int_subtract,
5673 vax_output_movmemsi): Declare.
5674 (split_quadword_operands, vax_float_literal): Delete declaration.
5675 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
5676 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
5677 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
5678 ASM_OUTPUT_DWARF_PCREL): Define.
5679 (ASM_SPEC): Change definition to allow PIC generation.
5680
9332c6eb
L
56812009-04-01 Steve Ellcey <sje@cup.hp.com>
5682
5683 * doc/sourcebuild.texi: Update front-end requirements.
5684
d93e052c
JJ
56852009-04-01 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR target/39226
5688 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
5689 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
5690 (booldi3_internal3): Use boolean_or_operator instead of
5691 boolean_operator.
5692
6ccb2a4a
JM
56932009-04-01 Joseph Myers <joseph@codesourcery.com>
5694
5695 PR c/39605
5696 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
5697 declarator whose size is not an integer constant expression but
5698 folds to an integer constant, then treat it as a constant
5699 subsequently.
5700
299b87f8
RG
57012009-04-01 Richard Guenther <rguenther@suse.de>
5702
5703 * fold-const.c (fold_plusminus_mult_expr): Do not fold
5704 i * 4 + 2 to (i * 2 + 1) * 2.
5705
b85eb797
JJ
57062009-04-01 Jakub Jelinek <jakub@redhat.com>
5707
5708 PR c/37772
5709 * c-parser.c (c_parser_asm_statement): Skip until close paren and
5710 return if c_parser_asm_string_literal returned NULL.
5711
235e1fe8
NC
57122009-04-01 Nick Clifton <nickc@redhat.com>
5713
5714 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
5715 already defined.
5716 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
5717 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
5718 other typedefs to avoid conflicts with libgcc2.c. Define labels
5719 to gain 16-bit bit-manipulation functions from libgcc2.c and then
5720 include it.
5721 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
5722 to gain 16-bit trapping arithmetic functions from libgcc2.c and
5723 then include it.
5724
d6868399
RAE
57252009-04-01 Rafael Avila de Espindola <espindola@google.com>
5726
7a715bba
UB
5727 * varasm.c (default_function_rodata_section): Declare DOT as
5728 const char*.
d6868399 5729
73d21f56 57302009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 5731 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
5732
5733 PR/39492
5734 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5735 Make object_name unique for each process.
5736
03742a9b
JJ
57372009-04-01 Jakub Jelinek <jakub@redhat.com>
5738
5739 PR other/39591
5740 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
5741 addressable variables in the parallel that could go out of scope while
5742 running queued tasks.
5743
4223ff5f
AS
57442009-04-01 Anatoly Sokolov <aesok@post.ru>
5745
5746 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
5747 (CASE_VALUES_THRESHOLD): Redefine.
5748 * config/avr/avr.c (avr_override_options): Remove initialization of
5749 avr_case_values_threshold variable.
5750 (avr_case_values_threshold): Remove variable. Add new function.
5751 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
5752 * config/avr/avr.opt (mno-tablejump): Remove option.
5753 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
5754
e893f6f3
DD
57552009-04-01 DJ Delorie <dj@redhat.com>
5756
5757 * varasm.c (default_function_rodata_section): Don't assume
5758 anything about where the first '.' in the section name is.
5759
b246d100
AM
57602009-04-01 Alan Modra <amodra@bigpond.net.au>
5761
5762 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
5763 rs6000_emit_stack_tie.
5764
d3e37a9e
ILT
57652009-03-31 Ian Lance Taylor <iant@google.com>
5766
5767 * tree-eh.c (tree_remove_unreachable_handlers): Compare
5768 gimple_code with GIMPLE_RESX, not RESX.
5769
c1b61fca
JM
57702009-03-31 Joseph Myers <joseph@codesourcery.com>
5771
5772 * c-common.c (c_get_ident): New.
7a715bba 5773 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 5774
c2d2ad48
BE
57752009-04-01 Ben Elliston <bje@au.ibm.com>
5776
5777 * config/rs6000/sysv4.opt (msdata): Improve option description.
5778
13d1a6e7
SE
57792009-03-31 Steve Ellcey <sje@cup.hp.com>
5780
5781 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
5782 (divdf3_internal_lat): Remove.
5783 (divxf3_internal_lat): Remove.
5784 (divxf3_internal_thr): Remove.
5785 (divxf): Use divxf3_internal.
5786 * config/ia64/div.md (divsf3_internal_lat): New.
5787 (divdf3_internal_lat): New.
5788 (divxf3_internal): New.
5789
207bf79d
JM
57902009-03-31 Joseph Myers <joseph@codesourcery.com>
5791
5792 PR c/448
5793 * Makefile.in (USE_GCC_STDINT): Define.
5794 (stmp-int-hdrs): Install stdint.h if applicable.
5795 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
5796 if known.
5797 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
5798 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
5799 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
5800 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5801 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5802 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5803 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5804 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5805 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5806 (c_common_nodes_and_builtins): Initialize
5807 underlying_wchar_type_node. Do not initialize
5808 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
5809 nodes for new types.
5810 (c_stddef_cpp_builtins): Define macros for new types.
5811 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
5812 Remove.
5813 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
5814 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
5815 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
5816 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
5817 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
5818 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
5819 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
5820 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
5821 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
5822 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
5823 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
5824 int16_type_node, int32_type_node, int64_type_node,
5825 uint8_type_node, uint16_type_node, c_uint32_type_node,
5826 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
5827 int_least32_type_node, int_least64_type_node,
5828 uint_least8_type_node, uint_least16_type_node,
5829 uint_least32_type_node, uint_least64_type_node,
5830 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
5831 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
5832 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
5833 uintptr_type_node): Define.
5834 * c-cppbuiltin.c (builtin_define_constants,
5835 builtin_define_type_minmax): New.
5836 (builtin_define_stdint_macros): Define more macros.
5837 (c_cpp_builtins): Define more limit macros.
5838 (type_suffix): New.
5839 (builtin_define_type_max): Define in terms of
5840 builtin_define_type_minmax. Remove is_long parameter. All
5841 callers changed.
5842 * config.gcc (use_gcc_stdint): Define.
5843 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
5844 Add newlib-stdint.h for generic targets.
5845 * config/glibc-stdint.h, config/newlib-stdint.h,
5846 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
5847 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
5848 * config/score/score.h (UINTPTR_TYPE): Define.
5849 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
5850 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
5851 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5852 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5853 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5854 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5855 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5856 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5857 * config/spu/spu.h (STDINT_LONG32): Define.
5858 * configure.ac (use_gcc_stdint): Substitute.
5859 * configure: Regenerate.
5860 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
5861 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
5862 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
5863 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
5864 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
5865 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
5866 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
5867 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
5868 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
5869 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
5870 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
5871 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
5872 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
5873 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
5874 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
5875 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
5876 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
5877 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
5878 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
5879 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
5880 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
5881 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
5882 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
5883 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5884 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5885 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5886 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5887 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5888 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
5889
ed853664
BS
58902009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
5891
5892 * loop-iv.c (suitable_set_for_replacement): Renamed from
5893 simplify_using_assignment; changed to return bool and to accept new
5894 args DEST and SRC. Return true iff we find a source/destination pair
5895 that can be used to make a replacement, and fill SRC and DEST if so.
5896 Remove arg ALTERED. Don't deal with altered regs here. All callers
5897 changed.
5898 (simplify_using_initial_values): Deal with altered regs here and track
5899 more precisely the effect they have on the validity of our expression.
5900
1569e190
BS
5901 * loop-iv.c (simplify_using_condition): A condition of the form
5902 (EQ REG CONST) can be used to simply make a substitution.
5903 (simplify_using_initial_values): Keep track of conditions we have seen
5904 and keep using them to simplify new expressions, while applying the
5905 same substitutions to them as to the expression.
5906
1d1eb80c
BS
5907 * simplify-rtx.c (simplify_relational_operation_1): Simplify
5908 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
5909 GEU/LTU reversed.
5910
28af33b0
BS
5911 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
5912 changed. Use this when trying to improve the upper bound.
5913 Generate the comparison by using simplify_gen_relational.
5914
b30321cd
BS
5915 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
5916
60081874
BS
5917 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
5918 functions.
2ba9daa7 5919 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
5920 replace_in_expr to make replacements. Call replace_single_def_regs
5921 once on the initial version of the expression.
5922
bebc6e07
RR
59232009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5924
fcb82ab0 5925 PR target/27237
bebc6e07 5926 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 5927
6b12efe9
RG
59282009-03-31 Richard Guenther <rguenther@suse.de>
5929
5930 PR middle-end/31029
5931 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
5932 equality comparisons. Fold C - X CMP X if C % 2 == 1.
5933
108f6c2f
RG
59342009-03-31 Richard Guenther <rguenther@suse.de>
5935
5936 * tree.h (div_if_zero_remainder): Declare.
5937 * fold-const.c (div_if_zero_remainder): Export.
5938 * tree-ssa-forwprop.c
5939 (forward_propagate_addr_into_variable_array_index): Handle
5940 constant array index addition outside of the variable index.
5941
8f612190
JM
59422009-03-31 Joseph Myers <joseph@codesourcery.com>
5943
5944 PR target/39592
5945 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
5946 define_splits, floatunssi<mode>2): Require x87 conversions from
5947 DImode to be permitted.
5948
47580d22
JM
59492009-03-31 Joseph Myers <joseph@codesourcery.com>
5950
5951 PR preprocessor/15638
5952 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
5953
ba4d8f9d
RG
59542009-03-31 Richard Guenther <rguenther@suse.de>
5955
5956 PR middle-end/23401
5957 PR middle-end/27810
5958 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
5959 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
5960 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
5961 a separate statement.
5962 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
5963 (lookup_tmp_var): Likewise.
5964 (is_gimple_formal_tmp_or_call_rhs): Remove.
5965 (is_gimple_reg_or_call_rhs): Rename to ...
5966 (is_gimple_reg_rhs_or_call): ... this.
5967 (is_gimple_mem_or_call_rhs): Rename to ...
5968 (is_gimple_mem_rhs_or_call): ... this.
5969 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
5970 DECL_GIMPLE_REG_P only if is_formal is true.
5971 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
5972 for non-proper post-modify expression gimplification.
5973 (gimplify_self_mod_expr): For post-modify expressions gimplify
5974 the lvalue to a minimal lvalue.
5975 (rhs_predicate_for): Remove formal temp case.
5976 (gimplify_modify_expr_rhs): Likewise.
5977 (gimplify_addr_expr): Use is_gimple_reg.
5978 (gimplify_expr): Remove formal temp cases.
5979 (gimple_regimplify_operands): Likewise.
5980 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
5981 and FILTER_EXPR like constants.
5982 * gimple.c (walk_gimple_op): Fix val_only initialization, use
5983 is_gimple_reg.
5984 (is_gimple_formal_tmp_rhs): Remove.
5985 (is_gimple_reg_rhs): Remove special casing.
5986 (is_gimple_mem_rhs): Fix.
5987 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
5988 (is_gimple_formal_tmp_var): Remove.
5989 (is_gimple_formal_tmp_reg): Likewise.
5990 (is_gimple_min_lval): Allow invariant component ref parts.
5991 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
5992 is_gimple_formal_tmp_reg): Remove declarations.
5993 * tree-cfg.c (verify_expr): Verify that variables with address
5994 taken do not have DECL_GIMPLE_REG_P set.
5995 * tree-mudflap.c (mf_build_check_statement_for): Use
5996 force_gimple_operand instead of gimplify_expr.
5997
8de9b877
AZ
59982009-03-31 Ayal Zaks <zaks@il.ibm.com>
5999
6000 * modulo-sched.c (sms_schedule_by_order): Pass the actual
6001 schedulable rows to compute_split_row.
6002
b5e3caf2
BE
60032009-03-31 Ben Elliston <bje@au.ibm.com>
6004
6005 PR target/31635
6006 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
6007 OPT_mvrsave.
6008
9752c4ad
AM
60092009-03-31 Alan Modra <amodra@bigpond.net.au>
6010
6011 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
6012 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
6013 * configure: Regenerate.
6014 * config.in: Regenerate.
6015 * config/rs6000/rs6000.opt (mtls-markers): Add.
6016 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
6017 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
6018 (tls_ld_aix, tls_ld_sysv): Likewise.
6019 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
6020 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
6021
b597d1b6
AM
60222009-03-31 Alan Modra <amodra@bigpond.net.au>
6023
6024 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
6025
a203a221
JH
60262009-03-30 Jan Hubicka <jh@suse.cz>
6027
b597d1b6
AM
6028 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
6029 out of RESX.
6030 (tree_remove_unreachable_handlers): Cleanup EH predecestor
6031 detection and label handling.
a203a221 6032
5b0c0b2c
VM
60332009-03-30 Vladimir Makarov <vmakarov@redhat.com>
6034
6035 * ira-int.h (ira_allocno): Rename left_conflicts_num to
6036 left_conflicts_size.
6037 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
6038 ALLOCNO_LEFT_CONFLICTS_SIZE.
6039
6040 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
6041 remove_allocno_from_bucket_and_push,
6042 allocno_spill_priority_compare, push_allocnos_to_stack,
6043 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
6044 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
6045 (setup_allocno_left_conflicts_num): Ditto. Rename to
6046 setup_allocno_left_conflicts_size.
6047 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
6048 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
6049 setup_allocno_left_conflicts_size instead of
6050 setup_allocno_left_conflicts_num.
6051
6052 * ira-build.c (ira_create_allocno): Use
6053 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
6054 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 6055
9a48a93f
VM
60562009-03-30 Vladimir Makarov <vmakarov@redhat.com>
6057
6058 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
6059 instead of DF_LR_OUT.
6060
6061 * ira-lives.c (process_bb_node_lives): Ditto.
6062
6063 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
6064 instead of DF_LR_{OUT,IN}.
6065
6066 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
6067
6068 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
6069
4c936d4f
JH
60702009-03-30 Jan Hubicka <jh@suse.cz>
6071
6072 * except.c (label_to_region_map): Fix thinko.
6073
f4d9f129
SE
60742009-03-30 Steve Ellcey <sje@cup.hp.com>
6075
6076 PR middle-end/38237
6077 * tree.h (tree_find_value): New declaration.
6078 * tree.c (tree_find_value): New function.
6079 * varasm.c (assemble_external): Avoid duplicate entries on lists.
6080
b3f27c15
JJ
60812009-03-30 Jakub Jelinek <jakub@redhat.com>
6082
6083 PR debug/39563
6084 * c-decl.c (struct c_binding): Add locus field.
6085 (bind): Add locus argument, set locus field from it.
6086 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
6087 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
6088 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
6089 implicitly_declare, undeclared_variable, lookup_label,
6090 declare_label, c_make_fname_decl, c_builtin_function,
6091 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
6092 bind callers.
6093
ad41bd84 60942009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
6095
6096 PR target/38781
6097 * config/i386/i386.c (classify_argument): Check total size of
6098 structure.
6099
133f9369
MJ
61002009-03-30 Martin Jambor <mjambor@suse.cz>
6101
6102 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
6103 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
6104 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
6105 respectively.
6106
6107 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
6108 seen_variable_array_ref while also traversing a union.
6109
6110 * tree-inline.c (optimize_inline_calls): Do not call
6111 cgraph_node_remove_callees.
6112 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
6113 (pass_remove_cgraph_callee_edges): New variable.
6114 * passes.c (init_optimization_passes): Add
6115 pass_remove_cgraph_callee_edges after early inlining and before all
6116 late intraprocedural passes.
6117
6118 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
6119
1190f2eb
PB
61202009-03-30 Paolo Bonzini <bonzini@gnu.org>
6121
6122 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
6123 Fix typos in names.
6124
fedc1775
PB
61252009-03-30 Paolo Bonzini <bonzini@gnu.org>
6126
fcb82ab0
UB
6127 * combine.c (simplify_comparison): Use have_insn_for.
6128 * dojump.c (do_jump): Likewise.
fedc1775 6129
65c5ae8b
PB
61302009-03-30 Paolo Bonzini <bonzini@gnu.org>
6131
6132 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
6133 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
6134 sparc_compare_op0 like sparc_compare_emitted used to be handled.
6135 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
6136 instead of sparc_compare_emitted.
6137 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
6138 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
6139 instead of sparc_compare_emitted.
6140
d25aa7ab
PB
61412009-03-30 Paolo Bonzini <bonzini@gnu.org>
6142
6143 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
6144 enter/exit cfglayout mode.
6145 (pass_partition_block): Require it.
6146 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
6147 (combine_instructions): Track basic blocks instead of labels.
6148 (update_cfg_for_uncondjump): New.
6149 (try_combine): Use it. Update jumps after rescanning.
6150 (pass_combine): Require PROP_cfglayout.
6151 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
6152
9c9e26f5
PB
61532009-03-30 Paolo Bonzini <bonzini@gnu.org>
6154
fcb82ab0
UB
6155 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
6156 Provide/destroy PROP_cfglayout respectively.
6157 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
6158 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 6159
28ddeea1
PB
61602009-03-30 Paolo Bonzini <bonzini@gnu.org>
6161
6162 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
6163 fold_convert_const_fixed_from_fixed,
6164 fold_convert_const_fixed_from_int,
6165 fold_convert_const_fixed_from_real, fold_negate_const): Do not
6166 set TREE_CONSTANT_OVERFLOW.
6167 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
6168 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
6169
ebfd146a
IR
61702009-03-30 Ira Rosen <irar@il.ibm.com>
6171
6172 * tree-vect-loop-manip.c: New file.
6173 * tree-vectorizer.c: Update documentation and included files.
6174 (vect_loop_location): Make extern.
6175 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
6176 (rename_variables_in_bb, rename_variables_in_loop,
6177 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
6178 slpeel_update_phi_nodes_for_guard1,
6179 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
6180 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
6181 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 6182 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
6183 find_loop_location): Likewise.
6184 (new_stmt_vec_info): Move to tree-vect-stmts.c.
6185 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
6186 get_vectype_for_scalar_type, vect_is_simple_use,
6187 supportable_widening_operation, supportable_narrowing_operation):
6188 Likewise.
6189 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
6190 (new_loop_vec_info, destroy_loop_vec_info,
6191 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
6192 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
6193 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
6194 (vect_supportable_dr_alignment): Likewise.
6195 * tree-vectorizer.h (tree-data-ref.h): Include.
6196 (vect_loop_location): Declare.
6197 Reorganize function declarations according to the new file structure.
6198 * tree-vect-loop.c: New file.
2ba9daa7 6199 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
6200 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
6201 * tree-vect-data-refs.c: New file.
6202 * tree-vect-patterns.c (timevar.h): Don't include.
6203 * tree-vect-stmts.c: New file.
2ba9daa7 6204 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 6205 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
6206 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
6207 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
6208 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
6209 (tree-vect-analyze.o): Remove.
6210 (tree-vect-transform.o): Likewise.
6211 (tree-vect-data-refs.o): Add rule.
2ba9daa7 6212 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
6213 tree-vect-slp.o): Likewise.
6214 (tree-vect-patterns.o): Remove redundant dependencies.
6215 (tree-vectorizer.o): Likewise.
6216 * tree-vect-slp.c: New file.
6217
40a1cfba
RW
62182009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6219
6220 * optc-gen.awk: Warn if an option flag has multiple different
6221 help strings.
6222
a9a7a9a2
SP
62232009-03-30 Sebastian Pop <sebastian.pop@amd.com>
6224
6225 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
6226 -floop-block): Document dependences on PPL, CLooG and Graphite.
6227
8ce94e44
JM
62282009-03-30 Joseph Myers <joseph@codesourcery.com>
6229
6230 PR rtl-optimization/323
6231 * c-common.c (c_fully_fold, convert_and_check,
6232 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
6233 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
6234 * c-common.def (EXCESS_PRECISION_EXPR): New.
6235 * c-cppbuiltin.c (builtin_define_float_constants): Define
6236 constants with enough digits for long double.
6237 * c-lex.c (interpret_float): Interpret constant with excess
6238 precision where appropriate.
6239 * c-opts.c (c_common_post_options): Set
6240 flag_excess_precision_cmdline. Give an error for
6241 -fexcess-precision=standard for C++ for processors where the
6242 option is significant.
6243 * c-parser.c (c_parser_conditional_expression): Handle excess
6244 precision in condition.
6245 * c-typeck.c (convert_arguments): Handle arguments with excess
6246 precision.
6247 (build_unary_op): Move excess precision outside operation.
6248 (build_conditional_expr): Likewise.
6249 (build_compound_expr): Likewise.
6250 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
6251 (build_modify_expr): Handle excess precision in RHS.
6252 (convert_for_assignment): Handle excess precision in converted
6253 value.
6254 (digest_init, output_init_element, process_init_element): Handle
6255 excess precision in initializer.
6256 (c_finish_return): Handle excess precision in return value.
6257 (build_binary_op): Handle excess precision in operands and add
6258 excess precision as needed for operation.
6259 * common.opt (-fexcess-precision=): New option.
6260 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
6261 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6262 For standard excess precision, output explicit conversion to and
6263 truncation from XFmode.
6264 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
6265 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
6266 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
6267 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
6268 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
6269 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
6270 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
6271 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
6272 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
6273 define_splits, sqrt<mode>2): Disable where appropriate for
6274 standard excess precision.
6275 * convert.c (convert_to_real): Do not shorten arithmetic to type
6276 for which excess precision would be used.
6277 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
6278 * doc/invoke.texi (-fexcess-precision=): Document option.
6279 (-mfpmath=): Correct index entry.
6280 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
6281 flag_excess_precision): New.
6282 * langhooks.c (lhd_post_options): Set
6283 flag_excess_precision_cmdline.
6284 * opts.c (common_handle_option): Handle -fexcess-precision=.
6285 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
6286 init_excess_precision): New.
6287 (lang_dependent_init_target): Call init_excess_precision.
6288 * tree.c (excess_precision_type): New.
6289 * tree.h (excess_precision_type): Declare.
6290
1e57bf47
JM
62912009-03-30 Joseph Myers <joseph@codesourcery.com>
6292
6293 PR c/35235
6294 * c-typeck.c (build_component_ref): Do not copy qualifiers from
6295 non-lvalue to component.
6296
148e4216
JM
62972009-03-29 Joseph Myers <joseph@codesourcery.com>
6298
6299 PR preprocessor/34695
6300 * Makefile.in (c-opts.o): Depend on c-tree.h.
6301 * c-common.c: Move down include of diagnostic.h.
6302 (done_lexing, c_cpp_error): New.
6303 * c-common.h (done_lexing): Declare.
6304 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
6305 (parse_in).
6306 * c-opts.c: Include c-tree.h.
6307 (c_common_init_options): Set preprocessor error callback.
6308 (c_common_handle_option): Do not set preprocessor
6309 inhibit_warnings, warnings_are_errors, warn_system_headers,
6310 pedantic_errors or inhibit_warnings flags.
6311 (c_common_post_options): Do not check cpp_errors (parse_in).
6312 (c_common_finish): Do not output dependencies if there were
6313 errors. Do not check return value of cpp_finish.
6314 * c-ppoutput.c (pp_file_change): Set input_location.
6315 * c-tree.h (c_cpp_error): Declare.
6316 * diagnostic.c (diagnostic_set_info_translated): Also initialize
6317 override_column.
6318 (diagnostic_build_prefix): Check override_column.
6319 * diagnostic.h (diagnostic_info): Add override_column field.
6320 (diagnostic_override_column): Define.
6321
2ec5deb5
PB
63222009-03-28 Paolo Bonzini <bonzini@gnu.org>
6323
ba20e309
UB
6324 * c-common.c (c_expand_expr, c_staticp): Remove.
6325 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
6326 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
6327 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
6328 * c-gimplify.c (gimplify_compound_literal_expr,
6329 optimize_compound_literals_in_ctor): Remove.
6330 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
6331 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
6332 * c-semantics.c (emit_local_var): Remove.
6333
6334 * langhooks-def.h (lhd_expand_expr): Remove.
6335 * langhooks.c (lhd_expand_expr): Remove.
6336 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
6337
6338 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
6339 handling from c-semantics.c; don't call into langhook.
6340 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
6341 * gimplify.c (gimplify_compound_literal_expr,
6342 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
6343 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
6344 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
6345 as was done in c-gimplify.c.
6346 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
6347 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
6348 Move from c-common.h.
6349 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
6350
6351 * tree.c (staticp): Do not call langhook.
6352 * langhooks.c (lhd_staticp): Delete.
6353 * langhooks-def.h (lhd_staticp): Delete prototype.
6354 (LANG_HOOKS_STATICP): Delete.
6355 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
6356
ba20e309
UB
6357 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
6358 instead of DECL_STMTs.
2ec5deb5 6359
928c19bb
JM
63602009-03-29 Joseph Myers <joseph@codesourcery.com>
6361
6362 PR c/456
6363 PR c/5675
6364 PR c/19976
6365 PR c/29116
6366 PR c/31871
6367 PR c/35198
6368 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
6369 void_type_node.
6370 (fold_call_expr): Return a NOP_EXPR from folding rather than the
6371 contained expression.
ba20e309 6372 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
6373 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
6374 conditional expressions for C.
6375 (decl_constant_value_for_optimization): Move from
ba20e309 6376 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
6377 whether optimizing and that the expression is a VAR_DECL not of
6378 array type instead of doing such checks in the caller. Do not
6379 check pedantic. Call gcc_unreachable for C++.
6380 * c-common.def (C_MAYBE_CONST_EXPR): New.
6381 * c-common.h (c_fully_fold, c_save_expr,
6382 decl_constant_value_for_optimization): New prototypes.
6383 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
6384 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
6385 EXPR_INT_CONST_OPERANDS): Define.
6386 * c-convert.c (convert): Strip nops from expression.
6387 * c-decl.c (groktypename): Take extra parameters expr and
6388 expr_const_operands. Update call to grokdeclarator.
6389 (start_decl): Update call to grokdeclarator. Add statement for
6390 expressions used in type of decl.
6391 (grokparm): Update call to grokdeclarator.
6392 (push_parm_decl): Update call to grokdeclarator.
6393 (build_compound_literal): Add parameter non_const and build a
6394 C_MAYBE_COSNT_EXPR if applicable.
6395 (grokdeclarator): Take extra parameters expr and
6396 expr_const_operands. Track expressions used in declaration
6397 specifiers and declarators. Fold array sizes and track whether
6398 they are constant expressions and whether they are integer
6399 constant expressions.
6400 (parser_xref_tag): Set expr and expr_const_operands fields in
6401 return value.
6402 (grokfield): Update call to grokdeclarator.
6403 (start_function): Update call to grokdeclarator.
6404 (build_null_declspecs): Set expr and expr_const_operands fields in
6405 return value.
6406 (declspecs_add_type): Handle expressions in typeof specifiers.
6407 * c-parser.c (c_parser_declspecs): Set expr and
6408 expr_const_operands fields for declaration specifiers.
6409 (c_parser_enum_specifier): Likewise.
6410 (c_parser_struct_or_union_specifier): Likewise.
6411 (c_parser_typeof_specifier): Likewise. Update call to
6412 groktypename. Fold expression as needed. Return expressions with
6413 type instead of adding statements.
6414 (c_parser_attributes): Update calls to c_parser_expr_list.
6415 (c_parser_statement_after_labels): Fold expression before passing
6416 to objc_build_throw_stmt.
6417 (c_parser_condition): Fold expression.
6418 (c_parser_asm_operands): Fold expression.
6419 (c_parser_conditional_expression): Use c_save_expr. Update call
6420 to build_conditional_expr.
6421 (c_parser_alignof_expression): Update call to groktypename.
6422 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
6423 original_code. Fold expression argument of va_arg. Create
6424 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
6425 argument to va_arg. Update calls to groktypename. Fold array
6426 index for offsetof. Verify that first argument to
6427 __builtin_choose_expr has integer type.
6428 (c_parser_postfix_expression_after_paren_type): Update calls to
6429 groktypename and build_compound_literal. Handle expressions with
6430 side effects in type name.
6431 (c_parser_postfix_expression_after_primary): Update call to
6432 c_parser_expr_list. Set original_code for calls to
6433 __builtin_constant_p.
6434 (c_parser_expr_list): Take extra parameter fold_p. Fold
6435 expressions if requested.
6436 (c_parser_objc_type_name): Update call to groktypename.
6437 (c_parser_objc_synchronized_statement): Fold expression.
6438 (c_parser_objc_receiver): Fold expression.
6439 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
6440 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
6441 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
6442 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
6443 (struct c_typespec): Add elements expr and expr_const_operands.
6444 (struct c_declspecs): Add elements expr and expr_const_operands.
6445 (groktypename, build_conditional_expr, build_compound_literal):
6446 Update prototypes.
6447 (in_late_binary_op): Declare.
6448 * c-typeck.c (note_integer_operands): New function.
6449 (in_late_binary_op): New variable.
6450 (decl_constant_value_for_broken_optimization): Move to c-common.c
6451 and rename to decl_constant_value_for_optimization.
6452 (default_function_array_conversion): Do not strip nops.
6453 (default_conversion): Do not call
6454 decl_constant_value_for_broken_optimization.
6455 (build_array_ref): Do not fold result.
6456 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
6457 result when operand is a VLA.
6458 (c_expr_sizeof_type): Update call to groktypename. Handle
6459 expressions included in type name. Use C_MAYBE_CONST_EXPR for
6460 result when operand names a VLA type.
6461 (build_function_call): Update call to build_compound_literal.
6462 Only fold result for calls to __builtin_* functions. Strip
6463 NOP_EXPR from INTEGER_CST returned from such functions. Fold
6464 the function designator.
6465 (convert_arguments): Fold arguments. Update call to
6466 convert_for_assignment.
6467 (build_unary_op): Handle increment and decrement of
6468 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
6469 decrement earlier. Fold operand of increment and decrement.
6470 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
6471 built for integer operand. Wrap returns that are INTEGER_CSTs
6472 without being integer constant expressions or that have integer
6473 constant operands without being INTEGER_CSTs.
6474 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
6475 (build_conditional_expr): Add operand ifexp_bcp. Track whether
6476 result is an integer constant expression or can be used in
6477 unevaluated parts of one and avoid folding and wrap as
6478 appropriate. Fold operands before possibly doing -Wsign-compare
6479 warnings.
6480 (build_compound_expr): Wrap result for C99 if operands can be used
6481 in integer constant expressions.
6482 (build_c_cast): Update call to digest_init. Do not ignore
6483 overflow from casting floating-point constants to integers. Wrap
6484 results that could be confused with integer constant expressions,
6485 null pointer constants or floating-point constants.
6486 (c_cast_expr): Update call to groktypename. Handle expressions
6487 included in type name.
6488 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
6489 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
6490 Update calls to convert_for_assignment.
6491 (convert_for_assignment): Take new parameter
6492 null_pointer_constant. Do not strip nops or call
6493 decl_constant_value_for_broken_optimization. Set
6494 in_late_binary_op for conversions to boolean.
6495 (store_init_value): Update call to digest_init.
6496 (digest_init): Take new parameter null_pointer_constant. Do not
6497 call decl_constant_value_for_broken_optimization. pedwarn for
6498 initializers not constant expressions. Update calls to
6499 convert_for_assignment.
6500 (constructor_nonconst): New.
6501 (struct constructor_stack): Add nonconst element.
6502 (really_start_incremental_init, push_init_level, pop_init_level):
6503 Handle constructor_nonconst and nonconst element.
6504 (set_init_index): Call constant_expression_warning for array
6505 designators.
6506 (output_init_element): Fold value. Set constructor_nonconst as
6507 applicable. pedwarn for initializers not constant expressions.
6508 Update call to digest_init. Call constant_expression_warning
6509 where constant initializers are required.
6510 (process_init_element): Use c_save_expr.
6511 (c_finish_goto_ptr): Fold expression.
6512 (c_finish_return): Fold return value. Update call to
6513 convert_for_assignment.
6514 (c_start_case): Fold switch expression.
6515 (c_process_expr_stmt): Fold expression.
6516 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 6517 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
6518 (build_binary_op): Track whether results are integer constant
6519 expressions or may occur in such, disable folding and wrap results
6520 as applicable. Fold operands for -Wsign-compare warnings unless
6521 in_late_binary_op.
6522 (c_objc_common_truthvalue_conversion): Handle results folded to
6523 integer constants that are not integer constant expressions.
6524 * doc/extend.texi: Document when typeof operands are evaluated,
6525 that condition of __builtin_choose_expr is an integer constant
6526 expression, and more about use of __builtin_constant_p in
6527 initializers.
6528
5babbcc0
RG
65292009-03-29 Richard Guenther <rguenther@suse.de>
6530
6531 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6532 propagate addresses of array references.
6533
0340f2ba
SB
65342009-03-29 Steven Bosscher <steven@gcc.gnu.org>
6535
6536 * regmove.c (perhaps_ends_bb_p): Remove.
6537 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
6538 from INSN and check that the main loop stays within that basic block.
6539 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
6540 (regmove_forward_pass): Split out from regmove_optimize. Use
6541 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
6542 (regmove_backward_pass): Split out from regmove_optimize. Use
6543 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
6544 (regmove_optimize): Simplify.
6545
eeae74a1
L
65462009-03-29 H.J. Lu <hongjiu.lu@intel.com>
6547
6548 PR target/39545
6549 * config/i386/i386.c (classify_argument): Ignore flexible array
6550 member in struct and warn ABI change.
6551
a24078b2
L
65522009-03-29 H.J. Lu <hongjiu.lu@intel.com>
6553
6554 * config/i386/i386-protos.h (ix86_agi_dependent): New.
6555
6556 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
6557 (ix86_adjust_cost): Updated.
6558
a8da523f
JH
65592009-03-29 Jan Hubicka <jh@suse.cz>
6560
6561 PR middle-end/28850
6562 * tree-pass.h (pass_cleanup_eh): New function.
6563 (remove_unreachable_regions): Break code handling RTL
6564 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
6565 that can not be reached by runtime.
6566 (can_be_reached_by_runtime): New function.
6567 (label_to_region_map): New function.
6568 (num_eh_regions): New function.
6569 (rtl_remove_unreachable_regions): New function.
6570 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
6571 (remove_eh_region): New function.
6572 * except.h: Include sbitmap and vecprim.
6573 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
6574 num_eh_regions): Declare.
6575 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 6576 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
6577 * tree-eh.c (tree_remove_unreachable_handlers): New function.
6578 (tree_empty_eh_handler_p): New function.
6579 (cleanup_empty_eh): New function.
6580 (cleanup_eh): New function.
6581 (pass_cleanup_eh): New function.
6582
98f358e5
JH
65832009-03-29 Jan Hubicka <jh@suse.cz>
6584
6585 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
6586 for removed regions.
6587
13a9fa44
JH
65882009-03-29 Jan Hubicka <jh@suse.cz>
6589
6590 * except.c (dump_eh_tree): Dump all datastructures.
6591
e38cf733
JH
65922009-03-29 Jan Hubicka <jh@suse.cz>
6593
6594 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
6595 (duplicate_eh_regions_1): Likewise.
6596 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
6597 vector; call EH verification.
6598 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
6599 Be ready for region being removed.
6600
12802c2b
JH
66012009-03-29 Jan Hubicka <jh@suse.cz>
6602
6603 * bitmap.c (bitmap_last_set_bit): New function.
6604 * bitmap.h (bitmap_last_set_bit): Declare.
6605
4ea80a41
DA
66062009-03-29 David Ayers <ayers@fsfe.org>
6607
6608 PR objc/27377
6609 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
6610 by calling objc_compare_types and surpress warnings about
6611 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 6612
4ea80a41 66132009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
6614
6615 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
6616 call initialize_inline_failed.
6617 (initialize_inline_failed): Move it from here ...
6618 * cgraph.c (initialize_inline_failed): ... to here.
6619 (cgraph_create_edge): Call initialize_inline_failed rather than
6620 setting inline_failed directly.
6621
7fb0ee07
BE
66222009-03-29 Ben Elliston <bje@au.ibm.com>
6623
6624 PR target/32542
6625 * sysv4.opt (msdata): Improve comment.
6626 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
6627 * sysv4.h (SVR4_ASM_SPEC): Likewise.
6628
0be77bf2
BE
66292009-03-29 Ben Elliston <bje@au.ibm.com>
6630
6631 PR target/30451
6632 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
6633 load and store attributes.
6634
593812b6
BE
66352009-03-29 Ben Elliston <bje@au.ibm.com>
6636
6637 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
6638 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
6639 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
6640 * doc/extend.texi (X86 Built-in Functions): Add index entries for
6641 __builtin_infq and __builtin_huge_valq.
6642
8272d11d
AS
66432009-03-28 Anatoly Sokolov <aesok@post.ru>
6644
6645 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
6646 atmega8m1 devices.
6647 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6648 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
6649
74fe548b
XDL
66502009-03-28 Xinliang David Li <davidxl@google.com>
6651
2ba9daa7 6652 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
6653 (do_dbg_cnt): New function.
6654
33977f81
JH
66552009-03-28 Jan Hubicka <jh@suse.cz>
6656
6657 Merge from pretty-ipa:
6658
6659 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 6660
33977f81
JH
6661 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
6662 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
6663 * passes.c (function_called_by_processed_nodes_p): New.
6664 * ipa-pure-const.c (check_call): Fix handling of operands.
6665 (analyze_function): Dump debug output for skipped bodies.
6666 (local_pure_const): Use function_called_by_processed_nodes_p.
6667 * dwarf2out.c (reference_to_unused): Use output.
6668 * passes.c (do_per_function_toporder): Likewise.
6669
6670 2008-11-12 Jan Hubicka <jh@suse.cz>
6671
6672 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
6673 * ipa-pure-const.c (funct_state_d): Add can throw field; make
6674 state_set_in_source enum
6675 (check_decl): Ignore memory tags; do not set fake looping flags;
6676 dump diagnostics.
6677 (check_operand, check_tree, check_rhs_var, check_lhs_var,
6678 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
6679 (check_call, analyze_function): Rewrite.
6680 (check_stmt): New.
6681 (add_new_function): Update call of analyze_function.
6682 (generate_summary): Add call of analyze_function.
6683 (propagate): Propagate can_throw; handle state_set_in_source correctly.
6684 (local_pure_const): New function.
6685 (pass_local_pure_const): New pass.
6686 * ipa-inline.c (inline_transform): Set after_inlining.
6687 * tree-eh.c (stmt_can_throw_external): New.
6688 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
6689 work with aliasing built.
6690 * tree-flow.h (stmt_can_throw_external): New.
6691 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
6692 and local pure/const pass in early and late optimization queue.
ba20e309 6693
617f3897
MJ
66942009-03-28 Martin Jambor <mjambor@suse.cz>
6695
6696 * fold-const.c (get_pointer_modulus_and_residue): New parameter
6697 allow_func_align.
6698 (fold_binary): Allow function decl aligment consideration is the
6699 second argument is integer constant one.
6700 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
6701 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
6702 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
6703
fe89fbc5
JH
67042009-03-28 Jan Hubicka <jh@suse.cz>
6705
6706 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
6707 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
6708 * function.h (rtl_data): Add nothrow flag.
6709 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
6710 set DECL_NOTHROW for AVAILABLE functions.
6711
574872ff
JJ
67122009-03-28 Jakub Jelinek <jakub@redhat.com>
6713
b3bf8855
JJ
6714 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
6715 following vector keyword has expansion starting with pixel or bool
6716 keyword, expand vector to __vector and pixel or bool to __pixel or
6717 __bool.
6718
574872ff
JJ
6719 PR c++/39554
6720 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
6721 warn_if_disallowed_function_p): Removed.
6722 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
6723 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
6724 warning_if_disallowed_function_p.
6725 * flags.h (warn_if_disallowed_function_p,
6726 warn_disallowed_functions): Removed.
6727 * common.opt (Wdisallowed-function-list=): Removed.
6728 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
6729
b005da11
RG
67302009-03-28 Richard Guenther <rguenther@suse.de>
6731
6732 PR tree-optimization/38723
6733 * tree-ssa-pre.c (compute_avail): Add all default definitions to
6734 the entry block.
6735
1de812a6
JH
67362009-03-28 Jan Hubicka <jh@suse.cz>
6737
6738 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
6739 test introduced by my previous patch.
6740
fbb789d4
RG
67412009-03-28 Richard Guenther <rguenther@suse.de>
6742
6743 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
6744 the PHIs value undefined.
6745
6f1873a1
JH
67462009-03-28 Jan Hubicka <jh@suse.cz>
6747
6748 * tree-pass.h (pass_fixup_cfg): New pass.
6749 * ipa-inline.c (inline_transform): Set
6750 always_inline_functions_inlined/after_inlining.
6751 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
6752 (pass_fixup_cfg): New pass.
6753 * passes.c (init_optimization_passes): Add fixup_cfg.
6754
17021bc8
RG
67552009-03-28 Richard Guenther <rguenther@suse.de>
6756
6757 PR tree-optimization/38458
6758 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
6759 argument use the arguments copy-of value.
6760
e8114fba
RG
67612009-03-28 Richard Guenther <rguenther@suse.de>
6762
6763 PR tree-optimization/38180
6764 * tree-ssa-ccp.c (get_default_value): Simplify.
6765 (likely_value): Likewise.
6766 (surely_varying_stmt_p): Properly handle VOP case.
6767 (ccp_initialize): Likewise.
6768 (ccp_fold): Handle propagating through *&.
6769 (fold_const_aggregate_ref): Also handle decls.
6770
257eb6e3
JH
67712009-03-28 Jan Hubicka <jh@suse.cz>
6772
6773 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
6774 * cgraph.h (cgraph_node): Likewise.
6775 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
6776 (cgraph_reset_node): Use process flag.
6777 (cgraph_mark_functions_to_output): Likewise.
6778 (cgraph_expand_function): Likewise.
6779 (cgraph_expand_all_functions): Likewise.
6780 (cgraph_output_in_order): Likewise.
6781 * dwarf2out.c (reference_to_unused): Likewise.
6782 * passes.c do_per_function_toporder): Likewise.
6783
61a05df1
JH
67842009-03-28 Jan Hubicka <jh@suse.cz>
6785
6786 Bring from lto-branch:
ba20e309 6787
61a05df1
JH
6788 2008-09-03 Doug Kwan <dougkwan@google.com>
6789
6790 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
6791 enums instead of reason strings.
6792 * cgraph.c (cgraph_create_edge): Same.
6793 (cgraph_inline_failed_string): New function.
6794 * cgraph.h (cgraph_inline_failed_t): New enum type.
6795 (cgraph_inline_failed_string): New prototype.
6796 (struct cgraph_edge): Change type of INLINED_FAILED from constant
6797 char pointer to cgraph_inline_failed_t.
6798 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
6799 (cgraph_default_inline_p): Ditto.
60839f5d 6800 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
6801 to cgraph_inline_failed_t pointer.
6802 * cif-code.def: New file.
6803 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
6804 reason string.
6805 (cgraph_check_inline_limits): Change type of REASON to pointer to
6806 cgraph_inline_failed_t. Replace reason strings with enums.
6807 (cgraph_default_inline_p): Ditto.
6808 (cgraph_recursive_inlining_p): Ditto.
6809 (update_caller_keys): Change type of FAILED_REASON to
6810 cgraph_inline_failed_t.
6811 (cgraph_set_inline_failed): Change type of REASON to pointer to
6812 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
6813 convert enums to strings for text output.
6814 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
6815 to be of type cgraph_inline_failed_t. Replace reason strings with
6816 enums. Call cgraph_inline_failed_string to covert enums
6817 to strings for text output.
6818 (cgraph_decide_inlining): Replace reason strings with enums.
6819 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
6820 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
6821 for text output.
6822 * tree-inline.c (expand_call_inline): Change type of REASON
6823 to cgraph_inline_failed_t. Replace reason strings with enums.
6824 Call cgraph_inline_failed_string for text output.
6825 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
6826 (cgraph.o): Ditto.
6827
144e8aac
JH
68282009-03-28 Jan Hubicka <jh@suse.cz>
6829
6830 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
6831 cgraph_clone_node): Remove master clone handling.
6832 (cgraph_is_master_clone, cgraph_master_clone): Remove.
6833 * cgraph.h (master_clone): Remove.
6834 (cgraph_is_master_clone, cgraph_master_clone): Remove.
6835 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
6836 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6837
4a371c8d
JH
68382009-03-28 Jan Hubicka <jh@suse.cz>
6839
6840 * cgraph.c (cgraph_function_body_availability): Functions declared
6841 inline are always safe to assume that it is not going to be replaced.
6842
6cdb0ee3
RG
68432009-03-28 Richard Guenther <rguenther@suse.de>
6844
6845 PR tree-optimization/38513
6846 * tree-ssa-pre.c (eliminate): Remove redundant stores.
6847 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6848 EXC_PTR_EXPR and FILTER_EXPR.
6849 (get_ref_from_reference_ops): Likewise.
6850
8ca1fd76
RG
68512009-03-28 Richard Guenther <rguenther@suse.de>
6852
6853 PR tree-optimization/38968
6854 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
6855 Use FLOOR_MOD_EXPR to compute misalignment.
6856
a254e44d
RG
68572009-03-28 Richard Guenther <rguenther@suse.de>
6858
6859 PR tree-optimization/37795
6860 * tree.h (combine_comparisons): Declare.
6861 * fold-const.c (combine_comparisons): Export.
6862 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
6863 comparisons.
6864 (ifcombine_iforif): Use combine_comparisons.
6865
a8ee227c
JH
68662009-03-28 Jan Hubicka <jh@suse.cz>
6867
6868 * tree-eh.c (inlinable_call_p): New function.
6869 (make_eh_edges): Use it.
6870 (verify_eh_edges): Use it.
6871 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
6872 * except.c (reachable_next_level): Add inlinable_function argument
6873 (sjlj_find_directly_reachable_regions): Update.
6874 (add_reachable_handler): Do not set saw_any_handlers.
6875 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
6876 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
6877 Add new inlinable call parameter.
6878 (can_throw_internal, can_throw_external): Update.
6879 * except.h (can_throw_internal_1, can_throw_external_1,
6880 foreach_reachable_handler): Update declaration.
6881
52c0e446
JM
68822009-03-28 Joseph Myers <joseph@codesourcery.com>
6883
6884 * config/arm/t-arm-coff, config/h8300/coff.h,
6885 config/i386/i386-aout.h, config/i386/i386-coff.h,
6886 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
6887 config/pdp11/2bsd.h, config/rs6000/aix41.h,
6888 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
6889 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
6890 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
6891 sys-types.h: Remove.
6892 * Makefile.in: Remove protoize and fixproto support and references
6893 in comments.
6894 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
6895 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
6896 Remove.
6897 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
6898 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
6899 unprotoize$(exeext).
6900 (rest.encap): Don't depend on $(STMP_FIXPROTO)
6901 (.PHONY): Don't depend on proto.
6902 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
6903 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
6904 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
6905 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
6906 build/gen-protos.o, build/scan.o, xsys-protos.h,
6907 build/fix-header$(build_exeext), build/fix-header.o,
6908 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
6909 stmp-install-fixproto): Remove.
6910 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
6911 SYSCALLS.c or fixproto files.
6912 (install-common): Don't install protoize.
6913 (install-headers-tar, install-headers-cpio, install-headers-cp):
6914 Don't depend on $(STMP_FIXPROTO).
6915 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
6916 install fixproto files or write out fixproto settings.
6917 (uninstall): Don't uninstall protoize.
6918 * config.gcc (use_fixproto): Remove.
6919 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
6920 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
6921 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
6922 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
6923 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
6924 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
6925 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
6926 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
6927 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
6928 * config/t-vxworks (STMP_FIXPROTO): Remove.
6929 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
6930 STMP_FIXPROTO): Remove.
6931 * config.in, configure: Regenerate.
6932 * crtstuff.c (gid_t, uid_t): Don't undefine.
6933 * doc/install.texi: Change m68k-coff to m68k-elf in example.
6934 (arm-*-coff, arm-*-aout: Remove target entries.
6935 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
6936 Remove mention of AIX 4.1.
6937 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
6938 * doc/invoke.texi (Running Protoize): Remove.
6939 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
6940 (Protoize Caveats): Remove.
6941 * tsystem.h: Update comments on headers assumed to exist.
6942
20a07f44
VM
69432009-03-27 Vladimir Makarov <vmakarov@redhat.com>
6944
6945 * genautomata.c: Add a new year to the copyright. Add a new
6946 reference.
6947 (struct insn_reserv_decl): Add comments for member bypass_list.
6948 (find_bypass): Remove.
6949 (insert_bypass): New.
6950 (process_decls): Use insert_bypass.
6951 (output_internal_insn_latency_func): Output all bypasses with the
6952 same input insn in one switch case.
6953
6954 * rtl.def (define_bypass): Describe bypass choice.
6955 * doc/md.texi (define_bypass): Ditto.
6956
3a0d06c1
RB
69572009-03-27 Richard Guenther <rguenther@suse.de>
6958
6959 * gimplify.c (mark_addressable): Export.
6960 * tree-flow.h (mark_addressable): Declare.
6961 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
6962 * tree-ssa.c (verify_phi_args): Verify that address taken
6963 variables have TREE_ADDRESSABLE set.
6964
69652009-03-27 Richard Guenther <rguenther@suse.de>
6966
6967 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
6968 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
6969 Do not mark decls TREE_ADDRESSABLE.
6970 (build_fold_addr_expr): Adjust.
6971 (fold_addr_expr): Remove.
6972 (fold_unary): Use build_fold_addr_expr.
6973 (fold_comparison): Likewise.
6974 (split_address_to_core_and_offset): Likewise.
6975 * coverage.c (tree_coverage_counter_addr): Mark the array decl
6976 TREE_ADDRESSABLE.
6977 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
6978 (gimplify_modify_expr_to_memcpy): Mark source and destination
6979 addressable.
6980 * omp-low.c (create_omp_child_function): Mark the object decl
6981 TREE_ADDRESSABLE.
6982 (lower_rec_input_clauses): Mark the var we take the address of
6983 TREE_ADDRESSABLE.
6984 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
6985
2ac26e15
L
69862009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6987
6988 PR middle-end/39315
6989 * cfgexpand.c (expand_one_stack_var_at): Change alignment
6990 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
6991
472c7fbd
RG
69922009-03-27 Richard Guenther <rguenther@suse.de>
6993
6994 PR tree-optimization/39120
6995 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
6996 constraints.
6997 (handle_lhs_call): Process return constraints. Add escape
6998 constraints if necessary.
6999 (handle_const_call): Fill out return constraints. Make nested
7000 case more precise. Avoid consttmp if possible.
7001 (handle_pure_call): Fill out return constraints. Avoid
7002 callused if possible.
7003 (find_func_aliases): Simplify call handling.
7004
70052009-03-27 Richard Guenther <rguenther@suse.de>
7006
7007 PR tree-optimization/39120
7008 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
7009 as a representative.
7010 (solve_graph): Do propagate CALLUSED.
7011 (handle_pure_call): Use a scalar constraint from CALLUSED for
7012 the return value.
7013 (find_what_p_points_to): CALLUSED shall not appear in poins-to
7014 solutions.
7015
d9223014
L
70162009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7017
7018 PR c/39323
7019 * c-common.c (handle_aligned_attribute): Properly check alignment
7020 overflow. Use (1U << i) instead of (1 << i).
7021
ba20e309 7022 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
7023
7024 * expr.h (get_mem_align_offset): Updated.
7025
7026 * tree.h (tree_decl_common): Change align to "unsigned int" and
7027 move it before pointer_alias_set.
7028
689b689c
L
70292009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7030 Jakub Jelinek <jakub@redhat.com>
7031
7032 PR target/38034
7033 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
7034 gr_register_operand with gr_reg_or_0_operand.
7035 (cmpxchg_rel_di): Likewise.
7036 (sync_lock_test_and_set<mode>): Likewise.
7037
c619e982
L
70382009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7039
7040 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
7041 (true_regnum): Likewise.
7042
7043 * rtlanal.c (subreg_info): Moved to ...
7044 * rtl.h (subreg_info): Here. New.
7045 (subreg_get_info): New.
7046
7047 * rtlanal.c (subreg_get_info): Make it extern.
7048
51212b32
L
70492009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7050
7051 PR target/39472
7052 * config/i386/i386.c (ix86_abi): New.
7053 (override_options): Handle -mabi=.
ba20e309 7054 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
7055 (ix86_call_abi_override): Likewise.
7056 (init_cumulative_args): Likewise.
7057 (function_arg_advance): Likewise.
7058 (function_arg_64): Likewise.
7059 (function_arg): Likewise.
7060 (ix86_pass_by_reference): Likewise.
7061 (ix86_function_value_regno_p): Likewise.
7062 (ix86_build_builtin_va_list_abi): Likewise.
7063 (setup_incoming_varargs_64): Likewise.
7064 (is_va_list_char_pointer): Likewise.
7065 (ix86_init_machine_status): Likewise.
ba20e309 7066 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
7067 (ix86_function_type_abi): Return enum calling_abi. Rewrite
7068 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 7069 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
7070 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
7071 with ix86_abi.
7072 (ix86_fn_abi_va_list): Updated.
7073
7074 * config/i386/i386.h (ix86_abi): New.
7075 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
7076 (CONDITIONAL_REGISTER_USAGE): Likewise.
7077 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
7078 (machine_function): Likewise.
7079
7080 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
7081 with ix86_abi.
7082 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
7083 (STACK_BOUNDARY): Likewise.
7084 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
7085
7086 * config/i386/i386.opt (mabi=): New.
7087
7088 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
7089 return enum calling_abi.
7090 (ix86_function_type_abi): Likewise.
7091 (ix86_function_abi): Removed.
7092
7093 * doc/invoke.texi: Document -mabi= option for x86.
7094
7338ea63
KG
70952009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7096
7097 * builtins.c (real_dconstp): Delete.
7098 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
7099
68599f33
DS
71002009-03-27 Dodji Seketeli <dodji@redhat.com>
7101 Jakub Jelinek <jakub@redhat.com>
7102
7103 PR debug/37959
7104 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
7105 (gen_subprogram_die): When a function is explicit, generate the
7106 DW_AT_explicit attribute.
7107 * langhooks.h (struct lang_hooks_for_decls): Add
7108 function_decl_explicit_p langhook.
7109 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
7110 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
7111
9f5e9983
JJ
71122009-03-27 Jakub Jelinek <jakub@redhat.com>
7113
64d7685c
JJ
7114 * builtins.c (fold_builtin_memory_op): Optimize memmove
7115 into memcpy if we can prove source and destination don't overlap.
7116
9f5e9983
JJ
7117 * tree-inline.c: Include gt-tree-inline.h.
7118 (clone_fn_id_num): New variable.
7119 (clone_function_name): New function.
7120 (tree_function_versioning): Use it.
7121 * Makefile.in (GTFILES): Add tree-inline.c.
7122
e54d52a8
MM
71232009-03-27 Mark Mitchell <mark@codesourcery.com>
7124
7125 * BASE-VER: Change to 4.5.0.
7126
e9d51dc6
XDL
71272009-03-27 Xinliang David Li <davidxl@google.com>
7128
7129 PR tree-optimization/39557
7130 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
7131
4577cea1
XDL
71322009-03-27 Xinliang David Li <davidxl@google.com>
7133
7134 PR tree-optimization/39548
2ba9daa7 7135 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
7136 candidate check.
7137
0f7464f4
L
71382009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7139
7140 * c-common.c (pointer_int_sum): Use %wd on return from
7141 tree_low_cst.
7142
a8847a7f
L
71432009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7144
7145 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
7146 on return from tree_low_cst.
7147
b0957daf
AP
71482009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
7149
7150 PR c++/36799
ba20e309
UB
7151 * ginclude/stdarg.h (va_copy): Define also for
7152 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 7153
a5f805df
MLI
71542009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7155
7156 PR c++/35652
7157 * builtins.h (c_strlen): Do not warn here.
7158 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
7159 * c-common.c (pointer_int_sum): Take an explicit location.
7160 Warn about offsets out of bounds.
7161 * c-common.h (pointer_int_sum): Adjust declaration.
7162
6f401211
RW
71632009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7164
a5f805df
MLI
7165 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
7166 markup glitch.
6f401211 7167
5a59b39e
JJ
71682009-03-26 Jakub Jelinek <jakub@redhat.com>
7169
7170 PR c++/39554
7171 * opts.c (warn_if_disallowed_function_p): Don't assume
7172 get_callee_fndecl must return non-NULL.
7173
d5f89b53
VM
71742009-03-26 Vladimir Makarov <vmakarov@redhat.com>
7175
7176 PR rtl-optimization/39522
7177 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
7178 when reg_reloaded_valid is set.
7179
61238a79
UW
71802009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7181
7182 * config/spu/divv2df3.c: New file.
7183 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
7184 (DPBIT_FUNCS): Filter out _div_df.
7185
03f8829b
BS
71862009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
7187
7188 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
7189 a jump insn, count that jump in the distance to the loop start.
7190
9fdcdc74
KK
71912009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
7192
7193 PR target/39523
7194 * config/sh/sh.c (calc_live_regs): Fix condition for global
7195 registers except PIC_OFFSET_TABLE_REGNUM.
7196
46994828
KT
71972009-03-25 Kai Tietz <kai.tietz@onevision.com>
7198
7199 PR/39518
7200 * doc/invoke.texi (-mconsole): New.
7201 (-mcygwin): New.
7202 (-mno-cygwin): New.
7203 (-mdll): New.
7204 (-mnop-fun-dllimport): New.
7205 (-mthread): New.
7206 (-mwin32): New.
7207 (-mwindows): New.
7208 (sub section "i386 and x86-64 Windows Options"): New.
7209
60839f5d 72102009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
7211
7212 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
7213 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
7214
ae560440
RG
72152009-03-25 Richard Guenther <rguenther@suse.de>
7216
7217 PR middle-end/39497
7218 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
7219 of -Wno-error.
7220
cd510f15
AM
72212009-03-25 Andrey Belevantsev <abel@ispras.ru>
7222
7223 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
7224 neither of haifa/selective schedulers are working.
7225
44ab0f0e
RW
72262009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7227
7228 * doc/invoke.texi (Debugging Options): Fix description of
7229 -fno-merge-debug-strings.
7230
ad9646c7
HPN
72312009-03-24 Hans-Peter Nilsson <hp@axis.com>
7232
e6142656
HPN
7233 * config/cris/libgcc.ver: New version-script.
7234 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
7235
ad9646c7
HPN
7236 * configure.ac <GAS features, nop mnemonic>: Add pattern
7237 crisv32-*-* for "nop".
ba20e309 7238 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
7239 * configure: Regenerate.
7240
09ac4473
IR
72412009-03-24 Ira Rosen <irar@il.ibm.com>
7242
7243 PR tree-optimization/39529
7244 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
7245 mark_sym_for_renaming for the tag copied to the new vector
7246 pointer.
7247
d94a427e
AL
72482009-03-24 Arthur Loiret <aloiret@debian.org>
7249
ba20e309 7250 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
7251 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
7252 EXTRA_SPEC_FUNCTIONS.
7253 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
7254 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
7255 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
7256 -march and -mtune options.
7257
60839f5d 72582009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
7259
7260 * config/m68k/t-rtems: Add m5329 multilib.
7261
603f5959
DS
72622009-03-24 Dodji Seketeli <dodji@redhat.com>
7263 Jakub Jelinek <jakub@redhat.com>
7264
7265 PR debug/39524
7266 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
7267 nodes.
7268
c5cdb03f
JJ
72692009-03-23 Jakub Jelinek <jakub@redhat.com>
7270
7271 PR c/39495
7272 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
7273 instead of c_parser_expression_conv, if original_code isn't one of the
7274 4 allowed comparison codes, fail.
7275
3691626c
RG
72762009-03-23 Richard Guenther <rguenther@suse.de>
7277
7278 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
7279 * tree.h (struct tree_type): Likewise.
7280 * reload.h (struct insn_chain): Likewise.
7281 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
7282 * function.h (struct function): Likewise.
7283 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
7284
88ccb72a
JJ
72852009-03-23 Jakub Jelinek <jakub@redhat.com>
7286
7287 PR tree-optimization/39516
7288 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
7289
60839f5d 72902009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 7291
2ba9daa7 7292 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
7293 should be set true if BITS_PER_WORD of target is bigger than 32
7294
f82162f8
HPN
72952009-03-22 Hans-Peter Nilsson <hp@axis.com>
7296
7297 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
7298 Translate -B-options to -rpath-link. Correct existing
7299 rpath-link and conditionalize on !nostdlib.
7300
048fd785
RW
73012009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7302
7303 * doc/extend.texi (Function Attributes, Variable Attributes):
7304 Fix typos.
7305 * doc/invoke.texi (Debugging Options, Optimize Options)
7306 (i386 and x86-64 Options, MCore Options): Likewise.
7307
6e75c1a9
JJ
73082009-03-20 Jakub Jelinek <jakub@redhat.com>
7309
7310 PR debug/37890
7311 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
7312 it for block local namespace aliases.
7313 (gen_decl_die): Pass context_die to gen_namespace_die.
7314
ea1199ee
JJ
73152009-03-19 Jakub Jelinek <jakub@redhat.com>
7316
7317 PR c/39495
7318 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
7319 minimum or maximum value.
7320
58929c10
AO
73212009-03-19 Alexandre Oliva <aoliva@redhat.com>
7322
7323 * reginfo.c (globalize_reg): Recompute derived reg sets.
7324
60839f5d 73252009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
7326
7327 PR target/39063
7328 * libgcc2.c (mprotect): Do not use signed arguments for
7329 VirtualProtect, use DWORD arguments. Also fix the 'may
7330 be used uninitialized' warning for the np variable.
7331
f57c2f04
JJ
73322009-03-19 Jakub Jelinek <jakub@redhat.com>
7333
7334 PR target/39496
7335 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
7336 functions using regparm calling conventions when not optimizing.
7337 (ix86_function_sseregparm): Similarly for sseregparm calling
7338 conventions.
7339
9e517d61
LF
73402009-03-19 Li Feng <nemokingdom@gmail.com>
7341
7342 PR middle-end/39500
7343 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
7344 dependence if the first conflict is after niter iterations.
7345
8ef20026
HPN
73462009-03-19 Hans-Peter Nilsson <hp@axis.com>
7347
7348 PR middle-end/38609
7349 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
7350 functions with dynamic stack-pointer adjustments.
7351
64e4a1a6
BE
73522009-03-19 Ben Elliston <bje@au.ibm.com>
7353
7354 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
7355 option; change to -msdata=data.
7356
9a0f3e86
RW
73572009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7358
7359 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
7360 and -fopenmp.
7361
09bc5979
EB
73622009-03-18 Eric Botcazou <ebotcazou@adacore.com>
7363
7364 PR target/35180
7365 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
7366
332459cd
SL
73672009-03-18 Sandra Loosemore <sandra@codesourcery.com>
7368
7369 * doc/invoke.texi (Code Gen Options): Expand discussion of
7370 -fno-common.
7371
8f5929e1
JJ
73722009-03-18 Jakub Jelinek <jakub@redhat.com>
7373
7374 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
7375 * matrix-reorg.c (struct matrix_info): Likewise.
7376 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
7377 * rtl.h (struct mem_attrs): Likewise.
7378 * df.h (struct df): Likewise.
7379 * tree-data-ref.h (struct data_dependence_relation): Likewise.
7380 * ira-int.h (struct ira_allocno): Likewise.
7381 * df-scan.c (struct df_collection_rec): Likewise.
7382 * ira.c (struct equivalence): Likewise.
7383 * function.c (struct temp_slot): Likewise.
7384 * cfgloop.h (struct loop): Likewise.
7385
d130d647
JJ
7386 PR debug/39485
7387 * function.c (use_register_for_decl): When not optimizing, disregard
7388 register keyword for variables with types containing methods.
7389
9968d233
SP
73902009-03-18 Sebastian Pop <sebastian.pop@amd.com>
7391
7392 PR middle-end/39447
7393 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
7394 (is_simple_operand): Call contains_component_ref_p before calling data
7395 reference analysis that would fail on COMPONENT_REFs.
7396
7397 * tree-vrp.c (search_for_addr_array): Fix formatting.
7398
69484bfd
RG
73992009-03-18 Richard Guenther <rguenther@suse.de>
7400
7401 * tree-vect-transform.c (vect_loop_versioning): Fold the
7402 generated comparisons.
7403 * tree-vectorizer.c (set_prologue_iterations): Likewise.
7404 (slpeel_tree_peel_loop_to_edge): Likewise.
7405
66811228
RW
74062009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7407
0631b69f
RW
7408 PR middle-end/37805
7409 * opts.c (print_specific_help): In addition to `undocumented',
7410 accept `separate' and `joined' flags if passed alone. Describe
7411 output by the first matched one of those.
7412 (common_handle_option): Skip over empty strings.
7413 * gcc.c (display_help): Fix help string for `--help='.
7414 * doc/invoke.texi (Option Summary, Overall Options): With
7415 `--help=', classes and qualifiers can both be repeated, but
7416 only the latter can be negated. One should not pass only
7417 negated qualifiers. Fix markup and examples.
7418
66811228
RW
7419 Revert
7420 2008-10-14 Jakub Jelinek <jakub@redhat.com>
7421 PR middle-end/37805
7422 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
7423 and -fhelp=separate.
7424
3c072c6b
JY
74252009-03-17 Jing Yu <jingyu@google.com>
7426
7427 PR middle-end/39378
80c65208
JY
7428 * function.h (struct rtl_data): Move is_thunk from here...
7429 (struct function): ...to here.
7430 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
7431 * varasm.c (assemble_start_function): Change is_thunk from crtl to
7432 cfun.
80c65208
JY
7433 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
7434 cfun.
7435 (alpha_does_function_need_gp, alpha_start_function): Likewise.
7436 (alpha_output_function_end_prologue): Likewise.
7437 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
7438 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
7439 (rs6000_output_function_epilogue): Likewise.
7440 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 7441
9ade279b
UB
74422009-03-17 Uros Bizjak <ubizjak@gmail.com>
7443
7444 PR target/39482
7445 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
7446 from different units in a single alternative.
7447 (*truncdfsf_i387): Ditto.
7448 (*truncxfsf2_mixed): Ditto.
7449 (*truncxfdf2_mixed): Ditto.
7450
16e60c17
JJ
74512009-03-17 Jakub Jelinek <jakub@redhat.com>
7452
98381eb4
JJ
7453 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
7454 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
7455
df5deb18
JJ
7456 PR debug/39474
7457 * tree-ssa-live.c (remove_unused_locals): Don't remove local
7458 unused non-artificial variables when not optimizing.
7459
a3f596ba
JJ
7460 PR debug/39471
7461 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
7462 DW_TAG_imported_module even if decl is IMPORTED_DECL with
7463 NAMESPACE_DECL in its DECL_INITIAL.
7464
6b2b8871
JJ
7465 PR middle-end/39443
7466 * optabs.c (set_user_assembler_libfunc): New function.
7467 * expr.h (set_user_assembler_libfunc): New prototype.
7468 * c-common.c: Include libfuncs.h.
7469 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
7470 for memcmp, memset, memcpy, memmove and abort.
7471 * Makefile.in (c-common.o): Depend on libfuncs.h.
7472
16e60c17
JJ
7473 PR debug/39412
7474 * dwarf2out.c (gen_inlined_enumeration_type_die,
7475 gen_inlined_structure_type_die, gen_inlined_union_type_die,
7476 gen_tagged_type_instantiation_die): Removed.
7477 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
7478 do nothing.
7479
4d936aca
JJ
74802009-03-17 Janis Johnson <janis187@us.ibm.com>
7481
7482 PR testsuite/38526
7483 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
7484 its use.
7485 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
7486 (check-parallel-%): Ditto.
7487 (check-consistency): Ditto.
7488
4e9b2e50
KT
74892009-03-17 Kai Tietz <kai.tietz@onevision.com>
7490
7491 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
7492 local variable rhs by NULL_TREE.
7493
21440b2d
L
74942009-03-17 H.J. Lu <hongjiu.lu@intel.com>
7495
7496 PR target/39477
9ade279b 7497 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 7498
d8905c6a
L
74992009-03-17 H.J. Lu <hongjiu.lu@intel.com>
7500
7501 PR target/39476
9ade279b 7502 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
7503
75042009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
7505
7506 PR target/39473
7507 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
7508 for ms->sysv ABI calls only in 64bit mode.
7509
7510 * config/i386/i386.md (untyped_call): Support 32bit.
7511
cdcabece
L
75122009-03-16 H.J. Lu <hongjiu.lu@intel.com>
7513
7514 * doc/extend.texi: Replace x86_65 with x86_64.
7515
97b4ba9f
JJ
75162009-03-16 Jakub Jelinek <jakub@redhat.com>
7517
7518 PR tree-optimization/39455
7519 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
7520 mismatches for POINTER_TYPE_P (type).
7521 (number_of_iterations_le): Likewise.
7522
60839f5d 75232009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
7524
7525 * config/picochip/picochip.c: Removed profiling support.
7526 * config/picochip/picochip.md: Removed profiling instruction.
7527 * config/picochip/picochip.h: Removed profiling builtin.
7528
f38095f3
JM
75292009-03-16 Joseph Myers <joseph@codesourcery.com>
7530
7531 * doc/install.texi (--with-host-libstdcxx): Document.
7532
2cb4817b
AS
75332009-03-14 Anatoly Sokolov <aesok@post.ru>
7534
7535 PR target/34299
7536 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
7537 generate a warning if the function name does not begin with
7538 "__vector" and the function has either the 'signal' or 'interrupt'
7539 attribute, from here to ...
7540 (avr_declare_function_name): ...here. New function.
7541 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
7542 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
7543
39b2ac74
JJ
75442009-03-14 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR bootstrap/39454
7547 * cse.c (fold_rtx): Don't modify original const_arg1 when
7548 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
7549 separate variable instead.
7550 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
7551 from out of range shift counts.
7552 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
7553
ad41bd84 75542009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 7555
60839f5d 7556 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
7557 diagnostic.h with $(DIAGNOSTIC_H).
7558
ad41bd84 75592009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
7560
7561 PR target/39431
7562 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
7563 predicate.
7564 * config/i386/sync.md (sync_compare_and_swap<mode>,
7565 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
7566 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
7567 into a register.
7568 (sync_double_compare_and_swapdi_pic,
7569 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
7570 cmpxchg8b_pic_memory_operand instead of just memory_operand.
7571
122c59c7
L
75722009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7573
7574 PR target/39445
9ade279b 7575 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 7576
cec8874f
L
75772009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7578
7579 PR target/39327
7580 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
7581 (avx_addsubv4df3): Likewise.
7582 (*avx_addsubv4sf3): Likewise.
7583 (sse3_addsubv4sf3): Likewise.
7584
bbb52802
L
75852009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7586
7587 PR target/38824
9ade279b 7588 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 7589
a812fb07
VM
75902009-03-12 Vladimir Makarov <vmakarov@redhat.com>
7591
7592 PR debug/39432
7593 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
7594 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
7595 registers for allocnos created from user-defined variables.
7596
4caab5ba
UW
75972009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7598
7599 PR target/39181
7600 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
7601 of non-integer mode as well.
7602
498e51ca
AN
76032009-03-11 Adam Nemet <anemet@caviumnetworks.com>
7604
7605 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
7606 for functions for which the parameter types are unknown.
7607
9bfaf89d
JJ
76082009-03-11 Jakub Jelinek <jakub@redhat.com>
7609
7610 PR target/39137
9ade279b 7611 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
7612 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
7613 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
7614 * config/i386/i386.c (ix86_local_alignment): For
7615 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
7616 long long variables on the stack to avoid dynamic realignment.
7617 Allow the first argument to be a decl rather than type.
7618 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
7619
18a3bdcb
NC
76202009-03-11 Nick Clifton <nickc@redhat.com>
7621
7622 PR target/5362
40190a76
NC
7623 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
7624 options.
7625 Add description to mno-lsim option.
7626 * config/mcore/mcore.h: Remove comment about deprecated m4align
7627 option.
7628 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
7629 * doc/invoke.texi: Add description of mno-lsim and
7630 mstack-increment options.
7631
18a3bdcb
NC
7632 * config/fr30/fr30.opt: Document the -mno-lsim option.
7633 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
7634 and -mno-lsim options.
7635
dc215785
UW
76362009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7637
7638 * fold-const.c (fold_comparison): Only call fold_inf_compare
7639 if the mode supports infinities.
7640
7716876b
JM
76412009-03-11 Jason Merrill <jason@redhat.com>
7642
7643 PR debug/39086
7644 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
7645 end already did. Notice GIMPLE_CALL modifications of the result.
7646 Don't copy debug information from an ignored decl or a decl from
7647 another function.
7648
ddef83d2
RG
76492009-03-10 Richard Guenther <rguenther@suse.de>
7650 Nathan Froyd <froydnj@codesourcery.com>
7651
7652 PR middle-end/37850
9ade279b 7653 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
7654 (__divMODE3): Likewise.
7655
9a9ba8d9
JJ
76562009-03-09 Jakub Jelinek <jakub@redhat.com>
7657
7658 PR tree-optimization/39394
7659 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
7660 DECL_SIZE_UNIT of variable length FIELD_DECLs.
7661
929b7fc3
AK
76622009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7663
7664 * recog.c (verfiy_changes): Disallow renaming of hard regs in
7665 inline asms for register asm ("") declarations.
7666
1803581d
EB
76672009-03-09 Eric Botcazou <ebotcazou@adacore.com>
7668
7669 * fold-const.c (fold_unary): Fix comment.
7670
8454d27e
JH
76712009-03-07 Jan Hubicka <jh@suse.cz>
7672
7673 PR target/39361
969a5433
JJ
7674 * tree-inline.c (setup_one_parameter): Do replacement of const
7675 argument by constant in SSA form.
8454d27e 7676
3a695389
UW
76772009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7678
7679 PR middle-end/38028
7680 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
7681 determine alignment passed to assign_stack_local.
7682 (assign_parms_unsplit_complex): Likewise.
7683 * except.c (sjlj_build_landing_pads): Likewise.
7684
9f0e7885
JJ
76852009-03-06 Jakub Jelinek <jakub@redhat.com>
7686
65401a0b
JJ
7687 PR middle-end/39360
7688 * tree-flow.h (add_referenced_var): Return bool instead of void.
7689 * tree-dfa.c (add_referenced_var): Return result of
7690 referenced_var_check_and_insert call.
7691 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
7692 of referenced_var_check_and_insert.
7693
9f0e7885 7694 PR debug/39372
9ade279b 7695 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
7696 (gen_variable_die): Emit DW_AT_location on abstract static variable's
7697 DIE, don't emit it if abstract origin already has it.
7698 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
7699 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
7700
3b664bd1
JBG
77012009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7702
ba20e309 7703 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
7704 detection.
7705 (write_tm_constrs_h): Indent generated code.
7706
d8f8ca80
RR
77072009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7708
7709 * doc/extend.texi (Function Attributes): Add documentation
7710 for isr attributes.
7711
6c3d550c
JJ
77122009-03-06 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR debug/39387
7715 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
7716 take locus from its DECL_SOURCE_LOCATION instead of input_location.
7717
f9e96751
BS
77182009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
7719
7720 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
7721 the loop as bad.
7722
ee0ee7e2
JJ
77232009-03-05 Jakub Jelinek <jakub@redhat.com>
7724
7725 PR debug/39379
7726 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
7727 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
7728
6c6094f1
UB
77292009-03-05 Uros Bizjak <ubizjak@gmail.com>
7730
7731 * config/i386/i386.md (R8_REG, R9_REG): New constants.
7732 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
7733 constants instead of magic numbers.
7734 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
7735 (QI_REG_P): Ditto.
7736 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
7737 (x86_64_ms_abi_int_parameter_registers): Ditto.
7738 (x86_64_int_return_registers): Ditto.
09f8a8d3 7739 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
7740 (ix86_expand_call): Ditto for clobbered_registers array.
7741 (ix86_hard_regno_mode_ok): Ditto.
7742 (x86_extended_QIreg_mentioned_p): Ditto.
7743
b267bd41
R
77442009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
7745
6c6094f1 7746 PR tree-optimization/39349
1f3ad3f0
R
7747 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
7748
b267bd41
R
7749 * combine.c (gen_lowpart_for_combine): Use omode when generating
7750 clobber.
7751
1242bc9d
R
77522009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
7753
6c6094f1 7754 PR rtl-optimization/39235
1242bc9d
R
7755 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
7756
48f03606
ZD
77572009-03-04 Zdenek Dvorak <ook@ucw.cz>
7758
7759 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
7760
b505e785
RG
77612009-03-04 Richard Guenther <rguenther@suse.de>
7762
7763 PR tree-optimization/39362
7764 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
7765 that occur in abnormal PHIs should be varying.
7766
f017bf5e
ZD
77672009-03-04 Zdenek Dvorak <ook@ucw.cz>
7768
7769 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
7770 Extend comments.
7771 (simple_iv): Take loop as an argument instead of statement.
7772 * tree-scalar-evolution.h (simple_iv): Declaration changed.
7773 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
7774 to simple_iv.
7775 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
7776 Ditto.
7777 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
7778 * matrix-reorg.c (analyze_transpose): Ditto.
7779 * tree-data-ref.c (dr_analyze_innermost): Ditto.
7780 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
7781 * tree-predcom.c (ref_at_iteration): Ditto.
7782 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
7783
6a66f28e
RG
77842009-03-04 Richard Guenther <rguenther@suse.de>
7785
7786 PR tree-optimization/39358
7787 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
7788 escaped_id and callused_id.
7789 (solve_graph): Likewise.
7790
57e454ee
RG
77912009-03-04 Richard Guenther <rguenther@suse.de>
7792
7793 PR tree-optimization/39339
7794 * tree-sra.c (try_instantiate_multiple_fields): Make it
7795 no longer ICE on the above.
7796
a6fe9ed4
JM
77972009-03-03 Joseph Myers <joseph@codesourcery.com>
7798
7799 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
7800 that fits within Pmode.
7801
dc672951
SE
78022009-03-03 Steve Ellcey <sje@cup.hp.com>
7803
7804 PR middle-end/10109
7805 * tm.texi (LIBCALL_VALUE): Update description.
7806
8b9d598f
SE
78072009-03-03 Steve Ellcey <sje@cup.hp.com>
7808
7809 PR middle-end/34443
7810 * doc/extend.texi (section): Update description.
7811
13e4e36e
L
78122009-03-03 H.J. Lu <hongjiu.lu@intel.com>
7813
7814 PR middle-end/39345
7815 * tree-inline.c (remapped_type): New.
7816 (can_be_nonlocal): Call remapped_type instead of remap_type.
7817
067dd3c9
JJ
78182009-03-03 Jakub Jelinek <jakub@redhat.com>
7819
7820 PR fortran/39354
7821 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
7822 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
7823
9bd9f738
RG
78242009-03-03 Richard Guenther <rguenther@suse.de>
7825
7826 PR middle-end/39272
7827 * tree.c (tree_nonartificial_location): New function.
7828 * tree.h (tree_nonartificial_location): Declare.
7829 * builtins.c (expand_builtin_memory_chk): Provide location
7830 of the call location for artificial function pieces.
7831 (maybe_emit_chk_warning): Likewise.
7832 (maybe_emit_sprintf_chk_warning): Likewise.
7833 (maybe_emit_free_warning): Likewise.
7834 * expr.c (expand_expr_real_1): Likewise.
7835
f07049c8
JJ
78362009-03-03 Jakub Jelinek <jakub@redhat.com>
7837
7838 PR tree-optimization/39343
7839 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
7840 COMPONENT_REF t has ARRAY_TYPE.
7841
7d4fba4a
SP
78422009-03-02 Sebastian Pop <sebastian.pop@amd.com>
7843
7844 PR middle-end/39335
7845 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
7846 when the type precision of the induction variable should be
7847 larger than the type precision of nit.
7848 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
7849 * graphite.c (graphite_loop_normal_form): Same.
7850 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
7851
78168632
UB
78522009-03-02 Uros Bizjak <ubizjak@gmail.com>
7853
7854 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
7855 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 7856 numbers to describe clobbered registers.
78168632 7857 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
7858 * config/i386/mmx.md (mmx_emms): Ditto.
7859 (mmx_femms): Ditto.
78168632 7860
63553059
RS
78612009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
7862
7863 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
7864 of ABI_64.
7865
500a1f85
UW
78662009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7867
7868 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
7869 (spu_section_type_flags): New function.
7870
962aae34
UB
78712009-03-02 Uros Bizjak <ubizjak@gmail.com>
7872
7873 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
7874 reg_class_contents of FLOAT_REGS into a temporary.
7875
6dfb529c 78762009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 7877 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
7878
7879 PR tree-optimization/39318
7880 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
7881 information to the vectorized statement.
7882
6b5629db
UB
78832009-03-01 Uros Bizjak <ubizjak@gmail.com>
7884
434426d2
UB
7885 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
7886 variable. Use defined names instead of magic constants for REX SSE
7887 registers.
6b5629db 7888
14e5b285
RG
78892009-03-01 Richard Guenther <rguenther@suse.de>
7890
7891 PR tree-optimization/39331
7892 * omp-low.c (lower_send_shared_vars): Do not receive new
7893 values for the reference of DECL_BY_REFERENCE parms or results.
7894
526d73ab
JH
78952009-03-01 Jan Hubicka <jh@suse.cz>
7896
7897 PR debug/39267
7898 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
7899 BLOCK_NONLOCALIZED_VAR): New macros.
7900 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
7901 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
7902 gen_decl_die): Add origin argument. Allow generation of die with
7903 origin at hand only.
526d73ab 7904 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
7905 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
7906 of gen_*.
526d73ab
JH
7907 (gen_block_die): Fix checking for unused blocks.
7908 (process_scope_var): Break out from .... ; work with origins only.
7909 (decls_for_scope) ... here; process nonlocalized list.
7910 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
7911 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
7912 vars.
526d73ab
JH
7913 (dump_scope_block): Dump them.
7914 * tree-inline.c (remap_decls): Handle nonlocalized vars.
7915 (remap_block): Likewise.
7916 (can_be_nonlocal): New predicate.
7917 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
7918
7a9d3fe8
RW
79192009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7920
7921 * configure: Regenerate.
7922
b3cdf3cb
RW
79232009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7924
a16d1645 7925 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 7926 Reuse help texts for duplicate options which do not have any.
a16d1645 7927
1156c176
RW
7928 * gcc.c (display_help): Document --version.
7929
033505fc
RW
7930 * gcc.c (main): If print_help_list and verbose_flag, ensure
7931 driver output comes before subprocess output.
7932
4d077054
RW
7933 * optc-gen.awk: Assign all remaining fields to help string,
7934 space-separated, for multi-line help in *.opt.
7935
a072f1cf
RW
7936 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
7937 -Wno-pedantic-ms-format is for MinGW targets only.
7938
b3cdf3cb
RW
7939 * doc/options.texi (Option file format): Fix bad indentation,
7940 restoring dropped sentence.
7941
a3aadcc5
JH
79422009-02-28 Jan Hubicka <jh@suse.cz>
7943
7944 * tree-inline.c (tree_function_versioning): Output debug info.
7945
1cf5abb3
JH
79462009-02-28 Jan Hubicka <jh@suse.cz>
7947
7948 PR debug/39267
7949 * tree-inline.c (setup_one_parameter): Do not copy propagate
7950 arguments when not optimizing.
7951
c4d3f42f
L
79522009-02-28 H.J. Lu <hongjiu.lu@intel.com>
7953
7954 PR target/39327
7955 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
7956 (avx_addsubv4df3): Likewise.
7957 (*avx_addsubv4sf3): Likewise.
7958 (sse3_addsubv4sf3): Likewise.
7959 (*avx_addsubv2df3): Likewise.
7960 (sse3_addsubv2df3): Likewise.
7961 (avx_unpckhps256): Correct item selectors.
7962 (avx_unpcklps256): Likewise.
7963 (avx_unpckhpd256): Likewise.
7964 (avx_unpcklpd256): Likewise.
7965
eb50f5f4
JH
79662009-02-28 Jan Hubicka <jh@suse.cz>
7967
7968 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
7969 static vars.
7970 (copy_arguments_for_versioning): If var is declared don't declare it.
7971 (tree_function_versioning): First setup substitutions and then copy
7972 args.
7973
26140130
JH
79742009-02-27 Jan Hubicka <jh@suse.cz>
7975
7976 PR debug/39267
7977 * cgraph.h (varpool_output_debug_info): Remove.
7978 * cgraphunit.c (varpool_output_debug_info): Remove.
7979 * dwarf2out.c (deferred_locations_struct): New struct
7980 (deferred_locations): New type.
7981 (deferred_locations_list): New static var.
7982 (deffer_location): New function.
7983 (gen_variable_die): Use it.
7984 (decls_for_scope): Output info on local static vars.
7985 (dwarf2out_finish): Process deferred locations.
7986 * varpool.c (varpool_output_debug_info): Remove.
7987
cff7525f
JH
79882009-02-27 Jan Hubicka <jh@suse.cz>
7989
7990 PR debug/39267
7991 * tree.h (TREE_PROTECTED): Fix comment.
7992 (BLOCK_HANDLER_BLOCK): Remove.
7993 (struct tree_block): Remove handler_block add body_block.
7994 (inlined_function_outer_scope_p): New.
7995 (is_body_block): Remove.
7996 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
7997 * dwarf2out.c (is_inlined_entry_point): Remove.
7998 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
7999 (gen_block_die): Use is_inlined_entry_point check. Remove body block
8000 code.
cff7525f
JH
8001 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
8002 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
8003 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
8004 block with multiple subblocks.
cff7525f
JH
8005 (dump_scope_block): Prettier output; dump more flags and info.
8006 (dump_scope_blocks): New.
8007 (remove_unused_locals): Use dump_scope_blocks.
8008 * tree-flow.h (dump_scope_blocks): Declare.
8009 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
8010 * stmt.c (is_body_block): Remove.
8011 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
8012 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
8013
c20993b9
SP
80142009-02-27 Sebastian Pop <sebastian.pop@amd.com>
8015
8016 PR middle-end/39308
2ba9daa7 8017 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
8018 number_of_iterations_exit from a gcc_assert.
8019
e3cba5e5
AK
80202009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8021
60839f5d 8022 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
8023 jumps if COND is NULL.
8024 (find_cond_jump): New function.
8025 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 8026 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 8027
9dadeeb8
UB
80282009-02-26 Uros Bizjak <ubizjak@gmail.com>
8029
8030 * config/alpha/alpha.h (alpha_expand_mov): Return false if
8031 force_const_mem returns NULL_RTX.
8032
625d3251
EB
80332009-02-26 Jan Hubicka <jh@suse.cz>
8034
8035 PR debug/39267
8036 * cgraph.h (varpool_output_debug_info): Remove.
8037 * cgraphunit.c (varpool_output_debug_info): Remove.
8038 * dwarf2out.c (deferred_locations_struct): New struct
8039 (deferred_locations): New type.
8040 (deferred_locations_list): New static var.
8041 (deffer_location): New function.
8042 (gen_variable_die): Use it.
8043 (decls_for_scope): Output info on local static vars.
8044 (dwarf2out_finish): Process deferred locations.
8045 * varpool.c (varpool_output_debug_info): Remove.
8046
38432148 80472009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
8048
8049 PR rtl-optimization/39241
8050 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
8051 to subreg_offset_representable_p.
8052
62d049cf
PB
80532009-02-25 Paolo Bonzini <bonzini@gnu.org>
8054
8055 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
8056 execute function prototype. Get f and nregs from max_reg_num
8057 and get_insns. Remove the first backward pass as it's dead,
8058 guard the forward pass by flag_expensive_optimizations.
8059 (rest_of_handle_regmove): Delete.
8060 (pass_regmove): Replace it with regmove_optimize.
8061
f618d33e
MJ
80622009-02-25 Martin Jambor <mjambor@suse.cz>
8063
8064 PR tree-optimization/39259
8065 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 8066 calls_alloca function flags.
f618d33e
MJ
8067 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
8068 calls are detected.
8069
c8a05f7c
PB
80702009-02-25 Paolo Bonzini <bonzini@gnu.org>
8071
8072 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
8073 flags_set_1_rtx, flags_set_1_set): Delete.
8074 (regmove_optimize): Do not call mark_flags_life_zones.
8075
6d2538f5
JB
80762009-02-24 Julian Brown <julian@codesourcery.com>
8077
8078 PR target/35965
8079 * config/arm/arm.c (require_pic_register): Only set
8080 cfun->machine->pic_reg once per function.
8081
a2fa6772
SL
80822009-02-24 Sandra Loosemore <sandra@codesourcery.com>
8083
8084 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 8085 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 8086
5472de36
SE
80872009-02-24 Steve Ellcey <sje@cup.hp.com>
8088
8089 PR target/33785
8090 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
8091
844216f3
RG
80922009-02-24 Richard Guenther <rguenther@suse.de>
8093
8094 PR debug/39285
8095 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
8096
71adbef3 80972009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 8098 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
8099
8100 PR tree-optimization/39233
8101 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
8102 from converting them to a generic type.
8103
f1a558e0
SP
81042009-02-23 Sebastian Pop <sebastian.pop@amd.com>
8105
8106 PR tree-optimization/39260
8107 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
8108 contains a condition with a real type.
8109 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
8110
d8028f2c
JM
81112009-02-23 Jason Merrill <jason@redhat.com>
8112
8113 PR c++/38880
8114 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
8115 narrowing_initializer_constant_valid_p.
2ba9daa7 8116 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
8117 null_pointer_node for adding a pointer to itself.
8118
9283b513
JH
81192009-02-23 Jan Hubicka <jh@suse.cz>
8120
8121 PR c/12245
9dadeeb8
UB
8122 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
8123 resizing.
9283b513 8124
61e04322
JH
81252009-02-23 Jan Hubicka <jh@suse.cz>
8126
9dadeeb8
UB
8127 PR tree-optimization/37709
8128 * tree.c (block_ultimate_origin): Move here from dwarf2out.
8129 * tree.h (block_ultimate_origin): Declare.
8130 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
8131 * tree-ssa-live.c (remove_unused_scope_block_p):
8132 Eliminate blocks containig no instructions nor live variables nor
8133 nested blocks.
8134 (dump_scope_block): New function.
8135 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 8136 enable dumping at TDF_DETAILS.
61e04322 8137
38432148 81382009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
8139
8140 * config/i386/i386.c (classify_argument): Don't allow COImode
8141 and OImode.
8142 (function_arg_advance_32): Don't allow OImode.
8143 (function_arg_32): Likewise.
8144 (function_value_32): Likewise.
8145 (return_in_memory_32): Likewise.
8146 (function_arg_64): Remove OImode comment.
8147
38432148 81482009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
8149
8150 PR target/39261
8151 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8152 ix86_expand_vector_set for V4DImode in 64bit mode only.
8153 (ix86_expand_vector_init_one_var): Likewise.
8154
dcd739a6
SP
81552009-02-21 Sebastian Pop <sebastian.pop@amd.com>
8156
8157 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
8158
6c3b938d
RS
81592009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
8160
8e361f23 8161 PR bootstrap/39257
6c3b938d
RS
8162 * loop-iv.c: Revert last change.
8163 * emit-rtl.c: Likewise.
8164
38432148 81652009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
8166
8167 PR target/39256
8168 * config/i386/i386.c (type_natural_mode): Remove an extra
8169 space in the warning message.
8170 (function_value_32): Handle 32-byte vector modes.
8171 (return_in_memory_32): Likewise.
8172
2ec62529
RS
81732009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
8174
8175 * loop-iv.c (truncate_value): New function.
8176 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
8177 of lowpart_subreg.
8178 (lowpart_subreg): Move to...
8179 * emit-rtl.c: ...here.
8180
ecb8c3cc 81812009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 8182
ecb8c3cc
DS
8183 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
8184 accidental and undocumented change at revision 140860.
8185
ae46a823
JM
81862009-02-21 Joseph Myers <joseph@codesourcery.com>
8187
8188 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
8189 take gimple_seq * arguments.
8190 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
8191 types_compatible_p langhook.
8192
07d8efe3 81932009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 8194 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
8195
8196 * config/arm/arm.c (arm_builtin_va_list): New function.
8197 (arm_expand_builtin_va_start): Likewise.
8198 (arm_gimplify_va_arg_expr): Likewise.
8199 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
8200 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
8201 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
8202 (va_list_type): New variable.
8203 (arm_mangle_type): Mangle va_list_type appropriately.
8204
b1fb9f56
JJ
82052009-02-20 Jakub Jelinek <jakub@redhat.com>
8206
8207 PR middle-end/39157
8208 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
8209 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
8210 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
8211 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
8212 parameter to 1000 for -O1 by default.
8213 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
8214 parameter.
8215 * loop-invariant.c: Include params.h.
8216 (move_loop_invariants): Don't call move_single_loop_invariants on
8217 very large loops.
8218
5bc0807c
JM
82192009-02-20 Jaka Mocnik <jaka@xlab.si>
8220
8221 * calls.c (emit_library_call_value_1): Use slot_offset instead of
8222 offset when calculating bounds for indexing stack_usage_map. Fixes
8223 a buffer overflow with certain target setups.
8224
c69cd1f5
JJ
82252009-02-20 Jakub Jelinek <jakub@redhat.com>
8226
8227 PR target/39240
8228 * calls.c (expand_call): Clear try_tail_call if caller and callee
8229 disagree in promotion of function return value.
8230
09812622
JJ
82312009-02-19 Jakub Jelinek <jakub@redhat.com>
8232
8233 PR target/39175
8234 * c-common.c (c_determine_visibility): If visibility changed and
8235 DECL_RTL has been already set, call make_decl_rtl to update symbol
8236 flags.
8237
68017cb4
L
82382009-02-19 H.J. Lu <hongjiu.lu@intel.com>
8239
8240 PR c++/39188
8241 * varasm.c (assemble_variable): Don't check DECL_NAME when
8242 globalizing a variable.
8243
ab4194da
JM
82442009-02-19 Joseph Myers <joseph@codesourcery.com>
8245
8246 PR c/38483
8247 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
8248 expression before any __builtin_trap call.
8249 * c-typeck.c (build_function_call): Convert and check function
8250 arguments before generating a call to a trap. Evaluate the
8251 function arguments before the trap.
8252
6b67572e
UB
82532009-02-19 Uros Bizjak <ubizjak@gmail.com>
8254
8255 PR target/39228
8256 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
8257 (UNSPEC_FXAM_MEM): New unspec.
8258 (fxam<mode>2_i387_with_temp): New insn and split pattern.
8259 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
8260 memory using fxam<mode>2_i387_with_temp to remove excess precision.
8261
9e39dba6
RG
82622009-02-19 Richard Guenther <rguenther@suse.de>
8263
8264 PR tree-optimization/39207
8265 PR tree-optimization/39074
8266 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
8267 storedanything_tree): New.
8268 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 8269 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
8270 (build_succ_graph): Add edges from STOREDANYTHING to all
8271 non-direct nodes.
8272 (init_base_vars): Initialize STOREDANYTHING.
8273 (compute_points_to_sets): Free substitution info after
8274 building the succ graph.
8275 (ipa_pta_execute): Likewise.
8276
8277 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
8278 field.
8279 (do_ds_constraint): Do not add to special var or non-pointer
8280 field solutions.
8281 (type_could_have_pointers): Split out from ...
8282 (could_have_pointers): ... here. For arrays use the element type.
8283 (create_variable_info_for): Initialize may_have_pointers.
8284 (new_var_info): Likewise.
8285 (handle_lhs_call): Make the HEAP variable unknown-sized.
8286 (intra_create_variable_infos): Use a type with pointers for
8287 PARM_NOALIAS, make it unknown-sized.
8288
fd7b2603
L
82892009-02-18 H.J. Lu <hongjiu.lu@intel.com>
8290
8291 PR target/39224
6b67572e 8292 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 8293
98b80692
JM
82942009-02-18 Jason Merrill <jason@redhat.com>
8295
8296 PR target/39179
8297 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
8298 value if DECL_EXTERNAL.
8299 * tree-sra.c (sra_walk_gimple_assign): Likewise.
8300 * target.h (gcc_target::binds_local_p): Clarify "module".
8301 * tree.h (TREE_PUBLIC): Clarify "module".
8302
0705d3f4
L
83032009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
8304
8305 PR target/38891
8306 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
8307 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
8308
bce08d50
L
83092009-02-17 H.J. Lu <hongjiu.lu@intel.com>
8310
8311 PR target/39082
8312 * c.opt (Wabi): Support C and ObjC.
8313 (Wpsabi): New.
8314
8315 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
8316
8317 * config/i386/i386.c (classify_argument): Warn once about the ABI
8318 change when passing union with long double.
8319
8320 * doc/invoke.texi: Update -Wabi for warning psABI changes.
8321
5600f233
JM
83222009-02-18 Joseph Myers <joseph@codesourcery.com>
8323
8324 PR c/35447
8325 * c-parser.c (c_parser_compound_statement): Always enter and leave
8326 a scope.
8327
8cd01fe6
JDA
83282009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8329
8330 PR target/34587
8331 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
8332
418df9d7
JJ
83332009-02-18 Jakub Jelinek <jakub@redhat.com>
8334
8335 PR tree-optimization/36922
8336 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
8337 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
8338 Likewise.
8339
082d2ebb
RS
83402009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
8341
8342 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8343 to 0 for EABI64.
8344
17de576c
RS
83452009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
8346
8347 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
8348
6d8d5435
RS
83492009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
8350
8351 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
8352 tree sharing.
8353
e69ff910
RB
83542009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
8355 Richard Sandiford <rdsandiford@googlemail.com>
8356
8357 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
8358 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
8359 (loongson_biadd): ...this.
8360
6b24ee26
RG
83612009-02-17 Richard Guenther <rguenther@suse.de>
8362
8363 PR tree-optimization/39202
8364 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
8365 a var make sure to follow existing collapses.
8366
91ab2c86
RG
83672009-02-17 Richard Guenther <rguenther@suse.de>
8368
8369 PR middle-end/39214
8370 * langhooks.c (lhd_print_error_function): Check for NULL block.
8371
73a63870
RG
83722009-02-17 Richard Guenther <rguenther@suse.de>
8373
8374 PR tree-optimization/39204
8375 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
8376 of the PHI arg.
8377
0e08f686
UB
83782009-02-17 Uros Bizjak <ubizjak@gmail.com>
8379
8380 * config/soft-fp/double.h: Update from glibc CVS.
8381
a60b7ddb
RG
83822009-02-17 Richard Guenther <rguenther@suse.de>
8383
8384 PR tree-optimization/39207
8385 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
8386 strict-aliasing warnings for pointers pointing to NULL.
8387
a47e20fd
JM
83882009-02-16 Joseph Myers <joseph@codesourcery.com>
8389
8390 PR c/35446
8391 * c-parser.c (c_parser_braced_init): Call pop_init_level when
8392 skipping until next close brace.
8393
50aab7dc
L
83942009-02-16 H.J. Lu <hongjiu.lu@intel.com>
8395
8396 PR target/37049
8397 * config/i386/i386.c (ix86_expand_push): Set memory alignment
8398 to function argument boundary.
8399
68e53db0
HS
84002009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
8401
8402 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
8403 in the lea_add. Reload eventually constraints it properly.
0d50d55a 8404 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
8405 "b", since it is not needed anymore.
8406
09e361bb
JJ
84072009-02-16 Jakub Jelinek <jakub@redhat.com>
8408
8409 * gthr-dce.h: Uglify function parameter and local variable names.
8410 * gthr-gnat.h: Likewise.
8411 * gthr-mipssde.h: Likewise.
8412 * gthr-nks.h: Likewise.
8413 * gthr-posix95.h: Likewise.
8414 * gthr-posix.h: Likewise.
8415 * gthr-rtems.h: Likewise.
8416 * gthr-single.h: Likewise.
8417 * gthr-solaris.h: Likewise.
8418 * gthr-tpf.h: Likewise.
8419 * gthr-vxworks.h: Likewise.
8420 * gthr-win32.h: Likewise.
8421
47f5a48f
L
84222009-02-15 H.J. Lu <hongjiu.lu@intel.com>
8423
8424 PR target/39196
8425 * config/i386/i386.md: Restrict the new peephole2 to move
8426 between MMX/SSE registers.
8427
68c9ab45
RG
84282009-02-15 Richard Guenther <rguenther@suse.de>
8429
8430 Revert
8431 2009-02-13 Richard Guenther <rguenther@suse.de>
8432
8433 * configure.ac: Enable LFS.
8434 * configure: Re-generate.
8435 * config.in: Likewise.
8436
d7815554
UW
84372009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8438
8439 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
8440 spu_srqwbyte, spu_srqwbytebc): Define.
8441 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
8442 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
8443 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
8444 "shrqby_<mode>"): New insn-and-split patterns.
8445 * config/spu/spu.c (expand_builtin_args): Determine and return
8446 number of operands using spu_builtin_description data.
8447 (spu_expand_builtin_1): Use it.
8448
c208436c
SE
84492009-02-13 Steve Ellcey <sje@cup.hp.com>
8450
8451 PR target/38056
8452 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
8453 TARGET_CONST_GP.
8454
c2e7ba7e
L
84552009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8456
8457 PR target/39149
8458 * config/i386/i386.c (override_options): Correct warning
6c6094f1 8459 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 8460
72f4e3a7
L
84612009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8462
8463 PR target/39152
8464 * config/i386/i386.md: Restrict the new peephole2 to move
8465 between the general purpose registers.
8466
53f648e2
L
84672009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8468
8469 PR target/39162
8470 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 8471 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
8472 (function_arg_advance): Updated.
8473 (function_arg): Likewise.
8474 (ix86_function_value): Likewise.
8475 (ix86_return_in_memory): Likewise.
8476 (ix86_sol10_return_in_memory): Likewise.
8477 (ix86_gimplify_va_arg): Likewise.
8478 (function_arg_32): Don't warn ABX ABI change here.
8479 (function_arg_64): Likewise.
8480
38432148 84812009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
8482
8483 * loop-iv.c (implies_p): In the final case, test that operands 0
8484 of the two comparisons match.
8485
dd2139e7
BS
8486 * config/bfin/bfin.c (find_prev_insn_start): New function.
8487 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
8488 (find_next_insn_start): Move.
8489
601b3e1a
RG
84902009-02-13 Richard Guenther <rguenther@suse.de>
8491
8492 * configure.ac: Enable LFS.
8493 * configure: Re-generate.
8494 * config.in: Likewise.
8495
f007042e
JM
84962009-02-13 Joseph Myers <joseph@codesourcery.com>
8497
8498 PR c/35444
8499 * c-parser.c (c_parser_parms_list_declarator): Discard pending
8500 sizes on syntax error after some arguments have been parsed.
8501
3f238e8b
JJ
85022009-02-12 Jakub Jelinek <jakub@redhat.com>
8503
8504 * doc/invoke.texi (-fira): Remove.
8505
328e13b7
L
85062009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8507
8508 * caller-save.c: Replace regclass.c with reginfo.c in comments.
8509 * recog.c: Likewise.
8510 * rtl.h: Likewise.
8511
c252db20
L
85122009-02-12 Uros Bizjak <ubizjak@gmail.com>
8513
8514 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
8515 (umul_ppmm): Likewise.
8516 (count_leading_zeros): Likewise.
8517 (count_trailing_zeros): Likewise.
8518 (UMUL_TIME): Likewise.
8519
85202009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8521
ba181049
UB
8522 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
8523 soft-fp/t-softfp to tmake_file.
c252db20
L
8524
8525 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
8526 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
8527 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
8528 IA64_BUILTIN_INFQ]: New.
c252db20
L
8529 (ia64_init_builtins): Initialize __builtin_infq,
8530 __builtin_fabsq and __builtin_copysignq if not HPUX.
8531 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
8532 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
8533
8534 * config/ia64/lib1funcs.asm (__divtf3): Define only if
8535 SHARED is defined.
8536 (__fixtfti): Likewise.
8537 (__fixunstfti): Likewise.
8538 (__floattitf): Likewise.
8539
8540 * config/ia64/libgcc-glibc.ver: New.
8541 * config/ia64/t-fprules-softfp: Likewise.
8542 * config/ia64/sfp-machine.h: Likewise.
8543
8544 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
8545 (LIBGCC2_TF_CEXT): Likewise.
8546 (TF_SIZE): Likewise.
8547 (TARGET_INIT_LIBFUNCS): Likewise.
8548
ba181049 8549 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 8550 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 8551
f13eae6a
L
85522009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8553
8554 * config/i386/i386.c (construct_container): Rewrite processing
8555 BLKmode with X86_64_SSE_CLASS.
8556
12019aec
L
85572009-02-12 Paolo Bonzini <bonzini@gnu.org>
8558
8559 PR target/39152
8560 * config/i386/i386.md: Replace simplify_replace_rtx with
8561 replace_rtx in the new peephole2.
8562
28c11eb3
NS
85632009-02-12 Nathan Sidwell <nathan@codesourcery.com>
8564
8565 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
8566 loop unrolling do not happen at -O2.
8567
c7b94907
MM
85682009-02-12 Michael Matz <matz@suse.de>
8569
8570 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
8571
61e98967
JJ
85722009-02-12 Jakub Jelinek <jakub@redhat.com>
8573
8574 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
8575 for -g3.
8576
a2a237b5
BE
85772009-02-12 Ben Elliston <bje@au.ibm.com>
8578
8579 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
8580 patterns when updating the back chain. Missed in the 2009-02-10
8581 change.
8582
853eda8d
JJ
85832009-02-11 Janis Johnson <janis187@us.ibm.com>
8584
8585 * doc/extend.texi (Decimal Floating Types): Update identifier of
8586 draft TR and list of missing support.
8587
3ad6b266
JJ
85882009-02-11 Jakub Jelinek <jakub@redhat.com>
8589
8590 PR middle-end/39154
8591 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
8592 bit to variable length decl's flags, add it also to its
8593 pointer replacement variable.
8594
b058b753
UB
85952009-02-11 Uros Bizjak <ubizjak@gmail.com>
8596 Jakub Jelinek <jakub@redhat.com>
8597
8598 PR target/39118
8599 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
8600 (memory_blockage): New expander.
8601 (*memory_blockage): New insn pattern.
8602 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
8603 instead of general blockage at the end of function prologue when
8604 frame pointer is used to access red zone area. Do not emit blockage
8605 when profiling, it is emitted in generic code.
8606 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
8607 function epilogue when frame pointer is used to access red zone area.
8608
bab64f23
PB
86092009-02-11 Paolo Bonzini <bonzini@gnu.org>
8610
0ce6dcfa 8611 PR target/38824
bab64f23
PB
8612 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
8613 by arithmetic with memory operands.
8614 * config/i386/predicates.md (commutative_operator): New.
8615
8fd94bda
JJ
86162009-02-10 Janis Johnson <janis187@us.ibm.com>
8617
8618 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
8619 bulleted lists.
8620
794511d2
EB
86212009-02-10 Eric Botcazou <ebotcazou@adacore.com>
8622
8623 * alias.h (record_alias_subset): Declare.
8624 * alias.c (record_alias_subset): Make global.
8625
6da7fc87
NC
86262009-02-10 Nick Clifton <nickc@redhat.com>
8627
8628 * tree-parloops.c: Change license to GPLv3.
8629 * ipa-struct-reorg.c: Change license to GPLv3.
8630 * ipa-struct-reorg.h: Change license to GPLv3.
8631
a03813c8
SE
86322009-02-10 Steve Ellcey <sje@cup.hp.com>
8633
8634 PR c/39084
8635 * c-decl.c (start_struct): Return NULL on error.
8636
fc3103e7
JJ
86372009-02-10 Jakub Jelinek <jakub@redhat.com>
8638
9b43d37b
JJ
8639 PR middle-end/39124
8640 * cfgloopmanip.c (remove_path): Call remove_bbs after
8641 cancel_loop_tree, not before it.
8642
fc3103e7 8643 PR target/39139
b058b753 8644 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
8645 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
8646 VAR_DECLs were seen.
8647 * tree-ssa-live.c (remove_unused_locals): Recompute
8648 cfun->has_local_explicit_reg_vars.
8649 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
8650 copies or clearings if cfun->has_local_explicit_reg_vars.
8651
dbf9ee15
UB
86522009-02-10 Uros Bizjak <ubizjak@gmail.com>
8653
8654 PR target/39118
8655 * config/i386/i386.c (expand_prologue): Emit blockage at the end
8656 of function prologue when frame pointer is used to access
8657 red zone area.
8658
bdec4dc7
RG
86592009-02-10 Richard Guenther <rguenther@suse.de>
8660
8661 PR middle-end/39127
8662 * gimplify.c (gimple_regimplify_operands): Always look if
8663 we need to create a temporary.
8664
7cae94fc
RG
86652009-02-10 Richard Guenther <rguenther@suse.de>
8666
8667 PR tree-optimization/39132
8668 * tree-loop-distribution.c (todo): New global var.
8669 (generate_memset_zero): Trigger TODO_rebuild_alias.
8670 (tree_loop_distribution): Return todo.
8671
a8800687
L
86722009-02-10 H.J. Lu <hongjiu.lu@intel.com>
8673
8674 PR target/39119
8675 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
8676 (x86_64_reg_class_name): Removed.
8677 (classify_argument): Return 0 if bytes > 32. Return 0 if the
8678 first one isn't X86_64_SSE_CLASS or any other ones aren't
8679 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
8680 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
8681 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
8682 and 3 X86_64_SSEUP_CLASS.
8683 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
8684 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
8685
d4bacef0
BE
86862009-02-10 Ben Elliston <bje@au.ibm.com>
8687
8688 * config/rs6000/rs6000.md (allocate_stack): Always use an update
8689 form instruction to update the stack back chain word, even if the
8690 user has disabled the generation of update instructions.
8691 (movdi_<mode>_update_stack): New.
8692 (movsi_update_stack): Likewise.
8693 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
8694 always use an update form instruction to update the stack back
8695 chain word.
8696
01d7d2f3
SP
86972009-02-09 Sebastian Pop <sebastian.pop@amd.com>
8698
8699 PR middle-end/38953
b058b753
UB
8700 * graphite.c (if_region_set_false_region): After moving a region in
8701 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
8702 (gloog): Remove wrong fix for PR38953.
8703
e41e2ab4
UW
87042009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8705
8706 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
8707 generation due to implicit sign extension.
8708
4bb07c5d
EB
87092009-02-09 Eric Botcazou <ebotcazou@adacore.com>
8710
8711 PR middle-end/38981
8712 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
8713 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
8714
f060a261
RG
87152009-02-09 Richard Guenther <rguenther@suse.de>
8716
8717 PR middle-end/35202
8718 * convert.c (convert_to_real): Disable (float)fn((double)x)
8719 to fnf(x) conversion if errno differences may occur and
8720 -fmath-errno is set.
8721
5a7e237c
AS
87222009-02-07 Anatoly Sokolov <aesok@post.ru>
8723
8724 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
8725 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8726 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8727
feab5a67
JM
87282009-02-06 Joseph Myers <joseph@codesourcery.com>
8729
8730 PR c/35434
8731 * c-common.c (handle_alias_attribute): Disallow attribute for
8732 anything not a FUNCTION_DECL or VAR_DECL.
8733
90ef2296
JJ
87342009-02-06 Janis Johnson <janis187@us.ibm.com>
8735
8736 PR c/39035
8737 * real.c (do_compare): Special-case compare of zero against
8738 decimal float value.
8739
1de2c900
JM
87402009-02-06 Joseph Myers <joseph@codesourcery.com>
8741
8742 PR c/36432
8743 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
8744 as indicating flexible array members unless the field itself is
8745 being declarared as the incomplete array.
8746
e901811a
JH
87472009-02-06 Jan Hubicka <jh@suse.cz>
8748
8749 PR tree-optimization/38844
8750 * ipa-inline.c (try_inline): Stop inlining recursion when edge
8751 is already inlined.
8752
3cfa762b
RG
87532009-02-06 Richard Guenther <rguenther@suse.de>
8754
8755 PR middle-end/38977
8756 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
8757 fork because we may expand it as __gcov_fork.
8758
8506528c
NC
87592009-02-06 Nick Clifton <nickc@redhat.com>
8760
dbf9ee15 8761 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 8762
85169114
PB
87632009-02-06 Paolo Bonzini <bonzini@gnu.org>
8764
8765 PR tree-optimization/35659
8766 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
8767 vn_phi_eq): Shortcut if hashcode does not match.
8768 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
8769 NULL operands.
8770 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
8771 and avoid iterative_hash_expr.
8772 (FOR_EACH_VALUE_ID_IN_SET): New.
8773 (value_id_compare): Remove.
8774 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
8775 sort expressions by value id.
8776
6d39673d
KK
87772009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
8778
8779 PR target/38991
8780 * config/sh/predicates.md (general_movsrc_operand): Don't check
8781 the subreg of system registers here.
8782
e6e1c050
JJ
87832009-02-05 Jakub Jelinek <jakub@redhat.com>
8784
8785 PR c++/39106
8786 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
8787 on the copied decl.
8788
65a74b5d
PB
87892009-02-05 Paolo Bonzini <bonzini@gnu.org>
8790
8791 PR rtl-optimization/39110
8792 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
8793 addresses, not aligned ones.
8794
08e14b2a
DB
87952009-02-05 Daniel Berlin <dberlin@dberlin.org>
8796 Richard Guenther <rguenther@suse.de>
8797
8798 PR tree-optimization/39100
8799 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
8800 comment says and add edges.
8801
5006381c
JM
88022009-02-05 Joseph Myers <joseph@codesourcery.com>
8803
8804 PR c/35435
8805 * c-common.c (handle_tls_model_attribute): Ignore attribute for
8806 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
8807
2ba9daa7 88082009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
8809
8810 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
8811 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
8812 register_bb_in_sese, new_sese, free_sese): Moved.
8813 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
8814 outermost_loop_in_scop, build_scop_iteration_domain,
8815 expand_scalar_variables_ssa_name, get_vdef_before_scop,
8816 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
8817 Use loop_in_sese_p instead of loop_in_scop_p.
8818 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
8819 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
8820 (scopdet_basic_block_info): Fix bug in scop detection.
8821 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8822 eq_loop_to_cloog_loop): Remove.
8823 (nb_loops_around_loop_in_scop, nb_loop
8824 ref_nb_loops): Moved here...
8825 * graphite.h (ref_nb_loops): ... from here.
8826 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
8827 (loop_domain_dim, loop_iteration_vector_dim): Remove.
8828 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
8829 * testsuite/gcc.dg/graphite/scop-19.c: New
8830
48e8382e
PB
88312009-02-04 Paolo Bonzini <bonzini@gnu.org>
8832 Hans-Peter Nilsson <hp@axis.com>
8833
8834 PR rtl-optimization/37889
8835 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
8836 Move offset handling from PLUS to before the switch. Use new
8837 arguments when considering SYMBOL_REFs too.
8838 (rtx_addr_can_trap_p): Pass dummy offset and size.
8839 (enum may_trap_p_flags): Remove.
8840 (may_trap_p_1): Pass size from MEM_SIZE.
8841
8842 PR rtl-optimization/38921
8843 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
8844 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
8845 * rtlanal.c (may_trap_after_code_motion_p): Delete.
8846 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
8847
69349ea5
L
88482009-02-04 H.J. Lu <hongjiu.lu@intel.com>
8849
8850 AVX Programming Reference (January, 2009)
8851 * config/i386/sse.md (*vpclmulqdq): New.
8852
b545e411
JJ
88532009-02-04 Jakub Jelinek <jakub@redhat.com>
8854
8855 PR tree-optimization/38977
8856 PR gcov-profile/38292
bf9b2cc9 8857 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 8858
5b43bf05
HS
88592009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
8860
8861 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
8862 non-indexable addresses even before reload.
8863
062c4bb3
JM
88642009-02-03 Joseph Myers <joseph@codesourcery.com>
8865
8866 PR c/29129
8867 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
8868 as having variable size. Do not give an error for unnamed
8869 parameters with [*] declarators. Give a warning for type names
8870 with [*] declarators and mark them as variable size.
8871 * c-parser.c (c_parser_sizeof_expression): Do not give an error
8872 for sizeof applied to [*] type names.
8873
6175f578
AP
88742009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
8875
8876 PR C++/36607
8877 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
8878
d4f4bc84
JJ
88792009-02-03 Jakub Jelinek <jakub@redhat.com>
8880
8881 * gcc.c (process_command): Update copyright notice dates.
8882 * gcov.c (print_version): Likewise.
8883 * gcov-dump.c (print_version): Likewise.
8884 * mips-tfile.c (main): Likewise.
8885 * mips-tdump.c (main): Likewise.
8886
f6294de7
JM
88872009-02-03 Joseph Myers <joseph@codesourcery.com>
8888
8889 PR c/35433
8890 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
8891 for composite type involving a zero-length array type.
8892
754ccf7c
JJ
88932009-02-03 Jakub Jelinek <jakub@redhat.com>
8894
70f16287
JJ
8895 PR target/35318
8896 * function.c (match_asm_constraints_1): Skip over
8897 initial optional % in the constraint.
8898
754ccf7c
JJ
8899 PR inline-asm/39059
8900 * c-parser.c (c_parser_postfix_expression): If fixed point is not
8901 supported, don't accept FIXED_CSTs.
8902 * c-decl.c (finish_declspecs): Error if fixed point is not supported
8903 and _Sat is used without _Fract/_Accum. Set specs->type to
8904 integer_type_node for cts_fract/cts_accum if fixed point is not
8905 supported.
8906
965fdadf
CM
89072009-02-02 Catherine Moore <clm@codesourcery.com>
8908
dbf9ee15 8909 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 8910
2e8a796f
RS
89112009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
8912
8913 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
8914 (ABI_HAS_64BIT_SYMBOLS): Use it.
8915 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
8916
e0079468
PB
89172009-02-02 Paul Brook <paul@codesourcery.com>
8918
8919 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
8920
eca72963
JJ
89212009-02-02 Jakub Jelinek <jakub@redhat.com>
8922
8923 PR inline-asm/39058
8924 * recog.h (asm_operand_ok): Add constraints argument.
8925 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
8926 recurse on matching constraint.
8927 (check_asm_operands): Pass constraints as 3rd argument to
8928 asm_operand_ok. Don't look up matching constraint here.
8929 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
8930 to asm_operand_ok.
8931
b5bde9ff
BE
89322009-02-02 Ben Elliston <bje@au.ibm.com>
8933
8934 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
8935 TARGET_NARROW_VOLATILE_BITFIELD macro names.
8936
30f3e427
JDA
89372009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8938
be7659ba
JDA
8939 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
8940 information. Remove some obsolete information. Reorganize.
8941
30f3e427
JDA
8942 * config/pa/fptr.c: Revert license to GPL 2.
8943 * config/pa/milli64.S: Likewise.
8944
3cbfaf98
DK
89452009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
8946
8947 PR target/38904
8948 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
8949 LIBRARY name in, instead of hard-coding it.
8950 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
8951 extra target make frag to tmake_files according to EH model.
8952 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8953 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
8954 frags that define makefile variable EH_MODEL appropriately.
8955 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
8956 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
8957 to "-sjlj" according to type of EH configured.
8958 (LIBGCC_SONAME): Concatenate it to shared library base name.
8959 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
8960 to "_sjlj" according to type of EH configured.
8961 (LIBGCC_SONAME): Concatenate it to shared library base name.
8962 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
8963 (SHLIB_LINK): Add missing semicolon to if-else construct.
8964 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
8965 string value of "pe_dll" command-line option.
8966 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
8967 (SHLIB_SONAME): Use it when overriding t-cygming default.
8968 (SHLIB_IMPLIB): Override t-cygming default.
8969 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
8970 string value of "pe_dll" command-line option.
8971
8d0b6068
DK
89722009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
8973
8974 PR target/38952
8975 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 8976 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 8977
14c28276
RG
89782009-01-31 Richard Guenther <rguenther@suse.de>
8979
8980 PR tree-optimization/38937
8981 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
8982 computing the transitive closure.
8983
5f4d82c2
RG
89842009-01-30 Richard Guenther <rguenther@suse.de>
8985
8986 PR tree-optimization/39041
8987 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8988 Propagate variable indices only if the types match for this stmt.
8989
d0728ae0
JJ
89902009-01-30 Jakub Jelinek <jakub@redhat.com>
8991
8992 PR target/39013
8993 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
8994 inline but never defined.
8995
6b67572e 89962009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
8997
8998 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
8999 (*insv_h_di_reg_extimm): New insn.
9000 (*insv_l<mode>_reg_extimm): New insn.
9001
90022009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
9003
9004 * config/picochip/picochip.c (flag_conserve_stack): set
9005 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
9006 fconserve-stack. Reduce call-overhead used by inliner.
9007
9fec758d 90082009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
9009
9010 PR/38157
9011 * common.opt (flag_conserve_stack): Initialised to zero.
9012
7f1c539c
KT
90132009-01-30 Kai Tietz <kai.tietz@onevision.com>
9014
9015 PR/39002
9016 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
9017 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
9018 method.
9019
3631be48
L
90202009-01-29 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 * ira-color.c (allocno_reload_assign): Update comments.
9023 * regmove.c (regmove_optimize): Likewise.
9024
9025 * ra.h: Removed.
9026
416ac4d4
RM
90272009-01-29 Robert Millan <rmh@aybabtu.com>
9028
60839f5d
EB
9029 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
9030 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 9031 `MD_UNWIND_SUPPORT'.
60839f5d 9032 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 9033
d5e54bc1
KH
90342009-01-29 Kazu Hirata <kazu@codesourcery.com>
9035
9036 PR tree-optimization/39007
9037 * tree-loop-distribution.c (generate_builtin): Use
9038 recompute_dominator to compute the immediate dominator of the
9039 basic block just after the loop.
9040
38432148 90412009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
9042
9043 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
9044 (ASM_OUTPUT_DWARF_PCREL): Define.
9045
38432148 90462009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
9047
9048 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
9049 * doc/passes.texi: Remove entries about regclass, local-alloc, and
9050 global. Modify entries about regmove and IRA.
9051
9052 * ra-conflict.c: Remove the file.
9053
9054 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
9055
9056 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
9057 (pass_regclass_init): Rename to pass_reginfo_init.
9058
9059 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
9060
9061 * toplev.h (flag_ira): Remove.
9062
9063 * caller-save.c (setup_save_areas): Remove flag_ira.
9064
bf9b2cc9 9065 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
9066
9067 * global.c: Remove the file.
9068
ba20e309 9069 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
9070
9071 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
9072
9073 * regmove.c: Modify file description.
9074 (find_use_as_address, try_auto_increment): Define them only if
9075 AUTO_INC_DEC is defined.
9076 (replacement_quality, replace_in_call_usage, fixup_match_1,
9077 stable_and_no_regs_but_for_p): Remove.
9078 (reg_set_in_bb): Make it static.
9079 (regmove_optimize): Remove flag_ira and code which worked for
9080 !flag_ira.
9081
9082 * local-alloc.c: Remove the file.
9083
9084 * common.opt (fira): Remove.
9085
9086 * ira.c: Include except.h.
9087 (eliminable_regset): Move from global.c.
9088 (mark_elimination): Ditto. Remove flag_ira.
9089 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
9090 equiv_mem_modified, validate_equiv_mem_from_store,
9091 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
9092 contains_replace_regs, memref_referenced_p, memref_used_between_p,
9093 no_equiv, recorded_label_ref): Move from local-alloc.c.
9094 (update_equiv_regs): Ditto. Make it static.
9095 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 9096 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
9097 (build_insn_chain): Ditto. Make it static.
9098 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
9099 Rename to init_live_subregs.
9100 (gate_ira): Remove flag_ira.
9101
9102 * regclass.c: Rename reginfo.c. Change file description.
9103 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 9104 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
9105 (init_reg_sets_1): Remove code for evaluation of
9106 reg_class_superclasses and losing_caller_save_reg_set.
9107 (init_regs): Remove init_reg_autoinc.
9108 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
9109 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 9110 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
9111 (pass_regclass_init): Rename to pass_reginfo_init. Modify
9112 corresponding entries.
9113 (dump_regclass, record_operand_costs, scan_one_insn,
9114 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
9115 record_address_regs, auto_inc_dec_reg_p): Remove.
9116 (gt-regclass.h): Rename to gt-reginfo.h.
9117
9118 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 9119 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
9120
9121 * Makefile.in (RA_H): Remove.
9122 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
9123 Rename regclass.o to reginfo.o.
9124 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
9125 gt-reginfo.h.
9126 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
9127 (GTFILES): Rename regclass.c to reginfo.c.
9128
9129 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 9130 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
9131
9132 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
9133 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
9134 Remove flag_ira.
6b67572e 9135 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 9136
c95b2534 91372009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
9138
9139 PR middle-end/35854
9140 * doc/invoke.texi (rtl debug options): Complete rewrite.
9141 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
9142 to auto_inc_dec".
9143 * mode-switching.c (pass_mode_switching): Rename pass from
9144 "mode-sw" to "mode_sw".
9145 * except.c (pass_convert_to_eh_ranges): Rename pass from
9146 "eh-ranges" to "eh_ranges".
9147 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
9148 to "subreg1".
2ba9daa7
AS
9149
9150
72a54528
AM
91512009-01-29 Andrey Belevantsev <abel@ispras.ru>
9152 Alexander Monakov <amonakov@ispras.ru>
9153
9154 PR middle-end/38857
9155 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
9156 register.
9157 (move_exprs_to_boundary): Change return type and pass through
9158 should_move from move_op. Relax assert. Update usage ...
9159 (schedule_expr_on_boundary): ... here. Use should_move instead of
9160 cant_move.
9161 (move_op_orig_expr_found): Indicate that insn was disconnected from
9162 stream.
9163 (code_motion_process_successors): Do not call after_merge_succs
9164 callback if original expression was not found when traversing any of
9165 the branches.
9166 (code_motion_path_driver): Change return type. Update prototype.
9167 (move_op): Update comment. Add a new parameter (should_move). Update
9168 prototype. Set *should_move based on indication provided by
9169 move_op_orig_expr_found.
9170
001b9eb6
PH
91712009-01-28 Pat Haugen <pthaugen@us.ibm.com>
9172
9173 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
9174 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
9175 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
9176 * config/rs6000/rs6000.c (rs6000_override_options): Default
9177 avoid-indexed-addresses on for Power6, off for everything else.
9178 (avoiding_indexed_address_p): New function.
9179 (rs6000_legitimize_address): Use it.
9180 (rs6000_legitimate_address): Likewise.
9181 * config/rs6000/rs6000.md (movXX_updateX): Likewise
9182
59dc4898
KH
91832009-01-28 Kazu Hirata <kazu@codesourcery.com>
9184
9185 PR tree-optimization/38997
9186 * tree-loop-distribution.c (generate_memset_zero): Use
9187 POINTER_PLUS_EXPR for a pointer addition.
9188
07da44ab
AK
91892009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
9190
9191 * config/s390/s390.md (bswap<mode>2): New pattern added.
9192
cdc15d23
WG
91932009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
9194
9195 * config/s390/s390.md (*tls_load_31): Added type attribute.
9196
d46f24b6
WG
91972009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
9198
9199 * config/s390/s390.md: Fix a few comments.
9200
729e750f
WG
92012009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
9202
9203 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
9204 (*tm<mode>_full): Fixed z10prop attribute.
9205 (*tst<mode>_extimm): Fixed z10prop attribute.
9206 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
9207 (*tstqiCCT_cconly): Fixed z10prop attribute.
9208 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
9209 (*movsi_larl): Fixed z10prop attribute.
9210 (*movsi_zarch): Fixed z10prop attribute.
9211 (*movsi_eas): Fixed z10prop attribute.
9212 (*movhi): Fixed z10prop attribute.
9213 (*movqi): Fixed z10prop attribute.
9214 (*movstrictqi): Fixed z10prop attribute.
9215 (*mov<mode>): Fixed z10prop attribute.
9216 (*movcc): Fixed z10prop attribute.
9217 (*sethighpartdi_64): Fixed z10prop attribute.
9218 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
9219 (*negdi2_sign_cc): Fixed z10prop attribute.
9220 (*negdi2_sign): Fixed z10prop attribute.
9221 (*absdi2_sign_cc): Fixed z10prop attribute.
9222 (*absdi2_sign): Fixed z10prop attribute.
9223 (*negabsdi2_sign_cc): Fixed z10prop attribute.
9224 (*negabsdi2_sign): Fixed z10prop attribute.
9225 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
9226 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
9227 (doloop_si64): Fixed z10prop attribute.
9228 (doloop_si31): Fixed z10prop attribute.
9229 (doloop_long): Fixed z10prop attribute.
9230 (indirect_jump): Fixed z10prop attribute.
9231 (nop): Fixed z10prop attribute.
9232 (main_base_64): Fixed z10prop attribute.
9233 (reload_base_64): Fixed z10prop attribute.
9234
c7789bfb
JJ
92352009-01-28 Jakub Jelinek <jakub@redhat.com>
9236
9237 PR rtl-optimization/38740
6b67572e
UB
9238 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
9239 if !optimize.
c7789bfb
JJ
9240 * config/mips/mips.c (mips_reorg): Likewise.
9241
de081cfd
RG
92422009-01-28 Richard Guenther <rguenther@suse.de>
9243
9244 PR tree-optimization/38926
9245 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
9246 with the correct value id to a value.
9247 (do_regular_insertion): Use the value number of edoubleprime
9248 for the value number of the expr.
9249
9250 Revert
9251 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 9252
d748c406
UB
9253 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
9254 a PHI ask VN if it is already available.
9255 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
9256 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 9257
a9d386a1
JJ
92582009-01-28 Jakub Jelinek <jakub@redhat.com>
9259
9260 PR middle-end/38934
9261 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
9262 set to varying whenever max has TREE_OVERFLOW set, similarly
9263 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
9264
97a170cd
RG
92652009-01-28 Richard Guenther <rguenther@suse.de>
9266
9267 PR middle-end/38908
9268 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
9269 uninitialized aggregate uses in call arguments.
9270
89ebafc6
PB
92712009-01-28 Paolo Bonzini <bonzini@gnu.org>
9272
9273 PR tree-optimization/38984
9274 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
9275 the nothing_id variable if -fno-delete-null-pointer-checks.
9276
bef3c57b
UB
92772009-01-28 Uros Bizjak <ubizjak@gmail.com>
9278
9279 PR target/38988
9280 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
9281 (set_got_offset_rex64): Ditto.
9282
0c6390fa
L
92832009-01-27 H.J. Lu <hongjiu.lu@intel.com>
9284
9285 PR target/38941
9286 * doc/extend.texi: Improve local variable with asm reg.
9287
bee6fa6d
AN
92882009-01-27 Adam Nemet <anemet@caviumnetworks.com>
9289
9290 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
9291 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
9292 was not supplied then set warn_packed_bitfield_compat to the
9293 default value of 1.
9294 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
9295 against 1.
9296
b5c3dfbb
RG
92972009-01-27 Richard Guenther <rguenther@suse.de>
9298
9299 PR tree-optimization/38503
9300 * cfgexpand.c (expand_gimple_basic_block): Ignore
9301 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
9302 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
9303 variables that cannot have TBAA applied.
9304 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
9305 statements.
9306
d748c406 93072009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
9308
9309 PR middle-end/38969
9310 * calls.c (initialize_argument_information): Do not wrap complex
9311 arguments in SAVE_EXPR.
9312
9112bb38
AT
93132009-01-26 Andreas Tobler <a.tobler@schweiz.org>
9314
9315 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 9316 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 9317
4757704f
RG
93182009-01-26 Richard Guenther <rguenther@suse.de>
9319
9320 PR tree-optimization/38745
9321 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
9322 from special handling.
9323
e3e6cff4
RG
93242009-01-26 Richard Guenther <rguenther@suse.de>
9325
9326 PR tree-optimization/38745
9327 * tree-ssa.c (execute_update_addresses_taken): Do not include
9328 variables that cannot possibly be a register in not_reg_needs.
9329 Do not clear TREE_ADDRESSABLE on vars that may not become
9330 registers.
9331 * tree-ssa.c (update_alias_info_1): Include those in the set
9332 of addressable vars.
9333
dc874b53
RG
93342009-01-26 Richard Guenther <rguenther@suse.de>
9335
9336 PR middle-end/38851
9337 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
9338 * tree-ssa-dse.c: Include langhooks.h
9339 (execute_simple_dse): Remove stores with zero size.
9340
849421a3
JJ
93412009-01-24 Jakub Jelinek <jakub@redhat.com>
9342
9343 PR c/38957
9344 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
9345 as PLUS_EXPR.
9346
82f70421
JB
93472009-01-24 Julian Brown <julian@codesourcery.com>
9348
9349 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
9350 config/arm/linux-atomic.c.
9351 * config/arm/linux-atomic.c: New.
9352
863412d6
EB
93532009-01-24 Eric Botcazou <ebotcazou@adacore.com>
9354
9355 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
9356 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
9357 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
9358
8c684300
L
93592009-01-24 H.J. Lu <hongjiu.lu@intel.com>
9360
9361 PR c/38938
93f1527a 9362 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
9363 properly.
9364
b840fb02
SP
93652009-01-24 Sebastian Pop <sebastian.pop@amd.com>
9366
9367 PR tree-optimization/38953
9368 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
9369 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
9370 (gloog): Split the exit of the scop when the scop exit is a loop exit.
9371 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
9372 changed the CFG.
9373
ecee559f
PB
93742009-01-24 Paul Brook <paul@codesourcery.com>
9375
9376 * config/arm/neon.md (neon_type): Move to arm.md.
9377 (neon_mov<VSTRUCT>): Add neon_type attribute.
9378 * config/arm/arm.md (neon_type): Move to here.
9379 (conds): Add "unconditioal" and use as default for NEON insns.
9380
61ad0914
BE
93812009-01-24 Ben Elliston <bje@au.ibm.com>
9382
9383 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
9384 void *' warning from -Wc++-compat.
9385 * Makefile.in (dominance.o-warn): Remove.
9386
38432148 93872009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
9388
9389 PR tree-optimization/38932
9390 * fold-const.c (fold_unary_ignore_overflow): New.
9391 * tree.h (fold_unary_ignore_overflow): Declare.
9392 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
9393 * tree-ssa-sccvn.c (visit_reference_op_load,
9394 simplify_unary_expression): Likewise.
9395
2cd36c22
AN
93962009-01-22 Adam Nemet <anemet@caviumnetworks.com>
9397
9398 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
9399 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
9400 regardless of their type.
9401 * c-common.c (handle_packed_attribute): Don't ignore packed on
9402 bitfields.
9403 * c.opt (Wpacked-bitfield-compat): New warning option.
9404 * stor-layout.c (place_field): Warn if offset of a field changed.
9405 * doc/extend.texi (packed): Mention the ABI change.
9406 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
9407 (Warning Options): Add it to the list.
9408
e4e624ab
L
94092009-01-22 H.J. Lu <hongjiu.lu@intel.com>
9410
9411 * c-opts.c (c_common_post_options): Fix a typo in comments.
9412
d0ea0759
SE
94132009-01-22 Steve Ellcey <sje@cup.hp.com>
9414
9415 PR middle-end/38615
9416 * gimplify.c (gimplify_init_constructor): Fix promotion of const
9417 variables to static.
9418 * doc/invoke.texi (-fmerge-all-constants): Update description.
9419
87673f84
UB
94202009-01-22 Uros Bizjak <ubizjak@gmail.com>
9421
9422 PR target/38931
9423 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
9424 (*movdi_1_rex64): Use type "mmx" for alternative 5.
9425
96339268
RE
94262009-01-22 Richard Earnshaw <rearnsha@arm.com>
9427
9428 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
9429 a word boundary.
9430 (LOCAL_ALIGNMENT): Similarly.
9431
442dc742 94322009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 9433 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
9434
9435 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
9436 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
9437 * config/arm/arm-tune.md: Regenerate.
9438 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
9439 -march=iwmmxt2.
9440
9b34732e
MS
94412009-01-22 Mark Shinwell <shinwell@codesourcery.com>
9442
9443 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
9444 version number to five.
9445
03c2a308
DS
94462009-01-22 Dodji Seketeli <dodji@redhat.com>
9447
9448 PR c++/38930
ba20e309 9449 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
9450 * c-common.c (set_underlying_type): Likewise.
9451 (is_typedef_decl ): Likewise
9452 * tree.h: Likewise
9453 (set_underlying_type): Likewise.
9454 (is_typedef_type): Likewise.
9455
1240d76e
VM
94562009-01-21 Vladimir Makarov <vmakarov@redhat.com>
9457
9458 PR middle-end/38587
9459 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
9460 crossing setjmps.
9461
b8a1087d
DK
94622009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
9463
9464 PR bootstrap/37660
9465 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
9466 (LIBGCC_SPEC): Don't define.
9467 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
9468
435da628
UB
94692009-01-21 Uros Bizjak <ubizjak@gmail.com>
9470
9471 PR rtl-optimization/38879
9472 * alias.c (base_alias_check): Unaligned access via AND address can
9473 alias all surrounding object types except those with sizes equal
9474 or wider than the size of unaligned access.
9475
d597b3ce
DS
94762009-01-21 Dodji Seketeli <dodji@redhat.com>
9477
9478 PR c++/26693
ba20e309 9479 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 9480 * c-common.c (set_underlying_type): ... here.
435da628 9481 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
9482 the newly created typedef variant type.
9483 (is_typedef_decl ): New entry point.
9484 * tree.h: Added a new member member_types_needing_access_check to
9485 struct tree_decl_non_common.
9486 (set_underlying_type): New entry point.
9487 (is_typedef_type): Likewise.
9488
71a6fe66
BM
94892009-01-21 Bingfeng Mei <bmei@broadcom.com>
9490
9491 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
9492 Check whether two instructions have memory references that
9493 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
9494 are helper functions for traversing.
9495 * alias.h (insn_alias_sets_confilict_p): New prototypes.
9496 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
9497 not to draw dependency edge for instructions with non-conflicting
9498 alias sets.
9499
5a248274
JM
95002009-01-20 Joseph Myers <joseph@codesourcery.com>
9501
9502 PR other/38758
6b67572e
UB
9503 * longlong.h: Update copyright years. Use soft-fp license notice.
9504 Sync __clz_tab declaration with glibc.
5a248274 9505
4b84f3de
SE
95062009-01-20 Steve Ellcey <sje@cup.hp.com>
9507
9508 PR target/30687
9509 * doc/extend.texi (syscall_linkage): New.
9510 (version_id): Modify.
9511
37348bf1 95122009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 9513 Richard Guenther <rguenther@suse.de>
37348bf1
AP
9514
9515 PR tree-optimization/38747
9516 PR tree-optimization/38748
9517 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
9518 conversion if the base address is an indirect reference and the
9519 aliasing sets could cause issues.
9520
d0a58904
SP
95212009-01-20 Sebastian Pop <sebastian.pop@amd.com>
9522
2ba9daa7 9523 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
9524 explaining why these options are not documented.
9525
71e7afb2
SP
95262009-01-20 Sebastian Pop <sebastian.pop@amd.com>
9527
9528 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
9529 gimple_call_lhs is NULL.
9530
38432148 95312009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
9532
9533 PR target/38868
9534 * emit-rtl.c (adjust_address_1): Make sure memref is never
9535 overwritten.
9536
cbb8dee3
BE
95372009-01-20 Ben Elliston <bje@au.ibm.com>
9538
9539 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 9540 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
9541 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
9542 const qualifier from arg 2.
9543
72c66596
IS
95442009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9545
435da628 9546 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 9547
f68211cd
VM
95482009-01-19 Vladimir Makarov <vmakarov@redhat.com>
9549
9550 PR c/38869
9551 * rtl.h (reinit_regs): New prototype.
9552 * regclass.c: Include ira.h.
9553 (reinit_regs): New.
9554 * Makefile.in (regclass.o): Add ira.h.
9555 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
9556
6e4f1168
L
95572009-01-18 H.J. Lu <hongjiu.lu@intel.com>
9558
9559 PR target/38736
9560 * c-common.c (handle_aligned_attribute): Use
9561 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
9562 default alignment value.
9563
9564 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
9565
9566 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
9567 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
9568
9569 * doc/extend.texi: Update __attribute__ ((aligned)). Document
9570 __BIGGEST_ALIGNMENT__.
9571
9572 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
9573
890065bf
RG
95742009-01-18 Richard Guenther <rguenther@suse.de>
9575
9576 PR tree-optimization/38819
9577 * tree-flow.h (operation_could_trap_helper_p): Declare.
9578 * tree-eh.c (operation_could_trap_helper_p): Export.
9579 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
9580 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
9581 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
9582 are about to insert a possibly trapping instruction and fail
9583 in this case.
9584
a729d731
AS
95852009-01-18 Andreas Schwab <schwab@suse.de>
9586
9587 * doc/install.texi (Configuration): Remove obsolete paragraph
9588 about use of --with-gnu-ld with --with-gnu-as.
9589
a640c13b
KH
95902009-01-18 Kazu Hirata <kazu@codesourcery.com>
9591
9592 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
9593 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
9594 Follow spelling conventions.
9595
dba2cc0c
BE
95962009-01-18 Ben Elliston <bje@au.ibm.com>
9597
9598 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
9599 C++ warning about implicit conversion from void * to struct
9600 bitmap_head_def *.
9601 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 9602 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 9603
2207a498
DK
96042009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
9605
9606 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
9607
8137e465
SP
96082009-01-17 Sebastian Pop <sebastian.pop@amd.com>
9609 Tobias Grosser <tobi.grosser@amd.com>
9610
9611 * graphite.c (graphite_trans_scop_block): Do not block single
9612 nested loops.
9613
5be1c58c
AO
96142009-01-16 Alexandre Oliva <aoliva@redhat.com>
9615
9616 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
9617 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
9618 test with assertion.
9619
786ce82d
RG
96202009-01-16 Richard Guenther <rguenther@suse.de>
9621
9622 PR tree-optimization/38835
9623 PR middle-end/36227
9624 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
9625 and INT + PTR -> (INT)(PTR p+ INT) folding.
9626 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
9627
c1cb09ad
AN
96282009-01-16 Adam Nemet <anemet@caviumnetworks.com>
9629
9630 PR target/38554
9631 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
9632 the subreg from a lowpart subreg if it is also casting the value.
9633
bcab4e19
SP
96342009-01-16 Sebastian Pop <sebastian.pop@amd.com>
9635 Tobias Grosser <tobi.grosser@amd.com>
9636
9637 * graphite.c (compare_prefix_loops): New.
9638 (build_scop_canonical_schedules): Rewritten.
9639 (graphite_transform_loops): Move build_scop_canonical_schedules
9640 after build_scop_iteration_domain.
9641
0b040072
SP
96422009-01-16 Sebastian Pop <sebastian.pop@amd.com>
9643 Tobias Grosser <tobi.grosser@amd.com>
9644
2ba9daa7 9645 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
9646 the dimension of the iteration domain. Do copy the domain
9647 only when it exists.
9648 (build_scop_conditions_1): Do not call add_conditions_to_domain.
9649 (add_conditions_to_constraints): New.
9650 (can_generate_code_stmt, can_generate_code): Removed.
9651 (gloog): Do not call can_generate_code.
9652 (graphite_transform_loops): Call add_conditions_to_constraints
9653 after building the iteration domain.
9654
56c6a499
JJ
96552009-01-16 Jakub Jelinek <jakub@redhat.com>
9656
9657 PR tree-optimization/38789
9658 * tree-ssa-threadedge.c
9659 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9660 __builtin_constant_p.
9661
c95b2534 96622009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
9663
9664 * dce.c (delete_unmarked_insns): Reversed the order that insns are
9665 examined before deleting them.
2ba9daa7 9666
c433cb14
RE
96672009-01-16 Richard Earnshaw <rearnsha@arm.com>
9668
9669 * function.c (aggregate_value_p): Correctly extract the function
9670 type from CALL_EXPR_FN lookup.
9671
c95b2534 96722009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
9673
9674 * config/picochip/picochip.c (picochip_override_options): Revert
9675 CFI asm flag disable commited previously.
9676
c77bb78f
SP
96772009-01-15 Sebastian Pop <sebastian.pop@amd.com>
9678 Tobias Grosser <tobi.grosser@amd.com>
9679 Jan Sjodin <jan.sjodin@amd.com>
9680
9681 * graphite.c (scan_tree_for_params): On substractions negate
9682 all the coefficients of the term.
9683 (clast_to_gcc_expression_red): New. Handle reduction expressions
9684 of more than two operands.
9685 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
9686 (get_vdef_before_scop): Handle also the case of default definitions.
9687
574af2d6
RS
96882009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
9689
9690 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
9691 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
9692 Also use them when walking CALL_INSN_FUNCTION_USAGE.
9693
e939805b
L
96942009-01-15 H.J. Lu <hongjiu.lu@intel.com>
9695 Joey Ye <joey.ye@intel.com>
9696
9697 PR middle-end/37843
9698 * cfgexpand.c (expand_stack_alignment): Don't update stack
9699 boundary nor check incoming stack boundary here.
9700 (gimple_expand_cfg): Update stack boundary and check incoming
9701 stack boundary here.
9702
c95b2534 97032009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 9704
435da628 9705 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 9706
0196c95e
JJ
97072009-01-14 Jakub Jelinek <jakub@redhat.com>
9708
9709 PR rtl-optimization/38245
9710 * calls.c (expand_call): Add stack arguments to
9711 CALL_INSN_FUNCTION_USAGE even for pure calls (when
9712 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
9713 in regs and partially in memory or BLKmode arguments.
9714 (emit_library_call_value_1): Add stack arguments to
9715 CALL_INSN_FUNCTION_USAGE even for pure calls (when
9716 ACCUMULATE_OUTGOING_ARGS).
9717 * dce.c: Include tm_p.h.
9718 (find_call_stack_args): New function.
9719 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
9720 argument.
9721 (mark_insn): Call find_call_stack_args for CALL_Ps.
9722 (prescan_insns_for_dce): Walk insns backwards in bb rather than
9723 forwards. Allocate and free arg_stores bitmap if needed, pass it
9724 down to deletable_insn_p, don't mark stores set in arg_stores
9725 bitmap, clear the bitmap at the beginning of each bb.
9726 * Makefile.in (dce.o): Depend on $(TM_P_H).
9727
6df6bcfa
MM
97282009-01-14 Michael Meissner <gnu@the-meissners.org>
9729
9730 PR target/22599
435da628
UB
9731 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
9732 to make sure the insn is a conditional test (bug 22599). Reformat a
9733 few long lines.
6df6bcfa 9734
765ec70c
SP
97352009-01-14 Sebastian Pop <sebastian.pop@amd.com>
9736
9737 PR middle-end/38431
9738 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
9739 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
9740 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 9741 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
9742 scops have been code generated.
9743
7de2b688
BS
97442009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
9745 * doc/gty.texi (Invoking the garbage collector): Added new node
9746 and section documenting ggc_collect.
9747
10bd6c5c
RG
97482009-01-14 Richard Guenther <rguenther@suse.de>
9749
9750 PR tree-optimization/38826
9751 PR middle-end/38477
9752 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
9753 initialization notes only if we actually emitted a warning.
9754 (intra_create_variable_infos): Add constraints for a result decl
9755 that is passed by hidden reference.
9756 (build_pred_graph): Mark all related variables non-direct on
9757 address-taking.
9758
9c7c70ee
NC
97592009-01-14 Nick Clifton <nickc@redhat.com>
9760
9761 * ira-conflicts.c: Include addresses.h for the definition of
9762 base_reg_class.
435da628
UB
9763 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
9764 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 9765
cf0c2a60
VM
97662009-01-13 Vladimir Makarov <vmakarov@redhat.com>
9767
9768 PR target/38811
9769 * Makefile.in (ira-lives.o): Add except.h.
9770
9771 * ira-lives.c: Include except.h.
9772 (process_bb_node_lives): Process can_throw_internal.
9773
d3302fd3
JJ
97742009-01-13 Jakub Jelinek <jakub@redhat.com>
9775
9776 PR rtl-optimization/38774
9777 * combine.c (simplify_set): When undoing cc_use change, don't do
9778 PUT_CODE on the newly created comparison, but instead put back the
9779 old comparison.
9780
7ab23fd0
JM
97812009-01-13 Joseph Myers <joseph@codesourcery.com>
9782
9783 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
9784 values. Remove duplicate arm8 entry.
9785
f9344488
SP
97862009-01-13 Sebastian Pop <sebastian.pop@amd.com>
9787
9788 PR tree-optimization/38786
9789 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
9790 the SSA_NAME case of expand_scalar_variables_expr.
9791 Set the type of an expression to the type of its assign statement.
9792 (expand_scalar_variables_expr): Also gather the scalar computation
9793 used to index the memory access. Do not pass loop_p.
9794 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
9795 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
9796 the gimple_stmt_iterator where it inserts new code.
9797 Do not pass loop_p.
f9344488
SP
9798 (copy_bb_and_scalar_dependences): Do not pass loop_p.
9799 (translate_clast): Update call to copy_bb_and_scalar_dependences.
9800
2d8bb84d
SP
98012009-01-13 Sebastian Pop <sebastian.pop@amd.com>
9802
9803 * graphite.h (debug_value): Removed.
9804 * graphite.c (debug_value): Removed.
9805
ff128632
RE
98062009-01-13 Richard Earnshaw <rearnsha@arm.com>
9807
435da628
UB
9808 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
9809 ldrd/strd with two 32-bit instructions.
ff128632 9810
d5a0a47b
RE
98112009-01-13 Richard Earnshaw <rearnsha@arm.com>
9812
435da628
UB
9813 * config/arm/arm.c (struct processors): Pass for speed down into
9814 cost helper functions.
d5a0a47b
RE
9815 (const_ok_for_op): Handle COMPARE and inequality nodes.
9816 (arm_rtx_costs_1): Rewrite.
9817 (arm_size_rtx_costs): Update prototype.
9818 (arm_rtx_costs): Pass speed down to helper functions.
9819 (arm_slowmul_rtx_costs): Rework cost calculations.
9820 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
9821 (arm_9e_rtx_costs): Likewise.
9822
26d5bf5b
UB
98232009-01-13 Uros Bizjak <ubizjak@gmail.com>
9824
9825 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 9826 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
9827 (alpha_legitimize_address): Do not split local symbols wider than
9828 UNITS_PER_WORD into HIGH/LO_SUM parts.
9829
5d14e3d5
DS
98302009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
9831
9832 PR bootstrap/38580
9833 * gcc.c (process_command): Replace call to execvp with calls
9834 to pex_one and exit.
9835
33faafca
AS
98362009-01-03 Anatoly Sokolov <aesok@post.ru>
9837
9838 PR target/29141
9839 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
9840 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
9841 variant for devices with 3-byte PC.
ba20e309 9842 (__tablejump_elpm__): New.
33faafca 9843
634b5df5
JJ
98442009-01-12 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR c/32041
9847 * c-parser.c (c_parser_postfix_expression): Allow `->' in
9848 offsetof member-designator, handle it as `[0].'.
9849
2842bb86
JDA
98502009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9851
9852 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
9853 function when not using named sections on targets with named sections
9854 if branch distance is less than 262132.
9855
76ee70f6
RE
98562009-01-12 Richard Earnshaw <rearnsha@arm.com>
9857
9858 * combine.c (combine_instructions): Recompute
9859 optimize_this_for_speed_p for each BB in the main combine loop.
9860
f56e675d
TB
98612009-01-12 Tomas Bily <tbily@suse.cz>
9862
9863 PR middlend/38385
26d5bf5b
UB
9864 * tree-loop-distribution.c (prop_phis): New function.
9865 (generate_builtin): Call prop_phis.
9866 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 9867
c2152239
JJ
98682009-01-12 Jakub Jelinek <jakub@redhat.com>
9869
9870 PR tree-optimization/38807
9871 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
9872 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
9873
0e510b3e
AN
98742009-01-11 Adam Nemet <anemet@caviumnetworks.com>
9875
9876 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
9877 subreg of op0 to the original op0.
9878
c95b2534 98792009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
9880
9881 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 9882
53a7ff9a
MS
98832009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
9884
9885 PR debug/7055
60839f5d 9886 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
9887 starting with digits.
9888
b3a796bc
JJ
98892009-01-10 Jakub Jelinek <jakub@redhat.com>
9890
9891 PR target/38695
9892 * config/arm/arm.c (arm_is_long_call_p): Don't call
9893 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
9894
b21b850e
SB
98952009-01-09 Steven Bosscher <steven@gcc.gnu.org>
9896
9897 * regrename.c (regrename_optimize): Fix dumping.
9898 (find_oldest_value_reg): Preserve REG_POINTER.
9899 (copy_hardreg_forward_1): Likewise.
9900
e0e10d3a
DN
99012009-01-09 Diego Novillo <dnovillo@google.com>
9902
bf9b2cc9 9903 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
9904 the restrictions on its use.
9905 (gimple_uid): Tidy.
9906 (gimple_set_uid): Tidy.
9907
c9da2ae8
JJ
99082009-01-09 Jakub Jelinek <jakub@redhat.com>
9909
9910 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
9911 zero guard even if align_bytes != 0 and count is smaller than
9912 size_needed.
9913
38432148 99142009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
9915
9916 PR rtl-optimization/38495
26d5bf5b 9917 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
9918 (add_range_and_copies_from_move_list): Print all added ranges.
9919 Add ranges to memory optimized destination.
9920
260fda3d
JJ
99212009-01-09 Jakub Jelinek <jakub@redhat.com>
9922
6f6278ad
JJ
9923 PR target/38686
9924 PR target/38708
9925 * config/i386/i386.c (override_options): Reject
9926 -mstringop-strategy=rep_8byte with -m32.
9927 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
9928 to 1. Do count comparison against epilogue_size_needed at compile
9929 time even when count_exp was constant forced into register. For
9930 size_needed don't jump to epilogue, instead just avoid aligning
9931 and invoke the body algorithm. If need_zero_guard, add zero guard
9932 even if count is non-zero, but smaller than size_needed + number of
9933 bytes that could be stored for alignment.
9934 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
9935 to 1. If need_zero_guard, add zero guard even if count is non-zero,
9936 but smaller than size_needed + number of bytes that could be stored
9937 for alignment. Compare size_needed with epilogue_size_needed instead
9938 of desired_align - align, don't adjust size_needed, pass
9939 epilogue_size_needed to the epilogue expanders.
9940
260fda3d 9941 PR c/35742
26d5bf5b 9942 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 9943
67b846fa
JDA
99442009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9945
9946 * pa.c (last_address): Change to unsigned.
9947 (update_total_code_bytes): Change argument to unsigned. Don't
9948 check if insn addresses are set.
9949 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
9950 addresses are not set.
9951 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
9952
91c82473
NC
99532009-01-09 Nick Clifton <nickc@redhat.com>
9954
9955 * config/sh/symbian.c: Replace uses of DECL_INLINE with
9956 DECL_DECLARED_INLINE_P.
9957
4017e262
JJ
99582009-01-09 Jakub Jelinek <jakub@redhat.com>
9959
0a49e5c2
JJ
9960 PR middle-end/38347
9961 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
9962 GET_MODE (op0) in operand_subword_force calls.
9963
4017e262
JJ
9964 PR middle-end/38771
9965 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
9966 fold_convert arg0 operands to TREE_TYPE (op0) first.
9967
7cd06356
VM
99682009-01-08 Vladimir Makarov <vmakarov@redhat.com>
9969
9970 * params.def (ira-max-conflict-table-size): Decrease default value
9971 to 1000.
9972
96867bbd
JJ
99732009-01-08 Jakub Jelinek <jakub@redhat.com>
9974
9975 PR tree-optimization/37031
9976 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
9977 on parameter_set.
9978 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
9979 allocate it using gc instead of heap, use VEC_quick_push instead of
9980 VEC_safe_push.
9981 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
9982 instead of heap, use VEC_quick_push instead of VEC_safe_push.
9983 * tree-data-ref.h (struct access_matrix): Change matrix to gc
9984 allocated vector from heap allocated.
9985 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
9986 * tree-loop-linear.c (linear_transform_loops): Allocate nest
9987 vector only after perfect_loop_nest_depth call.
9988
68f61c3d
SP
99892009-01-08 Sebastian Pop <sebastian.pop@amd.com>
9990 Jan Sjodin <jan.sjodin@amd.com>
9991
9992 PR tree-optimization/38559
9993 * graphite.c (debug_value, copy_constraint,
9994 swap_constraint_variables, scale_constraint_variable, ): New.
9995 (get_lower_bound, get_upper_bound): Removed.
9996 (graphite_trans_bb_strip_mine): Clean up this code that works
9997 only for constant number of iterations. Fully copy upper and
9998 lower bound constraints, not only the constant part of them.
9999 * graphite.h (debug_value): Declared.
10000
82567e33
IR
100012009-01-08 Ira Rosen <irar@il.ibm.com>
10002
10003 PR tree-optimization/37194
10004 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 10005 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
10006 outside cost in case of known number of iterations.
10007
7da13f1d
NF
100082009-01-07 Nathan Froyd <froydnj@codesourcery.com>
10009 Alan Modra <amodra@bigpond.net.au>
10010
10011 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
10012 non-word-aligned REG+CONST addressing.
10013
c0f64575
UB
100142009-01-07 Uros Bizjak <ubizjak@gmail.com>
10015
10016 PR target/38706
10017 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
10018 free_after_compilation when outputting a thunk.
10019 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
10020 Do not call free_after_compilation here.
10021
301b6a4e
UB
100222009-01-07 Uros Bizjak <ubizjak@gmail.com>
10023
10024 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
10025 (ix86_valid_target_attribute_inner_p): Ditto.
10026
6a114766
JS
100272009-01-07 Jan Sjodin <jan.sjodin@amd.com>
10028
10029 PR tree-optimization/38492
10030 PR tree-optimization/38498
10031 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
10032 * tree-chrec.h (scev_is_linear_expression): Declared.
10033 * graphite.c (graphite_cannot_represent_loop_niter): New.
10034 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
10035 (graphite_loop_normal_form): Use gcc_assert.
10036 (scan_tree_for_params): Use CASE_CONVERT.
10037 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
10038 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
10039 Use gcc_assert. Discard scops that contain unhandled cases.
10040 (build_scop_conditions): Return a boolean status for unhandled cases.
10041 (strip_mine_profitable_p): Print the loop number, not its depth.
10042 (is_interchange_valid): Pass the depth of the loop nest, don't
10043 recompute it wrongly.
10044 (graphite_trans_bb_block): Same.
10045 (graphite_trans_bb_block): Print tentative of loop blocking.
10046 (graphite_trans_scop_block): Do not print that the loop has been
10047 blocked.
10048 (graphite_transform_loops): Do not handle scops that contain condition
10049 scalar phi nodes.
10050
65b82caa
L
100512009-01-07 H.J. Lu <hongjiu.lu@intel.com>
10052
10053 AVX Programming Reference (December, 2008)
10054 * config/i386/avxintrin.h (_mm256_stream_si256): New.
10055 (_mm256_stream_pd): Likewise.
10056 (_mm256_stream_ps): Likewise.
10057
10058 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
10059 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
10060 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
10061 (bdesc_special_args): Add __builtin_ia32_movntdq256,
10062 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
10063 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
10064 (ix86_expand_special_args_builtin): Likewise.
10065
10066 * config/i386/sse.md (AVXMODEDI): New.
10067 (avx_movnt<mode>): Likewise.
10068 (avx_movnt<mode>): Likewise.
10069 (<sse>_movnt<mode>): Remove AVX support.
10070 (sse2_movntv2di): Likewise.
10071
cef158f9
RG
100722009-01-07 Richard Guenther <rguenther@suse.de>
10073
10074 PR middle-end/38751
10075 * fold-const.c (extract_muldiv): Remove obsolete comment.
10076 (fold_plusminus_mult_expr): Undo MINUS_EXPR
10077 to PLUS_EXPR canonicalization for the canonicalization.
10078
246cb5be
GP
100792009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
10080
10081 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
10082 hosted cross-compilers generating less efficient code.
10083
84b9b872
RS
100842009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10085
10086 * function.h (rtl_data): Add a dbr_scheduled_p field.
10087 * reorg.c (dbr_schedule): Set it.
10088 (gate_handle_delay_slots): Check it.
10089 * config/mips/mips.c (mips_base_delayed_branch): Delete.
10090 (mips_reorg): Check flag_delayed_branch instead of
10091 mips_base_delayed_branch.
10092 (mips_override_options): Don't set mips_base_delayed_branch
10093 or flag_delayed_branch.
10094
ace984c8
RS
100952009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10096
10097 PR rtl-optimization/38426.
10098 * ira.c (ira): Set current_function_is_leaf earlier.
10099
7ad7809b
JJ
101002009-01-06 Jakub Jelinek <jakub@redhat.com>
10101
10102 PR rtl-optimization/38722
10103 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
10104 too early, only set a flag and modify after last possible
10105 undo_all point.
10106
c52ec948
JJ
101072009-01-06 Janis Johnson <janis187@us.ibm.com>
10108
10109 PR c/34252
10110 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
10111 * real.c (decimal_single_format): Correct values of emin and emax.
10112 (decimal_double_format): Ditto.
10113 (decimal_quad_format): Ditto.
10114 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
10115 computation of DECnn_MIN and DECnn_MAX for corrected values of
10116 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
10117 __DECnn_MIN__, and adjust its computation for the corrected value
10118 of emin.
10119
300240e1
JH
101202009-01-06 Jan Hubicka <jh@suse.cz>
10121
10122 PR target/38744
435da628 10123 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 10124
271c069e
GP
101252009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10126
10127 * doc/contrib.texi (Contributors): Slightly adjust the end note.
10128 Add Robert Clark to the list of testers.
10129
64e4c301 101302009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 10131 Kai Tietz <kai.tietz@onevision.com>
64e4c301 10132
435da628
UB
10133 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
10134 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 10135
7650b83e 101362009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 10137 Kai Tietz <kai.tietz@onevision.com>
7650b83e 10138
435da628
UB
10139 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
10140 for w64 ABI.
10141 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
10142 (ix86_nsaved_regs): Count only general purpose regs.
10143 (ix86_nsaved_sseregs): New.
10144 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
10145 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
10146 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
10147 general purpose regs.
7650b83e
JH
10148 (ix86_emit_save_sse_regs_using_mov): New.
10149 (ix86_expand_prologue): Save SSE regs if needed.
10150 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
10151 (ix86_emit_restore_sse_regs_using_mov): New.
10152 (ix86_expand_epilogue): Save SSE regs if needed.
10153
9aa5c1b2 101542009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 10155 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 10156
435da628
UB
10157 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
10158 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
10159 functions when accumulate outgoing args is off.
9aa5c1b2 10160
f7556aae
L
101612009-01-06 H.J. Lu <hongjiu.lu@intel.com>
10162
10163 PR bootstrap/38742
10164 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
10165 before using pseudos_have_intersected_live_ranges_p.
10166
10167 * ira-int.h (ira_assert): Always define.
10168
e47b7d04
L
101692009-01-06 H.J. Lu <hongjiu.lu@intel.com>
10170
10171 AVX Programming Reference (December, 2008)
10172 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
10173 (_mm256_permute2_pd): Likewise.
10174 (_mm_permute2_ps): Likewise.
10175 (_mm256_permute2_ps): Likewise.
10176 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
10177 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
10178
10179 * config/i386/i386.c (ix86_builtins): Remove
10180 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
10181 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
10182 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
10183 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
10184 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
10185 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
10186 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
10187 __builtin_ia32_vpermil2ps256.
10188 (ix86_init_mmx_sse_builtins): Updated.
10189 (ix86_expand_args_builtin): Likewise.
10190
44b86471
JDA
101912009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10192
e47b7d04
L
10193 * pa.c (output_call): Relocate non-jump insns in the delay slot of
10194 long absolute calls when generating PA 2.0 code.
44b86471 10195
311aab06
VM
101962009-01-05 Vladimir Makarov <vmakarov@redhat.com>
10197
10198 PR rtl-optimization/38583
10199 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
10200
10201 * params.def (ira-max-conflict-table-size): New.
10202
10203 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 10204
311aab06 10205 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 10206
311aab06
VM
10207 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
10208 table. Report this. Return result of building.
10209 (ira_build_conflicts): Use ira_conflicts_p. Check result of
10210 building conflict table.
10211
301b6a4e 10212 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 10213 (ira_color): Use ira_conflicts_p.
2ba9daa7 10214
311aab06
VM
10215 * global.c: Include ira.h.
10216 (pseudo_for_reload_consideration_p, build_insn_chain): Use
10217 ira_conflicts_p.
10218
10219 * Makefile.in (global.o): Add ira.h.
2ba9daa7 10220
311aab06
VM
10221 * ira-build.c (mark_all_loops_for_removal,
10222 propagate_some_info_from_allocno): New.
10223 (remove_unnecessary_allocnos): Call
10224 propagate_some_info_from_allocno.
10225 (remove_low_level_allocnos): New.
10226 (remove_unnecessary_regions): Add parameter. Call
10227 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
10228 parameter to remove_unnecessary_regions.
10229 (ira_build): Remove all regions but root if the conflict table was
10230 not built. Update conflict hard regs for allocnos crossing calls.
10231
10232 * ira.c (ira_conflicts_p): New global.
10233 (ira): Define and use ira_conflicts_p.
10234
10235 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
10236 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 10237 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 10238
5641785f
BE
102392009-01-06 Ben Elliston <bje@au.ibm.com>
10240
10241 * gengtype-lex.l (YY_NO_INPUT): Define.
10242
e4e5261f
AP
102432009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10244
10245 PR c/34911
5641785f
BE
10246 * c-common.c (handle_vector_size_attribute): Also reject
10247 BOOLEAN_TYPE types.
e4e5261f 10248
7b10257f
SP
102492009-01-05 Sebastian Pop <sebastian.pop@amd.com>
10250
10251 PR tree-optimization/38492
10252 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
10253 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
10254 rename_map_elt_info, eq_rename_map_elts,
10255 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
10256 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
10257 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
10258 (sese_build_livein_liveouts): New.
10259 (new_sese, free_sese): New.
10260 (new_scop): Call new_sese.
10261 (free_scop): Call free_sese.
10262 (rename_variables_from_edge, rename_phis_end_scop): Removed.
10263 (register_old_new_names): Renamed register_old_and_new_names.
10264 (register_scop_liveout_renames, add_loop_exit_phis,
10265 insert_loop_close_phis, struct igp,
10266 default_liveout_before_guard, add_guard_exit_phis,
10267 insert_guard_phis, copy_renames): New.
10268 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
10269 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
10270 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
10271 (scop_adjust_phis_for_liveouts): New.
10272 (gloog): Call scop_adjust_phis_for_liveouts.
10273
10274 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 10275 num_ver and livein.
7b10257f
SP
10276 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
10277 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
10278 (struct scop): Added field liveout_renames.
10279 (SCOP_LIVEOUT_RENAMES): New.
10280
9761fcc7
HJ
102812009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
10282
10283 PR tree-optimization/38510
10284 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
10285 (translate_clast): Call recompute_all_dominators before
10286 graphite_verify.
10287 (gloog): Call recompute_all_dominators before graphite_verify.
10288
102892009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 10290 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
10291
10292 PR tree-optimization/38500
10293 * graphite.c (create_sese_edges): Call fix_loop_structure after
10294 splitting blocks.
10295
c95b2534 102962009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
10297
10298 * config.gcc: Add m32r*-*-rtems*.
10299 * config/m32r/rtems.h: New file.
10300
fc0cd180
BE
103012009-01-05 Ben Elliston <bje@au.ibm.com>
10302
10303 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
10304 (.po.pox): Likewise.
10305 (po/gcc.pot): Likewise.
10306
3106d8e5
DM
103072009-01-04 David S. Miller <davem@davemloft.net>
10308
10309 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
10310 (STARTING_FRAME_OFFSET): Always set to zero.
10311
0009b473
RS
103122009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
10313
10314 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
10315 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
10316 fixed-point types, and vectors of the same.
10317
4f24c6d6
RS
103182009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
10319
10320 * config/mips/sync.md (*mb_barrier): Rename to...
10321 (*memory_barrier): ...this.
10322
1df48f5c
JW
103232009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
10324
10325 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 10326 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
10327 and put in alphabetical order. Fix 'target' name and put in order.
10328 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
10329 typos.
10330
1a8c13b3
UB
103312009-01-04 Uros Bizjak <ubizjak@gmail.com>
10332
10333 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
10334 (memory_barrier): Expand as unspec instead of unspec_volatile.
10335 Remove mem:BLK from insn operands. Use Pmode scratch register.
10336 (*memory_barrier): Define as unspec instead of unspec_volatile.
10337 Use (match_dup 0) as input operand.
10338
10339 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
10340 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
10341 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
10342 scratch register. Remove operand 1.
10343 (*stbar): Define as unspec instead of unspec_volatile.
10344 Use (match_dup 0) as input operand, remove (const_int 8).
10345 (*membar): Define as unspec instead of unspec_volatile.
10346 Use (match_dup 0) as input operand, remove input operand 2.
10347
10348 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
10349 (memory_barrier): Expand as unspec instead of unspec_volatile.
10350 Remove mem:BLK from insn operands. Use Pmode scratch register.
10351 (*memory_barrier): Define as unspec instead of unspec_volatile.
10352 Use (match_dup 0) as input operand.
10353
10354 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
10355 Remove mem:BLK from insn operands. Use Pmode scratch register.
10356 Set volatile flag on operand 0.
10357 (*memory_barrier): New insn pattern.
10358
10359 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
10360 insn operands.
10361 (*memory_barrier): Use (match_dup 0) as input operand.
10362
10363 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
10364 Remove mem:BLK from insn operands. Use Pmode scratch register.
10365 Set volatile flag on operand 0.
301b6a4e 10366 (*mb_internal): New insn pattern.
1a8c13b3
UB
10367
10368 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
10369
fb0703f7
SB
103702009-01-04 Steven Bosscher <steven@gcc.gnu.org>
10371
10372 PR middle-end/38586
10373 * function.c (struct temp_slot): Move to the section of the file
10374 that deals with temp slots. Remove field 'address'.
10375 (temp_slot_address_table): New hash table of address -> temp slot.
10376 (struct temp_slot_address_entry): New struct, items for the table.
10377 (temp_slot_address_compute_hash, temp_slot_address_hash,
10378 temp_slot_address_eq, insert_temp_slot_address): Support functions
10379 for the new table.
10380 (find_temp_slot_from_address): Rewrite to use the new hash table.
10381 (remove_unused_temp_slot_addresses): Remove addresses of temp
10382 slots that have been made available.
10383 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
10384 worker function for remove_unused_temp_slot_addresses.
10385 (assign_stack_temp_for_type): Don't clear the temp slot address list.
10386 Add the temp slot address to the address -> temp slot map.
10387 (update_temp_slot_address): Update via insert_temp_slot_address.
10388 (free_temp_slots): Call remove_unused_temp_slot_addresses.
10389 (pop_temp_slots): Likewise.
10390 (init_temp_slots): Allocate the address -> temp slot map, or empty
10391 the map if it is already allocated.
10392 (prepare_function_start): Initialize temp slot processing.
10393
b5a430f3
SB
103942009-01-04 Steven Bosscher <steven@gcc.gnu.org>
10395
10396 PR middle-end/38584
10397 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
10398 Calculate the size of all stack vars assuming no packing of stack
10399 vars will happen, replacing a quadratic algorithm with a linear one.
10400
5d560619
JJ
104012009-01-03 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR target/38707
10404 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
10405 can't be used.
10406
953a7caa
DN
104072009-01-03 Diego Novillo <dnovillo@google.com>
10408
10409 * doc/contrib.texi: Update contributions.
10410
5f26a230
JJ
104112009-01-03 Jakub Jelinek <jakub@redhat.com>
10412
493aa551
JJ
10413 PR c++/38705
10414 * builtins.c (fold_builtin_memory_op): Give up if either operand
10415 is volatile. Set srctype or desttype to non-qualified version
10416 of the other type.
10417
5f26a230
JJ
10418 PR c/38700
10419 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
10420 and FUNCTION_DECLs.
10421
c95b2534 104222009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
10423
10424 PR rtl-optimization/35805
10425 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
10426 problem if fast dce is able to remove any instructions.
10427 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 10428
0b355794
MM
104292009-01-02 Mark Mitchell <mark@codesourcery.com>
10430
10431 PR 33649
10432 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
10433
0cf0d02b
JJ
104342009-01-02 Jakub Jelinek <jakub@redhat.com>
10435
10436 PR middle-end/38690
10437 * tree-flow.h (op_code_prio, op_prio): New prototypes.
10438 * tree-pretty-print.c (op_code_prio): New function.
10439 (op_prio): No longer static. Use op_code_prio.
10440 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
10441 Use op_prio and op_code_prio to determine if () should be
10442 printed around operand(s) or not.
10443
10444 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10445 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
10446 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
10447 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
10448 pp_character instead of pp_string for single letter printing.
10449
e3606f3b
RS
104502009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10451
10452 * doc/extend.texi: Fix '#pragma GCC option' typo.
10453
c95b2534 104542009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 10455
a5f061dc
RG
10456 * doc/install.texi (--enable-checking): Mention different
10457 default for stage1.
10458 (--enable-stage1-checking): Document.
00f39bd5 10459
26de0bcb
AP
104602009-01-01 Andrew Pinski <pinskia@gmail.com>
10461
10462 PR middle-end/30142
10463 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
10464 case to be an error.
10465
7a7d8fab
BE
104662009-01-02 Ben Elliston <bje@au.ibm.com>
10467
10468 * config/fp-bit.h (pack_d): Constify argument.
10469 * config/fp-bit.c (makenan): Constify return type. Remove casts.
10470 (isnan): Constify argument.
10471 (isinf): Likewise.
10472 (iszero): Likewise.
10473 (pack_d): Likewise.
10474 (_fpadd_parts): Constify return type.
10475 (_fpmul_parts): Likewise.
10476 (_fpdiv_parts): Likewise.
10477
b295aee2
JJ
104782009-01-01 Jakub Jelinek <jakub@redhat.com>
10479
10480 PR c/36489
10481 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
10482 warn about overwriting initializer with side-effects or
10483 -Woverride-init if !IMPLICIT.
10484 (output_init_element): Likewise. Pass IMPLICIT down to
10485 add_pending_init.
10486 (process_init_element): Add IMPLICIT argument. Pass it down
10487 to output_init_element.
10488 (push_init_element, pop_init_level, set_designator): Adjust
10489 process_init_element callers.
10490 (set_nonincremental_init, set_nonincremental_init_from_string):
10491 Adjust add_pending_init callers.
10492 (output_pending_init_elements): Adjust output_init_element callers.
10493 * c-tree.h (process_init_element): Adjust prototype.
10494 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
10495 process_init_element callers.
ad41bd84
JM
10496
10497\f
10498Copyright (C) 2009 Free Software Foundation, Inc.
10499
10500Copying and distribution of this file, with or without modification,
10501are permitted in any medium without royalty provided the copyright
10502notice and this notice are preserved.