re PR rtl-optimization/38644 (Optimization flag -O1 -fschedule-insns2 causes wrong...
[gcc.git] / gcc / ChangeLog
1 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
2
3 PR rtl-optimization/38644
4 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
5 for epilogue having stack adjustment.
6
7 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
8
9 PR target/50931
10 * config/avr/avr-modes.def: New file defining PSImode.
11 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
12 __UINT24_MAX__): New built-in defines.
13 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
14 ashlpsi, ashrpsi, lshrpsi.
15 (QISO, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
16 (MOVMODE): New mode iterator.
17 (movpsi): New expander.
18 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
19 (*reload_inpsi, *movpsi): New insns.
20 (*reload_inpsi): New RTL peephole.
21 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
22 *addpsi3_sign_extend.hi): New insns.
23 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
24 *subpsi3_sign_extend.hi): New insns.
25 (divmodpsi4, udivmodpsi4): New define insn-and-split.
26 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
27 (andpsi3, iorpsi3, xorpsi3): New insns.
28 (*rotlpsi2.1, *rotlpsi2.23): New insns.
29 (*rotw<mode>): Insn condition only allow even-sized modes.
30 (*rotb<mode>): Insn condition allows odd-sized modes.
31 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
32 (negpsi2, one_cmplpsi2): New insns.
33 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
34 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
35 insn-and-splits.
36 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
37 (cbranchpsi4): New expander.
38 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
39 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
40 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
41 avr_out_reload_inpsi): New prototypes.
42
43 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
44 (avr_scalar_mode_supported_p): ...this new static function.
45 (avr_asm_len): Always return "".
46 (avr_out_load_psi, avr_out_store_psi): New static functions.
47 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
48 (avr_out_tstpsi): New function.
49 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
50 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
51 (avr_simplify_comparison_p): Ditto.
52 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
53 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
54 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
55 (avr_rtx_costs_1): Report PSI costs.
56 (avr_libcall_value): Handle odd-sized parameters.
57 (avr_init_builtin_int24): New static function to define built-in
58 24-bit types __int24 and __uint24.
59 (avr_init_builtins): Use it.
60
61 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
62
63 PR target/50989
64 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
65 support for VFP floating point model.
66
67 2011-11-04 Tristan Gingold <gingold@adacore.com>
68
69 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
70
71 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
72
73 Unrevert:
74 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
75
76 PR tree-optimization/50730
77 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
78 analysis if encountered unsupported data-ref.
79
80 2011-11-04 Jakub Jelinek <jakub@redhat.com>
81
82 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
83 function.
84 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
85 New prototype.
86 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
87 For floatunsv8siv8sf2 require TARGET_AVX2.
88
89 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
90 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
91 signalling comparison instead of non-signalling. Store into
92 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
93 subtracted and 0 otherwise.
94 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
95 Adjust prototype.
96 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
97 already for TARGET_SSE2. Xor in vector initialized by
98 ix86_expand_adjust_ufix_to_sfix_si at the end.
99 (vec_pack_ufix_trunc_<mode>): Likewise.
100
101 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
102 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
103 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
104 vectorizable_type_demotion and vectorizable_type_promotion did.
105 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
106 is {,un}signed {char,short}.
107 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
108 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
109 Push vec_dest back to the vec_dsts vector at the end.
110 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
111 one step. Removed multi_step_cvt, vec_dsts, slp_node and
112 prev_stmt_info arguments, add vec_dest argument. Push always
113 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
114 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
115 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
116 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
117 vectorizable_type_promotion. Call vectorizable_conversion even
118 for SLP bb vectorization.
119 (vect_transform_stmt): Call vectorizable_conversion instead of
120 vectorizable_type_demotion and vectorizable_type_promotion.
121 (supportable_widening_operation): Clear *multi_step_cvt first,
122 simplify c1/c2 computation, free *interm_types vector on failure.
123 (supportable_narrowing_operation): Clear *multi_step_cvt first,
124 free *interm_types vector on failure, handle multi-step
125 FIX_TRUNC_EXPR.
126
127 2011-11-04 Tristan Gingold <gingold@adacore.com>
128
129 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
130 argument. Conditionally generate crash debug info. Adjust
131 for alpha_funcs_tree removal.
132 (machine_function): Add links field.
133 (alpha_start_function): Conditionally generate crash debug info.
134 (alpha_end_function): Adjust call to alpha_write_linkage.
135 (alpha_funcs): Remove.
136 (links_kind): Remove.
137 (alpha_links): Remove num, target and lkind field. Add func field.
138 (alpha_links_tree): Remove.
139 (alpha_funcs_tree): Remove.
140 (alpha_need_linkage): Remove.
141 (alpha_use_linkage): Change prototype. Adjust.
142 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
143 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
144 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
145 (alpha_need_linkage): Remove.
146 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
147 Adjust calls to alpha_need_linkage.
148
149 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
150
151 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
152
153 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
154
155 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
156 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
157 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
158
159 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
160
161 PR target/50978
162 * config/arm/t-bpabi: New file.
163 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
164 arm*-*-linux-*eabi.
165 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
166 arm*-*-uclinux*eabi.
167 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
168 for arm*-*-eabi*.
169
170 2011-11-03 Michael Matz <matz@suse.de>
171
172 PR bootstrap/50857
173 * configure.ac: Check for -fno-exceptions -fno-rtti.
174 * configure: Regenerate.
175 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
176 (ALL_CXXFLAGS): Use it.
177
178 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
179
180 * config/i386/i386.md: Use {} for multi-line preparation statements.
181
182 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
183
184 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
185 (movtf_insn_sp32): ...this.
186 (movtf_insn_sp64_no_fpu): Consolidate into...
187 (movtf_insn_sp64): ...this.
188 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
189 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
190
191 2011-11-03 Tristan Gingold <gingold@adacore.com>
192
193 * config/vms/vms.c (vms_patch_builtins): Fix typo.
194
195 2011-11-03 Richard Guenther <rguenther@suse.de>
196
197 PR lto/44965
198 * lto-opts.c: Re-implement.
199 * lto-streamer.h (lto_register_user_option): Remove.
200 (lto_read_file_options): Likewise.
201 (lto_reissue_options): Likewise.
202 (lto_clear_user_options): Likewise.
203 (lto_clear_file_options): Likewise.
204 * opts-global.c (post_handling_callback): Remove.
205 (set_default_handlers): Do not set post_handling_callback.
206 (decode_options): Remove LTO specific code.
207 * lto-wrapper.c (merge_and_complain): New function.
208 (run_gcc): Read all input file options and
209 prepend a merged set before the linker driver options.
210 * gcc.c (driver_post_handling_callback): Remove.
211 (set_option_handlers): Do not set post_handling_callback.
212 * opts-common.c (handle_option): Do not call post_handling_callback.
213 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
214
215 2011-11-03 Richard Guenther <rguenther@suse.de>
216
217 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
218
219 2011-11-03 Martin Jambor <mjambor@suse.cz>
220
221 * ipa-prop.c (type_change_info): New fields offset, object,
222 known_current_type and multiple_types_encountered.
223 (extr_type_from_vtbl_ptr_store): New function.
224 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
225 the result is different from the previous one.
226 (detect_type_change): Renamed to detect_type_change_1. New parameter
227 comp_type. Set up new fields in tci, build known type jump
228 functions if the new type can be identified.
229 (detect_type_change): New function.
230 * tree.h (DECL_CONTEXT): Comment new use.
231
232 2011-11-03 Richard Guenther <rguenther@suse.de>
233
234 PR lto/48217
235 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
236 decode an encoded literal '.
237
238 2011-11-03 Tristan Gingold <gingold@adacore.com>
239
240 * collect2.c (main): Add support of -f (response file) on AIX.
241
242 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
243
244 PR tree-optimization/50912
245 * tree-vectorizer.h (slp_void_p): New.
246 (struct _slp_tree): Replace left and right with children. Update
247 documentation.
248 (struct _slp_oprnd_info): New.
249 (vect_get_vec_defs): Declare.
250 (vect_get_slp_defs): Update arguments.
251 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
252 vect_get_vec_defs instead of vect_get_slp_defs.
253 (vectorizable_reduction): Likewise.
254 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
255 Update call to vect_get_slp_defs.
256 (vectorizable_conversion): Update call to vect_get_vec_defs.
257 (vectorizable_assignment, vectorizable_shift,
258 vectorizable_operation): Likewise.
259 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
260 vect_get_slp_defs.
261 (vectorizable_type_promotion, vectorizable_store): Likewise.
262 (vect_analyze_stmt): Fix typo.
263 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
264 (vect_print_slp_tree, vect_mark_slp_stmts,
265 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
266 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
267 vect_schedule_slp_instance): Likewise.
268 (vect_create_new_slp_node): New.
269 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
270 (vect_get_and_check_slp_defs): Pass information about defs using
271 oprnds_info, allow any number of operands.
272 (vect_build_slp_tree): Likewise. Update calls to
273 vect_get_and_check_slp_defs. Fix comments.
274 (vect_analyze_slp_instance): Move node creation to
275 vect_create_new_slp_node.
276 (vect_get_slp_defs): Allow any number of operands.
277
278 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
279 Iain Sandoe <iains@gcc.gnu.org>
280
281 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
282 (get_ppc476_thunk_name): Use it.
283 (rs6000_code_end): Likewise.
284 (macho_branch_islands): Fix typo.
285
286 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
287 Jason Merrill <jason@redhat.com>
288
289 PR c++/50810
290 * configure.ac: Add -Wno-narrowing to warning options.
291 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
292
293 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
294
295 PR target/50945
296 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
297 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
298 (movdf_insn_sp64): Likewise.
299 (DFmode splitter): Do not test TARGET_FPU.
300 (movtf_insn_sp32): Reindent constraints.
301 (movtf_insn_sp32_no_fpu): Likewise.
302 (movtf_insn_sp64): Likewise.
303 (movtf_insn_sp64_hq): Likewise.
304 (movtf_insn_sp64_no_fpu): Likewise.
305
306 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
307
308 PR c++/50956
309 * builtins.c (fold_builtin_memchr): Fix cast.
310
311 2011-11-02 Teresa Johnson <tejohnson@google.com>
312
313 * config/i386/predicates.md (promotable_binary_operator): Add minus
314 to the list of promotable operators.
315
316 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
317
318 * gthr-single.h, gthr.h: Move to ../libgcc.
319 * gthr-aix.h: Move to ../libgcc/config/rs6000.
320 * gthr-dce.h: Move to ../libgcc/config/pa.
321 * gthr-lynx.h: Move to ../libgcc/config.
322 * gthr-mipssde.h: Move to ../libgcc/config/mips.
323 * gthr-posix.h: Move to ../libgcc/config.
324 * gthr-rtems.h: Likewise.
325 * gthr-tpf.h: Move to ../libgcc/config/s390.
326 * gthr-vxworks.h: Move to ../libgcc/config.
327 * gthr-win32.h: Move to ../libgcc/config/i386.
328 * configure.ac (gthread_flags): Remove
329 (gthr-default.h): Don't create.
330 (thread_file): Don't substitute.
331 * configure: Regenerate.
332 * Makefile.in (GCC_THREAD_FILE): Remove.
333 (GTHREAD_FLAGS): Remove.
334 (libgcc.mvars): Remove GTHREAD_FLAGS.
335 * config/t-vxworks (EXTRA_HEADERS): Remove.
336
337 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 Paolo Bonzini <bonzini@gnu.org>
339
340 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
341 * configure: Regenerate.
342 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
343 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
344 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
345 (clean): Remove libgcc_tm.h
346 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
347 * config.gcc (libgcc_tm_file): Remove.
348 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
349 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
350 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
351 (avr-*-rtems*): Likewise.
352 (avr-*-*): Likewise.
353 (frv-*-elf): Likewise.
354 (frv-*-*linux*): Likewise.
355 (h8300-*-rtems*): Likewise.
356 (h8300-*-elf*): Likewise.
357 (i[34567]86-*-darwin*): Likewise.
358 (x86_64-*-darwin*): Likewise.
359 (rx-*-elf*): Likewise.
360 (tic6x-*-elf): Likewise.
361 (tic6x-*-uclinux): Likewise.
362 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
363
364 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
365
366 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
367 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
368 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
369 (INCLUDES_FOR_TARGET): Remove.
370 (LIBGCC2_CFLAGS): Don't export.
371 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
372 Remove.
373 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
374 (libgcc.mvars): Likewise.
375 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
376 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
377 TARGET_LIBGCC2_CFLAGS.
378 Emit GTHREAD_FLAGS.
379 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
380 * config/darwin-64.c: Move to ../libgcc/config.
381 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
382 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
383 config/udivmodsi4.c: Move to ../libgcc/config.
384 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
385 * config/memcmp.c, config/memcpy.c, config/memmove.c,
386 config/memset.c: Move to ../libgcc/config.
387 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
388 * config/t-freebsd: Remove.
389 * config/t-freebsd-thread: Move to ../libgcc/config.
390 * config/t-libgcc-pic: Move to ../libgcc/config.
391 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
392 * config/t-linux: Remove.
393 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
394 Remove.
395 * config/t-openbsd-thread: Move to ../libgcc/config.
396 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
397 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
398 * config/t-svr4: Remove.
399 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
400 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
401 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
402 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
403 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
404 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
405 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
406 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
407 config/arm/fp16.c, config/arm/linux-atomic.c,
408 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
409 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
410 (TARGET_LIBGCC2_CFLAGS): Remove.
411 * config/arm/t-bpabi, config/arm/t-linux: Remove.
412 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
413 (LIB2FUNCS_STATIC_EXTRA): Remove.
414 * config/arm/t-netbsd: Remove.
415 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
416 (TARGET_LIBGCC2_CFLAGS): Remove.
417 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
418 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
419 (TARGET_LIBGCC2_CFLAGS): Remove.
420 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
421 (LIBGCC, INSTALL_LIBGCC): Remove.
422 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
423 * config/bfin/t-bfin-linux: Likewise.
424 * config/bfin/t-bfin-uclinux: Likewise.
425 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
426 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
427 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
428 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
429 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
430 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
431 * config/cris/arit.c: Move to ../libgcc/config/cris.
432 * config/cris/cris_abi_symbol.c: Remove.
433 * config/cris/cris.h: Remove obsolete comment.
434 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
435 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
436 ($(LIB2FUNCS_EXTRA)): Remove.
437 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
438 (LIBGCC): Remove.
439 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
440 * config/fr30/t-fr30: Remove.
441 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
442 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
443 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
444 to ../libgcc/config/frv.
445 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
446 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
447 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
448 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
449 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
450 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
451 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
452 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
453 (LIBGCC, INSTALL_LIBGCC): Remove.
454 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
455 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
456 * config/i386/t-cygwin: Remove.
457 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
458 (LIB2FUNCS_EXCLUDE): Remove.
459 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
460 (LIBGCC, INSTALL_LIBGCC): Remove.
461 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
462 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
463 * config/i386/t-mingw-w32: Likewise.
464 * config/i386/t-mingw-w64: Likewise.
465 * config/i386/t-openbsd: Likewise.
466 * config/i386/t-nto: Remove.
467 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
468 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
469 (quadlib.c): Remove.
470 * config/ia64/t-ia64: Remove comment.
471 * config/iq2000/lib2extra-funcs.c: Move to
472 ../libgcc/config/iq2000/lib2funcs.c.
473 * config/iq2000/t-iq2000: Remove.
474 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
475 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
476 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
477 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
478 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
479 (INSTALL_LIBGCC): Remove.
480 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
481 * config/m68k/t-floatlib: Remove.
482 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
483 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
484 Fix typo.
485 (LIBGCC, INSTALL_LIBGCC): Remove.
486 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
487 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
488 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
489 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
490 (INSTALL_LIBGCC): Remove.
491 * config/mips/t-isa3264: Likewise.
492 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
493 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
494 (INSTALL_LIBGCC): Remove.
495 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
496 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
497 (INSTALL_LIBGCC): Remove.
498 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
499 (LIB2FUNCS_STATIC_EXTRA): Remove.
500 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
501 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
502 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
503 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
504 ../libgcc/config/pa.
505 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
506 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
507 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
508 * config/pa/t-linux, config/pa/t-linux64: Remove.
509 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
510 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
511 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
512 Remove.
513 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
514 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
515 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
516 * config/rs6000/crtresfpr.asm: Move to
517 ../libgcc/config/rs6000/crtresfpr.S.
518 * config/rs6000/crtresgpr.asm: Move to
519 ../libgcc/config/rs6000/crtresgpr.S.
520 * config/rs6000/crtresxfpr.asm: Move to
521 ../libgcc/config/rs6000/crtresxfpr.S.
522 * config/rs6000/crtresxgpr.asm: Move to
523 ../libgcc/config/rs6000/crtresxgpr.S.
524 * config/rs6000/crtsavfpr.asm: Move to
525 ../libgcc/config/rs6000/crtsavfpr.S.
526 * config/rs6000/crtsavgpr.asm: Move to
527 ../libgcc/config/rs6000/crtsavgpr.S.
528 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
529 * config/rs6000/darwin-fpsave.asm: Move to
530 ../libgcc/config/rs6000/darwin-fpsave.S.
531 * config/rs6000/darwin-gpsave.asm: Move to
532 ../libgcc/config/rs6000/darwin-gpsave.S.
533 * config/rs6000/darwin-tramp.asm: Move to
534 ../libgcc/config/rs6000/darwin-tramp.S.
535 * config/rs6000/darwin-vecsave.asm: Move to
536 ../libgcc/config/rs6000/darwin-vecsave.S.
537 * config/rs6000/darwin-world.asm: Move to
538 ../libgcc/config/rs6000/darwin-world.S.
539 * config/rs6000/e500crtres32gpr.asm: Move to
540 ../libgcc/config/rs6000/e500crtres32gpr.S.
541 * config/rs6000/e500crtres64gpr.asm: Move to
542 ../libgcc/config/rs6000/e500crtres64gpr.S.
543 * config/rs6000/e500crtres64gprctr.asm: Move to
544 ../libgcc/config/rs6000/e500crtres64gprctr.S.
545 * config/rs6000/e500crtrest32gpr.asm: Move to
546 ../libgcc/config/rs6000/e500crtrest32gpr.S.
547 * config/rs6000/e500crtrest64gpr.asm: Move to
548 ../libgcc/config/rs6000/e500crtrest64gpr.S.
549 * config/rs6000/e500crtresx32gpr.asm: Move to
550 ../libgcc/config/rs6000/e500crtresx32gpr.S.
551 * config/rs6000/e500crtresx64gpr.asm: Move to
552 ../libgcc/config/rs6000/e500crtresx64gpr.S.
553 * config/rs6000/e500crtsav32gpr.asm: Move to
554 ../libgcc/config/rs6000/e500crtsav32gpr.S.
555 * config/rs6000/e500crtsav64gpr.asm: Move to
556 ../libgcc/config/rs6000/e500crtsav64gpr.S.
557 * config/rs6000/e500crtsav64gprctr.asm: Move to
558 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
559 * config/rs6000/e500crtsavg32gpr.asm: Move to
560 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
561 * config/rs6000/e500crtsavg64gpr.asm: Move to
562 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
563 * config/rs6000/e500crtsavg64gprctr.asm: Move to
564 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
565 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
566 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
567 (TARGET_LIBGCC2_CFLAGS): Remove.
568 * config/rs6000/t-aix52: Likewise.
569 * config/rs6000/t-darwin: Remove.
570 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
571 (LIB2FUNCS_EXTRA): Remove.
572 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
573 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
574 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
575 (INSTALL_LIBGCC): Remove.
576 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
577 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
578 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
579 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
580 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
581 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
582 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
583 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
584 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
585 * config/rs6000/t-vxworks: Remove comment.
586 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
587 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
588 * config/sh/linux-atomic.asm: Move to
589 ../libgcc/config/sh/linux-atomic.S.
590 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
591 * config/sh/t-netbsd: Remove.
592 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
593 Remove.
594 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
595 * config/sparc/t-leon: Likewise.
596 * config/sparc/t-leon3: Likewise.
597 * config/sparc/t-linux64: Likewise.
598 * config/sparc/t-netbsd64: Fix typo.
599 Remove comment.
600 * config/spu/divmodti4.c, config/spu/divv2df3.c,
601 config/spu/float_disf.c, config/spu/float_unsdidf.c,
602 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
603 config/spu/mfc_multi_tag_release.c,
604 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
605 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
606 config/spu/multi3.c: Move to ../libgcc/config/spu.
607 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
608 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
609 (INSTALL_LIBGCC): Remove.
610 * config/stormy16/stormy16-lib2.c: Move to
611 ../libgcc/config/stormy16/lib2.c.
612 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
613 ../libgcc/config/stormy16/ashlsi3.c.
614 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
615 ../libgcc/config/stormy16/ashrsi3.c.
616 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
617 ../libgcc/config/stormy16/clzhi2.c.
618 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
619 ../libgcc/config/stormy16/cmpsi2.c.
620 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
621 ../libgcc/config/stormy16/ctzhi2.c.
622 * config/stormy16/stormy16-lib2-divsi3.c: Move to
623 ../libgcc/config/stormy16/divsi3.c.
624 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
625 ../libgcc/config/stormy16/ffshi2.c.
626 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
627 ../libgcc/config/stormy16/lshrsi3.c.
628 * config/stormy16/stormy16-lib2-modsi3.c: Move to
629 ../libgcc/config/stormy16/modsi3.c.
630 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
631 ../libgcc/config/stormy16/parityhi2.c.
632 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
633 ../libgcc/config/stormy16/popcounthi2.c.
634 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
635 ../libgcc/config/stormy16/ucmpsi2.c.
636 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
637 ../libgcc/config/stormy16/udivmodsi4.c.
638 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
639 ../libgcc/config/stormy16/udivsi3.c.
640 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
641 ../libgcc/config/stormy16/umodsi3.c.
642 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
643 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
644 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
645 * config/xtensa/t-elf: Remove.
646 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
647 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
648 from tmake_file.
649 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
650 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
651 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
652 (*-*-openbsd*): Likewise.
653 Remove t-openbsd-thread for posix threads.
654 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
655 (alpha*-*-freebsd*): Likewise.
656 (alpha*-*-netbsd*): Likewise.
657 (alpha*-*-openbsd*): Likewise.
658 (alpha64-dec-*vms*): Likewise.
659 (alpha*-dec-*vms*): Likewise.
660 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
661 (arm*-*-linux*): Remove t-linux from tmake_file.
662 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
663 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
664 arm*-*-uclinux*eabi.
665 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
666 tmake_file for arm*-*-eabi*.
667 (fr30-*-elf): Remove tmake_file.
668 (hppa*64*-*-linux*): Remove tmake_file.
669 (hppa*-*-linux*): Likewise.
670 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
671 tmake_file.
672 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
673 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
674 tmake_file.
675 (i[34567]86-*-elf*): Remove tmake_file.
676 (x86_64-*-elf*): Likewise.
677 (i[34567]86-*-nto-qnx*): Likewise.
678 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
679 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
680 from tmake_file if using win32 threads.
681 (iq2000*-*-elf*): Remove tmake-file.
682 (microblaze*-linux*): Likewise.
683 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
684 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
685 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
686 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
687 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
688 (xtensa*-*-elf*): Remove tmake_file.
689
690 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691
692 * Makefile.in (LIB1ASMSRC): Don't export.
693 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
694 * config/arm/arm.c: Update lib1funcs.asm filename.
695 * config/arm/linux-eabi.h: Likewise.
696 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
697 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
698 ../libgcc/config/arm.
699 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
700 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
701 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
702 * config/arm/t-bpabi: Likewise.
703 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
704 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
705 * config/arm/t-strongarm-elf: Likewise.
706 * config/arm/t-symbian: Likewise.
707 * config/arm/t-vxworks: Likewise.
708 * config/arm/t-wince-pe: Likewise.
709 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
710 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
711 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
712 * config/bfin/t-bfin: Remove.
713 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
714 * config/bfin/t-bfin-linux: Likewise.
715 * config/bfin/t-bfin-uclinux: Likewise.
716 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
717 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
718 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
719 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
720 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
721 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
722 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
723 * config/h8300/lib1funcs.asm: Move to
724 ../libgcc/config/h8300/lib1funcs.S.
725 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
726 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
727 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
728 * config/i386/t-interix: Likewise.
729 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
730 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
731 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
732 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
733 * config/m32c/m32c.c: Update m32c-lib1.S filename.
734 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
735 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
736 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
737 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
738 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
739 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
740 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
741 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
742 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
743 * config/mips/mips16.S: Move to ../libgcc/config/mips.
744 * config/mips/t-libgcc-mips16: Remove.
745 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
746 * config/pa/milli64.S: Move to ../libgcc/config/pa.
747 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
748 * config/pa/t-linux64: Likewise.
749 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
750 ../libgcc/config/picochip/lib1funcs.S.
751 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
752 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
753 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
754 * config/sh/sh.h: Update lib1funcs.asm filename.
755 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
756 * config/sh/t-netbsd: Likewise.
757 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
758 Remove.
759 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
760 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
761 * config/sparc/lb1spl.asm: Remove.
762 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
763 * config/sparc/t-leon: Likewise.
764 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
765 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
766 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
767 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
768 * config/vax/t-linux: Remove.
769 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
770 ../libgcc/config/xtensa.
771 * config/xtensa/lib1funcs.asm: Move to
772 ../libgcc/config/xtensa/lib1funcs.S.
773 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
774 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
775 (bfin*-*): Likewise.
776 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
777 mips/t-libgcc-mips16 from tmake_file.
778 (mips*-*-linux*): Likewise.
779 (mips*-sde-elf*): Likewise.
780 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
781 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
782 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
783 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
784 (mips-*-elf*, mipsel-*-elf*): Likewise.
785 (mips64-*-elf*, mips64el-*-elf*): Likewise.
786 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
787 (mips*-*-rtems*): Likewise.
788 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
789 (vax-*-linux*): Remove vax/t-linux from tmake_file.
790
791 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
792
793 * config.gcc (extra_parts): Remove.
794 (*-*-freebsd*): Remove extra_parts.
795 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
796 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
797 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
798 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
799 *-*-netbsdelf[2-9]*.
800 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
801 (alpha*-*-linux*): Remove extra_parts.
802 (alpha*-*-freebsd*): Likewise.
803 (bfin*-linux-uclibc*): Likewise.
804 (fr30-*-elf): Likewise.
805 (moxie-*-elf): Likewise.
806 (moxie-*-uclinux*): Likewise.
807 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
808 (h8300-*-elf*): Likewise.
809 (hppa*64*-*-hpux11*): Remove extra_parts.
810 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
811 tmake_file.
812 (x86_64-*-elf*): Likewise.
813 (i[34567]86-*-freebsd*): Remove tmake_file.
814 (x86_64-*-freebsd*): Likewise.
815 (x86_64-*-netbsd*): Likewise.
816 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
817 t-libc-ok from tmake_file.
818 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
819 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
820 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
821 tmake_file.
822 Remove extra_parts.
823 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
824 Remove i386/t-crtstuff from tmake_file.
825 (i[34567]86-*-lynxos*): Likewise.
826 Remove extra_parts.
827 (ia64*-*-elf*): Remove extra_parts.
828 (ia64*-*-freebsd*): Likewise.
829 (ia64*-*-linux*): Likewise.
830 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
831 (m32r-*-elf*): Remove extra_parts.
832 (m32rle-*-elf*): Likewise.
833 (m32r-*-rtems*): Likewise.
834 (m68k-*-elf*, fido-*-elf*): Likewise.
835 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
836 (m68k-*-rtems*): Remove extra_parts.
837 (mep-*-*): Likewise.
838 (microblaze*-linux*): Likewise.
839 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
840 (mips*-*-linux*): Likewise.
841 (powerpc-*-lynxos*): Likewise.
842 (s390x-ibm-tpf*): Likewise.
843 (score-*-elf): Likewise.
844 Remove tmake_file.
845 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
846 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
847 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
848 Remove sh/t-superh from tmake_file for sh*-superh-elf.
849 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
850 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
851 (sh-wrs-vxworks): Likewise.
852 (sparc-*-linux*): Remove extra_parts.
853 (sparc64-*-linux*): Likewise.
854 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
855 (xstormy16-*-elf): Likewise.
856 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
857 (am33_2.0-*-linux*): Remove extra_parts.
858 * configure.ac (extra_parts): Don't substitute.
859 * configure: Regenerate.
860 * crtstuff.c: Move to ../libgcc.
861 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
862 (EXTRA_PARTS): Remove.
863 (CRTSTUFF_T_CFLAGS): Remove.
864 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
865 (GCC_EXTRA_PARTS): Remove.
866 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
867 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
868 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
869 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
870 ($(T)crtbeginT.o): Remove.
871 * config/alpha/t-vms (EXTRA_PARTS): Remove.
872 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
873 * config/alpha/vms-dwarf2.asm: Move to
874 ../libgcc/config/alpha/vms-dwarf2.S.
875 * config/alpha/vms-dwarf2eh.asm: Move to
876 ../libgcc/config/alpha/vms-dwarf2eh.S.
877 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
878 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
879 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
880 ($(T)crti.o, $(T)crtn.o): Remove.
881 * config/arm/t-linux: Remove comment.
882 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
883 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
884 ($(T)crti.o, $(T)crtn.o): Remove.
885 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
886 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
887 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
888 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
889 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
890 ($(T)crti.o, $(T)crtn.o): Remove.
891 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
892 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
893 (EXTRA_MULTILIB_PARTS): Remove.
894 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
895 EXTRA_MULTILIB_PARTS): Remove.
896 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
897 ($(T)crtlibid.o): Remove.
898 (EXTRA_MULTILIB_PARTS): Remove.
899 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
900 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
901 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
902 (EXTRA_MULTILIB_PARTS): Remove.
903 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
904 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
905 CRTSTUFF_T_CFLAGS_S): Remove.
906 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
907 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
908 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
909 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
910 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
911 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
912 ../libgcc/config/frv.
913 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
914 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
915 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
916 (CRTSTUFF_T_CFLAGS): Remove.
917 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
918 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
919 * config/h8300/t-elf: Remove.
920 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
921 Move to ../libgcc/config/i386.
922 * config/i386/t-crtstuff: Remove.
923 * config/i386/t-i386elf: Remove.
924 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
925 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
926 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
927 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
928 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
929 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
930 * config/ia64/t-vms: Remove.
931 * config/ia64/vms-crtinit.asm: Move to
932 ../libgcc/config/ia64/vms-crtinit.S.
933 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
934 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
935 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
936 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
937 ($(T)crtinit.o, $(T)crtfini.o): Remove.
938 (m32rx, m32r2): Remove.
939 (EXTRA_MULTILIB_PARTS): Remove.
940 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
941 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
942 * config/m68k/t-crtstuff: Remove.
943 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
944 * config/m68k/t-m68kelf: Remove.
945 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
946 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
947 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
948 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
949 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
950 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
951 (EXTRA_MULTILIB_PARTS): Remove.
952 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
953 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
954 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
955 EXTRA_PARTS): Remove.
956 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
957 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
958 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
959 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
960 ($(T)crti.o, $(T)crtn.o): Remove.
961 (EXTRA_MULTILIB_PARTS): Remove.
962 * config/mips/t-isa3264: Likewise.
963 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
964 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
965 (CRTSTUFF_T_CFLAGS): Remove.
966 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
967 ($(T)crti.o, $(T)crtn.o): Remove.
968 (EXTRA_MULTILIB_PARTS): Remove.
969 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
970 Remove.
971 ($(T)crti.o, $(T)crtn.o): Remove.
972 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
973 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
974 (EXTRA_MULTILIB_PARTS): Remove.
975 ($(T)crti.o, $(T)crtn.o): Remove.
976 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
977 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
978 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
979 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
980 * config/pa/stublib.c: Move to libgcc/config/pa.
981 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
982 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
983 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
984 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
985 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
986 ($(T)libgcc_stub.a): Remove.
987 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
988 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
989 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
990 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
991 ($(T)libgcc_stub.a): Remove.
992 * config/rs6000/eabi-cn.asm: Move to
993 ../../../libgcc/config/rs6000/eabi-cn.S.
994 * config/rs6000/eabi-ci.asm: Move to
995 ../../../libgcc/config/rs6000/eabi-ci.S.
996 * config/rs6000/sol-ci.asm: Move to
997 ../../../libgcc/config/rs6000/sol-ci.S.
998 * config/rs6000/sol-cn.asm: Move to
999 ../../../libgcc/config/rs6000/sol-cn.S.
1000 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
1001 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1002 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
1003 Remove.
1004 (EXTRA_MULTILIB_PARTS): Remove.
1005 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
1006 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
1007 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
1008 ($(T)ncrtn$(objext)): Remove.
1009 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1010 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1011 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
1012 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
1013 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
1014 * config/score/t-score-elf: Remove.
1015 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
1016 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
1017 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
1018 * config/sh/lib1funcs-4-300.asm: Move to
1019 ../../../libgcc/config/sh/lib1funcs-4-300.S.
1020 * config/sh/lib1funcs-Os-4-200.asm: Move to
1021 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
1022 * config/sh/t-elf: Remove.
1023 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
1024 * config/sh/t-linux64: Remove.
1025 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
1026 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
1027 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
1028 ($(T)ic_invalidate_array_4-100.o)
1029 ($(T)libic_invalidate_array_4-100.a)
1030 ($(T)ic_invalidate_array_4-200.o)
1031 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
1032 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
1033 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
1034 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
1035 ($(T)libgcc-4-300.a): Remove.
1036 * config/sh/t-superh: Remove.
1037 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1038 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
1039 * config/spu/cache.S: Move to ../libgcc/config/spu.
1040 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
1041 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
1042 (EXTRA_MULTILIB_PARTS): Remove.
1043 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
1044 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
1045 ($(T)cache64k.o, $(T)cache128k.o): Remove.
1046 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
1047 * config/t-libc-ok: Remove.
1048 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
1049 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
1050 * config/t-netbsd: Remove.
1051 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
1052 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
1053 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
1054 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
1055 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
1056 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
1057 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
1058 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
1059 (EXTRA_MULTILIB_PARTS): Remove.
1060 * config/xtensa/t-linux: Remove.
1061 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
1062
1063 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
1064
1065 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
1066 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
1067
1068 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1069
1070 PR translation/45116
1071 * Makefile.in (slibdir): Remove, don't export.
1072 (SHLIB_NM_FLAGS): Remove.
1073 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
1074 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
1075 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
1076 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
1077 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
1078 (gccspec.o): Likewise.
1079 (installdirs): Don't create $(DESTDIR)$(slibdir).
1080 * configure.ac (slibdir): Remove.
1081 * configure: Regenerate.
1082 * libgcc-libsystem.ver: Move to ../libgcc/config.
1083 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
1084 * config/libgcc-glibc.ver: Move to ../libgcc/config.
1085 * config/t-libunwind (SHLIB_LC): Remove.
1086 * config/t-linux (SHLIB_MAPFILES): Remove.
1087 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
1088 * config/t-slibgcc-elf-ver: Remove.
1089 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
1090 ../libgcc/config.
1091 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
1092 to ../libgcc/config/alpha.
1093 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1094 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
1095 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
1096 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
1097 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
1098 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
1099 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
1100 * config/arm/t-symbian (SHLIB_LC): Remove.
1101 * config/bfin/libgcc-bfin.ver: Move to
1102 ../libgcc/config/bfin/libgcc-glibc.ver.
1103 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
1104 * config/c6x/libgcc-c6xeabi.ver: Move to
1105 ../libgcc/config/c6x/libgcc-eabi.ver.
1106 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
1107 * config/cris/libgcc.ver: Move to
1108 ../libgcc/config/cris/libgcc-glibc.ver.
1109 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1110 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
1111 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
1112 * config/i386/darwin-libgcc.10.4.ver: Move to
1113 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
1114 * config/i386/darwin-libgcc.10.5.ver: Move to
1115 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
1116 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
1117 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
1118 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
1119 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
1120 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
1121 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
1122 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
1123 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
1124 ../libgcc/config/i386.
1125 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
1126 ../libgcc/config/i386.
1127 * config/i386/t-linux: Move to ../libgcc/config/i386.
1128 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
1129 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
1130 * config/i386/t-mingw-w64: Likewise.
1131 * config/i386/t-mingw32: Remove.
1132 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
1133 to ../libgcc/config/ia64.
1134 * config/ia64/t-glibc: Remove.
1135 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
1136 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
1137 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
1138 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
1139 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
1140 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
1141 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
1142 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
1143 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
1144 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
1145 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
1146 Move to ../libgcc/config/pa.
1147 * config/rs6000/darwin-libgcc.10.4.ver: Move to
1148 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
1149 * config/rs6000/darwin-libgcc.10.5.ver: Move to
1150 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
1151 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
1152 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
1153 * config/rs6000/t-aix52: Likewise.
1154 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
1155 ../libgcc/config/sh.
1156 * config/sparc/libgcc-sparc-glibc.ver: Move to
1157 ../libgcc/config/sparc/libgcc-glibc.ver.
1158 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
1159 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
1160 * config/xtensa/libgcc-xtensa.ver: Move to
1161 ../libgcc/config/xtensa/libgcc-glibc.ver.
1162 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
1163 t-slibgcc in tmake_file.
1164 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
1165 *-*-freebsd[34].* with pthreads.
1166 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
1167 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
1168 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
1169 (*-*-netbsd*): Likewise.
1170 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
1171 (*-*-*vms*): Add t-slibgcc to tmake_file.
1172 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
1173 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
1174 tmake_file.
1175 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
1176 arm*-*-linux-*eabi.
1177 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
1178 tmake_file.
1179 (crisv32-*-linux*, cris-*-linux*): Likewise.
1180 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
1181 pa/t-slibgcc-dwarf-ver from tmake_file.
1182 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
1183 tmake_file.
1184 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
1185 (hppa*64*-*-hpux11*): Likewise.
1186 (hppa[12]*-*-hpux11*): Likewise.
1187 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
1188 tmake_file.
1189 (x86_64-*-darwin*): Likewise.
1190 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
1191 Add t-slibgcc to tmake_file.
1192 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1193 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
1194 i[34567]86-w64-*.
1195 Remove i386/t-mingw-pthread from tmake_file.
1196 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
1197 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
1198 (ia64-hp-*vms*): Likewise.
1199 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
1200 tmake_file.
1201 (m32rle-*-linux*): Likewise.
1202 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
1203 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
1204 t-slibgcc-nolc-override from tmake_file.
1205 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
1206 tmake_file.
1207 (powerpc-*-darwin*): Likewise.
1208 (powerpc64-*-darwin*): Likewise.
1209 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
1210 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1211 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
1212 t-slibgcc to tmake_file.
1213 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
1214 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
1215 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
1216 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
1217 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
1218 (sparc64-*-linux*): Likewise.
1219 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
1220 tmake_file.
1221 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1222 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
1223 from tmake_file.
1224
1225 2011-11-02 Richard Guenther <rguenther@suse.de>
1226
1227 PR tree-optimization/50902
1228 * tree-vect-stmts.c (vectorizable_load): Properly convert
1229 an invariant initializer element.
1230
1231 2010-11-02 Richard Guenther <rguenther@suse.de>
1232
1233 PR tree-optimization/50890
1234 * gimple.h (gimple_fold_call): Remove.
1235 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
1236 (gimple_fold_call): ... here. Make static. Update the
1237 cannot-inline flag on direct calls.
1238 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
1239 from the statements to the edges.
1240
1241 2011-11-01 Ian Lance Taylor <iant@google.com>
1242
1243 * godump.c (struct macro_hash_value): Define.
1244 (macro_hash_hashval): New static function.
1245 (macro_hash_eq, macro_hash_del): New static functions.
1246 (go_define): Use macro_hash_value to store values in macro_hash.
1247 Replace an old value on a redefinition. Don't print anything to
1248 go_dump_file.
1249 (go_undef): Delete the entry from the hash table.
1250 (go_output_typedef): For an enum, use macro_hash_value, and don't
1251 print anything to go_dump_file.
1252 (go_print_macro): New static function.
1253 (go_finish): Traverse macro_hash with go_print_macro.
1254 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
1255
1256 2011-11-02 Alan Modra <amodra@gmail.com>
1257
1258 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
1259
1260 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1261
1262 PR c++/44277
1263 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
1264
1265 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
1266
1267 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
1268
1269 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
1270
1271 * config/i386/i386.md (splitters for int-float conversion): Use
1272 SUBREG_REG on SUBREGs in splitter constraints.
1273
1274 2011-11-01 Jakub Jelinek <jakub@redhat.com>
1275
1276 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
1277 prototype.
1278 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
1279 function.
1280 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
1281 (ssepackfltmode): New mode attr.
1282 (vec_pack_ufix_trunc_<mode>): New expander.
1283
1284 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
1285
1286 PR target/50940
1287 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
1288 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
1289
1290 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
1291
1292 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
1293 * config/rs6000/476.h: New file.
1294 * config/rs6000/476.opt: Likewise.
1295 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
1296 (SET_TARGET_LINK_STACK): Likewise.
1297 (TARGET_ASM_CODE_END): Define.
1298 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
1299 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
1300 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
1301 code if TARGET_LINK_STACK.
1302 (rs6000_emit_load_toc_table): Likewise.
1303 (output_function_profiler): Likewise
1304 (macho_branch_islands): Likewise
1305 (machopic_output_stub): Likewise
1306 (get_ppc476_thunk_name): New function.
1307 (rs6000_code_end): Likewise.
1308 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1309 Convert to a define_expand.
1310 (load_toc_v4_PIC_1_normal): New define_insn.
1311 (load_toc_v4_PIC_1_476): Likewise.
1312 (load_toc_v4_PIC_1b_normal): Likewise.
1313 (load_toc_v4_PIC_1b_476): Likewise.
1314
1315 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
1316
1317 PR target/50910
1318 * config/avr/avr.opt (-mbranch-cost=): New option.
1319 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
1320 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
1321 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
1322 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
1323 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
1324
1325 2011-11-01 Tom de Vries <tom@codesourcery.com>
1326
1327 PR tree-optimization/50908
1328 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
1329 before update_vuses, test for 1 predecessor rather than two.
1330 (delete_block_update_dominator_info): New function, part of it factored
1331 out of ...
1332 (replace_block_by): Use delete_block_update_dominator_info. Call
1333 update_vuses after deleting bb1 and updating dominator info, instead of
1334 before.
1335
1336 2011-11-01 David S. Miller <davem@davemloft.net>
1337
1338 * config/sparc/sparc.c (vector_init_faligndata): New function.
1339 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
1340
1341 * config/sparc/sparc.c (sparc_expand_vcond): New function.
1342 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
1343 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
1344 (vconduv8qiv8qi): Likewise.
1345
1346 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
1347
1348 PR debug/50869
1349 * cselib.c (cfa_base_preserved_regno): Initialize.
1350 (cselib_expand_value_rtx_1): Don't expand it.
1351 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
1352 Check it's only zero if result is NULL.
1353
1354 2011-11-01 Jakub Jelinek <jakub@redhat.com>
1355
1356 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
1357 expander.
1358
1359 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
1360 (sseintvecmodelower): New mode iterator.
1361 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
1362 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1363 (floatunsv4siv4sf2): Macroize into...
1364 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
1365
1366 2011-10-31 David S. Miller <davem@davemloft.net>
1367
1368 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
1369
1370 * dwarf2out.c (cached_next_real_insn): New.
1371 (dwarf2out_end_epilogue): Set it to NULL_RTX.
1372 (dwarf2out_var_location): Remove cached_next_real_insn local static.
1373
1374 2011-10-31 Richard Henderson <rth@redhat.com>
1375
1376 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
1377 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
1378 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
1379 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
1380 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
1381 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
1382 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
1383 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
1384 * config/i386/i386.md (splitters for int-float conversion): Likewise.
1385 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
1386 (bdesc_args): Likewise.
1387 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
1388 (ix86_vectorize_builtin_conversion): Remove.
1389 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1390
1391 2011-10-31 Martin Jambor <mjambor@suse.cz>
1392
1393 * ipa-prop.c (mark_modified): Moved up in the file.
1394 (is_parm_modified_before_call): Renamed to
1395 is_parm_modified_before_stmt, moved up in the file.
1396 (load_from_unmodified_param): New function.
1397 (compute_complex_assign_jump_func): Also attempt to create pass
1398 through jump functions for values loaded from (addressable)
1399 parameters.
1400
1401 2011-10-31 Jakub Jelinek <jakub@redhat.com>
1402
1403 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
1404 in a loop and has different type from op0, cast it to op0's type
1405 before the loop first. For slp give up. Don't crash if op1_vectype
1406 is NULL.
1407
1408 2011-10-31 Paul Brook <paul@codesourcery.com>
1409
1410 * cgraphunit.c: Don't mark clones as static constructors.
1411
1412 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
1413
1414 * gcc-ar: Do not include stdio.h.
1415
1416 2011-10-31 Diego Novillo <dnovillo@google.com>
1417
1418 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
1419 TYPE_ADDR_SPACE.
1420 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
1421 TYPE_ADDR_SPACE.
1422
1423 2011-10-30 David S. Miller <davem@davemloft.net>
1424
1425 * config/sparc/sparc.c (vector_init_bshuffle): New function.
1426 (vector_init_fpmerge): New function.
1427 (sparc_expand_vector_init): Use them to improve non-const cases.
1428
1429 * dwarf2out.c (dwarf2out_var_location): When processing several
1430 consecutive location notes, cache the result of next_real_insn().
1431
1432 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
1433
1434 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
1435 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
1436 (vec_dupv4sf): Remove expander.
1437 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
1438 (vec_dupv2df): Remove expander.
1439 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
1440 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
1441 (*vec_dupv4si): Merge *vec_dupv4si_avx.
1442 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
1443
1444 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
1445
1446 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
1447 * optabs.c (supportable_convert_operation): New function.
1448 * optabs.h (supportable_convert_operation): New prototype.
1449 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
1450 behavior for NONE modifier case.
1451 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
1452
1453 2011-10-30 Jakub Jelinek <jakub@redhat.com>
1454
1455 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
1456 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
1457 function.
1458 (vect_vect_recog_func_ptrs): Add it.
1459
1460 2011-10-30 David S. Miller <davem@davemloft.net>
1461
1462 * reorg.c (label_before_next_insn): New function.
1463 (relax_delay_slots): Use it instead of prev_label.
1464 * rtl.h (prev_label): Delete declaration.
1465 * emit-rtl.c (prev_label): Remove.
1466
1467 2011-10-30 Revital Eres <revital.eres@linaro.org>
1468
1469 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
1470 as BB_DISABLE_SCHEDULE.
1471 (mark_loop_unsched): New function.
1472 (sms_schedule): Call it.
1473
1474 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1475
1476 PR target/50617
1477 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
1478 (cmpib_comparison_operator): Likewise.
1479 (following_cal, output_and, output_ior, output_move_double,
1480 output_fp_move_double, output_block_move, output_block_clear,
1481 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
1482 output_movb, output_parallel_movb, output_parallel_addb, output_call,
1483 output_indirect_call, output_millicode_call, output_mul_insn,
1484 output_div_insn, output_mod_insn, singlemove_string,
1485 output_arg_descriptor, output_global_address, print_operand,
1486 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
1487 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
1488 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
1489 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
1490 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
1491 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
1492 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
1493 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
1494 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
1495 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
1496 exported functions and variables with "pa_".
1497 * config/pa/predicates.md: Likewise.
1498 * config/pa/pa64-hpux.h: likewise.
1499 * config/pa/som.h: Likewise.
1500 * config/pa/elf.h: Likewise.
1501 * config/pa/pa64-linux.h: Likewise.
1502 * config/pa/pa.md: Likewise.
1503 * config/pa/pa.c: Likewise.
1504 * config/pa/pa-linux.h: Likewise.
1505 * config/pa/pa.h: Likewise.
1506 * config/pa/constraints.md: Likewise.
1507
1508 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
1509
1510 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
1511 Update all uses.
1512 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
1513 * config/i386/i386.c: Update all uses.
1514
1515 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
1516
1517 * config/i386/i386.md (lshlv16qi3): Remove expander.
1518 (lshrv16qi3): New expander.
1519 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
1520 using any_shiftrt code iterator. Cleanup.
1521 (ashlv16qi3): Cleanup.
1522 (ashrv2di3): Ditto.
1523
1524 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1525
1526 PR target/50691
1527 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
1528 references.
1529 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
1530 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
1531
1532 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
1533
1534 PR target/50887
1535 * config/avr/avr.opt (-maccumulate-args): New option.
1536 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
1537 avr_starting_frame_offset.
1538 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
1539 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
1540 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
1541 (UNSPECV_WRITE_SP): New constant.
1542 (*addhi3_sp_R): Rewrite to...
1543 (*addhi3_sp): ...this new insn.
1544 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
1545 (movhi_sp_r): ...this new insn.
1546 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
1547 (avr_starting_frame_offset): New.
1548 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
1549 (avr_starting_frame_offset): New function.
1550 (avr_outgoing_args_size): New static function.
1551 (avr_initial_elimination_offset): Use it.
1552 (avr_simple_epilogue): Use it.
1553 (avr_asm_function_end_prologue): Use it.
1554 (expand_epilogue): Use it.
1555 (expand_prologue): Use it. Break out code to...
1556 (avr_prologue_setup_frame): ...this new static function.
1557 (avr_can_eliminate): Allow eliminating to frame pointer if there
1558 is one.
1559 (avr_frame_pointer_required_p): Use frame pointer if target has a
1560 nonlocal label.
1561 * config/avr/constraints.md (R): Remove.
1562 (Csp): New constraint.
1563 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
1564
1565 2011-10-29 Andi Kleen <ak@linux.intel.com>
1566
1567 * gcc-ar.c (target_machine): Add.
1568
1569 2011-10-29 Anatoly Sokolov <aesok@post.ru>
1570
1571 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
1572 cris_constant_index_p, cris_base_p, cris_index_p,
1573 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
1574 cris_legitimate_address_p): New functions.
1575 (TARGET_LEGITIMATE_ADDRESS_P): Define.
1576 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
1577 from rtx to const_rtx.
1578 (cris_print_operand_address, cris_address_cost,
1579 cris_side_effect_mode_ok): Use
1580 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1581 cris_biap_index_p and cris_bdap_index_p.
1582 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
1583 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
1584 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1585 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
1586 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
1587 cris_biap_index_p and cris_bdap_index_p.
1588 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
1589 cris_base_p.
1590 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
1591 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
1592 prototype.
1593 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
1594
1595 2011-10-21 Andi Kleen <ak@linux.intel.com>
1596
1597 * ggc-page (PAGE_ALIGN): Add.
1598 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
1599 Replace ROUND_UP with PAGE_ALIGN.
1600
1601 2011-10-20 Andi Kleen <ak@linux.intel.com>
1602
1603 * ggc-page (alloc_anon): Add check argument.
1604 (alloc_page): Add fallback to 1 page allocation.
1605 Adjust alloc_anon calls to new argument.
1606
1607 2011-10-18 Andi Kleen <ak@linux.intel.com>
1608
1609 * ggc-page (release_pages): First free large continuous
1610 chunks in the madvise path.
1611
1612 2011-10-18 Andi Kleen <ak@linux.intel.com>
1613
1614 * ggc-page.c (alloc_pages): Always round up entry_size.
1615
1616 2011-10-19 Andi Kleen <ak@linux.intel.com>
1617
1618 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
1619 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
1620 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
1621 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
1622 (install): Depend on install-gcc-ar.
1623 (install-gcc-ar): Add.
1624 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
1625 * gcc-ar.c: Add new file.
1626
1627 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
1628
1629 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
1630 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
1631 type for V2DF.
1632 (VStype_div): Use vector types for V2DF/V4SF.
1633 (VStype_sqrt): Use *sqrt types.
1634 (VS_spdp_type): Change type to vecdouble.
1635 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
1636 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
1637 vsx_xvcvspuxds): Likewise.
1638 (*vsx_fms<mode>4): Set type via <VStype_mul>.
1639 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
1640 <VStype_simple>.
1641 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
1642 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
1643 power7-dsqrt): Correct insn latency.
1644 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
1645 (power7-veccmp): Delete.
1646 (power7-vecfloat): Correct latency/dispatch/VSU values.
1647 (define_bypass "power7-vecfloat"): Correct latency and types.
1648 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
1649 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
1650
1651 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
1652
1653 * config/i386/i386.md (shift_insn): Rename code attribute from
1654 shiftrt_insn. Also handle ashift RTX.
1655 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
1656 (vshift): New code attribute.
1657 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
1658 (any_lshift): Move and rename code iterator from ...
1659 * config/i386/sse.md (lshift): ... here.
1660 (lshift_insn): Remove code attribute.
1661 (lshift): Remove code attribute.
1662 (vlshr<mode>3): Use lshiftrt RTX.
1663 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
1664 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
1665 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
1666 any_lshift code iterator. Update asm template.
1667 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
1668 usign any_lshift code iterator.
1669 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
1670 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
1671 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
1672
1673 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
1674
1675 PR target/49313
1676 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
1677 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
1678 to the libgcc insn.
1679 (*parityqihi2): Same for 8-bit parity.
1680
1681 2011-10-28 Julian Brown <julian@codesourcery.com>
1682
1683 PR rtl-optimization/47918
1684 * reload1.c (set_initial_label_offsets): Use initial offsets
1685 for labels on the nonlocal_goto_handler_labels chain.
1686
1687 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
1688
1689 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1690 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
1691 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
1692 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
1693 config/t-darwin.
1694 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
1695 (GP_SAVE_INLINE): Likewise.
1696 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
1697 RESTORE_FP_SUFFIX): Set to empty strings.
1698 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
1699 (debug_stack_info): Print savres_strategy.
1700 (rs6000_savres_routine_name): Implement for Darwin.
1701 (rs6000_make_savres_rtx): Adjust used register for Darwin.
1702 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
1703 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
1704 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
1705 * config/rs6000/darwin-gpsave.asm: New file.
1706
1707 2011-10-28 Jakub Jelinek <jakub@redhat.com>
1708
1709 * config/i386/sse.md (VI4SD_AVX2): Removed.
1710 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
1711 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
1712 Add another expander using VI48_128 iterator for
1713 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
1714 for TARGET_AVX2.
1715 (vlshr<mode>3): Likewise. Change register_operand predicate to
1716 nonimmediate_operand on last operand in the VI12_128 expander.
1717 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
1718 (vashrv4si3, vashrv8si3): New expanders.
1719 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
1720 avx2_<lshift>vv2di): Removed.
1721 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
1722 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
1723 iterator. Simplify pattern.
1724
1725 2010-10-28 Richard Guenther <rguenther@suse.de>
1726
1727 PR driver/50876
1728 * lto-wrapper.c (get_options_from_collect_gcc_options):
1729 Properly count arguments.
1730 (run_gcc): Use an obstack to collect argv, properly separate
1731 switches and their arguments.
1732
1733 2011-10-28 Jakub Jelinek <jakub@redhat.com>
1734
1735 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
1736 vector mode from vectype's mode.
1737
1738 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1739
1740 PR rtl-optimization/49720
1741 * simplify-rtx.c (simplify_relational_operation_1): Detect
1742 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
1743 simplifies to (eq/ne x (cst2 - cst1))" case.
1744
1745 2011-10-27 David S. Miller <davem@davemloft.net>
1746
1747 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
1748 (*snedi_zero): Likewise.
1749 (*snedi_zero_trunc): Likewise.
1750 (snedi_special_vis3): New expander.
1751 (*snedi_zero_vis3): New insn.
1752 (*snedi_zero_trunc_vis3): Likewise.
1753 (*sltu_insn_vis3): Likewise.
1754 (*sltu_insn_vis3_trunc): Likewise.
1755 (addxc): Likewise.
1756 (*addxc_trunc_sp64_vis3): Likewise.
1757 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
1758 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
1759 sequences on DImode values.
1760
1761 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
1762 constraint.
1763
1764 * regcprop.c (copyprop_hardreg_forward_1): Reject the
1765 transformation when we narrow the mode on big endian.
1766
1767 2011-10-27 Jakub Jelinek <jakub@redhat.com>
1768
1769 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
1770 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
1771 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
1772
1773 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
1774 overrides for -masm=intel memory.
1775 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
1776 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
1777 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
1778 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
1779 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
1780 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
1781 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
1782
1783 2011-10-27 Martin Jambor <mjambor@suse.cz>
1784
1785 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
1786 to parm_ainfo.
1787 (ipa_compute_jump_functions_for_edge): Likewise.
1788 (ipa_compute_jump_functions): Likewise.
1789 (ipa_analyze_indirect_call_uses): Likewise.
1790 (ipa_analyze_call_uses): Likewise.
1791 (ipa_analyze_params_uses): Likewise.
1792 (ipa_analyze_node): Likewise.
1793
1794 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
1795
1796 PR target/50875
1797 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
1798 constraints. Change alternative 1 to "x,m,1".
1799
1800 2011-10-27 Jakub Jelinek <jakub@redhat.com>
1801
1802 * Makefile.in (build/gencheck.o): Depend on tree.def and
1803 c-family/c-common.def.
1804
1805 * tree-ssa-strlen.c: Include expr.h.
1806 (get_stridx): Don't use c_strlen, instead use string_constant
1807 and compute string length from it.
1808 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
1809
1810 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
1811
1812 PR rtl-optimization/46603
1813 PR bootstrap/50879
1814 * reload.c (push_reload): In the out case, restore previous behavior
1815 for subregs that don't have word mode.
1816
1817 2011-10-27 Ian Lance Taylor <iant@google.com>
1818
1819 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
1820 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
1821 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
1822 defined.
1823
1824 2011-10-27 Richard Henderson <rth@redhat.com>
1825
1826 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
1827 selector. Save the qimode constant selector for later use by the
1828 qimode vec_perm pattern.
1829
1830 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
1831
1832 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
1833 to unit_req_factor to the right enum type.
1834 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
1835 hwloop_optimize): Remove unused variables.
1836
1837 2010-10-27 Richard Guenther <rguenther@suse.de>
1838
1839 PR middle-end/50731
1840 * tree-vect-generic.c (do_binop): Handle scalar operands.
1841
1842 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1843
1844 PR target/37191
1845 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
1846 from different units in a single alternative.
1847
1848 2011-10-26 David S. Miller <davem@davemloft.net>
1849
1850 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
1851 if we're comparing DImode and comparison is other than EQ or NE.
1852
1853 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
1854 LEU/LTU/GEU/GTU is attempted.
1855 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
1856 and split.
1857 (*neg_seqsi_sign_extend): Likewise.
1858 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
1859 *neg_sgeu_extend_sp64): New insns.
1860
1861 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
1862 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
1863 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
1864 (*mov<I:mode>_cc_reg_sp64): Likewise.
1865 (*movsf_cc_v9): Likewise.
1866 (*movsf_cc_reg_sp64): Likewise.
1867 (*movdf_cc_v9): Likewise.
1868 (*movdf_cc_reg_sp64): Likewise.
1869 (*movtf_cc_hq_v9): Likewise.
1870 (*movtf_cc_reg_hq_sp64): Likewise.
1871 (*movtf_cc_v9): Likewise.
1872 (*movtf_cc_reg_sp64): Likewise.
1873 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
1874 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
1875
1876 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1877
1878 * reload.c (reload_inner_reg_of_subreg): Change type of return value
1879 and type of OUTPUT parameter to bool and adjust. Document MODE and
1880 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
1881 and improve associated comment.
1882 (push_reload): Clarify and update comments about reloading of subregs.
1883 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
1884 for the reloading of subregs in the out case as well.
1885
1886 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
1887
1888 PR debug/50826
1889 * var-tracking.c (rtx_debug_expr_p): New.
1890 (use_type): Don't use debug exprs to track non-VTA variables.
1891
1892 2011-10-26 Jeff Law <law@redhat.com>
1893
1894 * doc/invoke.texi (sink-frequency-threshold): Document.
1895 * tree-ssa-sink.c: Include params.h.
1896 (select_best_block): New function.
1897 (statement_sink_location): Use it.
1898 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
1899
1900 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
1901
1902 PR target/48108
1903 * config/darwin.c (top level): Amend comments concerning LTO output.
1904 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
1905 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
1906 (LTO_NAMES_SECTION): Rename.
1907 (darwin_asm_named_section): Record LTO section counts and switches
1908 in a vec of darwin_lto_section_e.
1909 (darwin_file_start): Remove unused code.
1910 (darwin_file_end): Put an LTO section termination label. Handle
1911 output of the wrapped LTO sections, index and names table.
1912
1913 2011-10-26 Alan Modra <amodra@gmail.com>
1914
1915 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
1916 declaration.
1917 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
1918 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
1919 simple_return in pattern, emit instruction, and set jump_label.
1920 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
1921 simple_return rather than return.
1922 (emit_cfa_restores): New function.
1923 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
1924 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
1925 when using out-of-line gpr restore. Add missing LR and FP regs
1926 cfa_restores for out-of-line fpr restore. Consolidate code setting
1927 up cfa_restores. Formatting. Use LR_REGNO define.
1928 (rs6000_output_mi_thunk): Use simple_return rather than return.
1929 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
1930 (return_internal*): Likewise.
1931 (any_return, return_pred, return_str): New iterators.
1932 (return, conditional return insns): Provide both return and
1933 simple_return variants.
1934 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
1935 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
1936 Move r11 and r0 later to suit shrink-wrapping.
1937
1938 2011-10-26 Richard Guenther <rguenther@suse.de>
1939
1940 * lto-wrapper.c (run_gcc): Properly init/free obstack.
1941
1942 2011-10-26 Jakub Jelinek <jakub@redhat.com>
1943
1944 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
1945 * config/i386/predicates.md (vsib_address_operand,
1946 vsib_mem_operator): New predicates.
1947 * config/i386/i386.c (ix86_print_operand_address): Handle
1948 UNSPEC_VSIBADDR addresses.
1949 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
1950 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
1951 UNSPEC_VSIBADDR address.
1952 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
1953 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
1954
1955 2011-10-26 Tom de Vries <tom@codesourcery.com>
1956
1957 PR tree-optimization/50763
1958 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
1959 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
1960
1961 2011-10-26 Richard Guenther <rguenther@suse.de>
1962
1963 PR lto/41844
1964 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
1965 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
1966 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
1967 (run_gcc): Use it. Filter out language specific options.
1968
1969 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
1970
1971 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
1972 32-bit target does.
1973
1974 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
1975
1976 PR driver/46617
1977 * gcc.c (main): Fix fatal_error string for translation.
1978
1979 2011-10-25 Ian Lance Taylor <iant@google.com>
1980
1981 * tree-eh.c (do_return_redirection): Remove return_value_p
1982 parameter. Change all callers.
1983 (lower_try_finally_nofallthru): Remove local return_val.
1984 (lower_try_finally_onedest): Likewise.
1985 (lower_try_finally_copy): Likewise.
1986 (lower_try_finally_switch): Likewise.
1987
1988 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
1991 remove "&& !TARGET_64BIT"
1992 (*mmx_maskmovq_rex): Removed.
1993
1994 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
1995
1996 PR rtl-optimization/46603
1997 * reload.c (push_reload): In the out case, reload the subreg as well
1998 as the reg if it has word mode.
1999
2000 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
2001
2002 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
2003 suppress debug info for the parent type.
2004
2005 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
2006
2007 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
2008
2009 2011-10-25 Richard Henderson <rth@redhat.com>
2010
2011 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
2012 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
2013
2014 * config/rs6000/altivec.md (vec_extract_evenv8hi,
2015 vec_extract_evenv16qi, vec_extract_oddv4si,
2016 vec_extract_oddv4sf): Remove.
2017
2018 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
2019 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
2020 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2021 vec_interleave_highv4sf, vec_interleave_lowv4sf,
2022 vec_interleave_highv4si, vec_interleave_lowv4si,
2023 vec_interleave_highv8hi, vec_interleave_lowv8hi,
2024 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
2025
2026 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
2027 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
2028 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
2029 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
2030 vec_interleave_low_optab, vec_extract_even_optab,
2031 vec_extract_odd_optab with expand_vec_perm.
2032 (can_vec_perm_for_code_p): New.
2033 * optabs.h: Update.
2034 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
2035 fallback via can_vec_perm_for_code_p.
2036 (vect_strided_load_supported): Likewise.
2037 * tree-vect-generic.c (expand_vector_operations_1): Never lower
2038 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
2039 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
2040
2041 * target.def (vec_perm_const_ok): Change parameters to mode and
2042 array of indicies.
2043 * doc/tm.texi: Rebuild.
2044 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
2045 parameters to mode and array of indicies.
2046 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
2047 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
2048 Change parameters to mode and array of indicies.
2049 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
2050 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
2051 parameters to mode and rtx inputs. Try lowering to QImode
2052 vec_perm_const before trying fully variable permutation.
2053 * optabs.h: Update decls.
2054 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
2055 VECTOR_CST to pass to can_vec_perm_p.
2056 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
2057 from int pointer to unsigned char pointer.
2058 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
2059 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
2060
2061 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
2062 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
2063 VEC_INTERLEAVE_LOW_EXPR): Likewise.
2064
2065 2011-10-25 Mike Stump <mikestump@comcast.net>
2066
2067 * reload.c (regno_clobbered_p): Fix typo.
2068
2069 2011-10-25 Dodji Seketeli <dodji@redhat.com>
2070
2071 * input.c (expand_location): Rewrite using linemap_resolve_location
2072 and linemap_expand_location. Add a comment.
2073
2074 2011-10-25 Jakub Jelinek <jakub@redhat.com>
2075
2076 PR tree-optimization/50596
2077 * tree-vect-stmts.c (vect_mark_relevant): Only use
2078 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
2079 (vectorizable_store): If is_pattern_stmt_p look through
2080 VIEW_CONVERT_EXPR on lhs.
2081 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
2082 Use unsigned type instead of signed.
2083 (vect_recog_bool_pattern): Optimize also stores into bool memory in
2084 addition to casts from bool to integral types.
2085 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
2086 created, don't create it again.
2087
2088 2011-10-25 Kai Tietz <ktietz@redhat.com>
2089
2090 * config/i386/i386.c (ix86_frame_pointer_required): Require
2091 frame-pointer, if setjmp is used for 32-bit ms-abi.
2092
2093 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2094
2095 * builtins.c (set_builtin_user_assembler_name): Remove extra
2096 newline added in October 11th, 2011 change.
2097
2098 2011-10-24 David S. Miller <davem@davemloft.net>
2099
2100 * config/sparc/little-endian.opt: Delete.
2101 * config.gcc: Remove references to config/sparc/little-endian.opt
2102 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
2103 * config/sparc/linux64.h: Delete references to -mlittle-endian.
2104 * config/sparc/netbsd-elf.h: Likewise.
2105 * config/sparc/openbsd64.h: Likewise.
2106 * config/sparc/sparc.h: Likewise.
2107 * config/sparc/sp64-elf.h: Likewise and delete overrides for
2108 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2109 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
2110 to MASK_LITTLE_ENDIAN.
2111 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
2112
2113 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
2114 Only use D, Y, and Z constraints in vector insns.
2115
2116 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
2117 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
2118 called *movsi_insn.
2119 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
2120 into *movdi_insn_sp32.
2121 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
2122 one pattern called *movdi_insn_sp64.
2123 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
2124 Consolidate into one pattern called *movsf_insn.
2125 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
2126 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
2127 into *movdf_insn_sp32.
2128 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
2129 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
2130 *movdf_insn_sp64.
2131 (*zero_extendsidi2_insn_sp64_novis3,
2132 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
2133 called *zero_extendsidi2_insn_sp64.
2134 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
2135 Consolidate into one pattern named *sign_extendsidi2_insn.
2136 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
2137 Consolidate into one pattern named *mov<VM32:mode>_insn.
2138 (*mov<VM64:mode>_insn_sp64_novis3,
2139 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
2140 named *mov<VM64:mode>_insn_sp64.
2141 (*mov<VM64:mode>_insn_sp32_novis3,
2142 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
2143 named *mov<VM64:mode>_insn_sp32.
2144
2145 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2146
2147 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
2148 (zero_length_string): Change assertion to accept strinfo without
2149 length but with stmt instead.
2150 Set the endptr pointer also if starting a new chain.
2151 (adjust_related_strinfos): Ignore strinfos marked for delayed
2152 length computation.
2153 (handle_builtin_strcpy): Mark earlier strinfo elements also for
2154 delayed length computation.
2155
2156 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
2157
2158 PR target/50820
2159 Port from 4.6 branch r180379
2160 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
2161 handling and indirect jump/calls on devices > 128k.
2162
2163 2011-10-24 Anatoly Sokolov <aesok@post.ru>
2164 Georg-Johann Lay <avr@gjlay.de>
2165
2166 PR target/49824
2167 * doc/extend.texi (Declaring Attributes of Functions):
2168 Document OS_main and OS_task attributes.
2169 (Specifying Attributes of Variables): Move up
2170 subsection "AVR Variable Attributes" as of alphabetical order.
2171
2172 2011-10-24 Richard Guenther <rguenther@suse.de>
2173
2174 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
2175 to vector element type.
2176 (vectorizable_assignment): Bail out for non-mode-precision operations.
2177 (vectorizable_shift): Likewise.
2178 (vectorizable_operation): Likewise.
2179 (vectorizable_type_demotion): Likewise.
2180 (vectorizable_type_promotion): Likewise.
2181 (vectorizable_store): Handle non-mode-precision stores.
2182 (vectorizable_load): Handle non-mode-precision loads.
2183 (get_vectype_for_scalar_type_and_size): Return a vector type
2184 for non-mode-precision integers.
2185 * tree-vect-loop.c (vectorizable_reduction): Bail out for
2186 non-mode-precision reductions.
2187
2188 2011-10-24 Julian Brown <julian@codesourcery.com>
2189
2190 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
2191 setting CC_REVERSED for FP comparisons.
2192
2193 2011-10-24 Richard Guenther <rguenther@suse.de>
2194
2195 PR tree-optimization/50838
2196 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
2197 a MEM_REF base if we change it.
2198
2199 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
2200
2201 PR bootstrap/50836
2202 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
2203
2204 PR rtl-optimization/50833
2205 * function.c (thread_prologue_and_epilogue_insns): Expect the
2206 return insn optimization only if optimize.
2207
2208 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
2209
2210 * config/avr/avr.c: Break long lines.
2211 Define target hooks on the fly if applicable.
2212 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
2213 overridden later.
2214 (targetm): Move definition to end of file.
2215 (avr_can_eliminate): Make static on the fly.
2216 (avr_frame_pointer_required_p): Ditto.
2217 (avr_hard_regno_scratch_ok): Ditto.
2218 (avr_builtin_setjmp_frame_value): Make static on the fly.
2219 Indent according to coding rules.
2220 (avr_case_values_threshold): Ditto.
2221 (avr_attribute_table): Move down.
2222
2223 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
2224
2225 PR tree-optimization/50730
2226 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2227 analysis if encountered unsupported data-ref.
2228
2229 2011-10-23 David S. Miller <davem@davemloft.net>
2230
2231 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
2232 cpu adjustment.
2233 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
2234 append -mcpu=v9 when -mv8plus is given.
2235
2236 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
2237 between float and non-float regs when VIS3.
2238 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
2239 use a restore when the source is a float register.
2240 (sparc_split_regreg_legitimate): When VIS3 allow moves between
2241 float and integer regs.
2242 (sparc_register_move_cost): Adjust to account for VIS3 moves.
2243 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
2244 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
2245 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
2246 float and integer regs we sometimes need a FP_REGS class
2247 intermediate move to satisfy the reload. When this happens
2248 specify an extra cost of 2.
2249 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
2250 (*movdi_insn_sp32_v9): Likewise.
2251 (*movdi_insn_sp64): Likewise.
2252 (*movsf_insn): Likewise.
2253 (*movdf_insn_sp32_v9): Likewise.
2254 (*movdf_insn_sp64): Likewise.
2255 (*zero_extendsidi2_insn_sp64): Likewise.
2256 (*sign_extendsidi2_insn): Likewise.
2257 (*movsi_insn_vis3): New insn.
2258 (*movdi_insn_sp32_v9_vis3): New insn.
2259 (*movdi_insn_sp64_vis3): New insn.
2260 (*movsf_insn_vis3): New insn.
2261 (*movdf_insn_sp32_v9_vis3): New insn.
2262 (*movdf_insn_sp64_vis3): New insn.
2263 (*zero_extendsidi2_insn_sp64_vis3): New insn.
2264 (*sign_extendsidi2_insn_vis3): New insn.
2265 (TFmode reg/reg split): Make sure both REG operands are float.
2266 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
2267 easy constant to integer reg alternatives.
2268 (*mov<VM64:mode>_insn_sp64): Likewise.
2269 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
2270 (*mov<VM32:mode>_insn_vis3): New insn.
2271 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
2272 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
2273 (VM64 reg<-->reg split): New splitter for 32-bit.
2274
2275 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
2276 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
2277 Declare it.
2278 * config/sparc/sparc.md (DImode reg/reg split): Use it.
2279 (DFmode reg/reg split): Likewise.
2280
2281 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
2282 generating fzero and fone instructions.
2283 (DImode const_int --> reg splitter): Only trigger for integer regs.
2284
2285 * config/sparc/predicates.md (input_operand): Disallow vector
2286 constants other than 0 and -1.
2287 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
2288 NO_REGS for vector constants other than 0 and -1.
2289
2290 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
2291 SPARC_INT_REG_P): Define.
2292 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
2293 (REGNO_OK_FOR_INDEX_P): Likewise.
2294 * config/sparc/sparc.c (gen_df_reg): Likewise.
2295 (eligible_for_return_delay): Likewise.
2296 (eligible_for_sibcall_delay): Likewise.
2297 (sparc_legitimate_address_p): Likewise.
2298 (emit_save_or_restore_regs): Likewise.
2299 (registers_ok_for_ldd_peep): Likewise.
2300 * config/spac/sparc.md (DI mode splitters): Likewise.
2301 (SF mode const splitters): Likewise.
2302 (DF mode splitters): Likewise.
2303 (32-bit DI mode logical op splitters): Likewise.
2304
2305 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2306
2307 PR c++/50841
2308 Revert:
2309 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2310
2311 PR c++/50810
2312 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2313
2314 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
2315
2316 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
2317 (VI248_256): Remove mode iterator.
2318 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
2319 instead of gen_avx2_lshlv4di3.
2320 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
2321 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
2322
2323 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
2324
2325 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
2326 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
2327 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
2328 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
2329 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2330 iterator. Use sseintprefix mode attribute.
2331 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
2332 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
2333 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
2334 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
2335 iterator. Use sseintprefix mode attribute.
2336 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
2337 attributes.
2338 (*avx2_gatherdi<mode>): Ditto.
2339 (*avx2_gatherdi<mode>256): Ditto.
2340 (VI48_AVX2): Remove mode iterator.
2341 (gthrlastfp): Remove mode attribute.
2342
2343 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2344
2345 PR c++/50810
2346 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2347
2348 2011-10-23 Tom de Vries <tom@codesourcery.com>
2349
2350 PR tree-optimization/50763
2351 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
2352 out of ...
2353 (same_succ_flush_bbs): Use same_succ_flush_bb.
2354 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
2355 release_last_vdef and delete_basic_block.
2356 (unlink_virtual_phi): New function.
2357 (update_vuses): Add and use vuse1_phi_args argument. Set var to
2358 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
2359 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
2360 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
2361 to limit replacement of uses. Propagate phi argument for phis with a
2362 single argument.
2363 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
2364 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
2365 vuse1_phi_args as argument to call to update_vuses. Call
2366 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
2367 CDI_DOMINATORS info.
2368 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
2369 call to free_dominance_info. Only call calculate_dominance_info once.
2370
2371 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
2372
2373 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
2374
2375 PR tree-optimization/44683
2376 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
2377 we can be sure that there are no signed zeros involved.
2378
2379 2011-10-23 Jan Hubicka <jh@suse.cz>
2380
2381 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
2382
2383 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
2384
2385 PR target/50788
2386 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
2387 Remove (match_dup 0).
2388 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
2389 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
2390 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2391 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
2392 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
2393 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
2394
2395 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
2396
2397 PR tree-optimization/50819
2398 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
2399 the last argument.
2400 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
2401 vect_analyze_data_ref_dependences.
2402 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
2403 the last argument. Check load-after-store dependence for unknown
2404 dependencies in basic blocks.
2405 (vect_analyze_data_ref_dependences): Update call to
2406 vect_analyze_data_ref_dependences.
2407 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
2408 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
2409 (vect_slp_analyze_bb_1): Update call to
2410 vect_analyze_data_ref_dependences. Don't call
2411 vect_bb_vectorizable_with_dependencies.
2412
2413 2011-10-22 David S. Miller <davem@davemloft.net>
2414
2415 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
2416 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2417 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
2418 (sparc_secondary_reload): New function.
2419
2420 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
2421 (struct processor_costs): Move from here..
2422 * config/sparc/sparc.c (struct processor_costs): To here.
2423 (sparc_costs): Mark static.
2424
2425 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
2426 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
2427 Get rid of declarations.
2428
2429 2011-10-21 Paul Brook <paul@codesourcery.com>
2430
2431 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
2432 c6x_asm_init_sections): New functions.
2433 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
2434
2435 2011-10-21 Jakub Jelinek <jakub@redhat.com>
2436
2437 PR target/50813
2438 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
2439 V4DImode and V8SImode for !TARGET_AVX2.
2440
2441 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
2442
2443 PR bootstrap/50825
2444 * sched-deps.c (add_dependence): If not doing predication, promote
2445 REG_DEP_CONTROL to REG_DEP_ANTI.
2446
2447 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
2448
2449 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
2450 instead of X to avr_legitimize_reload_address.
2451 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
2452 first argument's type from rtx to rtx*.
2453 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
2454 Pass PX to push_reload instead of &X. Change log messages for
2455 better distinction.
2456
2457 2011-10-21 Roland Stigge <stigge@antcom.de>
2458
2459 PR translation/47064
2460 * params.def: Fix typo "compilatoin" -> "compilation".
2461
2462 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
2463 Kirill Yukhin <kirill.yukhin@intel.com>
2464
2465 PR target/50740
2466 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
2467 if max_level allows that.
2468
2469 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
2470
2471 * reg-notes.def (DEP_CONTROL): New.
2472 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
2473 not doing speculation.
2474 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
2475 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
2476 * function.c (record_hard_reg_sets, record_hard_reg_uses,
2477 record_hard_reg_uses_1): Remove; move to rtlanal.c.
2478 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
2479 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
2480 (MUST_RECOMPUTE_SPEC_P): New macro.
2481 (real_insn_for_shadow): New function.
2482 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
2483 toggle_cancelled_flags): New static functions.
2484 (schedule_insn): Relax an assert to only check for empty hard back
2485 dependencies. Skip cancelled dependencies. Call
2486 check_clobbered_conditions.
2487 (copy_insn_list): Remove function, renamed moved to lists.c.
2488 (save_backtrack_point): Use new spelling copy_INSN_LIST.
2489 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
2490 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
2491 (estimate_insn_tick): Ignore cancelled dependencies.
2492 (haifa_speculate_insn): Move declaration.
2493 (try_ready): Move code into recompute_todo_spec and call it. Tweak
2494 some asserts. Ensure predicated patterns are restored if necessary.
2495 Dump DEP_CONTROL flag.
2496 (haifa_change_pattern): Merge with sched_change_pattern.
2497 (sched_change_pattern): Remove function.
2498 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
2499 uses changed to simply not test NON_FLUSH_JUMP_P.
2500 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
2501 REG_DEP_CONTROL.
2502 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
2503 (reg_pending_control_uses, control_dependency_cache): New static
2504 variables.
2505 (sched_get_reverse_condition_uncached): New function.
2506 (sd_find_dep_between): Remove pointless assert. Look in
2507 control_dependency_cache.
2508 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
2509 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
2510 and control_dependency_cache.
2511 (sd_unresolve_dep): Use dep_spec_p.
2512 (add_dependence): Now a wrapper around add_dependence_1, handling
2513 REG_DEP_CONTROL specially.
2514 (flush_pending_lists): Clear pending_jump_insns.
2515 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
2516 (sched_analyze_2): Unconditionally add to pending memory flushes,
2517 keep previous behaviour but apply it to pending_jump_insns instead.
2518 (sched_analyze_insn): Defer adding jump reg dependencies using
2519 reg_pending_control_uses; add them to the control_uses list. Handle
2520 pending_jump_insns and control_uses when adding dependence lists.
2521 (deps_analyze_insn): Update INSN_COND_DEPS.
2522 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
2523 last_pending_memory_flush.
2524 (init_deps): Initialize pending_jump_insns.
2525 (free_deps): Free control_uses.
2526 (remove_from_deps): Remove from pending_jump_insns.
2527 (init_deps_global): Allocate reg_pending_control_uses).
2528 (finish_deps_global): Free it.
2529 (add_dependence_1): Renamed from add_dependence. Handle
2530 REG_DEP_CONTROL.
2531 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
2532 (copy_INSN_LIST, concat_INSN_LIST): Declare.
2533 * sched-int.h (struct deps_reg): Add control_uses.
2534 (struct deps_desc): Add pending_jump_insns.
2535 (struct _haifa_deps_insn_data): Add cond_deps.
2536 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
2537 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
2538 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
2539 (DEP_CONTROL): New macro.
2540 (DEP_TYPES): Include it.
2541 (HARD_DEP): Adjust definition.
2542 (DEP_CANCELLED): New macro.
2543 (enum SCHED_FLAGS): Add DO_PREDICATION.
2544 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
2545 * sched-rgn.c (concat_INSN_LIST): Remove function.
2546 (deps_join): Handle pending_jump_insns.
2547 (free_pending_lists): Likewise.
2548 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
2549 schedule.
2550
2551 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
2552
2553 PR target/50820
2554 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
2555 (__tablejump__): Consistently use EIND for indirect jump/call.
2556 (__tablejump_elpm__): Ditto.
2557
2558 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
2559
2560 * config/c6x/c6x.md (attr "op_pattern"): New.
2561 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
2562 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
2563 Likewise.
2564 * config/c6x/c6x-mult.md: Regenerate.
2565 * config/c6x/c6x.c: Include "regrename.h".
2566 (unit_req_table): New typedef.
2567 (unit_reqs): Use it for the declaration.
2568 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
2569 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
2570 static functions.
2571 (count_unit_reqs): New arg reqs. All callers changed. Use
2572 get_unit_reqs, and don't merge here.
2573 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
2574 using unit_req_factor.
2575 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
2576 count_unit_reqs.
2577 (c6x_reorg): Add reg notes problem, and call df_analyze.
2578 * Makefile.in ($(out_object_file)): Depend on regrename.h.
2579
2580 2011-10-21 Kai Tietz <ktietz@redhat.com>
2581
2582 * fold-const.c (simple_operand_p_2): Handle integral
2583 casts from boolean-operands.
2584
2585 2011-10-21 Jan Hubicka <jh@suse.cz>
2586
2587 * cgraph.c (dump_cgraph_node): Dump alias flag.
2588 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
2589 no destination.
2590 (get_alias_symbol): New function.
2591 (output_weakrefs): Output also weakrefs with no destinatoin.
2592 (lto_output_node): Output weakref alias flag when at function boundary.
2593
2594 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
2595
2596 PR target/50809
2597 * config/arm/driver-arm.c (vendors): Make static.
2598
2599 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
2600
2601 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
2602 (ix86_emit_swsqrtsf): Force a into register.
2603
2604 2011-10-20 Mike Stump <mikestump@comcast.net>
2605
2606 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
2607 after validate_change wipes it out.
2608
2609 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2610
2611 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
2612 before using the shufb instruction.
2613
2614 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
2615
2616 PR target/50766
2617 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
2618 memory operand order.
2619 (bmi2_bzhi_<mode>3): Ditto.
2620 (bmi2_pdep_<mode>3): Ditto.
2621 (bmi2_pext_<mode>3): Ditto.
2622
2623 2011-10-20 Richard Henderson <rth@redhat.com>
2624
2625 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
2626 * optabs.c (can_vec_perm_expr_p): Update to match.
2627 (expand_vec_perm_expr): Likewise.
2628 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
2629 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
2630 * doc/tm.texi.in: Likewise.
2631
2632 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
2633
2634 PR target/50572
2635 * config/i386/i386.c (processor_target_table): Change Atom
2636 align_loops_max_skip to 15.
2637
2638 2011-10-20 Richard Henderson <rth@redhat.com>
2639
2640 * target.def (builtin_vec_perm): Remove.
2641 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2642
2643 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
2644 (IX86_BUILTIN_VEC_PERM_*): Remove.
2645 (bdesc_args): Remove vec_perm builtins
2646 (ix86_expand_builtin): Likewise.
2647 (ix86_expand_vec_perm_const_1): Rename from
2648 ix86_expand_vec_perm_builtin_1.
2649 (extract_vec_perm_cst): Merge into...
2650 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
2651 ix86_vectorize_builtin_vec_perm_ok.
2652 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2653
2654 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
2655 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2656
2657 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
2658 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
2659
2660 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
2661
2662 PR target/47989
2663 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
2664 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
2665 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
2666 implements vectorized single float division and vectorized sqrtf(x)
2667 with reciprocal sequence with additional Newton-Raphson step with
2668 -ffast-math.
2669
2670 2011-10-20 Dodji Seketeli <dodji@redhat.com>
2671
2672 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
2673 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
2674 it was done in ggc-page.c.
2675
2676 PR other/50659
2677 * doc/cppopts.texi: Use @smallexample/@end smallexample in
2678 documentation for -fdebug-cpp instead of @quotation/@end quotation
2679 that is not supported by contrib/texi2pod.pl.
2680
2681 2011-10-19 Jan Hubicka <jh@suse.cz>
2682
2683 * ipa-inline.c (inline_small_functions): Always update all calles after
2684 inlining.
2685
2686 2011-10-19 Jan Hubicka <jh@suse.cz>
2687
2688 PR bootstrap/50709
2689 * ipa-inline.c (inline_small_functions): Fix checking code to not make
2690 effect on fibheap stability.
2691
2692 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
2693
2694 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
2695
2696 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2697
2698 PR target/50106
2699 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
2700 reg size from 1-3.
2701
2702 2011-10-20 Richard Guenther <rguenther@suse.de>
2703
2704 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
2705 and rotates to the set of expensive operations.
2706
2707 2011-10-19 David S. Miller <davem@davemloft.net>
2708
2709 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
2710 (sparc_emit_set_const32): Likewise.
2711 (sparc_emit_set_const64_longway): Likewise.
2712 (sparc_emit_set_const64): Likewise.
2713 (sparc_legitimize_pic_address): Likewise.
2714 (memory_ok_for_ldd): Likewise.
2715
2716 2011-10-20 Dehao Chen <dehao@google.com>
2717
2718 * profile.c (compute_branch_probabilities): Compute and dump the
2719 overlap between the static estimation and the instrumentation profile.
2720 (OVERLAP_BASE): New macro.
2721 (compute_frequency_overlap): New function
2722
2723 2011-10-19 Jakub Jelinek <jakub@redhat.com>
2724
2725 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
2726 d->op1 instead of d->op0 for the second vpshufb.
2727 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
2728 (ix86_expand_vec_perm_const): If mask indicates two operands are
2729 needed, but both are the same and expanding them as d.op0 == d.op1
2730 failed, retry with d.op0 != d.op1.
2731 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
2732 also for d.nelt == 32.
2733
2734 PR middle-end/50754
2735 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
2736 VEC_PERM_EXPR.
2737
2738 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
2739
2740 * regrename.h: New file.
2741 * regrename.c: Include it. Also include "emit-rtl.h".
2742 (struct du_head, struct du_chain, du_head_p DEF_VEC and
2743 DEF_VEC_ALLOC_P): Move to regrename.h.
2744 (do_replace): Remove declaration.
2745 (insn_rr): New variable.
2746 (cur_operand): New static variable.
2747 (regrename_chain_from_id): Renamed from chain_from_id and no longer
2748 static. All callers changed.
2749 (record_operand_use): New static function.
2750 (scan_rtx_reg): Use it.
2751 (find_best_rename_reg): New function, broken out of rename_chains.
2752 (rename_chains): Use it. Don't update chain regno and nregs here, ...
2753 (regrename_do_replace): ... do it here instead. Renamed from
2754 do_replace, and no longer static. All callers changed.
2755 (regrename_analyze): No longer static. New arg bb_mask.
2756 All callers changed. If bb_mask is nonzero, use it to limit the
2757 number of basic blocks we analyze. If we failed to analyze a block,
2758 clear insn operand data.
2759 (record_out_operands): New arg insn_info. Update cur_operand if it is
2760 nonnull.
2761 (build_def_use): If insn_rr is nonnull, pass an insn_info to
2762 record_out_operands, and update cur_operand here as well.
2763 (regrename_init, regrename_finish): New functions.
2764 (regrename_optimize): Use them.
2765 * Makefile.in (regrename.o): Adjust dependencies.
2766
2767 2011-10-19 Tom de Vries <tom@codesourcery.com>
2768
2769 PR tree-optimization/50769
2770 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
2771 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
2772 dummy argument .MEM to phi when increasing number of arguments of phi by
2773 redirecting edges to the block with phi.
2774
2775 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2776
2777 PR bootstrap/50777
2778 * configure.ac: Save and restore CXXFLAGS around
2779 gcc_AC_CHECK_DECLS uses.
2780 Check for madvise() declaration with g++ if --enable-build-with-cxx.
2781 * configure: Regenerate.
2782 * config.in: Regenerate.
2783 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
2784
2785 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
2786
2787 PR debug/49310
2788 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
2789 (variable_part): Replace offset with union.
2790 (enum onepart_enum, onepart_enum_t): New.
2791 (variable_def): Drop cur_loc_changed, add onepart.
2792 (value_chain_def, const_value_chain): Remove.
2793 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
2794 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
2795 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
2796 (value_chain_pool, value_chains): Remove.
2797 (dropped_values): New.
2798 (struct parm_reg): Only if HAVE_window_save.
2799 (vt_stack_adjustments): Don't record register arguments.
2800 (dv_as_rtx): New.
2801 (dv_onepart_p): Return a onepart_enum_t.
2802 (onepart_pool): New.
2803 (dv_pool): Remove.
2804 (dv_from_rtx): New.
2805 (variable_htab_free): Release onepart aux data. Reset flags.
2806 (value_chain_htab_hash, value_chain_htab_eq): Remove.
2807 (unshare_variable): Use onepart field. Propagate onepart aux
2808 data or offset. Drop cur_loc_changed.
2809 (val_store): Cope with NULL insn. Rephrase dump output. Check
2810 for unsuitable locs. Add FIXME on using cselib locs.
2811 (val_reset): Remove FIXME of unfounded concerns.
2812 (val_resolve): Check for unsuitable locs. Add FIXME on using
2813 cselib locs.
2814 (variable_union): Use onepart field, adjust access to offset.
2815 (NO_LOC_P): New.
2816 (VALUE_CHANGED, DECL_CHANGED): Update doc.
2817 (set_dv_changed): Clear NO_LOC_P when changed.
2818 (find_loc_in_1pdv): Use onepart field.
2819 (intersect_loc_chains): Likewise.
2820 (unsuitable_loc): New.
2821 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
2822 (add_value_chain, add_value_chains): Remove.
2823 (add_cselib_value_chains, remove_value_chain): Likewise.
2824 (remove_value_chains, remove_cselib_value_chains): Likewise.
2825 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
2826 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
2827 (variable_merge_over_cur): Likewise. Adjust access to offset.
2828 Drop cur_loc_changed.
2829 (variable_merge_over_src): Use onepart field.
2830 (remove_duplicate_values): Likewise.
2831 (variable_post_merge_new_vals): Likewise.
2832 (find_mem_expr_in_1pdv): Likewise.
2833 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
2834 and value chains.
2835 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
2836 (variable_different_p): Use onepart field. Move onepart test out
2837 of the loop.
2838 (argument_reg_set): Drop.
2839 (add_uses, add_stores): Preserve but do not record in dynamic
2840 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
2841 Avoid unsuitable address expressions.
2842 (EXPR_DEPTH): Unlimit.
2843 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
2844 (prepare_call_arguments): Use DECL_RTL_IF_SET.
2845 (dump_var): Adjust access to offset.
2846 (variable_from_dropped, recover_dropped_1paux): New.
2847 (variable_was_changed): Drop cur_loc_changed. Use onepart.
2848 Preserve onepart aux in empty_var. Recover empty_var and onepart
2849 aux from dropped_values.
2850 (find_variable_location_part): Special-case onepart. Adjust
2851 access to offset.
2852 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
2853 access to offset. Initialize onepaux. Drop value chains.
2854 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
2855 (VEC (variable, heap), VEC (rtx, stack)): Define.
2856 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
2857 ignore_cur_loc. Add expanding, pending, depth.
2858 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
2859 (loc_exp_dep_insert, loc_exp_dep_set): New.
2860 (notify_dependents_of_resolved_value): New.
2861 (update_depth, vt_expand_var_loc_chain): New.
2862 (vt_expand_loc_callback): Revamped.
2863 (resolve_expansions_pending_recursion): New.
2864 (INIT_ELCD, FINI_ELCD): New.
2865 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
2866 parameter, adjust all callers.
2867 (vt_expand_loc_dummy): Drop.
2868 (vt_expand_1pvar): New.
2869 (emit_note_insn_var_location): Operate on non-debug decls only.
2870 Revamp multi-part cur_loc recomputation and one-part expansion.
2871 Drop cur_loc_changed. Adjust access to offset.
2872 (VEC (variable, heap)): Drop.
2873 (changed_variables_stack, changed_values_stack): Drop.
2874 (check_changed_vars_0, check_changed_vars_1): Remove.
2875 (check_changed_vars_2, check_changed_vars_3): Remove.
2876 (values_to_stack, remove_value_from_changed_variables): New.
2877 (notify_dependents_of_changed_value, process_changed_values): New.
2878 (emit_notes_for_changes): Revamp onepart updates.
2879 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
2880 and value chains. Propagate onepaux. Recover empty_var and onepaux
2881 from dropped_values.
2882 (emit_notes_for_differences_2): Drop value chains.
2883 (emit_notes_in_bb): Adjust.
2884 (vt_emit_notes): Drop value chains, changed_variables_stack.
2885 Initialize and release dropped_values.
2886 (create_entry_value): Revamp.
2887 (vt_add_function_parameter): Use new interface.
2888 (note_register_arguments): Remove.
2889 (vt_initialize): Drop value chains and register arguments.
2890 (vt_finalize): Drop value chains. Release windowed_parm_regs only
2891 if HAVE_window_save.
2892 * rtl.h: Document various pass-local uses of RTL flags.
2893 * tree.h (DECL_RTL_KNOWN_SET): New.
2894 * doc/invoke.texi (param max-vartrack-expr-depth): Update
2895 description and default.
2896
2897 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
2898
2899 PR target/50447
2900 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
2901 (adjust_len): Ditto.
2902 (addhi3): Don't pipe through short; use gen_int_mode instead.
2903 Prior to reload, expand to gen_addhi3_clobber.
2904 (*addhi3): Use avr_out_plus_noclobber if applicable, use
2905 out_plus_noclobber in cc and adjust_len attribute.
2906 (addhi3_clobber): 2 new RTL peepholes.
2907 (addhi3_clobber): New insn.
2908 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
2909 * config/avr/avr.c (avr_out_plus_noclobber): New function.
2910 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
2911 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
2912 Set cc0 to set_zn for adiw on 16-bit values.
2913 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
2914 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
2915
2916 2011-10-19 Richard Guenther <rguenther@suse.de>
2917
2918 PR middle-end/50780
2919 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
2920 the condition is properly gimple before using it.
2921 * tree-eh (stmt_could_throw_1_p): Properly extract the
2922 operation type from comparisons.
2923
2924 2011-10-19 Roland Stigge <stigge@antcom.de>
2925
2926 PR translation/48638
2927 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
2928
2929 2011-10-19 Roland Stigge <stigge@antcom.de>
2930
2931 PR translation/49517
2932 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
2933
2934 2011-10-19 Richard Guenther <rguenther@suse.de>
2935
2936 PR middle-end/50768
2937 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
2938
2939 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
2940
2941 PR rtl-optimization/50340
2942 * sel-sched-ir.c (update_target_availability): LHS register
2943 availability is not known if the unavailable LHS of the other
2944 expression is a different register.
2945
2946 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2947
2948 PR target/50310
2949 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
2950 floating-point comparisons.
2951
2952 2011-10-19 Jan Hubicka <jh@suse.cz>
2953
2954 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
2955 destination declared.
2956 (output_weakrefs): New function.
2957 * varpool.c (varpool_create_variable_alias): Handle external aliases.
2958
2959 2011-10-19 Jakub Jelinek <jakub@redhat.com>
2960
2961 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
2962 second argument instead of mode.
2963
2964 2011-10-18 Jakub Jelinek <jakub@redhat.com>
2965
2966 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
2967 mode SUBREG of operands[0] as target.
2968 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
2969 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
2970 (expand_vec_perm_1): Handle identity and some broadcast
2971 permutations.
2972 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
2973 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
2974 For d->testing_p return true earlier to avoid creating more GC
2975 garbage.
2976 (expand_vec_perm_vpermq_perm_1): New function.
2977 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
2978 earlier to avoid creating more GC garbage. Fix handling of
2979 V16HImode. Avoid some SUBREGs in SET_DEST.
2980 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
2981 vector modes.
2982 (expand_vec_perm_vpshufb4_vpermq2): New function.
2983 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
2984 and expand_vec_perm_vpshufb4_vpermq2.
2985
2986 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
2987
2988 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
2989 before exiting.
2990
2991 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
2992
2993 PR tree-optimization/50717
2994 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
2995 parameter. Calculate 'type' from stmt.
2996 (convert_mult_to_widen): Update call the is_widening_mult_p.
2997 (convert_plusminus_to_widen): Likewise.
2998
2999 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3000
3001 * config/spu/spu.c (struct machine_function): New data structure.
3002 (spu_init_machine_status): New function.
3003 (spu_option_override): Install it.
3004 (get_pic_reg): Set and use cfun->machine->pic_reg.
3005 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
3006 (need_to_save_reg): Use cfun->machine->pic_reg instead of
3007 checking crtl->uses_pic_offset_table.
3008 (spu_expand_prologue): Likewise.
3009
3010 2011-10-18 Jakub Jelinek <jakub@redhat.com>
3011
3012 PR tree-optimization/50735
3013 * function.c (gimplify_parameters): Use create_tmp_var instead of
3014 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
3015 or vector type, set DECL_GIMPLE_REG_P.
3016
3017 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
3018
3019 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
3020 * config/arm/arm.opt: Add 'native' processor_type and
3021 arm_arch enum values.
3022 * config/arm/arm.h (host_detect_local_cpu): New prototype.
3023 (EXTRA_SPEC_FUNCTIONS): New define.
3024 (MCPU_MTUNE_NATIVE_SPECS): New define.
3025 (DRIVER_SELF_SPECS): New define.
3026 * config/arm/driver-arm.c: New file.
3027 * config/arm/x-arm: New file.
3028 * doc/invoke.texi (ARM Options): Document -mcpu=native,
3029 -mtune=native and -march=native.
3030
3031 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
3032
3033 PR rtl-optimization/50205
3034 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
3035 p->x is a register. Forbid substitution when the same register is
3036 found in a different mode.
3037 (count_occurrences_equiv): Assert that 'what' is a register.
3038
3039 2011-10-18 Richard Guenther <rguenther@suse.de>
3040
3041 PR tree-optimization/50767
3042 * tree-ssa-pre.c (create_expression_by_pieces): Update the
3043 folded statement.
3044
3045 2011-10-18 Julian Brown <julian@codesourcery.com>
3046
3047 * config/arm/arm.c (arm_block_move_unaligned_straight)
3048 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
3049 (arm_movmemqi_unaligned): New.
3050 (arm_gen_movmemqi): Support unaligned block copies.
3051
3052 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
3053
3054 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
3055 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
3056 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
3057 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3058 (op_code_prio): Likewise.
3059 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
3060 * optabs.c (optab_for_tree_code): Handle
3061 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3062 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
3063 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
3064 * genopinit.c (optabs): Initialize the new optabs.
3065 * expr.c (expand_expr_real_2): Handle
3066 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
3067 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
3068 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
3069 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
3070 VEC_WIDEN_LSHIFT_LO_EXPR): New.
3071 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
3072 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3073 vect_recog_widen_shift_pattern.
3074 (vect_handle_widen_mult_by_const): Rename...
3075 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
3076 Add a new argument, update documentation.
3077 (vect_recog_widen_mult_pattern): Assume that only second
3078 operand can be constant. Update call to
3079 vect_handle_widen_op_by_const.
3080 (vect_recog_over_widening_pattern): Fix typo.
3081 (vect_recog_widen_shift_pattern): New.
3082 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
3083 widening shifts.
3084 (supportable_widening_operation): Likewise.
3085 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
3086 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3087 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
3088 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
3089 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
3090 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
3091 Likewise.
3092 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
3093 New.
3094 * config/arm/iterators.md (V_innermode): New.
3095 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
3096 for widening shift.
3097
3098 2011-10-18 Richard Guenther <rguenther@suse.de>
3099
3100 * tree-ssa-alias.h (struct pt_solution): Remove
3101 vars_contains_restrict member.
3102 (pt_solutions_same_restrict_base): Remove.
3103 (pt_solution_set): Adjust.
3104 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
3105 vars_contains_restrict handling.
3106 (dump_points_to_solution): Likewise.
3107 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
3108 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
3109 field.
3110 (new_var_info): Do not initialize it.
3111 (ipa_escaped_pt): Adjust.
3112 (make_constraint_from_restrict): Make the tag global.
3113 (make_constraint_from_global_restrict): New function.
3114 (make_constraint_from_heapvar): Remove.
3115 (create_variable_info_for): Do not make restrict vars point
3116 to NONLOCAL.
3117 (intra_create_variable_infos): Likewise.
3118 (find_what_var_points_to): Remove vars_contains_restrict handling.
3119 (pt_solution_set): Adjust.
3120 (pt_solution_ior_into): Likewise.
3121 (pt_solutions_same_restrict_base): Remove.
3122 (compute_points_to_sets): Do not test is_restrict_var.
3123 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
3124 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3125
3126 2011-10-18 Tom de Vries <tom@codesourcery.com>
3127
3128 PR tree-optimization/50672
3129 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
3130 factored out of ...
3131 (mark_virtual_phi_result_for_renaming): Use
3132 mark_virtual_operand_for_renaming.
3133 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
3134 * tree-ssa-tail-merge.c (release_last_vdef): New function.
3135 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
3136 deleted basic block.
3137 (tail_merge_optimize): Add argument to call to purge_bbs.
3138
3139 2011-10-18 Richard Guenther <rguenther@suse.de>
3140
3141 PR middle-end/50716
3142 * expr.c (get_object_or_type_alignment): New function.
3143 (expand_assignment): Use it.
3144 (expand_expr_real_1): Likewise.
3145
3146 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3147
3148 PR bootstrap/50760
3149 * input.c (dump_line_table_statistics): Use long, not size_t.
3150
3151 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
3152
3153 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
3154
3155 2011-10-17 Simon Baldwin <simonb@google.com>
3156 Ian Lance Taylor <iant@google.com>
3157
3158 * configure.ac: Add --with-native-system-header-dir. Set and
3159 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
3160 when setting target_header_dir.
3161 * config.gcc: Always set native_system_header_dir.
3162 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
3163 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
3164 use i386/t-djgpp.
3165 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
3166 native_system_header_dir.
3167 (spu-*-elf*): Set native_system_header_dir.
3168 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
3169 @NATIVE_SYSTEM_HEADER_DIR@.
3170 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
3171 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
3172 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3173 STANDARD_INCLUDE_COMPONENT.
3174 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
3175 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3176 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
3177 STANDARD_INCLUDE_COMPONENT.
3178 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
3179 * config/i386/t-mingw-w32: Likewise.
3180 * config/i386/t-mingw-w64: Likewise.
3181 * config/spu/t-spu-elf: Likewise.
3182 * config/i386/t-djgpp: Remove.
3183 * config/t-gnu: Remove.
3184 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
3185 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
3186 STANDARD_INCLUDE_COMPONENT.
3187 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
3188 * config/spu/spu-elf.h: Likewise.
3189 * config/vms/xm-vms.h: Likewise.
3190 * config/gnu.h: Likewise.
3191 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
3192 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
3193 NATIVE_SYSTME_HEADER_COMPONENT.
3194 * doc/install.texi (Configuration): Document
3195 --with-native-system-header-dir. Mention it in the documentation
3196 for --with-sysroot and --with-build-sysroot.
3197 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
3198 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
3199 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
3200 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
3201 * doc/fragments.texi (Target Fragment): Don't document
3202 NATIVE_SYSTEM_HEADER_DIR.
3203 * configure, doc/tm.texi: Rebuild.
3204
3205 2011-10-17 Richard Henderson <rth@redhat.com>
3206
3207 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
3208 is the constraint.
3209
3210 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
3211 patterns.
3212 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
3213 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
3214
3215 2011-10-17 David S. Miller <davem@davemloft.net>
3216
3217 * config/sparc/sparc-modes.def: Add single entry vector modes for
3218 DImode and SImode.
3219 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
3220 mode iterators.
3221 (mov<V32:mode>): Revert back to plain SFmode pattern.
3222 (*movsf_insn): Likewise.
3223 (mov<V64:mode>): Revert back to plain DFmode pattern.
3224 (*movdf_insn_sp32): Likewise.
3225 (*movdf_insn_sp32_v9): Likewise.
3226 (*movdf_insn_sp64): Likewise.
3227 (V64 mode splitters) Likewise.
3228 (addsi3): Remove VIS alternatives.
3229 (subsi3): Likewise.
3230 (and<V64I:mode>3): Revert to DImode only pattern.
3231 (and<V64I:mode>3_sp32): Likewise.
3232 (*and<V64I:mode>3_sp64): Likewise.
3233 (and<V32I:mode>3): Likewise.
3234 (*and_not_<V64I:mode>_sp32): Likewise.
3235 (*and_not_<V64I:mode>_sp64): Likewise.
3236 (*and_not_<V32I:mode>): Likewise.
3237 (ior<V64I:mode>3): Likewise.
3238 (*ior<V64I:mode>3_sp32): Likewise.
3239 (*ior<V64I:mode>3_sp64): Likewise.
3240 (ior<V32I:mode>3): Likewise.
3241 (*or_not_<V64I:mode>_sp32): Likewise.
3242 (*or_not_<V64I:mode>_sp64): Likewise.
3243 (*or_not_<V32I:mode>): Likewise.
3244 (xor<V64I:mode>3): Likewise.
3245 (*xor<V64I:mode>3_sp32): Likewise.
3246 (*xor<V64I:mode>3_sp64): Likewise.
3247 (xor<V32I:mode>3): Likewise.
3248 (V64I mode splitters): Likewise.
3249 (*xor_not_<V64I:mode>_sp32): Likewise.
3250 (*xor_not_<V64I:mode>_sp64): Likewise.
3251 (*xor_not_<V32I:mode>): Likewise.
3252 (one_cmpl<V64I:mode>2): Likewise.
3253 (*one_cmpl<V64I:mode>2_sp32): Likewise.
3254 (*one_cmpl<V64I:mode>2_sp64): Likewise.
3255 (one_cmpl<V32I:mode>2): Likewise.
3256 (VM32, VM64, VMALL): New mode iterators.
3257 (vbits, vconstr, vfptype): New mode attributes.
3258 (mov<VMALL:mode>): New expander.
3259 (*mov<VM32:mode>_insn): New insn.
3260 (*mov<VM64:mode>_insn_sp64): New insn.
3261 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
3262 specifically for the register to memory case.
3263 (vec_init<mode>): New expander.
3264 (VADDSUB): New mode iterator.
3265 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
3266 with...
3267 (<plusminus_insn><mode>3): New consolidated pattern.
3268 (VL): New mode iterator for logical operations.
3269 (vlsuf): New more attribute.
3270 (vlop): New code iterator.
3271 (vlinsn, vlninsn): New code attributes.
3272 (<code><mode>3): New insn to non-negated vector logical ops.
3273 (*not_<code><mode>3): Likewise for negated variants.
3274 (*nand<mode>_vis): New insn.
3275 (vlnotop): New code iterator.
3276 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
3277 (one_cmpl<mode>2): New insn.
3278 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
3279 (bshuffle<VM64:mode>_vis): Likewise.
3280 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
3281 (fp<plusminus_insn>64_vis): Use V1DI mode.
3282 (VASS mode iterator): Use V1SI not SI mode.
3283 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
3284 single-entry vector mode changes.
3285 (sparc_expand_builtin): Likewise.
3286 (sparc_expand_vector_init): New function.
3287 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
3288
3289 2011-10-17 Kai Tietz <ktietz@redhat.com>
3290
3291 * fold-const.c (simple_operand_p_2): New function.
3292 (fold_truthop): Rename to
3293 (fold_truth_andor_1): function name.
3294 Additionally remove branching creation for logical and/or.
3295 (fold_truth_andor): Handle branching creation for logical and/or here.
3296
3297 2011-10-17 Andi Kleen <ak@linux.intel.com>
3298
3299 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
3300
3301 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
3302
3303 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
3304 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
3305 (adjust_len): Add alternative "call".
3306 (isa, enabled): New insn attributes.
3307 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
3308 mcu_mega attribute.
3309 (*sbrx_branch<mode>): Ditto.
3310 (*sbrx_and_branch<mode>): Ditto.
3311 (*sbix_branch): Ditto.
3312 (*sbix_branch_bit7): Ditto.
3313 (*sbix_branch_tmp): Ditto.
3314 (*sbix_branch_tmp_bit7): Ditto.
3315 (jump): Ditto.
3316 (negsi2): Use attribute "isa" instead of assembler dialect.
3317 (extendhisi2): Ditto.
3318 (call_insn, call_value_insn): Set adjust_len attribute.
3319 (indirect_jump): Indent to coding rules.
3320 (call_prologue_saves): Use isa attribute instead of mcu_mega.
3321 (epilogue_restores): Ditto. Fix setting of SP as described in the
3322 RTX pattern.
3323 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
3324 and *indirect_jump_avr6.
3325 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
3326 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
3327 (*tablejump_rjmp, *tablejump_lib): Remove.
3328 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
3329
3330 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3331
3332 PR c++/50757
3333 * doc/invoke.texi ([Wnonnull]): Update.
3334
3335 2011-10-17 Richard Henderson <rth@redhat.com>
3336
3337 PR 50746
3338 * optabs.c (expand_vec_perm_expr): Fix indexing error.
3339
3340 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
3341
3342 * configure.ac: Display `yes' if the SystemTap header has been found.
3343 * configure: Regenerate.
3344
3345 2011-10-08 Andi Kleen <ak@linux.intel.com>
3346
3347 PR other/50636
3348 * config.in, configure: Regenerate.
3349 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
3350 * ggc-page.c (USING_MADVISE): Add.
3351 (page_entry): Add discarded field.
3352 (alloc_page): Check for discarded pages.
3353 (release_pages): Add USING_MADVISE branch.
3354
3355 2011-10-17 Richard Guenther <rguenther@suse.de>
3356
3357 PR tree-optimization/50729
3358 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
3359 (simplify_conversion_using_ranges): Properly test the
3360 intermediate result.
3361
3362 2011-10-15 Tom Tromey <tromey@redhat.com>
3363 Dodji Seketeli <dodji@redhat.com>
3364
3365 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
3366 * ggc-none.c (ggc_round_alloc_size): New public stub function.
3367 * ggc-page.c (ggc_alloced_size_order_for_request): New static
3368 function. Factorized from ggc_internal_alloc_stat.
3369 (ggc_round_alloc_size): New public function. Uses
3370 ggc_alloced_size_order_for_request.
3371 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
3372 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
3373 from ggc_internal_alloc_zone_stat.
3374 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
3375 * toplev.c (general_init): Initialize
3376 line_table->alloced_size_for_request.
3377
3378 2011-10-15 Tom Tromey <tromey@redhat.com>
3379 Dodji Seketeli <dodji@redhat.com>
3380
3381 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
3382 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
3383 new counters.
3384 (dump_line_table_statistics): Define new function.
3385 * input.h (dump_line_table_statistics): Declare new function.
3386 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
3387
3388 2011-10-15 Tom Tromey <tromey@redhat.com>
3389 Dodji Seketeli <dodji@redhat.com>
3390
3391 * doc/cppopts.texi: Document -fdebug-cpp.
3392 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
3393
3394 2011-10-15 Tom Tromey <tromey@redhat.com>
3395 Dodji Seketeli <dodji@redhat.com>
3396
3397 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
3398 location parameter.
3399 * diagnostic.c (diagnostic_report_current_module): Add a location
3400 parameter to the function definition. Use it instead of
3401 input_location. Resolve the virtual location rather than just
3402 looking up its map and risking to touch a resulting macro map.
3403 (default_diagnostic_starter): Pass the relevant diagnostic
3404 location to diagnostic_report_current_module.
3405 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
3406 (virt_loc_aware_diagnostic_finalizer): Likewise.
3407 (diagnostic_report_current_function): Pass the
3408 relevant location to diagnostic_report_current_module.
3409 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
3410 new function.
3411 * toplev.c (general_init): By default, use the new
3412 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
3413 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
3414
3415 2011-10-15 Tom Tromey <tromey@redhat.com>
3416 Dodji Seketeli <dodji@redhat.com>
3417
3418 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
3419 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
3420 preprocessor related options.
3421
3422 2011-10-15 Tom Tromey <tromey@redhat>
3423 Dodji Seketeli <dodji@redhat.com>
3424
3425 * input.h (struct expanded_location): Move to libcpp/line-map.h.
3426 (LOCATION_COLUMN): New accessor
3427 (in_system_header_at): Use linemap_location_in_system_header_p.
3428 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
3429 touching the internals of struct line_map. Use the public API instead.
3430 (diagnostic_report_diagnostic): Don't use relational operator '<'
3431 on virtual locations. Use linemap_location_before_p instead.
3432 * input.c (expand_location): Adjust to expand to the tokens'
3433 spelling location when macro location tracking is on.
3434
3435
3436 2011-10-08 Andi Kleen <ak@linux.intel.com>
3437
3438 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
3439
3440 2011-10-13 Andi Kleen <ak@linux.intel.com>
3441
3442 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
3443
3444 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
3445
3446 PR tree-optimization/50727
3447 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
3448 DEF_STMT to the list of statements to be replaced by the
3449 pattern statements.
3450
3451 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
3452
3453 PR rtl-optimization/50615
3454 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
3455
3456 2011-10-16 Jakub Jelinek <jakub@redhat.com>
3457
3458 PR tree-optimization/50596
3459 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
3460 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3461 vect_recog_bool_pattern.
3462 (check_bool_pattern, adjust_bool_pattern_cast,
3463 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
3464
3465 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
3466
3467 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
3468 treat the first load of the node as the first element in its
3469 interleaving chain.
3470 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
3471 necessary and possible.
3472 (vect_build_slp_tree): Add new argument. Allow load groups of any size
3473 in basic blocks. Keep all the loads for further permutation check.
3474 Use the new argument to determine if there is a permutation. Update
3475 the recursive calls.
3476 (vect_supported_load_permutation_p): Allow subchains of interleaving
3477 chains in basic block vectorization.
3478 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
3479 Check load permutation based on the new parameter.
3480 (vect_schedule_slp_instance): Don't start from the first element in
3481 interleaving chain unless the loads are permuted.
3482
3483 2011-10-15 Jan Hubicka <jh@suse.cz>
3484
3485 PR target/48668
3486 PR target/50689
3487 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
3488 after function body.
3489
3490 2011-10-15 Richard Henderson <rth@redhat.com>
3491
3492 * tree-vect-slp.c: Include langhooks.h.
3493 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
3494 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
3495 mask creation for VEC_PERM_EXPR.
3496 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
3497 not the builtin.
3498 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
3499 * Makefile.in (tree-vect-slp.o): Update dependency.
3500 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
3501
3502 2011-10-15 Alan Modra <amodra@gmail.com>
3503
3504 PR bootstrap/50738
3505 * ifcvt.c (dead_or_predicable): Revert accidental commit with
3506 HAVE_simple_return test.
3507
3508 2011-10-15 Alan Modra <amodra@gmail.com>
3509
3510 * ifcvt.c (dead_or_predicable): Disable if-conversion when
3511 doing so is likely to kill a shrink-wrapping opportunity.
3512
3513 PR rtl-optimization/49941
3514 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
3515
3516 * rtl.h (set_return_jump_label): Declare.
3517 * function.c (set_return_jump_label): New function, extracted..
3518 (thread_prologue_and_epilogue_insns): ..from here. Use it in
3519 another instance to set return jump_label.
3520 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
3521 * reorg.c (find_end_label): Likewise.
3522
3523 2011-10-14 David S. Miller <davem@davemloft.net>
3524
3525 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
3526 with a more complete cpp test.
3527 * config/sparc/linux64.h: Likewise.
3528 * config/sparc/linux.h: Likewise.
3529 * config/sparc/sparc.opt (sparc_debug): New target variable.
3530 (mdebug): New target option.
3531 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
3532 TARGET_DEBUG_OPTIONS): New defines.
3533 * config/sparc/sparc.c (debug_target_flag_bits,
3534 debug_target_flags): New functions.
3535 (sparc_option_override): Add name strings back to cpu_table[].
3536 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
3537 out the target flags before and after override processing as well
3538 as the selected cpu. If MASK_V8PLUS, make sure that the selected
3539 cpu is at least v9.
3540
3541 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
3542
3543 PR target/49263
3544 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
3545 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
3546 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
3547 and instruction commutative.
3548 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
3549 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
3550 tstsi_t_zero_extract_subreg_xor_little,
3551 tstsi_t_zero_extract_subreg_xor_big): New insns.
3552 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
3553 asm output.
3554 (*andsi_compact): Reorder alternatives so that K08 is considered first.
3555
3556 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
3557
3558 PR target/50354
3559 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
3560 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
3561
3562 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
3563
3564 * invoke.texi (AVR Options): Avoid \leq{}.
3565
3566 2011-10-14 Kai Tietz <ktietz@redhat.com>
3567
3568 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
3569 transformation the operands have compatible types.
3570
3571 2011-10-14 Jakub Jelinek <jakub@redhat.com>
3572
3573 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
3574 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
3575 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
3576 mode iterator and any_extend code iterator.
3577 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
3578 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
3579 also for TARGET_SSE4_1 using pmuldq insn.
3580 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
3581 (sse2_sse4_1): New code attr.
3582 (udot_prodv4si): Macroize using any_extend code iterator.
3583 (<s>dot_prodv8si): New expander.
3584
3585 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
3586
3587 * config/i386/i386.c (atom_cost): Changed cost for loading
3588 QImode using movzbl.
3589
3590 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3591
3592 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
3593 change on October 11th, 2011.
3594
3595 2011-10-14 Jakub Jelinek <jakub@redhat.com>
3596
3597 * config/i386/sse.md (vec_interleave_high<mode>,
3598 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
3599 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
3600 (ix86_expand_vec_perm_builtin_1): Call it.
3601
3602 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
3603
3604 Fix thinko from r179765
3605 * config/avr/avr.c (avr_option_override): Don't override
3606 flag_omit_frame_pointer if not actually needed.
3607
3608 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
3609
3610 PR target/46278
3611 * doc/invoke.texi (AVR Options): Document -mstrict-X.
3612
3613 * config/avr/avr.opt (-mstrict-X): New option.
3614 (avr_strict_X): New variable reflecting -mstrict-X.
3615 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
3616 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
3617 (avr_legitimate_address_p): Pass outer_code to
3618 avr_reg_ok_for_addr_p and use that function in case PLUS.
3619 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
3620 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
3621 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
3622
3623 2011-10-14 Jakub Jelinek <jakub@redhat.com>
3624
3625 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
3626 of VI_128.
3627
3628 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
3629 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
3630 Use <sseinsnmode> instead of TI in mode attr.
3631
3632 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
3633
3634 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
3635 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
3636 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
3637 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
3638
3639 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
3640
3641 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
3642 (arm_output_strex): Support strexd.
3643 (arm_output_it): New helper to output it in Thumb2 mode only.
3644 (arm_output_sync_loop): Support DI mode. Change comment to
3645 not support const_int.
3646 (arm_expand_sync): Support DI mode.
3647 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
3648 and LDREXD.
3649 * config/arm/iterators.md (NARROW): move from sync.md.
3650 (QHSD): New iterator for all current ARM integer modes.
3651 (SIDI): New iterator for SI and DI modes only.
3652 * config/arm/sync.md (sync_predtab): New mode_attr.
3653 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
3654 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
3655 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
3656 (sync_nandsi): Fold into sync_nand<mode>.
3657 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
3658 (sync_new_nandsi): Fold into sync_new_nand<mode>.
3659 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
3660 (sync_old_nandsi): Fold into sync_old_nand<mode>.
3661 (sync_compare_and_swap<mode>): Support SI & DI.
3662 (sync_lock_test_and_set<mode>): Likewise.
3663 (sync_<sync_optab><mode>): Likewise.
3664 (sync_nand<mode>): Likewise.
3665 (sync_new_<sync_optab><mode>): Likewise.
3666 (sync_new_nand<mode>): Likewise.
3667 (sync_old_<sync_optab><mode>): Likewise.
3668 (sync_old_nand<mode>): Likewise.
3669 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
3670 (arm_sync_lock_test_and_setsi): Likewise.
3671 (arm_sync_new_<sync_optab>si): Likewise.
3672 (arm_sync_new_nandsi): Likewise.
3673 (arm_sync_old_<sync_optab>si): Likewise.
3674 (arm_sync_old_nandsi): Likewise.
3675 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
3676 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
3677 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
3678 (arm_sync_new_nand<mode> NARROW): Likewise.
3679 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
3680 (arm_sync_old_nand<mode> NARROW): Likewise.
3681
3682 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
3683
3684 PR target/48126
3685 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
3686
3687 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
3688
3689 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
3690
3691 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3692
3693 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
3694
3695 2011-10-14 Jakub Jelinek <jakub@redhat.com>
3696
3697 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
3698 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
3699
3700 2011-10-14 Richard Guenther <rguenther@suse.de>
3701
3702 PR tree-optimization/50723
3703 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
3704
3705 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
3706
3707 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
3708 objc/objc-map.c.
3709
3710 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3711
3712 PR c++/17212
3713 * doc/invoke.texi ([Wformat-zero-length]): Update.
3714
3715 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
3716
3717 PR bootstrap/50699
3718 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
3719 build for powerpc targets. (darwin_patch_builtins): Only build for
3720 powerpc targets.
3721
3722 2011-10-14 Jakub Jelinek <jakub@redhat.com>
3723
3724 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
3725 (avx_cvtdq2pd256_2): ... this.
3726 (sseunpackfltmode): New mode attr.
3727 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
3728 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
3729 using VI2_AVX2 iterator.
3730 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
3731
3732 2011-10-13 David S. Miller <davem@davemloft.net>
3733
3734 * config/sparc/sparc.md (plusminus): New code iterator.
3735 (plusminus_insn): New code attr.
3736 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
3737 using plusminus and plusminus_insn.
3738 (fpadd64_vis, fpsub64_vis): Likewise.
3739
3740 2011-10-13 Richard Henderson <rth@redhat.com>
3741
3742 * doc/md.texi (vec_perm): Document fallback to byte permutation.
3743 * genopinit.c (optabs): Add vec_perm_const.
3744 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
3745 Reject non-vector modes. Allow fallback to byte permutation.
3746 (expand_vec_perm_expr_1): Split out from ...
3747 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
3748 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
3749 * tree-vect-generic.c (lower_vec_perm): Update for name change.
3750
3751 2011-10-13 Richard Henderson <rth@redhat.com>
3752
3753 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
3754
3755 * config/rs6000/spu.md (vec_permv16qi): New pattern.
3756
3757 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
3758 * config/i386/i386-protos.h: Update.
3759 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
3760 (vec_perm_const<VEC_PERM_CONST>): New expander.
3761
3762 * optabs.c (expand_vector_broadcast): New.
3763 (expand_binop): Expand scalar shifts of vectors to vector shifts
3764 of vectors, if the former isn't supported.
3765 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
3766 here; always simplify to scalar shift of vector if possible.
3767
3768 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
3769 test for vector splat.
3770
3771 2011-10-13 Jakub Jelinek <jakub@redhat.com>
3772
3773 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
3774
3775 2011-10-13 Jakub Jelinek <jakub@redhat.com>
3776 Richard Guenther <rguenther@suse.de>
3777
3778 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
3779 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
3780
3781 2011-10-13 Jakub Jelinek <jakub@redhat.com>
3782
3783 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
3784 * config/i386/i386.c (ix86_build_const_vector): Handle
3785 also V32QI, V16QI, V16HI and V8HI modes.
3786 (emit_reduc_half): New function.
3787 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
3788 Use emit_reduc_half helper function.
3789
3790 2011-10-13 Lawrence Crowl <crowl@google.com>
3791 Diego Novillo <dnovillo@google.com>
3792
3793 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
3794 (input_function): ... here.
3795 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
3796 (output_function): ... here.
3797
3798 2011-10-13 Gabriel Charette <gchare@google.com>
3799 Diego Novillo <dnovillo@google.com>
3800
3801 * streamer-hooks.h (struct streamer_hooks): Add hooks
3802 input_location and output_location.
3803 * lto-streamer-in.c (lto_input_location): Use
3804 streamer_hooks.input_location, if set.
3805 * lto-streamer-out.c (lto_output_location): Use
3806 streamer_hooks.output_location, if set.
3807
3808 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
3809
3810 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
3811 * config/sparc/sparc.opt (mfix-at697f): New option.
3812 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
3813 (sparc_reorg): New function.
3814
3815 2011-10-13 Richard Guenther <rguenther@suse.de>
3816
3817 PR tree-optimization/50712
3818 * ipa-split.c (split_function): Always re-gimplify parameters
3819 when they are not gimple vals before passing them. Properly
3820 check for type compatibility.
3821
3822 2011-10-13 Tom de Vries <tom@codesourcery.com>
3823
3824 * function.c (gimplify_parameters): Set number of arguments of call to
3825 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
3826
3827 2011-10-13 Tom de Vries <tom@codesourcery.com>
3828
3829 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
3830 for static const strings.
3831 * varasm.c (build_constant_desc): Generate the memory location of the
3832 constant using gen_const_mem.
3833
3834 2011-10-13 Richard Guenther <rguenther@suse.de>
3835
3836 PR tree-optimization/50698
3837 * tree-data-ref.c (split_constant_offset_1): Also process
3838 offsets of &MEM.
3839
3840 2011-10-12 David S. Miller <davem@davemloft.net>
3841
3842 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
3843 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
3844 unspecs.
3845 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
3846 of a vec_concat.
3847 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
3848 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
3849 Reimplement as unspecs and remove inaccurate comments.
3850 (vis3_shift_patname): New code attr.
3851 (<vis3_shift_insn><vbits>_vis): Rename to
3852 "v<vis3_shift_patname><mode>3".
3853 (vis3_addsub_ss_patname): New code attr.
3854 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
3855 "<vis3_addsub_ss_patname><mode>3".
3856 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
3857 accommodate pattern name changes.
3858
3859 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
3860 to zero when assembler lacks support for such instructions.
3861 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
3862 and MASK_FMAF in defaults when assembler lacks necessary support.
3863
3864 2011-10-12 Jakub Jelinek <jakub@redhat.com>
3865
3866 * config/i386/sse.md (vec_unpacks_lo_<mode>,
3867 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
3868 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
3869 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
3870 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
3871
3872 * config/i386/sse.md (vec_avx2): New mode_attr.
3873 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
3874 (mul<mode>3): ... this.
3875
3876 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
3877 * config/i386/i386.c (ix86_expand_vec_perm): Handle
3878 V16QImode and V32QImode for TARGET_AVX2.
3879 (MAX_VECT_LEN): Increase to 32.
3880 (expand_vec_perm_blend): Add support for 32-byte integer
3881 vectors with TARGET_AVX2.
3882 (valid_perm_using_mode_p): New function.
3883 (expand_vec_perm_pshufb): Add support for 32-byte integer
3884 vectors with TARGET_AVX2.
3885 (expand_vec_perm_vpshufb2_vpermq): New function.
3886 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
3887 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
3888 with TARGET_AVX2.
3889 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
3890 and expand_vec_perm_vpshufb2_vpermq_even_odd.
3891 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
3892 32-byte integer vector modes.
3893 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
3894 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
3895 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
3896 4 new operands.
3897 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
3898 match_dup, instead add 4 new operands and require they have
3899 right cross-lane values.
3900 (avx2_permv4di): Change into define_expand.
3901 (avx2_permv4di_1): New instruction.
3902 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
3903 for "xm" constrained operand.
3904 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
3905
3906 * config/i386/sse.md (avx2_gathersi<mode>,
3907 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
3908 match_scratch, change memory_operand to register_operand,
3909 add (mem:BLK (scratch)) use.
3910 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
3911 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
3912 add earlyclobber to the output operand and match_scratch,
3913 add (mem:BLK (scratch)) use, change the other mem to match_operand.
3914 Use %p6 instead of %c6 in the pattern.
3915 * config/i386/i386.c (ix86_expand_builtin): Adjust for
3916 operand 2 being a Pmode register_operand instead of memory_operand.
3917
3918 2011-10-12 Kai Tietz <ktietz@redhat.com>
3919
3920 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
3921
3922 2011-10-12 Steve Ellcey <sje@cup.hp.com>
3923
3924 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
3925
3926 2011-10-12 Richard Guenther <rguenther@suse.de>
3927
3928 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
3929 of the first store we visit in a basic-block.
3930 (get_continuation_for_phi): Search for a candidate VUSE that
3931 might dominates all others. Do pairwise disambiguation against
3932 that candidate.
3933
3934 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
3935
3936 PR tree-optimization/50189
3937 * tree-vrp.c (extract_range_from_assert): Use the type of
3938 the variable, not the limit.
3939
3940 2011-10-12 Richard Guenther <rguenther@suse.de>
3941
3942 PR tree-optimization/50700
3943 * tree-object-size.c (addr_object_size): Simplify and treat
3944 MEM_REF bases consistently.
3945
3946 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
3947
3948 * function.c (prepare_shrink_wrap, bb_active_p): New function.
3949 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
3950 prepare_shrink_wrap, then recompute bb_active_p for the last block.
3951
3952 2011-10-12 Joseph Myers <joseph@codesourcery.com>
3953
3954 PR c/50565
3955 * convert.c (convert_to_integer): Do not narrow operands of
3956 pointer subtraction.
3957
3958 2011-10-12 Nick Clifton <nickc@redhat.com>
3959
3960 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
3961 emit a .eabi_attribute assembler directive, possibly with a
3962 comment attached.
3963 * config/arm/arm.c (arm_file_start): Use the new macro.
3964 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
3965
3966 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
3967
3968 PR target/49939
3969 * config/avr/avr.md (*movqi): Rename to movqi_insn.
3970 (*call_insn): Rename to call_insn.
3971 (*call_value_insn): Rename to call_value_insn.
3972 * config/avr/avr.c (avr_2word_insn_p): New static function.
3973 (jump_over_one_insn_p): Use it.
3974
3975 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
3976
3977 * expr.h (copy_blkmode_to_reg): Declare.
3978 * expr.c (copy_blkmode_to_reg): New function.
3979 (expand_assignment): Don't expand register RESULT_DECLs before
3980 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
3981 RESULT_DECL register.
3982 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
3983 * stmt.c (expand_return): Move BLKmode-to-register code into
3984 copy_blkmode_to_reg.
3985
3986 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
3987
3988 PR target/49965
3989 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
3990 (mov<F:mode>cc): Likewise.
3991
3992 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3993
3994 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
3995
3996 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3997
3998 * tree.h (built_in_decls): Delete old interface with two parallel
3999 arrays to hold standard builtin declarations, and replace it with
4000 a function based interface that can support creating builtins on
4001 the fly in the future. Change all uses, and poison the old
4002 names. Make sure 0 is not a legitimate builtin index.
4003 (implicit_built_in_decls): Ditto.
4004 (built_in_info): Ditto.
4005 (BUILTIN_VALID_P): Ditto.
4006 (builtin_decl_explicit): Ditto.
4007 (builtin_decl_implicit): Ditto.
4008 (set_builtin_decl): Ditto.
4009 (set_builtin_decl_implicit_p): Ditto.
4010 (builtin_decl_explicit_p): Ditto.
4011 (builtin_decl_implicit_p): Ditto.
4012 * tree-complex.c (expand_complex_libcall): Ditto.
4013 * tree-loop-distribution.c (generate_memset_zero): Ditto.
4014 * tree-ssa-strlen.c (get_string_length): Ditto.
4015 (handle_builtin_strcpy): Ditto.
4016 (handle_builtin_strcat): Ditto.
4017 * tree.c (iterative_hash_expr): Ditto.
4018 (local_define_builtin): Ditto.
4019 (build_common_builtin_nodes): Ditto.
4020 * builtins.c (built_in_decls): Ditto.
4021 (implicit_built_in_decls): Ditto.
4022 (built_in_info): Ditto
4023 (expand_builtin_classify_type): Ditto.
4024 (mathfn_built_in_1): Ditto.
4025 (expand_builtin_cexpi): Ditto.
4026 (expand_builtin_mempcpy_args): Ditto.
4027 (expand_builtin_stpcpy): Ditto.
4028 (gimplify_va_arg_expr): Ditto.
4029 (expand_builtin_sync_operation): Ditto.
4030 (build_builtin_expect_predicate): Ditto.
4031 (fold_builtin_memory_op): Ditto.
4032 (fold_builtin_strcpy): Ditto.
4033 (fold_builtin_stpcpy): Ditto.
4034 (fold_builtin_strncpy): Ditto.
4035 (fold_builtin_interclass_mathfn): Ditto.
4036 (fold_builtin_classify): Ditto.
4037 (fold_builtin_2): Ditto.
4038 (fold_builtin_strstr): Ditto.
4039 (fold_builtin_strrchr): Ditto.
4040 (fold_builtin_strpbrk): Ditto.
4041 (fold_builtin_strcat): Ditto.
4042 (fold_builtin_strncat): Ditto.
4043 (fold_builtin_strcspn): Ditto.
4044 (fold_builtin_fputs): Ditto.
4045 (fold_builtin_sprintf): Ditto.
4046 (fold_builtin_snprintf): Ditto.
4047 (expand_builtin_memory_chk): Ditto.
4048 (fold_builtin_memory_chk): Ditto.
4049 (fold_builtin_stxcpy_chk): Ditto.
4050 (fold_builtin_strncpy_chk): Ditto.
4051 (fold_builtin_strcat_chk): Ditto.
4052 (fold_builtin_strncat_chk): Ditto.
4053 (fold_builtin_sprintf_chk_1): Ditto.
4054 (fold_builtin_snprintf_chk_1): Ditto.
4055 (fold_builtin_printf): Ditto.
4056 (fold_builtin_fprintf): Ditto.
4057 (fold_call_stmt): Ditto.
4058 (set_builtin_user_assembler_name): Ditto.
4059 * tree-emutls.c (emutls_common_1): Ditto.
4060 * omp-low.c (scan_omp): Ditto.
4061 (lower_rec_input_clauses): Ditto.
4062 (lower_reduction_clauses): Ditto.
4063 (expand_parallel_call): Ditto.
4064 (expand_task_call): Ditto.
4065 (maybe_catch_exception): Ditto.
4066 (optimize_omp_library_calls): Ditto.
4067 (expand_omp_for_generic): Ditto.
4068 (expand_omp_for_static_nochunk): Ditto.
4069 (expand_omp_for_static_chunk): Ditto.
4070 (expand_omp_sections): Ditto.
4071 (expand_omp_atomic_fetch_op): Ditto.
4072 (expand_omp_atomic_pipeline): Ditto.
4073 (expand_omp_atomic_mutex): Ditto.
4074 (lower_omp_single_simple): Ditto.
4075 (lower_omp_single_copy): Ditto.
4076 (lower_omp_master): Ditto.
4077 (lower_omp_ordered): Ditto.
4078 (lower_omp_critical): Ditto.
4079 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
4080 * builtins.c (DEF_BUILTIN_STUB): Ditto.
4081 (BUILT_IN_NONE): Ditto.
4082 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
4083 * gimple-low.c (lower_function_body): Ditto.
4084 (lower_builtin_setjmp): Ditto.
4085 * c-decl.c (merge_decls): Ditto.
4086 * tree-eh.c (lower_resx): Ditto.
4087 (lower_resx): Ditto.
4088 (lower_eh_dispatch): Ditto.
4089 * function (gimplify_parameters): Ditto.
4090 * c-typeck.c (build_function_call_vec): Ditto.
4091 * gimplify.c (build_stack_save_restore): Ditto.
4092 (gimplify_vla_decl): Ditto.
4093 (gimplify_modify_expr_to_memcpy): Ditto.
4094 (gimplify_modify_expr_to_memset): Ditto.
4095 (gimplify_variable_sized_compare): Ditto.
4096 (gimplify_function_tree): Ditto.
4097 * calls.c (emit_call_1): Ditto.
4098 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
4099 * tree-nested.c (convert_nl_goto_reference): Ditto.
4100 (convert_tramp_reference_op): Ditto.
4101 (finalize_nesting_tree_1): Ditto.
4102 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4103 (tree_ssa_prefetch_arrays): Ditto.
4104 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
4105 * system.h (built_in_decls): Ditto.
4106 (implicit_built_in_decls): Ditto.
4107 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4108 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
4109 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
4110 (ix86_veclibabi_svml): Ditto.
4111 (ix86_veclibabi_acml): Ditto.
4112 * config/vms/vms.c (vms_patch_builtins): Ditto.
4113 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
4114 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
4115 (rs6000_builtin_vectorized_libmass): Ditto.
4116 (rs6000_init_builtins): Ditto.
4117 * config/darwin.c (darwin_override_options): Ditto.
4118 (darwin_patch_builtin): Ditto.
4119 (darwin_rename_builtins): Ditto.
4120 * config/pa/pa.c (pa_init_builtins): Ditto.
4121
4122 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4123
4124 * tree.h (copy_ref_info): Expose existing function.
4125 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
4126 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
4127
4128 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
4129
4130 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
4131 prototype.
4132 (avr_regno_mode_code_ok_for_base_p): New prototype.
4133 * config/avr/avr.h (BASE_REG_CLASS): Remove.
4134 (REGNO_OK_FOR_BASE_P): Remove.
4135 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
4136 (REG_OK_FOR_BASE_STRICT_P): Remove.
4137 (MODE_CODE_BASE_REG_CLASS): New define.
4138 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
4139 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
4140 (avr_regno_mode_code_ok_for_base_p): New function.
4141 (avr_reg_ok_for_addr_p): New static function.
4142 (avr_legitimate_address_p): Use it. Beautify.
4143
4144 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
4145
4146 PR target/50447
4147 * config/avr/avr.md (cc): Add out_plus attribute alternative.
4148 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
4149 avr_out_plus for all CONST_INT addends.
4150 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
4151 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
4152 CC_OUT_PLUS.
4153 (avr_out_plus_1): Change prototype and report effect on cc0.
4154 (avr_out_plus): Ditto.
4155 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
4156
4157 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
4158
4159 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
4160 the extra break.
4161
4162 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4163
4164 * doc/invoke.texi: Document new warning.
4165 * common.opt (Wvector-operation-performance): Define new warning.
4166 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
4167 vector operation.
4168 (exapnd_vector_parallel): Warn about expanded vector operation.
4169 (lower_vec_shuffle): Warn about expanded vector operation.
4170 * c-typeck.c (c_build_vec_perm_expr): Store correct location
4171 when creating VEC_PERM_EXPR.
4172
4173 2011-10-11 Richard Guenther <rguenther@suse.de>
4174
4175 PR tree-optimization/50204
4176 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
4177 two argument handling from ...
4178 (get_continuation_for_phi): ... here. Handle arbitrary number
4179 of PHI args.
4180
4181 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
4182
4183 * modulo-sched.c: Fix comment typo. Mention the possibility
4184 of using scheduling windows of II+1 cycles.
4185
4186 2011-10-11 Tristan Gingold <gingold@adacore.com>
4187
4188 * doc/invoke.texi (C Dialect Options): Document
4189 -fallow-parameterless-variadic-functions.
4190 * c-parser.c (c_parser_parms_list_declarator): Handle it.
4191
4192 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
4193
4194 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
4195 to 0 if frame pointer is needed for unwinding.
4196
4197 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
4198
4199 PR bootstrap/50665
4200 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
4201 optab_index to enum direct_optab_index.
4202 (vec_perm_optab): Update.
4203
4204 2011-10-10 Anatoly Sokolov <aesok@post.ru>
4205
4206 * config/cris/cris.c (cris_preferred_reload_class): New function.
4207 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4208 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
4209
4210 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
4211
4212 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
4213 !AVR_HAVE_JMP_CALL.
4214 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
4215 (*tablejump_enh, *tablejump): Remove insns.
4216 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
4217 EIJMP for indirect jump. Use LPM Z+ where available.
4218
4219 2011-10-10 Richard Henderson <rth@redhat.com>
4220
4221 * doc/md.texi (vec_perm_const): Fix typo in cindex.
4222
4223 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
4224 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
4225
4226 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
4227
4228 2011-10-10 Richard Guenther <rguenther@suse.de>
4229
4230 PR middle-end/50389
4231 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4232 mark symbols for renaming. Append the VUSE to all statements
4233 that possibly can have one.
4234
4235 2011-10-10 Richard Guenther <rguenther@suse.de>
4236
4237 * ipa-split.c (pass_split_functions): Add verification TODOs.
4238 (pass_feedback_split_functions): Likewise.
4239
4240 2011-10-10 Richard Guenther <rguenther@suse.de>
4241
4242 PR middle-end/50195
4243 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
4244 only when optimizing.
4245
4246 2011-10-10 Nick Clifton <nickc@redhat.com>
4247
4248 PR middle-end/49801
4249 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
4250 df_get_live_out instead of accessing the bitmaps directly.
4251 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
4252 df_live_add_problem and df_analyze.
4253
4254 2011-10-10 Michael Matz <matz@suse.de>
4255
4256 PR middle-end/50638
4257 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
4258
4259 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4260
4261 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
4262 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
4263 (node_sched_params): Remove first_reg_move and nreg_moves.
4264 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
4265 (update_node_sched_params): Move up file.
4266 (print_node_sched_params): Print the stage. Don't dump info related
4267 to first_reg_move and nreg_moves.
4268 (set_columns_for_row): New function.
4269 (set_columns_for_ps): Move up file and use set_columns_for_row.
4270 (schedule_reg_move): New function.
4271 (schedule_reg_moves): Call extend_node_sched_params and
4272 schedule_reg_move. Extend size of uses bitmap. Initialize
4273 num_consecutive_stages. Return false if a move could not be
4274 scheduled.
4275 (apply_reg_moves): Don't emit moves here.
4276 (permute_partial_schedule): Handle register moves.
4277 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
4278 to the same stage-count test as ddg nodes.
4279 (generate_prolog_epilog): Update calls accordingly.
4280 (sms_schedule): Allow move-scheduling to add a new first stage.
4281
4282 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4283
4284 * modulo-sched.c (ps_insn): Adjust comment.
4285 (ps_reg_move_info): New structure.
4286 (partial_schedule): Add reg_moves field.
4287 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
4288 (node_sched_params): Turn first_reg_move into an identifier.
4289 (ps_reg_move): New function.
4290 (ps_rtl_insn): Cope with register moves.
4291 (ps_first_note): Adjust comment and assert that the instruction
4292 isn't a register move.
4293 (node_sched_params): Replace with...
4294 (node_sched_param_vec): ...this vector.
4295 (set_node_sched_params): Adjust accordingly.
4296 (print_node_sched_params): Take a partial schedule instead of a ddg.
4297 Use ps_rtl_insn and ps_reg_move.
4298 (generate_reg_moves): Rename to...
4299 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
4300 move in the partial schedule, but don't emit it here. Don't perform
4301 register substitutions here either.
4302 (apply_reg_moves): New function.
4303 (duplicate_insns_of_cycles): Use register indices directly,
4304 rather than finding instructions using PREV_INSN. Use ps_reg_move.
4305 (sms_schedule): Call schedule_reg_moves before committing to
4306 a partial schedule. Try the next ii if the schedule fails.
4307 Use apply_reg_moves instead of generate_reg_moves. Adjust
4308 call to print_node_sched_params. Free node_sched_param_vec
4309 instead of node_sched_params.
4310 (create_partial_schedule): Initialize reg_moves.
4311 (free_partial_schedule): Free reg_moves.
4312
4313 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4314
4315 * modulo-sched.c (ps_insn): Replace node field with an identifier.
4316 (SCHED_ASAP): Replace with..
4317 (NODE_ASAP): ...this macro.
4318 (SCHED_PARAMS): New macro.
4319 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
4320 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
4321 (node_sched_params): Remove asap.
4322 (ps_rtl_insn, ps_first_note): New functions.
4323 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
4324 asap values.
4325 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
4326 (generate_reg_moves): Pass ids to the SCHED_* macros.
4327 (update_node_sched_params): Take a ps insn identifier rather than
4328 a node as parameter. Use ps_rtl_insn.
4329 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
4330 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
4331 (optimize_sc): Update for above field and SCHED_* macro changes.
4332 Update calls to try_scheduling_node_in_cycle and
4333 update_node_sched_params.
4334 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
4335 macro changes. Use ps_rtl_insn and ps_first_note.
4336 (sms_schedule): Pass ids to the SCHED_* macros.
4337 (get_sched_window): Adjust for above field and SCHED_* macro changes.
4338 Use NODE_ASAP instead of SCHED_ASAP.
4339 (try_scheduling_node_in_cycle): Remove node parameter. Update
4340 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
4341 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
4342 (ps_insert_empty_row): Adjust for above field changes.
4343 (compute_split_row): Use ids rather than nodes.
4344 (verify_partial_schedule): Adjust for above field changes.
4345 (print_partial_schedule): Use ps_rtl_insn.
4346 (create_ps_insn): Take an id rather than a node.
4347 (ps_insn_find_column): Adjust for above field changes.
4348 Use ps_rtl_insn.
4349 (ps_insn_advance_column): Adjust for above field changes.
4350 (add_node_to_ps): Remove node parameter. Update call to
4351 create_ps_insn.
4352 (ps_has_conflicts): Use ps_rtl_insn.
4353 (ps_add_node_check_conflicts): Replace node parameter than an id.
4354
4355 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4356
4357 * modulo-sched.c (undo_replace_buff_elem): Delete.
4358 (generate_reg_moves): Don't build and return an undo list.
4359 (free_undo_replace_buff): Delete.
4360 (sms_schedule): Adjust call to generate_reg_moves.
4361 Don't call free_undo_replace_buff.
4362
4363 2011-10-10 Matthias Klose <doko@ubuntu.com>
4364
4365 * common/config/m32c: Remove empty directory.
4366
4367 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
4368
4369 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
4370
4371 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
4372
4373 PR target/50652
4374 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
4375 atmega164a to 0x100.
4376
4377 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
4378
4379 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
4380 the replacement if the conversion to the LHS type is not useless.
4381
4382 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
4383
4384 PR tree-optimization/50635
4385 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
4386 DEF_STMT to the list of statements to be replaced by the
4387 pattern statements.
4388 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
4389
4390 2011-10-09 Anatoly Sokolov <aesok@post.ru>
4391
4392 * system.h: Commit forgotten hunk in previous patch.
4393 (OUTPUT_ADDR_CONST_EXTRA): Poison.
4394
4395 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
4396
4397 PR libobjc/50428
4398 * doc/objc.texi (Garbage Collection): Updated example to protect
4399 +initialize against execution in subclasses.
4400
4401 2011-10-07 Richard Henderson <rth@redhat.com>
4402
4403 * doc/extend.texi (__builtin_shuffle): Improve the description to
4404 include the modulus of the selector. Mention OpenCL.
4405 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
4406
4407 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
4408 * genopinit.c (optabs): Rename vshuffle to vec_perm.
4409 * c-typeck.c (c_build_vec_perm_expr): Rename from
4410 c_build_vec_shuffle_expr. Update for name changes.
4411 * optabs.c (expand_vec_perm_expr_p): Rename from
4412 expand_vec_shuffle_expr_p.
4413 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
4414 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
4415 (vec_perm_optab): Rename from vshuffle_optab.
4416 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
4417 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
4418 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
4419
4420 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
4421 ix86_expand_vshuffle.
4422 * config/i386/i386-protos.h: Update.
4423 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
4424 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
4425
4426 2011-10-07 Richard Henderson <rth@redhat.com>
4427
4428 * config/i386/predicates.md (avx2_pblendw_operand): New.
4429 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
4430 (avx2_pblendw, *avx2_pblendw): New expander and insn.
4431
4432 2011-10-07 Richard Henderson <rth@redhat.com>
4433
4434 * config/i386/i386.c (bdesc_args): Update code for
4435 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
4436 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
4437 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
4438 * config/i386/sse.md (mode iterator V16): Add V2TI.
4439 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
4440 (mode attr ssse3_avx2): Add V2TI.
4441 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
4442
4443 2011-10-07 David S. Miller <davem@davemloft.net>
4444
4445 PR 50655
4446 * configure.ac: Add .register directives to VIS3 test.
4447 * configure: Regenerate.
4448
4449 2011-10-07 Richard Henderson <rth@redhat.com>
4450
4451 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
4452
4453 2011-10-07 Richard Henderson <rth@redhat.com>
4454
4455 PR 49752
4456 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
4457
4458 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
4459
4460 * config/arm/predicates.md (shift_amount_operand): Remove constant
4461 range check.
4462 (shift_operator): Check range of constants for all shift operators.
4463
4464 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4465
4466 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
4467 Load GOT pointer for non-pic builds.
4468 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
4469 (s390_emit_call): Likewise.
4470
4471 2011-10-07 Tom de Vries <tom@codesourcery.com>
4472
4473 PR middle-end/50527
4474 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
4475 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
4476 throw.
4477 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
4478 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
4479 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4480 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4481 * tree-ssa-ccp.c (evaluate_stmt): Set align for
4482 BUILT_IN_ALLOCA_WITH_ALIGN.
4483 (fold_builtin_alloca_for_var): Rename to ...
4484 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
4485 BUILT_IN_ALLOCA_WITH_ALIGN argument.
4486 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
4487 fold_builtin_alloca_with_align.
4488 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4489 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
4490 DEF_BUILTIN_STUB.
4491 * ipa-pure-const.c (special_builtin_state): Handle
4492 BUILT_IN_ALLOCA_WITH_ALIGN.
4493 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
4494 (call_may_clobber_ref_p_1): Same.
4495 * function.c (gimplify_parameters): Lower vla to
4496 BUILT_IN_ALLOCA_WITH_ALIGN.
4497 * gimplify.c (gimplify_vla_decl): Same.
4498 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
4499 * tree-mudflap.c (mf_xform_statements): Same.
4500 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4501 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
4502 * varasm.c (incorporeal_function_p): Same.
4503 * tree-object-size.c (alloc_object_size): Same.
4504 * gimple.c (gimple_build_call_from_tree): Same.
4505
4506 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
4507
4508 * function.c (frame_required_for_rtx): Remove function.
4509 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
4510 changed. Compute a set of mentioned registers and compare against
4511 the new arg rather than calling frame_required_for_rtx.
4512 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
4513 reg set. Convert the unconverted_simple_returns mechanism to store
4514 jump insns rather than their basic blocks. Also check the
4515 orig_entry_edge destination for new blocks.
4516
4517 2011-10-07 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR tree-optimization/50650
4520 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
4521 call vect_is_simple_cond here, instead fail if cond_expr isn't
4522 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
4523 for cond_expr's first operand.
4524 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
4525 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
4526
4527 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4528
4529 * config/s390/s390.md (DWH, dwh): New mode macros.
4530 ("umulsidi3"): Extend to support "umulditi3" as well.
4531
4532 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
4533 H.J. Lu <hongjiu.lu@intel.com>
4534
4535 PR target/50603
4536 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
4537 integer PLUS RTX to a register to improve address combine.
4538
4539 2011-10-06 Richard Henderson <rth@redhat.com>
4540
4541 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
4542 parameter; use it to decide whether to merge two notes.
4543 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
4544 for the deallocation case as well.
4545
4546 2011-10-06 Anatoly Sokolov <aesok@post.ru>
4547
4548 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
4549 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
4550 * doc/tm.texi: Regenerate.
4551 * target.def (output_addr_const_extra): Use
4552 hook_bool_FILEptr_rtx_false.
4553 * targhooks.c (default_asm_output_addr_const_extra): Remove.
4554 * targhooks.h (default_asm_output_addr_const_extra): Remove.
4555 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
4556 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
4557
4558 2011-10-06 David S. Miller <davem@davemloft.net>
4559
4560 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
4561 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
4562 SI mode 64-bit code gen case explicitly zero-extend and truncate.
4563 (*popcount<mode>_sp64): Split up into...
4564 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
4565 SImode case use truncate.
4566 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
4567 subtract so the compiler can optimize it.
4568 (SIDI): Remove unused mode iterator.
4569
4570 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
4571
4572 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
4573 on the orig_entry_edge. Don't account for it in prologue_clobbered.
4574
4575 2011-10-06 Jakub Jelinek <jakub@redhat.com>
4576
4577 PR tree-optimization/50596
4578 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
4579 (NUM_PATTERNS): Change to 6.
4580 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
4581 function.
4582 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
4583 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
4584 if it already has one, and don't set STMT_VINFO_VECTYPE in it
4585 if it is already set.
4586 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
4587 COND_EXPR in pattern stmts.
4588 (vect_is_simple_cond): No longer static.
4589
4590 2001-10-06 Richard Henderson <rth@redhat.com>
4591
4592 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
4593 * config/i386/sse.md (sseshuffint): Remove.
4594 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
4595 (VSHUFFLE_AVX2): New mode iterator.
4596 (vshuffle<mode>): Use it.
4597 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
4598
4599 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
4600 for vector_all_ones_operand.
4601 (ix86_expand_int_vcond): Distinguish between comparison mode
4602 and data mode. Allow them to differ.
4603 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
4604
4605 2001-10-06 Richard Henderson <rth@redhat.com>
4606
4607 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
4608 mask operand. Tidy the code.
4609
4610 2011-10-06 Jakub Jelinek <jakub@redhat.com>
4611
4612 * tree-vect-patterns.c (vect_pattern_recog_1): Use
4613 vect_recog_func_ptr typedef for the first argument.
4614 (vect_pattern_recog): Rename vect_recog_func_ptr variable
4615 to vect_recog_func, use vect_recog_func_ptr typedef for it.
4616
4617 PR tree-optimization/49279
4618 * tree-ssa-structalias.c (find_func_aliases): Don't handle
4619 CAST_RESTRICT.
4620 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
4621 restrict propagation.
4622 * tree-ssa.c (useless_type_conversion_p): Don't return false
4623 if TYPE_RESTRICT differs.
4624
4625 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
4626
4627 * function.c (thread_prologue_and_epilogue_insns): Build a vector
4628 of unconverted simple return blocks rather than trying to
4629 recompute them later based on bb_flags bitmap tests.
4630
4631 2011-10-06 Michael Matz <matz@suse.de>
4632
4633 * tree-flow.h (get_var_ann): Don't declare.
4634 * tree-flow-inline.h (get_var_ann): Remove.
4635 (set_is_used): Use var_ann, not get_var_ann.
4636 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
4637 * tree-profile.c (gimple_gen_edge_profiler): Call
4638 find_referenced_var_in.
4639 (gimple_gen_interval_profiler): Ditto.
4640 (gimple_gen_pow2_profiler): Ditto.
4641 (gimple_gen_one_value_profiler): Ditto.
4642 (gimple_gen_average_profiler): Ditto.
4643 (gimple_gen_ior_profiler): Ditto.
4644 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
4645 (gimple_gen_ic_func_profiler): Call add_referenced_var.
4646 * tree-mudflap.c (execute_mudflap_function_ops): Call
4647 add_referenced_var.
4648
4649 2011-10-06 Jakub Jelinek <jakub@redhat.com>
4650
4651 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
4652 don't set SSA_NAME_DEF_STMT that has been already set by
4653 gimple_build_assign_with_ops.
4654 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
4655 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
4656 Likewise.
4657
4658 * tree.h (avoid_folding_inline_builtin): New prototype.
4659 * builtins.c (avoid_folding_inline_builtin): No longer static.
4660 * gimple-fold.c (gimple_fold_builtin): Give up if
4661 avoid_folding_inline_builtin returns true.
4662
4663 2011-10-06 Richard Guenther <rguenther@suse.de>
4664
4665 * tree-vect-generic.c (vector_element): Look at previous
4666 generated results.
4667
4668 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
4669
4670 PR target/39950
4671 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
4672 __powerpc__, __PPC__, __unix__.
4673
4674 2011-10-06 Michael Matz <matz@suse.de>
4675
4676 * i386/i386.opt (recip_mask, recip_mask_explicit,
4677 x_recip_mask_explicit): New variables and cl_target member.
4678 (mrecip=): New option.
4679 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
4680 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
4681 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
4682 TARGET_RECIP_VEC_SQRT): New tests.
4683 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
4684 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
4685 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
4686 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
4687 * i386/i386.c (ix86_option_override_internal): Set recip_mask
4688 for -mrecip and -mrecip=options.
4689 (ix86_function_specific_save): Save recip_mask_explicit.
4690 (ix86_function_specific_restore): Restore recip_mask_explicit.
4691
4692 * doc/invoke.texi (ix86 Options): Document the new option.
4693
4694 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
4695
4696 PR target/49049
4697 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
4698
4699 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
4700
4701 PR target/50305
4702 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
4703 output of a previous pass through legitimize_reload_address.
4704 Do not attempt to optimize addresses if the base register is
4705 equivalent to a constant.
4706
4707 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4708
4709 * function.c (thread_prologue_and_epilogue_insns): Mark
4710 last_bb_active as possibly unused. It is unused for targets which
4711 do neither have "return" nor "simple_return" expanders.
4712
4713 2011-10-06 Richard Guenther <rguenther@suse.de>
4714
4715 * fold-const.c (fold_ternary_loc): Also fold non-constant
4716 vector CONSTRUCTORs. Make more efficient.
4717 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
4718 (cprop_into_stmt): Don't propagate into virtual operands.
4719 (optimize_stmt): Really dump original statement.
4720
4721 2011-10-06 Nick Clifton <nickc@redhat.com>
4722
4723 * config/rx/rx.md (smin3): Revert previous delta.
4724
4725 2011-10-06 Richard Guenther <rguenther@suse.de>
4726
4727 PR tree-optimization/38884
4728 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
4729 reads from aggregate SSA names.
4730
4731 2011-10-05 Jakub Jelinek <jakub@redhat.com>
4732
4733 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
4734 argument, truncate it at the beginning instead of allocating there
4735 and freeing at the end.
4736 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
4737 pass its address to vect_pattern_recog_1.
4738
4739 2011-10-05 David S. Miller <davem@davemloft.net>
4740
4741 * config/sparc/sparc.opt (POPC): New option.
4742 * doc/invoke.texi: Document it.
4743 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
4744 default on Niagara-2 and later.
4745 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4746 * config/sparc/sparc.md (SIDI): New mode iterator.
4747 (ffsdi2): Delete commented out pattern and comments.
4748 (popcount<mode>2, clz<mode>2): New expanders.
4749 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
4750 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
4751
4752 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4753
4754 PR middle-end/50607
4755 * c-tree.h (c_expr_t): New typedef for struct c_expr.
4756 (C_EXPR_APPEND): New macro.
4757 * c-parser.c (c_parser_get_builtin_args): Preserve
4758 original_tree_code of c_expr structure.
4759 (c_parser_postfix_expression): Adjust to the new function.
4760
4761 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
4762
4763 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
4764 if profiling after the prologue.
4765
4766 2011-10-05 Jakub Jelinek <jakub@redhat.com>
4767
4768 PR tree-optimization/50613
4769 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
4770 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
4771 and if it is neither that not SSA_NAME, give up.
4772
4773 2011-10-05 Richard Henderson <rth@redhat.com>
4774
4775 * tree-vect-generic.c (vector_element): Never fail. Use
4776 build_zero_cst. Tidy up type references.
4777 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
4778 code duplication. Do update_stmt here ...
4779 (expand_vector_operations_1): ... not here.
4780
4781 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
4782 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
4783 duplication. Handle V2DI without SSE4.1.
4784 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
4785 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
4786
4787 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
4788
4789 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
4790 of "found". Simplify return value calculation.
4791 (distance_agu_use): Ditto.
4792
4793 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
4794
4795 PR bootstrap/50621
4796 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
4797 if the function was not shrink-wrapped.
4798 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
4799 to an insn.
4800 * function.c (thread_prologue_and_epilogue_insns): Make sure the
4801 shrink_wrapped flag is set even if there is no dump file.
4802
4803 2011-10-05 DJ Delorie <dj@redhat.com>
4804 Nick Clifton <nickc@redhat.com>
4805
4806 * config/rx/rx.opt (mpid): Define.
4807 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
4808 (MULTILIB_DIRNAMES): Add pid.
4809 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
4810 (rx_num_interrupt_regs): New variable.
4811 (rx_gp_base_regnum): New function. Returns the number of the
4812 small data area register.
4813 (rx_pid_base_regnum): New function. Returns the number of the pid
4814 base register.
4815 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
4816 (rx_pid_data_operand): New function. Returns whether an object is
4817 in the position independent data area.
4818 (rx_legitimize_address): New function. Puts undecided PID
4819 objects in the PID data area.
4820 (rx_is_legitimate_address): Add support for PID operands.
4821 (rx_print_operand_address): Likewise.
4822 (rx_print_operand): Likewise.
4823 (rx_maybe_pidify_operand): New function. Determine if an operand
4824 is suitable for PID addressing.
4825 (rx_gen_move_template): Add PID support.
4826 (rx_conditional_register_usage): Likewise.
4827 (rx_option_override): Initialise rx_num_interrupt_regs.
4828 (rx_is_legitimate_constant): Add support for PID constants.
4829 (TARGET_LEGITIMIZE_ADDRESS): Define.
4830 * config/rx/constraints.md (Rpid): Define.
4831 (Rpda): Define.
4832 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
4833 (tablejump): Add PID support.
4834 (mov<>): Likewise.
4835 (mov<>_internal): Likewise.
4836 (addsi3): Convert to an expander. Add PID support.
4837 (pid_addr): New pattern.
4838 * config/rx/rx.h (CPP_SPEC): Define.
4839 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
4840 (CASE_VECTOR_PC_RELATIVE): Define.
4841 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
4842 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
4843 * doc/invoke.texi (RX Options): Document -mpid command line option.
4844
4845 2011-10-05 Richard Guenther <rguenther@suse.de>
4846
4847 PR tree-optimization/38885
4848 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
4849 from constants.
4850
4851 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
4852
4853 * doc/invoke.texi (-fshrink-wrap): Document.
4854 * opts.c (default_options_table): Add it.
4855 * common.opt (fshrink-wrap): Add.
4856 * function.c (emit_return_into_block): Remove useless declaration.
4857 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
4858 requires_stack_frame_p, gen_return_pattern): New static functions.
4859 (emit_return_into_block): New arg simple_p. All callers changed.
4860 Use gen_return_pattern.
4861 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
4862 * config/i386/i386.md (return): Expand into a simple_return.
4863 (simple_return): New expander):
4864 (simple_return_internal, simple_return_internal_long,
4865 simple_return_pop_internal_long, simple_return_indirect_internal):
4866 Renamed from return_internal, return_internal_long,
4867 return_pop_internal_long and return_indirect_internal; changed to use
4868 simple_return.
4869 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
4870 simple returns.
4871 (ix86_pad_returns): Likewise.
4872 * function.h (struct rtl_data): Add member shrink_wrapped.
4873 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
4874 are not jumps or sibcalls can't be compared.
4875
4876 2011-10-05 Richard Guenther <rguenther@suse.de>
4877
4878 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
4879 vector type.
4880 (simplify_unary_expression): Handle BIT_FIELD_REFs.
4881 (try_to_simplify): Handle BIT_FIELD_REFs.
4882
4883 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
4884
4885 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
4886 * config/avr/avr.c (avr_out_addto_sp): New function.
4887 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
4888 * config/avr/avr.md (adjust_len): Add "addto_sp".
4889 (*movhi_sp): Remove insn.
4890 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
4891
4892 2011-10-05 Richard Guenther <rguenther@suse.de>
4893
4894 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
4895 with an embedded expression valueize and fold that as well.
4896 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
4897 results from gimple_fold_stmt_to_constant_1.
4898
4899 2011-10-05 Nick Clifton <nickc@redhat.com>
4900
4901 * config/rx/rx.md (tablejump): Add missing label.
4902 (adddi3_internal): Mark operand 0 as early-clobbered.
4903 (smaxsi3): Revert previous delta.
4904 (adc_internal): Fix whitespace in generated asm.
4905 (adc_flags): Likewise.
4906
4907 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4908
4909 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
4910 with the new widening_optab_handler.
4911
4912 2011-10-05 Richard Guenther <rguenther@suse.de>
4913
4914 PR tree-optimization/50609
4915 * gimple-fold.c (fold_array_ctor_reference): Also handle
4916 vector typed constructors.
4917 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
4918 for vector typed constructors.
4919
4920 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
4921
4922 * config/i386/i386.c (ix86_emit_binop): New static function.
4923 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
4924 instructions.
4925 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
4926
4927 2011-10-04 David S. Miller <davem@davemloft.net>
4928
4929 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
4930 UNSPEC_XMUL): New unspecs.
4931 (muldi3_v8plus): Use output_v8plus_mult.
4932 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
4933 New VIS 3.0 combiner patterns.
4934 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
4935 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
4936 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
4937 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
4938 builtins patterns.
4939 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
4940 (output_v8plus_mult): New function.
4941 * config/sparc/sparc-protos.h: Declare it.
4942 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
4943 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
4944 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
4945 * doc/extend.texi: Document new builtins.
4946
4947 2011-10-04 Richard Henderson <rth@redhat.com>
4948
4949 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
4950 Avoid save_expr unless two_arguments.
4951
4952 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
4953
4954 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
4955 * config/i386/mingw32.h (CPP_SPEC): Likewise.
4956
4957 2011-10-04 David S. Miller <davem@davemloft.net>
4958
4959 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
4960 under Linux.
4961
4962 2011-10-04 Jakub Jelinek <jakub@redhat.com>
4963
4964 PR tree-optimization/50604
4965 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
4966 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
4967 last argument to memcpy has size_type_node type instead of ssizetype.
4968 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
4969 instead of TREE_TYPE (len) as type for newlen.
4970
4971 PR tree-optimization/50522
4972 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
4973 TYPE_RESTRICT.
4974 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
4975 unconditionally.
4976
4977 * fold-const.c (fold_unary_loc): Don't optimize
4978 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
4979 casting the inner pointer if it isn't TYPE_RESTRICT.
4980 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
4981 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
4982
4983 2011-10-04 Joseph Myers <joseph@codesourcery.com>
4984
4985 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
4986
4987 2011-10-04 Jan Hubicka <jh@suse.cz>
4988
4989 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
4990 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
4991 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
4992 * lto-cgraph.c (order_base): New static var.
4993 (lto_output_node): Stream in order.
4994 (lto_output_varpool_node): Stream out order.
4995 (input_node): Stream in order.
4996 (input_varpool_node): Stream out order.
4997 (input_cgraph_1): Initialize order base; update call of
4998 lto_input_toplevel_asms.
4999
5000 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
5001
5002 PR target/50566
5003 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
5004 prototype.
5005 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
5006 from here...
5007 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
5008 function. Log if avr_log.legitimize_reload_address.
5009
5010 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
5011
5012 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
5013
5014 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5015
5016 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
5017 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
5018
5019 2011-10-03 David S. Miller <davem@davemloft.net>
5020
5021 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
5022 GSR_REG an input operand to UNSPEC instead of a parallel USE.
5023 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
5024 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
5025 Reference GSR_REG in DI mode, simplify convoluted expressions by using
5026 zero_extract.
5027 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
5028
5029 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
5030
5031 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
5032
5033 2011-10-03 Jakub Jelinek <jakub@redhat.com>
5034 Ian Lance Taylor <iant@google.com>
5035
5036 * godump.c (go_output_typedef): Support printing enum values that
5037 don't fit in a signed HOST_WIDE_INT.
5038
5039 2011-10-03 Anatoly Sokolov <aesok@post.ru>
5040
5041 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
5042 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5043 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5044 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
5045
5046 2011-10-03 Anatoly Sokolov <aesok@post.ru>
5047
5048 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
5049 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5050 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5051 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
5052
5053 2011-10-03 Steve Ellcey <sje@cup.hp.com>
5054
5055 PR target/49967
5056 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
5057 (gcc_cv_ld_static_option): Ditto.
5058 (gcc_cv_ld_dynamic_option): Ditto.
5059 * configure: Regenerate.
5060
5061 2011-10-03 David S. Miller <davem@davemloft.net>
5062
5063 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
5064 and 'si' patterns which describe the GSR changes explicitly in the
5065 RTL using zero_extract.
5066 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
5067
5068 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
5069 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
5070
5071 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5072
5073 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
5074 if given expression can be expanded by the target.
5075 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
5076 using target vector instructions.
5077 * optabs.h: New optab vshuffle.
5078 (expand_vec_shuffle_expr_p): New prototype.
5079 (expand_vec_shuffle_expr): New prototype.
5080 (vshuffle_optab): New optab.
5081 * genopinit.c: Adjust to support vecshuffle.
5082 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
5083 * expr.c (expand_expr_real_2): Adjust.
5084 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
5085 recognizing the cases of two and three arguments.
5086 (convert_arguments) (build_binary_op)
5087 (scalar_to_vector) (build_array_ref): Spurious whitespace.
5088 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
5089 * tree.def: New tree code VEC_SHUFFLE_EXPR.
5090 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
5091 * tree-vect-generic.c (vector_element): New function. Returns an
5092 element of the vector at the given position.
5093 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
5094 by the backend or expand an expression piecewise.
5095 (expand_vector_operations_1): Adjusted.
5096 (gate_expand_vector_operations_noop): New gate function.
5097 * Makefile.in (tree-vect-generic.o): New include.
5098 * gimple.c (get_gimple_rhs_num_ops): Adjust.
5099 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
5100 * passes.c: Move veclower down.
5101 * tree-pretty-print.c (dump_generic_node): Recognize
5102 VEC_SHUFFLE_EXPR as valid expression.
5103 * c-parser.c (c_parser_get_builtin_args): Helper function for the
5104 builtins with variable number of arguments.
5105 (c_parser_postfix_expression): Use a new helper function for
5106 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
5107 * tree-ssa-operands: Adjust.
5108 * c-family/c-common.c: New __builtin_shuffle keyword.
5109 * c-family/c-common.h: New __builtin_shuffle keyword.
5110 * gcc/doc/extend.texi: Adjust.
5111
5112 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
5113 between the vector and the type of the mask when shuffling.
5114 (vecshuffle<mode>): New expansion.
5115 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
5116 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
5117 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
5118
5119 2011-10-03 Jakub Jelinek <jakub@redhat.com>
5120
5121 PR tree-optimization/50587
5122 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
5123 arg0 is not a SSA_NAME.
5124
5125 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
5126
5127 * ipa-inline-analysis.c (MAX_TIME): Update comment.
5128
5129 2011-10-02 Richard Henderson <rth@redhat.com>
5130 David S. Miller <davem@davemloft.net>
5131
5132 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5133 conditional insn type setting, we always emit a shift.
5134 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
5135 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
5136 * config/sparc/predicates.md (const_one_operand): Delete.
5137
5138 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
5139
5140 * invoke.texi (SPARC Options): Refer to GNU/Linux.
5141
5142 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
5143
5144 * config/mips/mips.c (mips_frame_barrier): New function.
5145 (mips_expand_prologue): Call it after allocating stack space.
5146 (mips_deallocate_stack): New function.
5147 (mips_expand_epilogue): Call mips_frame_barrier and
5148 mips_deallocate_stack.
5149
5150 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
5151
5152 PR target/49696
5153 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
5154 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5155 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
5156
5157 2011-10-02 Jan Hubicka <jh@suse.cz>
5158
5159 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
5160
5161 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
5162 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
5163 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
5164 functions are reachable when address is taken.
5165 * tree-sra.c (modify_function): Free dominance info.
5166
5167 2011-10-02 Jan Hubicka <jh@suse.cz>
5168
5169 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
5170
5171 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
5172 (reset_inline_summary): New function.
5173 (compute_inline_parameters, inline_node_removal_hook,
5174 inline_edge_removal_hook): Use it.
5175 (inline_free_summary): Reset holders correctly.
5176 (inline_generate_summary): Free summary before computing it.
5177
5178 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
5179
5180 PR preprocessor/36819
5181 * incpath.c (merge_include_chains): Call free_path on
5182 heads[QUOTE] and tails[QUOTE].
5183
5184 2011-10-02 Jan Hubicka <jh@suse.cz>
5185
5186 PR lto/47247
5187 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
5188 when resolution is already availbale from plugin.
5189 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
5190 * cgraph.c (ld_plugin_symbol_resolution): Add
5191 prevailing_def_ironly_exp.
5192 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
5193 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
5194 externally visible.
5195 * varasm.c (resolution_to_local_definition_p): Add
5196 LDPR_PREVAILING_DEF_IRONLY_EXP.
5197 (resolution_local_p): Likewise.
5198
5199 2011-10-01 David S. Miller <davem@davemloft.net>
5200
5201 * config/sparc/sparc.opt (VIS3): New option.
5202 * doc/invoke.texi: Document it.
5203 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
5204 not capable of such instructions.
5205 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5206 to 0x300 when TARGET_VIS3.
5207 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
5208 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
5209 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
5210 (V64N8, VASS): New mode iterators.
5211 (vis3_shift, vis3_addsub_ss): New code iterators.
5212 (vbits, vconstr): New mode attributes.
5213 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
5214 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
5215 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
5216 fmean16_vis, fpadd64_vis, fpsub64_vis,
5217 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
5218 VIS 3.0 instruction patterns.
5219 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
5220 default when targetting capable cpus. TARGET_VIS3 implies
5221 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
5222 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
5223 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
5224 is ignored.
5225 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
5226 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
5227 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
5228 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
5229 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
5230 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
5231 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
5232 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
5233 * doc/extend.texi: Document new VIS 3.0 builtins.
5234
5235 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
5236
5237 * ira-color.c (assign_hard_reg): Fix typo.
5238
5239 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
5240
5241 * doc/extend.texi: Add missing ','.
5242
5243 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
5244
5245 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
5246 Enable -fmodulo-sched at -O2 and above.
5247 * config/c6x/c6x.md (doloop_end): New expander.
5248 (mvilc, sploop, spkernel, loop_end): New patterns.
5249 (loop_end with memory destination splitter): New.
5250 * config/c6x/c6x.c: Include "hw-doloop.h".
5251 (enum unitreqs): New.
5252 (unit_req_table): New typedef.
5253 (unit_reqs): New static variable.
5254 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
5255 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
5256 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
5257 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
5258 (struct c6x_sched_context): New member last_scheduled_iter0.
5259 (init_sched_state): Initialize it.
5260 (c6x_variable_issue): Update it.
5261 (sploop_max_uid_iter0): New static variable.
5262 (c6x_sched_reorder_1): Be careful about issuing sploop.
5263 (c6x_reorg): Call c6x_hwlooops before the final schedule.
5264
5265 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
5266
5267 PR target/50566
5268 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
5269 * config/avr/avr.c (avr_address_cost): Use it.
5270 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
5271 (avr_log_vadump): Unknown %-codes finish printing.
5272
5273 2011-09-30 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR inline-asm/50571
5276 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
5277 input constraints allow mem and not reg, pass true instead of
5278 false as second argument to maybe_fold_reference.
5279
5280 PR tree-optimization/46309
5281 * fold-const.c (make_range, merge_ranges): Remove prototypes.
5282 (make_range_step): New function.
5283 (make_range): Use it.
5284 * tree.h (make_range_step): New prototypes.
5285 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
5286 * tree-ssa-reassoc.c: Include diagnostic-core.h.
5287 (struct range_entry): New type.
5288 (init_range_entry, range_entry_cmp, update_range_test,
5289 optimize_range_tests): New functions.
5290 (reassociate_bb): Call optimize_range_tests.
5291
5292 2011-09-30 Jakub Jelinek <jakub@redhat.com>
5293 Richard Guenther <rguenther@suse.de>
5294
5295 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
5296 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5297 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
5298 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
5299 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
5300 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
5301
5302 2011-09-30 Jan Beulich <jbeulich@suse.com>
5303
5304 * lto-cgraph.c (output_cgraph): Remove processing of
5305 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
5306 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
5307 lto_input_toplevel_asms() instead.
5308 * lto-section-in.c (lto_section_name): Add "asm" entry.
5309 * lto-streamer-in.c (lto_input_toplevel_asms): New.
5310 * lto-streamer-out.c (lto_output_toplevel_asms): New.
5311 * lto-streamer.h (LTO_minor_version): Bump.
5312 (enum lto_section_type): Add LTO_section_asm.
5313 (struct lto_asm_header): New.
5314 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
5315 * tree-streamer.h (streamer_write_string_cst): Declare.
5316 * tree-streamer-out.c (write_string_cst): Rename to
5317 streamer_write_string_cst and make global. Handle incoming string
5318 being NULL.
5319 (streamer_write_tree_header): Adjust call to renamed function.
5320
5321 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
5322
5323 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
5324 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
5325 modulo_last_stage): New static variables.
5326 (set_modulo_params, discard_delay_pairs_above): New functions.
5327 (struct delay_pair): New member stages.
5328 (htab_i2_traverse, htab_i1_traverse): New static functions.
5329 (record_delay_slot_pair): New arg stages. All callers changed.
5330 Record it.
5331 (pair_delay): Take stages into account.
5332 (add_delay_dependencies): Don't do so for stage pairs.
5333 (struct sched_block_state): New member modulo_epilogue.
5334 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
5335 (unschedule_insns_until): Decrease modulo_insns_scheduled.
5336 Set HARD_DEP without using or.
5337 (resolve_dependencies): New static function.
5338 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
5339 If it is true, allow only insns with INSN_EXACT_TICK set.
5340 (schedule_block): Return bool, always true for normal scheduling,
5341 true or false depending on modulo scheduling success otherwise.
5342 Add bookkeeping for modulo scheduling, and call resolve_dependencies
5343 on everything left over after a modulo schedule.
5344 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
5345 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
5346 declarations.
5347 (set_modulo_params, discard_delay_pairs_above): Declare.
5348 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
5349 * doc/invoke.texi (--param): Document it.
5350
5351 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
5352 New arg modulo_scheduling. All callers changed. Move note handling
5353 code here from schedule_ebbs.
5354 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
5355 out of schedule_ebbs.
5356 (schedule_ebbs): Call them. Remove note handling code moved to
5357 schedule_ebb.
5358 * sched-int.h (schedule_ebb, schedule_ebbs_init,
5359 schedule_ebbs_finish): Declare.
5360
5361 2011-09-30 Richard Guenther <rguenther@suse.de>
5362
5363 PR middle-end/50574
5364 * tree-cfg.c (verify_gimple_comparison): Compare component
5365 mode sizes for vector comparisons.
5366
5367 2011-09-30 Revital Eres <revital.eres@linaro.org>
5368
5369 * ddg.c (autoinc_var_is_used_p): New function.
5370 (create_ddg_dep_from_intra_loop_link,
5371 add_cross_iteration_register_deps): Call it.
5372 * ddg.h (autoinc_var_is_used_p): Declare.
5373 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
5374 (sms_schedule): Handle instructions with REG_INC.
5375
5376 2011-09-30 Revital Eres <revital.eres@linaro.org>
5377
5378 * modulo-sched.c (generate_reg_moves): Skip instructions that
5379 do not set a register and verify no regmoves are created for
5380 !single_set instructions.
5381
5382 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
5383
5384 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
5385 insns.
5386
5387 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5388
5389 PR target/50099
5390 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
5391 (qhs_zextenddi_op): New.
5392 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
5393 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
5394 Distinguish between ARM and Thumb2 states.
5395
5396 2011-09-30 David S. Miller <davem@davemloft.net>
5397
5398 * config/sparc/sparc.opt (VIS2): New option.
5399 * doc/invoke.texi: Document it.
5400 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
5401 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
5402 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
5403 (define_attr type): New insn type 'edgen'.
5404 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
5405 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
5406 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
5407 patterns.
5408 * niagara.md: Handle edgen.
5409 * niagara2.md: Likewise.
5410 * ultra1_2.md: Likewise.
5411 * ultra3.md: Likewise.
5412 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
5413 to 0x200 when TARGET_VIS2.
5414 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
5415 default when targetting capable cpus. TARGET_VIS2 implies
5416 TARGET_VIS, clear and it when TARGET_FPU is disabled.
5417 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
5418 (sparc_expand_builtin): Fix predicate indexing when builtin returns
5419 void.
5420 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
5421 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
5422 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
5423 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
5424 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
5425 * doc/extend.texi: Document new VIS 2.0 builtins.
5426
5427 2011-09-29 Nick Clifton <nickc@redhat.com>
5428 Bernd Schmidt <bernds@codesourcery.com>
5429
5430 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
5431 * config/frv/frvend.c: Likewise.
5432 * config/frv/frv.c (frv_function_prologue): Move misplaced
5433 CALL_ARG_LOCATION notes back to their proper locations.
5434
5435 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
5436
5437 PR target/50566
5438 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
5439 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
5440 from avr_rtx_costs.
5441 (avr_legitimate_address_p): Use avr_edump to print log information
5442 filtered by avr_log.
5443 (extra_constraint_Q): Ditto.
5444 (avr_legitimize_address): Ditto.
5445 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
5446 (final_prescan_insn): Use avr_log.rtx_costs as filter.
5447
5448 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
5449
5450 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
5451 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
5452 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
5453 NEON vector and structure modes to be tied.
5454
5455 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5456
5457 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
5458 forward declaration.
5459 (remove_duplicate_close_phi): Detect and repair creation of
5460 duplicate close-phis for a containing loop.
5461
5462 2011-09-27 Andi Kleen <ak@linux.intel.com>
5463
5464 * gcc.c (get_local_tick). Rename to get_random_number. Read from
5465 /dev/urandom. Add getpid call.
5466 (compare_debug_dump_opt_spec_function): Drop getpid call.
5467
5468 2011-09-26 Andi Kleen <ak@linux.intel.com>
5469
5470 * toplev.c (init_local_tick): Try reading random seed
5471 from /dev/urandom.
5472
5473 2011-09-26 Andi Kleen <ak@linux.intel.com>
5474
5475 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
5476 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
5477 Handle numerical random seed.
5478 * lto-streamer.h (lto_file_decl_data): Change id to
5479 unsigned HOST_WIDE_INT.
5480 * toplev.c (random_seed): Add.
5481 (init_random_seed): Change for numerical random seed.
5482 (get_random_seed): Return as HOST_WIDE_INT.
5483 (set_random_seed): Crc32 existing string.
5484 * toplev.h (get_random_seed): Change to numercal return.
5485 * tree.c (get_file_function_name): Remove CRC. Handle
5486 numerical random seed.
5487
5488 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
5489
5490 PR target/50566
5491 * config.gcc (extra_objs): Add avr-log.o for $target in:
5492 avr-*-rtems*, avr-*-*.
5493 * config/avr/t-avr (avr-log.o): New rule to compile...
5494 * config/avr/avr-log.c: ...this new file.
5495 * config/avr/avr.opt (mlog=): New option.
5496 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
5497 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
5498 (avr_log_set_avr_log): New prototype.
5499 (avr_log_t): New typedef.
5500 (avr_log): New declaration.
5501 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
5502
5503 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5504
5505 * expr.c (do_store_flag): Expand vector comparison by
5506 building an appropriate VEC_COND_EXPR.
5507 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
5508 (c_objc_common_truthvalue_conversion): Adjust.
5509 * tree-vect-generic.c (do_compare): Helper function.
5510 (expand_vector_comparison): Check if hardware supports
5511 vector comparison of the given type or expand vector piecewise.
5512 (expand_vector_operation): Treat comparison as binary
5513 operation of vector type.
5514 (expand_vector_operations_1): Adjust.
5515
5516 2011-09-29 Richard Guenther <rguenther@suse.de>
5517
5518 * tree.c (build_opaque_vector_type): Make opaque vectors
5519 variant types of the corresponding non-opaque type. Make
5520 sure to share opaque vector types properly.
5521
5522 2011-09-29 David S. Miller <davem@davemloft.net>
5523
5524 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
5525 UNSPEC_ARRAY32): New unspec.
5526 (define_attr type): New type 'array'.
5527 (array{8,16,32}<P:mode>_vis): New patterns.
5528 * config/sparc/ultra1_2.md: Add reservations for 'array'.
5529 * config/sparc/ultra3.md: Likewise.
5530 * config/sparc/niagara.md: Likewise.
5531 * config/sparc/niagara2.md: Likewise.
5532 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
5533 array builtins.
5534 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
5535 __vis_array32): New.
5536 * doc/extend.texi: Document new VIS builtins.
5537
5538 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
5539 (VIS pixel-compare insn): Just use <gcond:name>.
5540
5541 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
5542 code iterator used, so just use <code>. There are two mode iterators
5543 so explicitly use <GCM:gcm_name>.
5544
5545 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
5546
5547 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
5548 Darwin >= 9.
5549
5550 2011-09-28 David S. Miller <davem@davemloft.net>
5551
5552 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
5553 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
5554 (UNSPEC_FCMP): New unspec.
5555 (gcond): New code iterator.
5556 (gcond_name): New code attr.
5557 (GCM): New mode iterator.
5558 (gcm_name): New mode attr.
5559 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
5560
5561 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
5562
5563 PR target/49486
5564 * config/sh/sh.md (negdi2): Move expansion into split to
5565 allow more combination options. Add T_REG clobber.
5566 (abssi2): New expander.
5567 (*negdi2, *abssi2, *negabssi2): New insns.
5568 (cneg): Change from insn to insn_and_split. Rename to
5569 negsi_cond. Add alternative for non-SH4.
5570
5571 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
5572
5573 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
5574 (neon_move_hi_quad_<mode>): Likewise.
5575 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
5576
5577 2011-09-28 Nick Clifton <nickc@redhat.com>
5578
5579 * config/rx/predicates.md (rx_minmax_operand): New predicate.
5580 Accepts immediates and a restricted subset of MEMs.
5581 * config/rx/rx.md (int_modes): New iterator.
5582 (smaxsi3, sminsi3): Delete and replace with...
5583 (smax<int_mode>3, smin<int_mode>3): New patterns.
5584 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
5585
5586 2011-09-28 Richard Guenther <rguenther@suse.de>
5587
5588 PR middle-end/50460
5589 * fold-const.c (try_move_mult_to_index): Handle &a.array the
5590 same as &a.array[0].
5591
5592 2011-09-28 Kai Tietz <ktietz@redhat.com>
5593
5594 * configure.ac: Add test for new section attribute
5595 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
5596 * config.in: Regenerated.
5597 * configure: Regenerated.
5598 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
5599 new section flag "e" for excluded sections, if supported.
5600 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
5601
5602 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
5603
5604 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
5605 throughout file.
5606
5607 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
5608
5609 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
5610 throughout file.
5611
5612 2011-09-27 Sriraman Tallam <tmsriram@google.com>
5613
5614 * output.h (SECTION_EXCLUDE): New macro.
5615 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
5616
5617 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
5618
5619 * fwprop.c (forward_propagate_and_simplify): After checking
5620 reg/subreg combinations, check whether the modes are the same.
5621
5622 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
5623 Richard Sandiford <rdsandiford@googlemail.com>
5624
5625 * config/mips/mips.c (mips_add_cfa_restore): New function.
5626 (mips16e_save_restore_reg): Use it.
5627 (mips_restore_reg): Likewise. Split double FPRs for
5628 REG_CFA_RESTORE notes.
5629
5630 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
5631
5632 PR middle-end/50386
5633 PR middle-end/50326
5634 * tree-sra.c (build_ref_for_model): Use the type of the field as
5635 the type of the COMPONENT_REF.
5636
5637 2011-09-27 Jeff Law <law@redhat.com>
5638
5639 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
5640 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
5641 (find_if_case_1): Use the probability of the THEN clause when
5642 determining if speculation is profitable.
5643 (find_if_case_2): Similarly for the ELSE clause.
5644
5645 2011-09-27 Jakub Jelinek <jakub@redhat.com>
5646
5647 * common.opt: Add -foptimize-strlen option.
5648 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
5649 (tree-sssa-strlen.o): Add dependencies.
5650 * opts.c (default_options_table): Enable -foptimize-strlen
5651 by default at -O2 if not -Os.
5652 * passes.c (init_optimization_passes): Add pass_strlen
5653 after pass_object_sizes.
5654 * timevar.def (TV_TREE_STRLEN): New timevar.
5655 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
5656 * tree-pass.h (pass_strlen): Declare.
5657 * tree-ssa-strlen.c: New file.
5658 * c-decl.c (merge_decls): If compatible stpcpy prototype
5659 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
5660
5661 2011-09-27 Tom de Vries <tom@codesourcery.com>
5662
5663 PR middle-end/43864
5664 * tree-ssa-tail-merge.c: New file.
5665 (struct same_succ_def): Define.
5666 (same_succ, const_same_succ): New typedef.
5667 (struct bb_cluster_def): Define.
5668 (bb_cluster, const_bb_cluster): New typedef.
5669 (struct aux_bb_info): Define.
5670 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
5671 (gvn_uses_equal): New function.
5672 (same_succ_print, same_succ_print_traverse, update_dep_bb)
5673 (stmt_update_dep_bb, local_def, same_succ_hash)
5674 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
5675 (same_succ_reset): New function.
5676 (same_succ_htab, same_succ_edge_flags)
5677 (deleted_bbs, deleted_bb_preds): New var.
5678 (debug_same_succ): New function.
5679 (worklist): New var.
5680 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
5681 (init_worklist, delete_worklist, delete_basic_block_same_succ)
5682 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
5683 (print_cluster, debug_cluster, update_rep_bb)
5684 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
5685 (all_clusters): New var.
5686 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
5687 (merge_clusters, set_cluster): New function.
5688 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
5689 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
5690 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
5691 (find_clusters_1, find_clusters): New function.
5692 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
5693 (update_bbs): New var.
5694 (apply_clusters): New function.
5695 (update_debug_stmt, update_debug_stmts): New function.
5696 (tail_merge_optimize): New function.
5697 tree-pass.h (tail_merge_optimize): Declare.
5698 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
5699 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
5700 (tree-ssa-tail-merge.o): New rule.
5701 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
5702 default at OPT_LEVELS_2_PLUS.
5703 * tree-ssa-sccvn.c (vn_valueize): Move to ...
5704 * tree-ssa-sccvn.h (vn_valueize): Here.
5705 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
5706 * common.opt (ftree-tail-merge): New switch.
5707 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
5708 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
5709 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
5710 (-ftree-tail-merge, max-tail-merge-comparisons)
5711 (max-tail-merge-iterations): New item.
5712
5713 2011-09-27 Jan Hubicka <jh@suse.cz>
5714
5715 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
5716
5717 2011-09-27 Jan Hubicka <jh@suse.cz>
5718
5719 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5720 parameters passed by reference; handle loads from non-SSA scalars
5721 and update comments.
5722
5723 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
5724
5725 PR rtl-optimization/50249
5726 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
5727 instead of opnum and type. All callers changed. Remove useless
5728 declaration.
5729 Search forward for other reloads of the same type for the same operand
5730 using the same register; if any are found, return false.
5731 (reload_regs_reach_end_p): Same argument changes; all callers changed.
5732
5733 2011-09-27 Andi Kleen <ak@linux.intel.com>
5734 Jan Hubicka <jh@suse.cz>
5735
5736 * doc/invoke.texi (ffat-lto-objects): Document.
5737 * toplev.c (compile_file): Do not output assembly when doing slim lto;
5738 Output __gnu_slim_lto when doing slim lto.
5739 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
5740 (cgraph_optimize): Return early when doing slim lto.
5741 * opts.c (finish_options): Complain about lack of linker plugin
5742 when doing slim lto.
5743 * common.opt (ffat-lto-objects): New.
5744
5745 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
5746
5747 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
5748 between signed and unsigned.
5749
5750 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
5751
5752 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
5753 vectorization.
5754 (vectorizable_type_promotion): Likewise.
5755 (vect_analyze_stmt): Call vectorizable_type_demotion and
5756 vectorizable_type_promotion for basic blocks.
5757 (supportable_widening_operation): Don't assume loop vectorization.
5758 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
5759 basic blocks. Update vectorization factor for basic block
5760 vectorization.
5761 (vect_analyze_slp_instance): Allow multiple types for basic block
5762 vectorization. Recheck unrolling factor after construction of SLP
5763 instance.
5764
5765 2011-09-27 Richard Guenther <rguenther@suse.de>
5766
5767 * tree-object-size.c (compute_object_sizes): Fix dumping of
5768 folded statement.
5769
5770 2011-09-27 Richard Guenther <rguenther@suse.de>
5771
5772 PR tree-optimization/50363
5773 * tree-ssa-pre.c (create_expression_by_pieces): Handle
5774 pointer conversions in POINTER_PLUS_EXPRs properly.
5775
5776 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
5777
5778 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
5779 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
5780 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
5781 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
5782 that produce subreg moves. Define using VQX iterators.
5783
5784 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
5785
5786 * config/avr/avr.md (ashrqi3): Split alternative "n"
5787 into its remaining parts C03, C04, C05, C06, C07 and describe
5788 impact in CC by attribute "cc" appropriately.
5789 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
5790 by digging RTX.
5791
5792 2011-09-27 Jakub Jelinek <jakub@redhat.com>
5793
5794 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
5795 from 3 x MAX_MACHINE_MODE.
5796 (CONSTM1_RTX): Define.
5797 * emit-rtl.c (const_tiny_rtx): Change into array of
5798 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
5799 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
5800 CONSTM1_RTX.
5801 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
5802 MODE_VECTOR_INT modes.
5803 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
5804 Optimize if one operand is CONSTM1_RTX.
5805 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
5806 into mask | x.
5807
5808 2011-09-26 David S. Miller <davem@davemloft.net>
5809
5810 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
5811 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
5812 * config/sparc/visintrin.h: Update edge and pixel-compare
5813 intrinsics to return 'long' instead of 'int'.
5814 * doc/extend.texi: Update documentation to match.
5815 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
5816 flat, allow any instruction. Otherwise, when V9 allow parallels
5817 which consist only of sets to registers outside of %o0 to %o5.
5818 (sparc_vis_init_builtins): Update VIS builtin types for edge
5819 and pixel-compare.
5820
5821 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
5822 is enabled, mark %gsr as global.
5823 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
5824 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
5825
5826 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
5827 which will now define __VIS and __VIS__ when -mvis is enabled.
5828 * config/sparc/t-sparc: Likewise.
5829 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
5830 and add t-sparc to tmake_file for all sparc targets.
5831 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
5832 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
5833
5834 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
5835 builtins for VIS vector addition and subtraction.
5836 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
5837 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
5838 __vis_fpsub32, __vis_fpsub32s): New.
5839 * doc/extend.texi: Document new VIS intrinsics.
5840
5841 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
5842
5843 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
5844 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
5845 EQ/NE comparisons against +/-1 in the case of unused-after,
5846 non-ld-regs target.
5847
5848 2011-09-26 Jakub Jelinek <jakub@redhat.com>
5849
5850 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
5851 gctx.into_ssa after push_gimplify_context.
5852
5853 * gimple.c (gimple_build_call_valist): New function.
5854 * gimple.h (gimple_build_call_valist): New prototype.
5855 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
5856 (update_gimple_call): Likewise.
5857 (update_call_from_tree): Use finish_update_gimple_call.
5858 * tree-ssa-propagate.h (update_gimple_call): New prototype.
5859
5860 2011-09-26 Richard Guenther <rguenther@suse.de>
5861
5862 PR tree-optimization/50472
5863 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
5864 volatile references.
5865
5866 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
5867
5868 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
5869 * target.def: (addr_space_subset_p): Likewise.
5870
5871 2011-09-26 Tom de Vries <tom@codesourcery.com>
5872
5873 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
5874 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
5875 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
5876 of new var.
5877
5878 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
5879
5880 PR target/50465
5881 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
5882 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
5883 output_reload_insisf.
5884 (adjust_len): Set default to "no".
5885 Remove alternative "yes". Add alternatives: "mov8", "mov16",
5886 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
5887 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
5888 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
5889 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
5890 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
5891 *lshrsi3_const): Set attribute "adjust_len".
5892 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
5893 (output_movsisf): Don't pass insn to output_reload_insisf.
5894 (adjust_insn_length): Handle new alternatives to adjust_len.
5895 Remove handling of ADJUST_LEN_YES. Clean-up code.
5896
5897 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
5898
5899 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
5900 may_trap_p to detect loads that may trap of fault.
5901
5902 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
5903
5904 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
5905 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
5906 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
5907 prototype.
5908 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
5909 * config/avr/avr.c: Rename output_reload_insisf_1 to
5910 output_reload_in_const.
5911 (avr_popcount_each_byte): Handle SFmode, too.
5912 (output_reload_in_const): Change so it can handle HI loads, too.
5913 Use avr_popcount_each_byte to work out if scratch register must be
5914 created on the fly.
5915 (output_reload_inhi): Rewrite using output_reload_in_const and...
5916 (output_movhi): ...use it to print constants' loads.
5917 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
5918
5919 2011-09-25 David S. Miller <davem@davemloft.net>
5920
5921 * config/sparc/constraints.md (C, P, Z): New constraints for
5922 const_doube, const_int, and const_vector "all ones" values.
5923 Make unused constraint letters comment match reality.
5924 * config/sparc/predicates.md (const_all_ones_operand,
5925 register_or_zero_or_all_ones_operand): New predicates.
5926 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
5927 as well as zero constants when VIS.
5928 (sparc_legitimate_constant_p): Likewise.
5929 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
5930 (movsf_insn): Likewise
5931 (movdi_insn_sp64): Add fone alternative.
5932 (movdf_insn_sp32_v9): Likewise.
5933 (movdf_insn_sp64): Likewise.
5934
5935 * configure.ac: Add feature check to make sure the assembler
5936 supports the FMAF, HPC, and VIS 3.0 instructions found on
5937 Niagara-3 and later cpus.
5938 * configure: Rebuild.
5939 * config.in: Likewise.
5940 * config/sparc/sparc.opt: New option '-mfmaf'.
5941 * config/sparc/sparc.md: Add float fused multiply-add patterns.
5942 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
5943 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
5944 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
5945 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
5946 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
5947 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
5948 disabled.
5949 (sparc_rtx_costs): Handle 'FMA'.
5950 * doc/invoke.texi: Document -mfmaf.
5951
5952 2011-09-25 Jakub Jelinek <jakub@redhat.com>
5953
5954 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
5955 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
5956 DECL_BY_REFERENCE parameters.
5957
5958 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
5959
5960 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
5961 if there is no outgoing edge.
5962
5963 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
5964 integral types.
5965
5966 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
5967
5968 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
5969 of vect_analyze_bb here.
5970 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
5971
5972 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
5973
5974 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
5975 Allow not simple iv if analyzing basic block.
5976 (create_data_ref): Update call to dr_analyze_innermost.
5977 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
5978 * tree-loop-distribution.c (generate_memset_zero): Likewise.
5979 * tree-predcom.c (find_looparound_phi): Likewise.
5980 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
5981
5982 2011-09-24 David S. Miller <davem@davemloft.net>
5983
5984 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
5985 (SPARC_GSR_REG): Define.
5986 (FIXED_REGISTERS): Mark GSR as fixed.
5987 (CALL_USED_REGISTERS): Mark GSR as call used.
5988 (HARD_REGNO_NREGS): GSR is always 1 register.
5989 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
5990 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
5991 (REGISTER_NAMES): Add "%gsr".
5992 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
5993 (UNSPEC_WRGSR): New unspec.
5994 (GSR_REG): New constant.
5995 (type): Add new insn type 'gsr'.
5996 (fpack16_vis, fpackfix_vis, fpack32_vis,
5997 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
5998 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
5999 rdgsr_v8plus): New expanders and insns.
6000 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
6001 using patterns which show that this is a plus in addition to a
6002 modification of GSR_REG, instead of an unspec.
6003 * config/sparc/ultra1_2.md: Handle 'gsr'.
6004 * config/sparc/ultra3.md: Likewise.
6005 * config/sparc/niagara.md: Likewise.
6006 * config/sparc/niagara2.md: Likewise.
6007 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
6008 end of table.
6009 (sparc_option_override): Make -mvis imply -mv8plus.
6010 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
6011 for %gsr.
6012 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
6013 __builtin_vis_read_gsr.
6014 (sparc_expand_buildin): Handle builtins that take one argument and
6015 return void.
6016 (sparc_fold_builtin): Never fold writes to %gsr.
6017 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
6018 * doc/extend.texi: Document new VIS intrinsics.
6019
6020 2011-09-23 Jan Hubicka <jh@suse.cz>
6021
6022 * ipa-inline-transform.c (inline_call): Add comment.
6023 * ipa-inline.h (inline_param_summary): New structure and vector.
6024 (struct inline_edge_summary): Add param field.
6025 * ipa-inline-analysis.c (CHANGED): New constant.
6026 (add_clause): Handle CHANGED and NOT_CONSTANT.
6027 (predicate_probability): New function.
6028 (dump_condition): Dump CHANGED predicate.
6029 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
6030 of unknown function wide invariant.
6031 (evaluate_conditions_for_edge): Handle change probabilities.
6032 (inline_edge_duplication_hook): Copy param summaries.
6033 (inline_edge_removal_hook): Free param summaries.
6034 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
6035 sizes; dump param summaries.
6036 (will_be_nonconstant_predicate): Use CHANGED predicate.
6037 (record_modified_bb_info): New structure.
6038 (record_modified): New function.
6039 (param_change_prob): New function.
6040 (estimate_function_body_sizes): Compute param summaries.
6041 (estimate_edge_size_and_time): Add probability argument.
6042 (estimate_node_size_and_time): Add inline_param_summary argument;
6043 handle predicate probabilities.
6044 (remap_predicate): Fix formating.
6045 (remap_edge_change_prob): New function.
6046 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
6047 (remap_edge_predicates): ... this one.
6048 (inline_merge_summary): Remap edge summaries; handle predicate
6049 probabilities; remove param summaries after we are done.
6050 (do_estimate_edge_time): Update.
6051 (do_estimate_edge_growth): Update.
6052 (read_inline_edge_summary): Read param info.
6053 (inline_read_summary): Fix formating.
6054 (write_inline_edge_summary): Write param summaries.
6055
6056 2011-09-23 Jakub Jelinek <jakub@redhat.com>
6057
6058 * config/i386/i386.c (ix86_print_operand): Handle %~.
6059 (ix86_print_operand_punct_valid_p): Return true also for '~'.
6060 * config/i386/sse.md (i128): New mode_attr.
6061 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
6062 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
6063 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
6064 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
6065 patterns, use "<sseinsnmode>" for "mode" attribute.
6066 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
6067 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
6068 %~128 in the patterns, use "OI" for "mode" attribute.
6069
6070 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
6071
6072 PR target/50447
6073 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
6074 "tstsi", "compare".
6075 (*cmpqi_sign_extend): Use s8_operand.
6076 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
6077 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
6078 prototypes.
6079 (out_tsthi, out_tstsi): Remove prototypes.
6080 (avr_out_tsthi, avr_out_tstsi): New prototypes.
6081 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
6082 (avr_asm_len): Negative length now sets *plen to -length.
6083 (compare_sign_p): Return bool instead of int.
6084 (compare_diff_p, compare_eq_p): Ditto and make static.
6085 (avr_out_tsthi): New function.
6086 (avr_out_tstsi): New function.
6087 (avr_out_compare): New function.
6088 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
6089 ADJUST_LEN_COMPARE.
6090
6091 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
6092
6093 PR target/50447
6094 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
6095 (addsi3): Rewrite using QI scratch register. Adjust text
6096 peepholes using plus:SI.
6097 (*addsi3_zero_extend.hi): New insn.
6098 (*subsi3_zero_extend.hi): New insn.
6099 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
6100 (*subsi3_zero_extend): Ditto.
6101 (subsi3): Change predicate #2 to register_operand.
6102 * config/avr/avr-protos.h (avr_out_plus): New prototype.
6103 (avr_out_plus_1): New static function.
6104 (avr_out_plus): New function.
6105 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
6106
6107 2011-09-23 Jakub Jelinek <jakub@redhat.com>
6108
6109 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
6110 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
6111
6112 2011-09-23 Ian Lance Taylor <iant@google.com>
6113
6114 * godump.c (go_define): Treat a single character in single quotes,
6115 or a string, as an operand.
6116
6117 2011-09-23 Martin Jambor <mjambor@suse.cz>
6118
6119 * ipa-prop.h (jump_func_type): Updated comments.
6120 (ipa_known_type_data): New type.
6121 (ipa_jump_func): Use it to describe known type jump functions.
6122 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
6123 reflect the new known type jump function contents.
6124 (compute_known_type_jump_func): Likewise.
6125 (combine_known_type_and_ancestor_jfs): Likewise.
6126 (try_make_edge_direct_virtual_call): Likewise.
6127 (ipa_write_jump_function): Likewise.
6128 (ipa_read_jump_function): Likewise.
6129 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
6130 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
6131 (propagate_accross_jump_function): Likewise.
6132
6133 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
6134
6135 PR target/50446
6136 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
6137 (rotlqi3_4): Turn insn into expander.
6138 (*rotlqi3): New insn.
6139 (rotlhi3, rotlsi3): Support rotate left/right by 1.
6140 (*rotlhi2.1, *rotlhi2.15): New insns.
6141 (*rotlsi2.1, *rotlsi2.31): New insns.
6142 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
6143
6144 2011-09-23 Bin Cheng <bin.cheng@arm.com>
6145
6146 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
6147
6148 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
6149
6150 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
6151
6152 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6153
6154 * reload.c (find_reloads): Set operand_mode to Pmode for address
6155 operands consisting of just a CONST_INT.
6156
6157 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
6158
6159 PR target/50482
6160 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6161 blendv, force op_true to register if it doesn't satisfy
6162 nonimmediate_operand predicate.
6163
6164 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
6165
6166 PR middle-end/50113
6167 PR middle-end/50061
6168 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
6169 get the locate.where_pad value for register-only arguments.
6170 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
6171 (arm_pad_reg_upward): Handle null types.
6172
6173 2011-09-22 Jan Hubicka <jh@suse.cz>
6174
6175 * ipa-inline-analysis.c: Fix overly long lines.
6176
6177 2011-09-22 Jan Hubicka <jh@suse.cz>
6178
6179 * ipa-inline-transform.c (inline_call): Always update jump functions
6180 after inlining.
6181 * ipa-inline.c (ipa_inline): Likewise; do not call
6182 ipa_create_all_structures_for_iinln.
6183 (ipa_inline): Always free jump functions.
6184 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
6185 (remap_edge_predicates): Fix pasto.
6186 (inline_merge_summary): Remove nlined edge predicate; remove hack.
6187 (inline_analyze_function): Always initialize jump functions.
6188 (inline_generate_summary): Likewise.
6189 (inline_write_summary): Always write jump functions when ipa-cp
6190 is not doing that.
6191 (inline_read_summary): Always read jump functions when ipa-cp
6192 is not doing that.
6193 * ipa-prop.c (iinlining_processed_edges): Remove.
6194 (update_indirect_edges_after_inlining): Do not use
6195 iinlining_processed_edges; instead set param_index to -1.
6196 (propagate_info_to_inlined_callees): Only try to indirect inlining
6197 when asked to do so; update jump functions of indirect calls, too;
6198 remove jump functions of the inlined edge.
6199 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
6200 (ipa_create_all_structures_for_iinln): Remove.
6201 (ipa_free_all_structures_after_iinln): Do not free
6202 iinlining_processed_edges.
6203 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
6204
6205 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
6206
6207 * config/arm/predicates.md (expandable_comparison_operator): New
6208 predicate, extracted from...
6209 (arm_comparison_operator): ...here.
6210 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
6211 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
6212 (movdfcc): Use expandable_comparison_operator.
6213
6214 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
6215
6216 PR target/50447
6217 PR target/50465
6218 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
6219 (avr_popcount_each_byte): New prototype.
6220 * config/avr/avr.c (avr_popcount): New static function.
6221 (avr_popcount_each_byte): New function.
6222 (avr_out_bitop): New function.
6223 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
6224 avr_out_bitop. Cleanup code.
6225 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
6226 (Ca4, Co4, Cx4): New constraints.
6227 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
6228 alternative.
6229 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
6230 (andsi3, iorsi3, xorsi3): Ditto.
6231 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
6232
6233 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
6234
6235 PR tree-optimization/50451
6236 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
6237 constant operands in reduction.
6238 (vect_get_slp_defs): Don't create vector operand for NULL scalar
6239 operand.
6240
6241 2011-09-22 David S. Miller <davem@davemloft.net>
6242
6243 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
6244 fpack16, fpack32, fpackfix as const.
6245
6246 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
6247 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
6248 constants. Use them everywhere.
6249
6250 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
6251
6252 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
6253 Added AND special case. Adapted comments.
6254 (sh_rtx_costs): Added XOR and IOR case.
6255
6256 2011-09-21 Jan Hubicka <jh@suse.cz>
6257
6258 * ipa-inline-analsis.c (compute_inline_parameters): Set
6259 cfun and current_function_decl.
6260
6261 2011-09-21 Jan Hubicka <jh@suse.cz>
6262
6263 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
6264 handled components in parameter of builtin_constant_p.
6265 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
6266
6267 2011-09-21 Jan Hubicka <jh@suse.cz>
6268
6269 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
6270 * ipa-inline.h (estimate_edge_time): Fix pasto.
6271 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
6272
6273 2011-09-21 Jakub Jelinek <jakub@redhat.com>
6274
6275 * config/i386/i386.c (ix86_expand_sse_movcc): Use
6276 blendvps, blendvpd and pblendvb if possible.
6277
6278 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
6279
6280 PR target/50464
6281 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
6282 operand 1 predicate to register_operand and operand 2 predicate
6283 to nonimmediate_operand.
6284 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
6285 xop_pcmov, force op_true to register. Also, force op_false to
6286 register if it doesn't satisfy nonimmediate_operand predicate.
6287
6288 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
6289
6290 * config/i386/bmi2intrin.h (_mulx_u64): New.
6291 (_mulx_u32): Ditto.
6292
6293 2011-09-21 Jan Hubicka <jh@suse.cz>
6294
6295 PR tree-optimization/50433
6296 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
6297 Use get_base_address.
6298
6299 2011-09-21 Jakub Jelinek <jakub@redhat.com>
6300
6301 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
6302 nonimmediate_operand instead of register_operand predicate for operands
6303 1 and 2, force them into registers if expanding them as comparison.
6304 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
6305 V8HImode force into register just operand 1.
6306
6307 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
6308
6309 PR target/45099
6310 * config/avr/avr.c (avr_function_arg_advance): Change error to
6311 warning if a fixed register is needed as function argument.
6312
6313 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
6314
6315 PR target/50449
6316 PR target/50465
6317 * config/avr/avr.md (adjust_len): New insn attribute.
6318 (*reload_insi, *reload_insf): Use it.
6319 (*movsi, *movsf): Use new interface of output_movsisf.
6320 * config/avr/avr-protos.h (output_movsisf): Change prototype.
6321 * config/avr/avr.c (output_movsisf): Ditto.
6322 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
6323 lengths of insns *reload_insi, *reload_insf.
6324 (output_reload_insisf_1): New static function.
6325 (output_reload_insisf): Use it.
6326
6327 2011-09-21 David S. Miller <davem@davemloft.net>
6328
6329 * config/sparc/sparc.c (def_builtin): Change from macro into function.
6330 (def_builtin_const): New.
6331 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
6332 other than alignaddr and falignaddr.
6333
6334 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
6335 UNSPEC_FCMPEQ): New unspec codes.
6336 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
6337 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
6338 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
6339 new pixel compare VIS patterns.
6340 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
6341 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
6342 __vis_fcmpeq16, __vis_fcmpeq32): New.
6343 * doc/extend.texi: Document new pixel compare VIS intrinsics.
6344
6345 2011-09-21 Tom de Vries <tom@codesourcery.com>
6346
6347 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
6348
6349 2011-09-20 David S. Miller <davem@davemloft.net>
6350
6351 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
6352 (aligneddrl<P:mode>_vis): New pattern.
6353 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6354 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
6355 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
6356 alignaddrl insn, and adjust edge operations for updated types.
6357 * config/sparc/visintrin.h: Likewise.
6358 * doc/extend.texi: Make typing in VIS documentation match reality.
6359
6360 2011-09-20 Terry Guo <terry.guo@arm.com>
6361
6362 * config/arm/arm-arches.def: Add armv6s-m.
6363 * config/arm/arm-tables.opt: Regenerate.
6364
6365 2011-09-20 Wei Guozhi <carrot@google.com>
6366
6367 PR rtl-optimization/49452
6368 * postreload.c (reload_combine): Invalidate use information when across
6369 volatile insn.
6370
6371 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
6372
6373 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
6374 Remove maintenance overhead.
6375 (haifa_sched_init, sched_finish): Update.
6376
6377 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
6378
6379 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
6380 to calculate unit, prefix_rep and prefix_data16 attributes.
6381 (*mov<mode>_internal): Ditto for unit attribute.
6382 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
6383 (*movv2sf_internal): Ditto.
6384 * config/i386/sse.md (VI1248_256): Remove mode iterator.
6385 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
6386 (*avx2_eq<mode>3): Ditto.
6387 (avx2_gt<mode>3): Ditto.
6388
6389 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
6390
6391 * config/i386/i386.md (maxmin): New code iterator.
6392 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
6393 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
6394 code iterator.
6395 (*avx2_<maxmin:code><mode>3): Macroize isn from
6396 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
6397 maxmin code iterator.
6398 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
6399 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
6400 <umaxmin:code>v16qi3.
6401
6402 2011-09-19 Alan Modra <amodra@gmail.com>
6403 Michael Meissner <meissner@linux.vnet.ibm.com>
6404
6405 PR target/50341
6406 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
6407 split the load of the indirect function's TOC from the call to
6408 prevent the compiler from moving the load of the new TOC above
6409 code that references the current function's TOC.
6410 (call_indirect_aix<ptrsize>_internal): Ditto.
6411 (call_indirect_aix<ptrsize>_nor11): Ditto.
6412 (call_indirect_aix<ptrsize>_internal2): Ditto.
6413 (call_value_indirect_aix<ptrsize>): Ditto.
6414 (call_value_indirect_aix<ptrsize>_internal): Ditto.
6415 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6416 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6417
6418 2011-09-19 Jakub Jelinek <jakub@redhat.com>
6419
6420 * config/i386/sse.md (*sse4_1_extractps): Change into
6421 define_insn_and_split, add =x 0 n and =x x n alternatives
6422 and split them after reload.
6423
6424 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
6425
6426 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
6427
6428 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
6429
6430 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
6431
6432 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
6433
6434 PR tree-optimization/50413
6435 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
6436 a basic block if one of its data-refs can't be analyzed.
6437
6438 2011-09-19 Paul Brook <paul@codesourcery.com>
6439
6440 * config/arm/predicates.md (shift_amount_operand): Check constant
6441 shift count is in range.
6442 (const_shift_operand): Remove.
6443
6444 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
6445 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6446
6447 PR target/50091
6448 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
6449 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
6450
6451 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
6452
6453 * config/i386/bmiintrin.h: Remove tmp.
6454 * config/i386/tbmintrin.h: Likewise.
6455
6456 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
6457
6458 PR tree-optimization/50414
6459 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
6460 MIN_EXPR.
6461
6462 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
6463
6464 PR tree-optimization/50412
6465 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
6466 acceses that require epilogue loop if vectorizing outer loop.
6467
6468 2011-09-17 David S. Miller <davem@davemloft.net>
6469
6470 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
6471 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
6472 New unspecs.
6473 (define_attr type): New type 'edge'.
6474 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
6475 edge32l_vis): New patterns.
6476 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
6477 * config/sparc/ultra3.md: Likewise.
6478 * config/sparc/niagara.md: Likewise.
6479 * config/sparc/niagara2.md: Likewise.
6480 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
6481 builtins for VIS edge instructions.
6482 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
6483 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
6484 intrinsics.
6485 (__v8qi, __v4qi): Make unsigned.
6486 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
6487 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
6488 __vis_fpack32): Fix types.
6489 * doc/extend.texi: Document new 'edge' VIS intrinsics.
6490
6491 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
6492 divide costs.
6493 (niagara3_costs): New.
6494 (sparc_option_override): Use it.
6495 * gcc/config/sparc/niagara2.md: Adjust with more accurate
6496 Niagara-3 reservations.
6497
6498 2011-09-17 Jakub Jelinek <jakub@redhat.com>
6499
6500 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
6501 (sse2_avx, sseinsnmode): Add V2TI.
6502 (REDUC_SMINMAX_MODE): New mode iterator.
6503 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
6504 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
6505 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
6506 (sse2_lshrv1ti3): Rename to...
6507 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
6508 iterator. Move before umaxmin expanders.
6509 * config/i386/i386.h (VALID_AVX256_REG_MODE,
6510 SSE_REG_MODE_P): Accept V2TImode.
6511 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
6512 V16HImode, V8SImode and V4DImode.
6513
6514 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
6515 and V4DImode.
6516 (ix86_build_signbit_mask): Likewise.
6517 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
6518 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
6519 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
6520 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
6521 (<code><mode>3) ... this.
6522 (avx2_<code><mode>3 smaxmin expand): Rename to...
6523 (<code><mode>3) ... this.
6524 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
6525 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
6526 VI8_AVX2 mode iterator.
6527 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
6528 VI8_AVX2 mode iterator.
6529 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
6530 New expanders.
6531
6532 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
6533
6534 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
6535 throughout file.
6536
6537 2011-09-16 David S. Miller <davem@davemloft.net>
6538
6539 * config/sparc/visintrin.h: New file.
6540 * config.gcc: Add it to extra_headers on sparc.
6541
6542 2011-09-16 Jakub Jelinek <jakub@redhat.com>
6543
6544 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
6545 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
6546 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
6547 reduc_smin_v4sf): Adjust callers.
6548 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
6549 New expanders.
6550
6551 * config/i386/sse.md (vec_extract_hi_<mode>,
6552 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
6553 vextracti128 instead of vextractf128 for -mavx2 and
6554 integer vectors. For V4DFmode fix up mode attribute.
6555 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
6556 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
6557 instead of V8SF mode attribute.
6558 (avx2_extracti128): Change into define_expand.
6559 * config/i386/i386.c (ix86_expand_vector_extract): Handle
6560 32-byte vector modes if TARGET_AVX.
6561
6562 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
6563
6564 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
6565 (umulqi3_highpart, smulqi3_highpart): Ditto.
6566 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
6567 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
6568 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
6569
6570 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
6571
6572 PR target/50358
6573 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
6574 (*maddqi4, *maddqi4.const): New insns.
6575 (*msubqi4, *msubqi4.const): New insns.
6576 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
6577 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
6578 HImode by 1 in the case of multiplying with a CONST_INT.
6579 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
6580
6581 2011-09-15 Jan Hubicka <jh@suse.cz>
6582
6583 PR lto/50430
6584 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
6585 error_mark_node in the DECL_INITIAL of vtable.
6586
6587 2011-09-15 Diego Novillo <dnovillo@google.com>
6588
6589 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
6590 @SYSROOT_CFLAGS_FOR_TARGET@.
6591 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
6592 * configure: Regenerate.
6593 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
6594 Remove setting of GCC_UNDER_TEST.
6595
6596 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
6597
6598 * config/i386/i386.c (output_fp_compare): Return %v prefixed
6599 instruction mnemonics for TARGET_AVX.
6600
6601 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
6602 "type" attribute calculation.
6603 (*movdf_internal): Ditto.
6604 (*movsf_internal): Ditto.
6605
6606 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
6607
6608 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
6609
6610 2011-09-15 Jason Merrill <jason@redhat.com>
6611
6612 PR c++/50361
6613 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
6614
6615 2011-09-15 Jan Hubicka <jh@suse.cz>
6616
6617 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
6618 simplify obviously true clauses.
6619 (and_predicates, or_predicates): Add conditions parameter.
6620 (inline_duplication_hoook): Update.
6621 (mark_modified): New function.
6622 (unmodified_parm): New function.
6623 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
6624 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
6625 Use unmodified_parm.
6626 (estimate_function_body_sizes): Update.
6627 (remap_predicate): Update.
6628
6629 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
6630
6631 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
6632 read-after-read dependencies in basic block SLP.
6633
6634 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6635
6636 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
6637 throughout file.
6638
6639 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6640
6641 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
6642 throughout file.
6643
6644 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6645
6646 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
6647 throughout file.
6648
6649 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6650
6651 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
6652 throughout file.
6653 * config/rs6000/constraints.md: Likewise.
6654
6655 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6656
6657 * config/microblaze/microblaze.md: Use match_test rather than
6658 eq/ne symbol_ref throughout file.
6659
6660 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
6661
6662 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
6663 throughout file.
6664
6665 2011-09-14 Tom de Vries <tom@codesourcery.com>
6666
6667 PR middle-end/50251
6668 * explow.c (emit_stack_restore): Set crtl->need_drap if
6669 stack_restore is emitted.
6670
6671 2011-09-14 Julian Brown <julian@codesourcery.com>
6672
6673 * config/arm/arm.c (arm_override_options): Add unaligned_access
6674 support.
6675 (arm_file_start): Emit attribute for unaligned access as appropriate.
6676 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
6677 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
6678 (insv, extzv): Add unaligned-access support.
6679 (extv): Change to expander. Likewise.
6680 (extzv_t1, extv_regsi): Add helpers.
6681 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
6682 (unaligned_storesi, unaligned_storehi): New.
6683 (*extv_reg): New (previous extv implementation).
6684 * config/arm/arm.opt (munaligned_access): Add option.
6685 * config/arm/constraints.md (Uw): New constraint.
6686 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
6687 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
6688 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
6689 volatile accesses when -fstrict-volatile-bitfields is in effect.
6690 (extract_bit_field_1): Likewise.
6691
6692 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
6693
6694 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
6695 a scalar integer before applying integer-only optimisations to
6696 inner arithmetic.
6697
6698 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
6699
6700 * config/mips/mips.c (mips_expand_epilogue): Generate a
6701 simple_return only if the return address is in r31.
6702
6703 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
6704
6705 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
6706 NULL for a jump that is a cc0 insn, pick the previous insn for
6707 move_before.
6708
6709 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6710
6711 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
6712 throughout file.
6713
6714 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6715
6716 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
6717 throughout file.
6718
6719 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6720
6721 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
6722 symbol_ref throughout file.
6723
6724 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6725
6726 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
6727 throughout file.
6728
6729 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6730
6731 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
6732 throughout file.
6733
6734 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
6735
6736 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
6737 throughout file.
6738 * config/arm/neon.md: Likewise.
6739 * config/arm/vfp.md: Likewise.
6740 * config/arm/thumb2.md: Likewise.
6741 * config/arm/cortex-m4.md: Likewise.
6742
6743 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
6744
6745 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
6746 define_insn patterns for combine.
6747
6748 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
6749
6750 * reorg.c: Always define make_return_insns.
6751
6752 2011-09-13 Jan Hubicka <jh@suse.cz>
6753
6754 PR other/49533
6755 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
6756
6757 2011-09-13 Jan Hubicka <jh@suse.cz>
6758
6759 PR other/49533
6760 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
6761
6762 2011-09-13 Paul Brook <paul@codesourcery.com>
6763
6764 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6765 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
6766 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
6767 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
6768 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
6769 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
6770 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
6771 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
6772 enabling unwind tables.
6773 (c6x_debug_unwind_info): New function.
6774 (TARGET_ARM_EABI_UNWINDER): Define.
6775 (TARGET_DEBUG_UNWIND_INFO): Define.
6776 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
6777 (TARGET_EXTRA_CFI_SECTION): Remove.
6778 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
6779 * ginclude/unwind-arm-common.h: New file.
6780
6781 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
6782
6783 PR target/50358
6784 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
6785 * config/avr/avr.md: (extend_s): New code attribute.
6786 (mul_r_d): New code attribute.
6787 (*maddqihi4, *umaddqihi4): New insns.
6788 (*msubqihi4, *umsubqihi4): New insns.
6789 (*usmaddqihi4, *sumaddqihi4): New insns.
6790 (*usmsubqihi4, *susubdqihi4): New insns.
6791 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
6792 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
6793 (*umsubqihi4.uconst.ashift): New insn-and-split.
6794 (*msubqihi4.sconst.ashift): New insn-and-split.
6795 (*sumaddqihi4.uconst): New insn-and-split.
6796 (*sumsubqihi4.uconst): New insn-and-split.
6797 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
6798 PLUS:HI and MINUS:HI.
6799
6800 2011-09-13 Revital Eres <revital.eres@linaro.org>
6801
6802 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
6803 (optimize_sc): Adjust call to remove_node_from_ps.
6804 (sms_schedule): Add print info.
6805
6806 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
6807
6808 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
6809 flags specially.
6810
6811 2011-09-12 Jakub Jelinek <jakub@redhat.com>
6812
6813 PR bootstrap/50010
6814 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
6815 NOTE_INSN_CFI notes, with the exception of
6816 NOTE_INSN_SWITCH_TEXT_SECTIONS.
6817
6818 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
6819 Richard Sandiford <rdsandiford@googlemail.com>
6820
6821 * config/mips/mips.c (mips_epilogue): New structure.
6822 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
6823 restoring registers.
6824 (mips_epilogue_emit_cfa_restores): New function.
6825 (mips_epilogue_set_cfa): Likewise.
6826 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
6827 the current CFA register from the stack, redefine the CFA in terms
6828 of the stack pointer.
6829 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
6830 to the epilogue instructions.
6831
6832 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
6833
6834 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
6835 argument.
6836 (mips16e_build_save_restore): Update accordingly.
6837
6838 2011-09-12 Jakub Jelinek <jakub@redhat.com>
6839
6840 PR rtl-optimization/50212
6841 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6842 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
6843
6844 PR debug/50299
6845 * calls.c (load_register_parameters): Use use_reg_mode instead
6846 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
6847 entry.
6848 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
6849 for stack CALL_INSN_FUNCTION_USAGE uses.
6850 * expr.h (use_reg_mode): New prototype.
6851 (use_reg): Changed into inline around use_reg_mode.
6852 * expr.c (use_reg): Renamed to...
6853 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
6854 mode to that mode instead of VOIDmode.
6855 * var-tracking.c (prepare_call_arguments): Don't track parameters
6856 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
6857 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
6858 EXPR_LIST mode.
6859
6860 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
6861
6862 PR target/43746
6863 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
6864 (progmem_section): New Variable.
6865 (avr_asm_init_sections): Initialize it.
6866 (TARGET_ASM_SELECT_SECTION): Define to...
6867 (avr_asm_select_section): ... this new Function.
6868 (avr_replace_prefix): New Function.
6869 (avr_asm_function_rodata_section): Use it.
6870 (avr_insert_attributes): Don't add section attribute for PROGMEM.
6871 (avr_section_type_flags): Use avr_progmem_p instead of section
6872 name to detect if object is in PROGMEM.
6873 (avr_asm_named_section): Set section name prefix for objects in
6874 PROGMEM.
6875
6876 2011-09-12 Jakub Jelinek <jakub@redhat.com>
6877
6878 PR bootstrap/50352
6879 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
6880 sprintf format string.
6881
6882 2011-09-12 Richard Guenther <rguenther@suse.de>
6883
6884 PR tree-optimization/50343
6885 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
6886 that the reduction is over an SSA name before checking its definition.
6887
6888 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
6889
6890 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
6891 throughout file.
6892
6893 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
6894
6895 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
6896 throughout file.
6897 * config/mips/sb1.md: Likewise.
6898 * config/mips/predicates.md: Replace (match_test "!...")
6899 with (not (match_test "..."))
6900 * config/mips/constraints.md: Likewise.
6901
6902 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
6903
6904 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
6905 * config/arm/arm-tables.opt: Regenerate.
6906 * config/arm/arm-tune.md: Regenerate.
6907 * config/arm/arm.c (arm_file_start): Output .arch directive when
6908 user passes -mcpu=generic-*.
6909 (arm_issue_rate): Add genericv7a support.
6910 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
6911 (ASM_CPU_SPEC): New define.
6912 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
6913 * config/arm/semi.h (ASM_SPEC): Likewise.
6914 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
6915 and -mtune=generic-*.
6916
6917 2011-09-09 Richard Guenther <rguenther@suse.de>
6918
6919 PR tree-optimization/50328
6920 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
6921 constant or default-def operand.
6922
6923 2011-09-09 Richard Guenther <rguenther@suse.de>
6924
6925 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
6926 last statement.
6927
6928 2011-09-09 Richard Guenther <rguenther@suse.de>
6929
6930 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
6931 instead of a statement.
6932 * gimple-fold.c (fold_stmt_inplace): Likewise.
6933 * sese.c (graphite_copy_stmts_from_block): Adjust.
6934 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
6935 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
6936 fold_stmt.
6937 (forward_propagate_addr_into_variable_array_index): Likewise.
6938 (forward_propagate_addr_expr_1): adjust.
6939 (associate_plusminus): Likewise.
6940 (ssa_forward_propagate_and_combine): Likewise.
6941 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
6942 (execute_cse_reciprocals): Likewise.
6943 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
6944
6945 2011-09-09 Nick Clifton <nickc@redhat.com>
6946
6947 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
6948 Return a positive value to indicate that the bits at the
6949 bottom of the register should be cleared.
6950
6951 2011-09-09 Richard Guenther <rguenther@suse.de>
6952
6953 * tree-ssa-operands.c (swap_tree_operands): Always adjust
6954 existing operand positions.
6955
6956 2011-09-09 Richard Guenther <rguenther@suse.de>
6957
6958 PR middle-end/50333
6959 * tree-data-ref.c (split_constant_offset): Do not try to handle
6960 ternary ops.
6961
6962 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
6963
6964 PR tree-optimization/50318
6965 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
6966 typo in use of mult_rhs1 and mult_rhs2.
6967
6968 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
6969
6970 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
6971 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
6972
6973 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
6974
6975 * config/arm/arm.md (push_multi): Emit predicates.
6976 (push_fp_multi): Likewise.
6977 * config/arm/arm.c (vfp_output_fstmd): Likewise.
6978
6979 2011-09-08 Dodji Seketeli <dodji@redhat.com>
6980
6981 PR c++/33255 - Support -Wunused-local-typedefs warning
6982 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
6983 (pushdecl): Use the new record_locally_defined_typedef.
6984 (store_parm_decls): Allocate cfun->language.
6985 (finish_function): Use the new maybe_warn_unused_local_typedefs,
6986 and free cfun->language.
6987 (c_push_function_context): Allocate cfun->language here only if needed.
6988 (c_pop_function_context): Likewise, mark cfun->language
6989 for collection only when it should be done.
6990 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
6991 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
6992 maybe_record_local_typedef_use.
6993 * doc/invoke.texi: Update documentation for
6994 -Wunused-local-typedefs.
6995
6996 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
6997
6998 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
6999 (ix86_avoid_lea_for_add): Likewise.
7000 (ix86_avoid_lea_for_addr): Likewise.
7001 (ix86_split_lea_for_addr): Likewise.
7002
7003 * config/i386/i386.c (LEA_MAX_STALL): New.
7004 (increase_distance): Likewise.
7005 (insn_defines_reg): Likewise.
7006 (insn_uses_reg_mem): Likewise.
7007 (distance_non_agu_define_in_bb): Likewise.
7008 (distance_agu_use_in_bb): Likewise.
7009 (ix86_lea_outperforms): Likewise.
7010 (ix86_ok_to_clobber_flags): Likewise.
7011 (ix86_avoid_lea_for_add): Likewise.
7012 (ix86_avoid_lea_for_addr): Likewise.
7013 (ix86_split_lea_for_addr): Likewise.
7014 (distance_non_agu_define): Search in pred BBs added.
7015 (distance_agu_use): Search in succ BBs added.
7016 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
7017 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
7018 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
7019
7020 * config/i386/i386.md: Split added to transform non destructive
7021 add into move and add.
7022 (lea_1): transformed into insn_and_split to avoid AGU stalls.
7023 (lea<mode>_2): Likewise.
7024
7025 2011-09-08 Martin Jambor <mjambor@suse.cz>
7026
7027 PR tree-optimization/50287
7028 * ipa-split.c (split_function): Do not create SSA names for
7029 non-gimple-registers.
7030
7031 2011-09-08 Richard Guenther <rguenther@suse.de>
7032
7033 PR tree-optimization/19831
7034 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
7035 skip builtins with vdefs that do not really store something.
7036 (propagate_necessity): For calls to free that we can associate
7037 with an allocation function do not mark the freed pointer
7038 definition necessary.
7039 (eliminate_unnecessary_stmts): Remove a call to free if
7040 the associated call to an allocation function is not necessary.
7041
7042 2011-09-08 Richard Guenther <rguenther@suse.de>
7043
7044 PR tree-optimization/19831
7045 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
7046 allocation functions as necessary.
7047
7048 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
7049
7050 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
7051 cut from ...
7052 (darwin_default_min_version): Amended to provide defaults
7053 for the cross directory case.
7054 (darwin_driver_init): call darwin_default_min_version unconditionally.
7055 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
7056 * config/darwin9.h: Likewise.
7057 * config/darwin10.h: Likewise.
7058 * config/rs6000/darwin7.h: Likewise.
7059
7060 2011-09-08 Jakub Jelinek <jakub@redhat.com>
7061
7062 PR target/50310
7063 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
7064 code early if TARGET_AVX.
7065 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
7066
7067 2011-09-07 Jakub Jelinek <jakub@redhat.com>
7068
7069 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
7070 duplicates.
7071
7072 PR target/50310
7073 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
7074 "mode" attribute computation.
7075
7076 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
7077
7078 * regrename.c (struct du_head): Make nregs signed.
7079 (closed_chains): Remove.
7080 (create_new_chain): Return the new chain.
7081 (chain_from_id): New static function.
7082 (dump_def_use_chain): Change argument to be an int, indicating
7083 the first ID to print. All callers changed.
7084 (merge_overlapping_regs): Use chain_from_id. Assert that
7085 chains don't conflict with themselves.
7086 (rename_chains): Take no argument. Iterate over id_to_chain
7087 rather to find chains to rename. Clear tick before the main loop.
7088 (struct incoming_reg_info): New struct.
7089 (struct bb_rename_info): New struct.
7090 (init_rename_info, set_incoming_from_chain, merge_chains): New
7091 static functions.
7092 (regrename_analyze): New static function, broken out of
7093 regrename_optimize. Record and make use of open chain information
7094 at basic block boundaries, and merge chains where possible.
7095 (scan_rtx_reg): Make this_nregs signed. Don't update
7096 closed_chains.
7097 (build_def_use): Return a bool to indicate success. All callers
7098 changed. Don't initialize global data here.
7099 (regrename_optimize): Move most code out of here into
7100 regrename_analyze.
7101 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
7102 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
7103 static inline functions.
7104 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
7105
7106 * bb-reorder.c (insert_section_boundary_note): Don't check
7107 optimize_function_for_speed_p.
7108 (gate_handle_partition_blocks): Do it here instead.
7109 (gate_handle_reorder_blocks): Move preliminary checks here ...
7110 (rest_of_handle_reorder_blocks): ... from here.
7111
7112 2011-09-07 Martin Jambor <mjambor@suse.cz>
7113
7114 PR middle-end/50301
7115 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
7116 function index bounds.
7117 (perhaps_add_new_callers): Likewise.
7118
7119 2011-09-07 Martin Jambor <mjambor@suse.cz>
7120
7121 PR tree-optimization/49911
7122 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
7123 enumerations to the corresponding plain integer type.
7124
7125 2011-09-07 Richard Guenther <rguenther@suse.de>
7126
7127 PR tree-optimization/50319
7128 * tree-if-conv.c (set_bb_predicate): Assert we only set
7129 canonical predicates.
7130 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
7131 around canonical predicates.
7132 (predicate_bbs): Do not re-gimplify already canonical
7133 predicates. Properly unshare them though.
7134 (find_phi_replacement_condition): Simplify.
7135
7136 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
7137
7138 PR target/49030
7139 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
7140 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
7141 reusing the old code from get_arm_condition_code. Return ARM_NV
7142 for invalid comparison codes.
7143 (get_arm_condition_code): Redefine in terms of
7144 maybe_get_arm_condition_code.
7145 * config/arm/predicates.md (arm_comparison_operator): Use
7146 maybe_get_arm_condition_code.
7147
7148 2011-09-07 Richard Guenther <rguenther@suse.de>
7149
7150 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7151 Canonicalize negated predicates by swapping edges.
7152 (forward_propagate_into_cond): Likewise.
7153
7154 2011-09-07 Richard Guenther <rguenther@suse.de>
7155
7156 PR tree-optimization/50213
7157 * tree-flow.h (simple_iv_increment_p): Declare.
7158 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
7159 POINTER_PLUS_EXPR.
7160 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
7161 not propagate simple IV counter increments.
7162
7163 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
7164 Iain Sandoe <iains@gcc.gnu.org>
7165
7166 * config/rs6000/rs6000.c (compute_save_world_info): Test
7167 cfun->has_nonlocal_label to determine if the out-of-line save
7168 world call may be used.
7169
7170 2011-09-07 Nick Clifton <nickc@redhat.com>
7171
7172 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
7173 label on the parallel part of the insn.
7174
7175 2011-09-07 Jakub Jelinek <jakub@redhat.com>
7176
7177 PR debug/50191
7178 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
7179 avoid_constant_pool_reference first instead of last.
7180
7181 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7182
7183 * doc/configfiles.texi (Configuration Files): Update documentation
7184 about tm_p.h and remove FIXME comment.
7185
7186 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
7187
7188 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
7189 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
7190
7191 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
7192
7193 * config/darwin10.h Remove duplicate LIB_SPEC.
7194
7195 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
7196
7197 PR middle-end/44382
7198 * target.def (reassociation_width): New hook.
7199
7200 * doc/tm.texi.in (reassociation_width): Likewise.
7201
7202 * doc/tm.texi (reassociation_width): Likewise.
7203
7204 * doc/invoke.texi (tree-reassoc-width): New param documented.
7205
7206 * hooks.h (hook_int_uint_mode_1): New default hook.
7207
7208 * hooks.c (hook_int_uint_mode_1): Likewise.
7209
7210 * config/i386/i386.h (ix86_tune_indices): Add
7211 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7212
7213 (TARGET_REASSOC_INT_TO_PARALLEL): New.
7214 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
7215
7216 * config/i386/i386.c (initial_ix86_tune_features): Add
7217 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
7218
7219 (ix86_reassociation_width): New function.
7220
7221 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
7222
7223 * tree-ssa-reassoc.c (get_required_cycles): New function.
7224 (get_reassociation_width): Likewise.
7225 (swap_ops_for_binary_stmt): Likewise.
7226 (rewrite_expr_tree_parallel): Likewise.
7227
7228 (rewrite_expr_tree): Refactored. Part of code moved into
7229 swap_ops_for_binary_stmt.
7230
7231 (reassociate_bb): Now checks reassociation width to be used and
7232 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
7233
7234 2011-09-06 Richard Guenther <rguenther@suse.de>
7235
7236 PR tree-optimization/47025
7237 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
7238 uses nothing.
7239 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
7240 BUILT_IN_FREE.
7241 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
7242 definitely points to.
7243 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7244 BUILT_IN_VA_START doesn't let its va_list argument escape.
7245 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
7246 not make any previous stores necessary.
7247
7248 2011-09-06 Martin Jambor <mjambor@suse.cz>
7249
7250 * ipa-inline.h (struct inline_summary): Move versionable flag...
7251 * cgraph.h (struct cgraph_local_info): ...here
7252 * ipa-cp.c (determine_versionability): Use the new versionable flag.
7253 (determine_versionability): Likewise.
7254 (ipcp_versionable_function_p): Likewise.
7255 (ipcp_generate_summary): Likewise.
7256 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
7257 versionable flag.
7258 (compute_inline_parameters): Do not clear the versionable flag.
7259 (inline_read_section): Do not stream the versionable flag.
7260 (inline_write_summary): Likewise.
7261 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
7262 (input_overwrite_node): Likewise.
7263
7264 2011-09-06 Richard Guenther <rguenther@suse.de>
7265
7266 PR tree-optimization/48149
7267 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
7268 (vn_valueize): Move earlier.
7269 (valueize_expr): Use vn_valueize.
7270 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
7271 operands.
7272 (simplify_unary_expression): Simplify.
7273
7274 2011-09-06 Richard Guenther <rguenther@suse.de>
7275
7276 PR tree-optimization/48317
7277 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
7278 trailing array.
7279 (sizeof_vn_nary_op): New inline function.
7280 (vn_nary_op_lookup_pieces): Adjust.
7281 (vn_nary_op_insert_pieces): Likewise.
7282 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
7283 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
7284 any number of operands.
7285 (vn_nary_length_from_stmt): New function.
7286 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
7287 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
7288 sized temporary.
7289 (vn_nary_op_lookup): Likewise.
7290 (vn_nary_op_lookup_stmt): Likewise.
7291 (vn_nary_op_insert_into): Likewise.
7292 (vn_nary_op_insert_stmt): Likewise.
7293 (visit_use): Handle CONSTRUCTOR as nary.
7294 * tree-ssa-pre.c (phi_translate_1): Adjust.
7295 (create_expression_by_pieces): Likewise.
7296 (compute_avail): Likewise.
7297
7298 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
7299
7300 * config/arm/arm.c (arm_preferred_simd_mode): Check
7301 TARGET_NEON_VECTORIZE_DOUBLE instead of
7302 TARGET_NEON_VECTORIZE_QUAD.
7303 (arm_autovectorize_vector_sizes): Likewise.
7304 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
7305 mask of mvectorize-with-neon-double. Add RejectNegative.
7306 (mvectorize-with-neon-double): New.
7307
7308 2011-09-06 Richard Guenther <rguenther@suse.de>
7309
7310 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
7311
7312 2011-09-06 Tom de Vries <tom@codesourcery.com>
7313
7314 * recog.c (asm_labels_ok): New function.
7315 (check_asm_operands): Use asm_labels_ok.
7316
7317 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
7318
7319 PR target/49606
7320 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
7321 (PMODE_INSN): New macro.
7322 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
7323 (mips_got_load, mips_expand_synci_loop): Likewise.
7324 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
7325 cprestore patterns.
7326 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
7327 copygp_mips16 patterns.
7328 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
7329 and use_cprestore patterns.
7330 (mips_override_options): Check for incompatible -mabi and -mlong
7331 combinations.
7332 * config/mips/mips.md (unspec_got<mode>): Rename to...
7333 (unspec_got_<mode>): ...this.
7334 (copygp_mips16): Use the Pmode iterator.
7335 (potential_cprestore, cprestore, use_cprestore): Likewise.
7336 (clear_cache, indirect_jump): Use PMODE_INSN.
7337 (indirect_jump<mode>): Rename to...
7338 (indirect_jump_<mode>): ...this.
7339 (tablejump): Use PMODE_INSN.
7340 (tablejump<mode>): Rename to...
7341 (tablejump_<mode>): ...this.
7342 (exception_receiver): Handle restore_gp_si and restore_gp_di.
7343 (restore_gp): Use the Pmode iterator.
7344 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
7345 PMODE_INSN.
7346
7347 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
7348
7349 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
7350 Fix the type of the BIT_AND_EXPR.
7351
7352 2011-09-05 David S. Miller <davem@davemloft.net>
7353
7354 * config.host: Add driver-sparc.o and sparc/x-sparc on
7355 native sparc*-*-linux* builds.
7356 * config/sparc/driver-sparc.c: Correct Linux strings.
7357 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
7358 * config/sparc/linux64.h: Likewise.
7359 * doc/invoke.texi: Document that Linux also supports
7360 -mcpu=native and -mtune=native on sparc.
7361
7362 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
7363 PROCESSOR_NIAGARA4): New.
7364 * config/sparc/sparc.opt: Handle new processor types.
7365 * config/sparc/sparc.md: Add to "cpu" attribute.
7366 * config/sparc/sparc.h (TARGET_CPU_niagara3,
7367 TARGET_CPU_niagara4): New, treat as niagara2.
7368 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
7369 * config/sparc/sol2.h: Likewise.
7370 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
7371 * config/sparc/sparc.c (sparc_option_override): Add
7372 niagara3 and niagara4 handling.
7373 (sparc32_initialize_trampoline): Likewise.
7374 (sparc64_initialize_trampoline): Likewise.
7375 (sparc_use_sched_lookahead): Likewise.
7376 (sparc_issue_rate): Likewise.
7377 (sparc_register_move_cost): Likewise.
7378 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
7379 and niagara4 as appropriate.
7380 * doc/invoke.texi: Document new processor types.
7381 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
7382 and --with-tune options.
7383
7384 * config/sparc/sol2-64.h: Move ...
7385 * config/sparc/default-64.h: ... to here. Update comment.
7386 * config.gcc: Update Solaris sparc to use default-64.h, also
7387 prefix this header into the list on sparc64-*-linux.
7388 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
7389 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
7390 to MASK_HARD_QUAD.
7391
7392 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
7393
7394 PR target/50289
7395 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
7396 that contain global register variable.
7397
7398 2011-09-05 Richard Guenther <rguenther@suse.de>
7399
7400 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
7401
7402 2011-09-05 Richard Guenther <rguenther@suse.de>
7403
7404 * stor-layout.c (layout_type): Use size_binop for array size
7405 calculations.
7406
7407 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
7408
7409 * config/avr/avr.h (progmem_section): Remove Declaration.
7410 * config/avr/avr.c (progmem_section): Make static and rename to
7411 progmem_swtable_section.
7412 (avr_output_addr_vec_elt): No need to switch sections.
7413 (avr_asm_init_sections): Use output_section_asm_op as section
7414 callback for progmem_swtable_section.
7415 (avr_output_progmem_section_asm_op): Remove Function.
7416 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
7417 (avr_asm_function_rodata_section): New static Function.
7418 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
7419 alignment 2**1 for jump tables.
7420
7421 2011-09-04 Jan Hubicka <jh@suse.cz>
7422
7423 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
7424 parameter is SSA name.
7425
7426 2011-09-04 Richard Guenther <rguenther@suse.de>
7427
7428 Revert
7429 2011-08-31 Richard Guenther <rguenther@suse.de>
7430
7431 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7432 special-casing.
7433
7434 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
7435
7436 PR debug/49901
7437 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
7438
7439 2011-09-04 Jakub Jelinek <jakub@redhat.com>
7440 Ira Rosen <ira.rosen@linaro.org>
7441
7442 PR tree-optimization/50208
7443 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
7444 argument. Check that def_stmt is inside the loop.
7445 (vect_recog_widen_mult_pattern): Update calls to
7446 vect_handle_widen_mult_by_cons.
7447 (vect_operation_fits_smaller_type): Check that def_stmt is
7448 inside the loop.
7449
7450 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
7451
7452 * tree-vectorizer.c (vect_print_dump_info): Print line
7453 number when dumping to a file.
7454 (vectorize_loops): Add new messages to dump file.
7455
7456 2011-09-03 Martin Jambor <mjambor@suse.cz>
7457
7458 * ipa-prop.h (ipa_jump_func_t): New typedef.
7459 (struct ipa_edge_args): Removed field argument_count, field
7460 jump_functions turned into a vector.
7461 (ipa_set_cs_argument_count): Removed.
7462 (ipa_get_cs_argument_count): Updated to work on vectors.
7463 (ipa_get_ith_jump_func): Likewise.
7464 * ipa-prop.c (ipa_count_arguments): Removed.
7465 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
7466 jump functions. Update caller.
7467 (compute_pass_through_member_ptrs): Likewise.
7468 (compute_cst_member_ptr_arguments): Likewise.
7469 (ipa_compute_jump_functions_for_edge): Get number of arguments from
7470 the statement, allocate vector.
7471 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
7472 (duplicate_ipa_jump_func_array): Removed.
7473 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
7474 (ipa_read_node_info): Allocate vector.
7475
7476 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7477
7478 PR middle-end/50232
7479 * config/pa/pa.md (return): Define "return" insn pattern.
7480 (epilogue): Use it when no epilogue is needed.
7481 * config/pa/pa.c (pa_can_use_return_insn): New function.
7482 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
7483
7484 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
7485
7486 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
7487 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
7488 Force at least BITS_PER_UNIT alignment on the new variable.
7489
7490 2011-09-02 Gary Funck <gary@intrepid.com>
7491
7492 * opts.c (print_specific_help): Fix off-by-one compare in
7493 assertion check.
7494 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7495 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
7496 Increase by +5 to allow for more languages.
7497 * optc-gen.awk: Generate #if that ensures that the number of
7498 languages is within the implementation-defined limit.
7499
7500 2011-09-02 Michael Matz <matz@suse.de>
7501
7502 PR middle-end/50260
7503 * ipa-split.c (split_function): Call add_referenced_var.
7504
7505 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
7506 (cond_if_else_store_replacement_1): Ditto.
7507 * tree-ssa-pre.c (get_representative_for): Ditto.
7508 (create_expression_by_pieces): Ditto.
7509 (insert_into_preds_of_block): Ditto.
7510 * tree-sra.c (create_access_replacement): Ditto.
7511 (get_replaced_param_substitute): Ditto.
7512
7513 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
7514
7515 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
7516 automata_options.
7517 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
7518 (l1w, s1w, l2w, s2w): Define in the main automaton.
7519 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
7520 units.
7521 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
7522 (c6x_unit_names): Add the new units.
7523 (c6x_unit_codes): New static array.
7524 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
7525 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
7526 UNIT_QID_SIDE_OFFSET): New macros.
7527 (RESERVATION_S2): Adjust value.
7528 (c6x_option_override): Compute c6x_unit_codes.
7529 (assign_reservations): Take the unit_mask of the last instruction
7530 into account. Detect floating point reservations by looking for
7531 the new units. Don't assign reservations if the field is already
7532 nonzero.
7533 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
7534 (init_sched_state): Initialize it.
7535 (c6x_clear_sched_context): Free it.
7536 (insn_set_clock): Clear reservation.
7537 (prev_cycle_state): New static variable.
7538 (c6x_init_sched_context): Save it.
7539 (c6x_sched_init): Allocate space for it and clear it.
7540 (c6x_sched_dfa_pre_cycle_insn): New static function.
7541 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
7542 (c6x_variable_issue): Only record units in the unit_mask that
7543 were not set at the start of the cycle.
7544 (c6x_variable_issue): Compute and store the unit_mask from the
7545 current state.
7546 (reorg_split_calls): Ensure the new information remains correct.
7547 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
7548 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
7549 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
7550 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
7551 Add special reservations.
7552 * config/c6x/c6x-sched.md: Regenerate.
7553
7554 2011-09-02 Martin Jambor <mjambor@suse.cz>
7555
7556 * ipa-prop.h (ipa_node_params): Removed fields
7557 called_with_var_arguments and node_versionable.
7558 (ipa_set_called_with_variable_arg): Removed.
7559 (ipa_is_called_with_var_arguments): Likewise.
7560 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
7561 (determine_versionability): Do not check for type attributes and va
7562 builtins. Record versionability into inline summary.
7563 (initialize_node_lattices): Do not check
7564 ipa_is_called_with_var_arguments.
7565 (propagate_constants_accross_call): Likewise, ignore arguments we do
7566 not have PARM_DECLs for, set variable flag for parameters that were
7567 not passed a value.
7568 (create_specialized_node): Dump info that we cannot change signature.
7569 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
7570 number of arguments.
7571 (ipa_make_edge_direct_to_target): Likewise.
7572 (ipa_update_after_lto_read): Likewise.
7573 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
7574 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
7575 they were remapped.
7576
7577 2011-09-02 Richard Guenther <rguenther@suse.de>
7578
7579 PR tree-optimization/27460
7580 PR middle-end/29269
7581 * doc/md.texi (vcond): Document.
7582 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
7583 optab with two modes.
7584 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
7585 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
7586 (vcond_optab): Adjust.
7587 (vcondu_optab): Likewise.
7588 (expand_vec_cond_expr_p): Adjust prototype.
7589 * optabs.c (get_vcond_icode): Adjust.
7590 (expand_vec_cond_expr_p): Likewise.
7591 (expand_vec_cond_expr): Likewise.
7592 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
7593 vector type.
7594 (vectorizable_condition): Allow differing types for comparison
7595 and result.
7596 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
7597 for the comparison.
7598 * config/i386/sse.md (vcond<mode>): Split to
7599 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
7600 vcond<V_128:mode><VI124_128:mode> and
7601 vcondu<V_128:mode><VI124_128:mode>.
7602 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
7603 (vconduv2di): Likewise.
7604 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
7605 (vcondu<mode>): Likewise.
7606 * config/ia64/vect.md (vcond<mode>): Likewise.
7607 (vcondu<mode>): Likewise.
7608 (vcondv2sf): Likewise.
7609 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
7610 * config/rs6000/paired.md (vcondv2sf): Likewise.
7611 * config/rs6000/vector.md (vcond<mode>): Likewise.
7612 (vcondu<mode>): Likewise.
7613 * config/spu/spu.md (vcond<mode>): Likewise.
7614 (vcondu<mode>): Likewise.
7615
7616 2011-09-02 Richard Guenther <rguenther@suse.de>
7617
7618 * pretty-print.h (pp_unsigned_wide_integer): New.
7619 * tree-pretty-print.c (dump_generic_node): Print unsigned
7620 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
7621
7622 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
7623
7624 PR target/49987
7625 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
7626 valid CONST_VECTOR operands.
7627 (rs6000_expand_vector_init): Likewise.
7628
7629 2011-09-02 Martin Jambor <mjambor@suse.cz>
7630
7631 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
7632 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
7633 BINFO_VTABLE. Parameter delta removed, all callers updated.
7634 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
7635 BINFO_VTABLE.
7636 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
7637 all calls.
7638 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
7639 handling of thunk_delta.
7640 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
7641 (devirtualization_time_bonus): Do not handle thunk deltas.
7642 (ipcp_discover_new_direct_edges): Likewise.
7643 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7644 (try_make_edge_direct_simple_call): Likewise.
7645 (try_make_edge_direct_virtual_call): Likewise.
7646 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
7647 parameter set as unused.
7648 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
7649 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
7650 parameter set as unused.
7651 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
7652 (input_edge_opt_summary): Likewise.
7653 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
7654 BINFO_VIRTUALS at all.
7655 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
7656
7657 2011-09-02 Richard Guenther <rguenther@suse.de>
7658
7659 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
7660 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
7661
7662 2011-08-31 Richard Guenther <rguenther@suse.de>
7663
7664 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
7665 handling here, from ...
7666 (expand_expr_real_1): ... here.
7667 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
7668 and VEC_COND_EXPR.
7669 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
7670 a GIMPLE_TERNARY_RHS.
7671 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
7672 and VEC_COND_EXPR here ...
7673 (verify_gimple_assign_single): ... not here.
7674 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
7675 * tree-object-size.c (cond_expr_object_size): Adjust.
7676 (collect_object_sizes_for): Likewise.
7677 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
7678 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
7679 (ssa_forward_propagate_and_combine): Adjust.
7680 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
7681 as ternary.
7682 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
7683 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
7684 * tree-vect-stmt.c (vectorizable_condition): Likewise.
7685 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
7686 (extract_range_from_assignment): Likewise.
7687
7688 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
7689
7690 * config/i386/i386.md: Use (match_test ...) for attribute tests.
7691 * config/i386/mmx.md: Likewise.
7692 * config/i386/sse.md: Likewise.
7693 * config/i386/predicates.md (call_insn_operand): Use
7694 (not (match_test "...")) instead of (match_test "!...")
7695 * config/i386/constraints.md (w): Likewise.
7696
7697 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
7698
7699 * doc/md.texi: Describe the use of match_tests in attribute tests.
7700 * rtl.def (MATCH_TEST): Update commentary.
7701 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
7702 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
7703
7704 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
7705
7706 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
7707 (attr_string): Use copy_md_ptr_loc.
7708
7709 2011-08-31 Martin Jambor <mjambor@suse.cz>
7710
7711 PR middle-end/49886
7712 * ipa-inline-analysis.c (compute_inline_parameters): Set
7713 can_change_signature of noes with typde attributes.
7714 * ipa-split.c (split_function): Do not skip any arguments if
7715 can_change_signature is set.
7716
7717 2011-08-31 Martin Jambor <mjambor@suse.cz>
7718
7719 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
7720 check removed.
7721
7722 2011-08-31 Richard Guenther <rguenther@suse.de>
7723
7724 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
7725 special-casing.
7726
7727 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
7728
7729 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
7730
7731 2011-08-31 Tom de Vries <tom@codesourcery.com>
7732
7733 PR middle-end/43513
7734 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
7735 * tree-ssa-ccp.c (params.h): Include.
7736 (fold_builtin_alloca_for_var): New function.
7737 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
7738
7739 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
7740
7741 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
7742 Handle FMA option.
7743
7744 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
7745
7746 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
7747 b3 and b4 unsigned.
7748
7749 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
7750
7751 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
7752 when code is SET.
7753
7754 2011-08-30 Richard Guenther <rguenther@suse.de>
7755
7756 PR middle-end/48571
7757 * gimple.h (maybe_fold_offset_to_address): Remove.
7758 (maybe_fold_offset_to_reference): Likewise.
7759 (maybe_fold_stmt_addition): Likewise.
7760 (may_propagate_address_into_dereference): Likewise.
7761 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
7762 array references.
7763 * gimple-fold.c (canonicalize_constructor_val): Likewise.
7764 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
7765 addresses instead.
7766 (may_propagate_address_into_dereference): Remove.
7767 (maybe_fold_offset_to_array_ref): Likewise.
7768 (maybe_fold_offset_to_reference): Likewise.
7769 (maybe_fold_offset_to_address): Likewise.
7770 (maybe_fold_stmt_addition): Likewise.
7771 (fold_gimple_assign): Do not reconstruct array references but
7772 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
7773 MEM_REF addresses.
7774 (gimple_fold_stmt_to_constant_1): Likewise.
7775 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7776 * gimplify.c (gimplify_conversion): Likewise.
7777 (gimplify_expr): Likewise.
7778
7779 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
7780
7781 * config/i386/fmaintrin.h: New.
7782 * config.gcc: Add fmaintrin.h.
7783 * config/i386/i386.c
7784 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
7785 <IX86_BUILTIN_VFMADDSD3>: Likewise.
7786 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
7787 (*fmai_fmadd_<mode>): Likewise.
7788 (*fmai_fmsub_<mode>): Likewise.
7789 (*fmai_fnmadd_<mode>): Likewise.
7790 (*fmai_fnmsub_<mode>): Likewise.
7791 * config/i386/immintrin.h: Add fmaintrin.h.
7792
7793 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
7794
7795 * genautomata.c (NO_COMB_OPTION): New macro.
7796 (no_comb_flag): New static variable.
7797 (gen_automata_option): Handle NO_COMB_OPTION.
7798 (comb_vect_p): False if no_comb_flag.
7799 (add_vect): Move computation of min/max values. Return early if
7800 no_comb_flag.
7801 * doc/md.texi (automata_option): Document no-comb-vect.
7802
7803 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
7804 "__x86.get_pc_thunk".
7805
7806 * bb-reorder.c (insert_section_boundary_note): Only do it if
7807 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
7808
7809 2011-08-30 Christian Bruel <christian.bruel@st.com>
7810
7811 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
7812 flag_profile_use.
7813
7814 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7815
7816 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
7817 to off. Document switch.
7818 * doc/invoke.texi (-msave-toc-indirect): Ditto.
7819
7820 2011-08-29 Jakub Jelinek <jakub@redhat.com>
7821
7822 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
7823 conditionals and comments inside macro arguments.
7824
7825 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
7826 Richard Guenther <rguenther@suse.de>
7827
7828 * tree.h (constant_boolean_node): Adjust prototype.
7829 * fold-const.c (fold_convert_loc): Move aggregate conversion
7830 leeway down.
7831 (constant_boolean_node): Make value parameter boolean, add
7832 vector type handling.
7833 (fold_unary_loc): Use constant_boolean_node.
7834 (fold_binary_loc): Preserve types properly when folding
7835 COMPLEX_EXPR <__real x, __imag x>.
7836 * gimplify.c (gimplify_expr): Handle vector comparison.
7837 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
7838 comparison.
7839 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
7840 comparisons.
7841
7842 2011-08-29 Jakub Jelinek <jakub@redhat.com>
7843
7844 PR middle-end/48722
7845 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
7846 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
7847 (verify_rtl_sharing): Likewise and verify_rtx_sharing
7848 in there too.
7849 (unshare_all_rtl_in_chain): For CALL_INSNs
7850 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
7851
7852 2011-08-29 Richard Guenther <rguenther@suse.de>
7853
7854 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
7855 on the built ADDR_EXPR.
7856
7857 2011-08-29 Jakub Jelinek <jakub@redhat.com>
7858
7859 PR debug/50215
7860 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
7861 before adding ENTRY_VALUE to val->locs.
7862
7863 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
7864
7865 PR bootstrap/50218
7866 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
7867 comp.
7868
7869 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
7870
7871 * doc/rtl.texi (simple_return): Document.
7872 (parallel, PATTERN): Here too.
7873 * doc/md.texi (return): Mention it's allowed to expand to simple_return
7874 in some cases.
7875 (simple_return): Document standard pattern.
7876 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
7877 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
7878 * reorg.c (function_return_label, function_simple_return_label):
7879 New static variables, replacing...
7880 (end_of_function_label): ... this.
7881 (simplejump_or_return_p): New static function.
7882 (optimize_skip, steal_delay_list_from_fallthrough,
7883 fill_slots_from_thread): Use it.
7884 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
7885 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
7886 (find_end_label): Take a new arg which is one of the two return
7887 rtxs. Depending on which, set either function_return_label or
7888 function_simple_return_label. All callers changed.
7889 (make_return_insns): Make both kinds.
7890 (dbr_schedule): Adjust for two kinds of end labels.
7891 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
7892 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
7893 (gen_expand, gen_split): Use ANY_RETURN_P.
7894 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
7895 * rtl.def (SIMPLE_RETURN): New code.
7896 * ifcvt.c (find_if_case_1): Be more careful about
7897 redirecting jumps to the EXIT_BLOCK.
7898 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
7899 returnjump_p_1): Handle SIMPLE_RETURNs.
7900 * print-rtl.c (print_rtx): Likewise.
7901 * rtl.c (copy_rtx): Likewise.
7902 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
7903 * combine.c (simplify_set): Likewise.
7904 * resource.c (find_dead_or_set_registers, mark_set_resources):
7905 Likewise.
7906 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
7907 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
7908 (init_emit_regs): Initialize simple_return_rtx.
7909 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
7910 force_nonfallthru_and_redirect.
7911 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
7912 (GR_SIMPLE_RETURN): New enum value.
7913 (simple_return_rtx): New macro.
7914 * basic-block.h (force_nonfallthru_and_redirect): Adjust
7915 declaration.
7916 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
7917 argument. All callers changed. Be careful about what kinds of
7918 returnjumps to generate.
7919 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
7920 ix86_pad_short_function): Likewise.
7921 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
7922 of return.
7923 * config/mips/mips.md (any_return): New code_iterator.
7924 (optab): Add cases for return and simple_return.
7925 (return): Expand to a simple_return.
7926 (simple_return): New pattern.
7927 (*<optab>, *<optab>_internal for any_return): New patterns.
7928 (return_internal): Remove.
7929 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
7930 a simple_return_internal.
7931
7932 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
7933
7934 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
7935 (vec_extract_lo_<mode>): Prevent both operands in memory.
7936 (vec_extract_lo_v16hi): Ditto.
7937 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
7938
7939 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
7940
7941 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
7942 (*sse2_mulv4si3): Ditto.
7943 (mulv2di3): Ditto.
7944 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
7945 notes to REG_EQUAL.
7946
7947 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
7948
7949 PR target/50202
7950 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
7951 when all outputs are unused.
7952 (sse4_2_pcmpistr): Ditto.
7953
7954 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
7955
7956 * config/i386/i386.md (round<mode>2): New expander.
7957 * config/i386/i386.c (enum ix86_builtins): Add
7958 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
7959 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
7960 descriptions.
7961 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
7962 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
7963
7964 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
7965
7966 PR middle-end/50083
7967 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
7968 only when TARGET_C99_FUNCTIONS.
7969 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
7970 <BUILT_IN_RINT{,F,L}>: Ditto.
7971
7972 2011-08-26 Michael Matz <matz@suse.de>
7973 Jakub Jelinek <jakub@redhat.com>
7974
7975 PR lto/50165
7976 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
7977 don't call strlen twice, use memcpy.
7978
7979 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
7980
7981 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
7982 * config/i386/bmiintrin.h: Likewise.
7983 * config/i386/lzcntintrin.h: Likewise.
7984
7985 * config/i386/immintrin.h: Include <lzcntintrin.h>,
7986 <bmiintrin.h> and <bmi2intrin.h>.
7987
7988 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7989
7990 PR target/50166
7991 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
7992 * configure: Regenerate.
7993
7994 2011-08-26 Jakub Jelinek <jakub@redhat.com>
7995
7996 PR c/50179
7997 * c-typeck.c (c_process_expr_stmt): Skip over nops and
7998 call mark_exp_read even if exprv is ADDR_EXPR.
7999
8000 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
8001
8002 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
8003 to df_set_dead_notes_for_mw.
8004
8005 2011-08-26 Richard Guenther <rguenther@suse.de>
8006
8007 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
8008
8009 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
8010 Tom de Vries <tom@codesourcery.com>
8011
8012 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
8013 (struct ivopts_data): Add loop_single_exit_p field.
8014 (niter_for_exit): Change parameter desc_p into return value. Return
8015 desc if desc->may_be_zero. Free desc if unused.
8016 (niter_for_single_dom_exit): Change return type.
8017 (find_induction_variables): Handle changed return type of
8018 niter_for_single_dom_exit. Dump may_be_zero.
8019 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
8020 (set_use_iv_cost): Add and handle comp parameter.
8021 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
8022 comp argument to set_use_iv_cost.
8023 (strip_wrap_conserving_type_conversions, expr_equal_p)
8024 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
8025 (may_eliminate_iv): Add comp parameter. Handle new return type of
8026 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
8027 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
8028 and may_eliminate_iv.
8029 (rewrite_use_compare): Move call to iv_elimination_compare to ...
8030 (may_eliminate_iv): Here.
8031 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
8032
8033 2011-08-26 Tom de Vries <tom@codesourcery.com>
8034
8035 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
8036 accessing TREE_TYPE.
8037
8038 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
8039
8040 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
8041 (*ior_scc_scc_cmp): Likewise
8042 (*and_scc_scc): Likewise.
8043 (*and_scc_scc_cmp): Likewise.
8044 (*and_scc_scc_nodom): Likewise.
8045 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
8046
8047 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8048
8049 * rtlanal.c (nonzero_bits1): Handle CLRSB.
8050
8051 2011-08-26 Richard Guenther <rguenther@suse.de>
8052
8053 * expr.c (string_constant): Handle &MEM_REF.
8054
8055 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
8056
8057 * config/arm/arm.c (struct four_ints): New type.
8058 (count_insns_for_constant): Delete function.
8059 (find_best_start): Delete function.
8060 (optimal_immediate_sequence): New function.
8061 (optimal_immediate_sequence_1): New function.
8062 (arm_gen_constant): Move constant splitting code to
8063 optimal_immediate_sequence.
8064 Rewrite constant negation/invertion code.
8065
8066 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
8067
8068 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
8069 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
8070 Remove prototype. Remove static function type.
8071 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
8072 Add arch attribute.
8073 * config/arm/constraints.md (Pj, PJ): New constraints.
8074
8075 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8076
8077 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
8078 ("cortex_a9_multiply_long"): New and use above. Handle all
8079 long multiply cases.
8080 ("cortex_a9_multiply"): Handle smmul and smmulr.
8081 ("cortex_a9_mac"): Handle smmla.
8082
8083 2011-08-25 Richard Henderson <rth@redhat.com>
8084
8085 PR 50132
8086 PR 49864
8087 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
8088 non-constant stack adjutment.
8089 * expr.c (find_args_size_adjust): Break out from ...
8090 (fixup_args_size_notes): ... here.
8091 * rtl.h (find_args_size_adjust): Declare.
8092
8093 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
8094
8095 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
8096 sse4 and sse4_noavx.
8097 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
8098 (*pushdf_rex64): Change Y2 register constraint to x.
8099 (*movdf_internal_rex64): Ditto.
8100 (*zero_extendsidi2_rex64): Ditto.
8101 (*movdi_internal): Change Y2 register constraint to x
8102 and update "isa" attribute.
8103 (*pushdf): Ditto.
8104 (*movdf internal): Ditto.
8105 (zero_extendsidi2_1): Ditto.
8106 (*truncdfdf_mixed): Ditto.
8107 (*truncxfdf2_mixed): Ditto.
8108 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
8109 register constraint to x.
8110 (*movv2sf_internal_rex64): Ditto.
8111 (*mov<mode>_internal): Change Y2 register constraint to x
8112 and add "isa" attribute.
8113 (*movv2sf_internal): Ditto.
8114 (*vec_extractv2si_1): Ditto.
8115 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
8116 constraints to x and update "isa" attribute.
8117 (*vec_interleave_highv2df): Change Y3 registerconstraint
8118 to x and update "isa" attribute.
8119 (*vec_interleave_lowv2df): Ditto.
8120 (*vec_concatv2df): Change Y2 register constraint to x and
8121 update "isa" attribute.
8122 (sse2_loadld): Ditto.
8123 (*vec_extractv2di_1): Ditto.
8124 (*vec_dupv4si): Ditto.
8125 (*vec_dupv2di): Ditto.
8126 (*vec_concatv4si): Ditto.
8127 (vec_concatv2di): Ditto.
8128 * config/i386/constraints.md (Y2): Remove.
8129 (Y3): Ditto.
8130 (Y4): Ditto.
8131
8132 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
8133
8134 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
8135 dump_def_use_chain): Don't declare.
8136 (mark_conflict, create_new_chain): Move before users.
8137 (regrename_optimize): Move to near end of file.
8138
8139 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
8140
8141 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
8142 (secondary_input_reload_class): Remove Prototype.
8143 * config/avr/avr.c (byte_immediate_operand): Remove Function.
8144 * config/avr/avr.md (setmemhi): Use u8_operand.
8145 (strlenhi): Use const0_rtx for comparison.
8146 * config/avr/avr.h (avr_reg_order): Remove Declaration.
8147
8148 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
8149
8150 * config/avr/avr.c (reg_class_tab): Make local to
8151 avr_regno_reg_class. Return smallest register class available.
8152
8153 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
8154
8155 * config/avr/avr.c (STR_PREFIX_P): New Define.
8156 (avr_asm_declare_function_name): Use it.
8157 (avr_asm_named_section): Use it.
8158 (avr_section_type_flags): Use it.
8159
8160 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
8161
8162 * doc/md.texi (automata_option): Document collapse-ndfa.
8163 * genautomata.c (COLLAPSE_OPTION): New macro.
8164 (collapse_flag): New static variable.
8165 (struct description): New member normal_decls_num.
8166 (struct automaton): New members advance_ainsn and collapse_ainsn.
8167 (gen_automata_option): Check for COLLAPSE_OPTION.
8168 (collapse_ndfa_insn_decl): New static variable.
8169 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
8170 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
8171 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
8172 necessary. Use normal_decls_num rather than decls_num, remove
8173 test for special decls.
8174 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
8175 (make_automaton); Likewise. Use the new advance_cycle_insn member
8176 of struct automaton.
8177 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
8178 is set.
8179 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
8180 transition. Create the necessary transitions for it.
8181 (create_ainsns): Return void. Take an automaton_t argument, and
8182 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
8183 callers changed.
8184 (COLLAPSE_NDFA_VALUE_NAME): New macro.
8185 (output_tables): Output code to define it.
8186 (output_internal_insn_code_evaluation): Output code to accept
8187 const0_rtx as collapse-ndfa transition.
8188 (output_default_latencies, output_print_reservation_func,
8189 output_print_description): Reorganize loops to use normal_decls_num
8190 as loop bound; remove special case for advance_cycle_insn_decl.
8191 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
8192 (check_automata_insn_issues): Check for collapse_ainsn.
8193 (expand_automate): Allocate sufficient space. Initialize
8194 normal_decls_num.
8195
8196 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
8197
8198 * config/avr/avr.md: Fix indentation from r177991.
8199
8200 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
8201
8202 * regrename.c (struct du_head): Remove member terminated.
8203 (create_new_chain): Don't initialize it.
8204 (scan_rtx_reg): Don't set or test it, test the open_chains_set
8205 bitmap instead.
8206 (tick, this_tick): New global variables, moved out of
8207 regrename_optimize.
8208 (current_id, open_chains, closed_chains, open_chains_set,
8209 live_in_chains, live_hard_regs): Reorder declarations.
8210 (dump_def_use_chain): Move function earlier in the file.
8211 (rename_chains): New static function, broken out of
8212 regrename_optimize.
8213 (regrename_optimize): Use it. Remove #if 0'ed code.
8214
8215 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8216
8217 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
8218
8219 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
8220
8221 PR target/50172
8222 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
8223
8224 2011-08-24 Richard Guenther <rguenther@suse.de>
8225
8226 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
8227 ref in the basic-block case. Move stripping array-refs
8228 to the place we create an access-function for it. Remove
8229 bogus stripping down a MEM_REF to its base.
8230
8231 2011-08-24 Richard Guenther <rguenther@suse.de>
8232
8233 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
8234 with -fno-strict-overflow.
8235
8236 2011-08-24 Richard Guenther <rguenther@suse.de>
8237
8238 * tree-vectorizer.c (vect_print_dump_info): Avoid the
8239 file and location clutter when dumping to dump files.
8240
8241 2011-08-24 Simon Baldwin <simonb@google.com>
8242
8243 * gengtype-state.c (write_state): Remove timestamped header line.
8244
8245 2011-08-24 Joseph Myers <joseph@codesourcery.com>
8246
8247 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
8248 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
8249 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
8250 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
8251 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
8252 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
8253 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
8254 rules.
8255 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
8256
8257 2011-08-24 Joseph Myers <joseph@codesourcery.com>
8258
8259 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
8260
8261 2011-08-24 Richard Guenther <rguenther@suse.de>
8262
8263 PR tree-optimization/50067
8264 * tree-data-ref.c (dr_analyze_indices): Do not add an access
8265 function for a MEM_REF base that has no evolution in the loop
8266 nest or that is not analyzable.
8267
8268 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
8269
8270 * ira.c (ira_init_register_move_cost): Check small subclasses
8271 through ira_reg_class_max_nregs and ira_available_class_regs.
8272
8273 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
8274
8275 * config/i386/constraints.md (Yp): New register constraint.
8276 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
8277 Yp register constraint.
8278 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
8279 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
8280 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
8281
8282 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
8283
8284 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
8285
8286 2011-08-23 Mark Heffernan <meheff@google.com>
8287
8288 PR middle-end/38509
8289 * common.opt (Wfree-nonheap-object): New option.
8290 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
8291 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
8292 to warning.
8293 (expand_builtin): Make warning conditional.
8294
8295 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
8296
8297 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
8298 (length_immediate): Handle imulx, ishiftx and rotatex.
8299 (imm_disp): Ditto.
8300 (isa): Add bmi2.
8301 (enabled): Handle bmi2.
8302 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
8303 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
8304 (*bmi2_umulditi3_1): New insn pattern.
8305 (*bmi2_umulsidi3_1): Ditto.
8306 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
8307 (*bmi2_ashl<mode>3_1): New insn pattern.
8308 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
8309 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
8310 (*bmi2_ashlsi3_1_zext): New insn pattern.
8311 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
8312 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
8313 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
8314 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
8315 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
8316 flags dependency.
8317 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
8318 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
8319 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
8320 flags dependency.
8321 (*bmi2_rorx<mode>3_1): New insn pattern.
8322 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
8323 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
8324 (*rotatert<mode>3_1 splitter): Ditto.
8325 (*bmi2_rorxsi3_1_zext): New insn pattern.
8326 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
8327 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
8328 (*rotatertsi3_1_zext splitter): Ditto.
8329
8330 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
8331
8332 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
8333 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
8334 (ix86_handle_option): Handle OPT_mbmi2 case.
8335 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
8336 (x86_64-*-*): Likewise.
8337 * config/i386/bmi2intrin.h: New file.
8338 * config/i386/cpuid.h (bit_BMI2): New.
8339 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8340 BMI2 feature.
8341 * config/i386/i386-c.c (ix86_target_macros_internal):
8342 Conditionally define __BMI2__.
8343 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
8344 Handle BMI2 option.
8345 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
8346 (print_reg): New code.
8347 (ix86_print_operand): Likewise.
8348 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8349 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8350 IX86_BUILTIN_PEXT64.
8351 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
8352 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
8353 IX86_BUILTIN_PEXT64.
8354 * config/i386/i386.h (TARGET_BMI2): New.
8355 * config/i386/i386.md (UNSPEC_PDEP): New.
8356 (UNSPEC_PEXT): Likewise.
8357 (*bmi2_bzhi_<mode>3): Likewise.
8358 (*bmi2_pdep_<mode>3): Likewise.
8359 (*bmi2_pext_<mode>3): Likewise.
8360 * config/i386/i386.opt (mbmi2): New.
8361 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
8362 is defined.
8363 * doc/extend.texi: Document BMI2 built-in functions.
8364 * doc/invoke.texi: Document -mbmi2.
8365
8366 2011-08-23 Jakub Jelinek <jakub@redhat.com>
8367
8368 PR middle-end/50161
8369 * simplify-rtx.c (simplify_const_unary_operation): If
8370 op is CONST_INT, don't look at op_mode, but use instead mode.
8371 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
8372 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
8373 operation and TRUNCATE/ZERO_EXTEND if needed.
8374 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
8375 Document that operand mode must be same as operation mode,
8376 or VOIDmode.
8377 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
8378 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
8379 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
8380 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
8381 use the mode of operand for the operation and add truncate
8382 or zero_extend around if needed.
8383 * config/c6x/c6x.md (ctzdi2): Likewise.
8384 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
8385
8386 2011-08-12 Michael Matz <matz@suse.de>
8387
8388 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
8389 (gimple_expand_cfg): Merge alignment info for coalesced pointer
8390 SSA names.
8391
8392 2011-08-23 Richard Guenther <rguenther@suse.de>
8393
8394 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
8395 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
8396 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
8397 from ...
8398 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
8399 (mem_refs_may_alias_p): Adjust.
8400 * tree-data-ref.h (dr_may_alias_p): Adjust.
8401 * tree-data-ref.c: Include tree-affine.h.
8402 (dr_analyze_indices): Do nothing for the non-loop case.
8403 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
8404 more cases in the non-loop case.
8405 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
8406 calls to dr_may_alias_p.
8407 (write_alias_graph_to_ascii_ecc): Likewise.
8408 (write_alias_graph_to_ascii_dot): Likewise.
8409 (build_alias_set_optimal_p): Likewise.
8410
8411 2011-08-23 Richard Guenther <rguenther@suse.de>
8412
8413 PR tree-optimization/50162
8414 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
8415
8416 2011-08-23 Richard Guenther <rguenther@suse.de>
8417
8418 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
8419 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
8420 (create_data_ref): Also dump access functions for the created data-ref.
8421
8422 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
8423 Kirill Yukhin <kirill.yukhin@intel.com>
8424
8425 PR target/50155
8426 * config/i386/sse.md (VI_AVX2): New.
8427 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
8428 (*<plusminus_insn><mode>3): Ditto.
8429 (<sse2_avx2>_andnot<mode>3): Ditto.
8430 (*andnot<mode>3): Fix order of cond operands.
8431 Add asserts for correct TARGET_xxx.
8432 (*<any_logic:code><mode>3): Ditto.
8433
8434 2011-08-22 Anatoly Sokolov <aesok@post.ru>
8435
8436 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
8437 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
8438 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
8439 regclass argument type to reg_class_t. Change 'max' and 'v' vars
8440 and return types to unsigned char. Use reg_class_contents instead
8441 of class_contents.
8442 (TARGET_CLASS_MAX_NREGS): Define.
8443
8444 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
8445
8446 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
8447 to make computed_jump_p return true.
8448
8449 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8450
8451 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
8452 (PICFLAG_FOR_TARGET): Substitute.
8453 * aclocal.m4: Regenerate.
8454 * configure: Regenerate.
8455
8456 2011-08-22 Dodji Seketeli <dodji@redhat.com>
8457
8458 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
8459 after reading in the pch.
8460
8461 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
8462
8463 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
8464 * configure: Regenerated.
8465
8466 2011-08-22 Jakub Jelinek <jakub@redhat.com>
8467
8468 PR tree-optimization/50133
8469 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
8470 from stmt instead of some statement around gsi.
8471
8472 PR middle-end/50141
8473 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
8474 innerdecl is a VAR_DECL.
8475
8476 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8477
8478 * config/i386/avx2intrin.h: New file.
8479 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
8480 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
8481 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
8482 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
8483 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
8484 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
8485 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
8486 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
8487 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
8488 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
8489 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
8490 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
8491 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
8492 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
8493 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
8494 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
8495 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
8496 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
8497 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
8498 VOID_FTYPE_PV8SI_V8SI_V8SI,
8499 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
8500 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
8501 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
8502 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
8503 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
8504 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
8505 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
8506 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
8507 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
8508 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
8509 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
8510 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
8511 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
8512 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
8513 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
8514 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
8515 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
8516 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
8517 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
8518 V4DI_FTYPE_V4DI_INT_CONVERT,
8519 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
8520 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
8521 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8522 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8523 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8524 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8525 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8526 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8527 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8528 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8529 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8530 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8531 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8532 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8533 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8534 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8535 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8536 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8537 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8538 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8539 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8540 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8541 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8542 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8543 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8544 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8545 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8546 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8547 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8548 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8549 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8550 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8551 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8552 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8553 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8554 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8555 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8556 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8557 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8558 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8559 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8560 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8561 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8562 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8563 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8564 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8565 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8566 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8567 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8568 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8569 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8570 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8571 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8572 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8573 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8574 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8575 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8576 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8577 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8578 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
8579 IX86_BUILTIN_VBROADCASTSS_PS256,
8580 IX86_BUILTIN_VBROADCASTSD_PD256,
8581 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8582 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8583 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8584 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8585 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8586 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8587 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8588 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8589 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8590 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8591 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8592 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8593 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
8594 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8595 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8596 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8597 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8598 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
8599 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
8600 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
8601 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
8602 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
8603 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
8604 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
8605 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
8606 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
8607 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
8608 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
8609 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
8610 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
8611 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
8612 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
8613 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
8614 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
8615 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
8616 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
8617 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
8618 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
8619 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
8620 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
8621 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
8622 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
8623 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
8624 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8625 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8626 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8627 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
8628 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
8629 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
8630 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
8631 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
8632 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
8633 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
8634 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
8635 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
8636 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
8637 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
8638 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
8639 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
8640 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
8641 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
8642 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
8643 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
8644 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
8645 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
8646 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
8647 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
8648 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
8649 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
8650 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
8651 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
8652 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
8653 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
8654 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
8655 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
8656 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
8657 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
8658 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
8659 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
8660 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
8661 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
8662 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
8663 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
8664 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
8665 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
8666 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
8667 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
8668 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
8669 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
8670 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
8671 IX86_BUILTIN_VBROADCASTSD_PD256,
8672 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
8673 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
8674 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
8675 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
8676 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
8677 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
8678 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
8679 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
8680 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
8681 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
8682 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
8683 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
8684 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
8685 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
8686 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
8687 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
8688 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
8689 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
8690 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
8691 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
8692 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
8693 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
8694 IX86_BUILTIN_GATHERDIV8SI.
8695 (ix86_preferred_simd_mode): Support AVX2 modes.
8696 (ix86_expand_args_builtin): Support AVX2 builtins.
8697 (ix86_expand_special_args_builtin): Likewise.
8698 (ix86_expand_builtin): Likewise.
8699 * config/i386/i386.md (UNSPEC_VPERMSI): New.
8700 (UNSPEC_VPERMDF): Likewise.
8701 (UNSPEC_VPERMSF): Likewise.
8702 (UNSPEC_VPERMDI): Likewise.
8703 (UNSPEC_VPERMTI): Likewise.
8704 (UNSPEC_GATHER): Likewise.
8705 (ssemodesuffix): Extend.
8706 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
8707 is defined.
8708 * config/i386/predicates.md (const1248_operand): New.
8709 * config/i386/sse.md (VI1_AVX2): New mode iterator.
8710 (VI2_AVX2): Likewise.
8711 (VI4_AVX2): Likewise.
8712 (VI8_AVX2): Likewise.
8713 (VIMAX_AVX2): Likewise.
8714 (SSESCALARMODE): Likewise.
8715 (VI12_AVX2): Likewise.
8716 (VI24_AVX2): Likewise.
8717 (VI124_AVX2): Likewise.
8718 (VI248_AVX2): Likewise.
8719 (VI48_AVX2): Likewise.
8720 (VI4SD_AVX2): Likewise.
8721 (V48_AVX2): Likewise.
8722 (AVX256MODE2P): Likewise.
8723 (AVXMODE48P_DI): Likewise.
8724 (sse2_avx2): New mode attribute.
8725 (ssse3_avx2): Likewise.
8726 (sse4_1_avx2): Likewise.
8727 (avx_avx2): Likewise.
8728 (ssebytemode): Likewise.
8729 (AVXTOSSEMODE): Likewise.
8730 (AVXMODE48P_DI): Likewise.
8731 (gthrfirstp): Likewise.
8732 (gthrlastp): Likewise.
8733 (lshift): New code_iterator
8734 (lshift): New code attribute.
8735 (lshift): Likewise.
8736 (ssescalarmodesuffix): Update.
8737 (sseunpackmode): Likewise.
8738 (ssepackmode): Likewise.
8739 (avx2_vec_dupv4sf): New insn pattern.
8740 (avx2_vec_dupv8sf): Likewise.
8741 (avx2_interleave_highv4di): Likewise.
8742 (avx2_interleave_lowv4di): Likewise.
8743 (avx2_umulv4siv4di3): Likewise
8744 (*avx2_umulv4siv4di3): Likewise
8745 (avx2_pmaddwd): Likewise.
8746 (*avx2_pmaddwd): Likewise.
8747 (avx2_lshrqv4di3): Likewise.
8748 (avx2_lshlqv4di3): Likewise.
8749 (avx2_lshl<mode>3): Likewise.
8750 (avx2_<umaxmin:code><mode>3): Likewise.
8751 (*avx2_<umaxmin:code><mode>3): Likewise.
8752 (avx2_<smaxmin:code><mode>3): Likewise.
8753 (*avx2_<smaxmin:code><mode>3): Likewise.
8754 (avx2_eq<mode>3): Likewise.
8755 (*avx2_eq<mode>3): Likewise.
8756 (avx2_gt<mode>3): Likewise.
8757 (avx2_interleave_highv32qi): New.
8758 (avx2_interleave_lowv32qi): Likewise.
8759 (avx2_interleave_highv16hi): Likewise.
8760 (avx2_interleave_lowv16hi): Likewise.
8761 (avx2_interleave_highv8si): Likewise.
8762 (avx2_interleave_lowv8si): Likewise.
8763 (avx2_pshufd): Likewise.
8764 (avx2_pshufd_1): Likewise.
8765 (avx2_pshuflwv3): Likewise.
8766 (avx2_pshuflw_1): Likewise.
8767 (avx2_pshufhwv3): Likewise.
8768 (avx2_pshufhw_1): Likewise.
8769 (avx2_uavgv32qi3): Likewise.
8770 (*avx2_uavgv32qi3): Likewise.
8771 (avx2_uavgv16hi3): Likewise.
8772 (*avx2_uavgv16hi3): Likewise.
8773 (avx2_pmovmskb): Likewise.
8774 (avx2_phaddwv16hi3): Likewise.
8775 (avx2_phadddv8si3): Likewise.
8776 (avx2_phaddswv16hi3): Likewise.
8777 (avx2_phsubwv16hi3): Likewise.
8778 (avx2_phsubdv8si3): Likewise.
8779 (avx2_phsubswv16hi3): Likewise.
8780 (avx2_pmaddubsw256): Likewise.
8781 (avx2_umulhrswv16hi3): Likewise.
8782 (*avx2_umulhrswv16hi3): Likewise.
8783 (avx2_packusdw): Likewise.
8784 (avx2_pblendd<mode>): Likewise.
8785 (avx2_<code>v16qiv16hi2): Likewise.
8786 (avx2_<code>v8qiv8si2): Likewise.
8787 (avx2_<code>v8hiv8si2): Likewise.
8788 (avx2_<code>v4qiv4di2): Likewise.
8789 (avx2_<code>v4hiv4di2): Likewise.
8790 (avx2_<code>v4siv4di2): Likewise.
8791 (avx2_pbroadcast<mode>): Likewise.
8792 (avx2_permvarv8si): Likewise.
8793 (avx2_permv4df): Likewise.
8794 (avx2_permvarv8sf): Likewise.
8795 (avx2_permv4di): Likewise.
8796 (avx2_permv2ti): Likewise.
8797 (avx2_vec_dupv4df): Likewise.
8798 (avx2_vbroadcasti128_<mode>): Likewise.
8799 (avx2_vec_set_lo_v4di): Likewise.
8800 (avx2_vec_set_hi_v4di): Likewise.
8801 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
8802 (avx2_extracti128): Likewise.
8803 (avx2_inserti128): Likewise.
8804 (avx2_ashrvv8si): Likewise.
8805 (avx2_ashrvv4si): Likewise.
8806 (avx2_<lshift>vv8si): Likewise.
8807 (avx2_<lshift>v<mode>): Likewise.
8808 (avx2_<lshift>vv2di): Likewise.
8809 (avx2_gathersi<mode>): Likewise.
8810 (*avx2_gathersi<mode>): Likewise.
8811 (avx2_gatherdi<mode>): Likewise.
8812 (*avx2_gatherdi<mode>): Likewise.
8813 (avx2_gatherdi<mode>256): Likewise.
8814 (*avx2_gatherdi<mode>256): Likewise.
8815 (<plusminus_insn><mode>3): Use VI mode iterator.
8816 (*<plusminus_insn><mode>3): Use VI mode iterator.
8817 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8818 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
8819 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
8820 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
8821 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
8822 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
8823 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
8824 Use VI2_AVX2 mode iterator.
8825 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
8826 Use VI2_AVX2 mode iterator.
8827 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
8828 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
8829 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
8830 Use VI4_AVX2 mode iterator.
8831 (ashr<mode>3): Use VI24_AVX2 mode iterator.
8832 (lshr<mode>3): Use VI248_AVX2 mode iterator.
8833 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
8834 Use VIMAX_AVX2 mode iterator.
8835 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
8836 Use VI mode iterator.
8837 (*andnot<mode>3): Update for AVX2.
8838 (*<any_logic:code><mode>3): Likewise.
8839 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
8840 Use VI1_AVX mode iterator.
8841 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
8842 Use VI2_AVX mode iterator.
8843 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
8844 Use VI1_AVX mode iterator.
8845 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
8846 Use VI8_AVX2 mode iterator.
8847 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
8848 Use VI1_AVX2 mode iterator.
8849 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
8850 Use VI124_AVX2 mode iterator.
8851 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
8852 Use SSESCALARMODE mode iterator.
8853 (abs<mode>2): Use VI124_AVX2 mode iterator.
8854 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
8855 Use VI8_AVX2 mode iterator.
8856 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
8857 Use VI1_AVX2 mode iterator.
8858 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
8859 Use VI1_AVX2 mode iterator.
8860 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
8861 Use VI2_AVX2 mode iterator.
8862 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
8863 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
8864 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
8865 avx_maskstore<ssemodesuffix><avxsizesuffix>.
8866 Use V48_AVX2 mode iterator.
8867 * doc/extend.texi: Document AVX2 built-in functions.
8868 * doc/invoke.texi: Document -mavx2.
8869
8870 2011-08-22 Matthias Klose <doko@debian.org>
8871
8872 Revert:
8873 2011-07-11 Arthur Loiret <aloiret@debian.org>
8874 Matthias Klose <doko@debian.org>
8875 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8876 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8877 convention.
8878 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8879
8880 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
8881
8882 PR bootstrap/50146
8883 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
8884 to #ifndef HONOR_REG_ALLOC_ORDER block.
8885
8886 2011-08-21 Richard Henderson <rth@redhat.com>
8887
8888 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
8889 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
8890 * resource.c (next_insn_no_annul): Likewise.
8891 (mark_set_resources): Likewise.
8892 * reorg.c (delete_from_delay_slot): Likewise.
8893 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
8894 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
8895
8896 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
8897
8898 * config/i386/i386.md (any_div): Remove.
8899 (sgnprefix): Update for removal.
8900 (u): Ditto.
8901
8902 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
8903
8904 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
8905 for ira_reg_class_max_nregs. Increase pressure by 1.
8906 (mark_pseudo_regno_subword_dead): Use allocno class
8907 for ira_reg_class_max_nregs.
8908
8909 2011-08-20 Richard Henderson <rth@redhat.com>
8910
8911 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
8912 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
8913 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
8914 config/c6x/ltf.c: Adjust include path for soft-fp.
8915
8916 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
8917
8918 PR other/46770
8919 * config.gcc (tm_file): Add initfini-array.h if
8920 .init_arrary/.fini_array are supported.
8921
8922 * crtstuff.c: Don't generate .ctors nor .dtors sections if
8923 USE_INITFINI_ARRAY is defined.
8924
8925 * output.h (default_elf_init_array_asm_out_constructor): New.
8926 (default_elf_fini_array_asm_out_destructor): Likewise.
8927 * varasm.c (elf_init_array_section): Likewise.
8928 (elf_fini_array_section): Likewise.
8929 (get_elf_initfini_array_priority_section): Likewise.
8930 (default_elf_init_array_asm_out_constructor): Likewise.
8931 (default_elf_fini_array_asm_out_destructor): Likewise.
8932
8933 * config/initfini-array.h: New.
8934
8935 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
8936
8937 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
8938 OK for ST_REGS and FP_REGS before taking those classes into account.
8939
8940 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
8941
8942 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
8943 before checking for annulled branches.
8944
8945 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
8946
8947 * config/i386/i386.c (ix86_binary_operator_ok): Use
8948 satisfies_constraint_L.
8949
8950 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
8951 Michael Matz <matz@suse.de>
8952
8953 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
8954 trunc (a + copysign (nextafter (0.5, 0.0), a)).
8955
8956 2011-08-20 Anatoly Sokolov <aesok@post.ru>
8957
8958 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8959 * doc/tm.texi: Regenerate.
8960 * targhooks.c (default_preferred_output_reload_class): Don't use
8961 PREFERRED_OUTPUT_RELOAD_CLASS macro.
8962 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
8963
8964 2011-08-20 Jakub Jelinek <jakub@redhat.com>
8965
8966 PR tree-optimization/48739
8967 * tree-ssa.c: Include cfgloop.h.
8968 (execute_update_addresses_taken): When updating ssa, if in loop closed
8969 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
8970 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
8971
8972 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
8973
8974 PR rtl-optimization/49936
8975 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
8976 for calculation of max register move costs.
8977
8978 2011-08-19 Joseph Myers <joseph@codesourcery.com>
8979
8980 * c-parser.c (c_parser_postfix_expression): Convert operands of
8981 __builtin_complex to their semantic types.
8982
8983 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
8984
8985 PR middle-end/49721
8986 * explow.c (convert_memory_address_addr_space): Also permute the
8987 conversion and addition of constant for zero-extend.
8988
8989 2011-08-19 Joseph Myers <joseph@codesourcery.com>
8990
8991 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
8992 * doc/extend.texi (__builtin_complex): Document.
8993
8994 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
8995
8996 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
8997 beyond conversions.
8998 (convert_mult_to_widen): Convert constant inputs to the right type.
8999 (convert_plusminus_to_widen): Don't automatically reject inputs that
9000 are not an SSA_NAME.
9001 Convert constant inputs to the right type.
9002
9003 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9004
9005 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
9006 to the correct type.
9007
9008 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9009
9010 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
9011 unsigned inputs of different modes.
9012 (convert_plusminus_to_widen): Likewise.
9013
9014 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9015
9016 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
9017 'type'.
9018 Use 'type' from caller, not inferred from 'rhs'.
9019 Don't reject non-conversion statements. Do return lhs in this case.
9020 (is_widening_mult_p): Add new argument 'type'.
9021 Use 'type' from caller, not inferred from 'stmt'.
9022 Pass type to is_widening_mult_rhs_p.
9023 (convert_mult_to_widen): Pass type to is_widening_mult_p.
9024 (convert_plusminus_to_widen): Likewise.
9025
9026 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9027
9028 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
9029 Ensure the the larger type is the first operand.
9030
9031 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9032
9033 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
9034 unsupported unsigned multiplies to signed.
9035 (convert_plusminus_to_widen): Likewise.
9036
9037 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9038
9039 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
9040 conversion statement separating multiply-and-accumulate.
9041
9042 2011-08-19 Richard Guenther <rguenther@suse.de>
9043
9044 PR tree-optimization/50067
9045 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
9046 offset only if we accounted for it.
9047
9048 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9049
9050 * config/arm/arm.md (maddhidi4): Remove '*' from name.
9051 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
9052 * optabs.c (find_widening_optab_handler_and_mode): New function.
9053 (expand_widen_pattern_expr): Use find_widening_optab_handler.
9054 (expand_binop_directly): Likewise.
9055 (expand_binop): Likewise.
9056 * optabs.h (find_widening_optab_handler): New macro define.
9057 (find_widening_optab_handler_and_mode): New prototype.
9058 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
9059 type precision rules.
9060 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
9061 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
9062 (is_widening_mult_rhs_p): Allow widening by more than one mode.
9063 Explicitly disallow mis-matched input types.
9064 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
9065 input types to fit the new handler.
9066 (convert_plusminus_to_widen): Likewise.
9067
9068 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
9069
9070 * expr.c (expand_expr_real_2): Use widening_optab_handler.
9071 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
9072 (gen_insn): $N now means $a must be wider than $b, not consecutive.
9073 * optabs.c (widened_mode): New function.
9074 (expand_widen_pattern_expr): Use widening_optab_handler.
9075 (expand_binop_directly): Likewise.
9076 (expand_binop): Likewise.
9077 * optabs.h (widening_optab_handlers): New struct.
9078 (optab_d): New member, 'widening'.
9079 (widening_optab_handler): New function.
9080 (set_widening_optab_handler): New function.
9081 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
9082 widening_optab_handler.
9083 (convert_plusminus_to_widen): Likewise.
9084
9085 2011-08-19 Joseph Myers <joseph@codesourcery.com>
9086
9087 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
9088 pedantic.
9089 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
9090 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
9091
9092 2011-08-19 Joseph Myers <joseph@codesourcery.com>
9093
9094 * opth-gen.awk: Do not declare target save/restore structures and
9095 functions if IN_RTS defined.
9096
9097 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9098
9099 PR target/49437
9100 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
9101 when stack was realigned in interrupt handler prologue.
9102
9103 2011-08-18 Joseph Myers <joseph@codesourcery.com>
9104
9105 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
9106 (quals_from_declspecs): Assert _Noreturn not present.
9107 (grokdeclarator): Handle _Noreturn.
9108 (build_null_declspecs): Initialize noreturn_p.
9109 (declspecs_add_scspec): Handle RID_NORETURN.
9110 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
9111 (c_parser_attributes): Handle RID_NORETURN.
9112 * c-tree.h (struct c_declspecs): Add noreturn_p.
9113 * ginclude/stdnoreturn.h: New.
9114 * Makefile.in (USER_H): Add stdnoreturn.h.
9115
9116 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
9117
9118 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
9119 (OPTION_MASK_ISA_AVX_UNSET): Update.
9120 (OPTION_MASK_ISA_AVX2_UNSET): New.
9121 (ix86_handle_option): Handle OPT_mavx2 case.
9122 * config/i386/cpuid.h (bit_AVX2): New.
9123 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9124 AVX2 feature.
9125 * config/i386/i386-c.c (ix86_target_macros_internal):
9126 Conditionally define __AVX2__.
9127 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
9128 Define "core-avx2" processor alias. Handle avx2 option.
9129 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
9130 * config/i386/i386.h (TARGET_AVX2): New.
9131 * config/i386/i386.opt (mavx2): New.
9132 * doc/invoke.texi: Document -mavx2.
9133
9134 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
9135
9136 PR rtl-optimization/49890
9137 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
9138 subclasses of class which is superset of a pressure class.
9139
9140 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
9141 Igor Zamyatin <igor.zamyatin@intel.com>
9142
9143 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
9144 with HOST_WIDE_INT for isa_flag.
9145 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
9146 isa variables.
9147
9148 * config/i386/i386.c (ix86_target_string): Replace int with
9149 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
9150 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
9151 (pta_flags): Removed.
9152 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
9153 (pta): Use HOST_WIDE_INT on flags.
9154 (builtin_isa): Use HOST_WIDE_INT on isa.
9155 (ix86_add_new_builtins): Likewise.
9156 (def_builtin): Use HOST_WIDE_INT on mask.
9157 (def_builtin_const): Likewise.
9158 (builtin_description): Likewise.
9159
9160 * config/i386/i386.opt (ix86_isa_flags): Replace int with
9161 HOST_WIDE_INT.
9162 (ix86_isa_flags_explicit): Likewise.
9163 (x_ix86_isa_flags_explicit): Likewise.
9164
9165 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
9166
9167 PR rtl-optimization/50107
9168 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
9169 (ira_hard_reg_in_set_p): New.
9170
9171 * ira-color.c (calculate_saved_nregs): New.
9172 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
9173 hard regs.
9174 (allocno_reload_assign, fast_allocation): Use
9175 ira_hard_reg_set_intersection_p instead of
9176 ira_hard_reg_not_in_set_p.
9177
9178 * ira.c (setup_reg_renumber): Use
9179 ira_hard_reg_set_intersection_p instead of
9180 ira_hard_reg_not_in_set_p.
9181 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
9182 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
9183
9184 * ira-costs.c (ira_tune_allocno_costs): Use
9185 ira_hard_reg_set_intersection_p instead of
9186 ira_hard_reg_not_in_set_p.
9187
9188 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
9189 Igor Zamyatin <igor.zamyatin@intel.com>
9190
9191 * hwint.h (HOST_WIDE_INT_1): New.
9192
9193 * opt-functions.awk (switch_bit_fields): Initialize the
9194 host_wide_int field.
9195 (host_wide_int_var_name): New.
9196 (var_type_struct): Check and return HOST_WIDE_INT.
9197
9198 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
9199
9200 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
9201
9202 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
9203 check masks for HOST_WIDE_INT.
9204
9205 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
9206 (option_enabled): Likewise.
9207 (get_option_state): Likewise.
9208
9209 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
9210 to HOST_WIDE_INT.
9211
9212 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9213 Marc Glisse <marc.glisse@normalesup.org>
9214
9215 PR libstdc++-v3/1773
9216 * target.def (decl_mangling_context): New C++ hook.
9217 * doc/tm.texi: Regenerate.
9218 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
9219 * config/sol2-protos.h: Group by source file.
9220 (solaris_cxx_decl_mangling_context): Declare.
9221 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
9222 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
9223 Use $<.
9224 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
9225 Add sol2-stubs.o to extra_objs.
9226
9227 2011-08-18 Jakub Jelinek <jakub@redhat.com>
9228
9229 PR target/50009
9230 * stor-layout.c (update_alignment_for_field): Don't ICE on
9231 packed flexible array members if ms_bitfield_layout_p.
9232
9233 PR target/50092
9234 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
9235 on the result before returning it.
9236
9237 PR debug/50017
9238 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
9239 is a debug stmt, use location of the first non-debug stmt after it.
9240
9241 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
9242
9243 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
9244 (arm_size_rtx_costs): Likewise.
9245
9246 2011-08-18 Richard Guenther <rguenther@suse.de>
9247
9248 * tree.h (tree_int_cst_msb): Remove.
9249 * tree.c (tree_int_cst_msb): Likewise.
9250 (tree_int_cst_sign_bit): Move from ...
9251 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
9252
9253 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
9254
9255 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
9256 * doc/tm.texi: Regenerate.
9257 * target.def (rtx_costs): Add an opno parameter.
9258 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9259 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9260 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
9261 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
9262 * cse.c (COST_IN): Add an opno parameter.
9263 (notreg_cost): Likewise. Update call to rtx_cost.
9264 (COST, fold_rtx): Update accordingly.
9265 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
9266 * expmed.c (emit_store_flag): Likewise.
9267 * optabs.c (avoid_expensive_constant): Add an opno parameter.
9268 Update call to rtx_cost.
9269 (expand_binop_directly, expand_binop): Likewise.
9270 (expand_twoval_binop, prepare_cmp_insn): Likewise.
9271 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
9272 (set_src_cost, get_full_set_src_cost): Update accordingly.
9273 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
9274 to target hook.
9275 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
9276 (default_adress_cost): Update calls to rtx_cost.
9277
9278 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
9279 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
9280 (arm_rtx_costs): Add an opno parameter.
9281 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
9282 adjust any recursive rtx-cost calls.
9283 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
9284 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9285 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9286 * config/cris/cris.c (cris_rtx_costs): Likewise.
9287 * config/frv/frv.c (frv_rtx_costs): Likewise.
9288 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9289 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9290 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9291 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9292 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9293 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9294 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9295 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9296 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9297 * config/mep/mep.c (mep_rtx_cost): Likewise.
9298 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9299 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
9300 (mips_zero_extend_cost): Add an opno parameter.
9301 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9302 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
9303 to rtx_cost.
9304 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
9305 rtx-cost calls.
9306 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9307 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9308 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
9309 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9310 (rs6000_debug_rtx_costs): Likewise.
9311 * config/s390/s390.c (s390_rtx_costs): Likewise.
9312 * config/score/score-protos.h (score_rtx_costs): Likewise.
9313 * config/score/score.c (score_rtx_costs): Likewise.
9314 * config/sh/sh.c (andcosts): Update call to rtx_cost.
9315 (sh_rtx_costs): Add an opno parameter.
9316 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9317 * config/spu/spu.c (spu_rtx_costs): Likewise.
9318 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9319 * config/v850/v850.c (v850_rtx_costs): Likewise.
9320 * config/vax/vax.c (vax_rtx_costs): Likewise.
9321 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9322
9323 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
9324
9325 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
9326 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
9327 rtx_cost.
9328 * calls.c (precompute_register_parameters): Likewise.
9329 * combine.c (expand_compound_operation, make_extraction): Likewise.
9330 (force_to_mode, distribute_and_simplify_rtx): Likewise.
9331 * dse.c (find_shift_sequence): Likewise.
9332 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
9333 * expr.c (compress_float_constant): Likewise.
9334 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9335 * gcse.c (want_to_gcse_p): Likewise.
9336 * ifcvt.c (noce_try_sign_mask): Likewise.
9337 * loop-doloop.c (doloop_optimize): Likewise.
9338 * loop-invariant.c (create_new_invariant): Likewise.
9339 * optabs.c (avoid_expensive_constant): Likewise.
9340 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
9341 (try_replace_in_use, reload_cse_move2add): Likewise.
9342 * reload1.c (calculate_elim_costs_all_insns): Likewise.
9343 (note_reg_elim_costly): Likewise.
9344 * rtlanal.c (insn_rtx_cost): Likewise.
9345 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9346 * stmt.c (lshift_cheap_p): Likewise.
9347 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
9348 * config/avr/avr.c (final_prescan_insn): Likewise.
9349 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9350 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
9351
9352 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
9353
9354 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
9355 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
9356 * cfgloopanal.c (seq_cost): Likewise.
9357 * loop-invariant.c (create_new_invariant): Likewise.
9358 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
9359 (reload_cse_move2add): Use get_full_set_rtx_cost.
9360
9361 2011-08-18 Richard Guenther <rguenther@suse.de>
9362
9363 * expr.c (get_inner_reference): Fix typo in last change.
9364
9365 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
9366 Joseph Myers <joseph@codesourcery.com>
9367
9368 PR tree-optimization/49963
9369 * hwint.c (absu_hwi): Define.
9370 * hwint.h (absu_hwi): Declare.
9371 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
9372 of abs_hwi.
9373 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9374 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9375
9376 2011-08-18 Richard Guenther <rguenther@suse.de>
9377
9378 * expr.c (get_inner_reference): Sign-extend the constant
9379 twos-complement offset before doing arbitrary precision
9380 arithmetic on it.
9381 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
9382 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
9383 to get_constraint_for_ptr_offset.
9384
9385 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
9386
9387 PR target/50068
9388 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
9389
9390 2011-08-17 Richard Guenther <rguenther@suse.de>
9391
9392 * tree.h (convert_to_ptrofftype_loc): New function.
9393 (convert_to_ptrofftype): Define.
9394 * builtins.c (expand_builtin_bzero): Use size_type_node.
9395 (fold_builtin_bzero): Likewise.
9396 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
9397 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
9398 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
9399 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
9400 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
9401 * fold-const.c (build_range_check): Negate using the original type.
9402 (fold_unary_loc): Use fold_build_pointer_plus_loc.
9403 * gimple-fold.c (gimple_adjust_this_by_delta): Use
9404 convert_to_ptrofftype.
9405 * gimplify.c (gimplify_self_mod_expr): Likewise.
9406 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
9407 (graphite_create_new_loop_guard): Likewise.
9408 * graphite-sese-to-poly.c (my_long_long): Remove.
9409 (scop_ivs_can_be_represented): Adjust.
9410 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
9411 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
9412 * tree-loop-distribution.c (build_size_arg_loc): Use
9413 size_type_node.
9414 (generate_memset_zero): Simplify.
9415 * tree-mudflap.c: Use fold_convert, not convert.
9416 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
9417 its own type.
9418 (determine_offset): Likewise for DR_STEP.
9419 (valid_initializer_p): Likewise.
9420 * tree-profile.c (prepare_instrumented_value): Convert the pointer
9421 to an integer type of same size.
9422 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
9423 to sizetype without need.
9424 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9425 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
9426 * tree-ssa-loop-manip.c (create_iv): Likewise.
9427 (determine_exit_conditions): Adjust comment.
9428 * tree-ssa-pre.c (create_expression_by_pieces): Use
9429 convert_to_ptrofftype.
9430 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
9431 * varasm.c (array_size_for_constructor): Compute using double_ints.
9432
9433 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9434
9435 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
9436 when generating an integer result where possible. Short-cut
9437 comparison against 0 also for QImode.
9438
9439 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9440
9441 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
9442 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
9443 prototype.
9444 * config/spu/spu.c (spu_legitimize_reload_address): New function.
9445 (spu_legitimate_address_p): Do not check displacement if the base
9446 is an eliminable stack register.
9447
9448 2011-08-16 Anatoly Sokolov <aesok@post.ru>
9449
9450 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
9451 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9452 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
9453 m32c_preferred_output_reload_class): Remove.
9454 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
9455 Change rclass argument and return types to reg_class_t. Use
9456 reg_class_subset_p instead of class_sizes.
9457 (m32c_preferred_output_reload_class): Make static. Change rclass
9458 argument and return types to reg_class_t.
9459 (TARGET_PREFERRED_RELOAD_CLASS,
9460 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9461
9462 2011-08-16 Kai Tietz <ktietz@redhat.com>
9463
9464 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
9465
9466 2011-08-16 Richard GUenther <rguenther@suse.de>
9467
9468 PR tree-optimization/50082
9469 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
9470 warnings here, instead of ...
9471 (ssa_forward_propagate_and_combine): ... here.
9472 (forward_propagate_into_comparison_1): Adjust.
9473 (forward_propagate_into_comparison): Likewise.
9474 (forward_propagate_into_gimple_cond): Likewise.
9475 (forward_propagate_into_cond): Likewise.
9476
9477 2011-08-16 Andreas Schwab <schwab@redhat.com>
9478
9479 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
9480 instead of ggc_alloc_zone_vec_rtvec_def.
9481
9482 2011-08-16 Richard Guenther <rguenther@suse.de>
9483
9484 * tree.h (ptrofftype_p): New helper function.
9485 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
9486 offset verification.
9487 (verify_gimple_assign_binary): Likewise.
9488 * tree.c (build2_stat): Likewise.
9489 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
9490 (reset_evolution_in_loop): Likewise.
9491 * tree-chrec.h (build_polynomial_chrec): Likewise.
9492
9493 2011-08-16 Liang Wang <lwang1@marvell.com>
9494
9495 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
9496 ggc_alloc_zone_vec_rtvec_def.
9497
9498 2011-08-16 Richard Guenther <rguenther@suse.de>
9499
9500 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
9501 helper factored out from ...
9502 (extract_range_from_binary_expr_1): ... here. Re-structure
9503 to not glob handling too different tree codes.
9504
9505 2011-08-15 Richard Henderson <rth@redhat.com>
9506
9507 PR middle-end/50006
9508 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
9509 setting out to include allocate_stack named pattern as well.
9510 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
9511 * stmt.c (expand_stack_restore): Likewise.
9512
9513 2011-08-15 Richard Guenther <rguenther@suse.de>
9514
9515 PR middle-end/50082
9516 * fold-const.c (maybe_canonicalize_comparison_1): Properly
9517 convert the modified operand to the other operand type.
9518 (fold_comparison): Call maybe_canonicalize_comparison_1 with
9519 useless conversions stripped from comparison operands.
9520
9521 2011-08-15 Richard Guenther <rguenther@suse.de>
9522
9523 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
9524 (extract_range_from_unary_expr_1): Restructure.
9525
9526 2011-08-15 Richard Guenther <rguenther@suse.de>
9527
9528 PR tree-optimization/50058
9529 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
9530 copy matching.
9531
9532 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9533
9534 PR target/50022
9535 * config/arm/arm.c (output_move_double): Add 2 parameters
9536 to count the number of insns emitted and whether to emit or not.
9537 Use the flag to decide when to emit and count number of instructions
9538 that will be emitted.
9539 Handle case where output_move_double might be called for calculating
9540 lengths with an invalid constant.
9541 (arm_count_output_move_double_insns): Define.
9542 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
9543 (output_move_double): Adjust prototype.
9544 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
9545 output_move_double.
9546 ("*movdi_vfp_cortexa8"): Likewise and add attribute
9547 for ce_count.
9548 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
9549 ("*movdf_soft_insn"): Likewise.
9550 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
9551 ("*cirrus_thumb2_movdi"): Likewise.
9552 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
9553 ("*cirrus_movdf_hard_insn"): Likewise.
9554 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
9555 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
9556 ("mov<mode>_internal VMMX"): Likewise.
9557 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
9558
9559 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
9560
9561 * config/i386/i386.c (ix86_expand_round_sse4): New function.
9562 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
9563 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
9564 for TARGET_ROUND.
9565
9566 (rint<mode>2): Simplify TARGET_ROUND check.
9567 (floor<mode>2): Ditto.
9568 (ceil<mode>2): Ditto.
9569 (btrunc<mode>2): Ditto.
9570
9571 2011-08-14 Anatoly Sokolov <aesok@post.ru>
9572
9573 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
9574 as mmix_preferred_output_reload_class.
9575
9576 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
9577
9578 * PR target/49903
9579 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
9580 (branch_unspec): New insn.
9581 (branch): Beauty farm.
9582 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
9583 to be IF_THEN_ELSE.
9584 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
9585 New static functions.
9586 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
9587 Use CONST_INT_P. Beauty.
9588
9589 2011-08-12 Richard Henderson <rth@redhat.com>
9590
9591 PR rtl-opt/49994
9592 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
9593 * sched-deps.c (init_deps): Clear it.
9594 (deps_analyze_insn): Consume it.
9595 (sched_analyze_insn): Fill it.
9596
9597 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9598
9599 PR target/48328
9600 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
9601 for tbh instructions.
9602
9603 2011-08-12 Diego Novillo <dnovillo@google.com>
9604
9605 * data-streamer.h (streamer_write_zero): Rename from output_zero.
9606 (streamer_write_uhwi): Rename from lto_output_uleb128.
9607 (streamer_write_hwi): Rename from output_sleb128.
9608 (streamer_write_string): Rename from lto_output_string.
9609 (streamer_string_index): Rename from lto_string_index.
9610 (streamer_write_string_with_length): Rename from
9611 lto_output_string_with_length.
9612 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
9613 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
9614 (streamer_read_string): Rename from lto_input_string.
9615 (streamer_read_indexed_string): Rename from input_string_internal.
9616 (streamer_read_uhwi): Rename from lto_input_uleb128.
9617 (streamer_read_hwi): Rename from lto_input_sleb128.
9618 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
9619 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
9620 (streamer_write_enum): Rename from lto_output_enum.
9621 (streamer_read_enum): Rename from lto_input_enum.
9622 (streamer_write_record_start): Rename from output_record_start.
9623 (streamer_read_record_start): Rename from input_record_start.
9624 (streamer_write_bitpack): Rename from lto_output_bitpack.
9625 (streamer_read_bitpack): Rename from lto_input_bitpack.
9626 (streamer_write_char_stream): Rename from lto_output_1_stream.
9627 (streamer_read_uchar): Rename from lto_input_1_unsigned.
9628 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
9629 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
9630 (streamer_read_string_cst): Rename from input_string_cst.
9631 (streamer_read_chain): Rename from lto_input_chain.
9632 (streamer_alloc_tree): Rename from lto_materialize_tree.
9633 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
9634 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
9635 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
9636 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
9637 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
9638 (streamer_write_chain): Rename from lto_output_chain.
9639 (streamer_write_tree_header): Rename from lto_output_tree_header.
9640 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
9641 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
9642 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
9643 (streamer_write_builtin): Rename from lto_output_builtin_tree.
9644 (streamer_check_handled_ts_structures): Rename from
9645 check_handled_ts_structures.
9646 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
9647 (streamer_tree_cache_insert_at): Rename from
9648 lto_streamer_cache_insert_at.
9649 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
9650 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
9651 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
9652 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
9653 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
9654 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
9655 (write_identifier): Rename from output_identifier.
9656 (write_ts_common_tree_pointers): Rename from
9657 lto_output_ts_common_tree_pointers.
9658 (write_ts_vector_tree_pointers): Rename from
9659 lto_output_ts_vector_tree_pointers.
9660 (write_ts_complex_tree_pointers): Rename from
9661 lto_output_ts_complex_tree_pointers.
9662 (write_ts_decl_minimal_tree_pointers): Rename from
9663 lto_output_ts_decl_minimal_tree_pointers.
9664 (write_ts_decl_common_tree_pointers): Rename from
9665 lto_output_ts_decl_common_tree_pointers.
9666 (write_ts_decl_non_common_tree_pointers): Rename from
9667 lto_output_ts_decl_non_common_tree_pointers.
9668 (write_ts_decl_with_vis_tree_pointers): Rename from
9669 lto_output_ts_decl_with_vis_tree_pointers.
9670 (write_ts_field_decl_tree_pointers): Rename from
9671 lto_output_ts_field_decl_tree_pointers.
9672 (write_ts_function_decl_tree_pointers): Rename from
9673 lto_output_ts_function_decl_tree_pointers.
9674 (write_ts_type_common_tree_pointers): Rename from
9675 lto_output_ts_type_common_tree_pointers.
9676 (write_ts_type_non_common_tree_pointers): Rename from
9677 lto_output_ts_type_non_common_tree_pointers.
9678 (write_ts_list_tree_pointers): Rename from
9679 lto_output_ts_list_tree_pointers.
9680 (write_ts_vec_tree_pointers): Rename from
9681 lto_output_ts_vec_tree_pointers.
9682 (write_ts_exp_tree_pointers): Rename from
9683 lto_output_ts_exp_tree_pointers.
9684 (write_ts_block_tree_pointers): Rename from
9685 lto_output_ts_block_tree_pointers.
9686 (write_ts_binfo_tree_pointers): Rename from
9687 lto_output_ts_binfo_tree_pointers.
9688 (write_ts_constructor_tree_pointers): Rename from
9689 lto_output_ts_constructor_tree_pointers.
9690 (write_ts_target_option): Rename from lto_output_ts_target_option.
9691 (write_ts_translation_unit_decl_tree_pointers): Rename from
9692 lto_output_ts_translation_unit_decl_tree_pointers.
9693 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
9694 Rename from lto_streamer_cache_add_to_node_array.
9695 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
9696 (record_common_node): Rename from lto_record_common_node.
9697
9698 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
9699 declarations.
9700 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
9701 function.
9702 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
9703 unused function.
9704 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
9705 (ipa-reference.o): Likewise.
9706 * lto-section-out.c: Include data-streamer.h.
9707 * ipa-reference.c: Include data-streamer.h.
9708
9709 2011-08-12 Nick Clifton <nickc@redhat.com>
9710
9711 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9712 * doc/md.texi (cmpstrn): Note that the comparison stops if both
9713 fetched bytes are zero.
9714 (cmpstr): Likewise.
9715 (cmpmem): Note that the comparison does not stop if both of the
9716 fetched bytes are zero.
9717
9718 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
9719
9720 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
9721 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
9722 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
9723 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
9724 to integer_type_node.
9725 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
9726 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
9727 * builtins.c (expand_builtin_in): Ditto.
9728 (mathfn_built_in_1): Ditto.
9729 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
9730 BUILT_IN_IFLOOR.
9731 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
9732 BUILT_IN_IROUND.
9733 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
9734 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
9735 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
9736
9737 2011-08-12 Richard Guenther <rguenther@suse.de>
9738
9739 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
9740
9741 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
9742
9743 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
9744
9745 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
9746
9747 * config/arm/arm.c (get_label_padding): New function.
9748 (create_fix_barrier, arm_reorg): Use it.
9749
9750 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
9751
9752 PR target/49781
9753 * config/i386/i386.md (*lea_5_zext): New.
9754 (*lea_6_zext): Ditto.
9755 * config/i386/predicates.md (const_32bit_mask): New predicate.
9756 (lea_address_operand): Reject AND.
9757 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
9758 const_32bit_mask immediate.
9759 (ix86_print_operand_address): Handle AND.
9760 (memory_address_length): Ditto.
9761
9762 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
9763 Brian Hackett <bhackett1024@gmail.com>
9764
9765 * plugin.def: Add event for finish_decl.
9766 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
9767 * c-decl.c (finish_decl): Invoke callbacks on above event.
9768 * doc/plugins.texi: Document above event.
9769
9770 2011-08-11 Richard Guenther <rguenther@suse.de>
9771
9772 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
9773 lookups, make looking through aggregate copies stronger.
9774
9775 2011-08-11 Richard Henderson <rth@redhat.com>
9776
9777 PR bootstrap/50018
9778 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
9779
9780 2011-08-11 Richard Guenther <rguenther@suse.de>
9781
9782 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
9783 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
9784 (vrp_visit_stmt): Likewise.
9785
9786 2011-08-11 Richard Guenther <rguenther@suse.de>
9787
9788 PR middle-end/50040
9789 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
9790 load of the other piece with TREE_NO_WARNING.
9791 * tree-flow.h (warn_uninit): Adjust prototype.
9792 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
9793 the base variable and the expression that is used separately.
9794 Properly query all TREE_NO_WARNING flags.
9795 (struct walk_data): Remove.
9796 (warn_uninitialized_var): Likewise.
9797 (warn_uninitialized_vars): Do not walk gimple pieces but simply
9798 look at all SSA uses of the statement. Handle unused memory
9799 separately.
9800 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
9801
9802 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
9803
9804 * config/rx/rx.md (movsicc): Allow register to register transfers.
9805 (*movsicc): Likewise.
9806 (*stcc): Restrict this pattern to EQ and NE compares.
9807 (*stcc_reg): New pattern. Works for any comparison but only for
9808 register transfers.
9809
9810 2011-08-11 Diego Novillo <dnovillo@google.com>
9811
9812 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
9813 Call stream_write_tree instead of output_record_start.
9814 (lto_output_ts_binfo_tree_pointers): Likewise.
9815
9816 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
9817 Convert it to a macro.
9818 (stream_read_tree): Likewise.
9819
9820 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
9821 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
9822
9823 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
9824 and tree_read_bitfields.
9825 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
9826 (lto_write_tree): Call it.
9827 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
9828 * streamer-hooks.h (struct streamer_hooks): Remove fields
9829 name, is_streamable and alloc_tree. Update all users.
9830 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
9831 (lto_materialize_tree): ... here.
9832 Handle CALL_EXPR codes.
9833 Remove call to lto_streamer_cache_append.
9834 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
9835 * tree-streamer.h (tree_read_bitfields): Declare.
9836
9837 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
9838 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
9839 * tree-streamer.h (stream_read_tree): New. Replace all calls
9840 to lto_input_tree with it.
9841 (stream_write_tree): New. Replace all calls to lto_output_tree,
9842 lto_output_tree_ref and lto_output_tree_or_ref with it.
9843 * lto-streamer-in.c (lto_read_tree): Inline code from
9844 lto_streamer_read_tree.
9845 (lto_input_tree): Move from tree-streamer-in.c.
9846 * lto-streamer-out.c (lto_output_tree_ref): Make static.
9847 Remove handling of NULL values for EXPR.
9848 Do not handle EXPRs that are not indexable.
9849 (lto_write_tree): Move from tree-streamer-out.c.
9850 Inline lto_streamer_write_tree.
9851 (lto_output_tree): Move from tree-streamer-out.c.
9852 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
9853 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
9854 (lto_preload_common_nodes): Likewise.
9855 Remove assertions and adjustments for nodes
9856 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
9857 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
9858 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
9859 * lto-streamer.h (lto_input_tree): Declare.
9860 (lto_output_tree_ref): Remove.
9861 * streamer-hooks.h (struct streamer_hooks): Remove fields
9862 preload_common_nodes, indexable_with_decls_p,
9863 pack_value_fields, unpack_value_fields and output_tree_header.
9864 Update all users.
9865 * tree-streamer-in.c (lto_materialize_tree): Make extern.
9866 (lto_input_tree_pointers): Likewise.
9867 (lto_read_tree): Move to lto-streamer-in.c.
9868 (lto_input_integer_cst): Make extern.
9869 (lto_get_pickled_tree): Likewise.
9870 (lto_get_builtin_tree): Likewise.
9871 (lto_input_tree): Move to lto-streamer-in.c.
9872 * tree-streamer-out.c (pack_value_fields): Make extern.
9873 (lto_output_tree_or_ref): Remove. Replace all callers with
9874 calls to stream_write_tree.
9875 (lto_output_builtin_tree): Make extern.
9876 (lto_streamer_write_tree): Inline into lto_write_tree.
9877 (lto_output_tree_pointers): Make extern.
9878 (lto_output_tree_header): Likewise.
9879 (lto_output_integer_cst): Likewise.
9880 (lto_write_tree): Move to lto-streamer-out.c.
9881 (lto_output_tree): Likewise.
9882 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
9883 (preload_common_nodes): Likewise.
9884 (lto_streamer_cache_create): Call it.
9885 * tree-streamer.h: Include streamer-hooks.h.
9886 (stream_write_tree): New.
9887 (stream_read_tree): New.
9888 (lto_input_tree): Remove.
9889 (lto_materialize_tree): Declare.
9890 (lto_input_tree_pointers): Declare.
9891 (lto_get_pickled_tree): Declare.
9892 (lto_get_builtin_tree): Declare.
9893 (lto_input_integer_cst): Declare.
9894 (lto_output_tree_header): Declare.
9895 (pack_value_fields): Declare.
9896 (lto_output_tree_pointers): Declare.
9897 (lto_output_integer_cst): Declare.
9898 (lto_output_builtin_tree): Declare.
9899
9900 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
9901
9902 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
9903 only if producer writes to the register given by regno.
9904
9905 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
9906 Alexander Monakov <amonakov@ispras.ru>
9907
9908 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
9909 (sched_get_condition_with_rev_uncached): ... this. Factor out
9910 condition caching logic into ...
9911 (sched_get_condition_with_rev): ... this. Reimplement. Do not
9912 attempt to use cache for instructions with zero luid.
9913 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
9914 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
9915
9916 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
9917
9918 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
9919 get_seqno_for_a_jump. Update the caller.
9920 (get_seqno_by_succs): New. Use it ...
9921 (get_seqno_for_a_jump): ... here to find a seqno if looking at
9922 predecessors was not sufficient.
9923 (get_seqno_by_preds): Include head in iteration range, exclude insn.
9924
9925 2011-08-11 Dmitry Melnik <dm@ispras.ru>
9926
9927 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
9928
9929 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
9930
9931 * sel-sched-ir.h (register_unavailable_p): Declare.
9932 * sel-sched-ir.c (register_unavailable_p): New. Use it...
9933 (set_unavailable_target_for_expr): ... here to properly test
9934 availability of a register.
9935 (speculate_expr): Ditto.
9936 * sel-sched.c (substitute_reg_in_expr): Ditto.
9937 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
9938
9939 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
9940
9941 * sel-sched.c (verify_target_availability): Fix usage of
9942 hard_regno_nregs.
9943
9944 2011-08-11 Dmitry Melnik <dm@ispras.ru>
9945
9946 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
9947 recognized by cannot_copy_insn_p hook and volatile instructions.
9948
9949 2011-08-11 Dmitry Melnik <dm@ispras.ru>
9950
9951 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
9952
9953 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
9954
9955 * doc/md.texi (define_bypass): Say that the instruction names can
9956 be filename-style globs.
9957 * Makefile.in (FNMATCH_H): Define.
9958 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
9959 * genattrtab.c: Include fnmatch.h.
9960 (bypass_list): Change field name from "insn" to "pattern".
9961 (gen_bypass_1): Update accordingly.
9962 (process_bypasses): Use fnmatch to check for matches between
9963 insn reservations and define_bypasses.
9964 * genautomata.c: Include fnmatch.h.
9965 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
9966 and out_pattern respectively.
9967 (gen_bypass, insert_bypass): Update accordingly.
9968 (for_each_matching_insn, process_bypass_2, process_bypass_1)
9969 (process_bypass): New functions.
9970 (process_decls): Use process_bypass. Update after field name changes.
9971
9972 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
9973
9974 PR target/49687
9975 * config/avr/avr.md (smulqi3_highpart): New insn.
9976 (umulqi3_highpart): New insn.
9977 (*subqi3.ashiftrt7): New insn.
9978 (smulhi3_highpart): New expander.
9979 (umulhi3_highpart): Nex expander.
9980 (*smulhi3_highpart_call): New insn.
9981 (*umulhi3_highpart_call): New insn.
9982 (extend_u): New code attribute.
9983 (extend_prefix): Rename code attribute to extend_su.
9984 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
9985 widening QI/HI multiply.
9986
9987 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
9988
9989 PR tree-optimization/50039
9990 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
9991 that DEF_STMT has a stmt_vec_info.
9992
9993 2011-08-10 Richard Guenther <rguenther@suse.de>
9994
9995 * tree.h (can_trust_pointer_alignment): Remove.
9996 * builtins.c (can_trust_pointer_alignment): Remove.
9997
9998 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
9999
10000 * c-typeck.c (scalar_to_vector): New function. Try scalar to
10001 vector conversion.
10002 (stv_conv): New enum for scalar_to_vector return type.
10003 (build_binary_op): Adjust.
10004 * doc/extend.texi: Description of scalar to vector expansion.
10005
10006 2011-08-10 Richard Guenther <rguenther@suse.de>
10007
10008 * tree.h (get_pointer_alignment): Remove max-align argument.
10009 (get_object_alignment): Likewise.
10010 * builtins.c (get_object_alignment_1): Adjust.
10011 (get_object_alignment): Remove max-align argument.
10012 (get_pointer_alignment): Likewise.
10013 (expand_builtin_strlen): Adjust.
10014 (expand_builtin_memcpy): Likewise.
10015 (expand_builtin_mempcpy_args): Likewise.
10016 (expand_builtin_strncpy): Likewise.
10017 (expand_builtin_memset_args): Likewise.
10018 (expand_builtin_memcmp): Likewise.
10019 (expand_builtin_strcmp): Likewise.
10020 (expand_builtin_strncmp): Likewise.
10021 (get_builtin_sync_mem): Likewise.
10022 (fold_builtin_memset): Likewise.
10023 (fold_builtin_memory_op): Likewise.
10024 (expand_builtin_memory_chk): Likewise.
10025 * emit-rtl.c (get_mem_align_offset): Likewise.
10026 (set_mem_attributes_minus_bitpos): Likewise.
10027 * expr.c (expand_assignment): Likewise.
10028 (expand_expr_real_1): Likewise.
10029 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
10030 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
10031 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
10032 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
10033 * value-prof.c (gimple_stringops_transform): Likewise.
10034
10035 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
10036
10037 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
10038 * doc/tm.texi: Regenerate.
10039
10040 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
10041
10042 PR target/29560
10043 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
10044 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
10045 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
10046 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
10047 shift target is unused.
10048
10049 2011-08-10 Richard Guenther <rguenther@suse.de>
10050
10051 PR tree-optimization/49937
10052 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
10053 using get_object_alignment_1.
10054
10055 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
10056
10057 * config/i386/i386.c (ix86_emit_i387_round): New function.
10058 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
10059 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
10060 Use ix86_emit_i387_round to expand round function for i387 math.
10061 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
10062 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
10063
10064 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10065
10066 * config/sync.c: Move to ../libgcc.
10067 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
10068 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
10069 Remove.
10070
10071 2011-08-09 Anatoly Sokolov <aesok@post.ru>
10072
10073 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
10074 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
10075 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
10076 Change 'from' and 'to' arguments type to reg_class_t.
10077 (TARGET_REGISTER_MOVE_COST): Define.
10078
10079 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
10080
10081 PR target/50026
10082 Revert:
10083 PR rtl-optimization/49990
10084 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10085 ignore classes which can not change mode.
10086 (find_costs_and_classes): Ditto.
10087
10088 2011-08-09 Richard Guenther <rguenther@suse.de>
10089
10090 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
10091 information for ranges with only negative values.
10092 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
10093 BIT_AND_EXPR handling to handle ranges with negative values.
10094
10095 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
10096
10097 * config/i386/i386.c: Remove traling spaces.
10098 * config/i386/sse.md: Likewise.
10099 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
10100 (*fma_fmsub_<mode>): Likewise.
10101 (*fma_fnmadd_<mode>): Likewise.
10102 (*fma_fnmsub_<mode>): Likewise.
10103
10104 2011-08-09 Nick Clifton <nickc@redhat.com>
10105
10106 * config/rx/rx.md: Disable extender peepholes at -O3.
10107
10108 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
10109
10110 PR target/49781
10111 * config/i386/i386.md (reload_noff_load): New.
10112 (reload_noff_store): Ditto.
10113 * config/i386/i386.c (ix86_secondary_reload): Use
10114 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
10115 double-word moves from/to non-offsetable addresses instead of
10116 generating XMM temporary.
10117
10118 2011-08-09 Anatoly Sokolov <aesok@post.ru>
10119
10120 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
10121
10122 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
10123
10124 PR tree-optimization/50014
10125 * tree-vect-loop.c (vectorizable_reduction): Get def type before
10126 calling vect_get_vec_def_for_stmt_copy ().
10127
10128 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
10129
10130 PR rtl-optimization/49990
10131 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
10132 ignore classes which can not change mode.
10133 (find_costs_and_classes): Ditto.
10134
10135 2011-08-08 Richard Henderson <rth@redhat.com>
10136
10137 PR middle-end/49990
10138 * config/i386/i386.c (ix86_expand_prologue): Call
10139 for SEH target gen_prologue_use instead of gen_blockage
10140 at prologue's end.
10141
10142 2011-08-08 Martin Jambor <mjambor@suse.cz>
10143
10144 PR middle-end/49923
10145 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
10146 memory alignment.
10147
10148 2011-08-08 Diego Novillo <dnovillo@google.com>
10149
10150 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
10151 (DATA_STREAMER_H): New.
10152 (GIMPLE_STREAMER_H): New.
10153 (TREE_STREAMER_H): New.
10154 (STREAMER_HOOKS_H): New.
10155 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
10156 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
10157 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
10158 (data-streamer.o): New.
10159 (data-streamer-in.o): New.
10160 (data-streamer-out.o): New.
10161 (gimple-streamer-in.o): New.
10162 (gimple-streamer-out.o): New.
10163 (streamer-hooks.o): New.
10164 (tree-streamer.o): New.
10165 (tree-streamer-in.o): New.
10166 (tree-streamer-out.o): New.
10167 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10168 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
10169 GIMPLE_STREAMER_H and TREE_STREAMER_H.
10170 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
10171 GIMPLE_STREAMER_H and TREE_STREAMER_H.
10172 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
10173 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
10174 (ipa-inline-analysis.o): Likewise.
10175 (ipa-pure-const.o): Likewise.
10176 * data-streamer-in.c: New.
10177 * data-streamer-out.c: New.
10178 * data-streamer.c: New.
10179 * data-streamer.h: New.
10180 * gimple-streamer-in.c: New.
10181 * gimple-streamer-out.c: New.
10182 * gimple-streamer.h: New.
10183 * ipa-inline-analysis.c: Include data-streamer.h.
10184 * ipa-prop.c: Include data-streamer.h.
10185 * ipa-pure-const.c: Include data-streamer.h.
10186 * lto-cgraph.c: Include data-streamer.h.
10187 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
10188 (lto_input_widest_uint_uleb128): Likewise.
10189 (lto_input_sleb128): Likewise.
10190 (bp_unpack_var_len_unsigned): Likewise.
10191 (bp_unpack_var_len_int): Likewise.
10192 * lto-section-out.c (lto_output_uleb128_stream): Move to
10193 data-streamer-out.c.
10194 (lto_output_widest_uint_uleb128_stream): Likewise.
10195 (lto_output_sleb128_stream): Likewise.
10196 (bp_pack_var_len_unsigned): Likewise.
10197 (bp_pack_var_len_int): Likewise.
10198 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
10199 (struct string_slot): Remove. Update all users.
10200 (lto_tag_check_set): Make extern.
10201 (lto_tag_check_range): Move to lto-streamer.h.
10202 (lto_tag_check): Likewise.
10203 (hash_string_slot_node): Remove. Update all users.
10204 (eq_string_slot_node): Remove. Update all users.
10205 (string_for_index): Move to data-streamer-in.c
10206 (input_string_internal): Likewise.
10207 (input_string_cst): Move to tree-streamer-in.c.
10208 (input_identifier): Likewise.
10209 (lto_input_string): Move to data-streamer-in.c
10210 (input_record_start): Move to data-streamer.h
10211 (canon_file_name): Use new definition of struct string_slot
10212 from data-streamer.h. Set S_SLOT.LEN.
10213 (lto_input_location): Make extern.
10214 (lto_input_chain): Move to tree-streamer-in.c.
10215 (lto_init_eh): Make extern.
10216 (input_phi): Move to gimple-streamer-in.c.
10217 (input_gimple_stmt): Likewise.
10218 (input_bb): Likewise.
10219 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
10220 (unpack_ts_real_cst_value_fields): Likewise.
10221 (unpack_ts_fixed_cst_value_fields): Likewise.
10222 (unpack_ts_decl_common_value_fields): Likewise.
10223 (unpack_ts_decl_wrtl_value_fields): Likewise.
10224 (unpack_ts_decl_with_vis_value_fields): Likewise.
10225 (unpack_ts_function_decl_value_fields): Likewise.
10226 (unpack_ts_type_common_value_fields): Likewise.
10227 (unpack_ts_block_value_fields): Likewise.
10228 (unpack_ts_translation_unit_decl_value_fields): Likewise.
10229 (unpack_value_fields): Likewise.
10230 (lto_materialize_tree): Likewise.
10231 (lto_input_ts_common_tree_pointers): Likewise.
10232 (lto_input_ts_vector_tree_pointers): Likewise.
10233 (lto_input_ts_complex_tree_pointers): Likewise.
10234 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
10235 (lto_input_ts_decl_common_tree_pointers): Likewise.
10236 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
10237 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
10238 (lto_input_ts_field_decl_tree_pointers): Likewise.
10239 (lto_input_ts_function_decl_tree_pointers): Likewise.
10240 (lto_input_ts_type_common_tree_pointers): Likewise.
10241 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10242 (lto_input_ts_list_tree_pointers): Likewise.
10243 (lto_input_ts_vec_tree_pointers): Likewise.
10244 (lto_input_ts_exp_tree_pointers): Likewise.
10245 (lto_input_ts_block_tree_pointers): Likewise.
10246 (lto_input_ts_binfo_tree_pointers): Likewise.
10247 (lto_input_ts_constructor_tree_pointers): Likewise.
10248 (lto_input_ts_target_option): Likewise.
10249 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
10250 (lto_input_tree_pointers): Likewise.
10251 (lto_get_pickled_tree): Likewise.
10252 (lto_get_builtin_tree): Likewise.
10253 (lto_read_tree): Likewise.
10254 (lto_input_integer_cst): Likewise.
10255 (lto_input_tree): Likewise.
10256 * lto-streamer-out.c: Include data-streamer.h,
10257 gimple-streamer.h and streamer-hooks.h.
10258 (struct string_slot): Move to data-streamer.h.
10259 (hash_string_slot_node): Likewise.
10260 (eq_string_slot_node): Likewise.
10261 (lto_string_index): Move to data-streamer-out.c.
10262 (lto_output_string_with_length): Likewise.
10263 (lto_output_string): Likewise.
10264 (output_string_cst): Move to tree-streamer-out.c.
10265 (output_identifier): Likewise.
10266 (output_zero): Move to data-streamer-out.c
10267 (output_uleb128): Likewise.
10268 (output_sleb128): Likewise.
10269 (output_record_start): Move to data-streamer.h
10270 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
10271 (pack_ts_real_cst_value_fields): Likewise.
10272 (pack_ts_fixed_cst_value_fields): Likewise.
10273 (pack_ts_decl_common_value_fields): Likewise.
10274 (pack_ts_decl_wrtl_value_fields): Likewise.
10275 (pack_ts_decl_with_vis_value_fields): Likewise.
10276 (pack_ts_function_decl_value_fields): Likewise.
10277 (pack_ts_type_common_value_fields): Likewise.
10278 (pack_ts_block_value_fields): Likewise.
10279 (pack_ts_translation_unit_decl_value_fields): Likewise.
10280 (pack_value_fields): Likewise.
10281 (lto_output_chain): Likewise.
10282 (lto_output_ts_common_tree_pointers): Likewise.
10283 (lto_output_ts_vector_tree_pointers): Likewise.
10284 (lto_output_ts_complex_tree_pointers): Likewise.
10285 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
10286 (lto_output_ts_decl_common_tree_pointers): Likewise.
10287 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
10288 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
10289 (lto_output_ts_field_decl_tree_pointers): Likewise.
10290 (lto_output_ts_function_decl_tree_pointers): Likewise.
10291 (lto_output_ts_type_common_tree_pointers): Likewise.
10292 (lto_output_ts_type_non_common_tree_pointers): Likewise.
10293 (lto_output_ts_list_tree_pointers): Likewise.
10294 (lto_output_ts_vec_tree_pointers): Likewise.
10295 (lto_output_ts_exp_tree_pointers): Likewise.
10296 (lto_output_ts_block_tree_pointers): Likewise.
10297 (lto_output_ts_binfo_tree_pointers): Likewise.
10298 (lto_output_ts_constructor_tree_pointers): Likewise.
10299 (lto_output_ts_target_option): Likewise.
10300 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
10301 (lto_output_tree_pointers): Likewise.
10302 (lto_output_tree_header): Likewise.
10303 (lto_output_builtin_tree): Likewise.
10304 (lto_write_tree): Likewise.
10305 (lto_output_integer_cst): Likewise.
10306 (lto_output_tree): Likewise.
10307 (output_phi): Move to gimple-streamer-out.c.
10308 (output_gimple_stmt): Likewise.
10309 (output_bb): Likewise.
10310 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
10311 (streamer_hooks): Move to streamer-hooks.c.
10312 (check_handled_ts_structures): Move to tree-streamer.c
10313 (lto_streamer_cache_add_to_node_array): Likewise.
10314 (lto_streamer_cache_insert_1): Likewise.
10315 (lto_streamer_cache_insert): Likewise.
10316 (lto_streamer_cache_insert_at): Likewise.
10317 (lto_streamer_cache_append): Likewise.
10318 (lto_streamer_cache_lookup): Likewise.
10319 (lto_streamer_cache_get): Likewise.
10320 (lto_record_common_node): Likewise.
10321 (lto_preload_common_nodes): Likewise.
10322 (lto_streamer_cache_create): Likewise.
10323 (lto_streamer_cache_delete): Likewise.
10324 (streamer_hooks_init): Move to streamer-hooks.c.
10325 * lto-streamer.h: Include diagnostic.h
10326 (struct output_block, struct lto_input_block,
10327 struct data_in, struct bitpack_d): Remove forward declarations.
10328 (struct bitpack_d): Move to data-streamer.h.
10329 (struct lto_streamer_cache_d): Move to tree-streamer.h.
10330 (struct streamer_hooks): Move to streamer-hooks.h.
10331 (bp_pack_var_len_unsigned): Move to data-streamer.h.
10332 (bp_pack_var_len_int): Likewise.
10333 (bp_unpack_var_len_unsigned): Likewise.
10334 (bp_unpack_var_len_int): Likewise.
10335 (lto_input_location): Declare.
10336 (lto_tag_check_set): Declare.
10337 (lto_init_eh): Declare.
10338 (lto_output_tree_ref): Declare.
10339 (lto_output_location): Declare.
10340 (bitpack_create): Move to data-streamer.h.
10341 (bp_pack_value): Likewise.
10342 (lto_output_bitpack): Likewise.
10343 (lto_input_bitpack): Likewise.
10344 (bp_unpack_value): Likewise.
10345 (lto_output_1_stream): Likewise.
10346 (lto_input_1_unsigned): Likewise.
10347 (lto_output_int_in_range): Likewise.
10348 (lto_input_int_in_range): Likewise.
10349 (bp_pack_int_in_range): Likewise.
10350 (bp_unpack_int_in_range): Likewise.
10351 (lto_output_enum): Likewise.
10352 (lto_input_enum): Likewise.
10353 (bp_pack_enum): Likewise.
10354 (bp_unpack_enum): Likewise.
10355 * streamer-hooks.c: New.
10356 * streamer-hooks.h: New.
10357 * tree-streamer-in.c: New.
10358 * tree-streamer-out.c: New.
10359 * tree-streamer.c: New.
10360 * tree-streamer.h: New.
10361
10362 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10363
10364 * gthr-posix95.h: Remove.
10365 * gthr.h [_PTHREADS95]: Remove.
10366 * configure.ac (enable_threads): Remove posix95.
10367 * configure: Regenerate.
10368 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
10369
10370 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
10371
10372 PR target/49781
10373 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
10374 SImode addresses.
10375 (ix86_print_operand_address): Handle zero-extended addresses.
10376 (memory_address_length): Add length of addr32 prefix for
10377 zero-extended addresses.
10378 (ix86_secondary_reload): Handle moves to/from double-word general
10379 registers from/to zero-extended addresses.
10380 * config/i386/predicates.md (lea_address_operand): Reject
10381 zero-extended operands.
10382
10383 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
10384
10385 PR other/48007
10386 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
10387
10388 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
10389 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
10390
10391 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
10392 (_Unwind_Context_Reg_Val): Likewise.
10393 (_Unwind_Get_Unwind_Word): Likewise.
10394 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
10395 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
10396 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
10397 for EXTENDED_CONTEXT_BIT.
10398 (__frame_state_for): Likewise.
10399 (uw_init_context_1): Likewise.
10400 (_Unwind_GetGR): Updated.
10401 (_Unwind_SetGR): Likewise.
10402 (_Unwind_GetGRPtr): Likewise.
10403 (_Unwind_SetGRPtr): Likewise.
10404 (_Unwind_SetGRValue): Likewise.
10405 (_Unwind_GRByValue): Likewise.
10406 (uw_install_context_1): Likewise.
10407
10408 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
10409 ASSUME_EXTENDED_UNWIND_CONTEXT.
10410 * doc/tm.texi: Regenerated.
10411
10412 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10413
10414 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
10415
10416 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10417
10418 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
10419 Linux/GNU-specific.
10420 (DEC Alpha Options, -mtune): Likewise.
10421 (MIPS Options, -march): native is supported on IRIX.
10422
10423 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10424
10425 * config/sparc/driver-sparc.c: New file.
10426 * config/sparc/x-sparc: New file.
10427 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
10428 * config/sparc/sparc.opt (native): New value for enum processor_type.
10429 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
10430 * config/sparc/sparc.c (sparc_option_override): Abort if
10431 PROCESSOR_NATIVE gets here.
10432 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
10433 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
10434 DRIVER_SELF_SPECS): Define.
10435 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
10436 (SPARC Options, -mtune): Likewise.
10437 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
10438 Substitute result.
10439 * configure: Regenerate.
10440 * Makefile.in (EXTRA_GCC_LIBS): Set.
10441 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
10442 (cpp$(exeext)): Likewise.
10443
10444 2011-08-08 Richard Guenther <rguenther@suse.de>
10445
10446 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
10447 split out from ...
10448 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
10449 by composition.
10450
10451 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
10452
10453 PR tree-optimization/50005
10454 * ipa-inline-analysis (remap_predicate): Add cast to
10455 silence signed/unsigned comparison warning.
10456
10457 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
10458
10459 * modulo-sched.c (get_sched_window): Use a table for the debug output.
10460 Print the current ii.
10461 (sms_schedule_by_order): Reduce whitespace in dump line.
10462
10463 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
10464
10465 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
10466 and one loop for successors. Fix upper bound of memory range.
10467
10468 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
10469
10470 PR target/50001
10471 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
10472 (TARGET_INSTANTIATE_DECLS): New define.
10473
10474 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
10475 Mikael Morin <mikael.morin@sfr.fr>
10476
10477 * Makefile.in (INCLUDES_FOR_TARGET): New.
10478 (LIBGCC2_CFLAGS): Use it.
10479 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
10480
10481 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
10482
10483 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
10484 frame->save_regs_using_mov calculation.
10485
10486 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
10487
10488 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
10489 * config/i386/sse.md (castmode): New mode attribute.
10490 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
10491 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
10492
10493 2011-08-05 Jan Hubicka <jh@suse.cz>
10494
10495 PR middle-end/49494
10496 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
10497
10498 2011-08-05 Jan Hubicka <jh@suse.cz>
10499
10500 PR middle-end/49500
10501 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
10502 handle aliases.
10503 (create_emultls_var):New function.
10504 (ipa_lower_emutls): Handle aliases correctly.
10505
10506 2011-08-05 Jan Hubicka <jh@suse.cz>
10507
10508 PR middle-end/49735
10509 * ipa-inline.c (recursive_inlining): Look through aliases.
10510
10511 2011-08-05 Jason Merrill <jason@redhat.com>
10512
10513 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
10514 declarations to beginning of function.
10515
10516 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
10517
10518 PR rtl-optimization/49900
10519 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
10520 ensure basic blocks stay in the same order.
10521
10522 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
10523
10524 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
10525 store_bit_field.
10526 (s390_expand_atomic): Same.
10527
10528 2011-08-05 Richard Henderson <rth@redhat.com>
10529
10530 PR rtl-opt/49977
10531 * dwarf2cfi.c (scan_insn_after): Split out of ...
10532 (scan_trace): ... here. Correctly place notes wrt sequences.
10533
10534 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
10535 Richard Henderson <rth@redhat.com>
10536
10537 PR rtl-opt/49982
10538 * expr.c (fixup_args_size_notes): Look through no-op moves.
10539
10540 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
10541
10542 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
10543 of "m" for operand 0. Add type and mode attribute.
10544 (*pushxf_nointeger"): Use "<" constraint for operand 0.
10545 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
10546 constraint instead of "o" for opreand 1.
10547 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
10548 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
10549 operand 0, alternative 4.
10550 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
10551
10552 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
10553
10554 * config/i386/predicates.md (lea_address_operand): Rename from
10555 no_seg_address_operand.
10556 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
10557 (*lea_1_zext): Ditto.
10558 (*lea_2): Ditto.
10559 (*lea_2_zext): Ditto.
10560
10561 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
10562
10563 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
10564 parts.base and parts.index.
10565 * config/i386/predicates.md (aligned_operand): Ditto.
10566 (cmpxchg8b_pic_memory_operand): Ditto.
10567
10568 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10569
10570 * config/soft-fp: Move to ../libgcc.
10571 * Makefile.in (SFP_MACHINE): Remove.
10572 (libgcc-support): Remove $(SFP_MACHINE) dependency.
10573 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
10574 * config/arm/t-arm-softfp: Move to
10575 ../libgcc/config/arm/t-softfp.
10576 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
10577 * config/c6x/t-c6x-softfp: Remove.
10578 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
10579 * config/i386/t-fprules-softfp: Move to
10580 ../libgcc/config/t-softfp-tf.
10581 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
10582 * config/ia64/t-fprules-softfp: Remove.
10583 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
10584 * config/lm32/t-fprules-softfp: Remove.
10585 * config/moxie/sfp-machine.h: Remove.
10586 * config/moxie/t-moxie-softfp: Remove.
10587 * config/rs6000/darwin-ldouble-format: Move to
10588 ../libgcc/config/rs6000/ibm-ldouble-format.
10589 * config/rs6000/darwin-ldouble.c: Move to
10590 ../libgcc/config/rs6000/ibm-ldouble.c
10591 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
10592 * config/rs6000/libgcc-ppc64.ver: Likewise.
10593 * config/rs6000/sfp-machine.h: Likewise.
10594 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
10595 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
10596 (LIB2FUNCS_EXTRA): Remove.
10597 (TARGET_LIBGCC2_CFLAGS): Remove.
10598 * config/rs6000/t-aix52: Likewise
10599 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10600 $(srcdir)/config/rs6000/darwin-ldouble.c.
10601 (SHLIB_MAPFILES): Remove.
10602 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
10603 $(srcdir)/config/rs6000/darwin-ldouble.c.
10604 * config/rs6000/t-fprules-softfp: Move to
10605 ../libgcc/config/t-softfp-sfdf.
10606 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
10607 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
10608 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
10609 $(srcdir)/config/rs6000/darwin-ldouble.c.
10610 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
10611 * config/score/t-score-softfp: Remove.
10612 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
10613 soft-fp/t-softfp from tmake_file.
10614 (arm*-*-uclinux*): Likewise.
10615 (arm*-*-ecos-elf): Likewise.
10616 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
10617 (arm*-*-rtems*): Likewise.
10618 (arm*-*-elf): Likewise.
10619 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
10620 tmake_file.
10621 (moxie-*-uclinux*): Likewise.
10622 (moxie-*-rtems*): Likewise.
10623 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
10624 tmake_file.
10625 (lm32-*-rtems*): Likewise.
10626 (lm32-*-uclinux*): Likewise.
10627 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
10628 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10629 (powerpc-*-linux*, powerpc64-*-linux*): Remove
10630 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
10631 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
10632 tmake_file.
10633 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
10634 tmake_file.
10635 (tic6x-*-uclinux): Likewise.
10636 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
10637 soft-fp/t-softfp from tmake_file.
10638 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
10639 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
10640 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
10641 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
10642 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
10643
10644 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10645
10646 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
10647 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
10648 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
10649 TPBIT, TPBIT_FUNCS.
10650 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
10651 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
10652 Remove.
10653 * config/arm/t-vxworks: Likewise.
10654 * config/arm/t-wince-pe: Likewise.
10655 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
10656 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10657 * config/bfin/t-bfin-elf: Likewise.
10658 * config/bfin/t-bfin-linux: Likewise.
10659 * config/bfin/t-bfin-uclinux: Likewise.
10660 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
10661 Remove.
10662 * config/fr30/t-fr30: Likewise.
10663 * config/frv/t-frv: Likewise.
10664 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
10665 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10666 * config/m32c/t-m32c: Likewise.
10667 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
10668 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10669 * config/mcore/t-mcore: Likewise.
10670 * config/mep/t-mep: Likewise.
10671 * config/microblaze/t-microblaze: Likewise.
10672 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
10673 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10674 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
10675 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10676 * config/mn10300/t-linux: Remove.
10677 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10678 * config/pdp11/t-pdp11: Likewise.
10679 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
10680 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
10681 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10682 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
10683 * config/rs6000/t-aix52: Likewise.
10684 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
10685 $(srcdir)/config/rs6000/ppc64-fp.c.
10686 * config/rs6000/t-fprules-fpbit: Remove.
10687 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
10688 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10689 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
10690 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10691 * config/sparc/t-elf: Likewise.
10692 * config/sparc/t-leon: Likewise.
10693 * config/sparc/t-leon3: Likewise.
10694 * config/spu/t-spu-elf: Likewise.
10695 (DPBIT_FUNCS): Remove.
10696 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
10697 * config/v850/t-v850: Likewise.
10698 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
10699 (avr-*-*): Likewise.
10700 (h8300-*-rtems*): Set libgcc_tm_file.
10701 (h8300-*-elf*): Likewise.
10702 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
10703 tmake_file.
10704 (powerpc-*-eabisim*): Likewise.
10705 (powerpc-*-elf*): Likewise.
10706 (powerpc-*-eabialtivec*): Likewise.
10707 (powerpc-xilinx-eabi*): Likewise.
10708 (powerpc-*-eabi*): Likewise.
10709 (powerpc-*-rtems*): Likewise.
10710 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
10711 (powerpcle-*-elf*): Likewise.
10712 (powerpcle-*-eabisim*): Likewise.
10713 (powerpcle-*-eabi*): Likewise.
10714 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
10715 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
10716 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
10717 Remove.
10718
10719 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10720
10721 * Makefile.in (UNWIND_H): Remove.
10722 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
10723 ../libgcc/Makefile.in.
10724 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
10725 (LIBUNWINDDEP): Remove.
10726 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
10727 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
10728 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
10729 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
10730 Don't copy $(UNWIND_H).
10731 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
10732 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
10733 * aclocal.m4: Regenerate.
10734 * configure: Regenerate.
10735 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
10736 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
10737 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
10738 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
10739 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
10740 * config/arm/libunwind.S, config/arm/pr-support.c,
10741 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
10742 ../libgcc/config/arm.
10743 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
10744 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
10745 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
10746 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
10747 ($(T)frvend$(objext)): Likewise.
10748 * config/ia64/t-glibc (LIB2ADDEH): Remove.
10749 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
10750 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
10751 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
10752 ../libgcc/config/ia64.
10753 * config/ia64/t-hpux (LIB2ADDEH): Remove.
10754 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
10755 * config/ia64/t-vms (LIB2ADDEH): Remove.
10756 * config/ia64/vms.h (UNW_IVMS_MODE,
10757 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
10758 * config/picochip/t-picochip (LIB2ADDEH): Remove.
10759 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
10760 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
10761 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
10762 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
10763 $(srcdir)/../libgcc to refer to unwinder sources.
10764 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
10765 * config/t-darwin (LIB2ADDEH): Remove.
10766 * config/t-freebsd (LIB2ADDEH): Remove.
10767 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
10768 * config/t-libunwind-elf: Move to ../libgcc/config.
10769 * config/t-linux (LIB2ADDEH): Remove.
10770 * config/t-sol2 (LIB2ADDEH): Remove.
10771 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
10772 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
10773
10774 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
10775
10776 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
10777
10778 * doc/invoke.texi: Document core-avx-i.
10779
10780 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10781
10782 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
10783
10784 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
10785
10786 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
10787 result of multiple results reduction when extracting the final
10788 value using scalar code.
10789
10790 2011-08-05 Richard Guenther <rguenther@suse.de>
10791
10792 PR tree-optimization/49984
10793 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
10794
10795 2011-08-05 Richard Guenther <rguenther@suse.de>
10796
10797 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
10798 return true for constant integer ranges.
10799 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
10800 BIT_IOR_EXPR handling.
10801
10802 2011-08-04 Kai Tietz <ktietz@redhat.com>
10803
10804 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
10805 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
10806
10807 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
10808
10809 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
10810 pattern def statement, and its access macro.
10811 (NUM_PATTERNS): Set to 5.
10812 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10813 pattern def statement.
10814 (vect_transform_loop): Likewise.
10815 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
10816 function vect_recog_over_widening_pattern ().
10817 (vect_operation_fits_smaller_type): New function.
10818 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
10819 Likewise.
10820 (vect_pattern_recog_1): Move the code that marks pattern
10821 statements to vect_mark_pattern_stmts (), and call it. Update
10822 documentation.
10823 * tree-vect-stmts.c (vect_supportable_shift): New function.
10824 (vect_analyze_stmt): Handle pattern def statement.
10825 (new_stmt_vec_info): Initialize pattern def statement.
10826
10827 2011-08-04 Richard Henderson <rth@redhat.com>
10828
10829 PR target/49964
10830 * config/i386/i386.c (ix86_expand_call): Don't create nested
10831 PARALLELs for TARGET_VZEROUPPER.
10832 (ix86_split_call_vzeroupper): Fix extraction of the original call.
10833 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
10834 recognize nested PARALLELs.
10835 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
10836 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
10837 *sibcall_value_pop_vzeroupper): Likewise.
10838
10839 2011-08-04 Richard Henderson <rth@redhat.com>
10840
10841 PR middle-end/49968
10842 * calls.c (expand_call): Use fixup_args_size_notes for
10843 emit_stack_restore.
10844 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
10845 in non-standard modes.
10846
10847 2011-08-04 Jakub Jelinek <jakub@redhat.com>
10848
10849 * gcc.c (self_spec): New variable.
10850 (static_specs): Add self_spec.
10851 (main): Call do_self_spec on "self_spec" specs after reading
10852 user specs files. Move compare_debug handling right after that.
10853
10854 2011-08-04 Richard Guenther <rguenther@suse.de>
10855
10856 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
10857 (value_range_nonnegative_p): New function.
10858 (ssa_name_nonnegative_p): Use it.
10859 (value_range_constant_singleton): New function.
10860 (op_with_constant_singleton_value_range): Use it.
10861 (extract_range_from_binary_expr_1): New function, split out from ...
10862 (extract_range_from_binary_expr): ... this. Remove fallback
10863 constant folding done here.
10864
10865 2011-08-04 Richard Guenther <rguenther@suse.de>
10866
10867 PR tree-optimization/49806
10868 * tree-vrp.c (op_with_boolean_value_range_p): New function.
10869 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
10870 a new statement for a final conversion to bool.
10871
10872 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
10873
10874 * gengtype-state.c: Include "bconfig.h" if
10875 GENERATOR_FILE is defined, "config.h" otherwise.
10876 * gengtype.c: Likewise.
10877 * gengtype-lex.l: Likewise.
10878 * gengtype-parse.c: Likewise.
10879 * Makefile.in (gengtype-lex.o-warn): New variable.
10880 (plugin_resourcesdir): Likewise.
10881 (plugin_bindir): Likewise.
10882 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
10883 (MOSTLYCLEANFILES): Add gengtype$(exeext).
10884 (native): Depend on gengtype$(exeext) is $enable_plugin
10885 is set to "yes".
10886 (gtype.state): Depend on s-gtype. Use temporary file.
10887 (gengtype-lex.o): New rule.
10888 (gengtype-parse.o): Likewise.
10889 (gengtype-state.o): Likewise.
10890 (gengtype$(exeext)): Likewise.
10891 (install-gengtype): Likewise.
10892 (gengtype.o): Likewise.
10893 (build/gengtype.o): Depend on version.h.
10894 (build/gengtype-state): Depend on double-int.h, version.h,
10895 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
10896 (install-plugin): Depend on install-gengtype.
10897
10898 2011-08-04 Jakub Jelinek <jakub@redhat.com>
10899
10900 PR middle-end/49905
10901 * tree.h (init_attributes): New prototype.
10902 * attribs.c (init_attributes): No longer static.
10903
10904 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10905
10906 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
10907 maybe_suffix.
10908
10909 2011-08-03 David Li <davidxl@google.com>
10910
10911 * tree-optimize.c (execute_fixup_cfg): Fix up entry
10912 outgoing edge counts after inlining.
10913
10914 2011-08-03 David Li <davidxl@google.com>
10915
10916 * profile.c (compute_branch_probabilities): Compute
10917 function frequency after profile annotation.
10918
10919 2011-08-04 Alan Modra <amodra@gmail.com>
10920
10921 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
10922 use_backchain_to_restore_sp initialisation.
10923 (rs6000_legitimate_offset_address_p): Simplify offset test.
10924
10925 2011-08-03 Richard Henderson <rth@redhat.com>
10926
10927 * config/spu/spu.md: Use define_c_enum instead of define_constants.
10928 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
10929 (UNSPECV_NOP): New.
10930
10931 2011-08-03 Richard Henderson <rth@redhat.com>
10932
10933 PR target/34888
10934 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
10935
10936 2011-08-03 Jakub Jelinek <jakub@redhat.com>
10937
10938 PR tree-optimization/49948
10939 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
10940
10941 2011-08-03 Anatoly Sokolov <aesok@post.ru>
10942
10943 * config/m32c/m32c.c (class_sizes): Remove.
10944 (reduce_class): Change arguments and return type to reg_class_t.
10945 Change type cc var to HARD_REG_SET. Change type best var to
10946 reg_class_t. Change type best_size var to unsigned int. Remove
10947 initialization class_sizes var. Use reg_class_size array instead
10948 of class_sizes. Use reg_class_contents array instead
10949 of class_contents.
10950
10951 2011-08-03 Richard Guenther <rguenther@suse.de>
10952
10953 PR middle-end/49958
10954 * fold-const.c (fold_binary_loc): Only associate
10955 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
10956 overflow wraps.
10957
10958 2011-08-03 Alan Modra <amodra@gmail.com>
10959
10960 PR rtl-optimization/49941
10961 * jump.c (mark_jump_label): Comment.
10962 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
10963 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
10964 (mark_used_flags): Don't mark RETURN.
10965
10966 2011-08-03 Richard Guenther <rguenther@suse.de>
10967
10968 PR tree-optimization/49938
10969 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
10970 deal with a POLYNOMIAL_CHREC.
10971
10972 2011-08-03 Revital Eres <revital.eres@linaro.org>
10973
10974 * modulo-sched.c (calculate_stage_count,
10975 calculate_must_precede_follow, get_sched_window,
10976 try_scheduling_node_in_cycle, remove_node_from_ps): Add
10977 declaration.
10978 (update_node_sched_params, set_must_precede_follow, optimize_sc):
10979 New functions.
10980 (reset_sched_times): Call update_node_sched_params.
10981 (sms_schedule): Call optimize_sc.
10982 (get_sched_window): Change function arguments.
10983 (sms_schedule_by_order): Update call to get_sched_window.
10984 Call set_must_precede_follow.
10985 (calculate_stage_count): Add function argument.
10986
10987 2011-08-02 Richard Henderson <rth@redhat.com>
10988
10989 PR target/49864
10990 PR target/49879
10991 * reg-notes.def (REG_ARGS_SIZE): New.
10992 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
10993 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
10994 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
10995 different stack levels.
10996 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
10997 (maybe_move_args_size_note): New.
10998 (combine_stack_adjustments_for_block): Use it.
10999 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
11000 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
11001 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
11002 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
11003 (cur_cfa): New.
11004 (queued_args_size): Remove.
11005 (add_cfi_args_size): Assert size is non-negative.
11006 (stack_adjust_offset, dwarf2out_args_size): Remove.
11007 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
11008 (notice_args_size, notice_eh_throw): New.
11009 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
11010 (dwarf2out_frame_debug_adjust_cfa): Likewise.
11011 (dwarf2out_frame_debug_cfa_offset): Likewise.
11012 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
11013 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
11014 (change_cfi_row): Don't emit args_size.
11015 (maybe_record_trace_start_abnormal): Split out from ...
11016 (maybe_record_trace_start): Here. Set args_size_undefined.
11017 (create_trace_edges): Update to match.
11018 (scan_trace): Handle REG_ARGS_SIZE.
11019 (connect_traces): Connect args_size between EH insns.
11020 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
11021 * explow.c (suppress_reg_args_size): New.
11022 (adjust_stack_1): Split out from ...
11023 (adjust_stack): ... here.
11024 (anti_adjust_stack): Use it.
11025 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
11026 * expr.c (mem_autoinc_base): New.
11027 (fixup_args_size_notes): New.
11028 (emit_single_push_insn_1): Rename from emit_single_push_insn.
11029 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
11030 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
11031 * reload1.c (reload_as_needed): Likewise.
11032 * rtl.h (fixup_args_size_notes): Declare.
11033
11034 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
11035
11036 PR bootstrap/49914
11037 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
11038 of abs.
11039 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11040 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11041
11042 2011-08-02 Richard Henderson <rth@redhat.com>
11043
11044 * config/h8300/h8300.c (push, pop): Return the insn.
11045 (h8300_swap_into_er6): Generate correct unwind info.
11046 (h8300_swap_out_of_er6): Likewise.
11047 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
11048 complex cfa expression.
11049 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
11050
11051 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
11052
11053 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11054
11055 2011-08-02 Richard Henderson <rth@redhat.com>
11056
11057 PR target/49878
11058 * config/h8300/h8300.c (h8300_move_ok): New.
11059 * config/h8300/h8300-protos.h: Declare it.
11060 * config/h8300/h8300.md (P): New mode iterator.
11061 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
11062 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
11063 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
11064 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
11065 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
11066 and pushqi1_h8300hs_normal; use PRE_MODIFY and
11067 register_no_sp_elim_operand.
11068 (*pushhi1_h8300hs_<P>): Similarly.
11069 (pushqi1, pushhi1, pushhi1_h8300): Remove.
11070 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
11071
11072 2011-08-02 Richard Henderson <rth@redhat.com>
11073
11074 PR target/49881
11075 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
11076
11077 2011-08-02 Jakub Jelinek <jakub@redhat.com>
11078
11079 * c-parser.c (enum c_parser_prec): New enum, moved from within
11080 c_parser_binary_expression.
11081 (c_parser_binary_expression): Add PREC argument. Stop parsing
11082 if operator has lower or equal precedence than PREC.
11083 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
11084 callers.
11085 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
11086 Adjust c_finish_omp_atomic caller.
11087 (c_parser_omp_taskyield): New function.
11088 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
11089 (c_parser_omp_clause_name): Handle final and mergeable clauses.
11090 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
11091 functions.
11092 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
11093 and PRAGMA_OMP_CLAUSE_MERGEABLE.
11094 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
11095 (c_parser_omp_clause_reduction): Handle min and max.
11096 * c-typeck.c (c_finish_omp_clauses): Don't complain about
11097 const qualified predetermined vars in firstprivate clause.
11098 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11099 Handle MIN_EXPR and MAX_EXPR.
11100 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
11101 and OMP_CLAUSE_MERGEABLE.
11102 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
11103 and OMP_ATOMIC_CAPTURE_NEW.
11104 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
11105 OMP_CLAUSE_MERGEABLE.
11106 (omp_clause_code_name): Likewise.
11107 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11108 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
11109 and OMP_CLAUSE_MERGEABLE.
11110 (OMP_CLAUSE_FINAL_EXPR): Define.
11111 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
11112 OMP_CLAUSE_MERGEABLE.
11113 (expand_task_call): Likewise.
11114 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
11115 (expand_omp_atomic_fetch_op): Handle cases where old or new
11116 value is needed afterwards.
11117 (expand_omp_atomic): Call expand_omp_atomic_load resp.
11118 expand_omp_atomic_store.
11119 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
11120 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
11121 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11122 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11123 * tree-nested.c (convert_nonlocal_omp_clauses,
11124 convert_local_omp_clauses): Likewise.
11125 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
11126 OMP_ATOMIC_CAPTURE_NEW): New.
11127 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
11128 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
11129 New inlines.
11130 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
11131 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
11132 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
11133
11134 2011-08-02 Kai Tietz <ktietz@redhat.com>
11135
11136 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
11137 boolean-type.
11138 (ssa_forward_propagate_and_combine): Interprete result of
11139 forward_propagate_comparison.
11140 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
11141 boolean-typed operands for comparisons.
11142
11143 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
11144
11145 * config/avr/libgcc.S: Gather related function in the
11146 same input section.
11147 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
11148 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
11149 references.
11150 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
11151 __udivmodsi4, __divmodsi4, __prologue_saves__,
11152 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
11153 __do_copy_data, __do_clear_bss, __do_global_ctors,
11154 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
11155
11156 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
11157
11158 PR target/47766
11159 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
11160 (stack_protect_test): The pattern compares ptr_mode value.
11161
11162 2011-08-02 Alan Modra <amodra@gmail.com>
11163
11164 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
11165 note for save_LR_around_toc_setup sequence.
11166
11167 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
11168
11169 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
11170
11171 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
11172 Joseph Myers <joseph@codesourcery.com>
11173
11174 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
11175 * hwint.c: Include diagnostic-core.h.
11176 (abs_hwi): New.
11177 (gcd): Moved here...
11178 (pos_mul_hwi): New.
11179 (mul_hwi): New.
11180 (least_common_multiple): Moved here...
11181 * hwint.h (gcd): ... from here.
11182 (least_common_multiple): ... from here.
11183 (HOST_WIDE_INT_MIN): New.
11184 (HOST_WIDE_INT_MAX): New.
11185 (abs_hwi): Declared.
11186 (gcd): Declared.
11187 (pos_mul_hwi): Declared.
11188 (mul_hwi): Declared.
11189 (least_common_multiple): Declared.
11190 * omega.c (check_pos_mul): Removed.
11191 (check_mul): Removed.
11192 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
11193 mul_hwi instead of check_mul.
11194
11195 2011-08-01 Richard Henderson <rth@redhat.com>
11196
11197 PR target/49881
11198 * config/avr/avr.h (PUSH_ROUNDING): New.
11199 * config/avr/avr.md (pushqi1): Rename from *pushqi.
11200 (*pushhi, *pushsi, *pushsf): Remove.
11201 (MPUSH): New mode iterator.
11202 (push<MPUSH>1): New expander.
11203
11204 2011-08-01 Anatoly Sokolov <aesok@post.ru>
11205
11206 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
11207 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11208 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
11209 mmix_preferred_output_reload_class): Remove.
11210 * config/mmix/mmix.c (mmix_preferred_reload_class,
11211 mmix_preferred_output_reload_class): Make static. Change rclass
11212 argument and return type to reg_class_t.
11213 (TARGET_PREFERRED_RELOAD_CLASS,
11214 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11215
11216 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
11217
11218 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
11219 handling.
11220
11221 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
11222
11223 PR target/47766
11224 * config/i386/i386.md (PTR): New.
11225 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
11226 (stack_protect_test): Likewise.
11227 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
11228 (stack_tls_protect_set_<mode>): Likewise.
11229 (stack_tls_protect_test_<mode>): Likewise.
11230
11231 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
11232
11233 PR target/49927
11234 * config/i386/i386.c (ix86_address_subreg_operand): New.
11235 (ix86_decompose_address): Use ix86_address_subreg_operand.
11236 (ix86_legitimate_address_p): Do not assert that subregs satisfy
11237 register_no_elim_operand in DImode.
11238
11239 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
11240
11241 PR tree-optimization/49926
11242 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
11243 in a chain doesn't have uses both inside and outside the loop.
11244
11245 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
11246
11247 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
11248 * config/avr/avr-devices.c (avr_mcu_types): Use it.
11249 * config/avr/avr-mcus.def (AVR_MCU): Use it.
11250 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
11251 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
11252 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
11253 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
11254 to detect if XJMP must not be skipped.
11255
11256 2011-08-02 Alan Modra <amodra@gmail.com>
11257
11258 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
11259 Delete.
11260 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
11261 (rs6000_emit_prologue): Don't prematurely return when
11262 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
11263 save_toc_in_prologue case.
11264 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
11265 calls_alloca.
11266
11267 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
11268
11269 * config/avr/avr-devices.c: Delete SVN property svn:executable.
11270 * config/avr/predicates.md: Ditto.
11271 * config/avr/driver-avr.c: Ditto.
11272 * config/avr/genopt.sh: Set SVN property svn:executable to *.
11273
11274 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
11275
11276 * calls.c (emit_library_call_value_1): Declare size only if
11277 BLOCK_REG_PADDING is defined.
11278
11279 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
11280
11281 PR target/49547
11282 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
11283 (x86_64-*-*): Likewise.
11284 * config/i386/i386.opt (mlzcnt): New.
11285 * config/i386/abmintrin.h: File removed.
11286 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
11287 * config/i386/lzcntintrin.h: ... here. New file.
11288 (__lzcnt): Rename to ...
11289 (__lzcnt32): ... this.
11290 * config/i386/bmiintrin.h (head): Update copyright year.
11291 (__lzcnt_u16): Removed.
11292 (__lzcnt_u32): Likewise.
11293 (__lzcnt_u64): Likewise.
11294 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
11295 is defined, remove abmintrin.h.
11296 * config/i386/cpuid.h (bit_LZCNT): New.
11297 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11298 LZCNT feature.
11299 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11300 __LZCNT__ if needed.
11301 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
11302 (ix86_option_override_internal): Handle LZCNT option.
11303 (ix86_valid_target_attribute_inner_p): Likewise.
11304 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
11305 * config/i386/i386.h (TARGET_LZCNT): New.
11306 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
11307 * config/i386/i386.md (clz<mode>2): Update insn constraint.
11308 (clz<mode>2_lzcnt): Likewise.
11309 * doc/invoke.texi: Mention -mlzcnt option.
11310 * doc/extend.texi: Likewise.
11311
11312 2011-08-01 Julian Brown <julian@codesourcery.com>
11313
11314 * configure.ac (fixed-point): Add ARM support.
11315 * configure: Regenerate.
11316 * config/arm/arm.c (arm_fixed_mode_set): New struct.
11317 (arm_set_fixed_optab_libfunc): New.
11318 (arm_set_fixed_conv_libfunc): New.
11319 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
11320 ARM-specific names.
11321 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
11322 return values in SImode.
11323 (arm_return_in_msb): Return fixed-point types in the msb.
11324 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
11325 upwards.
11326 (arm_scalar_mode_supported_p): Support fixed-point modes.
11327 (arm_vector_mode_supported_p): Support vector fixed-point modes.
11328 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
11329 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
11330 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
11331 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
11332 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
11333 New mode iterators.
11334 (qaddsub_suf): New mode attribute.
11335 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
11336 vector modes.
11337 * config/arm/predicates.md (sat_shift_operator): New predicate.
11338 * config/arm/arm-fixed.md: New.
11339 * config/arm/arm.md: Include arm-fixed.md.
11340 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
11341
11342 2011-08-01 Julian Brown <julian@codesourcery.com>
11343
11344 * calls.c (emit_library_call_value_1): Support padding for libcall
11345 arguments and return values.
11346 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
11347 downwards in big-endian mode.
11348
11349 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11350
11351 PR debug/49887
11352 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
11353 * config/sol2-protos.h: Likewise.
11354 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
11355 solaris_code_end.
11356 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
11357 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
11358 solaris_file_end.
11359 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
11360
11361 2011-08-01 Julian Brown <julian@codesourcery.com>
11362
11363 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
11364
11365 2011-08-01 Julian Brown <julian@codesourcery.com>
11366
11367 * final.c (output_addr_const): Print fixed-point constants as
11368 decimal not hex.
11369
11370 2011-08-01 Richard Guenther <rguenther@suse.de>
11371
11372 * stor-layout.c (initialize_sizetypes): Properly sign-extend
11373 bitsiztype TYPE_MAX_VALUE.
11374
11375 2011-08-01 Julian Brown <julian@codesourcery.com>
11376
11377 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
11378 comparison helpers.
11379
11380 2011-07-31 Richard Henderson <rth@redhat.com>
11381
11382 * config/h8300/crti.asm: Add flags to .section directive.
11383 * config/h8300/crtn.asm: Likewise.
11384
11385 2011-07-31 Richard Henderson <rth@redhat.com>
11386
11387 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
11388 * tree.c (build_common_tree_nodes): Likewise.
11389
11390 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11391
11392 PR target/49880
11393 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
11394 (divsi3_i1): Likewise.
11395
11396 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11397
11398 PR tree-optimization/49749
11399 * tree-ssa-reassoc.c (get_rank): New forward declaration.
11400 (PHI_LOOP_BIAS): New macro.
11401 (phi_rank): New function.
11402 (loop_carried_phi): Likewise.
11403 (propagate_rank): Likewise.
11404 (get_rank): Add calls to phi_rank and propagate_rank.
11405
11406 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
11407
11408 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
11409 of TARGET_64BIT.
11410 (PTRDIFF_TYPE): Likewise.
11411
11412 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
11413
11414 PR target/49920
11415 * config/i386/i386.md (strset): Do not expand strset_singleop
11416 when %eax or $edi are fixed.
11417 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
11418 (*strsetsi_1): Ditto.
11419 (*strsethi_1): Ditto.
11420 (*strsetqi_1): Ditto.
11421 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
11422 (*rep_stossi): Ditto.
11423 (*rep_stosqi): Ditto.
11424 (*strlenqi_1): Ditto.
11425 (cmpstrnsi): Also fail when %ecx is fixed.
11426 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
11427 (*cmpstrnqi_1): Ditto.
11428 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
11429 (*strmovsi_1): Ditto.
11430 (*strmovhi_1): Ditto.
11431 (*strmovqi_1): Ditto.
11432 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
11433 (*rep_movsi): Ditto.
11434 (*rep_movqi): Ditto.
11435
11436 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
11437
11438 PR target/47908
11439 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
11440 Disable instruction scheduling for non-ColdFire targets.
11441 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11442
11443 2011-07-31 Revital Eres <revital.eres@linaro.org>
11444
11445 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
11446 of anti-dep edge from a branch.
11447 (add_cross_iteration_register_deps): Create anti-dep edge from
11448 a branch.
11449
11450 2011-07-31 Revital Eres <revital.eres@linaro.org>
11451
11452 * modulo-sched.c: Change comment.
11453 (reset_sched_times): Fix print message.
11454 (print_partial_schedule): Add print info.
11455
11456 2011-07-31 Tom de Vries <tom@codesourcery.com>
11457
11458 PR middle-end/43513
11459 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
11460 get_object_alignment and TYPE_ALIGN.
11461
11462 2011-07-30 Tom de Vries <tom@codesourcery.com>
11463
11464 PR middle-end/43513
11465 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
11466 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
11467
11468 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11469
11470 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
11471 <sys/sbd.h>.
11472 (cpu_types): New array.
11473 (cputype): New function.
11474 (host_detect_local_cpu): Only define buf, f if !__sgi__.
11475 Use scaninvent instead of /proc/cpuinfo if __sgi__.
11476 * config.host: Also use driver-native.o, mips/x-native on
11477 mips-sgi-irix*.
11478 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
11479 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
11480 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
11481
11482 2011-07-29 Jakub Jelinek <jakub@redhat.com>
11483
11484 PR middle-end/49897
11485 PR middle-end/49898
11486 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
11487 in nested parallel and outer is a gimple_reg, mark it as addressable
11488 and set its bit in task_shared_vars bitmap too.
11489
11490 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
11491
11492 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
11493
11494 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11495
11496 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
11497 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
11498 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
11499 AMASK_LOCKPFTCHOK): Define.
11500 (host_detect_local_cpu): Remove buf, f, cpu_names.
11501 Define cpu_types, implver, amask.
11502 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
11503 native CPU.
11504 * config.host: Also use driver-alpha.o, alpha/x-alpha on
11505 alpha*-dec-osf*.
11506 * config/alpha/osf5.h [__alpha__ || __alpha]
11507 (host_detect_local_cpu): Declare.
11508 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
11509 (DRIVER_SELF_SPECS): Define.
11510
11511 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
11512
11513 PR target/47715
11514 * config/i386/i386.md (*load_tp_x32): New.
11515 (*load_tp_x32_zext): Ditto.
11516 (*add_tp_x32): Ditto.
11517 (*add_tp_x32_zext): Ditto.
11518 (*load_tp_<mode>): Disable for TARGET_X32 targets.
11519 (*add_tp_<mode>): Ditto.
11520 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
11521 ptr_mode and convert to Pmode if needed.
11522
11523 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
11524
11525 PR target/49687
11526 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
11527 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
11528 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
11529 Add X to register footprint: Clobber r26/r27.
11530
11531 2011-07-29 Richard Guenther <rguenther@suse.de>
11532
11533 * builtins.c (fold_builtin_signbit): Build the comparison
11534 with a proper type.
11535
11536 2011-07-29 Richard Guenther <rguenther@suse.de>
11537
11538 PR tree-optimization/49893
11539 * tree-predcom.c (suitable_reference_p): Volatile references
11540 are not suitable.
11541
11542 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
11543
11544 PR target/49313
11545 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11546 (__ctzsi2): Result for 0 may be undefined.
11547 (__ctzhi2): Result for 0 may be undefined.
11548 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11549 (__popcountsi2): Ditto. And don't clobber r26.
11550 (__popcountdi2): Ditto. And don't clobber r27.
11551 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11552 (parityhi2): New expand.
11553 (paritysi2): New expand.
11554 (popcounthi2): New expand.
11555 (popcountsi2): New expand.
11556 (clzhi2): New expand.
11557 (clzsi2): New expand.
11558 (ctzhi2): New expand.
11559 (ctzsi2): New expand.
11560 (ffshi2): New expand.
11561 (ffssi2): New expand.
11562 (copysignsf3): New insn.
11563 (bswapsi2): New expand.
11564 (*parityhi2.libgcc): New insn.
11565 (*parityqihi2.libgcc): New insn.
11566 (*paritysihi2.libgcc): New insn.
11567 (*popcounthi2.libgcc): New insn.
11568 (*popcountsi2.libgcc): New insn.
11569 (*popcountqi2.libgcc): New insn.
11570 (*popcountqihi2.libgcc): New insn-and-split.
11571 (*clzhi2.libgcc): New insn.
11572 (*clzsihi2.libgcc): New insn.
11573 (*ctzhi2.libgcc): New insn.
11574 (*ctzsihi2.libgcc): New insn.
11575 (*ffshi2.libgcc): New insn.
11576 (*ffssihi2.libgcc): New insn.
11577 (*bswapsi2.libgcc): New insn.
11578
11579 2011-07-29 Richard Guenther <rguenther@suse.de>
11580
11581 * tree-vrp.c (get_value_range): Only set parameter default
11582 definitions to varying, leave others at undefined.
11583 (extract_range_from_binary_expr): Fix undefined handling.
11584 (vrp_visit_phi_node): Handle merged undefined state.
11585
11586 2011-07-29 Wei Guozhi <carrot@google.com>
11587
11588 PR rtl-optimization/49799
11589 * combine.c (make_compound_operation): Check if the bit field is valid
11590 before change it to bit field extraction.
11591
11592 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
11593
11594 PR rtl-optimization/49891
11595 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
11596 newly created returnjumps.
11597
11598 2011-07-28 DJ Delorie <dj@redhat.com>
11599
11600 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
11601 local frame in a naked function, and produce a suitable error for
11602 that specific case.
11603
11604 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
11605 registers to be reloaded in HI classes when the target is HI.
11606
11607 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
11608
11609 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
11610 bound_one, bound_two.
11611
11612 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
11613
11614 PR middle-end/48648
11615 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
11616 CLAST assignments.
11617 (translate_clast): Same.
11618 (translate_clast_assignment): New.
11619
11620 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
11621
11622 PR tree-optimization/49876
11623 * sese.c (rename_uses): Do not return false on gloog_error: set
11624 the new_expr to integer_zero_node and continue code generation.
11625 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
11626
11627 2011-07-28 Jakub Jelinek <jakub@redhat.com>
11628
11629 PR debug/49846
11630 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
11631 arguments also check if they aren't initialized with a MODE_INT
11632 mode of the same size.
11633
11634 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
11635
11636 * expr.c (get_bit_range): Handle *MEM_REF's.
11637
11638 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
11639
11640 * rtlanal.c (tablejump_p): False for returns.
11641 * reorg.c (first_active_target_insn): New static function.
11642 (find_end_label): Set JUMP_LABEL for a new returnjump.
11643 (optimize_skip, get_jump_flags, rare_destination,
11644 mostly_true_jump, get_branch_condition,
11645 steal_delay_list_from_target, own_thread_p,
11646 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
11647 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
11648 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
11649 * jump.c (delete_related_insns): Likewise.
11650 (jump_to_label_p): New function.
11651 (redirect_target): New static function.
11652 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
11653 (redirect_jump_1): Assert that the new label is nonnull.
11654 (redirect_jump): Likewise.
11655 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
11656 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
11657 exit block.
11658 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
11659 changed. Ensure that the right label is passed to redirect_jump.
11660 * function.c (emit_return_into_block,
11661 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
11662 ret_rtx in their JUMP_LABEL.
11663 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
11664 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
11665 pass ret_rtx as label.
11666 * cfglayout.c (fixup_reorder_chain): Use
11667 force_nonfallthru_and_redirect rather than force_nonfallthru.
11668 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
11669 * rtl.h (ANY_RETURN_P): New macro.
11670 (jump_to_label_p): Declare.
11671 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
11672 JUMP_LABELs.
11673 (mark_target_live_regs): Likewise.
11674 * basic-block.h (force_nonfallthru_and_redirect): Declare.
11675 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
11676 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
11677 alpha_tablejump_best_label): Remove functions.
11678 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
11679 alpha_tablejump_best_label): Remove declarations.
11680 * config/sh/sh.c (barrier_align, split_branches): Adjust for
11681 ret_rtx in JUMP_LABELs.
11682 * config/arm/arm.c (is_jump_table): Likewise.
11683
11684 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
11685
11686 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
11687 special predicate. Remove explicit mode checks.
11688
11689 2011-07-28 Jakub Jelinek <jakub@redhat.com>
11690
11691 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
11692 DW_AT_data_member_location containing just DW_OP_plus_uconst.
11693
11694 PR debug/49871
11695 * dwarf2out.c (size_of_die, value_format, output_die): Use
11696 DW_FORM_udata instead of DW_FORM_data[48] for
11697 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
11698
11699 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11700
11701 * config/i386/i386.md (*tls_global_dynamic_64): Update
11702 length attribute.
11703
11704 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
11705
11706 PR target/47715
11707 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
11708 tls_symbolic_operand check. Update code sequence for TARGET_X32.
11709 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
11710 (tls_dynamic_gnu2_64): Ditto.
11711 (*tls_dynamic_gnu2_lea_64): Ditto.
11712 (*tls_dynamic_gnu2_call_64): Ditto.
11713 (*tls_dynamic_gnu2_combine_64): Ditto.
11714
11715 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11716
11717 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
11718
11719 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
11720
11721 PR target/47364
11722 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
11723
11724 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11725
11726 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
11727 before the core constraints. Adjust attributes.
11728 ("*thumb2_movdf_vfp"): Likewise.
11729
11730 2011-07-28 Kai Tietz <ktietz@redhat.com>
11731
11732 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
11733 (simplify_truth_ops_using_ranges): Likewise.
11734 (build_assert_expr_for): Likewise.
11735 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
11736 and handle BIT_NOT_EXPR for truth-operation.
11737
11738 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
11739
11740 PR target/49313
11741 Undo r176835 from trunk
11742 2011-07-27 Georg-Johann Lay
11743
11744 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
11745
11746 PR target/49687
11747 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
11748 Add _muluhisi3, _mulshisi3, _usmulhisi3.
11749 * config/avr/libgcc.S (__mulsi3): Rewrite.
11750 (__mulhisi3): Rewrite.
11751 (__umulhisi3): Rewrite.
11752 (__usmulhisi3): New.
11753 (__muluhisi3): New.
11754 (__mulshisi3): New.
11755 (__mulohisi3): New.
11756 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
11757 declare.
11758 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
11759 (pseudo_register_or_const_int_operand): New.
11760 (combine_pseudo_register_operand): New.
11761 (u16_operand): New.
11762 (s16_operand): New.
11763 (o16_operand): New.
11764 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
11765 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
11766 (any_extend, any_extend2): New code iterators.
11767 (extend_prefix): New code attribute.
11768 (mulsi3): Rewrite. Turn insn to expander.
11769 (mulhisi3): Ditto.
11770 (umulhisi3): Ditto.
11771 (usmulhisi3): New expander.
11772 (*mulsi3): New insn-and-split.
11773 (mulu<mode>si3): New insn-and-split.
11774 (muls<mode>si3): New insn-and-split.
11775 (mulohisi3): New insn-and-split.
11776 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
11777 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
11778 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
11779 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
11780 insn-and-split.
11781 (*mulsi3_call): Rewrite.
11782 (*mulhisi3_call): Rewrite.
11783 (*umulhisi3_call): Rewrite.
11784 (*usmulhisi3_call): New insn.
11785 (*muluhisi3_call): New insn.
11786 (*mulshisi3_call): New insn.
11787 (*mulohisi3_call): New insn.
11788 (extendqihi2): Use combine_pseudo_register_operand as predicate
11789 for operand 1.
11790 (extendqisi2): Ditto.
11791 (zero_extendqihi2): Ditto.
11792 (zero_extendqisi2): Ditto.
11793 (zero_extendhisi2): Ditto.
11794 (extendhisi2): Ditto. Don't early-clobber operand 0.
11795
11796 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
11797
11798 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
11799
11800 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
11801
11802 PR tree-optimization/49471
11803 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
11804 iv only when the largest type is unsigned. Do not call
11805 lang_hooks.types.type_for_size.
11806
11807 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
11808
11809 PR middle-end/45450
11810 * graphite-poly.c (apply_poly_transforms): Disable legality check
11811 after an openscop read.
11812
11813 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
11814
11815 PR middle-end/47691
11816 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
11817 copy_bb_and_scalar_dependences.
11818 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
11819 (graphite_copy_stmts_from_block): Update call to rename_uses.
11820 (copy_bb_and_scalar_dependences): Update call to
11821 graphite_copy_stmts_from_block.
11822 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11823
11824 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
11825
11826 PR target/49313
11827 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
11828 (__ctzsi2): Result for 0 may be undefined.
11829 (__ctzhi2): Result for 0 may be undefined.
11830 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
11831 (__popcountsi2): Ditto. And don't clobber r26.
11832 (__popcountdi2): Ditto. And don't clobber r27.
11833 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
11834 (parityhi2): New expand.
11835 (paritysi2): New expand.
11836 (popcounthi2): New expand.
11837 (popcountsi2): New expand.
11838 (clzhi2): New expand.
11839 (clzsi2): New expand.
11840 (ctzhi2): New expand.
11841 (ctzsi2): New expand.
11842 (ffshi2): New expand.
11843 (ffssi2): New expand.
11844 (copysignsf3): New insn.
11845 (bswapsi2): New expand.
11846 (*parityhi2.libgcc): New insn.
11847 (*parityqihi2.libgcc): New insn.
11848 (*paritysihi2.libgcc): New insn.
11849 (*popcounthi2.libgcc): New insn.
11850 (*popcountsi2.libgcc): New insn.
11851 (*popcountqi2.libgcc): New insn.
11852 (*popcountqihi2.libgcc): New insn-and-split.
11853 (*clzhi2.libgcc): New insn.
11854 (*clzsihi2.libgcc): New insn.
11855 (*ctzhi2.libgcc): New insn.
11856 (*ctzsihi2.libgcc): New insn.
11857 (*ffshi2.libgcc): New insn.
11858 (*ffssihi2.libgcc): New insn.
11859 (*bswapsi2.libgcc): New insn.
11860
11861 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
11862
11863 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
11864 the mode of symbolic_opreand RTXes.
11865
11866 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
11867
11868 * config/i386/predicates.md (x86_64_movabs_operand): Return false
11869 for pic_32bit_operand RTXes.
11870 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
11871 in DImode.
11872
11873 2011-07-27 Kai Tietz <ktietz@redhat.com>
11874
11875 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
11876 for 32-bit, too.
11877 (ix86_handle_abi_attribute): Allow function attributes
11878 ms_abi/sysv_abi in 32-bit mode, too.
11879 * doc/extend.texi: Adjust attribute documentation.
11880
11881 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
11882 expression handling.
11883 (and_var_with_comparison_1): Likewise.
11884
11885 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
11886
11887 * params.h (ALLOW_STORE_DATA_RACES): New.
11888 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
11889 * Makefile.in (expr.o): Depend on PARAMS_H.
11890 * machmode.h (get_best_mode): Add argument.
11891 * fold-const.c (optimize_bit_field_compare): Add argument to
11892 get_best_mode.
11893 (fold_truthop): Same.
11894 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
11895 * expr.c (emit_group_store): Same.
11896 (copy_blkmode_from_reg): Same.
11897 (write_complex_part): Same.
11898 (optimize_bitfield_assignment_op): Add argument.
11899 Add argument to get_best_mode.
11900 (get_bit_range): New.
11901 (expand_assignment): Calculate maxbits and pass it down accordingly.
11902 (store_field): New argument.
11903 (expand_expr_real_2): New argument to store_field. Include params.h.
11904 * expr.h (store_bit_field): New argument.
11905 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
11906 into account maxbits.
11907 * calls.c (store_unaligned_arguments_into_pseudos): New argument
11908 to store_bit_field.
11909 * expmed.c (store_bit_field_1): New argument. Use it.
11910 (store_bit_field): Same.
11911 (store_fixed_bit_field): Same.
11912 (store_split_bit_field): Same.
11913 (extract_bit_field_1): Pass new argument to get_best_mode.
11914 (extract_bit_field): Same.
11915 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
11916 * doc/invoke.texi: Document parameter allow-store-data-races.
11917
11918 2011-07-27 Jakub Jelinek <jakub@redhat.com>
11919
11920 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
11921
11922 2011-07-27 Kai Tietz <ktietz@redhat.com>
11923
11924 * tree-vrp.c (extract_range_from_binary_expr): Remove
11925 TRUTH-binary cases and add new bitwise-cases.
11926 (extract_range_from_assignment): Likewise.
11927 (register_edge_assert_for_1): Likeiwise.
11928 (register_edge_assert_for): Likewise.
11929 (simplify_truth_ops_using_ranges): Likewise.
11930 (simplify_stmt_using_ranges): Likewise.
11931
11932 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
11933
11934 PR target/47372
11935 * config/i386/i386.c (ix86_delegitimize_address): Call
11936 simplify_gen_subreg for PIC with mode of x only if modes of
11937 x and orig_x are different.
11938
11939 2011-07-26 Jakub Jelinek <jakub@redhat.com>
11940
11941 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
11942 to GC allocated copy of the string.
11943 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
11944 before .debug_line, not after it.
11945
11946 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
11947
11948 PR middle-end/47046
11949 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
11950 evolution_function_is_affine_p on CHREC_RIGHT.
11951
11952 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
11953
11954 * tree-data-ref.c (max_stmt_executions_tree): Do not call
11955 lang_hooks.types.type_for_size.
11956
11957 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
11958
11959 PR middle-end/47653
11960 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
11961 loops using wrapping semantics.
11962
11963 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
11964
11965 PR middle-end/48805
11966 * tree-scalar-evolution.c (instantiate_scev_r): Return
11967 chrec_dont_know for ADDR_EXPR.
11968
11969 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
11970 H.J. Lu <hongjiu.lu@intel.com>
11971
11972 PR target/47369
11973 PR target/49853
11974 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
11975 if legitimize_tls_address returned operand in wrong mode. Allow
11976 SImode and DImode symbolic operand for PIC. Call convert_to_mode
11977 if legitimize_pic_address returned operand in wrong mode.
11978
11979 2011-07-26 Martin Jambor <mjambor@suse.cz>
11980
11981 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
11982 return false for invariants.
11983
11984 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
11985
11986 * config/i386/i386.md (add->lea splitter): Implement using SWI
11987 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
11988 (add->lea zext splitter): Change operand 2 predicate to
11989 x86_64_nonmemory_operand.
11990
11991 2011-07-26 Richard Guenther <rguenther@suse.de>
11992
11993 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
11994 frequency makes everything hot.
11995
11996 2011-07-26 Richard Guenther <rguenther@suse.de>
11997
11998 PR tree-optimization/49840
11999 * tree-vrp.c (range_fits_type_p): Properly handle full
12000 double-int precision.
12001
12002 2011-07-26 Martin Jambor <mjambor@suse.cz>
12003
12004 PR bootstrap/49786
12005 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
12006 counts.
12007 (update_specialized_profile): Likewise.
12008
12009 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
12010 H.J. Lu <hongjiu.lu@intel.com>
12011
12012 PR target/47381
12013 PR target/49832
12014 PR target/49833
12015 * config/i386/i386.md (i): Change SImode attribute to "e".
12016 (g): Change SImode attribute to "rme".
12017 (di): Change SImode attribute to "nF".
12018 (general_operand): Change SImode attribute to x86_64_general_operand.
12019 (general_szext_operand): Change SImode attribute to
12020 x86_64_szext_general_operand.
12021 (immediate_operand): Change SImode attribute to
12022 x86_64_immediate_operand.
12023 (nonmemory_operand): Change SImode attribute to
12024 x86_64_nonmemory_operand.
12025 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
12026 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
12027 (*lea_1): Use SWI48 mode iterator.
12028 (*lea_1_zext): New insn pattern.
12029 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
12030 (*bt<mode>): Ditto.
12031 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
12032 Update operand constraints.
12033 (addsi_1_zext): Ditto.
12034 (*add<mode>2): Ditto.
12035 (*addsi_3_zext): Ditto.
12036 (*subsi_1_zext): Ditto.
12037 (*subsi_2_zext): Ditto.
12038 (*subsi_3_zext): Ditto.
12039 (*addsi3_carry_zext): Ditto.
12040 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
12041 (*mulsi3_1_zext): Ditto.
12042 (*andsi_1): Ditto.
12043 (*andsi_1_zext): Ditto.
12044 (*andsi_2_zext): Ditto.
12045 (*<any_or:code>si_1_zext): Ditto.
12046 (*<any_or:code>si_2_zext): Ditto.
12047 (*test<mode>_1): Use <general_operand> predicate for operand 1.
12048 (*and<mode>_2): Ditto.
12049 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
12050 (add->lea splitter): Check operand modes in insn constraint. Extend
12051 operands less than SImode wide to SImode.
12052 (add->lea zext splitter): Do not extend input operands to DImode.
12053 (*lea_general_1): Handle only QImode and HImode operands.
12054 (*lea_general_2): Ditto.
12055 (*lea_general_3): Ditto.
12056 (*lea_general_1_zext): Remove.
12057 (*lea_general_2_zext): Ditto.
12058 (*lea_general_3_zext): Ditto.
12059 (*lea_general_4): Check operand modes in insn constraint. Extend
12060 operands less than SImode wide to SImode.
12061 (ashift->lea splitter): Ditto.
12062 * config/i386/i386.c (ix86_print_operand_address): Print address
12063 registers with 'q' modifier on 64bit targets.
12064 * config/i386/predicates.md (pic_32bit_opreand): Define as special
12065 predicate. Reject non-SI and non-DI modes.
12066
12067 2011-07-25 Andrew Pinski <apinski@cavium.com>
12068
12069 PR tree-opt/49671
12070 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
12071 TREE_THIS_NOTRAP into the inner most MEM_REF.
12072 Always copy TREE_THIS_VOLATILE.
12073 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
12074 arguments are not volatile references.
12075
12076 2011-07-25 Richard Henderson <rth@redhat.com>
12077
12078 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
12079 * final.c (final_scan_insn): Don't test for it.
12080 (rest_of_clean_state): Likewise.
12081
12082 2011-07-25 Richard Henderson <rth@redhat.com>
12083
12084 PR debug/49841
12085 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
12086 (emit_frame_save): Likewise.
12087 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
12088 insn onto a dummy blockage insn after the join label.
12089
12090 2011-07-25 Richard Henderson <rth@redhat.com>
12091
12092 * dwarf2cfi.c (dw_trace_info): Add ID member.
12093 (get_trace_index): Remove. Change users to use ID member.
12094 (before_next_cfi_note): New.
12095 (connect_traces): Remove unreachable traces before the main loop.
12096 Look across one trace and generate remember/restore_state if needed.
12097
12098 2011-07-25 Richard Henderson <rth@redhat.com>
12099
12100 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
12101
12102 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
12103
12104 * genattr.c (write_upcase, gen_attr <enum definition writing>):
12105 Move to ...
12106 * genattr-common.c ... here.
12107 (main): Call gen_attr.
12108 * optc-gen.awk: Make generated program include insn-attr-common.h .
12109 * Makefile.in (oprions.o): Depend on insn-attr-common.h
12110
12111 2011-07-25 Anatoly Sokolov <aesok@post.ru>
12112
12113 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12114 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12115 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
12116 m32c_print_operand, m32c_print_operand_address): Remove.
12117 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
12118 Change return type to bool. Change argument type to bool.
12119 (m32c_print_operand, m32c_print_operand_address): Make static.
12120 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12121 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12122
12123 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12124
12125 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12126 attributes): Document mmap.
12127
12128 2011-07-25 Anatoly Sokolov <aesok@post.ru>
12129
12130 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12131 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
12132 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
12133 mmix_print_operand, mmix_print_operand_address): Remove.
12134 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
12135 Change return type to bool. Change argument type to bool.
12136 (mmix_print_operand, mmix_print_operand_address): Make static.
12137 (mmix_intval, mmix_output_condition): Change 'x' argument type
12138 to const_rtx.
12139 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
12140 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12141
12142 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
12143
12144 PR target/39386
12145 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
12146 shift counter for x << x and x >> x shifts.
12147
12148 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12149
12150 PR target/47124
12151 * config.gcc: Reject *-*-solaris2 configuration.
12152
12153 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
12154
12155 PR tree-optimization/49809
12156 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
12157 gimple_get_lhs instead of gimple_assign_lhs.
12158
12159 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12160
12161 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
12162
12163 2011-07-25 Richard Guenther <rguenther@suse.de>
12164
12165 PR tree-optimization/49822
12166 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12167 more. Make sure to preserve stmts with side-effects. Properly
12168 handle virtual defs, follow a longer def chain.
12169
12170 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
12171
12172 PR plugins/45348
12173 PR plugins/48425
12174 PR plugins/46577
12175 * Makefile.in: Do not flatten c-family directory when installing
12176 plugin headers.
12177
12178 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
12179
12180 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
12181 original nodes if we are dealing with virtual clones.
12182
12183 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
12184
12185 * common/config/c6x/c6x-common.c: New file.
12186
12187 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
12188
12189 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
12190
12191 2011-07-25 Richard Guenther <rguenther@suse.de>
12192
12193 PR tree-optimization/49715
12194 * tree-vrp.c: Include expr.h and optabs.h.
12195 (range_fits_type_): New function.
12196 (simplify_float_conversion_using_ranges): Likewise.
12197 (simplify_stmt_using_ranges): Call it.
12198 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
12199 * optabs.c (can_float_p): Export.
12200 * optabs.h (can_float_p): Declare.
12201
12202 2011-07-25 Richard Guenther <rguenther@suse.de>
12203
12204 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
12205 (get_value_range): For out-of-range SSA names or names created
12206 after propagation return a read-only varying range.
12207 (dump_all_value_ranges): Adjust.
12208 (vrp_initialize): Likewise.
12209 (vrp_finalize): Likewise.
12210
12211 2011-07-24 Richard Henderson <rth@redhat.com>
12212
12213 PR debug/49831
12214 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
12215 them entirely.
12216
12217 2011-07-24 Richard Henderson <rth@redhat.com>
12218
12219 PR debug/49825
12220 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
12221 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
12222
12223 2011-07-24 Richard Henderson <rth@redhat.com>
12224
12225 PR debug/49827
12226 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
12227
12228 2011-07-24 Richard Henderson <rth@redhat.com>
12229
12230 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
12231 Zero args_size for abnormal edges. Adjust all callers.
12232
12233 2011-07-24 Richard Henderson <rth@redhat.com>
12234
12235 PR debug/49825
12236 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
12237
12238 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
12239
12240 PR bootstrap/49835
12241 * collect2.c (demangle_flag): Removed.
12242
12243 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
12244
12245 * configure.ac (demangler_in_ld): Default to yes.
12246 * configure: Regenerated.
12247 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
12248 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
12249 --no-demangle options straight through to ld. When
12250 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
12251 way that has the intended effect on Windows.
12252
12253 2011-07-23 Richard Henderson <rth@redhat.com>
12254
12255 * dwarf2cfi.c: Include basic-block.h.
12256 (dw_label_info): Remove.
12257 (trace_work_list, trace_index): New.
12258 (remember_row, emit_cfa_remember): Remove.
12259 (dw_trace_info_hash, dw_trace_info_eq): New.
12260 (get_trace_index, get_trace_info): New.
12261 (save_point_p): New.
12262 (free_cfi_row): Remove.
12263 (add_cfi): Do not emit DW_CFA_remember_state.
12264 (cfa_row_equal_p): New.
12265 (barrier_args_size): Remove.
12266 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
12267 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
12268 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
12269 (dwarf2out_cfi_begin_epilogue): Remove.
12270 (dwarf2out_frame_debug_restore_state): Remove.
12271 (connect_traces, create_pseudo_cfg): New.
12272 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
12273 * Makefile.in (dwarf2cfi.o): Update.
12274
12275 2011-07-23 Richard Henderson <rth@redhat.com>
12276
12277 * dwarf2cfi.c (dw_trace_info): New.
12278 (dw_label_info): New.
12279 (cie_return_save): New.
12280 (cur_trace): New.
12281 (queued_args_size): Rename from args_size. Update all users.
12282 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
12283 (def_cfa_1): Use cur_trace instead of cfa_*.
12284 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
12285 (clobbers_queued_reg_save, reg_saved_in): Likewise.
12286 (dwarf2out_frame_debug_expr): Likewise.
12287 (create_cie_data): Split out from ...
12288 (execute_dwarf2_frame): ... here. Initialize cur_trace.
12289
12290 2011-07-23 Richard Henderson <rth@redhat.com>
12291
12292 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
12293 Update all users to match.
12294 (execute_dwarf2_frame): Free reg_saved_in_data.
12295
12296 2011-07-23 Richard Henderson <rth@redhat.com>
12297
12298 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
12299 (queued_reg_saves): Don't GTY. Change to a VEC.
12300 (queue_reg_save): Update to match.
12301 (dwarf2out_flush_queued_reg_saves): Likewise.
12302 (clobbers_queued_reg_save): Likewise.
12303 (reg_saved_in): Likewise.
12304 (execute_dwarf2_frame): Free queued_reg_saves.
12305
12306 2011-07-23 Richard Henderson <rth@redhat.com>
12307
12308 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
12309
12310 2011-07-23 Richard Henderson <rth@redhat.com>
12311
12312 * dwarf2cfi.c (add_cfi_args_size): Split out from...
12313 (dwarf2out_args_size): ... here.
12314 (add_cfi_restore): Split out from ...
12315 (dwarf2out_frame_debug_cfa_restore): ... here.
12316 (def_cfa_0): Split out from ...
12317 (def_cfa_1): ... here.
12318 (cfi_oprnd_equal_p, cfi_equal_p): New.
12319 (change_cfi_row): New.
12320 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
12321 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
12322 (output_cfis): Remove.
12323 * dwarf2out.c (output_fde): Simplify output_cfi loop.
12324 (dwarf2out_switch_text_section): Don't call output_cfis.
12325 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
12326 * dwarf2out.h: Update decls.
12327 (enum dw_val_class): Add dw_val_class_none.
12328
12329 2011-07-23 Richard Henderson <rth@redhat.com>
12330
12331 * dwarf2cfi.c (update_row_reg_save): New.
12332 (dwarf2out_frame_debug_cfa_expression): Use it.
12333 (dwarf2out_frame_debug_cfa_restore): Likewise.
12334 (reg_save): Likewise. Do not emit DW_CFA_same_value.
12335
12336 2011-07-23 Richard Henderson <rth@redhat.com>
12337
12338 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
12339
12340 2011-07-23 Richard Henderson <rth@redhat.com>
12341
12342 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
12343 (cie_cfi_row): New.
12344 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
12345 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
12346 (cur_row, remember_row): New.
12347 (def_cfa_1): Use cur_row instead of the old_* variables.
12348 (dwarf2out_frame_debug_restore_state): Similarly.
12349 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
12350 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
12351 (dwarf2out_frame_debug_adjust_cfa): Likewise.
12352 (dwarf2out_frame_debug_cfa_offset): Likewise.
12353 (dwarf2out_frame_debug_expr): Likewise.
12354 (execute_dwarf2_frame): Set up cur_row.
12355 * dwarf2out.h (struct cfa_loc): Mark for GTY.
12356
12357 2011-07-23 Richard Henderson <rth@redhat.com>
12358
12359 * basic-block.h (EDGE_PRESERVE): New.
12360 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
12361 * bb-reorder.c: Include except.h.
12362 (fix_up_crossing_landing_pad): New.
12363 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
12364 landing pads in the right partition. Duplicate as necessary.
12365 (partition_hot_cold_basic_blocks): Fix up DF info after
12366 duplicating landing pads.
12367 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
12368 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
12369 is set properly. Validate that EH edges are not CROSSING.
12370 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
12371 (dw2_build_landing_pads): ... here.
12372 (convert_to_eh_region_ranges): Remove code to fixup crossing
12373 landing pads.
12374 * except.h (expand_dw2_landing_pad_for_region): Declare.
12375 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
12376
12377 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
12378
12379 PR target/49816
12380 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
12381
12382 2011-07-22 Jason Merrill <jason@redhat.com>
12383
12384 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
12385
12386 2011-07-22 Richard Henderson <rth@redhat.com>
12387
12388 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
12389
12390 2011-07-22 Richard Henderson <rth@redhat.com>
12391
12392 * jump.c (maybe_propagate_label_ref): Split out of...
12393 (mark_all_labels): ... here. Do not attempt label_ref
12394 propagation while in cfglayout mode.
12395
12396 2011-07-22 Jakub Jelinek <jakub@redhat.com>
12397
12398 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
12399 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
12400 (dwarf_attr_name): Handle DW_AT_GNU_macros.
12401 (dwarf2out_define): If the vector is empty and
12402 lineno is 0, emit a dummy entry first.
12403 (dwarf2out_undef): Likewise. Remove redundant semicolon.
12404 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
12405 optimize_macinfo_range): New functions.
12406 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
12407 mergeable, optimize longer strings using
12408 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
12409 optimize longer sequences of define/undef ops from headers
12410 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
12411 emit a section headers.
12412 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
12413 and macinfo_section_label to DEBUG_MACRO_SECTION
12414 resp. DEBUG_MACRO_SECTION_LABEL.
12415 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
12416 instead of DW_AT_macro_info.
12417
12418 PR other/32998
12419 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
12420 options.
12421 * dwarf2out.c: Include opts.h.
12422 (dchar_p): New typedef. Define heap VEC for it.
12423 (producer_string): New variable.
12424 (gen_producer_string): New function.
12425 (gen_compile_unit_die): Use it.
12426 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
12427 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
12428 * doc/invoke.texi: Document -grecord-gcc-switches and
12429 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
12430 to -frecord-gcc-switches description.
12431
12432 2011-07-22 Jason Merrill <jason@redhat.com>
12433
12434 PR c++/30112
12435 * c-decl.c (c_linkage_bindings): Define.
12436
12437 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
12438
12439 PR debug/49815
12440 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
12441
12442 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
12443
12444 * config/i386/i386.c (ix86_option_override_internal): Disallow
12445 MS ABI in x32 mode.
12446 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
12447 only for TARGET_LP64.
12448 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
12449
12450 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12451
12452 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
12453 avoid warnings when GCC is built with a C++ compiler.
12454
12455 2011-07-22 Martin Jambor <mjambor@suse.cz>
12456
12457 PR lto/49796
12458 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
12459 if decl node is in another partition, call cgraph_get_node only once.
12460
12461 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
12462
12463 * config.gcc (x86_64-*-linux*): Set
12464 default_gnu_indirect_function to yes.
12465
12466 2011-07-22 Richard Guenther <rguenther@suse.de>
12467
12468 PR tree-optimization/45819
12469 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12470 preserve volatile and notrap flags.
12471
12472 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12473 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12474
12475 PR bootstrap/49794
12476 * configure.ac: Test AM_ICONV with CXX.
12477 * configure: Regenerate.
12478 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
12479
12480 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12481
12482 PR bootstrap/49797
12483 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
12484 (set_cloog_options): Use it.
12485
12486 2011-07-22 Jakub Jelinek <jakub@redhat.com>
12487
12488 PR c++/49756
12489 * gcc.c (main): Call stack_limit_increase (64MB).
12490 * toplev.c (toplev_main): Likewise.
12491
12492 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
12493
12494 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
12495 instead of force_reg.
12496
12497 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
12498
12499 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
12500 needed and use force_reg after convert.
12501 (ix86_expand_call): Likewise.
12502 (ix86_expand_special_args_builtin): Likewise.
12503 (ix86_expand_builtin): Likewise.
12504
12505 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12506
12507 PR middle-end/47654
12508 PR middle-end/49649
12509 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
12510 in parameter. Initialize v1 and v2 based on the values returned
12511 by clast_name_to_lb_ub.
12512 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
12513 values.
12514 (type_for_clast_bin): Same.
12515 (type_for_clast_expr): Same.
12516 (type_for_clast_eq): Update calls to type_for_clast_expr.
12517 (type_for_clast_for): Same.
12518 (build_iv_mapping): Same.
12519 * graphite-ppl.h (value_min): New.
12520
12521 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12522
12523 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
12524 types whenever possible.
12525
12526 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12527
12528 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
12529 and ub fields.
12530 (new_clast_name_index): Add lb and ub parameters.
12531 (free_clast_name_index): New.
12532 (clast_name_to_lb_ub): New.
12533 (save_clast_name_index): Add lb and ub parameters.
12534 (compute_bounds_for_param): New.
12535 (type_for_level): Removed.
12536 (type_for_clast_for): Removed level parameter. Do not call
12537 type_for_level.
12538 (graphite_create_new_loop): Store the lb and ub for the clast_name
12539 of the iterator of the loop that has been generated.
12540 (graphite_create_new_loop_guard): Remove parameter level.
12541 (create_params_index): Store the lb and ub of each parameter.
12542 (gloog): Use free_clast_name_index. Pass to create_params_index
12543 the current scop.
12544
12545 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12546
12547 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
12548 (max_precision_type): Inline max_signed_precision_type.
12549 (type_for_clast_red): Use max_precision_type.
12550 (type_for_clast_bin): Same.
12551 (type_for_clast_for): Same.
12552
12553 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12554
12555 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
12556 type_for_interval.
12557 (gcc_type_for_value): Renamed type_for_value.
12558 (gcc_type_for_clast_term): Renamed type_for_clast_term.
12559 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
12560 (gcc_type_for_clast_red): Renamed type_for_clast_red.
12561 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
12562 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
12563 (graphite_translate_clast_equation): Update calls.
12564 (compute_type_for_level): Renamed type_for_level.
12565 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
12566 (build_iv_mapping): Update calls.
12567 (graphite_create_new_loop_guard): Same.
12568
12569 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12570
12571 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
12572 comment.
12573
12574 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12575
12576 * graphite-clast-to-gimple.c (struct ivs_params): New.
12577 (clast_name_to_gcc): Use ivs_params to pass around parameters.
12578 (clast_to_gcc_expression): Same.
12579 (clast_to_gcc_expression_red): Same.
12580 (gcc_type_for_clast_term): Same.
12581 (gcc_type_for_clast_expr): Same.
12582 (gcc_type_for_clast_red): Same.
12583 (gcc_type_for_clast_bin): Same.
12584 (gcc_type_for_clast_eq): Same.
12585 (graphite_translate_clast_equation): Same.
12586 (graphite_create_guard_cond_expr): Same.
12587 (graphite_create_new_guard): Same.
12588 (graphite_create_new_loop): Same.
12589 (build_iv_mapping): Same.
12590 (translate_clast_user): Same.
12591 (graphite_create_new_loop_guard): Same.
12592 (translate_clast): Same.
12593 (translate_clast_for_loop): Same.
12594 (translate_clast_for): Same.
12595 (translate_clast_guard): Same.
12596 (initialize_cloog_names): Fix typo.
12597 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
12598
12599 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12600
12601 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
12602 (new_clast_name_index): Add level parameter.
12603 (clast_name_to_level): New.
12604 (save_clast_name_index): Add level parameter.
12605 (newivs_to_depth_to_newiv): Removed.
12606 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
12607 (graphite_create_new_loop): Add level parameter. Pass level to
12608 save_clast_name_index.
12609 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
12610 (create_params_index): Pass level to save_clast_name_index.
12611
12612 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12613
12614 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
12615 recompute type, lb, and ub. Get them from...
12616 (graphite_create_new_loop_guard): ...here. Pass in parameter
12617 pointers to type, lb, and ub.
12618 (translate_clast_for_loop): Update function calls.
12619 (translate_clast_for): Same.
12620
12621 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
12622
12623 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
12624 psct_dynamic_dim.
12625 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
12626 (gcc_type_for_iv_of_clast_loop): Update use of level.
12627 (gloog): Start counting nesting level from 0.
12628 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
12629 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
12630 psct_dynamic_dim on level.
12631
12632 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
12633
12634 * config/i386/i386.c (ix86_legitimize_address): Convert to
12635 Pmode if needed.
12636
12637 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
12638
12639 * config/i386/i386.c (function_value_64): Always return pointers
12640 in Pmode.
12641 (ix86_promote_function_mode): New.
12642 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
12643
12644 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12645
12646 PR tree-optimization/49749
12647 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
12648 remove no-longer-used maxrank variable.
12649
12650 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
12651
12652 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
12653
12654 2011-07-21 Jason Merrill <jason@redhat.com>
12655
12656 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
12657 * recog.h (struct insn_data_d): Check it instead of
12658 HAVE_DESIGNATED_INITIALIZERS.
12659 * genoutput.c (output_insn_data): Likewise.
12660
12661 2011-07-21 Richard Guenther <rguenther@suse.de>
12662
12663 PR tree-optimization/49770
12664 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
12665 valueized any operand. Renamed from ...
12666 (valueize_refs): ... this. New wrapper around valueize_refs_1.
12667 (valueize_shared_reference_ops_from_ref): Return whether we
12668 valueized any operand.
12669 (vn_reference_lookup): Only when we valueized any operand
12670 use the valueized reference for alias analysis. Do not preserve
12671 the original reference tree in this case.
12672
12673 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
12674
12675 * config/i386/i386.c (ix86_decompose_address): Reject all but
12676 register operands and subregs of DImode hard registers in index.
12677
12678 2011-07-21 Kai Tietz <ktietz@redhat.com>
12679
12680 * fold-const.c (fold_unary_loc): Preserve indirect
12681 comparison cast to none-boolean type.
12682 * tree-ssa.c (useless_type_conversion_p): Preserve cast
12683 from/to boolean-type.
12684 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
12685 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
12686 * tree-cfg.c (verify_gimple_comparison): Check result
12687 type of comparison expression.
12688 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
12689 of condition result and disallow type-cast sinking into comparison.
12690
12691 2011-07-21 Richard Guenther <rguenther@suse.de>
12692
12693 * tree-ssa-forwprop.c (combine_conversions): Return whether
12694 we have to run cfg-cleanup. Properly remove dead stmts.
12695 (ssa_forward_propagate_and_combine): Adjust.
12696
12697 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
12698
12699 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
12700
12701 2011-07-21 Kai Tietz <ktietz@redhat.com>
12702
12703 * tree-ssa-propagate.c (substitute_and_fold): Use
12704 do_dce flag to deside, if BB's statements are scanned
12705 in last to first, or first to last order.
12706
12707 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
12708
12709 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
12710
12711 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
12712 Uros Bizjak <ubizjak@gmail.com>
12713 Richard Henderson <rth@redhat.com>
12714
12715 * config/i386/constraints.md (w): New.
12716
12717 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
12718 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
12719
12720 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
12721 instead of TARGET_64BIT.
12722
12723 * config/i386/i386.md (indirect_jump): Replace
12724 nonimmediate_operand with indirect_branch_operand.
12725 (*indirect_jump): Likewise. Replace constraint "m" with "w".
12726 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
12727 Convert operand 0 to Pmode for x32 if not PIC.
12728 (*tablejump_1): Replace nonimmediate_operand with
12729 indirect_branch_operand. Replace constraint "m" with "w".
12730 (*call_vzeroupper): Replace constraint "m" with "w".
12731 (*call): Likewise.
12732 (*call_rex64_ms_sysv_vzeroupper): Likewise.
12733 (*call_rex64_ms_sysv): Likewise.
12734 (*call_value_vzeroupper): Likewise.
12735 (*call_value): Likewise.
12736 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
12737 (*call_value_rex64_ms_sysv): Likewise.
12738 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
12739
12740 * config/i386/predicates.md (indirect_branch_operand): New.
12741 (call_insn_operand): Support x32.
12742
12743 2011-07-20 Michael Eager <eager@eagercon.com>
12744
12745 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
12746
12747 2011-07-20 Richard Henderson <rth@redhat.com>
12748
12749 * cfg.c (dump_bb_info): Dump basic_block->flags.
12750 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
12751
12752 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
12753
12754 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12755 of DImode hard registers in index.
12756 (ix86_legitimate_address_p): Allow subregs of base and index to span
12757 more than a word. Assert that subregs of base and index satisfy
12758 register_no_elim_operand predicates. Reject addresses where
12759 base and index have different modes.
12760
12761 2011-07-20 Robert Millan <rmh@gnu.org>
12762
12763 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
12764
12765 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12766
12767 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
12768 removing now-unnecessary assignment.
12769
12770 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12771
12772 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
12773 memory address space to the type's address space.
12774
12775 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
12776
12777 PR target/36467
12778 PR target/49687
12779 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
12780 and expand appropriately if there is a CONST_INT in operand2.
12781 (usmulqihi3): New insn.
12782 (*sumulqihi3): New insn.
12783 (*osmulqihi3): New insn.
12784 (*oumulqihi3): New insn.
12785 (*muluqihi3.uconst): New insn_and_split.
12786 (*muluqihi3.sconst): New insn_and_split.
12787 (*mulsqihi3.sconst): New insn_and_split.
12788 (*mulsqihi3.uconst): New insn_and_split.
12789 (*mulsqihi3.oconst): New insn_and_split.
12790 (*ashifthi3.signx.const): New insn_and_split.
12791 (*ashifthi3.signx.const7): New insn_and_split.
12792 (*ashifthi3.zerox.const): New insn_and_split.
12793 (mulsqihi3): New insn.
12794 (muluqihi3): New insn.
12795 (muloqihi3): New insn.
12796 * config/avr/predicates.md (const_2_to_7_operand): New.
12797 (const_2_to_6_operand): New.
12798 (u8_operand): New.
12799 (s8_operand): New.
12800 (o8_operand): New.
12801 (s9_operand): New.
12802 (register_or_s9_operand): New.
12803
12804 2011-07-20 Kai Tietz <ktietz@redhat.com>
12805
12806 * builtins.c (fold_builtin_expect): See through the cast
12807 from truthvalue_type_node to long.
12808
12809 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12810
12811 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
12812 where we can use them from the standard and altivec instruction
12813 sets, instead of always using the 3 operand VSX forms that require
12814 the destination to overlap one of the inputs.
12815 (vsx_fms*): Ditto.
12816 (vsx_fnma*): Ditto.
12817 (vsx_fnms*): Ditto.
12818
12819 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
12820 for DF types.
12821 (fmsdf4_fpr): Ditto.
12822 (nfmadf4_fpr): Ditto.
12823 (nfmsdf4_fpr): Ditto.
12824
12825 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
12826
12827 * genrecog.c (make_insn_sequence): Correct position numbering
12828 when filtering out match_scratch and match_dup.
12829
12830 2011-07-20 Richard Guenther <rguenther@suse.de>
12831
12832 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
12833 against already removed statements.
12834 (forward_propagate_into_comparison): Remove dead defining stmts.
12835 (forward_propagate_into_gimple_cond): Likewise.
12836 (forward_propagate_into_cond): Simplify.
12837 (ssa_forward_propagate_and_combine): Handle changed cfg from
12838 forward_propagate_into_comparison.
12839 * tree-ssa-phiopt.c (conditional_replacement): Use proper
12840 locations for newly built statements.
12841
12842 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
12843
12844 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
12845
12846 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12847
12848 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
12849 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
12850
12851 2011-07-20 Richard Guenther <rguenther@suse.de>
12852
12853 PR middle-end/18908
12854 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
12855 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
12856 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
12857
12858 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
12859
12860 * config/frv/frv.c (frv_register_move_cost): Define explicitly
12861 costs for subclasses of GR_REGS.
12862
12863 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
12864
12865 PR target/49780
12866 * config/i386/predicates.md (no_seg_addres_operand): No more special.
12867 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12868 of DImode hard registers in base.
12869 (ix86_legitimate_address_p): Allow SImode and DImode base and index
12870 registers.
12871
12872 2011-07-20 Richard Guenther <rguenther@suse.de>
12873
12874 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
12875 (unify_nodes): Deal with that.
12876 (solve_graph): Likewise.
12877
12878 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
12879
12880 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
12881 canonicalize left operand from ZERO_EXTEND to AND.
12882
12883 2011-07-20 Anatoly Sokolov <aesok@post.ru>
12884
12885 * target.def (class_max_nregs): New hook.
12886 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
12887 * doc/tm.texi: Regenerate.
12888 * targhooks.c (default_class_max_nregs): New function.
12889 * targhooks.h (default_class_max_nregs): Declare.
12890 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
12891 x_ira_reg_class_min_nregs arrays to unsigned char.
12892 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
12893 hook instead of CLASS_MAX_NREGS macro.
12894 * reginfo.c (restore_register_info): Ditto.
12895 * ira-conflicts.c (process_regs_for_copy): Use
12896 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
12897 Change type rclass and aclass vars to reg_class_t.
12898 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
12899 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
12900 reg_class_t.
12901 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
12902 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
12903
12904 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
12905 * config/i386/i386.c (ix86_class_max_nregs): New function.
12906 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
12907 instead of CLASS_MAX_NREGS macro.
12908 (TARGET_CLASS_MAX_NREGS): Define.
12909 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
12910 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
12911 * config/avr/avr.c (class_max_nregs): Remove function.
12912 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
12913 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
12914 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
12915 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
12916 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
12917 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
12918 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
12919 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
12920 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
12921 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
12922 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
12923 * config/score/score.h (CLASS_MAX_NREGS): Remove.
12924 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
12925 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
12926 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
12927
12928 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
12929
12930 * cif-code.def (OVERWRITABLE): Fix typo and move around.
12931 (TARGET_OPTIMIZATION_MISMATCH): Delete.
12932 (EH_PERSONALITY): Fix typo.
12933 (NON_CALL_EXCEPTIONS): Fix message.
12934 (OPTIMIZATION_MISMATCH): Adjust message.
12935 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
12936
12937 2011-07-19 Ian Lance Taylor <iant@google.com>
12938
12939 * doc/install.texi (Configuration): Document
12940 --enable-build-poststage1-with-cxx.
12941
12942 2011-07-19 Robert Millan <rmh@gnu.org>
12943
12944 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
12945 (GLIBC_DYNAMIC_LINKER): Remove.
12946
12947 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
12948 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
12949 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
12950 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
12951 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
12952 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
12953
12954 * config/mips/linux.h: Remove everything except for ...
12955 (GLIBC_DYNAMIC_LINKER): ... this macro.
12956
12957 * config/mips/linux64.h: Remove everything except for ...
12958 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
12959 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
12960 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
12961 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
12962 (GNU_USER_LINK_EMULATIONN32): New macros.
12963
12964 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
12965 Use the new headers.
12966
12967 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
12968
12969 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
12970 Add offset_known_p and size_known_p fields.
12971 (MEM_OFFSET_KNOWN_P): Update accordingly.
12972 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
12973 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
12974 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
12975 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
12976 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
12977 (init_emit_regs): Likewise.
12978
12979 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
12980
12981 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
12982 (MEM_OFFSET): Change from returning an rtx to returning a
12983 HOST_WIDE_INT.
12984 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
12985 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
12986 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
12987 (clear_mem_offset): Declare.
12988 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
12989 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
12990 MEM_OFFSET to get a HOST_WIDE_INT offset.
12991 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
12992 (adjust_offset_for_component_ref): Take a bool "known_p"
12993 parameter and a HOST_WIDE_INT "offset" parameter.
12994 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
12995 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
12996 than an rtx. Use clear_mem_offset to clear the offset.
12997 * cfgcleanup.c (merge_memattrs): Likewise.
12998 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
12999 * function.c (assign_parm_find_stack_rtl): Likewise.
13000 (assign_parm_setup_stack): Likewise.
13001 * print-rtl.c (print_rtx): Likewise.
13002 * reload.c (find_reloads_subreg_address): Likewise.
13003 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
13004 * var-tracking.c (INT_MEM_OFFSET): Likewise.
13005 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13006 (get_mem_align_offset): Likewise.
13007 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
13008 (clear_mem_offset): New function.
13009 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
13010 offset rather than an rtx. Assume both the expressio and offset
13011 are available.
13012 (r10k_needs_protection_p_1): Update accordingly, checking the
13013 expression and offset availability here instead.
13014
13015 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13016
13017 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
13018 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
13019 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
13020 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
13021 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13022 (clear_mem_size): Declare.
13023 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
13024 (clear_mem_size): New function.
13025 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
13026 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
13027 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
13028 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
13029 to clear the size.
13030 (nonoverlapping_memrefs_p): Likewise.
13031 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
13032 (expand_builtin_init_trampoline): Likewise.
13033 * calls.c (compute_argument_addresses): Likewise.
13034 * cfgcleanup.c (merge_memattrs): Likewise.
13035 * dce.c (find_call_stack_args): Likewise.
13036 * dse.c (record_store, scan_insn): Likewise.
13037 * dwarf2out.c (dw_sra_loc_expr): Likewise.
13038 * expr.c (emit_block_move_hints): Likewise.
13039 * function.c (assign_parm_find_stack_rtl): Likewise.
13040 * print-rtl.c (print_rtx): Likewise.
13041 * reload.c (find_reloads_subreg_address): Likewise.
13042 * rtlanal.c (may_trap_p_1): Likewise.
13043 * var-tracking.c (track_expr_p): Likewise.
13044 * varasm.c (assemble_trampoline_template): Likewise.
13045 * config/arm/arm.c (arm_print_operand): Likewise.
13046 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
13047 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
13048 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
13049 (expand_constant_setmem_prologue): Likewise.
13050 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
13051 * config/rs6000/rs6000.c (expand_block_move): Likewise.
13052 (adjacent_mem_locations): Likewise.
13053 * config/s390/s390.c (s390_expand_setmem): Likewise.
13054 (s390_expand_insv): Likewise.
13055 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
13056 (*extendqi<mode>2_short_displ): Likewise.
13057 * config/sh/sh.c (expand_block_move): Likewise.
13058 * config/sh/sh.md (extv, extzv): Likewise.
13059
13060 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13061
13062 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
13063 (mem_attrs_htab_eq): ...here.
13064 (find_mem_attrs): Replace with...
13065 (set_mem_attrs): ...this function. Take a mem_attrs structure
13066 rather than individual fields.
13067 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13068 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13069 (set_mem_size, change_address, adjust_address_1, offset_address)
13070 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13071 Update accordingly.
13072
13073 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13074
13075 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
13076 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
13077 Provide a dummy definition of MEM_ADDR_SPACE for generators.
13078 (target_rtl): Add x_mode_mem_attrs.
13079 (mode_mem_attrs): New macro.
13080 (get_mem_attrs): New function.
13081 * emit-rtl.c (get_mem_attrs): Rename to...
13082 (find_mem_attrs): ...this.
13083 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
13084 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
13085 (set_mem_size, change_address, adjust_address_1, offset_address)
13086 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
13087 Update accordingly.
13088 (init_emit_regs): Initialize mode_mem_attrs.
13089
13090 2011-07-19 Richard Guenther <rguenther@suse.de>
13091
13092 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
13093 TRUTH_*_EXPR handling.
13094 * tree-ssa-operands.c (get_expr_operands): Likewise.
13095 * tree-ssa-pre.c (fully_constant_expression): Likewise.
13096 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
13097 Likewise.
13098 (is_and_or_or): Likewise.
13099 (is_norm_cond_subset_of): Likewise.
13100
13101 2011-07-19 Richard Guenther <rguenther@suse.de>
13102
13103 * tree.h (fold_build_pointer_plus_loc): New helper function.
13104 (fold_build_pointer_plus_hwi_loc): Likewise.
13105 (fold_build_pointer_plus): Define.
13106 (fold_build_pointer_plus_hwi): Likewise.
13107 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
13108 (fold_builtin_memory_op): Likewise.
13109 (fold_builtin_stpcpy): Likewise.
13110 (fold_builtin_memchr): Likewise.
13111 (fold_builtin_strstr): Likewise.
13112 (fold_builtin_strchr): Likewise.
13113 (fold_builtin_strrchr): Likewise.
13114 (fold_builtin_strpbrk): Likewise.
13115 (fold_builtin_strcat): Likewise.
13116 (expand_builtin_memory_chk): Likewise.
13117 (fold_builtin_memory_chk): Likewise.
13118 * c-typeck.c (build_unary_op): Likewise.
13119 * cgraphunit.c (thunk_adjust): Likewise.
13120 * fold-const.c (build_range_check): Likewise.
13121 (fold_binary_loc): Likewise.
13122 * omp-low.c (extract_omp_for_data): Likewise.
13123 (expand_omp_for_generic): Likewise.
13124 (expand_omp_for_static_nochunk): Likewise.
13125 (expand_omp_for_static_chunk): Likewise.
13126 * tree-affine.c (add_elt_to_tree): Likewise.
13127 * tree-data-ref.c (split_constant_offset_1): Likewise.
13128 * tree-loop-distribution.c (generate_memset_zero): Likewise.
13129 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
13130 * tree-predcom.c (ref_at_iteration): Likewise.
13131 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13132 (add_to_parts): Likewise.
13133 (create_mem_ref): Likewise.
13134 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13135 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
13136 (number_of_iterations_le): Likewise.
13137 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
13138 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
13139 (vect_create_addr_base_for_vector_ref): Likewise.
13140 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
13141 (vect_create_cond_for_alias_checks): Likewise.
13142 * tree-vrp.c (extract_range_from_assert): Likewise.
13143 * config/alpha/alpha.c (alpha_va_start): Likewise.
13144 (alpha_gimplify_va_arg_1): Likewise.
13145 * config/i386/i386.c (ix86_va_start): Likewise.
13146 (ix86_gimplify_va_arg): Likewise.
13147 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13148 * config/mep/mep.c (mep_expand_va_start): Likewise.
13149 (mep_gimplify_va_arg_expr): Likewise.
13150 * config/mips/mips.c (mips_va_start): Likewise.
13151 (mips_gimplify_va_arg_expr): Likewise.
13152 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13153 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
13154 (rs6000_gimplify_va_arg): Likewise.
13155 * config/s390/s390.c (s390_va_start): Likewise.
13156 (s390_gimplify_va_arg): Likewise.
13157 * config/sh/sh.c (sh_va_start): Likewise.
13158 (sh_gimplify_va_arg_expr): Likewise.
13159 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13160 * config/spu/spu.c (spu_va_start): Likewise.
13161 (spu_gimplify_va_arg_expr): Likewise.
13162 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13163 Likewise.
13164 (xstormy16_gimplify_va_arg_expr): Likewise.
13165 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
13166 (xtensa_gimplify_va_arg_expr): Likewise.
13167
13168 2011-07-19 Richard Guenther <rguenther@suse.de>
13169
13170 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
13171 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
13172 handling.
13173
13174 PR middle-end/18908
13175 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
13176 result of BIT_*_EXPR to bitfield precision.
13177
13178 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
13179
13180 PR tree-optimization/49742
13181 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
13182 as a potential write.
13183
13184 2011-07-19 Richard Guenther <rguenther@suse.de>
13185
13186 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
13187 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
13188 (forward_propagate_comparison): Simplify, remove obsolete code.
13189
13190 2011-07-19 Richard Guenther <rguenther@suse.de>
13191
13192 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
13193 BIT_XOR_EXPR, same as the RTL expander does.
13194 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
13195 (verify_gimple_assign_unary): Likewise.
13196 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
13197 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
13198 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
13199
13200 2011-07-19 Jakub Jelinek <jakub@redhat.com>
13201
13202 PR tree-optimization/49768
13203 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
13204 if offset is smaller than bitoffset, but offset+size is bigger
13205 than bitoffset.
13206
13207 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
13208
13209 PR tree-optimization/49771
13210 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
13211 zero step, set segment length to the size of the data-ref's type.
13212
13213 2011-07-18 Martin Jambor <mjambor@suse.cz>
13214
13215 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
13216 comments.
13217 (ipcp_values_pool): Declare.
13218 (ipcp_sources_pool): Likewise.
13219 (ipcp_lattice): Changed to forward declaration.
13220 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
13221 cannot_devirtualize.
13222 (ipa_node_params): New fields descriptors, lattices, known_vals,
13223 clone_for_all_contexts and node dead, removed fields params and
13224 count_scale.
13225 (ipa_set_param_count): Removed.
13226 (ipa_get_param_count): Made to work with descriptors vector.
13227 (ipa_get_param): Updated.
13228 (ipa_param_cannot_devirtualize_p): Removed.
13229 (ipa_param_types_vec_empty): Likewise.
13230 (ipa_set_param_used): New function.
13231 (ipa_get_param_used): Updated to use descriptors vector.
13232 (ipa_func_list): Removed.
13233 (ipa_init_func_list): Removed declaration.
13234 (ipa_push_func_to_list_1): Likewise.
13235 (ipa_pop_func_from_list): Likewise.
13236 (ipa_push_func_to_list): Removed.
13237 (ipa_lattice_from_jfunc): Remove declaration.
13238 (ipa_get_jf_pass_through_result): Declare.
13239 (ipa_get_jf_ancestor_result): Likewise.
13240 (ipa_value_from_jfunc): Likewise.
13241 (ipa_get_lattice): Update.
13242 (ipa_lat_is_single_const): New function.
13243 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
13244 (ipa_init_func_list): Likewise.
13245 (ipa_pop_func_from_list): Likewise.
13246 (ipa_get_param_decl_index): Fix coding style.
13247 (count_formal_params): Removed.
13248 (count_formal_params_1): Renamed to count_formal_params.
13249 (ipa_populate_param_decls): Update to use descriptors vector.
13250 (ipa_initialize_node_params): Likewise.
13251 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
13252 (ipa_analyze_params_uses): Likewise.
13253 (ipa_free_node_params_substructures): Likewise and free also lattices
13254 and known values.
13255 (duplicate_array): Removed.
13256 (ipa_edge_duplication_hook): Add the new edge to the list of edge
13257 clones.
13258 (ipa_node_duplication_hook): Update to use new lattices.
13259 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
13260 (ipa_free_all_structures_after_iinln): Likewise.
13261 (ipa_write_node_info): Update to use new lattices.
13262 (ipa_read_node_info): Likewise.
13263 (ipa_get_jf_pass_through_result): New function.
13264 (ipa_get_jf_ancestor_result): Likewise.
13265 (ipa_value_from_jfunc): Likewise.
13266 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
13267 * ipa-cp.c: Reimplemented.
13268 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
13269 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
13270 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
13271 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
13272 * doc/invoke.texi (devirt-type-list-size): Removed description.
13273 (ipa-cp-value-list-size): Added description.
13274
13275 2011-07-18 Richard Henderson <rth@redhat.com>
13276
13277 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
13278 before calling create_basic_block.
13279
13280 2011-07-18 Jakub Jelinek <jakub@redhat.com>
13281
13282 PR middle-end/49675
13283 * tree.c (build_common_builtin_nodes): Register
13284 __builtin_return_address, __cyg_profile_func_enter
13285 and __cyg_profile_func_exit.
13286
13287 2011-07-18 Richard Henderson <rth@redhat.com>
13288
13289 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
13290 (add_labels_and_missing_jumps): ... here.
13291 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
13292
13293 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
13294
13295 PR target/47744
13296 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13297 of DImode hard registers in PLUS address chains.
13298
13299 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13300
13301 PR bootstrap/49769
13302 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
13303 (alpha*-*-freebsd*): Likewise.
13304 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13305 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
13306 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
13307 crtprec80.o, crtfastmath.o to extra_parts for all targets.
13308 (ia64*-*-elf*): Remove extra_parts.
13309 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
13310 (sparc64-*-linux*): Likewise.
13311 (sparc64-*-freebsd*): Likewise.
13312
13313 Revert:
13314 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
13315 (ia64*-*-linux*): Likewise.
13316 (mips64*-*-linux*): Likewise.
13317 (mips*-*-linux*): Likewise.
13318
13319 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
13320
13321 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
13322
13323 2011-07-18 Richard Guenther <rguenther@suse.de>
13324
13325 * gimplify.c (gimplify_expr): Use input_location, not saved_location
13326 when building new trees.
13327
13328 2011-07-18 Richard Guenther <rguenther@suse.de>
13329
13330 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
13331 expansion result to bitfield precision if required.
13332
13333 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13334
13335 * config.gcc (i[3456x]86-*-netware*): Remove.
13336
13337 * gthr-nks.h: Remove.
13338 * configure.ac (enable_threads): Remove nks.
13339 * configure: Regenerate.
13340
13341 * config/i386/i386.c (ix86_encode_section_info): Remove netware
13342 reference.
13343 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
13344 <netware.h> reference.
13345
13346 * config/i386/netware-libgcc.c,
13347 gcc/config/i386/netware-libgcc.def,
13348 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
13349 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
13350 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
13351 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
13352
13353 * doc/extend.texi (Function Attributes,
13354 callee_pop_aggregate_return): Remove i?86-netware reference.
13355 * doc/install.texi (Configuration, --enable-threads): Remove nks.
13356
13357 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13358
13359 PR target/49746
13360 Revert:
13361 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13362
13363 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
13364 patterns.
13365
13366 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
13367
13368 PR middle-end/49732
13369 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
13370
13371 2011-07-16 Matthias Klose <doko@ubuntu.com>
13372
13373 * doc/install.texi: Document --enable-static-libjava.
13374
13375 2011-07-15 Richard Henderson <rth@redhat.com>
13376
13377 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13378 Replace all three arguments by returning a VEC of edges.
13379 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
13380 pointers and counts.
13381 (fix_edges_for_rarely_executed_code): Merge ...
13382 (rest_of_handle_partition_blocks): ... into...
13383 (partition_hot_cold_basic_blocks): ... here. Return todo items if
13384 any work was performed.
13385 (pass_partition_blocks): Clear todo_flags_finish.
13386
13387 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
13388 Jakub Jelinek <jakub@redhat.com>
13389 Jonathan Wakely <jwakely.gcc@gmail.com>
13390
13391 PR libstdc++/49745
13392 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
13393 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
13394
13395 2011-07-15 Jason Merrill <jason@redhat.com>
13396
13397 PR testsuite/49741
13398 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
13399 rather than --tool_opts.
13400
13401 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
13402
13403 * doc/plugins.texi (Building GCC plugins): gengtype needs its
13404 corresponding gtype.state.
13405
13406 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13407
13408 PR target/49723
13409 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
13410
13411 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
13412
13413 PR target/48220
13414 * doc/md.texi (Standard Names): Document window_save.
13415 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
13416 expand_debug_expr and expand_debug_source_expr. If the target has
13417 a window_save instruction, adjust the ENTRY_VALUE_EXP.
13418 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
13419 SSA_NAME_VAR is a parameter.
13420 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
13421 * var-tracking.c (parm_reg_t): New type and associated vector type.
13422 (windowed_parm_regs): New variable.
13423 (adjust_insn): If the target has a window_save instruction and this
13424 is the instruction, make its effect on parameter registers explicit.
13425 (next_non_note_insn_var_location): New function.
13426 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
13427 (vt_add_function_parameter): If the target has a window_save insn,
13428 adjust the incoming RTL and record that in windowed_parm_regs.
13429 (vt_finalize): Free windowed_parm_regs.
13430
13431 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
13432
13433 * doc/invoke.texi (C6X Options): New section.
13434 * doc/md.texi (TI C6X family): New section.
13435 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
13436 tic6x-*-uclinux.
13437 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
13438 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
13439 Provide C6X definitions.
13440 * config/c6x/c6x.md: New file.
13441 * config/c6x/constraints.md: New file.
13442 * config/c6x/predicates.md: New file.
13443 * config/c6x/c6x-sched.md.in: New file.
13444 * config/c6x/c6x-sched.md: New file.
13445 * config/c6x/gensched.sh: New file.
13446 * config/c6x/c6x-mult.md.in: New file.
13447 * config/c6x/genmult.sh: New file.
13448 * config/c6x/c6x-mult.md: New file.
13449 * config/c6x/sync.md: New file.
13450 * config/c6x/c6x-protos.h: New file.
13451 * config/c6x/sfp-machine.h: New file.
13452 * config/c6x/c6x.c: New file.
13453 * config/c6x/c6x.h: New file.
13454 * config/c6x/crti.s: New file.
13455 * config/c6x/crtn.s: New file.
13456 * config/c6x/lib1funcs.asm: New file.
13457 * config/c6x/c6x-modes.def: New file.
13458 * config/c6x/genopt.sh: New file.
13459 * config/c6x/c6x.opt: New file.
13460 * config/c6x/c6x-tables.opt: New file.
13461 * config/c6x/c6x-opts.h: New file.
13462 * config/c6x/c6x-isas.def: New file.
13463 * config/c6x/elf.h: New file.
13464 * config/c6x/elf-common.h: New file.
13465 * config/c6x/uclinux-elf.h: New file.
13466 * config/c6x/t-c6x: New file.
13467 * config/c6x/t-c6x-elf: New file.
13468 * config/c6x/t-c6x-uclinux: New file.
13469 * config/c6x/t-c6x-softfp: New file.
13470 * config/c6x/gtd.c: New file.
13471 * config/c6x/gtf.c: New file.
13472 * config/c6x/ltd.c: New file.
13473 * config/c6x/ltf.c: New file.
13474 * config/c6x/ged.c: New file.
13475 * config/c6x/gef.c: New file.
13476 * config/c6x/led.c: New file.
13477 * config/c6x/lef.c: New file.
13478 * config/c6x/eqd.c: New file.
13479 * config/c6x/eqf.c: New file.
13480 * config/c6x/libgcc-c6xeabi.ver: New file.
13481
13482 Revert
13483 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
13484 PR rtl-optimization/11320
13485 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13486 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13487 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13488 current_sched_info->compute_jump_reg_dependencies. Record which
13489 registers are used and which registers are set by the jump.
13490 Clear deps->reg_conditional_sets after a barrier.
13491 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13492 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13493 (init_deps): Initialize reg_conditional_sets.
13494 (free_deps): Clear reg_conditional_sets.
13495 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13496 Mark registers live on entry of the fallthrough block and conditionally
13497 set as set by the jump. Mark registers live on entry of non-fallthrough
13498 blocks as used by the jump.
13499 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13500 Mark new parameters as unused.
13501
13502 2011-07-14 Andrew Pinski <pinskia@gmail.com>
13503
13504 PR tree-opt/49309
13505 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
13506 Use fold_build2_loc instead of build2.
13507 Use the correct type for the new tree.
13508
13509 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
13510
13511 PR rtl-optimization/11320
13512 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
13513 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
13514
13515 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
13516
13517 PR target/49487
13518 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
13519 of REG.
13520 (*rotw<mode>): Use const_int_operand for operand2.
13521 Use match_scatch for operand3.
13522 (*rotb<mode>): Ditto
13523 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
13524
13525 2011-07-14 Richard Guenther <rguenther@suse.de>
13526
13527 PR tree-optimization/49651
13528 * tree-ssa-structalias.c (get_constraint_for_1): Properly
13529 handle dereferences with subvariables.
13530
13531 2011-07-14 Richard Guenther <rguenther@suse.de>
13532
13533 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
13534 (fold_stmt_1): Do it here directly on gimple and as a first thing.
13535
13536 2011-07-14 Richard Guenther <rguenther@suse.de>
13537
13538 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
13539 not bool_var when folding bool_var != 1 or bool_var == 0.
13540
13541 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
13542
13543 * haifa-sched.c (schedule_insns): Remove outdated comment.
13544 (schedule_block): When computing a known value for TODO_SPEC,
13545 just set it rather than using logical operations.
13546 (try_ready): Likewise. Use a local variable rather than a
13547 pointer to TODO_SPEC. Reorder an if statement to move the
13548 easy case to the then block.
13549 * sched-deps.c (dep_spec_p): New static function.
13550 (update_dep): Use it to decide whether to call
13551 change_spec_dep_to_hard.
13552 (get_back_and_forw_lists): Use it.
13553 (sd_resolve_dep): Likewise.
13554 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
13555 (haifa_note_mem_dep): Likewise.
13556 (check_dep): Likewise.
13557 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
13558 (sched_free_deps): Free in two passes.
13559
13560 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
13561
13562 PR middle-end/49736
13563 * expr.c (all_zeros_p): Undo bogus part of last change.
13564
13565 2011-07-14 Matthias Klose <doko@ubuntu.com>
13566
13567 * doc/extend.texi (optimize attribute): Fix typo.
13568
13569 2011-07-14 Richard Guenther <rguenther@suse.de>
13570
13571 * gimplify.c (gimplify_expr): Only do required conversions.
13572
13573 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
13574
13575 PR target/43746
13576 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
13577 i.e. use default_elf_select_section.
13578 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
13579 (READONLY_DATA_SECTION_ASM_OP): Remove.
13580 (TARGET_ASM_NAMED_SECTION): Move from here...
13581 * config/avr/avr.c: ...to here.
13582 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
13583 (avr_asm_named_section): Make static.
13584
13585 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13586
13587 PR bootstrap/49739
13588 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
13589 and crtfastmath.o for Linux/x86.
13590
13591 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
13592
13593 * haifa-sched.c: Include "hashtab.h"
13594 (sched_no_dce): New global variable.
13595 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
13596 SHADOW_P): New macros.
13597 (last_clock_var, cycle_issued_insns): Move declarations.
13598 (must_backtrack): New static variable.
13599 (struct delay_pair): New structure.
13600 (delay_htab, delay_htab_i2): New static variables.
13601 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
13602 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
13603 functions.
13604 (dep_cost_1): If delay pairs exist, try to look up the insns and
13605 use the correct pair delay if we find them.
13606 (rank-for_schedule): Tweak priority for insns that must be scheduled
13607 soon to avoid backtracking.
13608 (queue_insn): Detect conditions which force backtracking.
13609 (ready_add): Likewise.
13610 (struct sched_block_state): Add member shadows_only_p.
13611 (struct haifa_save_data): New structure.
13612 (backtrack_queue): New static variable.
13613 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
13614 unschedule_insns_until, restore_last_backtrack_point,
13615 free_topmost_backtrack_point, free_backtrack_queue,
13616 estimate_insn_tick, estimate_shadow_tick): New functions.
13617 (prune_ready_list): New arg shadows_only_p. All callers changed.
13618 If true, remove everything that isn't SHADOW_P. Look up delay
13619 pairs and estimate ticks to avoid scheduling the first insn too early.
13620 (verify_shadows): New function.
13621 (schedule_block): Add machinery to enable backtracking.
13622 (sched_init): Take sched_no_dce into account when setting
13623 DF_LR_RUN_DCE.
13624 (free_delay_pairs): New function.
13625 (init_h_i_d): Initialize INSN_EXACT_TICK.
13626 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
13627 * sched-deps.c (sd_unresolve_dep): New function.
13628 * sched-int. (struct haifa_sched_info): New fields save_state
13629 and restore_state.
13630 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
13631 feeds_backtrack_insn and shadow_p.
13632 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
13633 (sched_no_dce): Declare variable.
13634 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
13635 sd_unresolve_dep): Declare functions.
13636 * modulo-sched.c (sms_sched_info): Clear the two new fields.
13637 * sched-rgn.c (rgn_const_sched_info): Likewise.
13638 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
13639 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
13640 (ebb_sched_info): Add them for the two new fields.
13641 (add_deps_for_risky_insns): Call add_delay_dependencies.
13642
13643 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13644
13645 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
13646 Rename -mr11.
13647 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
13648 (rs6000_call_indirect_aix): Ditto.
13649 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
13650 (call_indirect_aix<ptrsize>_internal): Ditto.
13651 (call_indirect_aix<ptrsize>_nor11): Ditto.
13652 (call_indirect_aix<ptrsize>_internal2): Ditto.
13653 (call_value_indirect_aix<ptrsize>): Ditto.
13654 (call_value_indirect_aix<ptrsize>_internal): Ditto.
13655 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13656 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13657 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
13658
13659 2011-07-13 Jason Merrill <jason@redhat.com>
13660
13661 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
13662
13663 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13664
13665 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
13666 * config/spu/spu.md ("clrsb<mode>2"): New expander.
13667
13668 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
13669
13670 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
13671 * configure: Regenerate.
13672
13673 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13674
13675 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
13676 (asm_file_start): Remove.
13677 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
13678 free_bb_for_insn around code that modifies insns before
13679 restarting df analysis.
13680
13681 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13682
13683 PR target/49541
13684 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
13685 (LINK_SPEC): ... here.
13686
13687 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
13688
13689 * haifa-sched.c (struct sched_block_state): New.
13690 (schedule_block): Move some local variables into such a structure.
13691
13692 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13693
13694 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
13695 * config/i386/t-crtpc: Remove.
13696 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13697 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
13698 tmake_file.
13699 (x86_64-*-darwin*): Likewise.
13700 (i[34567]86-*-linux*): Likewise.
13701 (x86_64-*-linux*): Likewise.
13702
13703 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
13704 Handle -mpc32, -mpc64, -mpc80.
13705
13706 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13707
13708 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
13709 * config/alpha/t-crtfm: Remove.
13710 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
13711 * config/i386/t-crtfm: Remove.
13712 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
13713 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
13714 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
13715 * config/sparc/t-crtfm: Remove.
13716
13717 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
13718 (alpha*-*-freebsd*): Likewise.
13719 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
13720 (x86_64-*-darwin*): Likewise.
13721 (i[34567]86-*-linux*): Likewise.
13722 (x86_64-*-linux*): Likewise.
13723 (x86_64-*-mingw*): Likewise.
13724 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
13725 (ia64*-*-freebsd*): Likewise.
13726 (ia64*-*-linux*): Likewise.
13727 (mips64*-*-linux*): Likewise.
13728 (mips*-*-linux*): Likewise.
13729 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
13730 (sparc64-*-linux*): Likewise.
13731 (sparc64-*-freebsd*): Likewise.
13732
13733 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13734
13735 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
13736 * config/darwin-crt3.c: Move to ../libgcc/config.
13737 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
13738 ($(T)crt3$(objext)): Remove.
13739 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
13740 ($(T)crt2$(objext)): Remove.
13741 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
13742 (powerpc64-*-darwin*): Likewise.
13743
13744 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
13745
13746 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
13747
13748 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
13749 (addsi_1_zext): This.
13750
13751 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
13752
13753 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
13754 * doc/tm.texi: Regenerate.
13755 * target.def (mergeable_rodata_prefix): New defhookpod.
13756 * varasm.c (mergeable_string_section, mergeable_constant_section):
13757 Use it. Allocate name with alloca.
13758
13759 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
13760
13761 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
13762
13763 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
13764
13765 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
13766 overlap check.
13767
13768 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
13769
13770 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
13771 (count_type_elements): Delete.
13772 (complete_ctor_at_level_p): Declare.
13773 * expr.c (flexible_array_member_p): New function, split out from...
13774 (count_type_elements): ...here. Make static. Replace allow_flexarr
13775 parameter with for_ctor_p. When for_ctor_p is true, return the
13776 number of elements that should appear in the top-level constructor,
13777 otherwise return an estimate of the number of scalars.
13778 (categorize_ctor_elements): Replace p_must_clear with p_complete.
13779 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
13780 (complete_ctor_at_level_p): New function, borrowing union logic
13781 from old categorize_ctor_elements_1.
13782 (mostly_zeros_p): Return true if the constructor is not complete.
13783 (all_zeros_p): Update call to categorize_ctor_elements.
13784 * gimplify.c (gimplify_init_constructor): Update call to
13785 categorize_ctor_elements. Don't call count_type_elements.
13786 Unconditionally prevent clearing for variable-sized types,
13787 otherwise rely on categorize_ctor_elements to detect
13788 incomplete initializers.
13789
13790 2011-07-13 Richard Guenther <rguenther@suse.de>
13791
13792 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
13793 the final type is integral.
13794
13795 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
13796
13797 * sched-int.h (struct _dep): Add member cost.
13798 (DEP_COST, UNKNOWN_DEP_COST): New macros.
13799 * sched-deps.c (init_dep_1): Initialize DEP_COST.
13800 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
13801 (sched_change_pattern): Reset it for dependent insns.
13802
13803 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13804
13805 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
13806 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
13807 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
13808 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
13809 (CRT0_S, MCRT0_S): Remove.
13810 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
13811 Remove.
13812 (s-crt0): Remove.
13813 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
13814
13815 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
13816
13817 * cse.c (insert_with_costs): Put semi-colon after empty loop body
13818 on the next line.
13819 * emit-rtl.c (push_to_sequence): Likewise.
13820 * haifa-sched.c (max_issue): Likewise.
13821 * matrix-reorg.c (add_allocation_site): Likewise.
13822 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13823 * reload.c (alternative_allows_const_pool_ref): Likewise.
13824 * sched-rgn.c (rgn_add_block): Likewise.
13825 (rgn_fix_recovery_cfg): Likewise.
13826 * tree.c (attribute_list_contained): Likewise.
13827
13828 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
13829
13830 * config/i386/i386.c: Tidy processor feature bitmasks.
13831 (m_P4_NOCONA): New.
13832
13833 2011-07-12 Andrew Pinski <pinskia@gmail.com>
13834
13835 PR rtl-opt/49474
13836 * cprop.c (find_implicit_sets): Correct the condition.
13837
13838 2011-07-12 Richard Henderson <rth@redhat.com>
13839
13840 PR target/49713
13841 * dwarf2out.h (dwarf_frame_regnum): Remove.
13842 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
13843 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
13844 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
13845 (execute_dwarf2_frame): Initialize them.
13846 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
13847 users of the macros with the variables.
13848 (expand_builtin_dwarf_sp_column): Revert last change.
13849 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
13850 result of DWARF_FRAME_REGNUM into a local variable.
13851
13852 2011-07-12 Richard Henderson <rth@redhat.com>
13853
13854 PR target/49714
13855 * config/i386/i386.c (x86_output_mi_thunk): Use
13856 machopic_indirect_call_target instead of machopic_indirection_name
13857 directly.
13858
13859 2011-07-12 Laurent GUERBY <laurent@guerby.net>
13860 Eric Botcazou <ebotcazou@adacore.com>
13861
13862 * prefix.h: Wrap up in extern "C" block.
13863
13864 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
13865
13866 AMD bdver2 Enablement
13867 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
13868 (case ${target}): Add bdver2.
13869 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13870 -march=native recognize bdver2 processors.
13871 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13872 bdver2 def_and_undef
13873 * config/i386/i386.c (struct processor_costs bdver2_cost): New
13874 bdver2 cost table.
13875 (m_BDVER2): New definition.
13876 (m_AMD_MULTIPLE): Includes m_BDVER2.
13877 (initial_ix86_tune_features): Add bdver2 tuning.
13878 (processor_target_table): Add bdver2 entry.
13879 (static const char *const cpu_names): Add bdver2 entry.
13880 (ix86_option_override_internal): Add bdver2 instruction sets.
13881 (ix86_issue_rate): Add bdver2.
13882 (ix86_adjust_cost): Add bdver2.
13883 (has_dispatch): Add bdver2.
13884 * config/i386/i386.h (TARGET_BDVER2): New definition.
13885 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
13886 (enum processor_type): Add PROCESSOR_BDVER2.
13887 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
13888 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
13889 description.
13890
13891 2011-07-12 Richard Henderson <rth@redhat.com>
13892
13893 PR target/49714
13894 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
13895 destination address in memory on some paths.
13896
13897 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
13898
13899 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
13900 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
13901 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
13902 * function.c (locate_and_pad_parm): Take it into account.
13903 * target.def (function_arg_round_boundary): New hook.
13904 * targhooks.c (default_function_arg_round_boundary): New function.
13905 * targhooks.h (default_function_arg_round_boundary): Declare.
13906 * doc/tm.texi: Regenerate.
13907
13908 2011-07-12 Richard Guenther <rguenther@suse.de>
13909
13910 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
13911 Do not perform no-op changes.
13912
13913 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
13914
13915 * config/arm/predicates.md (neon_struct_operand): Make a normal
13916 predicate.
13917 (neon_struct_or_register_operand): New predicate.
13918 * config/arm/neon.md (movmisalign<mode>): Replace predicates
13919 with neon_struct_or_register_operand.
13920 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
13921 neon_struct_operand instead of memory_operand.
13922
13923 2011-07-12 Martin Jambor <mjambor@suse.cz>
13924
13925 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
13926 * cgraph.c (cgraph_get_node_or_alias): Removed.
13927 (change_decl_assembler_name): Changed all calls to
13928 cgraph_get_node_or_alias to a call to cgraph_get_node.
13929 (cgraph_make_decl_local): Likewise.
13930 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
13931 * varasm.c (default_binds_local_p_1): Likewise.
13932 (decl_binds_to_current_def_p): Likewise.
13933
13934 2011-07-12 Jakub Jelinek <jakub@redhat.com>
13935
13936 PR tree-optimization/49712
13937 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
13938
13939 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
13940
13941 * genautomata.c (add_arc): Return void. All callers changed.
13942 (make_automaton): Remove dead code.
13943
13944 2011-07-11 Richard Henderson <rth@redhat.com>
13945
13946 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
13947 (DW_FRAME_POINTER_REGNUM): New.
13948 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
13949 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
13950 (dwf_regno): New.
13951 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
13952 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
13953 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
13954 Use it.
13955 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
13956 * dwarf2out.h (dwarf_frame_regnum): New.
13957 (struct cfa_loc): Document the domain of the reg member.
13958
13959 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
13960
13961 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
13962 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
13963
13964 2011-07-11 Jakub Jelinek <jakub@redhat.com>
13965
13966 PR debug/49676
13967 * dwarf2out.c (int_shift_loc_descriptor): New function.
13968 (int_loc_descriptor): If shorter, emit i as
13969 (i >> shift), shift, DW_OP_shl for suitable shift value.
13970 Similarly, try to optimize large negative values using
13971 DW_OP_neg of a positive value if shorter.
13972 (size_of_int_shift_loc_descriptor): New function.
13973 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
13974 changes.
13975 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
13976 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
13977 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
13978 is shorter.
13979 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
13980 addend as added DW_OP_plus if it is shorter.
13981
13982 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13983
13984 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
13985 (DTORS_SECTION_ASM_OP): Define.
13986
13987 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13988
13989 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
13990 * config/t-dfprules: Move to ../libgcc/config.
13991 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13992 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
13993 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
13994 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
13995 Likewise.
13996 (i[34567]86-*-cygwin*): Likewise.
13997 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
13998 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
13999 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
14000 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
14001 D64PBIT_FUNCS, D128PBIT_FUNCS.
14002
14003 2011-07-11 Richard Guenther <rguenther@suse.de>
14004
14005 * tree-vrp.c (simplify_conversion_using_ranges): Manually
14006 translate the source value-range through the conversion chain.
14007
14008 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
14009
14010 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
14011
14012 2011-07-11 Arthur Loiret <aloiret@debian.org>
14013
14014 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
14015 a bi-arch compiler defaulting to 31-bit. In this case:
14016 (tmake_file): Add s390/t-linux64.
14017 * doc/install.texi: Add s390-linux to the list of targets supporting
14018 --enable-targets=all.
14019
14020 2011-07-11 Arthur Loiret <aloiret@debian.org>
14021 Matthias Klose <doko@debian.org>
14022
14023 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
14024 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
14025 (tm_file): Add mips/linux64.h.
14026 (tmake_file): Add mips/t-linux64.
14027 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14028 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
14029 instead of hardcoded mabi=n32.
14030 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14031 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14032 convention.
14033
14034 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14035
14036 * passes.c (init_optimization_passes): Add invariant motion pass
14037 after induction variable optimization.
14038
14039 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
14040
14041 PR target/39633
14042 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
14043 offsets 1..5 set cc0 in a usable way.
14044
14045 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
14046
14047 * tree.h (call_expr_arg): Remove.
14048 (call_expr_argp): Likewise.
14049
14050 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
14051
14052 * config/sparc/sparc.md (save_register_window_1): Rename to...
14053 (window_save): ...this.
14054 * config/sparc/sparc.c (emit_save_register_window): Rename to...
14055 (emit_window_save): ...this.
14056 (sparc_expand_prologue): Adjust to above renaming.
14057
14058 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
14059
14060 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
14061 of movabs for x32.
14062
14063 2011-07-10 Richard Henderson <rth@redhat.com>
14064
14065 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
14066 run final, instead of emitting text directly.
14067
14068 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
14069
14070 * config/i386/i386.c (ix86_option_override_internal): Turn on
14071 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
14072 small PIC models for TARGET_X32.
14073
14074 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
14075
14076 PR target/49684
14077 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
14078 $(LIBGCC2_CFLAGS).
14079
14080 PR bootstrap/49680
14081 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
14082 stray notes and debug insns by using prev_nonnote_nondebug_insn
14083 instead of PREV_INSN.
14084
14085 2011-07-09 Richard Henderson <rth@redhat.com>
14086
14087 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
14088 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
14089 * dwarf2out.c: ... here.
14090 (output_all_cfis): Remove.
14091 (dwarf2out_switch_text_section): Use output_cfis directly.
14092 (size_of_locs): Export.
14093 (output_loc_sequence, output_loc_sequence_raw): Export.
14094 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
14095 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
14096 output_cfa_loc_raw): Move to ...
14097 * dwarfcfi.c: ... here.
14098 * dwarf2out.h: Update decls.
14099
14100 2011-07-09 Richard Henderson <rth@redhat.com>
14101
14102 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
14103 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
14104 * dwarf2cfi.c: ... here.
14105 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
14106 (DWARF_ROUND, DWARF_CIE_ID): Remove.
14107 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
14108 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
14109 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
14110
14111 2011-07-09 Richard Henderson <rth@redhat.com>
14112
14113 * dwarf2cfi.c (cie_return_save): New.
14114 (queue_reg_save): Use compare_reg_or_pc.
14115 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
14116 (dwarf2out_frame_debug_expr): Likewise.
14117 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
14118 (initial_return_save): Likewise.
14119 (execute_dwarf2_frame): Save and restore initial return save from
14120 the cie to the fde.
14121 * config/mips/mips.c (mips_frame_set): Remove special case for
14122 DWARF_FRAME_RETURN_COLUMN.
14123
14124 2011-07-09 Richard Henderson <rth@redhat.com>
14125
14126 * dwarf2cfi.c (lookup_cfa): Remove.
14127 (execute_dwarf2_frame): Assert queues are empty on entry.
14128 Setup initial cfa directly, not via lookup_cfa.
14129 Don't clear args_size state here.
14130
14131 2011-07-09 Richard Henderson <rth@redhat.com>
14132
14133 * dwarf2cfi.c (add_cfi_vec): New.
14134 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
14135 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
14136 (execute_dwarf2_frame): Set add_cfi_vec.
14137
14138 2011-07-09 Richard Henderson <rth@redhat.com>
14139
14140 * defaults.h (ASM_COMMENT_START): Move here...
14141 * dwarf2asm.c: ... from here.
14142 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
14143 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
14144 * varasm.c: Likewise.
14145
14146 2011-07-09 Richard Henderson <rth@redhat.com>
14147
14148 PR debug/49686
14149 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
14150 (create_cfi_notes): ... do it here instead.
14151
14152 2011-07-09 Jakub Jelinek <jakub@redhat.com>
14153
14154 PR debug/49676
14155 * dwarf2out.c (size_of_int_loc_descriptor): New function.
14156 (address_of_int_loc_descriptor): Use it.
14157 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
14158
14159 2011-07-09 Richard Henderson <rth@redhat.com>
14160
14161 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
14162 (prologue, epilogue): New.
14163 (return, *rts): New.
14164 (blockage, setd, seti): New.
14165 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
14166 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
14167 (pdp11_saved_regno): New.
14168 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
14169 generate rtl instead of text.
14170 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
14171 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
14172 * config/pdp11/pdp11-protos.h: Update.
14173
14174 2011-07-09 Richard Henderson <rth@redhat.com>
14175
14176 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
14177 try to insert an rtl prologue here.
14178 (rs6000_output_function_epilogue): Similarly.
14179 * config/rs6000/rs6000.md (prologue): Emit a barrier to
14180 satisfy !TARGET_SCHED_PROLOG.
14181 (epilogue, sibcall_epilogue): Likewise.
14182
14183 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
14184
14185 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
14186 (FP_REG_P): Delete.
14187 (IN_OR_GLOBAL_P): Likewise.
14188
14189 2011-07-08 Jason Merrill <jason@redhat.com>
14190
14191 PR c++/45437
14192 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
14193 compound assignment.
14194
14195 * cgraph.c (cgraph_add_to_same_comdat_group): New.
14196 * cgraph.h: Declare it.
14197 * ipa.c (function_and_variable_visibility): Make sure thunks
14198 have the right visibility.
14199
14200 2011-07-08 Richard Henderson <rth@redhat.com>
14201
14202 PR bootstrap/49680
14203 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
14204 any tablejump vector.
14205
14206 PR bootstrap/49680
14207 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
14208 end of the prologue.
14209
14210 2011-07-08 Jakub Jelinek <jakub@redhat.com>
14211
14212 PR target/49621
14213 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
14214 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
14215 * config/rs6000/vector.md (vector_select_<mode>,
14216 vector_select_<mode>_uns): Change second operand of NE to
14217 CONST0_RTX (<MODE>mode) instead of const0_rtx.
14218 * config/rs6000/altivec.md (*altivec_vsel<mode>,
14219 *altivec_vsel<mode>_uns): Expect second operand of NE to be
14220 zero_constant of the corresponding vector mode.
14221 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
14222 Likewise.
14223
14224 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
14225
14226 * graphite-dependences.c (build_alias_set_powerset): Remove
14227 continue from loop, add one more assert.
14228
14229 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
14230
14231 PR target/46779
14232 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
14233 In particular, allow 8-bit values in r28 and r29.
14234 (avr_hard_regno_scratch_ok): Disallow any register that might be
14235 part of the frame pointer.
14236 (avr_hard_regno_rename_ok): Same.
14237 (avr_legitimate_address_p): Don't allow SUBREGs.
14238
14239 2011-07-08 Julian Brown <julian@codesourcery.com>
14240
14241 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
14242 big-endian mode.
14243 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
14244 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
14245 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
14246 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
14247 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
14248 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
14249 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
14250 registers in big-endian mode.
14251
14252 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
14253
14254 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
14255 in terms of another.
14256 (write_attr_value): Write a cast if necessary.
14257
14258 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
14259 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
14260 (REG_WORDS_BIG_ENDIAN): Document.
14261 * doc/tm.texi: Regenerate.
14262 * reload.c (operands_match_p): Take it into account.
14263 (reload_adjust_reg_for_mode): Likewise.
14264 * rtlanal.c (subreg_get_info): Likewise.
14265
14266 2011-07-08 Richard Guenther <rguenther@suse.de>
14267
14268 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
14269 folding.
14270
14271 2011-07-08 Kai Tietz <ktietz@redhat.com>
14272
14273 * fold-const.c (fold_truth_andor): Factored out truth_andor
14274 label from fold_binary as function.
14275 (fold_binary_loc): Replace truth_andor lable
14276 by function fold_truth_andor.
14277
14278 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
14279
14280 PR middle-end/49519
14281 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
14282 check if address is stored in register. If so - give up.
14283 (check_sibcall_argument_overlap_1): Do not perform check of
14284 overlapping when it is call to address.
14285
14286 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
14287
14288 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
14289 of magic '31'.
14290
14291 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
14292
14293 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
14294 GET_MODE_BITSIZE where appropriate.
14295 (widen_leading, expand_parity, expand_ctz, expand_ffs,
14296 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
14297 expand_float, expand_fix): Likewise.
14298 * expr.c (convert_move, convert_modes, expand_expr_real_2,
14299 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14300 * stor-layout.c (get_mode_bounds): Likewise.
14301 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
14302 Likewise.
14303 * convert.c (convert_to_integer): Likewise.
14304 * expmed.c (expand_shift_1): Likewise.
14305
14306 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
14307 a bitsize.
14308
14309 * optabs.c (expand_binop): Tighten conditions for doubleword
14310 expansions.
14311 (widen_bswap): Assert that mode bitsize and precision are the same.
14312 * stor-layout.c (get_best_mode): Skip modes that have lower
14313 precision than bitsize.
14314 * recog.c (simplify_while_replacing): Assert that bitsize and
14315 precision are the same.
14316
14317 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14318
14319 * Makefile.in (LIBGCOV): Remove.
14320 (libgcc.mvars): Remove LIBGCOV.
14321 * libgov.c: Move to ../libgcc.
14322
14323 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14324
14325 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
14326
14327 2011-07-08 Martin Jambor <mjambor@suse.cz>
14328
14329 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
14330 is too big for total scalarization.
14331
14332 2011-07-07 Richard Henderson <rth@redhat.com>
14333
14334 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
14335 (DBX_DEBUGGING_INFO): Undef.
14336
14337 2011-07-07 Richard Henderson <rth@redhat.com>
14338
14339 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
14340 Handle some opcodes specially for debugging.
14341 * print-rtl.c: Include dwarf2out.h
14342 (print_rtx): Handle NOTE_INSN_CFI.
14343 * Makefile.in (print-rtl.o): Update.
14344
14345 2011-07-07 Richard Henderson <rth@redhat.com>
14346
14347 * tree-pass.h (pass_dwarf2_frame): Declare.
14348 * passes.c (init_optimization_passes): Add it.
14349 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
14350 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
14351 make static, do not call add_cfis_to_fde.
14352 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
14353 dwarf2out_frame_init): Merge into...
14354 (execute_dwarf2_frame): ... here. New function.
14355 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
14356 saved_do_cfi_asm to a tri-state variable.
14357 (gate_dwarf2_frame, pass_dwarf2_frame): New.
14358 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
14359 if it has yet to be done. Don't call dwarf2cfi_function_init.
14360 * dwarf2out.h, debug.h: Update decls.
14361 * final.c (final_start_function): Don't call
14362 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
14363 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
14364 * toplev.c (lang_dependent_init): Likewise.
14365
14366 2011-07-07 Richard Henderson <rth@redhat.com>
14367
14368 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
14369 FDE_TABLE_INCREMENT): Replace with...
14370 (fde_vec): ... this, a new vector.
14371 (current_fde): Remove. Replace all users with cfun->fde.
14372 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
14373 (size_of_aranges, dwarf2out_finish): Likewise.
14374 (dwarf2out_alloc_current_fde): Break out from ...
14375 (dwarf2out_begin_prologue): ... here.
14376 (dwarf2out_frame_init): Remove.
14377 * dwarf2cfi.c: Update all users of current_fde.
14378 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
14379 * dwarf2out.h: Update decls.
14380 (dw_fde_node): Add fde_index member.
14381 * function.h (struct function): Add fde member.
14382
14383 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
14384 Richard Henderson <rth@redhat.com>
14385
14386 * dwarf2cfi.c (add_cfi): Remove.
14387 (dwarf2out_cfi_label): Remove force argument. Only generate the
14388 label name.
14389 (add_fde_cfi): Simplify the different code paths.
14390 (add_cie_cfi): New.
14391 (old_cfa, old_cfa_remember): New.
14392 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
14393 (last_reg_save_label): Remove.
14394 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
14395 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14396 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14397 dwarf2out_frame_debug_cfa_expression,
14398 dwarf2out_frame_debug_cfa_restore,
14399 dwarf2out_frame_debug_cfa_window_save,
14400 dwarf2out_frame_debug_expr): Remove label parameter.
14401 (cfi_label_required_p, add_cfis_to_fde): New.
14402 (dwarf2out_frame_debug_after_prologue): New.
14403 (dwarf2cfi_frame_init): Initialize old_cfa.
14404 (dwarf2out_frame_debug_restore_state): Likewise.
14405 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
14406 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
14407 * final.c (final_start_function): Call
14408 dwarf2out_frame_debug_after_prologue.
14409
14410 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
14411 Richard Henderson <rth@redhat.com>
14412
14413 * dwarf2cfi.c (cfi_insn): New.
14414 (dwarf2out_cfi_label): Don't emit cfi label here.
14415 (add_fde_cfi): Create a NOTE_INSN_CFI.
14416 (dwarf2out_frame_debug): Setup cfi_insn.
14417 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
14418 (dwarf2out_cfi_begin_epilogue): Make static.
14419 (dwarf2out_frame_debug_restore_state): Make static.
14420 * dwarf2out.c (output_cfi_directive): Make static.
14421 (dwarf2out_emit_cfi): New.
14422 * dwarf2out.h: Update.
14423 * final.c (final): Remove CFI notes.
14424 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
14425 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
14426 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
14427 * insn-notes.def (NOTE_INSN_CFI): New.
14428 (NOTE_INSN_CFI_LABEL): New.
14429 * rtl.h (union rtunion_def): Add rt_cfi member.
14430 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
14431
14432 2011-07-07 Richard Henderson <rth@redhat.com>
14433
14434 * dwarf2cfi.c: New file.
14435 * Makefile.in (OBJS): Add it.
14436 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
14437 * gengtype.c (open_base_files): Include dwarf2out.h.
14438 * coretypes.h (enum var_init_status): Move from ...
14439 * rtl.h: ... here.
14440 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
14441 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
14442 expand_builtin_dwarf_sp_column, init_return_column_size,
14443 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
14444 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
14445 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
14446 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
14447 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
14448 compute_barrier_args_size, dwarf2out_args_size,
14449 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
14450 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
14451 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
14452 queue_reg_save, dwarf2out_flush_queued_reg_saves,
14453 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
14454 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
14455 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
14456 dwarf2out_frame_debug_cfa_expression,
14457 dwarf2out_frame_debug_cfa_restore,
14458 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
14459 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
14460 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
14461 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
14462 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
14463 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
14464 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
14465 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
14466 dw_loc_descr_node): Move to dwarf2out.h.
14467 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
14468 mem_loc_descriptor): Export.
14469 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
14470 (dwarf2out_frame_init): Extract CIE generation code to
14471 dwarf2cfi_frame_init.
14472
14473 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
14474
14475 PR target/49660
14476 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
14477 MASK_V8PLUS, remove commented out flag and reorder.
14478
14479 2011-07-07 Jakub Jelinek <jakub@redhat.com>
14480
14481 PR c/49644
14482 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
14483 one non-complex and one complex argument, call c_save_expr on both
14484 operands.
14485
14486 2011-07-07 Martin Jambor <mjambor@suse.cz>
14487
14488 PR middle-end/49495
14489 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
14490 (verify_cgraph_node): Some functinality moved to
14491 verify_edge_corresponds_to_fndecl, call it.
14492
14493 2011-07-07 Joseph Myers <joseph@codesourcery.com>
14494
14495 * config.gcc (*local*): Remove.
14496 * doc/install-old.texi: Don't mention local configurations.
14497
14498 2011-07-07 Jakub Jelinek <jakub@redhat.com>
14499
14500 PR debug/49522
14501 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
14502 referencing debug insns that have been reset.
14503 (dead_debug_insert_before): Don't assert reg is non-NULL,
14504 instead return immediately if it is NULL.
14505
14506 2011-07-07 Joseph Myers <joseph@codesourcery.com>
14507
14508 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
14509
14510 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
14511
14512 * hw-doloop.c: New file.
14513 * hw-doloop.h: New file.
14514 * Makefile.in (OBJS): Add hw-doloop.o.
14515 (hw-doloop.o): New rule.
14516 ($(obj_out_file)): Add hw-doloop.h dependency.
14517 * config/bfin/bfin.c: Include "hw-doloop.h".
14518 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
14519 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
14520 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
14521 type changed to hwloop_info. Return bool, true if the loop was
14522 successfully optimized. Remove code that was moved to
14523 hw-doloop.c, and adjust other parts.
14524 (hwloop_fail): New static function, containing parts that used
14525 to be in bfin_optimize_loop.
14526 (bfin_discover_loop, bfin_discover_loops, free_loops,
14527 bfin_reorder_loops): Remove.
14528 (hwloop_pattern_reg): New static function.
14529 (bfin_doloop_hooks): New variable.
14530 (bfin_reorg_loops): Remove most code, call reorg_loops.
14531 * config/bfin/bfin.md (doloop_end splitter): Also enable if
14532 loop counter is a memory_operand.
14533
14534 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
14535
14536 * config.gcc: Support --with-multilib-list for x86 Linux targets.
14537
14538 * configure.ac: Mention x86-64 for --with-multilib-list.
14539 * configure: Regenerated.
14540
14541 * config/i386/gnu-user64.h (SPEC_64): Support x32.
14542 (SPEC_32): Likewise.
14543 (ASM_SPEC): Likewise.
14544 (LINK_SPEC): Likewise.
14545 (TARGET_THREAD_SSP_OFFSET): Likewise.
14546 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
14547 (SPEC_X32): New.
14548
14549 * config/i386/i386.h (TARGET_X32): New.
14550 (TARGET_LP64): New.
14551 (LONG_TYPE_SIZE): Likewise.
14552 (POINTER_SIZE): Likewise.
14553 (POINTERS_EXTEND_UNSIGNED): Likewise.
14554 (OPT_ARCH64): Support x32.
14555 (OPT_ARCH32): Likewise.
14556
14557 * config/i386/i386.opt (mx32): New.
14558
14559 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
14560 (GLIBC_DYNAMIC_LINKERX32): Likewise.
14561 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
14562 (GLIBC_DYNAMIC_LINKERX32): Likewise.
14563
14564 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
14565 (BIONIC_DYNAMIC_LINKERX32): Likewise.
14566 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
14567
14568 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
14569
14570 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
14571
14572 * doc/invoke.texi: Document -mx32.
14573
14574 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
14575
14576 * doc/invoke.texi (mwords-little-endian): Deprecate.
14577 * config/arm/arm.opt (mwords-little-endian): Likewise.
14578 * config/arm/arm.c (arm_option_override): Warn about the deprecation
14579 of -mwords-little-endian.
14580
14581 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
14582
14583 * reload1.c (choose_reload_regs): Use mode sizes to check whether
14584 an old reload register completely defines the required value.
14585
14586 2011-07-07 Richard Guenther <rguenther@suse.de>
14587
14588 * fold-const.c (fold_unary_loc): Do not strip sign-changes
14589 for NEGATE_EXPR.
14590
14591 2011-07-07 Richard Guenther <rguenther@suse.de>
14592
14593 * tree-vrp.c (simplify_conversion_using_ranges): New function.
14594 (simplify_stmt_using_ranges): Call it.
14595
14596 2011-07-07 Kai Tietz <ktietz@redhat.com>
14597
14598 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
14599 (lookup_logical_inverted_value): Likewise.
14600 (simplify_bitwise_binary_1): Likewise.
14601 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
14602
14603 2011-07-07 Joseph Myers <joseph@codesourcery.com>
14604
14605 * gcc.c (%[Spec]): Don't document.
14606 (struct spec_list): Update comment.
14607 (do_spec_1): Don't handle %[Spec].
14608 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
14609
14610 2011-07-07 Joseph Myers <joseph@codesourcery.com>
14611
14612 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
14613 default based on TARGET_ASM_NAMED_SECTION.
14614 * common/common-target.def (have_named_sections): Default to true.
14615 * common/config/default-common.c: Don't include tm.h.
14616 * common/config/picochip/picochip-common.c
14617 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
14618 * common/config/m32c/m32c-common.c: Remove.
14619 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
14620 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14621 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14622 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14623 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14624 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14625 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
14626
14627 2011-07-07 Jakub Jelinek <jakub@redhat.com>
14628
14629 PR middle-end/49640
14630 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
14631 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
14632
14633 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14634
14635 PR libmudflap/49550
14636 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
14637
14638 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14639
14640 PR target/39150
14641 * configure.ac (gcc_cv_as_hidden): Also accept
14642 x86_64-*-solaris2.1[0-9]*.
14643 (gcc_cv_as_cfi_directive): Likewise.
14644 (gcc_cv_as_comdat_group_group): Likewise.
14645 (set_have_as_tls): Likewise.
14646 * configure: Regenerate.
14647 * config.gcc (i[34567]86-*-solaris2*): Also handle
14648 x86_64-*-solaris2.1[0-9]*.
14649 * config.host (i[34567]86-*-solaris2*): Likewise.
14650 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14651 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
14652 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
14653 (TARGET_LD_EMULATION): Use it.
14654 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
14655 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
14656 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
14657 (ASM_CPU64_DEFAULT_SPEC): Define.
14658 (ASM_CPU_SPEC): Use %(asm_cpu_default).
14659 (ASM_SPEC): Redefine.
14660 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
14661 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
14662 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
14663 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
14664 configuration.
14665 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
14666
14667 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14668
14669 * config/sol2.h (ASM_SPEC): Split into ...
14670 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
14671 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
14672 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
14673 (ASM_SPEC): Use ASM_SPEC_BASE.
14674 * config/sparc/sol2.h (ASM_SPEC): Redefine.
14675
14676 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
14677
14678 * config/avr/avr.md (*reload_insi): Change predicate #1 to
14679 const_int_operand. Ditto for peep2 producing this insn.
14680 Add argument to output_reload_insisf call.
14681 (*movsi,*movsf): Add argument to output_movsisf call.
14682 (*reload_insf): New insn and new peep2 to produce it.
14683 * config/avr/avr-protos.h (output_movsisf): Change prototype.
14684 (output_reload_insisf): Change prototype.
14685 * config/avr/avr.c (avr_asm_len): New function.
14686 (output_reload_insisf): Rewrite.
14687 (output_movsisf): Change prototype. output_reload_insisf for
14688 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
14689 (adjust_insn_length): Add argument to output_movsisf and
14690 output_reload_insisf call.
14691
14692 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
14693
14694 * emit-rtl.c (paradoxical_subreg_p): New function.
14695 * rtl.h (paradoxical_subreg_p): Declare.
14696 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
14697 apply_distributive_law, simplify_comparison, simplify_set): Use it.
14698 * cse.c (record_jump_cond, cse_insn): Likewise.
14699 * expr.c (force_operand): Likewise.
14700 * rtlanal.c (num_sign_bit_copies1): Likewise.
14701 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
14702 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
14703 (push_reload): Use precision to check for paradoxical subregs.
14704 * expmed.c (extract_bit_field_1): Likewise.
14705
14706 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
14707 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
14708 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
14709 simplify_set, simplify_logical, expand_compound_operation,
14710 make_extraction, force_to_mode, if_then_else_cond, extended_count,
14711 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
14712 record_value_for_reg): Likewise.
14713 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
14714 * simplify-rtx. c (simplify_unary_operation_1,
14715 simplify_binary_operation_1, simplify_const_relational_operation):
14716 Likewise.
14717
14718 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
14719 instead of GET_MODE_BITSIZE where appropriate.
14720 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
14721 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
14722 init_num_sign_bit_copies_in_rep): Likewise.
14723 * cse.c (fold_rtx, cse_insn): Likewise.
14724 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
14725 * simplify-rtx.c (simplify_unary_operation_1,
14726 simplify_const_unary_operation, simplify_binary_operation_1,
14727 simplify_const_binary_operation, simplify_ternary_operation,
14728 simplify_const_relational_operation, simplify_subreg): Likewise.
14729 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
14730 simplify_if_then_else, simplify_set, expand_compound_operation,
14731 expand_field_assignment, make_extraction, if_then_else_cond,
14732 make_compound_operation, force_to_mode, make_field_assignment,
14733 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
14734 extended_count, try_widen_shift_mode, simplify_shift_const_1,
14735 simplify_comparison, record_promoted_value, simplify_compare_const,
14736 record_dead_and_set_regs_1): Likewise.
14737
14738 Revert:
14739 * simplify-rtx.c (simplify_const_binary_operation): Use the
14740 shift_truncation_mask hook instead of performing modulo by width.
14741 Compare against mode precision, not bitsize.
14742 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
14743 Use shift_truncation_mask instead of constructing the value manually.
14744
14745 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14746
14747 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
14748 declaration.
14749 (rs6000_save_toc_in_prologue_p): Ditto.
14750
14751 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
14752 up the static chain (r11) during indirect function calls.
14753 (-msave-toc-indirect): New undocumented debug switch.
14754
14755 * config/rs6000/rs6000.c (struct machine_function): Add
14756 save_toc_in_prologue field to note whether the prologue needs to
14757 save the TOC value in the reserved stack location.
14758 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
14759 to save the TOC in the prologue, do so.
14760 (rs6000_trampoline_init): Don't allow creating AIX style
14761 trampolines if -mno-r11 is in effect.
14762 (rs6000_call_indirect_aix): New function to create AIX style
14763 indirect calls, adding support for -mno-r11 to suppress loading
14764 the static chain, and saving the TOC in the prologue instead of
14765 the call body.
14766 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
14767 TOC in the prologue.
14768
14769 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
14770 register numbers.
14771 (TOC_REGNUM): Ditto.
14772 (STATIC_CHAIN_REGNUM): Ditto.
14773 (ARG_POINTER_REGNUM): Ditto.
14774 (SFP_REGNO): Delete, unused.
14775 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
14776 function descriptor offsets.
14777 (TOC_SAVE_OFFSET_64BIT): Ditto.
14778 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
14779 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
14780 (AIX_FUNC_DESC_SC_32BIT): Ditto.
14781 (AIX_FUNC_DESC_SC_64BIT): Ditto.
14782 (ptrload): New mode attribute for the appropriate load of a pointer.
14783 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
14784 (call_indirect_aix64): Ditto.
14785 (call_value_indirect_aix32): Ditto.
14786 (call_value_indirect_aix64): Ditto.
14787 (call_indirect_nonlocal_aix32_internal): Ditto.
14788 (call_indirect_nonlocal_aix32): Ditto.
14789 (call_indirect_nonlocal_aix64_internal): Ditto.
14790 (call_indirect_nonlocal_aix64): Ditto.
14791 (call): Rewrite AIX indirect function calls. Add support for
14792 eliminating the static chain, and for moving the save of the TOC
14793 to the function prologue.
14794 (call_value): Ditto.
14795 (call_indirect_aix<ptrsize>): Ditto.
14796 (call_indirect_aix<ptrsize>_internal): Ditto.
14797 (call_indirect_aix<ptrsize>_internal2): Ditto.
14798 (call_indirect_aix<ptrsize>_nor11): Ditto.
14799 (call_value_indirect_aix<ptrsize>): Ditto.
14800 (call_value_indirect_aix<ptrsize>_internal): Ditto.
14801 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
14802 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
14803 (call_nonlocal_aix32): Relocate in the rs6000.md file.
14804 (call_nonlocal_aix64): Ditto.
14805
14806 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
14807 -mno-r11 documentation.
14808
14809 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
14810
14811 PR other/49658
14812 * doc/extend.texi (Compound Literals): Fix typo.
14813
14814 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
14815
14816 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
14817
14818 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
14819
14820 * configure.ac (plugin-version.h): Generate
14821 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
14822 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
14823 macros.
14824
14825 * configure: Regenerate.
14826
14827 * doc/plugins.texi (Building GCC plugins): Mention
14828 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
14829
14830 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
14831
14832 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
14833 * combine.c (make_extraction, gen_lowpart_or_truncate,
14834 apply_distributive_law, simplify_comparison,
14835 reg_truncated_to_mode, record_truncated_value): Use it.
14836 * cse.c (notreg_cost): Likewise.
14837 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14838 * expr.c (convert_move, convert_modes): Likewise.
14839 * optabs.c (expand_binop, expand_unop): Likewise.
14840 * postreload.c (move2add_last_label): Likewise.
14841 * regmove.c (optimize_reg_copy_3): Likewise.
14842 * rtlhooks.c (gen_lowpart_general): Likewise.
14843 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14844
14845 2011-07-06 Joseph Myers <joseph@codesourcery.com>
14846
14847 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
14848
14849 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
14850
14851 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
14852 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
14853 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
14854 (simplify_const_unary_operation, simplify_binary_operation_1,
14855 simplify_const_binary_operation, simplify_const_relational_operation):
14856 Use them. Use GET_MODE_MASK for masking and sign-extensions.
14857 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
14858 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
14859 simplify_shift_const_1, simplify_comparison): Likewise.
14860 * expr.c (convert_modes): Likewise.
14861 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
14862 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
14863 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
14864
14865 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
14866
14867 2011-07-06 Richard Guenther <rguenther@suse.de>
14868
14869 PR tree-optimization/49645
14870 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
14871 register variables.
14872 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
14873 in type qualification here ...
14874 (copy_reference_ops_from_ref): ... not here.
14875 (vn_reference_lookup_3): ... or here.
14876 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
14877 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
14878
14879 2011-07-06 Ian Lance Taylor <iant@google.com>
14880
14881 * doc/install.texi (Configuration): It's
14882 --enable-gnu-indirect-function, not --enable-indirect-function.
14883
14884 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
14885
14886 * simplify-rtx.c (simplify_const_binary_operation): Use the
14887 shift_truncation_mask hook instead of performing modulo by width.
14888 Compare against mode precision, not bitsize.
14889 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
14890 Use shift_truncation_mask instead of constructing the value manually.
14891
14892 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
14893
14894 PR middle-end/47383
14895 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
14896 address computation and convert to address_mode if needed.
14897
14898 2011-07-06 Richard Guenther <rguenther@suse.de>
14899
14900 * tree.c (build_common_tree_nodes_2): Merge with
14901 build_common_tree_nodes.
14902 * tree.h (build_common_tree_nodes): Adjust prototype.
14903 (build_common_tree_nodes_2): Remove.
14904 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
14905 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
14906
14907 2011-07-05 Jakub Jelinek <jakub@redhat.com>
14908
14909 PR tree-optimization/49618
14910 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
14911 t recurse on the decl.
14912 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
14913 return true if expr isn't known to be defined in current
14914 TU or some other LTO partition.
14915
14916 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
14917
14918 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
14919 override CASE_VALUES_THRESHOLD.
14920
14921 * stmt.c (toplevel): Include params.h.
14922 (case_values_threshold): Use the --param case-values-threshold
14923 value if non-zero, otherwise use machine dependent value.
14924 (expand_case): Use case_values_threshold.
14925
14926 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
14927
14928 * doc/invoke.texi (--param case-values-threshold): Document.
14929
14930 2011-07-05 Richard Henderson <rth@redhat.com>
14931
14932 * dwarf2out.c (dwarf2out_cfi_label): Make static.
14933 (dwarf2out_flush_queued_reg_saves): Make static.
14934 (dwarf2out_reg_save): Remove.
14935 (dwarf2out_return_save): Remove.
14936 (dwarf2out_return_reg): Remove.
14937 (dwarf2out_reg_save_reg): Remove.
14938 (dwarf2out_def_cfa): Merge into ...
14939 (dwarf2out_frame_init): ... here.
14940 * dwarf2out.h, tree.h: Remove declarations as necessary.
14941
14942 2011-07-05 Richard Henderson <rth@redhat.com>
14943
14944 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
14945 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14946 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
14947 the alloc insn.
14948
14949 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
14950 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
14951 (process_epilogue): Don't call dwarf2out_def_cfa.
14952
14953 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
14954 indicate the return address save.
14955 (process_cfa_register): Likewise.
14956
14957 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
14958 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
14959
14960 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
14961 for ar.pfs save at alloc insn.
14962
14963 2011-07-05 Richard Henderson <rth@redhat.com>
14964
14965 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
14966 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14967 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
14968 stack pointer save.
14969 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
14970 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
14971 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
14972 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
14973
14974 2011-07-05 Richard Henderson <rth@redhat.com>
14975
14976 * config/vax/vax.md (define_c_enum unspecv): New. Define the
14977 VUNSPEC_* constants here instead of via define_constants.
14978 (VUNSPEC_PEM): New constant.
14979 (procedure_entry_mask): New insn.
14980 (prologue): New expander.
14981 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
14982 (vax_expand_prologue): Rename from vax_output_function_prologue;
14983 emit rtl instead of text.
14984 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
14985 (print_operand): Add 'x' prefix.
14986
14987 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
14988
14989 PR middle-end/47715
14990 * calls.c (precompute_register_parameters): Promote the function
14991 argument before checking non-legitimate constant.
14992
14993 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
14994
14995 PR tree-optimization/47654
14996 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
14997 (lst_do_strip_mine_loop): Return an int.
14998 (lst_do_strip_mine): Same.
14999 (scop_do_strip_mine): Same.
15000 (scop_do_block): Loop blocking should strip-mine at least two loops.
15001 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
15002 (scop_do_interchange): Same.
15003 * graphite-poly.h (scop_do_interchange): Update declaration.
15004 (scop_do_strip_mine): Same.
15005
15006 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
15007
15008 * graphite-clast-to-gimple.c (precision_for_value): Removed.
15009 (precision_for_interval): Removed.
15010 (gcc_type_for_interval): Use mpz_sizeinbase.
15011
15012 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
15013
15014 * graphite-ppl.h (value_max): Correct computation of max.
15015
15016 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
15017
15018 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
15019
15020 2011-07-05 Richard Guenther <rguenther@suse.de>
15021
15022 * c-decl.c (c_init_decl_processing): Defer building common
15023 tree nodes to c_common_nodes_and_builtins.
15024
15025 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
15026
15027 PR tree-optimization/49580
15028 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
15029 the loop's number of iterations.
15030 * tree-parloops.c (transform_to_exit_first_loop): Add the
15031 handling of the loop's number of iterations before the call
15032 to gimple_duplicate_sese_tail.
15033 Insert the stmt caclculating the new rhs of the loop's
15034 condition stmt to the preheader instead of iters_bb.
15035
15036 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
15037
15038 PR rtl-optimization/47449
15039 * fwprop.c (forward_propagate_subreg): Don't propagate hard
15040 register nor zero/sign extended hard register.
15041
15042 2011-07-05 Richard Guenther <rguenther@suse.de>
15043
15044 PR tree-optimization/49518
15045 PR tree-optimization/49628
15046 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
15047 irrelevant and invariant data-references.
15048 (vect_analyze_data_ref_access): For invariant loads clear the
15049 group association.
15050
15051 2011-07-04 Jakub Jelinek <jakub@redhat.com>
15052
15053 PR rtl-optimization/49619
15054 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
15055 pass VOIDmode as op0_mode to recursive call, and return temp even
15056 when different from tor, just if it is not IOR of the original
15057 PLUS arguments.
15058
15059 PR rtl-optimization/49472
15060 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
15061 negating MULT, negate the second operand instead of first.
15062 (simplify_binary_operation_1) <case MULT>: If one operand is
15063 a NEG and the other is MULT, don't attempt to optimize by negation
15064 of the MULT operand if it only moves the NEG operation around.
15065
15066 PR debug/49602
15067 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
15068 get_current_def return value if it can't be trusted to be
15069 the current value of the variable in the current bb.
15070
15071 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
15072
15073 PR target/49600
15074 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
15075 general register to memory for !TARGET_INTER_UNIT_MOVES.
15076
15077 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
15078
15079 PR target/44643
15080 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
15081 instead of TREE_READONLY.
15082
15083 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
15084
15085 * doc/extend.texi (AVR Built-in Functions): Update documentation
15086 of __builtin_avr_fmul*.
15087 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
15088 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
15089 * config/avr/avr.md (fmul): Rename to fmul_insn.
15090 (fmuls): Rename to fmuls_insn.
15091 (fmulsu): Rename to fmulsu_insn.
15092 (fmul,fmuls,fmulsu): New expander.
15093 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
15094 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
15095 * config/avr/libgcc.S (__fmul): New function.
15096 (__fmuls): New function.
15097 (__fmulsu,__fmulsu_exit): New function.
15098
15099 2011-07-04 Richard Guenther <rguenther@suse.de>
15100
15101 PR tree-optimization/49615
15102 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
15103 basic-block index check.
15104
15105 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
15106
15107 * longlong.h (count_leading_zeros, count_trailing_zeros,
15108 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
15109 resp. 64.
15110
15111 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
15112
15113 PR tree-optimization/49610
15114 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
15115 a basic block.
15116
15117 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
15118 Olivier Hainque <hainque@adacore.com>
15119 Nicolas Setton <setton@adacore.com>
15120
15121 * tree.h (TYPE_ARTIFICIAL): New flag.
15122 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
15123 the DIE of the type if it is artificial.
15124 (gen_array_type_die): Likewise.
15125 (gen_enumeration_type_die): Likewise.
15126 (gen_struct_or_union_type_die): Likewise.
15127 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
15128 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
15129
15130 2011-07-01 Jakub Jelinek <jakub@redhat.com>
15131
15132 * tree-object-size.c (pass_through_call): Handle
15133 BUILT_IN_ASSUME_ALIGNED.
15134
15135 2011-07-01 Martin Jambor <mjambor@suse.cz>
15136
15137 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
15138
15139 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
15140
15141 PR middle-end/48016
15142 * explow.c (update_nonlocal_goto_save_area): Use proper mode
15143 for stack save area.
15144 * function.c (expand_function_start): Likewise.
15145
15146 2011-07-01 Richard Guenther <rguenther@suse.de>
15147
15148 PR middle-end/49596
15149 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
15150 may have unknown refs.
15151
15152 2011-07-01 Kai Tietz <ktietz@redhat.com>
15153
15154 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
15155
15156 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15157
15158 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
15159 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
15160 (Specific, mips-sgi-irix6): Likewise.
15161
15162 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15163
15164 PR libmudflap/49549
15165 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
15166
15167 2011-07-01 Jakub Jelinek <jakub@redhat.com>
15168
15169 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
15170 [idx]= and [idx1 ... idx2]= before initializers if needed for
15171 array initializers.
15172
15173 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
15174
15175 * config.gcc (score-*-elf): Remove score7.o.
15176 * config/score/t-score-elf: Likewise.
15177 * config/score/score.c: Merge score7 to score.c and
15178 remove forwarding functions.
15179 * config/score/score7.c: Deleted.
15180 * config/score/score7.h: Deleted.
15181
15182 2011-07-01 Richard Guenther <rguenther@suse.de>
15183
15184 PR tree-optimization/49603
15185 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
15186
15187 2011-06-30 Martin Jambor <mjambor@suse.cz>
15188
15189 * tree-sra.c (struct access): Rename total_scalarization to
15190 grp_total_scalarization
15191 (completely_scalarize_var): New function.
15192 (sort_and_splice_var_accesses): Set total_scalarization in the
15193 representative access.
15194 (analyze_access_subtree): Propagate total scalarization accross the
15195 tree, no holes in totally scalarized trees, simplify coverage
15196 computation.
15197 (analyze_all_variable_accesses): Call completely_scalarize_var instead
15198 of completely_scalarize_record.
15199
15200 2011-06-30 Richard Henderson <rth@redhat.com>
15201
15202 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
15203 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
15204 * config/i386/i386.c: Don't include dwarf2out.h.
15205 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
15206 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
15207 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
15208 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
15209 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
15210
15211 2011-06-30 Richard Henderson <rth@redhat.com>
15212
15213 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
15214 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15215 * final.c (final_scan_insn): Look for it, and invoke
15216 dwarf2out_frame_debug before the insn if found.
15217
15218 2011-06-30 Richard Henderson <rth@redhat.com>
15219
15220 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
15221 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
15222
15223 2011-06-30 Richard Henderson <rth@redhat.com>
15224
15225 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
15226 Define a vector of this type.
15227 (regs_saved_in_regs): Use a VEC.
15228 (num_regs_saved_in_regs): Remove.
15229 (compare_reg_or_pc): New.
15230 (record_reg_saved_in_reg): Split out from...
15231 (dwarf2out_flush_queued_reg_saves): ... here.
15232 (clobbers_queued_reg_save): Update for VEC.
15233 (reg_saved_in): Likewise.
15234 (dwarf2out_frame_debug_init): Likewise.
15235 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
15236 (dwarf2out_frame_debug_cfa_register): Likewise.
15237
15238 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
15239
15240 PR tree-optimization/49572
15241 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
15242 type of the RHS instead of that of the LHS for the expression type.
15243
15244 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
15245
15246 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
15247 unconditionally.
15248
15249 2011-06-30 Richard Guenther <rguenther@suse.de>
15250
15251 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
15252 * tree-ssa-structalias.c (create_variable_info_for): Do not
15253 add initial constraints for non-var-decls. Properly handle
15254 globals in other ltrans partitions.
15255 (intra_create_variable_infos): Manually create constraints for
15256 the fake no-alias parameter.
15257 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
15258 and assert there are no clones.
15259
15260 2011-06-30 Richard Guenther <rguenther@suse.de>
15261
15262 PR tree-optimization/46787
15263 * tree-data-ref.c (dr_address_invariant_p): Remove.
15264 (find_data_references_in_stmt): Invariant accesses are ok now.
15265 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
15266 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15267 invariant loads.
15268
15269 2011-06-30 Martin Jambor <mjambor@suse.cz>
15270
15271 PR tree-optimization/49094
15272 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
15273 (build_accesses_from_assign): Use it.
15274
15275 2011-06-30 Jakub Jelinek <jakub@redhat.com>
15276
15277 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15278 handling of BUILT_IN_ASSUME_ALIGNED.
15279
15280 PR debug/49364
15281 * dwarf2out.c (output_abbrev_section): Don't return early
15282 if abbrev_die_table_in_use is 1.
15283 (dwarf2out_finish): Instead don't call output_abbrev_section
15284 nor emit abbrev_section_label in that case.
15285
15286 2011-06-30 Nick Clifton <nickc@redhat.com>
15287
15288 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
15289 for the V850E.
15290
15291 2011-06-30 Jakub Jelinek <jakub@redhat.com>
15292
15293 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
15294 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
15295
15296 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
15297
15298 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
15299 both pattern and original statements if necessary.
15300 (vect_transform_loop): Likewise.
15301 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
15302 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
15303 Mark the pattern statement only if the original statement doesn't
15304 have its own uses.
15305 (process_use): Call vect_mark_relevant with additional parameter.
15306 (vect_mark_stmts_to_be_vectorized): Likewise.
15307 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
15308 (vect_analyze_stmt): Handle both pattern and original statements
15309 if necessary.
15310 (vect_transform_stmt): Don't store vectorized pattern statement
15311 in the original statement.
15312 (vect_is_simple_use_1): Use related pattern statement only if the
15313 original statement is irrelevant.
15314 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
15315
15316 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
15317
15318 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
15319 option.
15320 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
15321 entry.
15322 (TARGET_AVX128_OPTIMAL): New definition.
15323 * config/i386/i386.c (initial_ix86_tune_features): Initialize
15324 X86_TUNE_AVX128_OPTIMAL entry.
15325 (ix86_option_override_internal): Enable the generation
15326 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
15327 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
15328 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
15329
15330 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
15331
15332 PR tree-optimization/49539
15333 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
15334 names by means of stmt_references_abnormal_ssa_name.
15335 (associate_plusminus): Call can_propagate_from before propagating
15336 from definition statements.
15337 (ssa_forward_propagate_and_combine): Remove superfluous newline.
15338
15339 2011-06-29 Richard Guenther <rguenther@suse.de>
15340
15341 * doc/invoke.texi: Document -scev dump modifier.
15342 * tree-pass.h (TDF_SCEV): New dump flag.
15343 * tree-dump.c (dump_option_value_in): Add scev.
15344 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
15345 * tree-scalar-evolution.c: Likewise.
15346
15347 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
15348
15349 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
15350 (cxa_type_match): Correct declaration.
15351 (__gnu_unwind_pr_common): Reconstruct additional indirection
15352 when __cxa_type_match returns succeeded_with_ptr_to_base.
15353
15354 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15355
15356 PR rtl-optimization/49114
15357 * reload.c (struct replacement): Remove SUBREG_LOC member.
15358 (push_reload): Do not set it.
15359 (push_replacement): Likewise.
15360 (subst_reload): Remove dead code.
15361 (copy_replacements): Remove assertion.
15362 (copy_replacements_1): Do not handle SUBREG_LOC.
15363 (move_replacements): Likewise.
15364 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
15365 Detect subregs via recursive descent instead of via SUBREG_LOC.
15366
15367 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
15368
15369 * config/avr/avr.c (avr_encode_section_info): Dispatch to
15370 default_encode_section_info.
15371
15372 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
15373
15374 PR tree-optimization/49545
15375 * builtins.c (get_object_alignment_1): Update function comment.
15376 Do not use DECL_ALIGN for functions, but test
15377 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
15378 * fold-const.c (get_pointer_modulus_and_residue): Don't check
15379 for functions here.
15380 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
15381
15382 2011-06-29 Jakub Jelinek <jakub@redhat.com>
15383
15384 PR debug/49567
15385 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
15386 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
15387
15388 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
15389
15390 PR target/34734
15391 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
15392 about uninitialized data attributed 'progmem' from here...
15393 (avr_encode_section_info): ...to this new function.
15394 (TARGET_ENCODE_SECTION_INFO): New define.
15395 (avr_section_type_flags): For data in ".progmem.data", remove
15396 section flag SECTION_WRITE.
15397
15398 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
15399
15400 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
15401 _xmulhisi3_exit.
15402 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
15403 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
15404 (__umulhisi3): Ditto.
15405 * config/avr/avr.md (mulhisi3): New insn expender.
15406 (umulhisi3): New insn expender.
15407 (*mulhisi3_call): New insn.
15408 (*umulhisi3_call): New insn.
15409
15410 2011-06-28 Joseph Myers <joseph@codesourcery.com>
15411
15412 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
15413
15414 2011-06-28 Richard Henderson <rth@redhat.com>
15415
15416 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
15417 all code and arguments that handled pushes. Update all callers.
15418
15419 2011-06-28 Richard Henderson <rth@redhat.com>
15420
15421 * config/arm/arm.c (arm_output_function_prologue): Don't call
15422 thumb1_output_function_prologue.
15423 (arm_expand_prologue): Avoid dead store.
15424 (number_of_first_bit_set): Use ctz_hwi.
15425 (thumb1_emit_multi_reg_push): New.
15426 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
15427 to emit the entire prologue as rtl.
15428 (thumb1_output_interwork): Split out from
15429 thumb1_output_function_prologue.
15430 (thumb1_output_function_prologue): Remove.
15431 (arm_attr_length_push_multi): Handle thumb1.
15432 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
15433 (prologue_thumb1_interwork): New.
15434 (*push_multi): Allow thumb1; use push_mult_memory_operand.
15435 * config/arm/predicates.md (push_mult_memory_operand): New.
15436
15437 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
15438
15439 * config/sparc/sync.md (*stbar): Delete.
15440 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
15441
15442 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
15443
15444 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
15445
15446 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15447
15448 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
15449 (TARGET_64BIT_DEFAULT): Define.
15450 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
15451 of tm_file.
15452 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
15453
15454 2011-06-28 Joseph Myers <joseph@codesourcery.com>
15455
15456 * common.opt (in_lto_p): New Variable entry.
15457 * flags.h (in_lto_p): Move to common.opt.
15458 * gcc.c: Include params.h.
15459 (set_option_handlers): Also use common_handle_option and
15460 target_handle_option.
15461 (main): Call global_init_params, finish_params and init_options_struct.
15462 * opts.c (debug_type_names): Move from toplev.c.
15463 (print_filtered_help): Access quiet_flag through opts pointer.
15464 (common_handle_option): Return early in the driver for some options.
15465 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
15466 opts pointer.
15467 * toplev.c (in_lto_p): Move to common.opt.
15468 (debug_type_names): Move to opts.c.
15469 * Makefile.in (OBJS): Remove opts.o.
15470 (OBJS-libcommon-target): Add opts.o.
15471 (gcc.o): Update dependencies.
15472
15473 2011-06-28 Kai Tietz <ktietz@redhat.com>
15474
15475 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
15476
15477 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15478
15479 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
15480 with '=' constraint modifier.
15481 (*divdf3_vfp): Likewise.
15482 ("*mulsf3_vfp"): Likewise.
15483 ("*muldf3_vfp"): Likewise.
15484 ("*mulsf3negsf_vfp"): Likewise.
15485 ("*muldf3negdf_vfp"): Likewise.
15486
15487 2011-06-28 Nick Clifton <nickc@redhat.com>
15488
15489 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
15490 relaxation when performing an incremental link.
15491
15492 2011-06-28 Kai Tietz <ktietz@redhat.com>
15493
15494 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
15495 within BB from last to first.
15496
15497 2011-06-28 Joseph Myers <joseph@codesourcery.com>
15498
15499 * genattr-common.c: New. Based on genattr.c.
15500 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
15501 (MOSTLYCLEANFILES): Add insn-attr-common.h.
15502 (opts.o): Update dependencies.
15503 (.PRECIOUS): Add insn-attr-common.h.
15504 (simple_rtl_generated_h): Add insn-attr-common.h.
15505 (build/genattr-common.o): New.
15506 (genprogrtl): Add attr-common.
15507 * genattr.c (main): Include insn-attr-common.h. Don't generate
15508 definitions of DELAY_SLOTS or INSN_SCHEDULING.
15509 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
15510
15511 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
15512
15513 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
15514 avr-*-* and avr-*-rtems* targets.
15515
15516 * config/avr/elf.h: New file.
15517 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
15518 (TARGET_ASM_SELECT_SECTION): Define.
15519 (INIT_SECTION_ASM_OP): Undefine.
15520 (FINI_SECTION_ASM_OP): Undefine.
15521 (READONLY_DATA_SECTION_ASM_OP): Undefine.
15522 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
15523 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
15524 * config/avr/avr.h:
15525 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
15526 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
15527 (MAX_OFILE_ALIGNMENT): Move to elf.h.
15528 (STRING_LIMIT): Move to elf.h.
15529 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
15530 (ASM_DECLARE_OBJECT_NAME): Remove.
15531 (ESCAPES): Remove.
15532 (ASM_OUTPUT_SKIP): Remove.
15533 (DWARF2_DEBUGGING_INFO): Remove.
15534 (OBJECT_FORMAT_ELF): Remove.
15535 (USER_LABEL_PREFIX): Remove.
15536 (ASM_OUTPUT_EXTERNAL): Remove.
15537 (ASM_OUTPUT_ASCII): Remove.
15538 (TYPE_ASM_OP): Remove.
15539 (SIZE_ASM_OP): Remove.
15540 (WEAK_ASM_OP): Remove.
15541 (STRING_ASM_OP): Remove.
15542 (SET_ASM_OP): Remove.
15543 (ASM_WEAKEN_LABEL): Remove.
15544 (TYPE_OPERAND_FMT): Remove.
15545 (ASM_DECLARE_FUNCTION_SIZE): Remove.
15546 (ASM_FINISH_DECLARE_OBJECT): Remove.
15547 (NO_DOLLAR_IN_LABEL): Remove.
15548 (ASM_GENERATE_INTERNAL_LABEL): Remove.
15549 (ASM_OUTPUT_CASE_LABEL): Remove.
15550 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
15551 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
15552 (gas_output_ascii): Remove.
15553 (gas_output_limited_string): Remove.
15554 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
15555 * config/avr/avr-protos.h
15556 (gas_output_ascii): Remove prototye.
15557 (gas_output_limited_string): Remove prototype.
15558
15559 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
15560
15561 PR target/48637
15562 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
15563 asm operands.
15564
15565 2011-06-27 Jan Hubicka <jh@suse.cz>
15566
15567 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
15568 node instead of references in node.
15569
15570 2011-06-27 Richard Henderson <rth@redhat.com>
15571
15572 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
15573 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
15574 inside ifdef.
15575
15576 2011-06-27 Jakub Jelinek <jakub@redhat.com>
15577
15578 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
15579
15580 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
15581 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
15582 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
15583 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
15584 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
15585 (evaluate_stmt, execute_fold_all_builtins): Handle
15586 BUILT_IN_ASSUME_ALIGNED.
15587 * tree-ssa-dce.c (propagate_necessity): Likewise.
15588 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15589 call_may_clobber_ref_p_1): Likewise.
15590 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
15591 (expand_builtin_assume_aligned): New function.
15592 * doc/extend.texi (__builtin_assume_aligned): Document.
15593
15594 PR debug/49544
15595 * cselib.c (promote_debug_loc): If cselib_preserve_constants
15596 and l has two DEBUG_INSN owned locs instead of just one, adjust
15597 the second location's setting_insn too.
15598
15599 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15600
15601 PR libmudflap/38738
15602 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
15603
15604 2011-06-27 Nick Clifton <nickc@redhat.com>
15605
15606 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
15607 bit position of highest bit set into a count of the high zero bits.
15608
15609 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
15610
15611 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
15612
15613 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
15614
15615 PR lto/48492
15616 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
15617 to a NULL parent.
15618
15619 2011-06-27 Richard Guenther <rguenther@suse.de>
15620
15621 PR tree-optimization/49394
15622 * passes.c (execute_one_pass): Restore current_pass after
15623 applying IPA transforms.
15624
15625 2011-06-27 Kai Tietz <ktietz@redhat.com>
15626
15627 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
15628 out of type precision after operation.
15629 (find_bswap): Take for limit value the integer auto-promotion
15630 into account.
15631
15632 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
15633
15634 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
15635 forward scan as well.
15636
15637 2011-06-27 Tristan Gingold <gingold@adacore.com>
15638
15639 PR target/44241
15640 * config/vms/vms-protos.h: New file.
15641 * config/vms/vms-crtlmap.map: New file.
15642 * config/vms/vms.c: New file.
15643 * config/vms/make-crtlmap.awk: New file.
15644 * config/vms/vms-crtl.h: File removed.
15645 * config/vms/vms-crtl-64.h: File removed.
15646 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
15647 * config/alpha/vms64.h: Do not include vms-crtl-64.h
15648 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
15649 clear some builtins on VMS. Calls vms_patch_builtins.
15650 (avms_asm_output_external): Remove.
15651 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
15652 (struct crtl_name_spec): Remove
15653 (DO_CTRL_NAMES): Remove.
15654 * config/ia64/vms.h (struct crtl_name_spec): Remove
15655 (DO_CTRL_NAMES): Remove.
15656 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
15657 clear some builtins on VMS. Calls vms_patch_builtins.
15658 (ia64_asm_output_external): Remove DO_CRTL_NAME.
15659 * config/ia64/vms64.h: Do not include vms-crtl-64.h
15660 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
15661
15662 2011-06-27 Tristan Gingold <gingold@adacore.com>
15663
15664 * config/alpha/alpha.c (alpha_end_function): Always generate .end
15665 directive on VMS.
15666
15667 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
15668
15669 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
15670 the function receives nonlocal gotos.
15671
15672 2011-06-27 Richard Guenther <rguenther@suse.de>
15673
15674 PR tree-optimization/49536
15675 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15676 For non-scalar inner types use a scalar type according to
15677 the scalar inner mode.
15678
15679 2011-06-27 Richard Guenther <rguenther@suse.de>
15680
15681 PR tree-optimization/49365
15682 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
15683
15684 2011-06-27 Richard Guenther <rguenther@suse.de>
15685
15686 PR tree-optimization/49169
15687 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
15688 the alignment of function decls.
15689
15690 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
15691
15692 PR target/47997
15693 * config/darwin.c (darwin_mergeable_string_section): Place string
15694 constants in '.cstring' rather than '.const' when CF/NSStrings are
15695 active.
15696
15697 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
15698
15699 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
15700 (emit_save_register_window): Likewise.
15701 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
15702 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
15703 Swap back %o7/%i7 in register naming.
15704
15705 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
15706
15707 PR driver/49371
15708 * config/darwin.c (darwin_override_options): Improve warning when
15709 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
15710 is given with fpie/fPIE.
15711 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
15712 * config/darwin9.h (PIE_SPEC): New.
15713
15714 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
15715
15716 * timevar.c (timevar_print): Increase width for display of timevar
15717 name.
15718
15719 2011-06-24 Jakub Jelinek <jakub@redhat.com>
15720
15721 PR c++/46400
15722 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
15723 instead of TYPE_CHAIN for chain_next for types.
15724
15725 2011-06-24 Richard Henderson <rth@redhat.com>
15726
15727 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
15728 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
15729 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
15730 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
15731 (sparc_flat_expand_prologue): Emit individual instructions
15732 instead of one of the above.
15733
15734 2011-06-24 Easwaran Raman <eraman@google.com>
15735
15736 PR rtl-optimization/49429
15737 PR target/49454
15738 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
15739 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
15740 used to copy y into x.
15741 * calls.c (initialize_argument_information): Mark
15742 an argument addressable if it is passed by invisible reference.
15743 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
15744 if it is passed by reference.
15745
15746 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
15747
15748 PR rtl-optimization/49504
15749 * rtlanal.c (nonzero_bits1): Properly handle addition or
15750 subtraction of a pointer in Pmode if pointers extend unsigned.
15751 (num_sign_bit_copies1): Likewise.
15752
15753 2011-06-24 Martin Jambor <mjambor@suse.cz>
15754
15755 PR tree-optimizations/49516
15756 * tree-sra.c (sra_modify_assign): Choose the safe path for
15757 aggregate copies if we also did scalar replacements.
15758
15759 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15760
15761 PR target/49335
15762 * config/arm/predicates.md (add_operator): New.
15763 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
15764
15765 2011-06-24 Andi Kleen <ak@linux.intel.com>
15766
15767 * tree-sra.c (type_internals_preclude_sra_p): Add msg
15768 parameter. Split up ifs and report reason in *msg.
15769 (reject): Add.
15770 (find_var_candiate): Add msg variable.
15771 Split up ifs and report reason to reject.
15772 (find_param_candidates): Add msg variable.
15773 Pass msg to type_internals_preclude_sra_p.
15774
15775 2011-06-23 Jeff Law <law@redhat.com>
15776
15777 PR middle-end/48770
15778 * reload.h (reload): Change to return a bool.
15779 * ira.c (ira): If requested by reload, run a fast DCE pass after
15780 reload has completed. Fix comment typo.
15781 * reload1.c (need_dce): New file scoped static.
15782 (reload): Set reload_completed here. Return whether or not a DCE
15783 pass after reload is needed.
15784 (delete_dead_insn): Set need_dce as needed.
15785
15786 PR middle-end/49465
15787 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
15788 to detect threading through joiner block. If there was already
15789 an edge to the new target, then do not change the PHI nodes.
15790
15791 2011-06-23 Jakub Jelinek <jakub@redhat.com>
15792
15793 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15794 get_pointer_alignment to see if base isn't sufficiently aligned.
15795
15796 2011-06-23 Jan Hubicka <jh@suse.cz>
15797
15798 PR tree-optimize/49373
15799 * tree-pass.h (all_late_ipa_passes): Declare.
15800 * cgraphunit.c (init_lowered_empty_function): Fix properties.
15801 (cgraph_optimize): Execute late passes; remove unreachable funcions
15802 after materialization.
15803 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
15804 LTOing.
15805 * passes.c (all_late_ipa_passes): Declare.
15806 (dump_passes, register_pass): Handle late ipa passes.
15807 (init_optimization_passes): Move ipa_pta to late passes; schedule
15808 fixup_cfg at beggining of all_passes.
15809 (apply_ipa_transforms): New function.
15810 (execute_one_pass): When doing simple ipa pass, apply all transforms.
15811
15812 2011-06-23 Joseph Myers <joseph@codesourcery.com>
15813
15814 * params.c: Include common/common-target.h. Don't include tm.h.
15815 (lang_independent_params): Move from toplev.c.
15816 (global_init_params): New.
15817 * params.h (global_init_params): Declare.
15818 * target.def (default_params): Move to common-target.def.
15819 * toplev.c (lang_independent_options): Remove.
15820 (lang_independent_params): Move to params.c.
15821 (general_init): Use global_init_params.
15822 * common/common-target.def (option_default_params): Move from
15823 target.def.
15824 * common/config/ia64/ia64-common.c: Include params.h.
15825 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15826 from ia64.c.
15827 * common/config/rs6000/rs6000-common.c: Include params.h.
15828 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15829 from rs6000.c.
15830 * common/config/sh/sh-common.c: Include params.h.
15831 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15832 from sh.c.
15833 * common/config/spu/spu-common.c: Include params.h.
15834 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
15835 from spu.c.
15836 * config/ia64/ia64.c (ia64_option_default_params,
15837 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
15838 * config/rs6000/rs6000.c (rs6000_option_default_params,
15839 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
15840 * config/sh/sh.c (sh_option_default_params,
15841 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
15842 * config/spu/spu.c (spu_option_default_params,
15843 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
15844 * Makefile.in (OBJS): Remove params.o.
15845 (OBJS-libcommon-target): Add params.o.
15846 (params.o, $(common_out_object_file)): Update dependencies.
15847 * doc/tm.texi: Regenerate.
15848
15849 2011-06-23 Alan Modra <amodra@gmail.com>
15850
15851 PR bootstrap/49383
15852 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
15853 invocation for 2011-06-09 changes.
15854
15855 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15856
15857 PR libgomp/49490
15858 * omp-low.c (expand_omp_for_static_nochunk): Only
15859 use n ceil/ nthreads size for the first n % nthreads threads in the
15860 team instead of all threads except for the last few ones which
15861 get less work or none at all.
15862
15863 PR debug/49496
15864 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
15865 uses.
15866
15867 2011-06-22 Richard Guenther <rguenther@suse.de>
15868
15869 PR tree-optimization/49493
15870 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
15871 Refer to the alias target of variables.
15872 (associate_varinfo_to_alias_1): Remove.
15873 (ipa_pta_execute): Do not associate aliases with anything.
15874 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
15875 (cgraph_function_node): Likewise.
15876 (cgraph_function_or_thunk_node): Likewise.
15877 (varpool_variable_node): Likewise.
15878
15879 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
15880
15881 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
15882 * config.gcc (arm*-*-linux*): Default to gnu tls.
15883 (arm*-*-*): Add --with-tls option.
15884 (all_defaults): Add 'tls'.
15885
15886 2011-06-22 Richard Henderson <rth@redhat.com>
15887
15888 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
15889 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15890 (dwarf2out_frame_debug_cfa_window_save): Rename from
15891 dwarf2out_window_save; make static.
15892 * tree.h (dwarf2out_window_save): Don't declare.
15893
15894 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
15895 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
15896 (emit_save_register_window): Rename from gen_save_register_window;
15897 emit the insn and add REG_CFA_* notes.
15898 (sparc_expand_prologue): Update to match.
15899 * config/sparc/sparc.md (save_register_window_1): Simplify from
15900 save_register_window<P:mode>.
15901
15902 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
15903
15904 PR target/49497
15905 * config/i386/i386.md (*lea_general_2): Always allow SImode.
15906 (*lea_general_2_zext): Likewise.
15907 (imul to lea peepholes): Use const359_operand and check
15908 TARGET_PARTIAL_REG_STALL.
15909
15910 * config/i386/predicates.md (const359_operand): New.
15911
15912 2011-06-22 Michael Matz <matz@suse.de>
15913
15914 * cgraphunit.c (assemble_thunk): Use correct return type.
15915
15916 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
15917 Dmitry Melnik <dm@ispras.ru>
15918
15919 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
15920 (neon_output_shift_immediate): Ditto.
15921 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
15922 prototype.
15923 (neon_output_shift_immediate): Ditto.
15924 * config/arm/neon.md (vashl<mode>3): Modified constraint.
15925 (vashr<mode>3_imm): New insn pattern.
15926 (vlshr<mode>3_imm): Ditto.
15927 (vashr<mode>3): Modified constraint.
15928 (vlshr<mode>3): Ditto.
15929 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
15930 predicate.
15931 (imm_for_neon_rshift_operand): Ditto.
15932 (imm_lshift_or_reg_neon): Ditto.
15933 (imm_rshift_or_reg_neon): Ditto.
15934
15935 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
15936
15937 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15938
15939 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
15940 builtin calls even if likelyvalue is not CONSTANT.
15941 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
15942 Return get_value_for_expr of first operand
15943 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
15944 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15945 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
15946 their non-checking counterparts.
15947 (call_may_clobber_ref_p_1): Likewise.
15948 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
15949 like their non-checking counterparts.
15950 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15951 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
15952 like their non-checking counterparts.
15953 (find_func_clobbers): Likewise.
15954 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
15955 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
15956
15957 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
15958 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
15959 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
15960 of base type reference as argument.
15961 (resolve_addr_in_expr): Likewise. Fix keep computation.
15962 (convert_descriptor_to_signed): Renamed to...
15963 (convert_descriptor_to_mode): ... this. For wider types convert to
15964 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
15965 (typed_binop): New function.
15966 (scompare_loc_descriptor, ucompare_loc_descriptor,
15967 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
15968 default to unsigned type instead of signed.
15969
15970 PR debug/47858
15971 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
15972 (gimple_build_debug_source_bind_stat): New prototype.
15973 (gimple_build_debug_source_bind): Define.
15974 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
15975 gimple_debug_source_bind_get_value,
15976 gimple_debug_source_bind_get_value_ptr,
15977 gimple_debug_source_bind_set_var,
15978 gimple_debug_source_bind_set_value): New inlines.
15979 * gimple.c (gimple_build_debug_source_bind_stat): New function.
15980 * gimple-pretty-print.c (dump_gimple_debug): Handle
15981 GIMPLE_DEBUG_SOURCE_BIND.
15982 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
15983 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15984 * tree-parloops.c (eliminate_local_variables,
15985 separate_decls_in_region): Likewise.
15986 (separate_decls_in_region_debug): Renamed from
15987 separate_decls_in_region_debug_bind. Handle
15988 gimple_debug_source_bind_p.
15989 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
15990 prototypes.
15991 (DECL_HAS_DEBUG_ARGS_P): Define.
15992 (struct tree_function_decl): Add has_debug_args_flag field.
15993 * tree.c (debug_args_for_decl): New variable.
15994 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
15995 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
15996 (rewrite_debug_stmt_uses): New function.
15997 (rewrite_stmt): Use it to rewrite debug stmt uses.
15998 * rtl.def (DEBUG_PARAMETER_REF): New.
15999 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
16000 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
16001 DEBUG_PARAMETER_REF.
16002 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
16003 * print-rtl.c (print_rtx): Likewise.
16004 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
16005 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
16006 debug stmts in the first bb.
16007 * tree-inline.c (remap_ssa_name): If remapping default def
16008 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
16009 a source bind debug stmt.
16010 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
16011 (maybe_move_debug_stmts_to_successors): Likewise.
16012 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
16013 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
16014 debug args vector from old_decl to new_decl.
16015 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
16016 or modified parameters, add debug bind stmts before call
16017 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
16018 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
16019 on DECL_DEBUG_EXPRs from debug args vector.
16020 (expand_debug_source_expr): New function.
16021 (expand_debug_locations): Use it for source bind insns.
16022 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
16023 * var-tracking.c (prepare_call_arguments): Add debug args
16024 to call_arguments if any.
16025 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
16026 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
16027 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
16028 (get_ref_die_offset, parameter_ref_descriptor): New functions.
16029 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
16030 (gen_subprogram_die): Handle parameters identified by
16031 DEBUG_PARAMETER_REF.
16032
16033 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
16034
16035 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
16036 * doc/install.texi (Configuration): Document --with-tls.
16037 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
16038 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
16039 (arm_tls_descseq_addr): New.
16040 (legitimize_tls_address): Add tlsdesc support.
16041 (arm_cannot_copy_insn_p): Check for tlscall.
16042 (arm_emit_tls_decoration): Likewise.
16043 * config/arm/arm.h (TARGET_GNU2_TLS): New.
16044 (OPTION_DEFAULT_SPECS): Add with-tls support.
16045 * config/arm/arm.md (R1_REGNUM): Define.
16046 (tlscall): New.
16047 * config/arm/arm.opt (tls_type): New enumeration type and values.
16048 (mtls-dialect): New switch.
16049 * config/arm/arm-opts.h (enum tls_type): New.
16050
16051 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
16052
16053 * attribs.c (register_attribute): Added assert to check that all
16054 attribute specs are registered with a name that is not empty and
16055 does not start with '_'.
16056 (decl_attributes): Avoid the lookup of the "naked" attribute spec
16057 if the function has no attributes.
16058 * tree.c (is_attribute_with_length_p): Removed.
16059 (is_attribute_p): Removed.
16060 (private_is_attribute_p): New.
16061 (private_lookup_attribute): New.
16062 (lookup_attribute): Removed.
16063 (lookup_ident_attribute): New.
16064 (remove_attribute): Require the first argument to be in the form
16065 'text', not '__text__'. Updated asserts.
16066 (merge_attributes): Use lookup_ident_attributes instead of
16067 lookup_attribute.
16068 (merge_dllimport_decl_attributes): Use remove_attribute.
16069 (attribute_list_contained): Likewise.
16070 (attribute_list_equal): Immediately return 1 if the arguments are
16071 identical pointers.
16072 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
16073 'int'. Require the first argument to be in the form 'text', not
16074 '__text__'. Require the second argument to be an identifier.
16075 (lookup_attribute): Made inline. Require the first argument to be
16076 in the form 'text', not '__text__'.
16077 (private_is_attribute_p, private_lookup_attribute): New.
16078 Updated comments.
16079
16080 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
16081
16082 * builtins.c: Add sync_ or SYNC__ to builtin names.
16083 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
16084 * omp-low.c: Add sync_ or SYNC__ to builtin names.
16085
16086 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
16087
16088 PR target/33049
16089 * config/avr/avr.md (extzv): New expander.
16090 (*extzv): New insn.
16091 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
16092 * config/avr/constraints.md (C04): New constraint.
16093 * doc/md.texi (Machine Constraints): Document it.
16094
16095 2011-06-21 Jakub Jelinek <jakub@redhat.com>
16096
16097 PR middle-end/49489
16098 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
16099 unsignedp argument instead of 1 for clrsb_optab.
16100 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
16101 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
16102 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
16103 * optabs.c (widen_leading): Call widen_operand and expand_unop
16104 with 0 as unsignedp argument instead of 1 for clrsb_optab.
16105 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
16106
16107 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
16108
16109 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
16110
16111 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
16112
16113 * gensupport.c (add_define_attr): New static function.
16114 (is_predicable): Allow multi-alternative lists for the "predicable"
16115 attribute.
16116 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
16117 (process_one_cond_exec): Call alter_attrs_for_insn.
16118 * doc/md.texi (Defining Attributes): Mention some standard names.
16119 (Conditional Execution): Update documentation for "predicable".
16120
16121 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
16122 __builtin_clrsbll): Document.
16123 * doc/rtl.texi (clrsb): New entry.
16124 * optabs.c (widen_leading): Renamed from widen_clz. New argument
16125 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
16126 (expand_unop): Handle clrsb_optab.
16127 (init_optabs): Initialize it.
16128 * optabs.h (enum optab_index): New entry OTI_clrsb.
16129 (clrsb_optab): Define.
16130 * genopinit.c (optabs): Add an entry for it.
16131 * builtins.c (expand_builtin): Handle clrsb builtin functions.
16132 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
16133 BUILT_IN_CLRSBLL): New.
16134 * rtl.def (CLRSB): New code.
16135 * dwarf2out.c (mem_loc_descriptor): Handle it.
16136 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16137 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
16138 and popcount.
16139 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
16140 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
16141 (__ctzDI2): Move declaration.
16142 * config/bfin/bfin.md (clrsbsi2): New expander.
16143 (signbitssi2): Use the CLRSB rtx.
16144 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
16145 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
16146
16147 2011-06-21 Richard Guenther <rguenther@suse.de>
16148
16149 * ipa-inline-transform.c (inline_transform): Fix previous change.
16150
16151 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
16152
16153 PR tree-optimization/49478
16154 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
16155 with constant operand.
16156
16157 2011-06-21 Richard Guenther <rguenther@suse.de>
16158
16159 * ipa-inline-transform.c (inline_transform): Fix typo.
16160
16161 2011-06-21 Richard Guenther <rguenther@suse.de>
16162
16163 PR tree-optimization/49483
16164 * tree-vect-stmts.c (vectorizable_assignment): Also handle
16165 VIEW_CONVERT_EXPR conversions.
16166
16167 2011-06-21 Joseph Myers <joseph@codesourcery.com>
16168
16169 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
16170 * config/avr/avr-tables.opt: New file (generated).
16171 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
16172 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
16173 avr-mcus.def.
16174 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
16175 (avr_option_override): Don't process -mmcu= argument here. Set
16176 avr_current_device using avr_mcu_index.
16177 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
16178 * config/avr/avr.opt (mmcu=): Use Enum.
16179 * config/avr/t-avr (avr-devices.o): Update dependencies.
16180 ($(srcdir)/config/avr/avr-tables.opt): New.
16181 * target.def (help): Remove.
16182 * doc/tm.texi.in (TARGET_HELP): Remove.
16183 * doc/tm.texi: Regenerate.
16184 * opts.c: Don't include target.h.
16185 (common_handle_option): Don't call targetm.help.
16186 * system.h (TARGET_HELP): Poison.
16187 * Makefile.in (opts.o): Update dependencies.
16188
16189 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16190
16191 * config/usegld.h: New file.
16192 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
16193 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
16194 (LIB_SPEC): Likewise. Search /lib.
16195 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
16196 (RDYNAMIC_SPEC): Handle GNU ld.
16197 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
16198 Define.
16199 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
16200 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
16201 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
16202 (STACK_CHECK_STATIC_BUILTIN): Define.
16203 * config/sol2.opt (compat-bsd): Remove.
16204 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
16205 * config/sol2-bi.h: New file.
16206 * config/sol2-gld.h: Remove.
16207 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
16208 (NO_DBX_BNSYM_ENSYM): Remove.
16209 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16210 (STACK_CHECK_STATIC_BUILTIN): Remove.
16211 Test USE_GLD instead of TARGET_GNU_LD.
16212 * config/i386/sol2-10.h: Rename to ...
16213 * config/i386/sol2-bi.h .. this.
16214 (SUBTARGET_EXTRA_SPECS): Redefine.
16215 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
16216 (MULTILIB_DEFAULTS): Remove.
16217 (DEFAULT_ARCH32_P): Define.
16218 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
16219 (ARCH64_SUBDIR): Define.
16220 Test USE_GLD instead of TARGET_GNU_LD.
16221 (I386_EMULATION): Rename to ...
16222 (ARCH32_EMULATION): ... this.
16223 (X86_64_EMULATION): Rename to ...
16224 (ARCH64_EMULATION): ... this.
16225 (TARGET_LD_EMULATION): Remove.
16226 (LINK_ARCH_SPEC): Remove.
16227 * config/i386/sol2-gas.h: Remove.
16228 * config/i386/t-sol2-10: Rename to ...
16229 * config/i386/t-sol2-64: ... this.
16230 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
16231 (AS_SPARC64_FLAG): Define.
16232 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
16233 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
16234 depending on TARGET_CPU_DEFAULT.
16235 (CPP_CPU_SPEC): Redefine.
16236 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
16237 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
16238 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
16239 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
16240 ASM_ARCH_DEFAULT_SPEC): Redefine.
16241 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16242 LINK_ARCH_DEFAULT_SPEC.
16243 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
16244 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
16245 (ARCH64_SUBDIR): Define.
16246 (LINK_ARCH64_SPEC): Redefine.
16247 (CC1_SPEC): Redefine.
16248 (OPTION_DEFAULT_SPECS): Redefine.
16249 (MULTILIB_DEFAULTS): Define.
16250 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
16251 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
16252 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
16253 (NO_DBX_BNSYM_ENSYM): Remove.
16254 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
16255 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
16256 (TARGET_ASM_NAMED_SECTION): Likewise.
16257 (STACK_CHECK_STATIC_BUILTIN): Remove.
16258 * config/sparc/sol2-bi.h: Remove.
16259 * config/sparc/sol2-gas-bi.h: Remove.
16260 * config/sparc/sol2-gas.h: Remove.
16261 * config/sparc/sol2-gld-bi.h: Remove.
16262 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
16263 common parts ...
16264 (*-*-solaris2*): ... here.
16265
16266 2011-06-21 Christian Bruel <christian.bruel@st.com>
16267
16268 PR other/43564
16269 * ipa-inline.c (can_inline_edge_p): Check
16270 !DECL_DISREGARD_INLINE_LIMITS.
16271
16272 2011-06-21 Christian Bruel <christian.bruel@st.com>
16273
16274 PR middle-end/49139
16275 * cgraphunit.c (process_function_and_variable_attributes): warn when
16276 always_inline functions that are not inline.
16277 * ipa-inline-transform.c (inline_transform): Always call
16278 optimize_inline.
16279 * tree-inline.c (tree_inlinable_function_p): Use error instead
16280 of sorry.
16281 (expand_call_inline): Likewise.
16282
16283 2011-06-21 Jakub Jelinek <jakub@redhat.com>
16284
16285 * Makefile.in (dg_target_exps): Set.
16286 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
16287 instead of 7, try to divide it more evenly.
16288
16289 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
16290
16291 PR target/49089
16292 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
16293 (avx256_split_unaligned_store): New definition.
16294 (ix86_option_override_internal): Enable avx256 unaligned load/store
16295 splitting only when avx256_split_unaligned_load/store is set.
16296
16297 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
16298
16299 * regrename.c (scan_rtx_reg): Handle the case where we write to an
16300 open chain in a smaller mode without failing the entire block.
16301
16302 2011-06-21 Alan Modra <amodra@gmail.com>
16303
16304 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
16305 CONST high part large-toc address.
16306 (rs6000_tls_referenced_p): Make static.
16307 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
16308
16309 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16310
16311 PR target/49385
16312 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
16313 one of the operands is a register.
16314
16315 2011-06-20 Kai Tietz <ktietz@redhat.com>
16316
16317 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
16318 operations in combination with binary and.
16319
16320 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
16321
16322 * regrename.c (do_replace): Don't update notes.
16323
16324 2011-06-20 Alan Modra <amodra@gmail.com>
16325
16326 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
16327 of toc-relative address in CONST.
16328 (rs6000_delegitimize_address): Recognize changed address.
16329 (rs6000_legitimize_reload_address): Likewise.
16330 (rs6000_emit_move): Don't force these constants to memory.
16331 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
16332 toc-relative address in CONST.
16333 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
16334 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
16335
16336 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
16337
16338 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
16339 (count_trailing_zeros): Likewise.
16340
16341 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
16342
16343 PR other/49325
16344 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
16345 .init_array can be used with .ctors on targets.
16346 * configure: Regenerated.
16347
16348 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16349
16350 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
16351 if the element type is volatile.
16352
16353 2011-06-18 Jan Hubicka <jh@suse.cz>
16354
16355 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
16356 extra name aliases.
16357 (lto_symtab_resolve_can_prevail_p): Likewise.
16358 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
16359 * cgraphbuild.c (record_reference): Remove extra body alias code.
16360 (mark_load): Likewise.
16361 (mark_store): Likewise.
16362 * cgraph.h (varpool_node): Remove extra_name filed;
16363 add alias_of and extraname_alias.
16364 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
16365 (varpool_alias_aliased_node): New inline function.
16366 (varpool_variable_node): New function.
16367 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
16368 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
16369 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
16370 (input_varpool_node): Likewise.
16371 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
16372 (varpool_externally_visible_p): Remove extra body alias code.
16373 (function_and_variable_visibility): Likewise.
16374 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
16375 (ipa_pta_execute): Use it.
16376 * varpool.c (varpool_remove_node): Remove extra name alias code.
16377 (varpool_mark_needed_node): Likewise.
16378 (varpool_analyze_pending_decls): Analyze aliases.
16379 (assemble_aliases): New functoin.
16380 (varpool_assemble_decl): Use it.
16381 (varpool_create_variable_alias): New function.
16382 (varpool_extra_name_alias): Rewrite.
16383 (varpool_for_node_and_aliases): New function.
16384
16385 2011-06-18 Jakub Jelinek <jakub@redhat.com>
16386
16387 PR target/49411
16388 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
16389 last_arg_constant and last argument doesn't match its predicate,
16390 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
16391 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
16392 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
16393 spelling of error message.
16394 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
16395 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
16396 const_0_to_255_operand instead of const_int_operand.
16397
16398 Revert:
16399 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16400
16401 * config/i386/sse.md (blendbits): Remove mode attribute.
16402 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16403 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16404 Check integer value of operand 3 in insn constraint.
16405
16406 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
16407
16408 PR rtl-optimization/48542
16409 * reload.c (find_equiv_reg): Stop looking when finding a
16410 setjmp-type call.
16411 * reload1.c (reload_as_needed): Invalidate all reload
16412 registers when crossing a setjmp-type call.
16413
16414 2011-06-16 Jeff Law <law@redhat.com>
16415
16416 * tree-ssa-threadupdate.c (struct redirection_data): New field
16417 intermediate_edge.
16418 (THREAD_TARGET2): Define.
16419 (redirection_data_eq): Also check that the intermediate edge is equal.
16420 (lookup_redirection_data): Drop useless argument. Extract the
16421 outgoing_edge and intermediate edge from E. Callers updated.
16422 (copy_phi_args, update_destination_phis): New functions.
16423 (fix_duplicate_block_edges): Likewise.
16424 (create_edge_and_update_destination_phis): Duplicate all the edges
16425 hung off e->aux. Use copy_phi_args.
16426 (create_duplicates): Use fix_duplicate_block_edges.
16427 (fixup_template_block): Likewise.
16428 (redirect_edges): If necessary, redirect the joiner block's incoming
16429 edge to the duplicate of the joiner block.
16430 (thread_block): Don't muck up loops when threading through a joiner
16431 block.
16432 (thread_through_loop_header): Handle threading through a joiner block.
16433 (mark_threaded_blocks, register_jump_thread): Likewise.
16434 * tree-flow.h (register_jump_thread): Add new argument. Callers
16435 updated.
16436 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
16437 (thread_across_edge): Handle threading through a joiner block.
16438
16439 2011-06-16 Martin Jambor <mjambor@suse.cz>
16440
16441 PR tree-optimization/49343
16442 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
16443 calculate offset, provide 2nd operand for the new COMPONENT_REF.
16444
16445 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
16446
16447 * config/darwin-protos.h (machopic_select_rtx_section): Move to
16448 inside RTX_CODE ifdef.
16449
16450 2011-06-16 Tom de Vries <tom@codesourcery.com>
16451
16452 PR target/45098
16453 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
16454 Disallow NULL pointer for pointer arithmetic.
16455
16456 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16457
16458 PR target/49398
16459 Revert.
16460 2011-06-10 Wei Guozhi <carrot@google.com>
16461
16462 PR target/45335
16463 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16464 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16465 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16466 related peephole2.
16467 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16468 related peephole2.
16469 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16470 (arm_legitimate_ldrd_p): New prototype.
16471 (arm_output_ldrd): New prototype.
16472 * config/arm/arm.c (arm_check_ldrd_operands): New function.
16473 (arm_legitimate_ldrd_p): New function.
16474 (arm_output_ldrd): New function.
16475
16476 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
16477
16478 PR middle-end/46500
16479 * doc/tm.texi.in: Update Copyright date.
16480 * doc/tm.texi: Regenerate.
16481 * targhooks.c (default_setup_incoming_varargs): Replace
16482 CUMULATIVE_ARGS* argument type with cumulative_args_t.
16483 (default_pretend_outgoing_varargs_named): Likewise.
16484 (hook_pass_by_reference_must_pass_in_stack): Likewise.
16485 (hook_callee_copies_named): Likewise.
16486 (default_function_arg_advance): Likewise.
16487 (default_function_arg): Likewise.
16488 (default_function_incoming_arg): Likewise.
16489 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16490 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16491 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16492 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16493 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16494 * targhooks.h (default_setup_incoming_varargs): Likewise.
16495 (default_pretend_outgoing_varargs_named): Likewise.
16496 (hook_pass_by_reference_must_pass_in_stack): Likewise.
16497 (hook_callee_copies_named): Likewise.
16498 (default_function_arg_advance): Likewise.
16499 (default_function_arg): Likewise.
16500 (default_function_incoming_arg): Likewise.
16501 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
16502 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
16503 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
16504 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16505 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
16506 * target.def (pass_by_reference): Likewise.
16507 (setup_incoming_varargs, strict_argument_naming): Likewise.
16508 (pretend_outgoing_varargs_named, callee_copies): Likewise.
16509 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
16510 (function_incoming_arg): Likewise.
16511 * target.h: Don't include "tm.h" .
16512 (cumulative_args_t): New typedef.
16513 [GCC_TM_H] (get_cumulative_args): New static inline function.
16514 [GCC_TM_H] (pack_cumulative_args): Likewise.
16515 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
16516 argument type with cumulative_args_t.
16517 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
16518 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
16519 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16520 (frv_arg_partial_bytes, frv_function_arg): Likewise.
16521 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
16522 (frv_function_arg_1): Likewise.
16523 * config/s390/s390.c (s390_pass_by_reference): Likewise.
16524 (s390_function_arg_advance, s390_function_arg): Likewise.
16525 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16526 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
16527 (m32c_strict_argument_naming): Likewise.
16528 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
16529 (spu_function_arg_advance): Likewise.
16530 (spu_setup_incoming_varargs): Likewise. Make static.
16531 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
16532 Remove prototype.
16533 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
16534 CUMULATIVE_ARGS* argument type with cumulative_args_t.
16535 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
16536 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
16537 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
16538 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
16539 (mep_pass_by_reference, mep_function_arg): Likewise.
16540 (mep_function_arg_advance): Likewise.
16541 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16542 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
16543 (m32r_function_arg, m32r_function_arg_advance): Likewise.
16544 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
16545 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16546 (ix86_function_arg, ix86_pass_by_reference): Likewise.
16547 (ix86_setup_incoming_varargs): Likewise.
16548 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16549 (sh_strict_argument_naming): Likewise.
16550 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
16551 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
16552 (sh_function_arg_advance, sh_function_arg): Likewise.
16553 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16554 (pdp11_function_arg_advance): Likewise.
16555 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16556 Likewise.
16557 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
16558 * config/avr/avr.c (avr_function_arg): Likewise.
16559 (avr_function_arg_advance): Likewise.
16560 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16561 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
16562 (xtensa_function_arg_1): Likewise.
16563 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
16564 Likewise.
16565 (xstormy16_function_arg): Likewise.
16566 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16567 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16568 (fr30_function_arg_advance): Likewise.
16569 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16570 (lm32_function_arg, lm32_function_arg_advance): Likewise.
16571 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16572 (moxie_function_arg, moxie_function_arg_advance): Likewise.
16573 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
16574 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16575 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
16576 (cris_function_arg, cris_function_incoming_arg): Likewise.
16577 (cris_function_arg_advance, cris_function_arg_1): Likewise.
16578 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16579 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
16580 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
16581 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16582 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
16583 (mn10300_arg_partial_bytes): Likewise.
16584 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16585 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
16586 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
16587 (ia64_function_arg_1): Likewise.
16588 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16589 (m68k_function_arg): Likewise.
16590 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
16591 (rs6000_function_arg, setup_incoming_varargs): Likewise.
16592 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
16593 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
16594 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
16595 (picochip_arg_advance): Likewise.
16596 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16597 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
16598 (mcore_function_arg_advance): Likewise.
16599 * config/score/score.c (score_pass_by_reference): Likewise.
16600 (score_function_arg_advance): Likewise.
16601 (score_arg_partial_bytes): Likewise. Make static.
16602 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
16603 * config/arm/arm.c (arm_arg_partial_bytes): Replace
16604 CUMULATIVE_ARGS* argument type with cumulative_args_t.
16605 (arm_function_arg, arm_function_arg_advance): Likewise.
16606 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
16607 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16608 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
16609 (pa_function_arg): Likewise.
16610 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
16611 (mips_function_arg, mips_function_arg_advance): Likewise.
16612 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
16613 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
16614 * config/vax/vax.c (vax_function_arg): Likewise.
16615 (vax_function_arg_advance): Likewise.
16616 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16617 (h8300_function_arg_advance): Likewise.
16618 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16619 (v850_strict_argument_naming, v850_function_arg): Likewise.
16620 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
16621 (v850_setup_incoming_varargs): Likewise.
16622 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16623 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
16624 (mmix_function_arg, mmix_pass_by_reference): Likewise.
16625 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
16626 with const void *.
16627 * config/bfin/bfin.c (setup_incoming_varargs): Replace
16628 CUMULATIVE_ARGS* argument type with cumulative_args_t.
16629 (bfin_function_arg_advance, bfin_function_arg): Likewise.
16630 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
16631 * calls.c (emit_call_1): Change type of args_so_far to
16632 cumulative_args_t. Changed all callers.
16633 (initialize_argument_information): Likewise.
16634 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
16635 * dse.c (get_call_args): Likewise.
16636 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16637 * function.c (pass_by_reference, reference_callee_copied): Likewise.
16638 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
16639 New member args_so_far_v. Changed all users.
16640 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
16641 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16642 * config/mips/mips.c (mips_output_args_xfer): Likewise.
16643 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16644 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16645 * config/microblaze/microblaze.c (microblaze_expand_prologue):
16646 Likewise.
16647 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
16648 m32r_pass_by_reference.
16649
16650 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
16651
16652 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
16653 argument to be a VEC of statements.
16654 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
16655 assert that pattern statements have to have their vector type set.
16656 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
16657 Change the first argument to be a VEC of statements. Update
16658 documentation.
16659 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
16660 (vect_handle_widen_mult_by_const): New function.
16661 (vect_recog_widen_mult_pattern): Change the first argument to be a
16662 VEC of statements. Update documentation. Check that the constant is
16663 INTEGER_CST. Support multiplication by a constant that fits an
16664 intermediate type - call vect_handle_widen_mult_by_const.
16665 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
16666 call. Handle additional pattern statements if necessary.
16667
16668 2011-06-16 Nick Clifton <nickc@redhat.com>
16669
16670 PR target/49427
16671 * config.gcc: Set cpu_type to v850 for any V850 architecture.
16672 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
16673 md_file, extra_modes, out_file and extra_options are these are all
16674 deduced from cpu_type.
16675
16676 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
16677
16678 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
16679 truncation mask to 63.
16680
16681 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
16682
16683 PR target/49313
16684 PR target/29524
16685 * longlong.h: Add AVR support:
16686 (count_leading_zeros): New macro.
16687 (count_trailing_zeros): New macro.
16688 (COUNT_LEADING_ZEROS_0): New macro.
16689 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
16690 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
16691 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
16692 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
16693 (LIB2FUNCS_EXCLUDE): Add _clz.
16694 * config/avr/libgcc.S (XCALL): Move up in file.
16695 (XJMP): New C Macro.
16696 (DEFUN): New asm macro.
16697 (ENDF): New asm macro.
16698 (__ffssi2): New function.
16699 (__ffshi2): New function.
16700 (__loop_ffsqi2): New function.
16701 (__ctzsi2): New function.
16702 (__ctzhi2): New function.
16703 (__clzdi2): New function.
16704 (__clzsi2): New function.
16705 (__clzhi2): New function.
16706 (__paritydi2): New function.
16707 (__paritysi2): New function.
16708 (__parityhi2): New function.
16709 (__parityqi2): New function.
16710 (__popcounthi2): New function.
16711 (__popcountsi2): New function.
16712 (__popcountdi2): New function.
16713 (__popcountqi2): New function.
16714 (__bswapsi2): New function.
16715 (__bswapdi2): New function.
16716 (__ashldi3): New function.
16717 (__ashrdi3): New function.
16718 (__lshrdi3): New function.
16719 Fix suspicous lines.
16720
16721 2011-06-16 Richard Guenther <rguenther@suse.de>
16722
16723 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
16724 the same as x != 0.
16725 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
16726 to (bool) X & 1.
16727 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
16728 equality compares against zero for the lower bit.
16729
16730 2011-06-16 Jakub Jelinek <jakub@redhat.com>
16731
16732 PR tree-optimization/49419
16733 * tree-vrp.c (execute_vrp): Call init_range_assertions
16734 before estimate_numbers_of_iterations, call
16735 free_number_of_iterations_estimates before calling
16736 remove_range_assertions.
16737
16738 2011-06-16 Revital Eres <revital.eres@linaro.org>
16739
16740 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
16741 (struct partial_schedule): Add rows_length field.
16742 (verify_partial_schedule): Check rows_length.
16743 (ps_insert_empty_row): Handle rows_length.
16744 (create_partial_schedule): Likewise.
16745 (free_partial_schedule): Likewise.
16746 (reset_partial_schedule): Likewise.
16747 (create_ps_insn): Remove rest_count argument.
16748 (remove_node_from_ps): Update rows_length.
16749 (add_node_to_ps): Update rows_length and call create_ps_insn
16750 without passing row_rest_count.
16751 (rotate_partial_schedule): Update rows_length.
16752
16753 2011-06-16 Revital Eres <revital.eres@linaro.org>
16754
16755 * ddg.c (add_intra_loop_mem_dep): New function.
16756 (build_intra_loop_deps): Call it.
16757
16758 2011-06-13 Jeff Law <law@redhat.com>
16759
16760 * df-problems.c (df_lr_local_compute): Manually CSE
16761 PIC_OFFSET_TABLE_REGNUM.
16762 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
16763 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
16764
16765 2011-06-13 Jan Hubicka <jh@suse.cz>
16766
16767 * cgraphunit.c (handle_alias_pairs): New function.
16768 (cgraph_finalize_compilation_unit): Use it.
16769 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
16770 as externally visible.
16771
16772 2011-06-15 Richard Guenther <rguenther@suse.de>
16773
16774 * expr.c (expand_expr_real_2): Reduce all integral types to
16775 bitfield precision.
16776 (expand_expr_real_1): Likewise.
16777
16778 2011-06-15 Martin Jambor <mjambor@suse.cz>
16779
16780 PR tree-optimization/48613
16781 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
16782 ipa_node_params_vector is NULL.
16783
16784 2011-06-15 Jakub Jelinek <jakub@redhat.com>
16785
16786 PR debug/49382
16787 * dwarf2out.c (dw_loc_list_node): Add force field.
16788 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
16789 location in the list, even if it is modified before first real insn.
16790 (output_loc_list): Emit empty ranges with force flag set.
16791 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
16792
16793 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
16794
16795 PR target/49349
16796 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
16797 (fence_to_rewind). Use it to notice when bookkeeping will be placed
16798 above a fence. Update comments.
16799 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
16800 placed just above it. Do not allow NULL place_to_insert.
16801
16802 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
16803
16804 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
16805 (slpeel_tree_peel_loop_to_edge): Don't call
16806 remove_dead_stmts_from_loop.
16807 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
16808 remove irrelevant pattern statements. For irrelevant statements
16809 check if it is the last statement of a detected pattern, use
16810 corresponding pattern statement instead.
16811 (destroy_loop_vec_info): No need to remove pattern statements,
16812 only free stmt_vec_info.
16813 (vect_transform_loop): For irrelevant statements check if it is
16814 the last statement of a detected pattern, use corresponding
16815 pattern statement instead.
16816 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
16817 pattern statements. Set basic block for the new statement.
16818 (vect_pattern_recog): Update documentation.
16819 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
16820 operands of pattern statements.
16821 (vectorizable_call): Fix printing. In case of a pattern statement
16822 use the lhs of the original statement when creating a dummy
16823 statement to replace the original call.
16824 (vect_analyze_stmt): For irrelevant statements check if it is
16825 the last statement of a detected pattern, use corresponding
16826 pattern statement instead.
16827 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
16828 statements use gsi of the original statement.
16829
16830 2011-06-14 Joseph Myers <joseph@codesourcery.com>
16831
16832 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
16833 common/common-target-def.h.
16834 * target.def (default_target_flags, handle_option,
16835 supports_split_stack, optimization_table, init_struct,
16836 except_unwind_info, unwind_tables_default, have_named_sections):
16837 Move to common/common-target.def.
16838 * target.h (enum opt_levels, struct default_options): Move to
16839 common/common-target.h.
16840 * targhooks.c (default_except_unwind_info,
16841 dwarf2_except_unwind_info, sjlj_except_unwind_info,
16842 default_target_handle_option, empty_optimization_table): Move to
16843 common/common-targhooks.c.
16844 * targhooks.h (default_except_unwind_info,
16845 dwarf2_except_unwind_info, sjlj_except_unwind_info,
16846 default_target_handle_option, empty_optimization_table): Move to
16847 common/common-targhooks.h.
16848 * common/common-target-def.h: Include common/common-targhooks.h.
16849 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
16850 defined.
16851 * common/common-target.def (handle_option, option_init_struct,
16852 option_optimization_table, default_target_flags,
16853 except_unwind_info, supports_split_stack, unwind_tables_default,
16854 have_named_sections): Move from target.def.
16855 (HOOK_PREFIX): Undefine at end of file.
16856 * common/common-target.h: Include input.h.
16857 (enum opt_levels, struct default_options): Move from target.h.
16858 * common/common-targhooks.c, common/common-targhooks.h: New.
16859 * config.gcc (target_has_targetm_common): Default to yes.
16860 (moxie*): Set target_has_targetm_common=no.
16861 (hppa*-*-*): Don't set target_has_targetm_common=yes.
16862 * doc/tm.texi: Regenerate.
16863 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
16864 (C_TARGET_DEF_H): Add common/common-targhooks.h.
16865 (GCC_OBJS): Remove vec.o.
16866 (OBJS): Remove hooks.o and vec.o.
16867 (OBJS-libcommon-target): Add vec.o, hooks.o and
16868 common/common-targhooks.o.
16869 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
16870 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
16871 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
16872 cfglayout.o, $(out_object_file), $(common_out_object_file)):
16873 Update dependencies.
16874 (common/common-targhooks.o): New.
16875 * common/config/default-common.c: Include tm.h. Add FIXME comment.
16876 * common/config/pa/pa-common.c: Include more headers. Take
16877 copyright dates from pa.c.
16878 (pa_option_optimization_table, pa_handle_option,
16879 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
16880 TARGET_HANDLE_OPTION): Move from pa.c.
16881 * common/config/alpha/alpha-common.c,
16882 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
16883 common/config/bfin/bfin-common.c,
16884 common/config/cris/cris-common.c,
16885 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
16886 common/config/h8300/h8300-common.c,
16887 common/config/i386/i386-common.c,
16888 common/config/ia64/ia64-common.c,
16889 common/config/iq2000/iq2000-common.c,
16890 common/config/lm32/lm32-common.c,
16891 common/config/m32c/m32c-common.c,
16892 common/config/m32r/m32r-common.c,
16893 common/config/m68k/m68k-common.c,
16894 common/config/mcore/mcore-common.c,
16895 common/config/mep/mep-common.c,
16896 common/config/microblaze/microblaze-common.c,
16897 common/config/mips/mips-common.c,
16898 common/config/mmix/mmix-common.c,
16899 common/config/mn10300/mn10300-common.c,
16900 common/config/pdp11/pdp11-common.c,
16901 common/config/picochip/picochip-common.c,
16902 common/config/rs6000/rs6000-common.c,
16903 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
16904 common/config/score/score-common.c, common/config/sh/sh-common.c,
16905 common/config/sparc/sparc-common.c,
16906 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
16907 common/config/vax/vax-common.c,
16908 common/config/xstormy16/xstormy16-common.c,
16909 common/config/xtensa/xtensa-common.c: New.
16910 * config/alpha/alpha.c: Include common/common-target.h.
16911 (alpha_option_optimization_table, alpha_handle_option,
16912 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16913 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
16914 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
16915 * config/arm/arm.c (arm_option_optimization_table,
16916 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
16917 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
16918 arm-common.c.
16919 * config/avr/avr.c (avr_option_optimization_table,
16920 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
16921 to avr-common.c.
16922 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
16923 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
16924 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
16925 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
16926 * config/cris/cris.c (cris_option_optimization_table,
16927 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16928 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
16929 cris-common.c.
16930 * config/fr30/fr30.c (fr30_option_optimization_table,
16931 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
16932 to fr30-common.c.
16933 * config/frv/frv.c (frv_option_optimization_table,
16934 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
16935 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
16936 * config/h8300/h8300.c (h8300_option_optimization_table,
16937 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
16938 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
16939 * config/i386/i386-protos.h (ix86_handle_option): Declare.
16940 * config/i386/i386.c: Include common/common-target.h.
16941 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
16942 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
16943 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
16944 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
16945 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
16946 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
16947 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
16948 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
16949 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
16950 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
16951 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
16952 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
16953 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
16954 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
16955 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
16956 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
16957 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
16958 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
16959 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
16960 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
16961 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
16962 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
16963 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
16964 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
16965 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
16966 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
16967 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
16968 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
16969 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
16970 ix86_option_optimization_table, ix86_option_init_struct,
16971 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
16972 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
16973 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
16974 i386-common.c.
16975 * config/i386/t-i386 (i386.o): Update dependencies.
16976 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
16977 * config/ia64/ia64.c (ia64_option_optimization_table,
16978 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
16979 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16980 ia64_handle_option): Move to ia64-common.c.
16981 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
16982 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
16983 * config/lm32/lm32.c (lm32_option_optimization_table,
16984 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
16985 to lm32-common.c.
16986 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
16987 m32c-common.c.
16988 * config/m32r/m32r.c (m32r_option_optimization_table,
16989 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
16990 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
16991 m32r_handle_option): Move to m32r-common.c.
16992 (m32r_memory_move_cost): Remove comment referring to
16993 TARGET_HANDLE_OPTION.
16994 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
16995 Move to m68k-common.c.
16996 * config/mcore/mcore.c (mcore_option_optimization_table,
16997 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
16998 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
16999 * config/mep/mep.c (mep_option_optimization_table,
17000 mep_handle_option, TARGET_HANDLE_OPTION,
17001 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
17002 Move to mep-common.c.
17003 * config/microblaze/microblaze.c
17004 (microblaze_option_optimization_table,
17005 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
17006 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
17007 * config/mips/mips.c (mips_handle_option,
17008 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17009 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
17010 mips-common.c.
17011 * config/mmix/mmix.c (mmix_option_optimization_table,
17012 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17013 Move to mmix-common.c.
17014 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
17015 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
17016 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17017 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
17018 * config/pa/pa.c: Include common/common-target.h.
17019 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
17020 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17021 pa_handle_option): Move to pa-common.c.
17022 (pa_option_override): Use targetm_common.except_unwind_info.
17023 (pa_asm_output_mi_thunk, pa_function_section): Use
17024 targetm_common.have_named_sections.
17025 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
17026 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17027 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17028 pdp11_handle_option, pdp11_option_init_struct): Move to
17029 pdp11-common.c.
17030 * config/picochip/picochip.c (picochip_option_optimization_table,
17031 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
17032 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
17033 * config/rs6000/rs6000.c: Include common/common-target.h.
17034 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
17035 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
17036 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
17037 rs6000_handle_option): Move to rs6000-common.c.
17038 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17039 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
17040 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17041 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
17042 * config/s390/s390.c (processor_flags_table,
17043 s390_option_optimization_table, s390_option_init_struct,
17044 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
17045 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
17046 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
17047 * config/s390/s390.h (processor_flags_table): Declare.
17048 * config/score/score.c (score_option_optimization_table,
17049 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17050 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
17051 score_handle_option): Move to score-common.c.
17052 * config/sh/sh.c (sh_option_optimization_table,
17053 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
17054 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
17055 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
17056 * config/sparc/sparc.c: Include common/common-target.h.
17057 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17058 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
17059 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
17060 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
17061 spu_option_init_struct): Move to spu-common.c.
17062 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
17063 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
17064 * config/v850/v850.c (small_memory_physical_max,
17065 v850_handle_memory_optionn v850_handle_option,
17066 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
17067 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
17068 v850-common.c.
17069 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
17070 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
17071 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
17072 Move to xtensa-common.c.
17073 * cfglayout.c: Include common/common-target.h.
17074 (fixup_reorder_chain): Use targetm_common.have_named_sections.
17075 * cfgrtl.c: Include common/common-target.h.
17076 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
17077 targetm_common.have_named_sections.
17078 * dbxout.c: Include common/common-target.h.
17079 (dbxout_function_end): Use targetm_common.have_named_sections.
17080 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
17081 targetm_common.except_unwind_info.
17082 * dwarf2out.c: Include common/common-target.h.
17083 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
17084 dwarf2out_begin_prologue, dwarf2out_frame_init,
17085 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
17086 targetm_common.except_unwind_info.
17087 * except.c: Include common/common-target.h.
17088 (init_eh, finish_eh_generation,
17089 output_one_function_exception_table): Use
17090 targetm_common.except_unwind_info.
17091 (switch_to_exception_section): Use targetm_common.have_named_sections.
17092 * explow.c: Include common/common-target.h.
17093 * expr.c: Include common/common-target.h.
17094 (build_personality_function): Use targetm_common.except_unwind_info.
17095 * function.c: Include common/common-target.h.
17096 (expand_function_end): Use targetm_common.except_unwind_info.
17097 * haifa-sched.c: Include common/common-target.h.
17098 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
17099 * lto-opts.c: Include common/common-target.h instead of target.h.
17100 (lto_reissue_options): Use targetm_common.handle_option.
17101 * opts.c: Include common/common-target.h.
17102 (target_handle_option): Use targetm_common.handle_option.
17103 (init_options_struct): Update comment referring to
17104 targetm.target_option.optimization. Use
17105 targetm_common.default_target_flags,
17106 targetm_common.unwind_tables_default and
17107 targetm_common.option_init_struct.
17108 (default_options_optimization): Use
17109 targetm_common.option_optimization_table.
17110 (finish_options): Use targetm_common.except_unwind_info,
17111 targetm_common.unwind_tables_default,
17112 targetm_common.have_named_sections and
17113 targetm_common.supports_split_stack.
17114 * toplev.c: Include common/common-target.h.
17115 (process_options): Use targetm_common.have_named_sections.
17116 * tree-tailcall.c: Include common/common-target.h.
17117 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
17118 * tree.c: Include common/common-target.h.
17119 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
17120 * varasm.c: Include common/common-target.h.
17121 (resolve_unique_section, hot_function_section,
17122 default_function_section): Use targetm_common.have_named_sections.
17123
17124 2011-06-14 Easwaran Raman <eraman@google.com>
17125
17126 PR rtl-optimization/44194
17127 * dse.c: Include tree-flow.h
17128 (insn_info): Add new field non_frame_wild_read.
17129 (group_info): Add new fields escaped_n and escaped_p.
17130 (kill_on_calls): New variable.
17131 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
17132 (dse_step0): Initialize kill_on_calls.
17133 (can_escape): New function.
17134 (set_usage_bits): Add additional parameter; record information
17135 about escaped locations.
17136 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
17137 (dse_step2_nospill): Set kill_on_calls based on
17138 group->escaped_n and group->escaped_n.
17139 (add_wild_read): Refactor into...
17140 (reset_active_stores): ... New function, and
17141 (free_read_records): ... New function.
17142 (add_non_frame_wild_read): New function.
17143 (scan_insn): Call add_non_frame_wild_read on non-const calls.
17144 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
17145 (dse_step5_nospill): Call scan_reads_nospill for instructions
17146 marked as non_frame_wild_read.
17147 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
17148
17149 2011-06-14 Joseph Myers <joseph@codesourcery.com>
17150
17151 * common/common-target-def.h, common/common-target.def,
17152 common/common-target.h, common/config/default-common.c,
17153 common/config/pa/pa-common.c: New files.
17154 * Makefile.in (common_out_file, common_out_object_file,
17155 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
17156 (OBJS-libcommon-target): Include $(common_out_object_file).
17157 (prefix.o): Update dependencies.
17158 ($(common_out_object_file), common/common-target-hooks-def.h,
17159 s-common-target-hooks-def-h): New.
17160 (s-tm-texi): Also check timestamp on common-target.def.
17161 (build/genhooks.o): Update dependencies.
17162 * config.gcc (common_out_file, target_has_targetm_common): Define.
17163 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
17164 TARGET_ALWAYS_STRIP_DOTDOT.
17165 * configure.ac (common_out_object_file): Define.
17166 (common_out_file, common_out_object_file): Substitute.
17167 (common): Create directory.
17168 * configure: Regenerate.
17169 * doc/tm.texi.in (targetm_common): Document.
17170 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
17171 * doc/tm.texi: Regenerate.
17172 * genhooks.c (hook_array): Also include common/common-target.def.
17173 * prefix.c (tm.h): Don't include.
17174 (common/common-target.h): Include.
17175 (ALWAYS_STRIP_DOTDOT): Don't define.
17176 (update_path): Use targetm_common.always_strip_dotdot instead of
17177 ALWAYS_STRIP_DOTDOT.
17178 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
17179
17180 2011-06-14 David Li <davidxl@google.com>
17181
17182 * passes.c (execute_function_todo): Remove TODO_dump_func.
17183 (execute_one_pass): Remove TODO_dump_func.
17184 (execute_function_dump): New function.
17185 * tree-vrp.c: Remove TODO_dump_func.
17186 * regrename.c: Remove TODO_dump_func.
17187 * fwprop.c: Remove TODO_dump_func.
17188 * tree-into-ssa.c: Remove TODO_dump_func.
17189 * tree-complex.c: Remove TODO_dump_func.
17190 * tracer.c: Remove TODO_dump_func.
17191 * tree-loop-distribution.c: Remove TODO_dump_func.
17192 * postreload-gcse.c: Remove TODO_dump_func.
17193 * postreload.c: Remove TODO_dump_func.
17194 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
17195 * tree-tailcall.c: Remove TODO_dump_func.
17196 * ipa-cp.c: Remove TODO_dump_func.
17197 * final.c: Remove TODO_dump_func.
17198 * tree-emutls.c: Remove TODO_dump_func.
17199 * omp-low.c: Remove TODO_dump_func.
17200 * tree-ssa-dse.c: Remove TODO_dump_func.
17201 * tree-ssa-uncprop.c: Remove TODO_dump_func.
17202 * auto-inc-dec.c: Remove TODO_dump_func.
17203 * reorg.c: Remove TODO_dump_func.
17204 * tree-ssa-copyrename.c: Remove TODO_dump_func.
17205 * tree-ssa-ccp.c: Remove TODO_dump_func.
17206 * compare-elim.c: Remove TODO_dump_func.
17207 * mode-switching.c: Remove TODO_dump_func.
17208 * modulo-sched.c: Remove TODO_dump_func.
17209 * tree-call-cdce.c: Remove TODO_dump_func.
17210 * cse.c: Remove TODO_dump_func.
17211 * web.c: Remove TODO_dump_func.
17212 * tree-stdarg.c: Remove TODO_dump_func.
17213 * lto-streamer-out.c: Remove TODO_dump_func.
17214 * tree-ssa-math-opts.c: Remove TODO_dump_func.
17215 * tree-ssa-dom.c: Remove TODO_dump_func.
17216 * tree-nrv.c: Remove TODO_dump_func.
17217 * loop-init.c: Remove TODO_dump_func.
17218 * gimple-low.c: Remove TODO_dump_func.
17219 * ipa-inline.c: Remove TODO_dump_func.
17220 * tree-ssa-sink.c: Remove TODO_dump_func.
17221 * jump.c: Remove TODO_dump_func.
17222 * ifcvt.c: Remove TODO_dump_func.
17223 * tree-ssa-loop.c: Remove TODO_dump_func.
17224 * recog.c: Remove TODO_dump_func.
17225 * dse.c: Remove TODO_dump_func.
17226 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
17227 * matrix-reorg.c: Remove TODO_dump_func.
17228 * tree-eh.c: Remove TODO_dump_func.
17229 * regmove.c: Remove TODO_dump_func.
17230 * function.c: Remove TODO_dump_func.
17231 * tree-vectorizer.c: Remove TODO_dump_func.
17232 * ipa-split.c: Remove TODO_dump_func.
17233 * gcse.c: Remove TODO_dump_func.
17234 * tree-if-conv.c: Remove TODO_dump_func.
17235 * init-regs.c: Remove TODO_dump_func.
17236 * tree-ssa-phiopt.c: Remove TODO_dump_func.
17237 * implicit-zee.c: Remove TODO_dump_func.
17238 * lower-subreg.c: Remove TODO_dump_func.
17239 * bt-load.c: Remove TODO_dump_func.
17240 * tree-dfa.c: Remove TODO_dump_func.
17241 * except.c: Remove TODO_dump_func.
17242 * emit-rtl.c: Remove TODO_dump_func.
17243 * store-motion.c: Remove TODO_dump_func.
17244 * cfgexpand.c: Remove TODO_dump_func.
17245 * tree-cfgcleanup.c: Remove TODO_dump_func.
17246 * cfgcleanup.c: Remove TODO_dump_func.
17247 * tree-ssa-pre.c: Remove TODO_dump_func.
17248 * tree-sra.c: Remove TODO_dump_func.
17249 * tree-mudflap.c: Remove TODO_dump_func.
17250 * tree-ssa-copy.c: Remove TODO_dump_func.
17251 * cfglayout.c: Remove TODO_dump_func.
17252 * tree-ssa-forwprop.c: Remove TODO_dump_func.
17253 * tree-ssa-dce.c: Remove TODO_dump_func.
17254 * ira.c: Remove TODO_dump_func.
17255 * tree-ssa.c: Remove TODO_dump_func.
17256 * integrate.c: Remove TODO_dump_func.
17257 * tree-optimize.c: Remove TODO_dump_func.
17258 * tree-ssa-phiprop.c: Remove TODO_dump_func.
17259 * tree-object-size.c: Remove TODO_dump_func.
17260 * combine.c: Remove TODO_dump_func.
17261 * bb-reorder.c: Remove TODO_dump_func.
17262 * cprop.c: Remove TODO_dump_func.
17263 * var-tracking.c: Remove TODO_dump_func.
17264 * tree-profile.c: Remove TODO_dump_func.
17265 * tree-vect-generic.c: Remove TODO_dump_func.
17266 * reg-stack.c: Remove TODO_dump_func.
17267 * sched-rgn.c: Remove TODO_dump_func.
17268 * tree-ssa-structalias.c: Remove TODO_dump_func.
17269 * tree-switch-conversion.c: Remove TODO_dump_func.
17270 * tree-cfg.c: Remove TODO_dump_func.
17271 * tree-ssa-reassoc.c: Remove TODO_dump_func.
17272 * combine-stack-adj.c: Remove TODO_dump_func.
17273 * dce.c: Remove TODO_dump_func.
17274 * tree-ssanames.c: Remove TODO_dump_func.
17275 * regcprop.c: Remove TODO_dump_func.
17276
17277 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
17278
17279 PR middle-end/47364
17280 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
17281 and properly handle result not in Pmode.
17282
17283 2011-06-14 Robert Millan <rmh@gnu.org>
17284
17285 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
17286 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
17287 `config/linux.h'.
17288
17289 * config/i386/kfreebsd-gnu64.h: New file.
17290 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
17291 with `i386/kfreebsd-gnu64.h'.
17292
17293 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
17294 (GNU_USER_LINK_EMULATION64): New macros.
17295 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
17296 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
17297 of hardcoding `elf_i386' and `elf_x86_64'.
17298
17299 2011-06-14 Nick Clifton <nickc@redhat.com>
17300
17301 PR target/49403
17302 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
17303
17304 PR target/49402
17305 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
17306
17307 2011-06-14 Jakub Jelinek <jakub@redhat.com>
17308
17309 PR fortran/49103
17310 * tree.h (DECL_NONSHAREABLE): Define.
17311 (struct tree_decl_common): Change decl_common_unused to
17312 decl_nonshareable_flag.
17313 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
17314 Ignore vars with DECL_NONSHAREABLE bit set.
17315 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
17316 on stores to automatic aggregate vars.
17317
17318 PR rtl-optimization/49390
17319 Revert:
17320 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17321
17322 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17323 MEM_ALIAS_SET.
17324
17325 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
17326 Tom de Vries <tom@codesourcery.com>
17327
17328 PR target/45098
17329 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
17330 Document changed semantics.
17331 (max_stmt_executions, max_stmt_executions_int): Declare.
17332 * tree-data-ref.c (estimated_loop_iterations)
17333 (estimated_loop_iterations_int): Move functions...
17334 * tree-ssa-loop-niter.c (estimated_loop_iterations)
17335 (estimated_loop_iterations_int): here.
17336 (record_estimate): Change nb_iterations_upper_bound and
17337 nb_iterations_estimate semantics.
17338 (max_stmt_executions, max_stmt_executions_int): New function.
17339 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
17340 (max_stmt_executions_tree): this.
17341 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
17342 estimated_loop_iterations_tree.
17343 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
17344 max_stmt_executions_int instead of estimated_loop_iterations_int.
17345 * predict.c (predict_loops): Idem.
17346 * tree-parloops.c (parallelize_loops): Idem.
17347 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
17348 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
17349 (init_omega_for_ddr_1): Idem.
17350 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
17351 (loop_prefetch_arrays): Idem
17352 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
17353 max_stmt_executions instead of estimated_loop_iterations.
17354 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
17355 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
17356 instead of nb_iterations_upper_bound.
17357
17358 2011-06-13 Jan Hubicka <jh@suse.cz>
17359
17360 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
17361
17362 2011-06-14 Richard Henderson <rth@redhat.com>
17363
17364 PR debug/48459
17365 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
17366 (based_loc_descr): Assert it's true.
17367 (compute_frame_pointer_to_fb_displacement): Set it, rather than
17368 aborting immediately.
17369
17370 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
17371 Mingfeng Wu <mingfeng@faraday-tech.com>
17372
17373 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
17374
17375 2011-06-13 Jan Hubicka <jh@suse.cz>
17376
17377 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
17378
17379 2011-06-13 Jan Hubicka <jh@suse.cz>
17380
17381 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
17382 similarly to DECL_COMDAT.
17383 * cgraphunit.c (cgraph_analyze_function): Likewise.
17384 * ipa.c (function_and_variable_visibility): Likewise.
17385
17386 2011-06-13 Jan Hubicka <jh@suse.cz>
17387
17388 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
17389 BINFO_VIRTUALS when streaming for ltrans unit.
17390
17391 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
17392
17393 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
17394 (movdi_internal64): Same.
17395
17396 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
17397
17398 PR target/44618
17399 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
17400 a set of similar patterns, where the MATCH_OPERAND for the function
17401 argument is replaced with individual references to hardware registers.
17402 (save_fpregs_<mode>): Ditto
17403 (restore_gpregs_<mode>): Ditto
17404 (return_and_restore_gpregs_<mode>): Ditto
17405 (return_and_restore_fpregs_<mode>): Ditto
17406 (return_and_restore_fpregs_aix_<mode>): Ditto
17407
17408 2011-06-13 Jan Hubicka <jh@suse.cz>
17409
17410 * ipa-utils.c (postorder_stack): New structure.
17411 (ipa_reverse_postorder): Handle aliases.
17412
17413 2011-06-13 Jan Hubicka <jh@suse.cz>
17414
17415 * ipa-inline.c (reset_edge_caches): Walk aliases.
17416 (update_caller_keys): Do not test inlinability of aliases.
17417 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
17418 (do_estimate_growth): Fix typo.
17419
17420 2011-06-13 Jan Hubicka <jh@suse.cz>
17421
17422 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
17423 (can_remove_node_now_p): ... here; handle same comdat groups.
17424 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
17425 (inline_call): Update use of can_remove_node_now_p.
17426
17427 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17428
17429 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
17430 condition to disallow non-identical memory locations.
17431 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
17432 preference to bit manipulation instructions.
17433
17434 2011-06-13 Jan Hubicka <jh@suse.cz>
17435
17436 * cgraph.c (cgraph_for_node_thunks_and_aliases,
17437 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
17438 (nonremovable_p): New function.
17439 (cgraph_can_remove_if_no_direct_calls_p): New function.
17440 (used_from_object_file_p): New functoin.
17441 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
17442 references from aliases.
17443 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
17444 * ipa-inline.c (check_caller_edge): New function.
17445 (want_inline_function_called_once_p): Use it; accept aliases called
17446 once, too.
17447 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
17448
17449 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17450
17451 PR target/48454
17452 * config/arm/neon.md (vec_pack_trunc): Set the lengths
17453 correctly for the case with Quad vectors.
17454
17455 2011-06-13 Jakub Jelinek <jakub@redhat.com>
17456 Ira Rosen <ira.rosen@linaro.org>
17457
17458 PR tree-optimization/49352
17459 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
17460 all, make sure loop_use_stmt after the loop is a def stmt of a used
17461 SSA_NAME that is the only one defined inside of the loop. Don't
17462 check for COND_EXPR and GIMPLE_BINARY_RHS.
17463 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
17464 check_reduction is true.
17465
17466 2011-06-11 Jan Hubicka <jh@suse.cz>
17467
17468 PR middle-end/49373
17469 * ipa.c (cgraph_externally_visible_p): Check resolution info.
17470
17471 2011-06-11 Jan Hubicka <jh@suse.cz>
17472
17473 PR middle-end/48836
17474 * ipa-inline-transform.c: Include tree-pass.h
17475 (inline_transform): Set TODO_update_ssa_only_virtuals.
17476 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
17477
17478 2011-06-11 Jan Hubicka <jh@suse.cz>
17479
17480 PR middle-end/49378
17481 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
17482 aliases and thunks.
17483
17484 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
17485
17486 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
17487 Take number of iterations to peel into account for equally frequent
17488 misalignment values.
17489
17490 2011-06-11 Jan Hubicka <jh@suse.cz>
17491
17492 * lto-streamer-out.c (produce_symtab): Stream out the newly
17493 represented aliases.
17494
17495 2011-06-11 Jan Hubicka <jh@suse.cz>
17496
17497 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
17498 varying args.
17499 (ipa_update_after_lto_read): Likewise.
17500 (ipa_write_node_info): Do not sream call_with_var_arguments.
17501 (ipa_read_node_info): Likewise.
17502
17503 2011-06-11 Jan Hubicka <jh@suse.cz>
17504
17505 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
17506
17507 2011-06-11 Jan Hubicka <jh@suse.cz>
17508
17509 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
17510 (lto_symtab_resolve_can_prevail_p): Likewise.
17511 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
17512 * cgraph.c (same_body_aliases_done): New global var.
17513 (cgraph_same_body_alias_1): Rename to ...
17514 (cgraph_create_function_alias): ... this one; reorg to new
17515 representation.
17516 (cgraph_same_body_alias): Use cgraph_create_function_alias;
17517 record references when asked to.
17518 (cgraph_add_thunk): Fix formating.
17519 (cgraph_get_node): Kill same body alias code.
17520 (cgraph_node_for_asm): Likewise.
17521 (cgraph_remove_same_body_alias): Remove.
17522 (cgraph_remove_node): Kill same body alias code.
17523 (cgraph_mark_address_taken_node): Mark also the aliased function
17524 as having address taken.
17525 (dump_cgraph_node): Dump same body aliases.
17526 (cgraph_for_node_thunks_and_aliases): Update for new alias
17527 representation.
17528 (cgraph_for_node_and_aliases): Likewise.
17529 * cgraph.h (same_body): Kll pointer.
17530 (same_body_alias): Update comment.
17531 (same_body_aliases_done): Declare.
17532 (cgraph_remove_same_body_alias): Remove declaration.
17533 (cgraph_create_function_alias): Declare.
17534 (cgraph_process_same_body_aliases): Declare.
17535 (cgraph_function_with_gimple_body_p): Check for alias.
17536 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
17537 (cgraph_alias_aliased_node): New function.
17538 (cgraph_function_node): Update for new aliases.
17539 (cgraph_function_or_thunk_node): Likewise.
17540 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
17541 (inline_call): Remove dead aliases.
17542 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
17543 name hack for same body aliases.
17544 (clone_of_p): Look through aliases.
17545 (verify_cgraph_node): Verify aliases.
17546 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
17547 (cgraph_process_same_body_aliases): New function.
17548 (process_function_and_variable_attributes): Disable weakref warning on
17549 alias.
17550 (cgraph_analyze_functions): Handle aliases.
17551 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
17552 (assemble_thunks): Rename to ...
17553 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
17554 (cgraph_expand_function): Remove alias output code.
17555 (cgraph_output_in_order): Skip aliases.
17556 (cgraph_preserve_function_body_p): Aliases don't need preserving.
17557 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
17558 (ipa_record_reference): Do not assert on alias references.
17559 (ipa_ref_has_aliases_p): New function.
17560 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
17561 (ipa_ref_has_aliases_p): Declare.
17562 * lto-cgraph.c (lto_output_node): Handle aliases.
17563 (input_node): Likewise.
17564 * lto-streamer-out.c (lto_output): Skip aliases.
17565 (produce_symtab): Kill same_body_alias code.
17566 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
17567 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
17568 * ipa-inline.c (update_caller_keys): Walk aliases.
17569 (inline_small_functions): Fix thinko in previous patch.
17570 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
17571 (function_and_variable_visibility): Do not walk same body aliases.
17572 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
17573 (ipa_pta_execute): Use it.
17574
17575 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
17576
17577 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
17578 (*vec_dupv2df): Rename from vec_dupv2df.
17579 (vec_dupv2df): New expander.
17580
17581 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
17582
17583 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
17584
17585 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
17586
17587 * config/i386/i386.md: Use default value in "isa" attribute.
17588 * config/i386/sse.md: Ditto.
17589 * config/i386/mmx.md: Ditto.
17590
17591 2011-06-10 Wei Guozhi <carrot@google.com>
17592
17593 PR target/45335
17594 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
17595 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
17596 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
17597 related peephole2.
17598 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
17599 related peephole2.
17600 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
17601 (arm_legitimate_ldrd_p): New prototype.
17602 (arm_output_ldrd): New prototype.
17603 * config/arm/arm.c (arm_check_ldrd_operands): New function.
17604 (arm_legitimate_ldrd_p): New function.
17605 (arm_output_ldrd): New function.
17606
17607 2011-06-10 David Li <davidxl@google.com>
17608
17609 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
17610 * passes.c (passr_eq): New function.
17611 (create_pass_tab): New function.
17612 (pass_traverse): New function.
17613 (dump_one_pass): New function.
17614 (dump_pass_list): New function.
17615 (dump_passes): New function.
17616
17617 2011-06-10 Jan Hubicka <jh@suse.cz>
17618
17619 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
17620 setting the nothrow flag.
17621 * ipa-reference.c (propagate): Skip aliases.
17622 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
17623 (propagate_nothrow): Skip aliases; do not update cgraph.
17624 (local_pure_const): Do not update cgraph.
17625 * tree-profile.c (tree_profiling): Do fixup_cfg.
17626
17627 2011-06-10 Jan Hubicka <jh@suse.cz>
17628
17629 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
17630 (cgraph_local_node_p): ... here; handle aliases.
17631 (has_addr_references_p): Break out from ...;
17632 (cgraph_remove_unreachable_nodes) ... here.
17633
17634 2011-06-10 Jan Hubicka <jh@suse.cz>
17635
17636 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
17637 * common.opt (flag_inline_functions_called_once): Do not
17638 initialize to 1.
17639
17640 2011-06-10 Jan Hubicka <jh@suse.cz>
17641
17642 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
17643 (ipcp_initialize_node_lattices): Do not deal with aliases;
17644 Do not try to propagate through thunks.
17645 (ipcp_change_tops_to_bottom): Do not deal with aliases.
17646
17647 2011-06-10 Jan Hubicka <jh@suse.cz>
17648
17649 * ipa-prop.c (ipa_write_node_info): Stream jump functions
17650 for indirect calls.
17651 (ipa_read_node_info): Likewise.
17652
17653 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17654
17655 PR lto/49302
17656 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
17657 (build_and_insert_call): Likewise.
17658 (build_and_insert_ref): New.
17659 (gimple_expand_builtin_pow): Minor cleanup.
17660 (gimple_expand_builtin_cabs): New.
17661 (execute_cse_sincos): Add case for BUILT_IN_CABS.
17662
17663 2011-06-10 Jan Hubicka <jh@suse.cz>
17664
17665 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
17666 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
17667 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
17668 (ipcp_propagate_stage): Skip aliases when propagating.
17669 (ipcp_need_redirect_p): Skip aliases.
17670 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
17671 collect_callers_of_node.
17672 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
17673 for aliases.
17674 (ipa_compute_jump_functions): Look through aliases.
17675
17676 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17677
17678 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
17679
17680 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
17681
17682 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
17683 Adjust comments.
17684 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
17685
17686 2011-06-10 Jan Hubicka <jh@suse.cz>
17687
17688 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
17689 Update call of gimple_get_virt_method_for_binfo.
17690 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
17691 refuse_thunks parameter.
17692 (gimple_fold_call): Update.
17693 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
17694
17695 2011-06-10 Jan Hubicka <jh@suse.cz>
17696
17697 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
17698 (not_all_callers_have_enough_arguments_p): ... this one; turn into
17699 worker for cgraph_for_node_and_aliases.
17700 (convert_callers_for_node): Break out from ...
17701 (convert_callers): ... here.
17702 (modify_function): Use collect_callers_of_node.
17703 (ipa_early_sra): Use cgraph_for_node_and_aliases.
17704
17705 2011-06-10 Richard Guenther <rguenther@suse.de>
17706
17707 PR tree-optimization/49361
17708 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
17709 when not already in gimple form.
17710
17711 2011-06-10 Richard Guenther <rguenther@suse.de>
17712
17713 PR bootstrap/49344
17714 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
17715 FOR_EACH_PHI_OR_STMT_USE.
17716
17717 2011-06-10 Jan Hubicka <jh@suse.cz>
17718
17719 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
17720 (clone_inlined_nodes): ... here.
17721 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
17722 to real destination prior inlining.
17723 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
17724 can_early_inline_edge_p, want_early_inline_function_p,
17725 want_early_inline_function_p, want_inline_small_function_p,
17726 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
17727 edge_badness, update_all_callee_keys, lookup_recursive_calls,
17728 add_new_edges_to_heap, inline_small_functions, flatten_function,
17729 inline_always_inline_functions, early_inline_small_functions): Use
17730 cgraph_function_or_thunk_node.
17731 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
17732 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
17733 (do_estimate_edge_growth_1): Break out from ...
17734 (do_estimate_growth) ... here; walk aliases.
17735 (inline_generate_summary): Skip aliases.
17736
17737 2011-06-10 Richard Guenther <rguenther@suse.de>
17738
17739 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
17740 forward when combining, visit inserted stmts when a stmt was changed.
17741
17742 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
17743
17744 * tree.h (error_operand_p): Add.
17745 * dbxout.c (dbxout_type_fields): Use the latter.
17746 * c-decl.c (add_stmt): Likewise.
17747 * gimplify.c (omp_add_variable, omp_notice_variable,
17748 gimplify_scan_omp_clauses): Likewise.
17749
17750 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
17751
17752 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
17753 when a value is actually passed in regs.
17754
17755 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
17756 Laurent Rougé <laurent.rouge@menta.fr>
17757
17758 * doc/invoke.texi (SPARC options): Add -mflat.
17759 * config/sparc/sparc.opt: Likewise.
17760 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
17761 (sparc_flat_expand_prologue): Declare.
17762 (sparc_flat_expand_epilogue): Likewise.
17763 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
17764 (CPP_ENDIAN_SPEC): Replace with...
17765 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
17766 (CPP_SPEC): Adjust to above change.
17767 (EXTRA_SPECS): Likewise.
17768 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
17769 (INCOMING_REGNO): Likewise.
17770 (OUTGOING_REGNO): Likewise.
17771 (LOCAL_REGNO): Likewise.
17772 (SETUP_FRAME_ADDRESSES): Likewise.
17773 (FIXED_REGISTERS): Set 0 for %fp.
17774 (CALL_USED_REGISTERS): Likewise.
17775 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
17776 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
17777 (RETURN_ADDR_REGNUM): Define.
17778 (RETURN_ADDR_RTX): Use it.
17779 (INCOMING_RETURN_ADDR_REGNUM): Define.
17780 (INCOMING_RETURN_ADDR_RTX): Use it.
17781 (DWARF_FRAME_RETURN_COLUMN): Likewise.
17782 (EH_RETURN_REGNUM): Define.
17783 (EH_RETURN_STACKADJ_RTX): Use it.
17784 (EH_RETURN_HANDLER_RTX): Delete.
17785 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
17786 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
17787 Delete.
17788 (struct machine_function): Add frame_size, apparent_frame_size,
17789 frame_base_reg, frame_base_offset, n_global_fp_regs and
17790 save_local_in_regs_p fields.
17791 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
17792 sparc_frame_base_offset, sparc_n_global_fp_regs,
17793 sparc_save_local_in_regs_p): New macros.
17794 (sparc_option_override): Error out if -fcall-saved-REG is specified
17795 for Out registers.
17796 (eligible_for_restore_insn): Fix formatting.
17797 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
17798 (eligible_for_sibcall_delay): Likewise.
17799 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
17800 (sparc_legitimate_address_p): Adjust to above change.
17801 (save_global_or_fp_reg_p): New predicate.
17802 (return_addr_reg_needed_p): Likewise.
17803 (save_local_or_in_reg_p): Likewise.
17804 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
17805 (SORR_SAVE, SORR_RESTORE): Delete.
17806 (sorr_pred_t): New typedef.
17807 (sorr_act_t): New enum.
17808 (save_or_restore_regs): Rename to...
17809 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
17810 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
17811 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
17812 mechanism. Add CFI information for double-word saves in 32-bit mode.
17813 (emit_adjust_base_to_offset): New function extracted from...
17814 (emit_save_or_restore_regs): ...this. Rename the rest to...
17815 (emit_save_or_restore_regs_global_fp_regs): ...this.
17816 (emit_save_or_restore_regs_local_in_regs): New function.
17817 (gen_create_flat_frame_[123]): New functions.
17818 (sparc_expand_prologue): Use SIZE local variable. Adjust.
17819 (sparc_flat_expand_prologue): New function.
17820 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
17821 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
17822 (sparc_flat_expand_epilogue): New function.
17823 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
17824 (output_return): Likewise.
17825 (output_sibcall): Likewise.
17826 (sparc_output_mi_thunk): Likewise.
17827 (sparc_frame_pointer_required): Likewise.
17828 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
17829 function optimization.
17830 * config/sparc/sparc.md (flat): New attribute.
17831 (prologue): Add TARGET_FLAT handling.
17832 (save_register_window): Disable if TARGET_FLAT.
17833 (create_flat_frame_[123]): New patterns.
17834 (epilogue): Add TARGET_FLAT handling.
17835 (sibcall_epilogue): Likewise.
17836 (eh_return): New expander.
17837 (eh_return_internal): New insn and splitter.
17838 (return_internal): Add TARGET_FLAT handling.
17839 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
17840 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
17841 (nonlocal_goto): Add TARGET_FLAT handling.
17842 * config/sparc/t-elf: Add -mflat multilib.
17843 * config/sparc/t-leon: Likewise.
17844
17845 2011-06-10 Jan Hubicka <jh@suse.cz>
17846
17847 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
17848 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
17849 (self_recursive_p): Use cgraph_function_node.
17850 (propagate_pure_const): Likewise.
17851 (propagate_nothrow): Likewise.
17852 * ipa-reference.c (ipa_reference_get_not_read_global): Use
17853 cgraph_function_node.
17854 (propagate_bits): Likewise.
17855 (propagate): Likewise.
17856
17857 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17858 Richard Earnshaw <rearnsha@arm.com>
17859
17860 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
17861 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
17862 (*thumb2_movdi_vfp): Delete.
17863 (*arm_movdi_vfp_cortexa8): Delete.
17864 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
17865 (*movdi_vfp_cortexa8): Likewise.
17866
17867 2011-06-10 Richard Guenther <rguenther@suse.de>
17868
17869 * stor-layout.c (initialize_sizetypes): Give names to all
17870 sizetype kinds.
17871
17872 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
17873
17874 PR tree-optimization/49318
17875 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
17876 irrelevant pattern statements.
17877
17878 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
17879
17880 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
17881
17882 PR bootstrap/49354
17883 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
17884 to last assignment.
17885
17886 2011-06-09 Jan Hubicka <jh@suse.cz>
17887
17888 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
17889 do not recompute reachable flag.
17890 (cgraph_finalize_function, cgraph_analyze_functions): Set
17891 redefined_extern_inline here.
17892
17893 2011-06-09 Jan Hubicka <jh@suse.cz>
17894
17895 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
17896 (cgraph_only_called_directly_p): ... this one; bring offline.
17897 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
17898 varpool_used_from_object_file_p): Drop names from the declaratoin.
17899 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
17900 collect_callers_of_node): New.
17901 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
17902 (cgraph_edge_recursive_p): Use cgraph_function_node.
17903 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
17904 (cgraph_node_cannot_be_local_p_1): Break out from ...
17905 (cgraph_node_can_be_local_p): ... here; walk aliases.
17906 (cgraph_for_node_thunks_and_aliases): New function.
17907 (cgraph_for_node_and_aliases): New function.
17908 (cgraph_make_node_local_1): Break out from ...
17909 (cgraph_make_node_local) ... here; use
17910 cgraph_for_node_thunks_and_aliases.
17911 (cgraph_set_nothrow_flag_1): Break out from ...
17912 (cgraph_set_nothrow_flag) ... here;
17913 use cgraph_for_node_thunks_and_aliases.
17914 (cgraph_set_const_flag_1): Break out from ...
17915 (cgraph_set_const_flag) ... here;
17916 use cgraph_for_node_thunks_and_aliases.
17917 (cgraph_set_pure_flag_1): Break out from ...
17918 (cgraph_set_pure_flag) ... here;
17919 use cgraph_for_node_thunks_and_aliases.
17920 (cgraph_propagate_frequency_1): Break out from ...
17921 (cgraph_propagate_frequency) ... here; use
17922 cgraph_for_node_thunks_and_aliases.
17923 (cgraph_used_from_object_file_p): Do not care about aliases.
17924 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
17925 New functions.
17926 (collect_callers_of_node_1, collect_callers_of_node): New functions.
17927
17928 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
17929
17930 PR rtl-optimization/49154
17931 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
17932 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
17933 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
17934 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
17935 * config/cris/cris.h (cris_register_move_cost): Remove
17936 !TARGET_V32 code. Tweak comments.
17937
17938 2011-06-09 Jan Hubicka <jh@suse.cz>
17939
17940 * cgraphbuild.c (record_eh_tables): Mark personality function as having
17941 address taken.
17942
17943 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
17944
17945 PR rtl-optimization/49154
17946 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
17947 is a matching slot in the hashtable, assign it to classes_ptr.
17948
17949 PR rtl-optimization/49154
17950 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
17951 register classes.
17952 * doc/tm.texi: Regenerate.
17953
17954 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
17955
17956 PR target/49307
17957 * config/sh/sh.md (UNSPEC_CHKADD): New.
17958 (chk_guard_add): New define_insn_and_split.
17959 (symGOT_load): Use chk_guard_add instead of blockage.
17960
17961 2011-06-09 Kai Tietz <ktietz@redhat.com>
17962
17963 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
17964
17965 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
17966
17967 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
17968
17969 2011-06-09 Wei Guozhi <carrot@google.com>
17970
17971 PR target/46975
17972 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
17973 (peephole2 for conditional move): Generate 16 bit instructions.
17974
17975 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
17976
17977 * config/i386/i386.md (*movdi_internal_rex64): Merge
17978 alternatives 6 and 8.
17979
17980 2011-06-09 David Li <davidxl@google.com>
17981
17982 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
17983 * passes.c (passr_eq): New function.
17984 (create_pass_tab): New function.
17985 (pass_traverse): New function.
17986 (dump_one_pass): New function.
17987 (dump_pass_list): New function.
17988 (dump_passes): New function.
17989
17990 2011-06-09 David Li <davidxl@google.com>
17991
17992 * tree-complex.c (tree_lower_complex): Gate cleanup.
17993 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
17994 (execute_optimize_stdarg): Ditto.
17995 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
17996 (execute_cleanup_eh_1): Ditto.
17997 (execute_cleanup_eh): Ditto.
17998 * gcse.c (gate_rtl_pre): Ditto.
17999 (execute_rtl_pre): Ditto.
18000 * except.c (finish_eh_generation): Ditto.
18001 (convert_to_eh_region_ranges): Ditto.
18002 * cprop.c (one_cprop_pass): Ditto.
18003
18004 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
18005
18006 PR target/48673
18007 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
18008 in all basic blocks.
18009
18010 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18011
18012 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
18013 (HAVE_ENABLE_EXECUTE_STACK): Define.
18014 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
18015 (HAVE_ENABLE_EXECUTE_STACK): Define.
18016 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
18017 (HAVE_ENABLE_EXECUTE_STACK): Define.
18018 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
18019 (ENABLE_EXECUTE_STACK): Remove.
18020 (HAVE_ENABLE_EXECUTE_STACK): Define.
18021 [IN_LIBGCC2]: Don't include <windows.h>.
18022 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18023 (HAVE_ENABLE_EXECUTE_STACK): Define.
18024 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
18025 (HAVE_ENABLE_EXECUTE_STACK): Define.
18026 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
18027 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
18028 (HAVE_ENABLE_EXECUTE_STACK): Define.
18029 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
18030 (HAVE_ENABLE_EXECUTE_STACK): Define.
18031 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
18032 (HAVE_ENABLE_EXECUTE_STACK): Define.
18033 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
18034 (HAVE_ENABLE_EXECUTE_STACK): Define.
18035 * config/alpha/alpha.c (alpha_trampoline_init): Test
18036 HAVE_ENABLE_EXECUTE_STACK.
18037 * config/i386/i386.c (ix86_trampoline_init): Likewise.
18038 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18039 (sparc64_initialize_trampoline): Likewise.
18040 * libgcc2.c [L_enable_execute_stack]: Remove.
18041 * system.h (ENABLE_EXECUTE_STACK): Poison.
18042 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
18043 * doc/tm.texi: Regenerate.
18044 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
18045
18046 2011-06-09 Jakub Jelinek <jakub@redhat.com>
18047
18048 PR middle-end/49308
18049 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
18050 variable. After resetting and rescanning insn continue with previous
18051 statement.
18052
18053 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18054
18055 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
18056 (gcc_cv_ld_hidden): Likewise.
18057 * configure: Regenerate.
18058 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
18059 (ix86_stack_protect_fail): Mark unused.
18060 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
18061 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
18062 [TARGET_MACHO]: Don't define.
18063 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
18064 (TARGET_STACK_PROTECT_FAIL): Likewise.
18065 (rs6000_stack_protect_fail): Mark unused.
18066 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
18067 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
18068
18069 2011-06-08 Andi Kleen <ak@linux.intel.com>
18070
18071 * varasm.c (get_section): Print location of other conflict
18072 for section conflicts.
18073
18074 2011-06-08 Andi Kleen <ak@linux.intel.com>
18075
18076 * config/i386/driver-i386.c (host_detect_local_cpu):
18077 Add model 0x2d Intel CPU.
18078
18079 2011-06-08 Andi Kleen <ak@linux.intel.com>
18080
18081 * reginfo.c (global_regs_decl): Add.
18082 (globalize_reg): Add decl parameter. Compute location. Pass location
18083 to warnings and add inform. Store decl in global_regs_decl.
18084 * rtl.h (globalize_reg): Update prototype.
18085 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
18086
18087 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
18088
18089 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
18090
18091 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
18092
18093 PR target/49305
18094 * config/sh/predicates.md (general_movsrc_operand): Check
18095 mode for memory with indexed address for QI and HImode.
18096 (general_movdst_operand): Likewise.
18097
18098 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
18099
18100 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
18101
18102 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
18103
18104 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
18105 (num_ssa_operands): Likewise.
18106 (op_iter_init_phiuse): Forward-declare.
18107 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
18108
18109 2011-06-08 Nick Clifton <nickc@redhat.com>
18110
18111 * doc/invoke.texi (ARM Options): Update description of
18112 -mthumb-interwork.
18113
18114 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
18115
18116 * config/i386/driver-i386.c (host_detect_local_cpu): Support
18117 unknown Intel family 0x6 CPUs.
18118
18119 2011-06-08 Martin Jambor <mjambor@suse.cz>
18120
18121 * tree-sra.c (mark_rw_status): Removed.
18122 (analyze_access_subtree): New parameter parent instead of
18123 mark_read and mark_write, propagate from that.
18124
18125 2011-06-08 Julian Brown <julian@codesourcery.com>
18126
18127 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18128 for double-precision helper functions in hard-float mode if only
18129 single-precision arithmetic is supported in hardware.
18130
18131 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
18132
18133 PR rtl-optimization/49303
18134 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
18135 code_motion_path_driver returned 0 or 1.
18136 (sel_region_finish): Clear h_d_i_d.
18137
18138 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
18139
18140 * config/sh/sh.c (prepare_move_operands): Set pic register
18141 appropriately for global and local dynamic tls models even
18142 if flag_pic is unset.
18143
18144 2011-06-07 Jason Merrill <jason@redhat.com>
18145
18146 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
18147
18148 2011-06-07 Xinliang David Li <davidxl@google.com>
18149 * passes.c (enable_disable_pass): Handle assembler name.
18150 (is_pass_explicitly_enabled_or_disabled): Ditto.
18151
18152 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18153
18154 PR tree-optimization/48497
18155 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
18156
18157 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18158
18159 PR tree-optimization/46728
18160 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
18161 to use gimple_val_nonnegative_real_p.
18162 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
18163 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
18164
18165 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
18166
18167 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
18168
18169 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
18170
18171 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
18172 constant vectors.
18173
18174 2011-06-07 Richard Guenther <rguenther@suse.de>
18175
18176 * stor-layout.c (initialize_sizetypes): Initialize all
18177 sizetypes based on target definitions.
18178 (set_sizetype): Remove.
18179 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
18180 * tree.h (set_sizetype): Remove.
18181
18182 2011-06-07 Nick Clifton <nickc@redhat.com>
18183
18184 * config.gcc: Unify V850 architecture options and add support for
18185 newer V850 architectures.
18186 * config/v850/t-v850e: Delete.
18187
18188 2011-06-07 Richard Guenther <rguenther@suse.de>
18189
18190 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
18191 Call set_sizetype from here.
18192
18193 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
18194
18195 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
18196 (*maddhisi4tb, *maddhisi4tt): New define_insns.
18197
18198 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
18199 Andrew Stubbs <ams@codesourcery.com>
18200
18201 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
18202 multiplies.
18203 * doc/md.texi (Canonicalization of Instructions): Document widening
18204 multiply canonicalization.
18205
18206 2011-06-07 Jakub Jelinek <jakub@redhat.com>
18207
18208 PR gcov-profile/49299
18209 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
18210
18211 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
18212
18213 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
18214 a pointer.
18215 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
18216 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
18217 vect_recog_pow_pattern): Likewise.
18218 (vect_pattern_recog_1): Remove declaration.
18219 (widened_name_p): Remove declaration. Add new argument to specify
18220 whether to check that both types are either signed or unsigned.
18221 (vect_recog_widen_mult_pattern): Update documentation. Handle
18222 unsigned patterns and multiplication by constants.
18223 (vect_pattern_recog_1): Update vect_recog_func references. Use
18224 statement information from the statement returned from pattern
18225 detection functions.
18226 (vect_pattern_recog): Update vect_recog_func reference.
18227 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
18228 multiplication by a constant use the type of the other operand.
18229
18230 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
18231
18232 PR rtl-optimization/49145
18233 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
18234
18235 2011-06-06 Jakub Jelinek <jakub@redhat.com>
18236
18237 PR debug/49262
18238 * dwarf2out.c (native_encode_initializer): Decrement count in each
18239 iteration.
18240
18241 PR debug/49294
18242 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
18243 non-MODE_INT modes.
18244
18245 PR c++/49264
18246 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
18247 if stmt folded into nothing.
18248 * tree-inline.c (fold_marked_statements): If a builtin at the end of
18249 a bb folded into nothing, just update cgraph edges and move to next bb.
18250 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
18251 to be NULL. Don't compute count and frequency if new_call is NULL.
18252
18253 2011-06-04 Diego Novillo <dnovillo@google.com>
18254
18255 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
18256 (cgraph.o): Likewise.
18257 (cgraphunit.o): Likewise.
18258 * cgraphunit.c: Include lto-streamer.h
18259 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
18260 if LTO is enabled.
18261 * lto-streamer-in.c (unpack_value_fields): Call
18262 streamer_hooks.unpack_value_fields if set.
18263 (lto_materialize_tree): For unhandled nodes, first try to
18264 call lto_streamer_hooks.alloc_tree, if it exists.
18265 (lto_input_ts_decl_common_tree_pointers): Move reading of
18266 DECL_INITIAL to lto_streamer_read_tree.
18267 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
18268 (lto_streamer_read_tree): New.
18269 (lto_reader_init): Rename from lto_init_reader.
18270 Move initialization code to lto/lto.c.
18271 * lto-streamer-out.c (pack_value_fields): Call
18272 streamer_hooks.pack_value_fields if set.
18273 (lto_output_tree_ref): For tree nodes that are not normally indexable,
18274 call streamer_hooks.indexable_with_decls_p before giving up.
18275 (lto_output_ts_decl_common_tree_pointers): Move handling
18276 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
18277 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
18278 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
18279 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
18280 (lto_streamer_write_tree): New.
18281 (lto_output): Call lto_streamer_init directly.
18282 (lto_writer_init): Remove.
18283 * lto-streamer.c (streamer_hooks): New.
18284 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
18285 instead of lto_preload_common_nodes.
18286 (lto_is_streamable): Move from lto-streamer.h
18287 (lto_streamer_hooks_init): New.
18288 (streamer_hooks): New.
18289 (streamer_hooks_init): New.
18290 * lto-streamer.h (struct output_block): Forward declare.
18291 (struct lto_input_block): Likewise.
18292 (struct data_in): Likewise.
18293 (struct bitpack_d): Likewise.
18294 (struct streamer_hooks): Declare.
18295 (streamer_hooks): Declare.
18296 (lto_streamer_hooks_init): Declare.
18297 (lto_streamer_write_tree): Declare.
18298 (lto_streamer_read_tree): Declare.
18299 (streamer_hooks_init): Declare.
18300 (lto_is_streamable): Move to lto-streamer.c
18301
18302 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18303
18304 * longlong.h (smul_ppmm): The resulting register pair contains the
18305 higher order word first.
18306
18307 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18308
18309 PR tree-optimization/46728
18310 * builtins.c (powi_table): Remove.
18311 (powi_lookup_cost): Remove.
18312 (powi_cost): Remove.
18313 (expand_powi_1): Remove.
18314 (expand_powi): Remove.
18315 (expand_builtin_pow_root): Remove.
18316 (expand_builtin_pow): Remove.
18317 (expand_builtin_powi): Eliminate handling of constant exponent.
18318 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
18319
18320 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
18321
18322 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
18323
18324 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
18325
18326 * dce.c (reset_unmarked_insns_debug_uses): New.
18327 (delete_unmarked_insns): Skip debug insns.
18328 (prescan_insns_for_dce): Likewise.
18329 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
18330 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
18331 active reg can be found.
18332 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
18333 (convert_regs_1): Use it.
18334
18335 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
18336
18337 * tree-pretty-print.c (dump_function_header): Add flags.
18338 Don't dump decl_uid with nouid.
18339 * tree-pretty-print.h (dump_function_header): Adjust.
18340 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
18341 * passes.c (pass_init_dump_file): Pass dump_flags on.
18342 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
18343
18344 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
18345
18346 PR bootstrap/49270
18347 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
18348
18349 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
18350
18351 PR tree-optimization/49243
18352 * calls.c (setjmp_call_p): Also check if fndecl has the
18353 returns_twice attribute.
18354
18355 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18356
18357 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
18358 -ffast-math etc.
18359
18360 2011-06-06 Richard Henderson <rth@redhat.com>
18361 Georg-Johann Lay <avr@gjlay.de>
18362
18363 PR target/42210
18364 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
18365 New predicates.
18366 * config/avr/avr.md ("insv"): New insn expander.
18367 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
18368 "*insv.not.io", "*insv.reg"): New insns.
18369
18370 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
18371
18372 PR target/49285
18373 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
18374 to nonimmediate_operand from memory_operand for the operand that is to
18375 be forced to memory by the expander. Lose the constraints.
18376
18377 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
18378
18379 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
18380 EH return when delayed branches are disabled.
18381
18382 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
18383
18384 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
18385 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
18386 calculation.
18387 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
18388 Simplify MODE_V1DF and MODE_V2SF handling.
18389 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
18390 Simplify MODE_SF handling.
18391
18392 2011-06-04 Jan Hubicka <jh@suse.cz>
18393
18394 PR tree-optimization/48893
18395 PR tree-optimization/49091
18396 PR tree-optimization/49179
18397 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
18398 Bounds check.
18399
18400 2011-06-04 Jan Hubicka <jh@suse.cz>
18401
18402 PR lto/48954
18403 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
18404 bitmaps.
18405
18406 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
18407
18408 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
18409
18410 2011-06-04 Jakub Jelinek <jakub@redhat.com>
18411
18412 PR target/49281
18413 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
18414 to be strictly smaller than 1 << shiftcount.
18415
18416 2011-06-04 Jan Hubicka <jh@suse.cz>
18417
18418 PR tree-optimize/48929
18419 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
18420 of empty predicate.
18421
18422 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
18423
18424 PR debug/48333
18425 * calls.c (emit_call_1): Prefer the __builtin declaration of
18426 builtin functions.
18427
18428 2011-06-03 Diego Novillo <dnovillo@google.com>
18429
18430 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
18431 (lto_input_tree_pointers): Likewise.
18432 * lto-streamer-out.c (pack_value_fields): Likewise.
18433 (lto_output_tree_pointers): Likewise.
18434 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
18435 and OPTIMIZATION_NODE.
18436
18437 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18438
18439 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
18440 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
18441 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
18442 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
18443 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
18444 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
18445 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
18446 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
18447 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
18448 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
18449 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
18450 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
18451 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
18452 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
18453 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
18454 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
18455 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
18456 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
18457 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
18458 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
18459 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
18460 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
18461 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
18462 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
18463 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
18464 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
18465 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
18466 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
18467 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
18468 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
18469 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
18470 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
18471 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
18472 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
18473 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
18474 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
18475 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
18476 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
18477 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
18478 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
18479 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
18480 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
18481 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
18482 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
18483 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
18484 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
18485 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
18486 * system.h (MD_UNWIND_SUPPORT): Poison.
18487 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
18488 * doc/tm.texi: Regenerate.
18489 * unwind-dw2.c: Include md-unwind-support.h instead of
18490 MD_UNWIND_SUPPORT.
18491 * config/ia64/unwind-ia64.c: Likewise.
18492 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
18493
18494 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
18495
18496 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
18497
18498 2011-06-03 Richard Henderson <rth@redhat.com>
18499 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18500
18501 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
18502 (sigill_hdlr): Correct insn, insn size.
18503 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
18504
18505 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18506
18507 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
18508 t-slibgcc-dummy.
18509 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
18510 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
18511 * config/mips/t-iris: Remove.
18512 * config/mips/t-irix6: New file.
18513 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
18514
18515 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18516
18517 * Makefile.in (LIB2ADDEHDEP): Remove.
18518 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
18519 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
18520 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
18521 * config/t-darwin (LIB2ADDEHDEP): Remove.
18522 * config/t-freebsd (LIB2ADDEHDEP): Remove.
18523 * config/t-linux (LIB2ADDEHDEP): Remove.
18524
18525 2011-06-03 Diego Novillo <dnovillo@google.com>
18526
18527 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
18528 (lto_register_var_decl_in_symtab): Likewise.
18529 (lto_register_function_decl_in_symtab): Likewise.
18530 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
18531 logic to uniquify_nodes.
18532
18533 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18534
18535 * config/alpha/t-osf5: Remove.
18536 * config/alpha/t-osf-pthread: Remove.
18537 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
18538 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
18539
18540 2011-06-03 Julian Brown <julian@codesourcery.com>
18541
18542 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
18543 (strongarm1110): Use strongarm tuning.
18544 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
18545 * config/arm/arm.c (arm_strongarm_tune): New.
18546 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18547 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
18548 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
18549 setting, using previous defaults or 1 for Cortex-A5.
18550 (arm_option_override): Set max_insns_skipped from current tuning.
18551
18552 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
18553
18554 * doc/install.texi (Options specification): Document --with-specs.
18555
18556 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18557
18558 * config/arm/neon.md (orndi3_neon): Actually split it.
18559
18560 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
18561
18562 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
18563 * var-tracking.c (reverse_op): Limite recurse depth to 5.
18564
18565 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
18566
18567 PR debug/47590
18568 * target.def (delay_sched2, delay_vartrack): New.
18569 * doc/tm.texi.in: Update.
18570 * doc/tm.texi: Rebuild.
18571 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
18572 * var-tracking.c (gate_handle_var_tracking): Likewise.
18573 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
18574 (bfin_flag_var_tracking): Drop.
18575 (output_file_start): Don't save and override flag_var_tracking.
18576 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
18577 (bfin_reorg): Test original variables.
18578 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18579 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
18580 (ia64_flag_var_tracking): Drop.
18581 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18582 (ia64_file_start): Don't save and override flag_var_tracking.
18583 (ia64_override_options_after_change): Ditto
18584 flag_schedule_insns_after_reload.
18585 (ia64_reorg): Test original variables.
18586 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
18587 (picochip_flag_var_tracking): Drop.
18588 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18589 (picochip_option_override): Don't save and override
18590 flag_schedule_insns_after_reload.
18591 (picochip_asm_file_start): Ditto flag_var_tracking.
18592 (picochip_reorg): Test original variables.
18593 * config/spu/spu.c (spu_flag_var_tracking): Drop.
18594 (TARGET_DELAY_VARTRACK): Define.
18595 (spu_var_tracking): New.
18596 (spu_machine_dependent_reorg): Call it.
18597 (asm_file_start): Don't save and override flag_var_tracking.
18598
18599 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
18600
18601 PR target/49163
18602 * config/sh/predicates.md (general_movsrc_operand): Return 0
18603 for memory and memory subreg of which address is an invalid
18604 indexed address for QI and HImode.
18605 (general_movdst_operand): Likewise.
18606
18607 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
18608
18609 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
18610 edges only, when there is a non-local label in the function.
18611 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
18612
18613 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
18614
18615 * config/i386/constraints.md (Y3): New register constraint.
18616 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
18617 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
18618 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
18619 *sse2_interleave_lowv2df.
18620
18621 2011-06-02 Julian Brown <julian@codesourcery.com>
18622
18623 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
18624 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
18625 (arm_cortex_a5_tune): New.
18626
18627 2011-06-02 Julian Brown <julian@codesourcery.com>
18628
18629 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
18630 * config/arm/arm.c (arm_default_branch_cost): New.
18631 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
18632 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
18633 (arm_fa726_tune): Set branch_cost field using
18634 arm_default_branch_cost.
18635 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
18636 current_tune structure.
18637 * dojump.c (tm_p.h): Include file.
18638
18639 2011-06-02 Julian Brown <julian@codesourcery.com>
18640
18641 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
18642 tuning.
18643 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
18644 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
18645 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
18646 field.
18647 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
18648 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
18649 (arm_fa726te_tune): Add prefer_constant_pool setting.
18650 (arm_v6t2_tune, arm_cortex_tune): New.
18651 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
18652 prefer_constant_pool setting.
18653
18654 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
18655
18656 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
18657 switch statement.
18658 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
18659 (*movdf_internal) <case 6,7,8>: Ditto.
18660
18661 * config/i386/constraints.md (Y4): New register constraint.
18662 * config/i386/sse.md (vec_set<mode>_0): Merge with
18663 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
18664 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
18665 *vec_extractv2di_1_sse.
18666 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
18667 and *vec_concatv2di_rex64_sse.
18668
18669 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
18670
18671 PR target/48807
18672 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
18673 of cgraph_local_info for null before attempting to use it.
18674
18675 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
18676
18677 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
18678 (current_function_dynamic_alloc_count): Delete.
18679 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
18680 (expand_builtin_nonlocal_goto): Remove obsolete comment.
18681 (expand_builtin_update_setjmp_buf): Remove dead code.
18682 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
18683 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
18684 support.
18685 * function.c (instantiate_virtual_regs): Likewise.
18686 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
18687 for a block with a single abnormal incoming edge.
18688 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
18689 (SETJMP_VIA_SAVE_AREA): Delete.
18690 * config/sparc/sparc-protos.h (load_got_register): Declare.
18691 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
18692 (load_got_register): Make global.
18693 (sparc_frame_pointer_required): Add 'static'.
18694 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
18695 (sparc_builtin_setjmp_frame_value): New function.
18696 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
18697 (save_stack_nonlocal): New expander.
18698 (restore_stack_nonlocal): Likewise.
18699 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
18700 (nonlocal_goto_internal): New insn.
18701 (goto_handler_and_restore): Delete.
18702 (builtin_setjmp_setup): Likewise.
18703 (do_builtin_setjmp_setup): Likewise.
18704 (setjmp): Likewise.
18705 (builtin_setjmp_receiver): New expander.
18706
18707 2011-06-01 David Li <davidxl@google.com>
18708
18709 PR middle-end/49261
18710 * tree-pretty-print.c (dump_function_header): Format cleanup.
18711
18712 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
18713
18714 PR target/49238
18715 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
18716 needed when original operands are used for msw_skip comparison.
18717
18718 2011-06-01 Jakub Jelinek <jakub@redhat.com>
18719
18720 PR debug/49250
18721 * var-tracking.c (add_uses, add_stores): Don't call
18722 cselib_subst_to_values on ENTRY_VALUE.
18723
18724 2011-06-01 Diego Novillo <dnovillo@google.com>
18725
18726 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
18727 output_record_start with LTO_null instead of output_zero.
18728 (lto_output_ts_binfo_tree_pointers): Likewise.
18729 (lto_output_tree): Likewise.
18730 (output_eh_try_list): Likewise.
18731 (output_eh_region): Likewise.
18732 (output_eh_lp): Likewise.
18733 (output_eh_regions): Likewise.
18734 (output_bb): Likewise.
18735 (output_function): Likewise.
18736 (output_unreferenced_globals): Likewise.
18737 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
18738 instead of NUM_TREE_CODES.
18739 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
18740 (lto_output_int_in_range): Change << to >> when shifting VAL.
18741
18742 2011-06-01 Diego Novillo <dnovillo@google.com>
18743
18744 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
18745 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
18746
18747 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
18748
18749 PR target/45074
18750 * optabs.h (valid_multiword_target_p): Declare.
18751 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
18752 doing multi-word operations.
18753 * optabs.c (expand_binop): Likewise.
18754 (expand_doubleword_bswap): Likewise.
18755 (expand_absneg_bit): Likewise.
18756 (expand_unop): Likewise.
18757 (expand_copysign_bit): Likewise.
18758 (multiword_target_p): New function.
18759
18760 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
18761
18762 PR rtl-optimization/48830
18763 PR rtl-optimization/48808
18764 PR rtl-optimization/48792
18765 * reload.c (push_reload): Check contains_reg_of_mode.
18766 * reload1.c (strip_paradoxical_subreg): New function.
18767 (gen_reload_chain_without_interm_reg_p): Use it to handle
18768 paradoxical subregs.
18769 (emit_output_reload_insns, gen_reload): Likewise.
18770
18771 2011-06-01 David Li <davidxl@google.com>
18772
18773 * predict.c : Change pass name
18774 * ipa.c: Ditto.
18775 * dce.c: Ditto.
18776 * tree-profile.c: Ditto.
18777 * except.c: Ditto.
18778
18779 2011-06-01 David Li <davidxl@google.com>
18780
18781 * tree-pretty-print.c (dump_function_header): New function.
18782 * final.c (rest_of_clean_state): Use header dumper.
18783 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
18784 * passes.c (pass_init_dump_file): Use header dumper.
18785
18786 2011-06-01 Jakub Jelinek <jakub@redhat.com>
18787
18788 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
18789 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
18790 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
18791 New functions.
18792 (mem_loc_descriptor): Use them.
18793
18794 * var-tracking.c (create_entry_value): New function.
18795 (vt_add_function_parameter): Use it.
18796
18797 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18798
18799 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
18800 Include <signal.h>, <ucontext.h>.
18801 (sigill_caught): Define.
18802 (sigill_hdlr): New function.
18803 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
18804 insns can be executed.
18805 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
18806 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
18807
18808 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18809
18810 * config/t-slibgcc-darwin: Move to ...
18811 * config/t-slibgcc-dummy: ... this. Clarify comments.
18812 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
18813 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
18814 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
18815 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
18816 Remove i386/t-crtstuff from tmake_file.
18817 (i[34567]86-*-solaris2*): Remove t-svr4,
18818 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
18819 t-slibgcc-dummy.
18820 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
18821 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
18822 sparc/t-crtfm from tmake_file.
18823 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
18824 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
18825 Remove extra_parts.
18826 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
18827 * config/i386/t-nwld (SHLIB_LINK): Remove.
18828 * config/i386/t-rtems-i386: Rename to ...
18829 * config/i386/t-rtems: ... this.
18830 ($(T)crti.o, $(T)crtn.o): Remove.
18831 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
18832 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
18833 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
18834 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
18835 EXTRA_MULTILIB_PARTS): Remove.
18836 * config/sparc/t-sol2-64: Likewise.
18837 * config/sparc/t-sol2: Remove.
18838 * config/sparc/t-crtin: Remove.
18839 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
18840 * config/i386/gmon-sol2.c: Remove.
18841 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
18842 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
18843 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
18844 * config/i386/sol2-gc1.asm: Remove.
18845 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
18846 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
18847 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
18848 * config/t-slibgcc-sld: Remove.
18849
18850 2011-06-01 Jakub Jelinek <jakub@redhat.com>
18851
18852 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
18853 base_type_for_mode with op_mode instead of mode.
18854
18855 2011-06-01 Paul Brook <paul@cpodesourcery.com>
18856
18857 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
18858 Cortex-A15.
18859 * config/arm/arm-tune.md: Regenerate.
18860 * config/arm/arm-tables.opt: Regenerate.
18861 * config/arm/arm.c (FL_DIV): Rename...
18862 (FL_THUMB_DIV): ... to this.
18863 (FL_ARM_DIV): Define.
18864 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
18865 (arm_arch_hwdiv): Remove.
18866 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
18867 (arm_issue_rate): Add cortexr5.
18868 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
18869 __ARM_ARCH_EXT_IDIV__.
18870 (TARGET_IDIV): Define.
18871 (arm_arch_hwdiv): Remove.
18872 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
18873 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
18874 (divsi3, udivsi3): New patterns.
18875 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
18876 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
18877
18878 2011-06-01 Martin Jambor <mjambor@suse.cz>
18879
18880 * ipa-utils.c (ipa_dfs_info): New field scc_no.
18881 * ipa-utils.c (searchc): Set scc_no.
18882
18883 2011-06-01 Martin Jambor <mjambor@suse.cz>
18884
18885 * ipa-utils.c (searchc_env): New field allow_overwritable.
18886 (searchc): do not ignore edges to overwritable nodes if indicated
18887 by env->allow_overwritable.
18888 (ipa_reduced_postorder): Set env.allow_overwritable.
18889
18890 2011-06-01 Richard Guenther <rguenther@suse.de>
18891
18892 * tree.c (free_lang_data): Do not reset boolean_type_node nor
18893 char_type_node.
18894 * lto-streamer.c (lto_record_common_node): Take node pointer,
18895 do not register types.
18896 (lto_preload_common_nodes): Explicitly skip preloading nodes
18897 that differ between frontends.
18898
18899 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
18900
18901 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
18902 NON_FLOAT_REGS.
18903
18904 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
18905
18906 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
18907 parameter value for dump. Dump cost on outermost call only.
18908 (rs6000_memory_move_cost): Dump cost on outermost call only.
18909
18910 2011-05-31 Jakub Jelinek <jakub@redhat.com>
18911
18912 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
18913 DW_OP_GNU_convert ops.
18914
18915 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
18916 cselib_preserve_constants.
18917 (cselib_lookup_1): If cselib_preserve_constants,
18918 a new VALUE is being created for REG and there is a VALUE for the
18919 same register in wider mode, add another loc with lowpart SUBREG of
18920 the wider VALUE.
18921 (cselib_subst_to_values): Handle ENTRY_VALUE.
18922 * var-tracking.c (replace_expr_with_values): Return NULL for
18923 ENTRY_VALUE too.
18924 * dwarf2out.c (convert_descriptor_to_signed): New function.
18925 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
18926 instead of two shifts.
18927 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
18928 the right mode if needed.
18929 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
18930 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
18931 convert_descriptor_to_signed.
18932 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
18933 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
18934
18935 PR target/48688
18936 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
18937
18938 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
18939
18940 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
18941 of X87MODEI12 and SWI48x instead of SSEMODEI24.
18942 (SWI248x): New mode iterator, rename from X87MODEI.
18943 (X87MODEI): Remove mode iterator.
18944 (X87MODEI12): Ditto.
18945 (SSEMODEI24): Ditto.
18946
18947 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
18948
18949 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
18950 * doc/invoke.texi: Document max-vartrack-expr-depth.
18951 * var-tracking.c (EXPR_DEPTH): New.
18952 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
18953
18954 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
18955
18956 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
18957 * config/i386/sse.md: Add n to negated FMA pattern names.
18958
18959 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
18960
18961 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
18962
18963 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
18964
18965 * gengtype-state.c (read_state_params_structs): Initialize previous.
18966
18967 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
18968
18969 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
18970 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
18971
18972 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
18973
18974 * config/i386/i386.md (*movtf_internal): Avoid allocating general
18975 registers. Penalize F*r->o alternative to prevent partial memory
18976 stalls. Slightly penalize *roF->*r alternative. Generate SSE
18977 CONST_DOUBLE immediates when optimizing function for size. Do not move
18978 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
18979 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
18980 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
18981 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
18982 alternatives.
18983 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
18984
18985 (fp_register_operand splitters): Use fp_register_operand
18986 constraint. Do not use FP_REG_P in insn condition.
18987 (any_fp_register_operand splitters): Use any_fp_register_operand
18988 constraint. Do not use ANY_FP_REG_P in insn condition.
18989
18990 2011-05-31 Jan Hubicka <jh@suse.cz>
18991
18992 * cgraph.h (cgraph_inline_failed_t): Give enum a name
18993 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
18994 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
18995 (lto_output_edge): Use output_enum and var_len_unsigned.
18996 (lto_output_varpool_node): Likewise.
18997 (input_overwrite_node): Do not take resolution parameter;
18998 extract it from a bitpack.
18999 (input_node): Do not read resolution; use input_enum and
19000 var_len_unsigned.
19001 (input_varpool_node): Likewise.
19002 (input_edge): Likewise.
19003 (input_cgraph_1): Likewise.
19004
19005 2011-05-31 Richard Guenther <rguenther@suse.de>
19006
19007 * gimple.c (gimple_register_canonical_type): Do not register
19008 any types via gimple_register_type.
19009
19010 2011-05-31 Jan Hubicka <jh@suse.cz>
19011
19012 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
19013 of thunks.
19014
19015 2011-05-31 Jakub Jelinek <jakub@redhat.com>
19016
19017 PR rtl-optimization/49235
19018 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
19019 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
19020
19021 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
19022
19023 PR tree-optimization/49093
19024 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
19025 data references.
19026
19027 2011-05-31 Dodji Seketeli <dodji@redhat.com>
19028
19029 PR debug/49047
19030 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
19031 for concrete functions containing the code of cloned functions.
19032
19033 2011-05-31 Richard Guenther <rguenther@suse.de>
19034
19035 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
19036 to ...
19037 (forward_propagate_into_comparison_1): ... this.
19038 (forward_propagate_comparison): Rename to ...
19039 (forward_propagate_into_comparison): ... this. Split out
19040 real forward propagation code to ...
19041 (forward_propagate_comparison): ... this.
19042 (forward_propagate_into_gimple_cond): Remove looping.
19043 (forward_propagate_into_cond): Likewise.
19044 (simplify_not_neg_expr): Return whether we have done something.
19045 (simplify_gimple_switch): Likewise.
19046 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
19047 (ssa_forward_propagate_and_combine): ... this. Re-structure
19048 to do a forward forward-propagation walk on BBs and a backward
19049 stmt combining walk on BBs. Consistently re-scan changed statements.
19050 (pass_forwprop): Adjust.
19051
19052 2011-05-30 Ian Lance Taylor <iant@google.com>
19053
19054 * godump.c (go_format_type): Correct length of name added to
19055 obstack for anonymous field.
19056
19057 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
19058
19059 PR target/49186
19060 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
19061 part of the second operand is 0.
19062
19063 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
19064
19065 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
19066 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
19067 to memory for !TARGET_MEMORY_MISMATCH_STALL.
19068 (*movdf_internal_rex64): Do not penalize F->r alternative.
19069 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
19070 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
19071 when optimizing function for size. Do not move CONST_DOUBLEs
19072 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
19073 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
19074 SUBREGs. Do not check for MEM_P operands in the insn condition,
19075 check for ANY_FP_REGNO_P instead.
19076 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
19077 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
19078 function for speed.
19079 * config/i386/i386.c (ix86_option_override_internal): Do not
19080 set TARGET_INTEGER_DFMODE_MOVES here.
19081
19082 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
19083
19084 PR target/49168
19085 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
19086
19087 2011-05-30 Jakub Jelinek <jakub@redhat.com>
19088
19089 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
19090 DW_TAG_rvalue_reference_type even for
19091 -gdwarf-4 -fno-debug-types-section.
19092
19093 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19094
19095 PR tree-optimization/46728
19096 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
19097 (build_and_insert_binop): New.
19098 (gimple_expand_builtin_pow): Reorder args for
19099 build_and_insert_call; use build_and_insert_binop; add more
19100 optimizations for fractional exponents.
19101
19102 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
19103
19104 PR bootstrap/49190
19105
19106 Revert:
19107 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
19108
19109 * tree.h (struct tree_identifier): Inherit from tree_typed, not
19110 tree_common.
19111 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19112 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19113 TS_BASE instead of TS_COMMON.
19114 * varasm.c (assemble_name): Remove assert.
19115
19116 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
19117
19118 * config.gcc: Keep obselete list sorted.
19119
19120 2011-05-30 Jakub Jelinek <jakub@redhat.com>
19121 Eric Botcazou <ebotcazou@adacore.com>
19122
19123 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
19124 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
19125 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
19126 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
19127 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
19128
19129 2011-05-30 Richard Guenther <rguenther@suse.de>
19130
19131 * gimple.c (gimple_types_compatible_p_1): Compare record
19132 and union type members properly.
19133
19134 2011-05-30 Richard Guenther <rguenther@suse.de>
19135
19136 PR tree-optimization/49210
19137 * ipa-split.c (split_function): Care for the case where the call
19138 result is not trivially convertible to the result holding variable.
19139
19140 2011-05-30 Richard Guenther <rguenther@suse.de>
19141
19142 PR tree-optimization/49218
19143 * tree-vrp.c (adjust_range_with_scev): Properly check whether
19144 overflow occured.
19145
19146 2011-05-30 Richard Guenther <rguenther@suse.de>
19147
19148 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
19149 New function split out from ...
19150 (forward_propagate_into_gimple_cond): ... here. Adjust.
19151 (forward_propagate_into_cond): Likewise.
19152 (forward_propagate_comparison): Also propagate into
19153 comparisons on assignment RHS. Change return value to
19154 behave similar to forward_propagate_into_cond.
19155 (tree_ssa_forward_propagate_single_use_vars): Handle
19156 strict-overflow warnings properly for forward_propagate_comparison.
19157
19158 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19159
19160 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
19161 from plugin linker.
19162 * configure: Regenerate.
19163
19164 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
19165
19166 PR tree-optimization/49199
19167 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
19168 non-reduction operands are either defined in the loop or by induction.
19169
19170 2011-05-29 Xinliang David Li <davidxl@google.com>
19171
19172 * opts-global.c (handle_common_deferred_options): Handle new options.
19173 * passes.c (register_one_dump_file): Call register_pass_name.
19174 (execute_one_pass): Check explicit enable/disable flag.
19175 (passr_hash): New function.
19176 (passr_eq): Ditto.
19177 (register_pass_name): Ditto.
19178 (get_pass_by_name): Ditto.
19179 (pass_hash): Ditto.
19180 (pass_eq): Ditto.
19181 (enable_pass): Ditto.
19182 (disable_pass): Ditto.
19183 (is_pass_explicitly_enabled_or_disabled): Ditto.
19184
19185 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
19186
19187 * config/i386/i386.md (*movoi_internal_avx): Use
19188 standard_sse_constant_opcode for alternative 0.
19189 (*movti_internal_sse): Ditto.
19190 (*movti_internal_rex64): Use standard_sse_constant_opcode for
19191 alternative 2.
19192 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
19193 sselog1 type moves.
19194 (*movsi_internal): Ditto.
19195 (*movdi_internal): Ditto. Add ssecvt type moves.
19196
19197 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
19198
19199 PR target/48830
19200 * rtlanal.c (simplify_subreg_regno): Adjust comment.
19201
19202 2011-05-29 Jakub Jelinek <jakub@redhat.com>
19203
19204 PR rtl-optimization/49095
19205 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
19206 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
19207
19208 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
19209
19210 PR target/43995
19211 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
19212 recurse_p argument. Only follow register copies if it is set,
19213 and prevent mips_find_pic_call_symbol from recursing.
19214 (mips_find_pic_call_symbol): Add a recurse_p argument.
19215 Pass it to mips_pic_call_symbol_from_set.
19216 (mips_annotate_pic_calls): Update accordingly.
19217
19218 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
19219
19220 * emit-rtl.c (try_split): Use a loop to search for
19221 NOTE_INSN_CALL_ARG_LOCATIONs.
19222
19223 2011-05-29 Richard Guenther <rguenther@suse.de>
19224
19225 PR tree-optimization/49217
19226 * ipa-pure-const.c (propagate_pure_const): Fix typos.
19227
19228 2011-05-28 Jan Hubicka <jh@suse.cz>
19229
19230 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
19231 length.
19232 (string_slot_free): Remove
19233 (create_output_block): Initialize obstack.
19234 (destroy_output_block): Free obstack.
19235 (lto_string_index): Add PERSISTENT parameter; do not duplicate
19236 the string unless it needs to be added into the hash.
19237 (lto_output_string_with_length): Add persistent attribute;
19238 handle NULL strings.
19239 (lto_output_string): Add PERSISTENT parameter.
19240 (output_string_cst, output_identifier): Simplify.
19241 (lto_output_location_bitpack): Update.
19242 (lto_output_builtin_tree): Update.
19243 * lto-streamer.h (struct output_block): Add obstack.
19244 (lto_output_string, lto_output_string_with_length): Remove
19245 declarations; functions are static now.
19246
19247 2011-05-28 Jan Hubicka <jh@suse.cz>
19248
19249 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
19250 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
19251 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
19252 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
19253 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
19254 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
19255 unpack_ts_decl_with_vis_value_fields,
19256 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
19257 lto_get_builtin_tree): Use enum and variable length i/o.
19258 * basic-block.h (profile_status_d): Add PROFILE_LAST.
19259 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
19260 New functions.
19261 (bp_pack_enum, bp_unpack_enum): New macros.
19262
19263 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19264
19265 * genrecog.c: Remove redundant forward declarations.
19266
19267 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19268
19269 * config.gcc: Deprecate mips*-*-openbsd*.
19270
19271 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19272
19273 PR bootstrap/49195
19274 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
19275 for match_op_dup.
19276
19277 2011-05-27 Andrew Pinski <pinskia@gmail.com>
19278
19279 PR middle-end/48981
19280 * gengtype.c (vec_prefix_type): New function.
19281 (note_def_vec): Use vec_prefix_type and change the length
19282 attribute to be based on the prefix.
19283 * vec.c: Include coretypes.h before vec.h.
19284 (struct vec_prefix): Remove.
19285 (vec_gc_p_reserve): Change the offsetof to sizeof.
19286 (vec_gc_p_reserve_exact): Likewise.
19287 (vec_heap_p_reserve): Likewise.
19288 (vec_heap_p_reserve_exact): Likewise.
19289 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
19290 (vec_stack_p_reserve): Change the offsetof to sizeof.
19291 (vec_stack_p_reserve_exact): Likewise.
19292 * vec.h (struct vec_prefix): New struct definition.
19293 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
19294 (VEC_T_GTY(T,B)): Likewise.
19295 (DEF_VEC_FUNC_P(T)): Use prefix field.
19296 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
19297 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
19298
19299 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19300
19301 PR tree-optimization/46728
19302 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
19303 (powi_as_mults): Add gimple_set_location.
19304 (build_and_insert_call): New.
19305 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
19306 0.5, 0.25, 0.75, 1./3., or 1./6.
19307
19308 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
19309
19310 * doc/contrib.texi: Update copyright years.
19311 (Contributors): Add Zdenek Sojka.
19312
19313 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
19314
19315 * c-decl.c (c_push_function_context): Copy the current statement
19316 list stack.
19317 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
19318 (finish_struct): Call building_stmt_list_p instead of checking
19319 cur_stmt_list.
19320 * c-parser.c (c_parser_postfix_expression): Likewise.
19321 * c-typeck.c (c_end_compound_stmt): Likewise.
19322 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
19323 * tree-iterator.c (stmt_list_cache): Change to a VEC.
19324 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
19325 (free_stmt_list): Likewise.
19326 * tree.h (struct tree_statement_list): Include typed_tree instead
19327 of tree_common.
19328 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
19329 as TS_TYPED instead of TS_COMMON.
19330
19331 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19332 Uros Bizjak <ubizjak@gmail.com>
19333
19334 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
19335 (HAVE_AS_IX86_TLSGDPTL): Define.
19336 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
19337 (HAVE_AS_IX86_TLSLDMPLT): Define.
19338 * configure: Regenerate.
19339 * config.in: Regenerate.
19340 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
19341 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
19342 TARGET_SUN_TLS, use @tlsgdplt or @plt.
19343 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
19344 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
19345 @tlsldmplt or @plt.
19346 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
19347
19348 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
19349
19350 * sched-int.h (struct _haifa_deps_insn_data): New members cond
19351 and reverse_cond.
19352 (INSN_COND, INSN_REVERSE_COND): New macros.
19353 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
19354 once.
19355 (sched_get_condition_with_rev): Cache the results, and look them up
19356 if possible.
19357 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
19358 are clobbered by the current insn.
19359 * target.def (exposed_pipline): New sched data hook.
19360 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
19361 * doc/tm.texi: Regenerate.
19362
19363 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19364
19365 PR tree-optimization/49170
19366 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
19367 sincos or cexp.
19368
19369 2011-05-27 Richard Guenther <rguenther@suse.de>
19370
19371 PR middle-end/49189
19372 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
19373 of comparisons.
19374
19375 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
19376
19377 * haifa-sched.c (sched_scan_info): Remove.
19378 (schedule_block): Call sched_extend_luids rather than sched_init_luids
19379 with NULL args.
19380 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
19381 Remove functions.
19382 (sched_scan): Remove.
19383 (sched_extend_luids): Renamed from luids_extend_insn and no longer
19384 static. All callers changed.
19385 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
19386 static. All callers changed.
19387 (sched_init_luids): Remove all arguments except the first. All
19388 callers changed. Don't use sched_scan.
19389 (haifa_init_h_i_d): Likewise.
19390 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
19391 manually rather than using sched_init_luids. Likewise with
19392 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
19393 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
19394 rather than sched_init_luids with NULL args.
19395 * sel-sched-ir.c (new_insns): Remove variable.
19396 (sched_scan): New static function, previously in haifa-sched.c. Remove
19397 all arguments but the first two; all callers changed.
19398 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
19399 rather than sched_init_luids.
19400 (sel_init_bbs): Remove second argument. All callers changed.
19401 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
19402 with NULL arguments.
19403 (create_insn_rtx_from_pattern): Likewise.
19404 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
19405 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
19406 (sched_init_insn_luid, sched_extend_luids): Declare.
19407 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
19408 declarations.
19409
19410 2011-05-27 Richard Guenther <rguenther@suse.de>
19411
19412 PR middle-end/49177
19413 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
19414 A CMP B ? (T) true : (T) false for non-integral types T again.
19415
19416 2011-05-27 Jan Hubicka <jh@suse.cz>
19417
19418 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
19419 so 0 means NULL string.
19420 (lto_output_string_with_length): ... here.
19421 (lto_output_string, output_string_cst, output_identifier): Update
19422 handling of NULL strings.
19423 (lto_output_location_bitpack): New function.
19424 (lto_output_location): Use it.
19425 (lto_output_tree_ref): Use output_record_start.
19426 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
19427 len values.
19428 * lto-streamer-in.c (string_for_index): Break out from ...; offset
19429 values by 1.
19430 (input_string_internal): ... here;
19431 (input_string_cst, input_identifier, lto_input_string): Update handling
19432 of NULL strings.
19433 (lto_input_location_bitpack): New function
19434 (lto_input_location): Use it.
19435 (unpack_ts_type_common_value_fields): Pack align & alias in var len
19436 values.
19437 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
19438 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
19439 (bp_pack_value): Sanity check the value range.
19440 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
19441 New functions.
19442 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
19443 New functions.
19444
19445 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
19446
19447 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
19448 call_arg_location instructions down the floor.
19449
19450 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
19451
19452 PR rtl-optimization/49154
19453 * ira.c (setup_pressure_classes): Process class without sublcasses
19454 as a candidate for pressure classes.
19455
19456 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
19457
19458 PR rtl-optimization/48575
19459 * genrecog.c (position_type): New enum.
19460 (position): New structure.
19461 (decision): Use position structure instead of a string.
19462 (root_pos, peep2_insn_pos_list): New variables.
19463 (next_position, compare_positions): New functions.
19464 (new_decision): Use position structures instead of strings.
19465 (maybe_both_true): Likewise.
19466 (change_state): Likewise.
19467 (write_tree): Likewise.
19468 (make_insn_sequence): Likewise.
19469
19470 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
19471
19472 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
19473 TS_BASE instead of TS_COMMON.
19474 (find_decls_types_r): Check for TS_TYPED structure before looking at
19475 TREE_TYPE.
19476 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
19477 Add chain field.
19478 (BLOCK_CHAIN): Use new chain field.
19479
19480 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
19481
19482 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
19483 moves expensive on Power7 also.
19484
19485 2011-05-26 Richard Guenther <rguenther@suse.de>
19486
19487 * fold-const.c (fold_unary_loc): Remove bogus code.
19488
19489 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
19490
19491 * tree.h (struct tree_identifier): Inherit from tree_typed, not
19492 tree_common.
19493 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
19494 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
19495 TS_BASE instead of TS_COMMON.
19496 * varasm.c (assemble_name): Remove assert.
19497
19498 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
19499
19500 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
19501 substituted first.
19502 * libgcc-std.ver: Delete file.
19503
19504 2011-05-26 Richard Guenther <rguenther@suse.de>
19505
19506 PR tree-optimization/48702
19507 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
19508 only when we know the base address is within bounds.
19509 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
19510 assume the base address of TARGET_MEM_REFs is in bounds.
19511
19512 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19513
19514 PR target/49099
19515 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
19516 declaration in TARGET_SOLARIS.
19517
19518 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
19519
19520 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
19521 The instruction is then expanded explicitly.
19522 (supported_compare): Callable instruction.
19523 (compare): Likewise.
19524
19525 2011-05-26 Jakub Jelinek <jakub@redhat.com>
19526
19527 PR c++/49165
19528 * gimplify.c (shortcut_cond_r): Don't special case
19529 COND_EXPRs if they have void type on one of their arms.
19530
19531 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
19532
19533 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
19534 to reduce duplication, and to achieve a slightly more logical order
19535 of operations.
19536
19537 2011-05-26 Jakub Jelinek <jakub@redhat.com>
19538
19539 PR tree-optimization/49161
19540 * tree-vrp.c (struct case_info): New type.
19541 (compare_case_labels): Sort case_info structs instead of
19542 trees, and not primarily by CASE_LABEL uids but by
19543 label_for_block indexes.
19544 (find_switch_asserts): Put case labels into struct case_info
19545 array instead of TREE_VEC, adjust sorting, compare label_for_block
19546 values instead of CASE_LABELs.
19547
19548 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19549
19550 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
19551 ("orndi3_neon"): Likewise.
19552 ("bic<mode>3_neon"): Likewise.
19553
19554 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
19555
19556 PR tree-optimization/49038
19557 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
19558 Ensure at least one epilogue iteration if required by data
19559 accesses with gaps.
19560 * tree-vectorizer.h (struct _loop_vec_info): Add new field
19561 to mark loops that require peeling for gaps.
19562 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
19563 (vect_get_known_peeling_cost): Take peeling for gaps into
19564 account.
19565 (vect_transform_loop): Generate epilogue if required by data
19566 access with gaps.
19567 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
19568 loop as requiring an epilogue if there are gaps in the end of
19569 the strided group.
19570
19571 2011-05-25 Ian Lance Taylor <iant@google.com>
19572
19573 * godump.c (go_format_type): Output the first field with a usable
19574 Go type, if any.
19575
19576 2011-05-25 Ian Lance Taylor <iant@google.com>
19577
19578 * godump.c (go_format_type): Check for invalid type names, pointer
19579 target types, and struct field types.
19580
19581 2011-05-25 Jason Merrill <jason@redhat.com>
19582
19583 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
19584
19585 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
19586
19587 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
19588
19589 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
19590
19591 * config/i386/i386.md (*movqi_extv_1)): Put back
19592 "register_operand" check in "type" calculation.
19593 (*movqi_extzv_2): Likewise.
19594
19595 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
19596
19597 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
19598
19599 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
19600
19601 PR bootstrap/49160
19602 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
19603 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
19604 __divxc3, __divtc3): Wrap definitions in #ifndef.
19605
19606 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
19607
19608 PR target/49142
19609 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
19610 "register_operand" check and replace q_regs_operand with
19611 QIreg_operand in "type" calculation.
19612 (*movqi_extv_1): Likewise.
19613 (*movqi_extzv_2_rex64): Likewise.
19614 (*movqi_extzv_2): Likewise.
19615
19616 * config/i386/predicates.md (QIreg_operand): New.
19617
19618 2011-05-25 Richard Guenther <rguenther@suse.de>
19619
19620 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
19621 type-based offset disambiguation, streamline MEM_REF and
19622 TARGET_MEM_REF handling.
19623
19624 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
19625
19626 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
19627 (bdesc_special_args): Add pause intrinsic.
19628
19629 * config/i386/i386.md (UNSPEC_PAUSE): New.
19630 (pause): Likewise.
19631 (*pause): Likewise.
19632 * config/i386/ia32intrin.h (__pause): Likewise.
19633
19634 * doc/extend.texi (X86 Built-in Functions): Add documentation for
19635 pause intrinsic.
19636
19637 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19638
19639 PR tree-optimization/46728
19640 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
19641 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
19642
19643 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
19644
19645 * tree.h (struct tree_exp): Inherit from struct tree_typed.
19646 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
19647 instead of TS_COMMON.
19648
19649 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
19650
19651 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
19652 LIBGCC2_GNU_PREFIX is defined.
19653 (__N): New macro.
19654 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
19655 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
19656 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
19657 __clz_tab): Define using __N.
19658 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
19659 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
19660 * target.def (libfunc_gnu_prefix): New hook.
19661 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
19662 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
19663 * doc/tm.texi: Regenerate.
19664 * system.h (LIBGCC2_GNU_PREFIX): Poison.
19665 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
19666 account.
19667 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
19668 (init_optabs): Likewise for the bswap libfuncs.
19669 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
19670 and divide.
19671 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
19672 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
19673 * libgcc-std.ver: Remove.
19674 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
19675 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
19676 libgcc-std.ver.
19677 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19678 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
19679 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
19680 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
19681 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
19682 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19683 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
19684 * config/fixed-bit.h (FIXED_OP): Define differently depending on
19685 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
19686 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
19687
19688 2011-05-25 Jan Hubicka <jh@suse.cz>
19689
19690 * lto-streamer-out.c (output_record_start): Use lto_output_enum
19691 (lto_output_tree): Use output_record_start.
19692 * lto-streamer-in.c (input_record_start): Use lto_input_enum
19693 (lto_get_pickled_tree): Use input_record_start.
19694 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
19695 (lto_value_range_error): New function.
19696 * lto-streamer.h (lto_value_range_error): Declare.
19697 (lto_output_int_in_range, lto_input_int_in_range): New functions.
19698 (lto_output_enum, lto_input_enum): New macros.
19699
19700 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
19701
19702 * common.opt (flag_stack_usage_info): New variable.
19703 (-Wstack-usage): New option.
19704 * doc/invoke.texi (Warning options): Document -Wstack-usage.
19705 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
19706 <OPT_fstack_usage>: Likewise.
19707 * toplev.c (output_stack_usage): Handle -Wstack-usage.
19708 * calls.c (expand_call): Test flag_stack_usage_info variable instead
19709 of flag_stack_usage.
19710 (emit_library_call_value_1): Likewise.
19711 * explow.c (allocate_dynamic_stack_space): Likewise.
19712 * function.c (instantiate_virtual_regs ): Likewise.
19713 (prepare_function_start): Likewise.
19714 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
19715 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
19716 * config/arm/arm.c (arm_expand_prologue): Likewise.
19717 (thumb1_expand_prologue): Likewise.
19718 * config/avr/avr.c (expand_prologue): Likewise.
19719 * config/i386/i386.c (ix86_expand_prologue): Likewise.
19720 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
19721 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
19722 * config/mips/mips.c (mips_expand_prologue): Likewise.
19723 * config/pa/pa.c (hppa_expand_prologue): Likewise.
19724 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
19725 * config/s390/s390.c (s390_emit_prologue): Likewise.
19726 * config/sh/sh.c (sh_expand_prologue): Likewise.
19727 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
19728 * config/spu/spu.c (spu_expand_prologue): Likewise.
19729
19730 2011-05-25 Richard Guenther <rguenther@suse.de>
19731
19732 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
19733 (gimple_canonical_types_compatible_p): Likewise.
19734
19735 2011-05-25 Jan Hubicka <jh@suse.cz>
19736
19737 PR middle-end/49062
19738 * ipa.c (function_and_variable_visibility): Only add to same
19739 comdat group list if DECL_ONE_ONLY.
19740
19741 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
19742
19743 PR rtl-optimization/49014
19744 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
19745
19746 2011-05-25 Jakub Jelinek <jakub@redhat.com>
19747
19748 PR target/49128
19749 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
19750
19751 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
19752
19753 PR rtl-optimization/48757
19754 * ira-build.c (loop_with_eh_edge_p): Rename to
19755 loop_with_complex_edge_p, check edges on complexity, make function
19756 conditional.
19757 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
19758 conditional.
19759
19760 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
19761
19762 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
19763 force flag_ira_share_save_slots to 0.
19764
19765 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
19766
19767 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
19768 (vt_initialize): Set PROLOGUE_BB unconditionally.
19769 Add block comment about CFA_BASE_RTX machinery.
19770 Reset FP_CFA_OFFSET to -1 on all invalid paths.
19771 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
19772
19773 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
19774
19775 PR objc/48187
19776 * c-parser.c (c_parser_objc_class_instance_variables): More robust
19777 parsing of syntax error in ObjC instance variable lists. In
19778 particular, avoid an infinite loop if there is a stray ']'.
19779 Updated error message.
19780
19781 2011-05-24 Ian Lance Taylor <iant@google.com>
19782
19783 * godump.c (go_define): Don't accept a string immediately after
19784 another operand.
19785
19786 2011-05-24 Ian Lance Taylor <iant@google.com>
19787
19788 * godump.c (struct godump_container): Add invalid_hash field.
19789 (go_format_type): Return false if type is found in invalid_hash.
19790 (go_output_typedef): Add invalid type to invalid_hash.
19791 (go_finish): Create and delete invalid_hash.
19792
19793 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19794
19795 PR tree-optimization/46728
19796 * tree-ssa-math-opts.c (powi_table): New.
19797 (powi_lookup_cost): New.
19798 (powi_cost): New.
19799 (powi_as_mults_1): New.
19800 (powi_as_mults): New.
19801 (gimple_expand_builtin_powi): New.
19802 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
19803 (gate_cse_sincos): Remove sincos/cexp restriction.
19804
19805 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19806
19807 PR target/3746
19808 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
19809 mips-tdump native.
19810 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
19811 * mips-tdump.c: Likewise.
19812
19813 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
19814
19815 PR target/49128
19816 * config/i386/driver-i386.c (host_detect_local_cpu): Always
19817 add -mno-XXX. Handle FMA.
19818
19819 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
19820
19821 PR rtl-optimization/48633
19822 * ira-build.c (loop_with_eh_edge_p): New function.
19823 (mark_loops_for_removal): Use it.
19824
19825 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
19826
19827 PR rtl-optimization/48971
19828 * ira.c (setup_pressure_classes): Don't check register move cost
19829 for classes with one registers. Don't add pressure class if there
19830 is a pressure class with the same available hard registers.
19831 Check contains_reg_of_mode. Fix a typo in collecting
19832 temp_hard_regset. Ignore hard registers not belonging to a class.
19833
19834 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
19835
19836 PR target/49133
19837 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
19838
19839 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
19840 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19841
19842 PR gcov-profile/48845
19843 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
19844
19845 2011-05-24 Richard Guenther <rguenther@suse.de>
19846
19847 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
19848 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
19849 (gimple_types_compatible_p_1): Adjust.
19850 (iterative_hash_canonical_type): Do not bother about complete vs.
19851 incomplete types.
19852 (gimple_canonical_types_compatible_p): Likewise.
19853
19854 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19855
19856 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
19857
19858 2011-05-24 Richard Guenther <rguenther@suse.de>
19859
19860 PR bootstrap/49078
19861 * gimple.c (gimple_register_canonical_type): Revert
19862 previous change.
19863 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
19864 does not for a tree for the case where it matters. Cache
19865 pointer-type alias-sets.
19866
19867 2011-05-24 Joseph Myers <joseph@codesourcery.com>
19868
19869 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
19870 (OBJS): Remove options.o, opts-common.o and prefix.o.
19871 (OBJS-libcommon-target): New.
19872 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
19873 (BACKEND): Include libcommon-target.a.
19874 (MOSTLYCLEANFILES): Include libcommon-target.a.
19875 (libcommon-target.a): New.
19876 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
19877 prefix.o.
19878
19879 2011-05-23 Joseph Myers <joseph@codesourcery.com>
19880
19881 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
19882 parts of output shared with the driver.
19883 * optc-gen.awk: Don't generate parts of output not shared with the
19884 driver.
19885 * opth-gen.awk: Remove GCC_DRIVER conditionals.
19886 * doc/options.texi (SourcerInclude): Mention options-save.c.
19887 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
19888 (OBJS): Add options-save.o.
19889 (options-save.c, options-save.o): New.
19890 (options.o): Update dependencies.
19891 (gcc-options.o): Remove.
19892 (mostlyclean): Remove options-save.c.
19893
19894 2011-05-23 Jakub Jelinek <jakub@redhat.com>
19895
19896 PR debug/49032
19897 * dbxout.c: Include cgraph.h.
19898 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
19899 and without value expr, return NULL if no varpool node exists for
19900 it or if it is not needed.
19901 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
19902
19903 PR c/49120
19904 * c-decl.c (start_decl): Convert expr to void_type_node.
19905
19906 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
19907
19908 PR rtl-optimization/48826
19909 * emit-rtl.c (try_split): When splitting a call that is followed
19910 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
19911
19912 2011-05-23 Jakub Jelinek <jakub@redhat.com>
19913
19914 * cfgexpand.c (expand_debug_expr): For unused non-addressable
19915 parameters passed in memory prefer using DECL_INCOMING_RTL over
19916 the pseudos it will be copied into.
19917
19918 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
19919
19920 PR target/47315
19921 * config/i386/i386.c (ix86_option_override_internal): Save the
19922 initial options after checking vzeroupper.
19923
19924 2011-05-23 David Li <davidxl@google.com>
19925
19926 PR tree-optimization/48988
19927 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
19928 Initialize has_valid_pred for each pred chain.
19929
19930 2011-05-23 Richard Guenther <rguenther@suse.de>
19931
19932 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
19933 (iterative_hash_gimple_type): Always hash type names.
19934
19935 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
19936
19937 * c-typeck.c (build_function_call_vec): Tweak call to
19938 check_function_arguments.
19939
19940 2011-05-23 Richard Guenther <rguenther@suse.de>
19941
19942 PR tree-optimization/49115
19943 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
19944 is not necessarily carried out, do not claim it kills the ref.
19945 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
19946
19947 2011-05-23 Richard Guenther <rguenther@suse.de>
19948
19949 PR middle-end/15419
19950 * builtins.c (fold_builtin_memory_op): Be less restrictive about
19951 what pointer types we accept for folding.
19952
19953 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19954
19955 * gthr-gnat.c: Remove.
19956 * gthr-gnat.h: Remove.
19957 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
19958 * config/t-freebsd (LIB2ADDEH): Likewise.
19959 * config/t-linux (LIB2ADDEH): Likewise.
19960 * config/t-sol2 (LIB2ADDEH): Likewise.
19961 * config/ia64/t-vms (LIB2ADDEH): Likewise.
19962 * configure.ac (target_thread_file): Remove gnat handling.
19963 * configure: Regenerate.
19964 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
19965
19966 2011-05-23 Tristan Gingold <gingold@adacore.com>
19967 Eric Botcazou <ebotcazou@adacore.com>
19968
19969 * gcov.c (create_file_names): If no object directory is specified,
19970 keep the directory of the file.
19971
19972 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19973
19974 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
19975 * configure: Regenerate.
19976
19977 2011-05-23 Jakub Jelinek <jakub@redhat.com>
19978
19979 PR middle-end/48973
19980 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
19981 failed and the comparison has a single bit signed type, use
19982 constm1_rtx instead of const1_rtx for true value.
19983 (do_store_flag): If ops->type is single bit signed type, disable
19984 signel bit test optimization and pass -1 instead of 1 as last
19985 parameter to emit_store_flag_force.
19986
19987 2011-05-23 Tom de Vries <tom@codesourcery.com>
19988
19989 PR target/45098
19990 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
19991 function.
19992 (infer_loop_bounds_from_undefined): Use new function.
19993
19994 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
19995
19996 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
19997 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
19998 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
19999 and -O0 otherwise.
20000 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
20001
20002 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
20003
20004 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
20005 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
20006 returns true.
20007
20008 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
20009
20010 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
20011
20012 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
20013
20014 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
20015 UNSPEC_MOVE_PIC pattern.
20016
20017 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
20018
20019 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
20020 (sparc-*-rtems*): Likewise.
20021 (sparc64-*-elf*): Likewise.
20022 (sparc64-*-rtems*): Likewise.
20023 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
20024 * config/sparc/t-crtin: New file.
20025 * config/sparc/t-sol2 (crti.o): Delete rule.
20026 (crtn.o): Likewise.
20027 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
20028 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
20029 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
20030 (ENDFILE_SPEC): Add crtn.o.
20031
20032 2011-05-22 Tom de Vries <tom@codesourcery.com>
20033
20034 PR middle-end/48689
20035 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
20036 CODE_CONTAINS_STRUCT (TS_COMMON).
20037
20038 2011-05-22 Jakub Jelinek <jakub@redhat.com>
20039
20040 PR middle-end/49029
20041 * expmed.c (extract_fixed_bit_field): Test whether target can be used
20042 only after deciding which mode to use.
20043
20044 2011-05-22 Tom de Vries <tom@codesourcery.com>
20045
20046 PR target/45098
20047 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
20048 for call to get_shiftadd_cost.
20049
20050 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
20051
20052 PR target/49104
20053 * config/i386/cpuid.h (bit_MMXEXT): New define.
20054
20055 2011-05-22 Nick Clifton <nickc@redhat.com>
20056
20057 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
20058 initialisation of non-existant args[2] element. Use args[] array
20059 not arg[] array to pass arguments to build_function_type_list.
20060
20061 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
20062
20063 PR tree-optimization/49087
20064 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
20065
20066 2011-05-21 Jason Merrill <jason@redhat.com>
20067
20068 PR c++/49092
20069 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
20070 static storage duration.
20071
20072 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
20073
20074 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
20075 frame pointer.
20076
20077 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
20078
20079 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
20080 false if there are call-saved registers here...
20081 (sparc_can_use_return_insn_p): ...but here instead.
20082 (save_or_restore_regs): Fix thinko.
20083 (sparc_expand_prologue): Use current_function_is_leaf.
20084 (sparc_frame_pointer_required): Likewise.
20085
20086 2011-05-21 Nick Clifton <nickc@redhat.com>
20087
20088 PR target/49098
20089 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
20090
20091 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
20092
20093 * gengtype.c (walk_type): Implemented "atomic" GTY option.
20094 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
20095
20096 2011-05-21 Joseph Myers <joseph@codesourcery.com>
20097
20098 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
20099 * optc-gen.awk: Move common code to opt-read.awk.
20100 * opth-gen.awk: Likewise.
20101 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
20102
20103 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
20104
20105 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
20106
20107 2011-05-20 Tom de Vries <tom@codesourcery.com>
20108
20109 PR target/45098
20110 * tree-ssa-loop-ivopts.c: Include expmed.h.
20111 (get_shiftadd_cost): New function.
20112 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
20113
20114 2011-05-20 Jakub Jelinek <jakub@redhat.com>
20115
20116 PR bootstrap/49086
20117 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
20118 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
20119
20120 2011-05-20 Joseph Myers <joseph@codesourcery.com>
20121
20122 * Makefile.in: Update comment referring to $(OBJS-common).
20123
20124 2011-05-20 Ian Lance Taylor <iant@google.com>
20125
20126 * godump.c (go_output_typedef): Put enum constants in the macro
20127 hash table to avoid duplicate Go const definitions.
20128
20129 2011-05-20 Joseph Myers <joseph@codesourcery.com>
20130
20131 * Makefile.in (LIBDEPS): Add libcommon.a.
20132 (LIBS): Likewise.
20133 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
20134 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
20135 pretty-print.o and version.o.
20136 (OBJS-libcommon): New.
20137 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
20138 (BACKEND): Add libcommon.a.
20139 (MOSTLYCLEANFILES): Likewise.
20140 (libcommon.a): New.
20141 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
20142 (cpp$(exeext)): Likewise.
20143 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
20144 pretty-print.o and input.o.
20145 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
20146 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
20147 (errors.o): Remove.
20148 (mips-tfile): Don't explicitly use version.o.
20149 (mips-tdump): Likewise.
20150 (gcov.o): Depend on $(DIAGNOSTIC_H).
20151 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
20152 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
20153 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
20154 * gcov-dump.c: Include intl.h and diagnostic.h.
20155 (main): Initialize diagnostics.
20156 * gcov.c: Include diagnostic.h.
20157 (fnotice): Remove.
20158 (main): Initialize diagnostics.
20159 * lto-wrapper.c: Include diagnostic.h.
20160 (main): Initialize diagnostics.
20161
20162 2011-05-20 Michael Matz <matz@suse.de>
20163
20164 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
20165
20166 2011-05-20 Michael Matz <matz@suse.de>
20167 Richard Guenther <rguenther@suse.de>
20168
20169 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
20170 use lto_streamer_cache_append directly instead of returning a VEC.
20171 (preload_common_node): Remove.
20172 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
20173 track seen nodes.
20174 (lto_streamer_cache_create): Call lto_preload_common_nodes.
20175
20176 2011-05-20 Richard Guenther <rguenther@suse.de>
20177
20178 PR tree-optimization/49079
20179 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
20180 MEM_REFs correctly for the trailing array access detection.
20181 Special case constants the same way as decls for overall size
20182 constraining.
20183
20184 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
20185
20186 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
20187 argument expansion.
20188
20189 2011-05-20 Jakub Jelinek <jakub@redhat.com>
20190
20191 PR tree-optimization/49073
20192 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
20193 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
20194 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
20195
20196 2011-05-20 Richard Guenther <rguenther@suse.de>
20197
20198 PR middle-end/48849
20199 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
20200 of pointer types the same way the middle-end does.
20201
20202 2011-05-20 Richard Guenther <rguenther@suse.de>
20203
20204 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
20205 or pointer-to chains. Delay all fixup to uniquify_nodes.
20206
20207 2011-05-19 Quentin Neill <quentin.neill@amd.com>
20208
20209 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
20210 (fma4_fmaddsub): Likewise
20211
20212 2011-05-19 Jan Hubicka <jh@suse.cz>
20213
20214 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
20215 (GIMPLE_TYPE_PAIR_SIZE): New macro.
20216 (type_pair_cache): New static var.
20217 (lookup_type_pair): Use fixed sized custom hash; make inline.
20218 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
20219 calls of lookup_type_pair.
20220 (print_gimple_types_stats): Remove cache stats.
20221 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
20222 and gtc_ob.
20223
20224 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
20225
20226 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
20227 when TARGET_RDRND is active.
20228 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
20229 Generate dummy SImode target register when target is NULL.
20230
20231 2011-05-19 Joseph Myers <joseph@codesourcery.com>
20232
20233 * config/arm/arm-fpus.def: New.
20234 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
20235 arm-fpus.def.
20236 * config/arm/arm-tables.opt: Regenerate.
20237 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
20238 (arm_option_override): Don't decode FPU name to string here.
20239 * config/arm/arm.opt (mfpu=): Use Enum.
20240 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
20241 Update dependencies.
20242
20243 2011-05-19 Joseph Myers <joseph@codesourcery.com>
20244
20245 * collect2.c: Include diagnostic.h.
20246 (fatal_perror, fatal, error, fancy_abort): Remove.
20247 (main): Set progname. Call xmalloc_set_program_name and
20248 diagnostic_initialize.
20249 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
20250 scan_libraries, resolve_lib_name): Call fatal_error instead of
20251 fatal and fatal_perror.
20252 * collect2.h (error, fatal, fatal_perror): Don't declare.
20253 * tlink.c: Include diagnostic-core.h.
20254 (recompile_files): Call fatal_error instead of fatal_perror.
20255 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
20256 pretty-print.o and input.o.
20257 (collect2.o, tlink.o): Update dependencies.
20258
20259 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20260
20261 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
20262
20263 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20264
20265 PR target/40483
20266 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
20267 COMDAT group syntax, both SPARC and x86 variants.
20268 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
20269 * configure: Regenerate.
20270 * config/sol2.h (TARGET_SOLARIS): Define.
20271 (PUSHSECTION_FORMAT): Remove.
20272 (SECTION_NAME_FORMAT): Define.
20273 * config/sol2.c: Include hashtab.h.
20274 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
20275 expansion, using SECTION_NAME_FORMAT.
20276 (solaris_comdat_htab): New variable.
20277 (struct comdat_entry): Define.
20278 (comdat_hash): New function.
20279 (comdat_eq): New function.
20280 (solaris_elf_asm_comdat_section): New function.
20281 (solaris_define_comdat_signature): New function.
20282 (solaris_code_end): New function.
20283 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
20284 (solaris_code_end): Declare.
20285 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
20286 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
20287 solaris_code_end.
20288 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
20289 Remove ATTRIBUTE_UNUSED.
20290 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
20291 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
20292 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
20293 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
20294 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
20295 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
20296 (PUSHSECTION_FORMAT): Remove.
20297 (SECTION_NAME_FORMAT): Redefine.
20298
20299 2011-05-19 Kai Tietz <ktietz@redhat.com>
20300
20301 * tree-cfg.c (verify_gimple_assign_binary): Barf on
20302 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
20303 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
20304
20305 2011-05-19 Anatoly Sokolov <aesok@post.ru>
20306 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20307
20308 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
20309
20310 2011-05-19 Richard Guenther <rguenther@suse.de>
20311
20312 PR middle-end/48985
20313 * tree-object-size.c (addr_object_size): If the pointed-to
20314 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
20315
20316 2011-05-19 Richard Guenther <rguenther@suse.de>
20317
20318 * gimple.c (gimple_types_compatible_p_1): Compare names of
20319 the types themselves.
20320 (iterative_hash_gimple_type): And hash them that way.
20321 (gimple_register_type_1): If we register a main variant properly
20322 initialize the leader to ourselves.
20323
20324 2011-05-19 Tom de Vries <tom@codesourcery.com>
20325
20326 PR target/45098
20327 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
20328 get_loop_invariant_expr_id.
20329 (get_loop_invariant_expr_id): Use get_expr_id.
20330 (parm_decl_cost): New function.
20331 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
20332 Improve bound cost estimation. Use different inv_expr_id for elim and
20333 express cases.
20334
20335 2011-05-19 Tom de Vries <tom@codesourcery.com>
20336
20337 PR target/45098
20338 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
20339 cost_base.cost == 0.
20340
20341 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
20342
20343 PR target/49002
20344 * config/i386/sse.md
20345 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
20346 load cast.
20347
20348 2011-05-18 Jakub Jelinek <jakub@redhat.com>
20349
20350 PR tree-optimization/49039
20351 * tree-vrp.c (extract_range_from_binary_expr): For
20352 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
20353 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
20354
20355 2011-05-18 Tom de Vries <tom@codesourcery.com>
20356
20357 PR target/45098
20358 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
20359
20360 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
20361
20362 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
20363 (*tls_global_dynamic_64): Ditto.
20364 (*tls_local_dynamic_base_32_gnu): Ditto.
20365 (*tls_local_dynamic_base_64): Ditto.
20366 (tls_initial_exec_64_sun): Ditto.
20367
20368 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
20369
20370 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
20371 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
20372 bf592-none.
20373 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
20374 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
20375 * config/bfin/bfin.c (bfin_cpus): Add bf592.
20376 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20377 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
20378 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
20379 * config/bfin/elf.h (LIB_SPEC): Add bf592.
20380
20381 2011-05-18 Joseph Myers <joseph@codesourcery.com>
20382
20383 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
20384 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
20385 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
20386 target_thread_pointer, arm_structure_size_boundary, struct
20387 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
20388 struct abi_name, arm_all_abis): Remove.
20389 (arm_option_override) Don't process most enumerated option values here.
20390 Don't process target_fpe_name here. Work with integer not string for
20391 structure size boundary; use separate diagnostics for each case.
20392 * config/arm/arm.h (enum float_abi_type, enum
20393 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
20394 to arm-opts.h.
20395 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
20396 arm_structure_size_boundary): Remove.
20397 * config/arm/arm.opt (mabi=): Use Enum and Init.
20398 (arm_abi_type): New Enum and EnumValue entries.
20399 (mfloat-abi=): Use Enum and Init.
20400 (float_abi_type): New Enum and EnumValue entries.
20401 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
20402 (mfp16-format=): Use Enum and Init.
20403 (arm_fp16_format_type): New Enum and EnumValue entries.
20404 (mstructure-size-boundary=): Use UInteger and Init.
20405 (mtp=): Use Enum and Init.
20406 (arm_tp_type): New Enum and EnumValue entries.
20407
20408 2011-05-18 Richard Guenther <rguenther@suse.de>
20409
20410 PR tree-optimization/49018
20411 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
20412 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
20413 gimple_has_side_effects.
20414
20415 2011-05-18 Richard Guenther <rguenther@suse.de>
20416
20417 * gimple.c (gimple_register_type_1): New function, split out from ...
20418 (gimple_register_type): ... here. Avoid infinite recursion.
20419
20420 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
20421
20422 PR tree-optimization/41881
20423 * tree-vectorizer.h (struct _loop_vec_info): Add new field
20424 reduction_chains along with a macro for its access.
20425 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
20426 (destroy_loop_vec_info): Free reduction chains.
20427 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
20428 (vect_is_slp_reduction): New function.
20429 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
20430 (vect_create_epilog_for_reduction): Support SLP reduction chains.
20431 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
20432 definition types for reduction chains.
20433 (vect_supported_load_permutation_p): Don't allow permutations for
20434 reduction chains.
20435 (vect_analyze_slp_instance): Support reduction chains.
20436 (vect_analyze_slp): Try to build SLP instance from reduction chains.
20437 (vect_get_constant_vectors): Handle reduction chains.
20438 (vect_schedule_slp_instance): Mark the first statement of the
20439 reduction chain as reduction.
20440
20441 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
20442
20443 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
20444 names for group elements access.
20445 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
20446 reduction chains as well. Remove data reference and interleaving
20447 related words from the fields names.
20448 * tree-vect-loop.c (vect_transform_loop): Use new names for group
20449 elements access.
20450 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
20451 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
20452 vect_update_interleaving_chain, vect_same_range_drs,
20453 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
20454 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
20455 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
20456 vect_analyze_group_access, vect_analyze_data_ref_access,
20457 vect_create_data_ref_ptr, vect_transform_strided_load,
20458 vect_record_strided_load_vectors): Likewise.
20459 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
20460 vect_model_load_cost, vectorizable_store, vectorizable_load,
20461 vect_remove_stores, new_stmt_vec_info): Likewise.
20462 * tree-vect-slp.c (vect_build_slp_tree,
20463 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
20464
20465 2011-05-18 Richard Guenther <rguenther@suse.de>
20466
20467 PR middle-end/48989
20468 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
20469 operand verification.
20470 (verify_gimple_assign_binary): Likewise.
20471 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
20472 to non-1-precision BOOLEAN_TYPEs.
20473
20474 2011-05-18 Tom de Vries <tom@codesourcery.com>
20475
20476 PR target/45098
20477 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
20478
20479 2011-05-18 Jakub Jelinek <jakub@redhat.com>
20480
20481 PR tree-optimization/49000
20482 * tree-ssa.c (execute_update_addresses_taken): Call
20483 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
20484 be rewritten and decl has been marked for renaming, reset
20485 the debug stmt.
20486
20487 2011-05-17 Joseph Myers <joseph@codesourcery.com>
20488
20489 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
20490 enum_opts_set when testing if attributes have set -mfpmath=.
20491
20492 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20493
20494 * config/mips/mips.c (mips_handle_option): Remove unused variable.
20495
20496 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
20497
20498 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
20499 info->entry with 0
20500 * tree-inline.c (maybe_inline_call_in_expr): Initialize
20501 id.transform_lang_insert_block with NULL.
20502
20503 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
20504
20505 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
20506 (output_fp_compare): Change args 3 and 4 to bool.
20507 (ix86_expand_call): Change arg 6 to bool.
20508 (ix86_attr_length_immediate_default): Change arg 2 to bool.
20509 (ix86_attr_length_vex_default): Change arg 3 to bool.
20510 * config/i386/i386.md: Update all uses.
20511 * config/i386/i386.c: Ditto.
20512 (ix86_flags_dependent): Change return type to bool.
20513
20514 2011-05-17 Richard Guenther <rguenther@suse.de>
20515
20516 * gimple.c (type_hash_pair_compare): Fix comparison.
20517
20518 2011-05-17 Richard Guenther <rguenther@suse.de>
20519
20520 * gimple.c (iterative_hash_gimple_type): Simplify singleton
20521 case some more, fix final hash value of the non-singleton case.
20522
20523 2011-05-17 Richard Guenther <rguenther@suse.de>
20524
20525 PR bootstrap/49013
20526 Revert
20527 2011-05-16 Richard Guenther <rguenther@suse.de>
20528
20529 * gimple.c (gimple_types_compatible_p_1): Use names of the
20530 type itself, not its main variant.
20531 (iterative_hash_gimple_type): Likewise.
20532
20533 2011-05-17 Richard Guenther <rguenther@suse.de>
20534
20535 * gimple.c (gimple_register_canonical_type): Use the main-variant
20536 leader for computing the canonical type.
20537
20538 2011-05-17 Nick Clifton <nickc@redhat.com>
20539
20540 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
20541 moves.
20542
20543 * config/rx/rx.md: Add peephole to remove redundant extensions
20544 after loads.
20545 (bitset_in_memory): Use rx_restricted_mem_operand.
20546 (bitinvert_in_memory): Likewise.
20547 (bitclr_in_memory): Likewise.
20548
20549 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
20550 Nick Clifton <nickc@redhat.com>
20551
20552 * config/rx/rx.md: Add peepholes to match a register move followed
20553 by a comparison of the moved register. Replace these with an
20554 addition of zero that does both actions in one instruction.
20555
20556 2011-05-17 Jakub Jelinek <jakub@redhat.com>
20557
20558 PR target/48986
20559 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
20560 predicate to allow CONST_INT.
20561 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
20562
20563 2011-05-16 Joseph Myers <joseph@codesourcery.com>
20564
20565 * opts-common.c (opt_enum_arg_to_value): New.
20566 * opts.h (opt_enum_arg_to_value): Declare.
20567 * config/i386/i386.opt (fpmath): Remove.
20568 (mfpmath=): Use Enum, Init and Save.
20569 (fpmath_unit): New Enum and EnumValue entries.
20570 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
20571 name for function fpmath state.
20572 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
20573 * config/i386/i386.c: Include diagnostic.h.
20574 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
20575 (ix86_target_string): Take enum fpmath_unit value instead of string.
20576 (ix86_debug_options): Update call to ix86_target_string.
20577 (ix86_option_override_internal): Don't process fpmath strings here.
20578 (x86_function_specific_save, ix86_function_specific_restore):
20579 Don't handle fpmath state specially.
20580 (ix86_function_specific_print): Pass fpmath state to
20581 ix86_target_string instead of printing in this function.
20582 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
20583 Handle enum attributes.
20584 (IX86_ATTR_ENUM, ix86_opt_enum): New.
20585 (ix86_valid_target_attribute_tree): Update option_strings
20586 handling. Handle fpmath as enum option.
20587 (ix86_can_inline_p): Update field names for function fpmath state.
20588 (ix86_expand_builtin): Update call to ix86_target_string.
20589 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
20590 (ix86_fpmath): Remove.
20591 * config/i386/t-i386 (i386.o): Update dependencies.
20592
20593 2011-05-16 Joseph Myers <joseph@codesourcery.com>
20594
20595 PR preprocessor/48677
20596 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
20597 from decoded_options[0], not from itself.
20598
20599 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
20600
20601 * config/i386/constraints.md (z): New constraint.
20602 * config/i386/i386.c (c): New mode attribute.
20603 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
20604 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
20605 constraint for operand 0.
20606 (*call_vzeroupper): Ditto.
20607 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
20608 (*call_rex64_ms_sysv_vzeroupper): Ditto.
20609 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
20610 Use "lzm" constraint for operand 0.
20611 (*call_pop_vzeroupper): Ditto.
20612 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
20613 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
20614 constraint for operand 0.
20615 (*sibcall_vzeroupper): Ditto.
20616 (*sibcall_rex64_ms_sysv): Ditto.
20617 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
20618 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
20619 *sibcall_pop_1. Use "Uz" constraint for operand 0.
20620 (*sibcall_pop_vzeroupper): Ditto.
20621 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
20622 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
20623 mode iterator. Use "<c>zm" constraint for operand 1.
20624 (*call_value_vzeroupper): Ditto.
20625 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
20626 for operand 1.
20627 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
20628 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
20629 *call_value_pop_1. Use "lzm" constraint for operand 1.
20630 (*call_value_pop_vzeroupper): Ditto.
20631 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
20632 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
20633 mode iterator. Use "Uz" constraint for operand 1.
20634 (*sibcall_value_vzeroupper): Ditto.
20635 (*sibcall_value_rex64_ms_sysv): Ditto.
20636 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
20637 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
20638 constraint for operand 1.
20639 (*sibcall_value_pop_vzeroupper): Ditto.
20640 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
20641 and "z" constraint for operand 2.
20642 (*tls_global_dynamic_32_gnu): Ditto.
20643 (*tls_local_dynamic_base_32_gnu): Ditto.
20644 (*tls_local_dynamic_base_64): Ditto.
20645 (*tls_local_dynamic_32_once): Ditto.
20646 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
20647 Update all callers.
20648 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
20649
20650 2011-05-16 Richard Guenther <rguenther@suse.de>
20651
20652 * gimple.c (gimple_types_compatible_p_1): Use names of the
20653 type itself, not its main variant.
20654 (iterative_hash_gimple_type): Likewise.
20655
20656 2011-05-16 Richard Guenther <rguenther@suse.de>
20657
20658 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
20659 always visit pointer target and function result and argument types.
20660
20661 2011-05-16 Jason Merrill <jason@redhat.com>
20662
20663 PR c++/48999
20664 * tree-inline.c (copy_statement_list): Put back recursion.
20665
20666 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
20667
20668 PR target/27663
20669 PR target/41076
20670 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
20671 * config/avr/avr.md ("*ior<mode>qi.byte0",
20672 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
20673
20674 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
20675
20676 PR target/45099
20677 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
20678 register is needed for a function argument.
20679
20680 2011-05-16 Richard Guenther <rguenther@suse.de>
20681
20682 * gimple.c (struct type_hash_pair): New type.
20683 (type_hash_pair_compare): New function.
20684 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
20685
20686 2011-05-16 Revital Eres <revital.eres@linaro.org>
20687
20688 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
20689
20690 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
20691
20692 * config/i386/i386.md (floating point move splitters): Fix
20693 usage of standard_80387_constant_p.
20694 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
20695
20696 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
20697
20698 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
20699
20700 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
20701
20702 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
20703 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
20704 (tree_ssa_lim_finalize): Likewise.
20705
20706 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
20707
20708 * config/i386/constraint.md (Yd, Yx): New register constraints.
20709 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
20710 Yd conditional register constraint.
20711 (*movtf_internal): Use standard_sse_constant_opcode.
20712 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
20713 Yx conditional register constraint.
20714 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
20715 Yd conditional register constraint. Use standard_sse_constant_p to
20716 check for valid SSE constants and call standard_sse_constant_opcode to
20717 output SSE insn.
20718 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
20719 constants and call standard_sse_constant_opcode to output SSE insn.
20720 * config/i386/i386.c (ix86_option_ovverride_internal): Set
20721 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
20722 optimize_size is set.
20723 (standard_sse_constant_opcode): Output conditional AVX insn templates.
20724
20725 2011-05-14 Tobias Burnus <burnus@net-b.de>
20726
20727 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
20728
20729 2011-05-13 Martin Jambor <mjambor@suse.cz>
20730
20731 * ipa-prop.c (ipa_cst_from_jfunc): New function.
20732 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
20733 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
20734 (evaluate_conditions_for_ipcp_clone): Removed.
20735 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
20736 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
20737 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
20738
20739 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
20740
20741 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
20742 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
20743 lieu of MAY_HAVE_DEBUG_STMTS.
20744 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
20745 debug statements if !MAY_HAVE_DEBUG_STMTS.
20746
20747 2011-05-13 Martin Thuresson <martint@google.com>
20748
20749 PR gcov-profile/47793
20750 * libgcov.c (gcov_exit): Support relative profile paths.
20751 * doc/invoke.texi (-fprofile-dir): Update for above change.
20752
20753 2011-05-13 Richard Guenther <rguenther@suse.de>
20754
20755 * gimple.c (gimple_canonical_types_compatible_p): Do not use
20756 type-pair caching, do not compare hashes.
20757
20758 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
20759
20760 PR middle-end/48965
20761 * tree-cfg.c (edge_to_cases_cleanup): Return true.
20762 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
20763
20764 2011-05-13 Kai Tietz <ktietz@redhat.com>
20765
20766 * gimplify.c (gimplify_expr): Make sure operand is boolified.
20767 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
20768 compatible type for TRUTH_NOT_EXPR.
20769
20770 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
20771
20772 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
20773 (ix86_hard_regno_mode_ok): Change return value to bool. Use
20774 can_create_pseudo_p ().
20775
20776 2011-05-13 Richard Guenther <rguenther@suse.de>
20777
20778 PR lto/48978
20779 * gimple.c (iterative_hash_gimple_type): Revert change in
20780 pointer target and function result and argument hashing.
20781
20782 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
20783
20784 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
20785 (*movxf_internal_nointeger): Ditto.
20786 (*movdf_internal_rex64): Ditto.
20787 (*movdf_internal): Ditto.
20788 (*movdf_internal_nointeger): Ditto.
20789 (*movsf_internal): Ditto.
20790 (sincos splitters): Use can_create_pseudo ().
20791
20792 2011-05-13 Joseph Myers <joseph@codesourcery.com>
20793
20794 * config/i386/i386-opts.h: New.
20795 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
20796 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
20797 ix86_section_threshold): Remove.
20798 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
20799 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
20800 OPT_mbranch_cost_.
20801 (ix86_option_override_internal): Don't decode strings for options
20802 other than -march=, -mtune= and -mfpmath=. Don't allow for
20803 __attribute__ uses in remaining diagnostics for options with
20804 string arguments. Don't check for integer arguments being negative.
20805 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
20806 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
20807 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
20808 ix86_branch_cost, ix86_section_threshold): Remove.
20809 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
20810 HeaderInclude.
20811 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
20812 but not Var.
20813 (masm=): Use Enum and Init.
20814 (asm_dialect): New Enum and EnumValue entries.
20815 (mbranch-cost=): Use UInteger.
20816 (mlarge-data-threshold=): Use UInteger and Init.
20817 (mcmodel=): Use Enum and Init.
20818 (cmodel): New Enum and EnumValue entries.
20819 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
20820 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
20821 mregparm=): Use UInteger.
20822 (mstringop-strategy=): Use Enum and Init.
20823 (stringop_alg): New Enum and EnumValue entries.
20824 (mtls-dialect=): Use Enum and Init.
20825 (tls_dialect): New Enum and EnumValue entries.
20826 (mabi=): Use Enum and Init.
20827 (calling_abi): New Enum and EnumValue entries.
20828 (mveclibabi=): Use Enum and Init.
20829 (ix86_veclibabi): New Enum and EnumValue entries.
20830
20831 2011-05-13 Nick Clifton <nickc@redhat.com>
20832
20833 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
20834 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
20835
20836 2011-05-13 Kai Tietz <ktietz@redhat.com>
20837
20838 PR middle-end/48984
20839 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
20840 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
20841 (gimple_boolify): Check for cast for boolean_type_node instead for
20842 BOOLEAN_TYPE.
20843
20844 2011-05-13 Richard Guenther <rguenther@suse.de>
20845
20846 PR tree-optimization/48172
20847 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
20848 multiplying by number of iterations for equal step.
20849 (vect_create_cond_for_alias_checks): Likewise.
20850
20851 2011-05-13 Andreas Schwab <schwab@redhat.com>
20852
20853 * configure.ac: Use AS_HELP_STRING throughout.
20854 * configure: Regenerate.
20855
20856 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
20857
20858 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
20859 (ix86_emit_restore_regs_using_mov): Likewise.
20860 (ix86_emit_restore_sse_regs_using_mov): Likewise.
20861
20862 2011-05-12 Anatoly Sokolov <aesok@post.ru>
20863
20864 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
20865 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
20866 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
20867 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
20868 RTX_OK_FOR_OLO10_P): ...here.
20869 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
20870 SYMBOLIC_CONST.
20871
20872 2011-05-12 Kai Tietz <ktietz@redhat.com>
20873
20874 * gimplify.c (gimple_boolify): Re-boolify expression
20875 arguments even if expression type is of kind BOOLEAN_TYPE.
20876 (gimplify_boolean_expr): Removed.
20877 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
20878 and XOR. Additional take care that we keep expression's type.
20879 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
20880 of TRUTH_AND|OR|XOR_EXPR.
20881
20882 2011-05-12 Jakub Jelinek <jakub@redhat.com>
20883
20884 PR tree-optimization/48975
20885 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
20886 on all bbs here and free and clear ifc_bbs at the end.
20887
20888 2011-05-12 Richard Guenther <rguenther@suse.de>
20889
20890 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
20891 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
20892 until after simple checks.
20893 (gimple_types_compatible_p): Likewise.
20894 (iterative_hash_gimple_type): Always hash pointer targets
20895 and function return and argument types.
20896 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
20897 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
20898 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
20899 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
20900 completely in the simple compare section.
20901 (gimple_register_canonical_type): Query the cache again after
20902 registering.
20903
20904 2011-05-12 Richard Guenther <rguenther@suse.de>
20905
20906 PR tree-optimization/48172
20907 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
20908 the number of iterations from the segment size calculation.
20909 (vect_create_cond_for_alias_checks): Adjust.
20910
20911 2011-05-12 Jakub Jelinek <jakub@redhat.com>
20912
20913 PR debug/48967
20914 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
20915 if validate_subreg fails.
20916
20917 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
20918
20919 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
20920 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
20921 early.
20922
20923 2011-05-12 DJ Delorie <dj@redhat.com>
20924
20925 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
20926 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
20927 created builtin into rx_builtins array.
20928 (rx_builtin_decl): New function.
20929 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
20930
20931 2011-05-12 DJ Delorie <dj@redhat.com>
20932 Nick Clifton <nickc@redhat.com>
20933
20934 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
20935 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
20936 (rx_is_legitimate_address): Add pre-decrement and post-increment
20937 addressing in HImode and QImode. Fix test for out of range
20938 REG+INT addressing.
20939 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
20940 (rx_align_for_label): Test label before extracting its usage count.
20941 (rx_adjust_insn_lengths): Fix selection of insn codes.
20942 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
20943
20944 2011-05-11 Jason Merrill <jason@redhat.com>
20945
20946 * tree.c (type_hash_canon): Use struct tree_type_non_common.
20947
20948 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
20949
20950 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
20951 reindent the subsequent block.
20952
20953 2011-05-11 Satoru Takabayashi <satorux@google.com>
20954 Paul Pluzhnikov <ppluzhnikov@google.com>
20955
20956 * doc/install.texi (Configuration): Document --with-linker-hash-style.
20957 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
20958 * config.in: Add LINKER_HASH_STYLE.
20959 * configure.ac: Add --with-linker-hash-style.
20960 * configure: Regenerate.
20961
20962 2011-05-11 Richard Guenther <rguenther@suse.de>
20963
20964 PR middle-end/48964
20965 * gimple.c (iterative_hash_canonical_type): Fix typo.
20966
20967 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
20968
20969 * config/i386/i386.c (legitimize_tls_address)
20970 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
20971 expanders directly for TARGET_GNU2_TLS. Determine pic and
20972 __tls_get_addr symbol reference here. Update call to
20973 gen_tls_global_dynamic_{32,64} for added arguments.
20974 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
20975 expanders directly for TARGET_GNU2_TLS. Determine
20976 __tls_get_addr symbol reference here. Update call to
20977 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
20978 unique UNSPEC REG_EQUIV to libcall block.
20979 (ix86_tls_get_addr): Declare static.
20980 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
20981 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
20982 Do not determine pic and __tls_get_addr symbol reference here. Do not
20983 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
20984 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
20985 (tls_global_dynamic_64): Add operand 2. Do not determine
20986 __tls_get_addr symbol reference here. Do not call
20987 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
20988 (tls_local_dynamic_base64): Ditto for operand 1.
20989
20990 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
20991
20992 * function.c (expand_function_start): Initialize stack_check_probe_note
20993 only if the generic stack checking mechanism is used.
20994
20995 2011-05-11 Richard Guenther <rguenther@suse.de>
20996
20997 PR tree-optimization/15256
20998 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
20999 (A & B) | C, combine (A op CST1) op CST2.
21000 (tree_ssa_forward_propagate_single_use_vars): Only bother to
21001 visit assigns that have uses.
21002
21003 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
21004
21005 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
21006 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
21007 (unpack_ts_type_common_value_fields): ...this. Update comment.
21008 (unpack_value_fields): Adjust for renaming.
21009 (lto_input_ts_type_tree_pointers): Split into...
21010 (lto_input_ts_type_common_tree_pointer): ...this and...
21011 (lto_input_ts_type_non_common_tree_pointers): ...this.
21012 (lto_input_tree_pointers): Adjust for above split.
21013 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
21014 (pack_ts_type_common_value_fields): ...this. Update comment.
21015 (lto_output_ts_type_tree_pointers): Split into...
21016 (lto_output_ts_type_common_tree_pointers): ...this and...
21017 (lto_output_ts_type_non_common_tree_pointers): ...this.
21018 (lto_output_tree_pointers): Adjust for above split.
21019 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
21020 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
21021 * stor-layout.c (vector_type_mode): Adjust location of mode field.
21022 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
21023 Define.
21024 (struct tree_type): Split into...
21025 (struct tree_type_common: ...this and...
21026 (struct tree_type_with_lang_specific): ...this and...
21027 (struct tree_type_non_common): ...this. Adjust accessor macros
21028 accordingly.
21029 (TYPE_VALUES_RAW): Define.
21030 (union tree_node): Update for above changes.
21031 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
21032 TS_TYPE_NON_COMMON.
21033 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
21034 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
21035 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
21036 * treestructu.def (TS_TYPE): Remove.
21037 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
21038 Define.
21039
21040 2011-05-11 Jakub Jelinek <jakub@redhat.com>
21041
21042 PR debug/48159
21043 * tree-ssa.c (reset_debug_uses): New function.
21044 * tree-flow.h (reset_debug_uses): New prototype.
21045 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
21046 * tree-loop-distribution.c (generate_loops_for_partition): Call
21047 reset_debug_uses on the stmts that will be removed. Keep around
21048 all debug stmts, don't count them as bits in partition bitmap.
21049 (generate_builtin): Don't count debug stmts or labels as bits in
21050 partition bitmap.
21051
21052 2011-05-11 Richard Guenther <rguenther@suse.de>
21053
21054 * gimple.c (gimple_type_hash_1): Merge with ...
21055 (gimple_type_hash): ... this.
21056 (gtc_visit): Remove mode parameter and simplify accordingly.
21057 (gimple_types_compatible_p_1): Likewise.
21058 (gimple_types_compatible_p): Likewise.
21059 (iterative_hash_gimple_type): Likewise.
21060 (visit): Likewise.
21061 (gimple_type_eq): Adjust.
21062
21063 2011-05-11 Revital Eres <revital.eres@linaro.org>
21064
21065 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
21066 enters the branch create an anti edge in the opposite direction
21067 to prevent the creation of reg-moves.
21068 * modulo-sched.c: Adjust comment to reflect the fact we are
21069 scheduling closing branch.
21070 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
21071 (stage_count): New field in struct partial_schedule.
21072 (calculate_stage_count): New function.
21073 (normalize_sched_times): Rename to reset_sched_times and handle
21074 incrementing the sched time of the nodes by a constant value
21075 passed as parameter.
21076 (duplicate_insns_of_cycles): Skip closing branch.
21077 (sms_schedule_by_order): Schedule closing branch.
21078 (ps_insn_find_column): Handle closing branch.
21079 (sms_schedule): Call reset_sched_times and adjust the code to
21080 support scheduling of the closing branch.
21081 (ps_insert_empty_row): Update calls to normalize_sched_times
21082 and rotate_partial_schedule functions.
21083
21084 2011-05-11 Richard Guenther <rguenther@suse.de>
21085
21086 PR middle-end/48953
21087 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
21088
21089 2011-05-11 Joseph Myers <joseph@codesourcery.com>
21090
21091 * opts.c (finish_options): Move warning settings from process_options.
21092 * toplev.c (process_options): Move warning settings to finish_options.
21093
21094 2011-05-11 Richard Guenther <rguenther@suse.de>
21095
21096 PR tree-optimization/18041
21097 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
21098 (simplify_bitwise_binary): ... this. Handle operand conversions
21099 by applying them to the result instead.
21100 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
21101
21102 2011-05-11 Richard Guenther <rguenther@suse.de>
21103
21104 * gimple.c (gimple_canonical_types_compatible_p): Split out
21105 from gimple_types_compatible_p and friends. Do not recurse
21106 to pointed-to types.
21107 (gimple_canonical_type_eq): Use it.
21108 (iterative_hash_canonical_type): Split out from
21109 iterative_hash_gimple_type and friends. Do not recurse
21110 to pointed-to types.
21111 (gimple_canonical_type_hash): Use it, allocate the hash here.
21112
21113 2011-05-11 Revital Eres <revital.eres@linaro.org>
21114
21115 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
21116 recognizing doloop.
21117
21118 2011-05-11 Revital Eres <revital.eres@linaro.org>
21119
21120 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
21121 instead of PREV_INSN.
21122
21123 2011-05-11 Revital Eres <revital.eres@linaro.org>
21124
21125 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
21126 * loop-doloop.c (doloop_condition_get): Likewise.
21127 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
21128 (doloop_end): New.
21129 * config/arm/arm.md (*addsi3_compare0): Remove "*".
21130
21131 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
21132
21133 * tree.def (CASE_LABEL_EXPR): Add an operand.
21134 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
21135
21136 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21137
21138 * c-decl.c (c_override_global_bindings_to_false): Remove.
21139 (global_bindings_p): Don't check
21140 c_override_global_bindings_to_false.
21141 * c-tree.h (c_override_global_bindings_to_false): Remove.
21142 * c-typeck.c (composite_type): Don't set
21143 c_override_global_bindings_to_false.
21144
21145 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21146
21147 PR target/48857, 48495
21148 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
21149 (VSX_MODE): Ditto.
21150 (VSX_MOVE_MODE): Ditto.
21151 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
21152 VSX vector types. Add V2DImode.
21153 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
21154 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
21155 (MODES_TIEABLE_P): Ditto.
21156
21157 * config/rs6000/rs6000.c (rs6000_emit_move): Use
21158 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
21159 VSX_VECTOR_MODE.
21160 (init_cumulative_args): Ditto.
21161 (rs6000_function_arg_boundary): Ditto.
21162 (rs6000_function_arg_advance_1): Ditto.
21163 (rs6000_function_arg): Ditto.
21164 (rs6000_function_ok_for_sibcall): Ditto.
21165 (emit_frame_save): Ditto.
21166 (rs6000_function_value): Ditto.
21167 (rs6000_libcall_value): Ditto.
21168
21169 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21170
21171 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
21172 i386/darwin-lib.h to $libgcc_tm_file.
21173 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
21174
21175 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21176
21177 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
21178
21179 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21180
21181 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
21182 * config/rs6000/rs6000-tables.opt: New file (generated).
21183 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
21184 rs6000/rs6000-tables.opt to extra_options.
21185 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
21186 * config/rs6000/rs6000.c (rs6000_select): Remove.
21187 (processor_target_table): Move contents to rs6000-cpus.def.
21188 (darwin_rs6000_override_options): Check
21189 global_options_set.x_rs6000_cpu_index instead of
21190 rs6000_select[1].string.
21191 (rs6000_option_override_internal): Likewise.
21192 (rs6000_handle_option): Don't assert that global structures are in
21193 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
21194 (rs6000_default_cpu): New variable.
21195 (rs6000_file_start): Set it instead of local default_cpu. Check
21196 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
21197 global_options_set.x_rs6000_tune_index instead of rs6000_select.
21198 (rs6000_darwin_file_start): Check rs6000_default_cpu and
21199 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
21200 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
21201 rs6000_select): Remove.
21202 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
21203 Remove.
21204 (mcpu=, mtune=): Use Var, Init, Enum and Save.
21205 * config/rs6000/t-rs6000
21206 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
21207 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21208 global_options_set.x_rs6000_cpu_index instead of
21209 rs6000_select[1].string.
21210 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
21211 global_options_set.x_rs6000_cpu_index instead of
21212 rs6000_select[1].string.
21213
21214 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21215
21216 * config.gcc (libgcc_tm_file): Define instead of including files
21217 from ../../libgcc/config/ in tm_file.
21218 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
21219 * configure: Regenerate.
21220 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
21221 libgcc_tm.h, cs-libgcc_tm.h): New.
21222 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
21223 (clean): Remove libgcc_tm.h.
21224 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
21225 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
21226 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
21227
21228 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
21229
21230 PR target/48896
21231 * config/avr/avr.c (avr_ret_register): Return unsigned int
21232 instead of int.
21233 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
21234 it to avr_libcall_value.
21235 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
21236 expand_expr.
21237 (avr_expand_binop_builtin): Ditto.
21238 (avr_expand_unop_builtin): Ditto.
21239
21240 2011-05-10 DJ Delorie <dj@redhat.com>
21241
21242 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
21243 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
21244 * config/rx/rx.c (rx_align_for_label): Add label and
21245 uses_threshold parameters. Do not align when the label is not
21246 used enough.
21247 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
21248
21249 2011-05-10 Richard Guenther <rguenther@suse.de>
21250
21251 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
21252 a series of conversions and apply foldings similar to what
21253 fold-const does.
21254 (tree_ssa_forward_propagate_single_use_vars): Call it.
21255
21256 2011-05-10 Jakub Jelinek <jakub@redhat.com>
21257
21258 PR tree-optimization/48611
21259 PR tree-optimization/48794
21260 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
21261 referenced from RESX or EH_DISPATCH arguments.
21262
21263 PR debug/48928
21264 * dfp.c (decimal_to_decnumber): Handle conversion from
21265 dconst{1,2,m1,half}.
21266
21267 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21268
21269 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
21270 for !flag_prefer_avx128.
21271 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
21272
21273 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
21274
21275 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
21276 (fold_ternary_loc): Use expr_location_or.
21277
21278 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
21279
21280 PR debug/48853
21281 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
21282 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
21283 Pmode and mem_mode is not VOIDmode.
21284
21285 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
21286
21287 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
21288 TYPE_QUAL_RESTRICT): Convert to enum.
21289
21290 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21291
21292 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
21293 (const_pow2_1_to_8_operand): Ditto.
21294 (const_pow2_1_to_128_operand): Ditto.
21295 (const_pow2_1_to_32768_operand): Ditto.
21296 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
21297 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
21298 in insn constraint to check integer value of operand 3.
21299 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
21300
21301 (PINSR_MODE): New mode iterator.
21302 (sse2p4_1): New mode attribute.
21303 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
21304 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
21305 iterator. Use const_int_operand instead of
21306 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
21307 exact_log2 in insn constraint to check integer value of operand 3.
21308
21309 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21310
21311 * config/i386/sse.md (blendbits): Remove mode attribute.
21312 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21313 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21314 Check integer value of operand 3 in insn constraint.
21315
21316 2011-05-09 Richard Guenther <rguenther@suse.de>
21317
21318 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
21319 for diagnostics.
21320 (lto_symtab_merge): Likewise. Do not register types here.
21321 (lto_symtab_merge_decls_2): Likewise.
21322 (lto_symtab_merge_decls_1): Likewise.
21323 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
21324 * gimple.c (enum gtc_mode): Declare.
21325 (gimple_types_compatible_p): Make static.
21326
21327 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21328
21329 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
21330 temporary register to match Pmode.
21331
21332 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21333
21334 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
21335 and *vec_concatv4si_1_avx.
21336
21337 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21338
21339 PR rtl-optimization/48927
21340 * ira-conflicts.c (commutative_constraint_p): Use
21341 recog_data.alternative_enabled_p to disable alternatives where
21342 "enabled" attribute is false.
21343 (get_dup_num): Ditto.
21344 * ira-lives.c (single_reg_class): Ditto.
21345 (ira_implicitly_set_insn_hard_regs): Ditto.
21346
21347 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
21348
21349 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
21350 (dataflow_set_preserve_mem_locs): Likewise.
21351
21352 2011-05-09 Philipp Thomas <pth@suse.de>
21353
21354 * config/mep/mep.c (mep_validate_vliw): Syntax description
21355 should not be translated.
21356
21357 2011-05-09 Joseph Myers <joseph@codesourcery.com>
21358
21359 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
21360 * config/mips/mips-tables.opt: New file (generated).
21361 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
21362 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
21363 MIPS_ARCH_OPTION_NATIVE): Define.
21364 * config/mips/mips.c (mips_cpu_info_table): Move contents to
21365 mips-cpus.def.
21366 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
21367 mips_parse_cpu): Remove.
21368 (mips_cpu_info_from_opt, mips_default_arch): New.
21369 (mips_handle_option): Don't assert that global structures are in
21370 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
21371 (mips_option_override): Use new variables and functions to set
21372 state of these options. Use strcmp to check for individual CPU names.
21373 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
21374 definition.
21375 * config/mips/mips.opt (march=): Use ToLower and Enum.
21376 (mips): Use ToLower, Enum and Var.
21377 (mtune=): Use ToLower and Enum.
21378 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
21379
21380 2011-05-08 Jan Hubicka <jh@suse.cz>
21381
21382 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
21383 Arrange type pairs to be UID ordered.
21384 (gimple_lookup_type_leader): Make inline.
21385
21386 2011-05-09 Nick Clifton <nickc@redhat.com>
21387
21388 PR target/48899
21389 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
21390 PROCESSOR_DEFAULT.
21391
21392 PR target/48897
21393 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
21394 variable 's'.
21395
21396 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
21397
21398 * combine.c (simplify_comparison): Abstract out parts into...
21399 (simplify_compare_const): ... new function.
21400 (try_combine): Generalize parallel arithmetic/compare combining
21401 to call simplify_compare_const() and CANONICALIZE_COMPARE().
21402
21403 2011-05-08 Jan Hubicka <jh@suse.cz>
21404
21405 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
21406 (cgraph_create_virtual_clone): Call hooks once virtual clone
21407 is finished.
21408 * cgraph.h (cgraph_clone_node): Update prototype.
21409 * ipa-cp.c (ipcp_estimate_growth): Use
21410 estimate_ipcp_clone_size_and_time.
21411 * ipa-inline-transform.c (clone_inlined_nodes): Update.
21412 * lto-cgraph.c (input_node): Update.
21413 * ipa-inline.c (recursive_inlining): Update.
21414 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
21415 (evaluate_conditions_for_known_args): Break out from ...
21416 (evaluate_conditions_for_edge): ... here.
21417 (evaluate_conditions_for_ipcp_clone): New function.
21418 (inline_node_duplication_hook): Update clone summary based
21419 on parameter map.
21420 (estimate_callee_size_and_time): Rename to ...
21421 (estimate_node_size_and_time): take NODE instead of EDGE;
21422 take POSSIBLE_TRUTHS as argument.
21423 (estimate_callee_size_and_time): Update.
21424 (estimate_ipcp_clone_size_and_time): New function.
21425 (do_estimate_edge_time): Update.
21426
21427 2011-05-08 Richard Guenther <rguenther@suse.de>
21428
21429 PR middle-end/48908
21430 PR middle-end/48905
21431 * expmed.c (expand_shift_1): Compute adjusted constant shift
21432 amount manually.
21433
21434 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
21435
21436 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
21437
21438 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
21439
21440 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
21441
21442 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
21443
21444 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
21445
21446 2011-05-07 Jan Hubicka <jh@suse.cz>
21447
21448 * ipa-inline-transform.c (inline_call): Account when program size
21449 decreases.
21450 * ipa-inline.c (relative_time_benefit): New function.
21451 (edge_badness): Reorganize to be power 2 based; fix thinko when
21452 computing badness for negative growth; update comments to match
21453 reality; better dumps.
21454
21455 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
21456
21457 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
21458 type to bool and adjust comment.
21459 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
21460 (fold_mathfn_compare): Remove calls to global_bindings_p.
21461 (fold_inf_compare): Likewise.
21462 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
21463 * c-tree.h (global_bindings_p): Adjust prototype.
21464 * c-decl.c (global_bindings_p): Return bool and simplify.
21465
21466 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
21467
21468 PR tree-optimization/48837
21469 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
21470 when accumulator transformation is performed.
21471
21472 2011-05-06 Jan Hubicka <jh@suse.cz>
21473
21474 * i386.h (ix86_tune_indices): Add
21475 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
21476 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
21477 * i386.c (initial_ix86_tune_features): Add
21478 X86_SOFTARE_PREFETCHING_BENEFICIAL.
21479 (software_prefetching_beneficial_p): Remove predicate.
21480 (ix86_option_override_internal): Use new macro.
21481
21482 2011-05-06 Jan Hubicka <jh@suse.cz>
21483
21484 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
21485
21486 2011-05-06 Jan Hubicka <jh@suse.cz>
21487
21488 * cgraph.c (cgraph_add_thunk): Create real function node instead
21489 of alias node; finalize it and mark needed/reachale; arrange visibility
21490 to be right and add it into the corresponding same comdat group list.
21491 (dump_cgraph_node): Dump thunks.
21492 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
21493 cgraph_function_with_gimple_body_p,
21494 cgraph_first_function_with_gimple_body,
21495 cgraph_next_function_with_gimple_body): New functions.
21496 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
21497 New macros.
21498 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
21499 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21500 * cgraphunit.c (cgraph_finalize_function): Only look into possible
21501 devirtualization when optimizing.
21502 (verify_cgraph_node): Verify thunks.
21503 (cgraph_analyze_function): Analyze thunks.
21504 (cgraph_mark_functions_to_output): Output thunks only in combination
21505 with function they are assigned to.
21506 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
21507 alias into normal node.
21508 (assemble_thunks): New functoin.
21509 (cgraph_expand_function): Use it.
21510 * lto-cgraph.c (lto_output_node): Stream thunks.
21511 (input_overwrite_node): Stream in thunks.
21512 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
21513 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
21514 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
21515 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
21516 (inline_analyze_function): Do not care about thunk jump functions.
21517 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
21518 * ipa-prop.c (ipa_prop_write_jump_functions): Use
21519 cgraph_function_with_gimple_body_p.
21520 * passes.c (do_per_function_toporder): Use
21521 cgraph_function_with_gimple_body_p.
21522 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
21523 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
21524 (function_called_by_processed_nodes_p): Likewise.
21525
21526 2011-05-06 Joseph Myers <joseph@codesourcery.com>
21527
21528 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
21529 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
21530 entries.
21531 (mabi=): Replace with separate entries for mabi=altivec,
21532 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
21533 mabi=ieeelongdouble and mabi=ibmlongdouble.
21534 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21535 check for -mabi=spe without SPE ABI support here.
21536 (rs6000_handle_option): Replace OPT_mabi_ handling with
21537 OPT_mabi_altivec and OPT_mabi_spe handling.
21538
21539 2011-05-06 Cary Coutant <ccoutant@google.com>
21540
21541 * dwarf2out.c (contains_subprogram_definition): New function.
21542 (should_move_die_to_comdat): Call it.
21543
21544 2011-05-06 Jeff Law <law@redhat.com>
21545
21546 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
21547 remove_ctrl_stmt_and_useless_edges.
21548 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
21549 (fixup_template_block, thread_single_edge): Likewise.
21550 (mark_threaded_blocks): Use THREAD_TARGET.
21551
21552 2011-05-06 Alan Modra <amodra@gmail.com>
21553
21554 PR target/48900
21555 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21556 const0_rtx as the arg to the dummy __tls_get_addr libcall.
21557
21558 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
21559
21560 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
21561 constraint modifier to "r".
21562
21563 2011-05-06 Joseph Myers <joseph@codesourcery.com>
21564
21565 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
21566 fall through for OPT_mcmodel_.
21567
21568 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21569
21570 * config/s390/s390.c (s390_asm_trampoline_template): Comment
21571 instruction sizes.
21572 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
21573
21574 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21575
21576 PR target/47930
21577 * config/arm/arm.opt (marm): Document it.
21578 (mthumb): Reject negative variant.
21579
21580 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
21581
21582 PR target/48898
21583 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21584 Fix typo in "ccvt" variable name.
21585
21586 2011-05-06 Tristan Gingold <gingold@adacore.com>
21587
21588 PR target/48895
21589 * config/vms/vms-ar.c (main): Remove cwd variable.
21590
21591 2011-05-06 Jakub Jelinek <jakub@redhat.com>
21592
21593 PR debug/48902
21594 * var-tracking.c (prepare_call_arguments): Move else before #endif.
21595
21596 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
21597
21598 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
21599 * gimplify.c (gimplify_switch_expr): Likewise.
21600 * omp-low.c (expand_omp_sections): Likewise.
21601 * tree-eh.c (lower_try_finally_switch): Likewise.
21602 (lower_eh_dispatch): Likewise.
21603 * tree.h (build_case_label): Declare.
21604 * tree.c (build_case_label): Define.
21605
21606 2011-05-05 Jason Merrill <jason@redhat.com>
21607
21608 PR c++/40975
21609 * tree-inline.c (copy_tree_r): Use copy_statement_list.
21610 (copy_statement_list): Don't recurse.
21611 * stor-layout.c (copy_self_referential_tree_r): Don't allow
21612 STATEMENT_LIST.
21613
21614 2011-05-05 Joseph Myers <joseph@codesourcery.com>
21615
21616 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
21617 through from -mfpu= handling.
21618 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
21619
21620 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
21621
21622 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
21623 POST_MODIFY.
21624
21625 2011-05-05 Steve Ellcey <sje@cup.hp.com>
21626
21627 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
21628 for 11.31.
21629 (hppa[12]*-*-hpux11*): Ditto.
21630 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
21631 * config/ia64/hpux-unix2003.h: New.
21632 * config/pa/pa-hpux1131.opt: New.
21633 * config/pa/pa-hpux1131.h: New.
21634 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
21635 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
21636 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
21637
21638 2011-05-05 Jakub Jelinek <jakub@redhat.com>
21639
21640 PR debug/48853
21641 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
21642 instead of mode as 3rd argument to recursive call.
21643 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
21644 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
21645 VOIDmode.
21646 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
21647 don't give up if mode is Pmode and mem_mode is not VOIDmode.
21648 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
21649 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
21650
21651 2011-05-05 Julian Brown <julian@codesourcery.com>
21652
21653 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
21654 parenthesis in D-register case.
21655
21656 2011-05-05 Joseph Myers <joseph@codesourcery.com>
21657
21658 * opt-functions.awk (var_type_struct): Handle Enum options.
21659 * optc-gen.awk: Don't check range of variables of character type.
21660 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
21661 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
21662 rs6000_sdata_name, rs6000_explicit_options): Remove.
21663 (rs6000_option_override_internal): Check for -malign-power here.
21664 Use global_options_set instead of rs6000_explicit_options.
21665 (rs6000_parse_fpu_option): Remove.
21666 (rs6000_handle_option): Access variables via opts and opts_set
21667 pointers. Use error_at and warning_at. Add fall-through
21668 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
21669 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
21670 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
21671 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
21672 here. Don't use rs6000_parse_fpu_option.
21673 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
21674 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
21675 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
21676 (mrecip=): Use Var.
21677 (mspe): Use Var and Save.
21678 (mtraceback=): Use Enum and Var.
21679 (rs6000_traceback_type): New Enum and EnumValue entries.
21680 (mfloat-gprs=): Use Enum, Var and Save.
21681 (rs6000_float_gprs): New Enum and EnumValue entries.
21682 (mlong-double-): use Var and Save.
21683 (msched-costly-dep=, minsert-sched-nops=): Use Var.
21684 (malign-): Use Enum and Var.
21685 (rs6000_alignment_flags): New Enum and EnumValue entries.
21686 (mfpu=): Use Enum.
21687 (fpu_type_t): New Enum and EnumValue entries.
21688 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21689 global_options_set instead of rs6000_explicit_options.
21690 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21691 global_options_set instead of rs6000_explicit_options.
21692 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21693 global_options_set instead of rs6000_explicit_options.
21694 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
21695 global_options_set instead of rs6000_explicit_options.
21696 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
21697 global_options_set instead of rs6000_explicit_options.
21698 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21699 global_options_set instead of rs6000_explicit_options.
21700 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
21701 definition.
21702 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21703 global_options_set instead of rs6000_explicit_options.
21704 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
21705 (rs6000_cmodel): New Enum and EnumValue entries.
21706 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
21707 global_options_set instead of rs6000_explicit_options.
21708 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
21709 (mtls-size=): Use Enum and Var.
21710 (rs6000_tls_size): New Enum and EnumValue entries.
21711
21712 2011-05-05 Michael Matz <matz@suse.de>
21713
21714 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
21715 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
21716 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
21717 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
21718 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
21719 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
21720 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
21721 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
21722 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
21723 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
21724 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
21725 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
21726 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
21727 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
21728 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
21729 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
21730
21731 2011-05-05 Richard Guenther <rguenther@suse.de>
21732
21733 * expmed.c (expand_variable_shift): Rename to ...
21734 (expand_shift_1): ... this. Take an expanded shift amount.
21735 For rotates recurse directly not building trees for the shift amount.
21736 (expand_variable_shift): Wrap around expand_shift_1.
21737 (expand_shift): Adjust.
21738
21739 2011-05-05 Jakub Jelinek <jakub@redhat.com>
21740
21741 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
21742
21743 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
21744
21745 * tree.h (get_pending_sizes): Remove prototype.
21746 (put_pending_size): Likewise.
21747 (put_pending_sizes): Likewise.
21748 * stor-layout.c (pending_sizes): Delete.
21749 (get_pending_sizes): Likewise.
21750 (put_pending_size): Likewise.
21751 (put_pending_sizes): Likewise.
21752 (variable_size): Do not call put_pending_size and tidy up.
21753 * function.h (struct function): Remove dont_save_pending_sizes_p.
21754 * lto-streamer-in.c (input_function): Do not stream it.
21755 * lto-streamer-out.c (output_function): Likewise.
21756 * tree-inline.c (initialize_cfun): Do not copy it.
21757 * c-decl.c (store_parm_decls): Do not set it.
21758 * omp-low.c (create_task_copyfn): Likewise.
21759 * tree-optimize.c (tree_rest_of_compilation): Likewise.
21760
21761 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
21762
21763 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
21764 conditions.
21765 (*movdf_internal): Ditto.
21766 (*movdf_internal_nointeger): Ditto.
21767 (*movsf_internal): Ditto.
21768
21769 2011-05-05 Joseph Myers <joseph@codesourcery.com>
21770
21771 * c-decl.c (finish_decl): Don't call get_pending_sizes.
21772 (grokparm): Add parameter expr. Pass it to grokdeclarator.
21773 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
21774 (c_variable_size): Remove.
21775 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
21776 call put_pending_sizes.
21777 (get_parm_info): Add parameter expr. Use it to set
21778 arg_info->pending_sizes.
21779 (store_parm_decls): Use arg_info->pending_sizes instead or calling
21780 get_pending_sizes.
21781 * c-parser.c (c_parser_parms_declarator): Update call to
21782 c_parser_parms_list_declarator.
21783 (c_parser_parms_list_declarator): Take parameter expr. Update
21784 call to push_parm_decl. Update recursive call. Don't call
21785 get_pending_sizes. Update calls to get_parm_info.
21786 (c_parser_objc_method_definition): Update calls to
21787 c_parser_objc_method_decl and objc_start_method_definition.
21788 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
21789 (c_parser_objc_method_decl): Add parameter expr. Update call to
21790 grokparm.
21791 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
21792 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
21793 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
21794
21795 2011-05-05 Michael Hope <michael.hope@linaro.org>
21796
21797 PR pch/45979
21798 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
21799 __ARM_EABI__ hosts.
21800
21801 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21802
21803 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21804 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
21805 (spu_output_mi_thunk): New function.
21806
21807 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21808
21809 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
21810 targetm.asm_out.print_operand.
21811 * config/sol2.c: Include target.h.
21812
21813 2011-05-04 Jan Hubicka <jh@suse.cz>
21814
21815 * ipa-inline.c (reset_edge_caches): New function.
21816 (update_caller_keys): Add check_inlinablity_for; do not
21817 reset edge caches; remove now unnecesary loop.
21818 (update_callee_keys): Add comments; reset node_growth_cache of callee.
21819 (update_all_callee_keys): Likewise.
21820 (inline_small_functions): Sanity check cache; update code
21821 recomputing it.
21822
21823 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
21824
21825 PR rtl-optimization/47612
21826 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
21827 as the last insn of the sequence to be moved.
21828
21829 2011-05-04 Tobias Burnus <burnus@net-b.de>
21830
21831 PR fortran/48864
21832 * doc/invoke.texi (Ofast): Document that it
21833 enables Fortran's -fno-protect-parens.
21834
21835 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
21836
21837 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
21838
21839 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
21840
21841 * stor-layout.c (variable_size): Do not issue errors.
21842
21843 2011-05-04 Richard Guenther <rguenther@suse.de>
21844
21845 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
21846 for array-ref indices.
21847 (tree_coverage_counter_addr): Likewise.
21848 (build_fn_info_type): Use size_int for index types.
21849 (build_gcov_info): Likewise.
21850
21851 2011-05-04 Richard Guenther <rguenther@suse.de>
21852
21853 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
21854 to build_int_cst.
21855 * c-typeck.c (really_start_incremental_init): Use bitsize_int
21856 for constructor indices.
21857 (push_init_level): Likewise.
21858
21859 2011-05-04 Richard Guenther <rguenther@suse.de>
21860
21861 * explow.c (promote_mode): Move variable declarations before code.
21862
21863 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
21864
21865 * tree.h (build_function_type_array): Declare.
21866 (build_varargs_function_type_array): Declare.
21867 (build_function_type_vec, build_varargs_function_type_vec): Define.
21868 * tree.c (build_function_type_array_1): New function.
21869 (build_function_type_array): New function.
21870 (build_varargs_function_type_array): New function.
21871
21872 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
21873
21874 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
21875 before setting STMT_VINFO_TYPE.
21876
21877 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21878
21879 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
21880 instead of spu_pass_by_reference.
21881
21882 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21883
21884 * calls.c (emit_library_call_value_1): Invoke
21885 promote_function_mode hook on libcall arguments.
21886 * explow.c (promote_function_mode, promote_mode): Handle TYPE
21887 argument being NULL.
21888 * targhooks.c (default_promote_function_mode): Lisewise.
21889 * config/s390/s390.c (s390_promote_function_mode): Likewise.
21890 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
21891
21892 * doc/tm.texi: Document that TYPE argument might be NULL.
21893
21894 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
21895
21896 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
21897
21898 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
21899
21900 From Bernd Schmidt
21901 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
21902
21903 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21904
21905 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
21906 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
21907 Move ...
21908 * mips-tfile.c: ... here.
21909 Don't include coretypes.h, tm.h, filenames.h.
21910 (saber_stop): Remove definition and all calls.
21911 [__SABER__]: Remove.
21912 (__LINE__): Remove default.
21913 (Size_t, Ptrdiff_t): Remove definitions.
21914 Replace by size_t, ptrdiff_t.
21915 [!MIPS_DEBUGGING_INFO]: Remove.
21916 (SHASH_SIZE, THASH_SIZE): Remove defaults.
21917 (progname): Add const.
21918 (STATIC): Remove.
21919 Replace all uses by static.
21920 (ALIGN_SYMTABLE_OFFSET): Remove default.
21921 * mips-tdump.c: Don't include coretypes.h, tm.h.
21922 Remove !MIPS_IS_STAB guard.
21923 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
21924 $(TM_H), filenames.h dependencies.
21925 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
21926
21927 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
21928
21929 From Jie Zhang
21930 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
21931 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
21932
21933 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
21934
21935 From Bernd Schmidt
21936 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
21937 account and save/restore RETS.
21938 (PROFILE_BEFORE_PROLOGUE): Define.
21939 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
21940 the push insn to use predecrement.
21941
21942 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
21943
21944 From Jie Zhang
21945 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
21946
21947 2011-05-04 Nick Clifton <nickc@redhat.com>
21948
21949 * config/mn10300/mn10300.c: Include cfgloop.h.
21950 (DUMP): New macro.
21951 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
21952 Lcc or a FLcc insn into the instruction stream.
21953 (mn10300_block_contains_call): New function. Returns true if the
21954 given basic block contains a CALL insn.
21955 (mn10300_loop_contains_call_insn): New function. Returns true if
21956 the given loop contains a CALL insn.
21957 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
21958 to use the SETLB and Lcc or FLcc insns.
21959 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
21960 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
21961 * config/mn10300/mn10300.opt (msetlb): New option. Used to
21962 disable the SETLB optimization.
21963 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
21964 __SETLB__ or __NO_SETLB__.
21965 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
21966 (movsf_internal): Handle MDR register.
21967 (cmpsi): Make visible.
21968 (setlb): New pattern.
21969 (Lcc): New pattern.
21970 (FLcc): New pattern.
21971
21972 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
21973
21974 PR target/48860
21975 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
21976 for reg<->xmm moves.
21977 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
21978 (vec_concatv2di_rex64_sse): Ditto.
21979 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
21980 (*vec_extractv2di_1_rex64): Ditto.
21981
21982 Revert:
21983 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21984
21985 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
21986 reg<->xmm moves.
21987 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
21988
21989 2011-05-04 Richard Guenther <rguenther@suse.de>
21990
21991 * tree.h (int_const_binop): Remove notrunc argument.
21992 * fold-const.c (int_const_binop): Remove notrunc argument. Always
21993 create integer constants that are properly truncated.
21994 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
21995 (const_binop): Remove zero notrunc argument to int_const_binop.
21996 (size_binop_loc): Likewise.
21997 (fold_div_compare): Likewise.
21998 (maybe_canonicalize_comparison_1): Likewise.
21999 (fold_comparison): Likewise.
22000 (fold_binary_loc): Likewise.
22001 (multiple_of_p): Likewise.
22002 * expr.c (store_constructor): Likewise.
22003 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22004 (maybe_fold_stmt_addition): Likewise.
22005 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
22006 * stor-layout.c (layout_type): Likewise.
22007 * tree-data-ref.c (tree_fold_divides_p): Likewise.
22008 * tree-sra.c (build_ref_for_offset): Likewise.
22009 (build_user_friendly_ref_for_offset): Likewise.
22010 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
22011 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22012 * tree-ssa-loop-niter.c (inverse): Likewise.
22013 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22014 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
22015 * tree-switch-conversion.c (check_range): Likewise.
22016 (build_constructors): Likewise.
22017 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
22018 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
22019 (extract_range_from_assert): Likewise.
22020 (vrp_int_const_binop): Likewise.
22021 (extract_range_from_binary_expr): Likewise.
22022 (extract_range_from_unary_expr): Likewise.
22023 (check_array_ref): Likewise.
22024 (find_case_label_range): Likewise.
22025 (simplify_div_or_mod_using_ranges): Likewise.
22026 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
22027 comparing case labels for merging.
22028
22029 2011-05-03 Mark Wielaard <mjw@redhat.com>
22030
22031 * dwarf2out.c (debug_str_hash_forced): Removed.
22032 (gen_label_for_indirect_string): Removed.
22033 (get_debug_string_label): Removed.
22034 (AT_string_form): Generate label directly.
22035 (output_indirect_string): Test indirect_string_node for
22036 DW_FORM_strp instead of checking label and refcount.
22037 (prune_indirect_string): Removed.
22038 (prune_unused_types): Don't check debug_str_hash_forced or
22039 call prune_indirect_string.
22040
22041 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
22042
22043 PR other/48093
22044 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
22045
22046 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
22047
22048 PR debug/47994
22049 PR debug/47919
22050 * combine.c (try_combine): Skip debug insns at m_split tests.
22051
22052 2011-04-26 Mark Wielaard <mjw@redhat.com>
22053
22054 PR42288
22055 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
22056 when info_section_emitted.
22057
22058 2011-05-03 Joseph Myers <joseph@codesourcery.com>
22059
22060 * config/mips/mips-opts.h: New.
22061 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
22062 to mips-opts.h.
22063 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
22064 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
22065 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
22066 via opts pointer.
22067 * config/mips/mips.h (enum mips_code_readable_setting): Move to
22068 mips-opts.h.
22069 (mips_abi, mips_code_readable): Don't declare.
22070 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
22071 (mabi=): Use Enum and Var.
22072 (mips_abi): New Enum and EnumValue entries.
22073 (mcode-readable=): Use Enum and Var.
22074 (mips_code_readable_setting): New Enum and EnumValue entries.
22075 (mr10k-cache-barrier=): Use Enum and Var.
22076 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
22077
22078 2011-05-03 Jan Hubicka <jh@suse.cz>
22079
22080 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
22081 replace hash by pointer map.
22082 (cgraph_node_set_element_def, cgraph_node_set_element,
22083 const_cgraph_node_set_element, varpool_node_set_element_def,
22084 varpool_node_set_element, const_varpool_node_set_element): Remove.
22085 (free_cgraph_node_set, free_varpool_node_set): New function.
22086 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
22087 * tree-emutls.c: Free varpool node set.
22088 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
22089 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22090 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
22091 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22092 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
22093 Move here from ipa.c; implement using pointer_map
22094 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
22095 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
22096 debug_cgraph_node_set, varpool_node_set_new,
22097 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
22098 dump_varpool_node_set, debug_varpool_node_set):
22099 Move to ipa-uitls.c.
22100 * passes.c (ipa_write_summaries): Update.
22101
22102 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22103
22104 From Mike Frysinger:
22105 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
22106 bf542/bf544/bf547/bf548/bf549.
22107
22108 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
22109
22110 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
22111
22112 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22113
22114 From Bernd Schmidt:
22115 * config/bfin/bfin.md (MOVCC): New mode_macro.
22116 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
22117 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
22118 comments from generated assembly.
22119
22120 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22121
22122 From Bernd Schmidt
22123 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
22124 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
22125 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
22126 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
22127 * config/bfin/lib1funcs.asm (___muldi3): New function.
22128
22129 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22130
22131 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
22132 build_function_type_list instead of build_function_type.
22133 Rearrange initialization of `args' to do so.
22134
22135 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22136
22137 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
22138 instead of build_function_type.
22139
22140 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22141
22142 * config/rs6000/rs6000.c (spe_init_builtins): Call
22143 build_function_type_list instead of build_function_type.
22144 (paired_init_builtins, altivec_init_builtins): Likewise.
22145 (builtin_function_type): Likewise.
22146
22147 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22148
22149 * config/sh/sh.c (sh_media_init_builtins): Call
22150 build_function_type_list instead of build_function_type.
22151
22152 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22153
22154 * config/sparc/sparc.c (sparc_file_end): Call
22155 build_function_type_list instead of build_function_type.
22156
22157 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22158
22159 * config/alpha/alpha.c (alpha_init_builtins): Call
22160 build_function_type_list instead of build_function_type.
22161
22162 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22163
22164 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
22165 build_function_type_list instead of build_function_type.
22166
22167 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22168
22169 * config/iq2000/i2000.c (iq2000_init_builtins): Call
22170 build_function_type_list instead of build_function_type.
22171 Delete `endlink' variable.
22172
22173 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22174
22175 * config/avr/avr.c (avr_init_builtins): Call
22176 build_function_type_list instead of build_function_type.
22177
22178 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22179
22180 * config/picochip/picochip.c (picochip_init_builtins): Call
22181 build_function_type_list instead of build_function_type.
22182 Delete `endlink' variable.
22183
22184 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
22185
22186 * config/bfin/bfin.c (bfin_init_builtins): Call
22187 build_function_type_list instead of build_function_type.
22188
22189 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22190
22191 From Bernd Schmidt
22192 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
22193 that's not CONST_INT. Seemingly redundant check is due to PR39768.
22194
22195 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22196
22197 From Jie Zhang:
22198 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
22199 libbffastfp overrides libgcc when -mfast-fp.
22200
22201 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22202
22203 Originally from Bernd Schmidt
22204 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
22205 * config/bfin/bfin.c (override_options): Test it and error if
22206 TARGET_FDPIC.
22207
22208 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
22209
22210 Originally From Bernd Schmidt
22211 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
22212 FD-PIC.
22213
22214 2011-05-03 Jeff Law <law@redhat.com>
22215
22216 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
22217 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
22218 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
22219 than accessing AUX field directly. Free the AUX field before
22220 clearing it.
22221 (thread_block, thread_through_loop_header): Likewise.
22222 (thread_single_edge, mark_threaded_blocks): Likewise.
22223 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
22224 (register_jump_thread): Do not attempt to thread to a NULL edge.
22225
22226 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
22227
22228 * function.c (init_function_start): Call decide_function_section.
22229 * varasm.c (decide_function_section): New function.
22230 (assemble_start_function): When not using
22231 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
22232 or first_function_block_is_cold.
22233 * rtl.h (decide_function_section): Declare.
22234
22235 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
22236 Jakub Jelinek <jakub@redhat.com>
22237
22238 PR target/48774
22239 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
22240 only succeed if req_mode is the same as set_mode.
22241
22242 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
22243
22244 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
22245 * genemit.c (gen_exp): Handle RETURN.
22246 * emit-rtl.c (verify_rtx_sharing): Likewise.
22247 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
22248 * rtl.c (copy_rtx): RETURN is shared.
22249 * rtl.h (enum global_rtl_index): Add GR_RETURN.
22250 (ret_rtx): New.
22251 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
22252 * config/s390/s390.c (s390_emit_epilogue): Likewise.
22253 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
22254 * config/cris/cris.c (cris_expand_return): Likewise.
22255 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
22256 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
22257 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
22258 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
22259 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
22260 Likewise.
22261 * config/v850/v850.c (expand_epilogue): Likewise.
22262 * config/bfin/bfin.c (bfin_expand_call): Likewise.
22263 * config/arm/arm.md (epilogue): Likewise.
22264 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
22265 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
22266 variable to ret_reg.
22267
22268 2011-05-03 Richard Guenther <rguenther@suse.de>
22269
22270 PR lto/48846
22271 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
22272 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
22273 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22274
22275 2011-05-03 Richard Guenther <rguenther@suse.de>
22276
22277 * c-decl.c (grokdeclarator): Instead of looking at
22278 TREE_OVERFLOW check if the constant fits in the index type.
22279
22280 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
22281
22282 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
22283 (vec_store_lanes<mode><mode>): Likewise.
22284
22285 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
22286
22287 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
22288 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
22289 convert_optab_index values.
22290 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
22291 * genopinit.c (optabs): Initialize the new optabs.
22292 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
22293 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
22294 (expand_STORE_LANES): New functions.
22295 * tree.h (build_array_type_nelts): Declare.
22296 * tree.c (build_array_type_nelts): New function.
22297 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
22298 (vect_model_load_cost): Likewise.
22299 (vect_store_lanes_supported, vect_load_lanes_supported)
22300 (vect_record_strided_load_vectors): Declare.
22301 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
22302 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
22303 (vect_transform_strided_load): Split out statement recording into...
22304 (vect_record_strided_load_vectors): ...this new function.
22305 * tree-vect-stmts.c (create_vector_array, read_vector_array)
22306 (write_vector_array, create_array_ref): New functions.
22307 (vect_model_store_cost): Add store_lanes_p argument.
22308 (vect_model_load_cost): Add load_lanes_p argument.
22309 (vectorizable_store): Try to use store-lanes functions for
22310 interleaved stores.
22311 (vectorizable_load): Likewise load-lanes and loads.
22312 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
22313 to vect_model_store_cost.
22314 (vect_build_slp_tree): Likewise vect_model_load_cost.
22315
22316 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
22317
22318 * hooks.h (hook_bool_mode_uhwi_false): Declare.
22319 * hooks.c (hook_bool_mode_uhwi_false): New function.
22320 * target.def (array_mode_supported_p): New hook.
22321 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
22322 * doc/tm.texi: Regenerate.
22323 * stor-layout.c (mode_for_array): New function.
22324 (layout_type): Use it.
22325 * config/arm/arm.c (arm_array_mode_supported_p): New function.
22326 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
22327
22328 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
22329
22330 PR target/48723
22331 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
22332 for -fstack-check if the size to allocate is negative.
22333
22334 2011-05-02 Lawrence Crowl <crowl@google.com>
22335
22336 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
22337 (timevar_cond_start): New for starting a timer only when it is not
22338 already running.
22339 (timevar_cond_stop): New for stopping a timer when it was not already
22340 running.
22341
22342 * timevar.c (timevar_stop): Enable start/stop timers to start again.
22343 (timevar_cond_start): New as above.
22344 (timevar_cond_stop): New as above.
22345
22346 * timevar.def: Add start/stop timers for compiler phases,
22347 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
22348 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
22349 and TV_PHASE_FINALIZE.
22350 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
22351 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
22352 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
22353 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
22354 Make unused TV_OVERLOAD into a start/stop timer.
22355
22356 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
22357 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
22358 to indicate that they are start/stop timers.
22359
22360 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
22361 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
22362 Move initialization to do_compile.
22363 (do_compile): Add initialization from above.
22364 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
22365
22366 * c-decl.c (c_write_global_declarations): Add start/stop of
22367 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
22368
22369 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
22370 or TV_PARSE_INLINE, as appropriate.
22371 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
22372 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
22373
22374 2011-05-02 Jason Merrill <jason@redhat.com>
22375
22376 PR c++/40975
22377 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
22378
22379 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
22380
22381 PR c/35445
22382 * c-decl.c (finish_decl): Only create a composite if the types are
22383 compatible.
22384
22385 2011-05-02 Joseph Myers <joseph@codesourcery.com>
22386
22387 * config/fr30/fr30-protos.h (Mmode): Don't define.
22388 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
22389 definition where used.
22390 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
22391 define. Expand definitions where used.
22392 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
22393 Expand definitions where used.
22394 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
22395 rx_function_arg, rx_function_arg_advance,
22396 rx_function_arg_boundary): Expand definitions of those macros.
22397 * config/v850/v850-protos.h (Mmode): Don't define. Expand
22398 definition where used.
22399
22400 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
22401
22402 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
22403 reg<->xmm moves.
22404 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
22405 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
22406 with *movv2sf_internal_rex64_avx.
22407 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
22408 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
22409 Use %v prefix in insn mnemonic to handle TARGET_AVX.
22410 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
22411 "vex" in "prefix" attribute calculation.
22412 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
22413
22414 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
22415
22416 PR target/47951
22417 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
22418 inputs match the output.
22419
22420 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
22421
22422 PR target/47955
22423 * config/m68k/m68k.c (m68k_expand_prologue): Set
22424 current_function_static_stack_size.
22425
22426 2011-05-02 Jan Hubicka <jh@suse.cz>
22427
22428 * lto-streamer.c (lto_streamer_cache_insert_1,
22429 lto_streamer_cache_lookup, lto_streamer_cache_create,
22430 lto_streamer_cache_delete): Use pointer map instead of hashtable.
22431 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
22432
22433 2011-05-02 Joseph Myers <joseph@codesourcery.com>
22434
22435 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
22436 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
22437 config/m68k/t-opts: New files.
22438 * config/m68k/m68k-tables.opt: New file (generated).
22439 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
22440 extra_options and m68k/t-opts to tmake_file.
22441 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
22442 (all_isas): Initialize using m68k-isas.def.
22443 (all_microarchs): Initialize using m68k-microarchs.def.
22444 (m68k_find_selection): Remove.
22445 (m68k_handle_option): Don't assert that global structures are in
22446 use. Use error_at. Access variables via opts pointer. Don't
22447 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
22448 directly for -m68020-40 and -m68020-60.
22449 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
22450 m68k_tune_entry here.
22451 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
22452 to m68k-opts.h.
22453 (m68k_library_id_string): Remove declaration.
22454 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
22455 (m68k_library_id_string): New Variable.
22456 (march=, mcpu=, mtune=): Use Enum and Var.
22457
22458 2011-05-02 Richard Guenther <rguenther@suse.de>
22459
22460 * varasm.c (output_constructor_regular_field): Compute zero-based
22461 index with double-ints. Make sure to ICE instead of producing
22462 wrong code.
22463 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
22464 in asserts. Properly use a signed type.
22465
22466 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
22467
22468 * config/i386/sse.md (V): New mode iterator.
22469 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
22470 TARGET_SSE2.
22471 (V_256): Rename from AVX256MODE.
22472 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
22473 condition to all users.
22474 (VF1): Ditto.
22475 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
22476 condition to all users.
22477 (VF_128): Make V4SF mode unconditional.
22478 (VF_256): Rename from AVX256MODEF2P.
22479 (VI4F_128): Rename from SSEMODE4S.
22480 (VI8F_128): Rename from SSEMODE2D.
22481 (VI4F_256): Rename from AVX256MODE8P.
22482 (VI8F_256): Rename from AVX256MODE4P.
22483 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
22484 (ssescalarmodesuffix): Remove SF and DF modes.
22485 (SSEMODE124): Remove.
22486 (SSEMODE1248): Ditto.
22487 (SSEMODEF2P): Ditto.
22488 (AVXMODEF2P): Ditto.
22489 (AVXMODEFDP): Ditto.
22490 (AVXMODEFSP): Ditto.
22491 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
22492 unconditional.
22493 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
22494 unconditional.
22495 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
22496 xop_pcmov_<mode>256. Use V mode iterator.
22497
22498 Adjust RTX patterns globally for renamed mode attributes.
22499
22500 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22501
22502 * haifa-sched.c (sched_emit_insn): Emit insn before first
22503 non-scheduled insn. Inform back-end about new insn. Add
22504 new insn to scheduled_insns list.
22505
22506 2011-05-02 Richard Guenther <rguenther@suse.de>
22507
22508 PR tree-optimization/48822
22509 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
22510 (process_scc): Indicate which iteration we start.
22511
22512 2011-05-02 Jan Hubicka <jh@suse.cz>
22513
22514 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
22515 (lto_section_overrun): New.
22516 * lto-section-out.c (append_block): Rename to ...
22517 (lto_append_block): ... this one; export.
22518 (lto_output_1_stream): Move lto lto-streamer.h
22519 (lto_output_data_stream): Update.
22520 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
22521 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
22522 functions.
22523
22524 2011-05-02 Richard Guenther <rguenther@suse.de>
22525
22526 * tree.c (tree_code_counts): New global array.
22527 (record_node_allocation_statistics): Count individual tree codes.
22528 (dump_tree_statistics): Dump individual code stats.
22529
22530 2011-05-01 Jan Hubicka <jh@suse.cz>
22531
22532 * ipa-inline.c (caller_growth_limits): Fix thinko when
22533 looking for largest stack frame.
22534 * ipa-inline.h (dump_inline_summary): Declare.
22535 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
22536 on stack usage.
22537 (dump_inline_summary): Export.
22538 (debug_inline_summary): Declare as DEBUG_FUNCTION.
22539
22540 2011-05-01 Anatoly Sokolov <aesok@post.ru>
22541
22542 * reginfo.c (memory_move_cost): Change rclass argument type form
22543 'enum reg_class' to reg_class_t.
22544 * reload.h (memory_move_cost): Update prototype.
22545 * postreload.c reload_cse_simplify_set): Change type dclass var to
22546 reg_class_t.
22547 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
22548 Update prototype.
22549 (ira_allocate_and_set_costs): Change aclass argument type form
22550 'enum reg_class' to reg_class_t.
22551 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
22552 Change aclass argument type to reg_class_t.
22553 (update_conflict_hard_reg_costs): Change type aclass and pref vars
22554 to reg_class_t.
22555 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
22556 memory_move_cost call.
22557
22558 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
22559 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
22560 Change type tmp var to reg_class_t.
22561
22562 2011-04-30 Jan Hubicka <jh@suse.cz>
22563
22564 * ipa-inline.c (can_inline_edge_p): Disregard limits when
22565 inlining into function with flatten attribute.
22566 (want_inline_small_function_p): Be more realistic about inlining
22567 cold calls where callee size grows.
22568
22569 2011-04-30 Jan Hubicka <jh@suse.cz>
22570
22571 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
22572 flags.
22573
22574 2011-04-30 Anatoly Sokolov <aesok@post.ru>
22575
22576 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
22577 PRINT_OPERAND_PUNCT_VALID_P): Remove.
22578 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
22579 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
22580 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22581 (print_operand): Rename to...
22582 (sparc_print_operand): ...this. Make static. Adjust
22583 sparc_print_operand function call.
22584 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
22585 functions.
22586
22587 2011-04-30 Jan Hubicka <jh@suse.cz>
22588
22589 PR middle-end/48752
22590 * ipa-inline.c (early_inliner): Disable when doing late
22591 addition of function.
22592
22593 2011-04-30 Jakub Jelinek <jakub@redhat.com>
22594
22595 * dwarf2out.c (get_address_mode): New inline.
22596 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
22597 if not dwarf_strict emit
22598 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
22599 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
22600 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
22601 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
22602 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
22603 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
22604 mem_loc_descriptor callers.
22605 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22606 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
22607 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
22608 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
22609 (base_types): New variable.
22610 (get_base_type_offset, calc_base_type_die_sizes,
22611 base_type_for_mode, mark_base_types, base_type_cmp,
22612 move_marked_base_types): New functions.
22613 (calc_die_sizes): Assert that die_offset is 0 or equal to
22614 next_die_offset.
22615 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
22616 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
22617 callers. If not dwarf_strict, call mem_loc_descriptor even for
22618 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
22619 (gen_subprogram_die): Don't give up on call site parameters
22620 with non-integral or large integral modes. Adjust
22621 mem_loc_descriptor callers.
22622 (prune_unused_types): Call prune_unused_types_mark on base_types
22623 vector entries.
22624 (resolve_addr): Call mark_base_types.
22625 (dwarf2out_finish): Call move_marked_base_types.
22626
22627 PR tree-optimization/48809
22628 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
22629 type.
22630 (gen_inbound_check): Don't compute index_expr - range_min in utype
22631 again, instead reuse SSA_NAME initialized in build_arrays.
22632 Remove two useless gsi_for_stmt calls.
22633
22634 2011-04-29 Jeff Law <law@redhat.com>
22635
22636 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
22637
22638 2011-04-29 Martin Jambor <mjambor@suse.cz>
22639
22640 * cgraph.h (cgraph_postorder): Remove declaration.
22641 * ipa-utils.h (ipa_free_postorder_info): Declare.
22642 (ipa_reverse_postorder): Likewise.
22643 * cgraphunit.c: Include ipa-utils.h.
22644 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
22645 * ipa-inline.c: Include ipa-utils.h.
22646 (ipa_inline): Update call to ipa_reverse_postorder.
22647 * ipa-pure-const.c (propagate_pure_const): Update call to
22648 ipa_reduced_postorder and ipa_print_order. Call
22649 ipa_free_postorder_info to clean up.
22650 (propagate_nothrow): Likewise.
22651 * ipa-reference.c (propagate): Removed a useless call to
22652 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
22653 and ipa_print_order. Call ipa_free_postorder_info to clean up.
22654 * ipa.c: Include ipa-utils.h.
22655 (ipa_profile): Update call to ipa_reverse_postorder.
22656 (cgraph_postorder): Moved to...
22657 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
22658 (ipa_utils_print_order): Renamed to ipa_print_order.
22659 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
22660 comments.
22661 (ipa_free_postorder_info): New function.
22662 * passes.c: Include ipa-utils.h.
22663 (do_per_function_toporder): Update call to ipa_reverse_postorder.
22664 (ipa_write_summaries): Likewise.
22665 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
22666 (cgraphunit.o): Likewise.
22667 (ipa.o): Likewise.
22668 (ipa-inline.o): Likewise.
22669
22670 2011-04-29 Jan Hubicka <jh@suse.cz>
22671
22672 * ipa-inline.h (clause_t): Turn into unsigned int.
22673 * ipa-inline-analysis.c (add_clause): Do more simplification.
22674 (and_predicates): Shortcut more cases.
22675 (predicates_equal_p): Move forward; check that clauses are properly
22676 ordered.
22677 (or_predicates): Shortcut more cases.
22678 (edge_execution_predicate): Rewrite as...
22679 (set_cond_stmt_execution_predicate): ... this function; handle
22680 __builtin_constant_p.
22681 (set_switch_stmt_execution_predicate): New .
22682 (compute_bb_predicates): New.
22683 (will_be_nonconstant_predicate): Update TODO.
22684 (estimate_function_body_sizes): Use compute_bb_predicates
22685 and free them later, always try to estimate if stmt is constant.
22686 (estimate_time_after_inlining, estimate_size_after_inlining):
22687 Gracefully handle optimized out edges.
22688 (read_predicate): Fix off by one error.
22689
22690 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
22691
22692 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
22693
22694 2011-04-27 Xinliang David Li <davidxl@google.com>
22695
22696 * tree-profile.c (init_ic_make_global_vars): Set
22697 tls attribute on ic vars.
22698 * coverage.c (coverage_end_function): Initialize
22699 function_list with zero.
22700
22701 2011-04-29 Richard Guenther <rguenther@suse.de>
22702
22703 * builtins.c (fold_builtin_classify_type): Use integer_type_node
22704 for the type of the result.
22705 (fold_builtin_isascii): Likewise.
22706 (fold_builtin_toascii): Use integer_type_node where appropriate.
22707 (fold_builtin_logb): Likewise.
22708 (fold_builtin_frexp): Likewise.
22709 (fold_builtin_strstr): Likewise.
22710 (fold_builtin_strpbrk): Likewise.
22711 (fold_builtin_fputs): Likewise.
22712 (fold_builtin_sprintf): Likewise.
22713 (fold_builtin_snprintf): Likewise.
22714 (fold_builtin_printf): Likewise.
22715 (do_mpfr_remquo): Use a proper type for the assigned constant.
22716 (do_mpfr_lgamma_r): Likewise.
22717 * dwarf2out.c (resolve_one_addr): Use size_int.
22718 * except.c (init_eh): Likewise.
22719 (assign_filter_values): Use integer_type_node for filter values.
22720 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
22721 indices.
22722 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
22723 for EH region numbers.
22724 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
22725 for the shift amount.
22726
22727 2011-04-29 Richard Guenther <rguenther@suse.de>
22728
22729 * expr.h (expand_shift): Rename to ...
22730 (expand_variable_shift): ... this.
22731 (expand_shift): Take a constant shift amount.
22732 * expmed.c (expand_shift): Rename to ...
22733 (expand_variable_shift): ... this.
22734 (expand_shift): New wrapper around expand_variable_shift.
22735 * expr.c (convert_move, emit_group_load_1, emit_group_store,
22736 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
22737 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
22738 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
22739 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
22740 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
22741 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
22742 emit_store_flag_1, emit_store_flag): Likewise.
22743 * builtins.c (expand_builtin_signbit): Likewise.
22744 * calls.c (load_register_parameters): Likewise.
22745 * function.c (assign_parm_setup_block): Likewise.
22746 * lower-subreg.c (resolve_shift_zext): Likewise.
22747 * optabs.c (widen_bswap, expand_abs_nojump,
22748 expand_one_cmpl_abs_nojump, expand_float): Likewise.
22749 * spu/spu.c (spu_expand_extv): Likewise.
22750 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22751
22752 2011-04-29 Richard Guenther <rguenther@suse.de>
22753
22754 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
22755 for the remapped region number.
22756 * predict.c (build_predict_expr): Use integer_type_node for the
22757 predict kind.
22758 * fold-const.c (fold_binary_loc): Use integer_type_node for
22759 the shift amount. Use a proper type for the PLUS_EXPR operand.
22760
22761 2011-04-29 Michael Matz <matz@suse.de>
22762
22763 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
22764 other trees that just builtins.
22765 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
22766
22767 2011-04-29 Richard Guenther <rguenther@suse.de>
22768
22769 * tree-nested.c (get_trampoline_type): Use size_int.
22770 (get_nl_goto_field): Likewise.
22771 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
22772 for all indexes.
22773 (lower_eh_constructs_2): Likewise.
22774 (lower_resx): Likewise.
22775 (lower_eh_dispatch): Likewise.
22776 * tree-mudflap.c (mf_build_string): Use size_int.
22777 (mudflap_register_call): Use integer_type_node for the flag.
22778 (mudflap_enqueue_constant): Use size_int.
22779 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
22780 instead of rebuilding it.
22781
22782 2011-04-29 Richard Guenther <rguenther@suse.de>
22783
22784 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
22785 Handle OBJ_TYPE_REF.
22786 (find_func_aliases_for_call): Use it more consistently.
22787
22788 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
22789
22790 * haifa-sched.c (last_nondebug_scheduled_insn): New.
22791 (rank_for_schedule): Use it.
22792 (schedule_block): Set it.
22793
22794 2011-04-28 David Li <davidxl@google.com>
22795
22796 * tree.c (crc32_string): Use crc32_byte.
22797 (crc32_byte): New function.
22798 * tree.h (crc32_byte): New function.
22799 * gcov.c (read_graph_file): Handle new cfg_cksum.
22800 (read_count_file): Ditto.
22801 * profile.c (instrument_values): Ditto.
22802 (get_exec_counts): Ditto.
22803 (read_profile_edge_counts): Ditto.
22804 (compute_branch_probabilities): Ditto.
22805 (compute_value_histograms): Ditto.
22806 (branch_prob): Ditto.
22807 (end_branch_prob): Ditto.
22808 * coverage.c (read_counts_file): Ditto.
22809 (get_coverage_counts): Ditto.
22810 (tree_coverage_counter_addr): Ditto.
22811 (coverage_checksum_string): Ditto.
22812 (coverage_begin_output): Ditto.
22813 (coverage_end_function): Ditto.
22814 (build_fn_info_type): Ditto.
22815 (build_fn_info_value): Ditto.
22816 * libgcov.c (gcov_exit): Ditto.
22817 * gcov-dump.c (tag_function): Ditto.
22818 (compute_checksum): Remove.
22819
22820 2011-04-29 Alan Modra <amodra@gmail.com>
22821
22822 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22823 unspec plus offset. Tidy macho code.
22824
22825 2011-04-29 Martin Jambor <mjambor@suse.cz>
22826
22827 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
22828 node instead of a decl. Update all callers.
22829 * cgraph.h: Update declaration.
22830
22831 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
22832
22833 PR tree-optimization/48765
22834 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
22835 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
22836 to indicate if loop aware SLP is being used. Scan the statements
22837 and update the vectorization factor according to the type of
22838 vectorization before statement analysis.
22839 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
22840 pass it to vect_analyze_loop_operations.
22841 (vectorizable_reduction): Set number of copies to 1 in case of pure
22842 SLP statement.
22843 * tree-vect-stmts.c (vectorizable_conversion,
22844 vectorizable_assignment, vectorizable_shift,
22845 vectorizable_operation, vectorizable_type_demotion,
22846 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
22847 Likewise.
22848 (vectorizable_condition): Move the check that it is not SLP
22849 vectorization before the number of copies check.
22850 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
22851 to vectorize the loop using SLP.
22852
22853 2011-04-28 Jakub Jelinek <jakub@redhat.com>
22854
22855 PR middle-end/48597
22856 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
22857 inline asm.
22858
22859 2011-04-28 Joseph Myers <joseph@codesourcery.com>
22860
22861 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
22862 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
22863 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22864 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22865 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
22866 linux*.h headers.
22867 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
22868 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22869 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22870 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22871 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
22872 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
22873 REG_NAME.
22874 * config/i386/linux.h (REG_NAME): Don't define.
22875 * config/i386/linux64.h (REG_NAME): Don't define.
22876 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
22877 Undefine before defining.
22878
22879 2011-04-28 Jan Hubicka <jh@suse.cz>
22880
22881 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
22882 nonconstant_names array.
22883 (estimate_function_body_sizes): Build nonconstant_names array; handle
22884 BUILT_IN_CONSTANT_P.
22885
22886 2011-04-28 Richard Guenther <rguenther@suse.de>
22887
22888 PR bootstrap/48804
22889 Revert
22890 2011-04-28 Richard Guenther <rguenther@suse.de>
22891
22892 * tree-ssa-structalias.c (solve_constraints): Build succ graph
22893 as late as possible.
22894
22895 2011-04-28 Richard Guenther <rguenther@suse.de>
22896
22897 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
22898 (debug_constraint): Do it here.
22899 (dump_constraints): And here.
22900 (rewrite_constraints): And here.
22901 (dump_constraint_edge): Remove.
22902 (dump_constraint_graph): Rewrite to produce DOT output.
22903 (solve_constraints): Build succ graph as late as possible.
22904 Dump constraint graphs before and after solving.
22905
22906 2011-04-28 Richard Guenther <rguenther@suse.de>
22907
22908 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22909 New function split out from ...
22910 (find_func_aliases): ... here. Call it.
22911 (find_func_aliases_for_call): Likewise.
22912
22913 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
22914
22915 * internal-fn.h (internal_fn_name_array): Declare.
22916 (internal_fn_flags_array): Likewise.
22917
22918 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
22919
22920 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
22921 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
22922 Move from sse.md.
22923 (ssemodefsuffix): Remove.
22924 (ssevecmodesuffix): New mode attribute.
22925 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
22926 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
22927 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
22928 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
22929 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
22930 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
22931 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
22932 ssemodesuffix mode attribute.
22933 (float splitters): Use ssevecmodesuffix mode attribute.
22934 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
22935 (sseinsmode): Rename from avxvecmode.
22936 (avxsizesuffix): Rename from avxmodesuffix.
22937 (sseintvecmode): Rename from avxpermvecmode.
22938 (ssedoublevecmode): Rename from ssedoublesizemode.
22939 (ssehalfvecmode): Rename from avxhalfvecmode.
22940 (ssescalarmode): Rename from avxscalarmode.
22941 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
22942 templates for ssemodesuffix mode attribute.
22943 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
22944 mode attribute.
22945
22946 Adjust RTX patterns globally for renamed mode attributes.
22947
22948 2011-04-27 Jan Hubcika <jh@suse.cz>
22949
22950 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
22951 * ipa-inline-analysis.c: Include alloc-pool.h.
22952 (edge_predicate_pool): New.
22953 (trye_predicate_p): New function
22954 (false_predicate_p): New function.
22955 (add_clause): Sanity check that false clauses are "optimized";
22956 never add clauses to predicate that is already known to be false.
22957 (and_predicate): Use flase_predicate_p.
22958 (evaulate_predicate): Rename to ...
22959 (evaluate_predicate): ... this one; update all callers; assert
22960 that false is not listed among possible truths.
22961 (dump_predicate): Use true_predicate_p.
22962 (account_size_time): Use false_predicate_p.
22963 (evaulate_conditions_for_edge): Rename to ...
22964 (evaluate_conditions_for_edge) ... this one.
22965 (edge_set_predicate): New function.
22966 (inline_edge_duplication_hook): Duplicate edge predicates.
22967 (inline_edge_removal_hook): Free edge predicates.
22968 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
22969 (dump_inline_summary): Update.
22970 (estimate_function_body_sizes): Set edge predicates.
22971 (estimate_calls_size_and_time): Handle predicates.
22972 (estimate_callee_size_and_time): Update.
22973 (remap_predicate): Add toplev_predicate; update comment.
22974 (remap_edge_predicates): New function.
22975 (inline_merge_summary): Compute toplev predicate; update.
22976 (read_predicate): New function.
22977 (read_inline_edge_summary): Use it.
22978 (inline_read_section): Likewise.
22979 (write_predicate): New function.
22980 (write_inline_edge_summary): Use it.
22981 (inline_write_summary): Likewise.
22982 (inline_free_summary): Free alloc pool and edge summary vec.
22983
22984 2011-04-27 Richard Guenther <rguenther@suse.de>
22985
22986 * tree-ssa-structalias.c (changed_count): Remove.
22987 (changed): Use a bitmap.
22988 (unify_nodes): Adjust.
22989 (do_sd_constraint): Likewise.
22990 (do_ds_constraint): Likewise.
22991 (do_complex_constraint): Likewise.
22992 (solve_graph): Likewise.
22993
22994 2011-04-27 Jan Hubicka <jh@suse.cz>
22995
22996 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
22997
22998 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
22999
23000 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
23001 (avx_vperm2f128_*_operand): Ditto.
23002 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
23003 Use avx_vpermilp_parallel in insn condition.
23004 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
23005 Use avx_vperm2f128_parallel in insn condition.
23006
23007 2011-04-27 Richard Guenther <rguenther@suse.de>
23008
23009 * Makefile.in (tree-ssa-structalias.o): Remove
23010 gt-tree-ssa-structalias.h dependency.
23011 (GTFILES): Remove tree-ssa-structalias.c.
23012 * tree.c (allocate_decl_uid): New function.
23013 (make_node_stat): Use it.
23014 (copy_node_stat): Likewise.
23015 * tree.h (allocate_decl_uid): Declare.
23016 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
23017 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
23018 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
23019 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
23020 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
23021 (struct heapvar_map): Likewise.
23022 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
23023 heapvar_insert): Likewise.
23024 (make_heapvar_for): Rename to ...
23025 (make_heapvar): ... this. Simplify.
23026 (fake_var_decl_obstack): New global var.
23027 (build_fake_var_decl): New function.
23028 (make_constraint_from_heapvar): Adjust.
23029 (handle_lhs_call): Likewise.
23030 (create_function_info_for): Likewise.
23031 (intra_create_variable_infos): Likewise.
23032 (init_alias_vars): Allocate fake_var_decl_obstack.
23033 (init_alias_heapvars, delete_alias_heapvars): Remove.
23034 (compute_points_to_sets): Do not call init_alias_heapvars.
23035 (ipa_pta_execute): Likewise.
23036 (delete_points_to_sets): Free fake_var_decl_obstack.
23037
23038 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23039
23040 * config/spu/divmovti4.c (union qword_UTItype): New data type.
23041 (si_from_UTItype, si_to_UTItype): New functions.
23042 (__udivmodti4): Use them to implement type-punning.
23043 * config/spu/multi3.c (union qword_TItype): New data type.
23044 (si_from_TItype, si_to_TItype): New functions.
23045 (__multi3): Use them to implement type-punning.
23046
23047 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23048
23049 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
23050
23051 2011-04-27 Jan Hubicka <jh@suse.cz>
23052
23053 * ipa-prop.c (function_insertion_hook_holder): New holder.
23054 (ipa_add_new_function): New function.
23055 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
23056 Register/deregister holder.
23057
23058 2011-04-27 Richard Guenther <rguenther@suse.de>
23059
23060 PR tree-optimization/48772
23061 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
23062
23063 2011-04-27 Richard Guenther <rguenther@suse.de>
23064
23065 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
23066 TARGET_MEM_REF handling.
23067
23068 2011-04-27 Nick Clifton <nickc@redhat.com>
23069
23070 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
23071 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
23072 (REG_CLASS_NAMES): Likewise.
23073 (REG_CLASS_CONTENTS): Likewise.
23074 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
23075 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
23076 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
23077 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
23078 (EVEN_REGS): New macro. Alias for QUAD_REGS.
23079 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
23080 duplicate register classes.
23081 (frv_class_likely_spilled_p): Likewise.
23082 (frv_register_move_cost): Likewise.
23083
23084 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
23085 end of the regno_reg_class array.
23086
23087 2011-04-27 Jakub Jelinek <jakub@redhat.com>
23088
23089 PR c/48742
23090 * c-typeck.c (build_binary_op): Don't wrap arguments if
23091 int_operands is true.
23092
23093 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
23094
23095 PR target/48767
23096 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
23097 targetm.calls.must_pass_in_stack for void type.
23098
23099 2011-04-26 Jan Hubicka <jh@suse.cz>
23100
23101 * cgraphbuild.c (build_cgraph_edges): Update call
23102 of cgraph_create_edge and cgraph_create_indirect_edge.
23103 * cgraph.c (cgraph_create_edge_including_clones,
23104 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
23105 cgraph_update_edges_for_call_stmt_node): Do not take nest
23106 argument; do not initialize call_stmt_size/time.
23107 (dump_cgraph_node): Do not dump nest.
23108 (cgraph_clone_edge): Do not take loop_nest argument;
23109 do not propagate it; do not clone call_stmt_size/time.
23110 (cgraph_clone_node): Likewise.
23111 (cgraph_create_virtual_clone): Update.
23112 * cgraph.h (struct cgraph_edge): Remove
23113 call_stmt_size/call_stmt_time/loop_nest.
23114 (cgraph_create_edge, cgraph_create_indirect_edge,
23115 cgraph_create_edge_including_clones, cgraph_clone_node): Update
23116 prototype.
23117 * tree-emutls.c (gen_emutls_addr): Update.
23118 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
23119 loop_nest; handle indirect calls, too.
23120 (clone_inlined_nodes): Do not care about updating inline summaries.
23121 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
23122 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
23123 stream call_stmt_size/call_stmt_time/loop_nest.
23124 * ipa-inline.c (edge_badness): Update.
23125 (ipa_inline): dump summaries after inlining.
23126 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
23127 New.
23128 (inline_edge_summary): New function.
23129 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
23130 (inline_edge_removal_hook): Handle edge summaries.
23131 (inline_edge_duplication_hook): New hook.
23132 (inline_summary_alloc): Alloc hooks.
23133 (initialize_growth_caches): Do not register removal hooks.
23134 (free_growth_caches); Do not free removal hook.
23135 (dump_inline_edge_summary): New function.
23136 (dump_inline_summary): Use it.
23137 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
23138 (inline_update_callee_summaries): New function.
23139 (inline_merge_summary): Use it.
23140 (do_estimate_edge_time, do_estimate_edge_growth): Update.
23141 (read_inline_edge_summary): New function.
23142 (inline_read_section): Use it.
23143 (write_inline_edge_summary): New function.
23144 (inline_write_summary): Use it.
23145 (inline_free_summary): Free edge new holders.
23146 * tree-inline.c (copy_bb): Update.
23147
23148 2011-04-26 Jason Merrill <jason@redhat.com>
23149
23150 * tree-eh.c (lower_try_finally_switch): Create the label along with
23151 the CASE_LABEL_EXPR.
23152
23153 2011-04-26 David S. Miller <davem@davemloft.net>
23154 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23155
23156 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
23157 * configure: Regenerate.
23158
23159 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23160
23161 PR target/48258
23162 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
23163 reduction.
23164 (VEC_reduc): New code iterator and splitters for vector reduction.
23165 (VEC_reduc_name): Ditto.
23166 (VEC_reduc_rtx): Ditto.
23167 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
23168 (reduc_<VEC_reduc_name>_v4sf): Ditto.
23169
23170 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23171 support for extracting SF on VSX.
23172
23173 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
23174 generating xscvspdp.
23175 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
23176 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
23177 double add, minimum, maximum vector reduction.
23178 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
23179 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
23180 optimize double vector reduction.
23181 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
23182
23183 2011-04-26 Joseph Myers <joseph@codesourcery.com>
23184
23185 * config/fr30/fr30.h (inhibit_libc): Don't define.
23186 * config/m32r/m32r-protos.h: Correct comment.
23187 * config/v850/v850.h (GHS_default_section_names,
23188 GHS_current_section_names): Use tree, not union tree_node *.
23189
23190 2011-04-26 Xinliang David Li <davidxl@google.com>
23191
23192 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
23193 * c-family/c-opts.c (c_common_handle_option): Set
23194 warn_maybe_uninitialized.
23195 * opts.c (common_handle_option): Ditto.
23196 * common.opt: New option.
23197 * tree-ssa.c (warn_uninit): Add one more parameter.
23198 (warn_uninitialized_var): Pass warning code.
23199 * tree-flow.h: Interface change.
23200
23201 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23202
23203 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
23204 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
23205 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
23206
23207 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23208
23209 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
23210 * config/mips/mips.opt (mmips-tfile): Remove.
23211
23212 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
23213 mips-tdump reference to ...
23214 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
23215 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
23216 reference by Tru64 UNIX.
23217
23218 2011-04-26 Jakub Jelinek <jakub@redhat.com>
23219
23220 PR debug/48768
23221 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
23222 is error_mark_node, set value to NULL.
23223
23224 PR tree-optimization/48734
23225 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
23226 if return value from maybe_fold_*_comparsions isn't something
23227 the code is prepared to handle.
23228
23229 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
23230
23231 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
23232 mode check.
23233 (ext_QIreg_nomode_operands): Remove.
23234 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
23235 (*andsi_1): Ditto.
23236 (*andhi_1): Ditto.
23237
23238 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
23239
23240 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
23241
23242 2011-04-26 Richard Guenther <rguenther@suse.de>
23243
23244 * c-typeck.c (build_unary_op): Do not expand array-refs via
23245 pointer arithmetic. Only adjust qualifiers for function types.
23246
23247 2011-04-26 Richard Guenther <rguenther@suse.de>
23248
23249 PR middle-end/48694
23250 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
23251 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
23252 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
23253 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
23254
23255 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
23256
23257 * doc/extend.texi: Document __underlying_type.
23258
23259 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
23260
23261 * config/rs6000/titan.md (automata_option "progress"): Remove.
23262
23263 2011-04-25 Jeff Law <law@redhat.com>
23264
23265 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
23266
23267 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
23268
23269 * system.h (ENUM_BITFIELD): Remove.
23270
23271 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
23272 Eric Botcazou <ebotcazou@adacore.com>
23273
23274 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
23275 for STORE_FLAG_VALUE==-1 case.
23276
23277 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
23278
23279 PR target/43804
23280 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
23281 LEGITIMATE_PIC_OPERAND_P.
23282
23283 2011-04-24 Jan Hubicka <jh@suse.cz>
23284
23285 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
23286 WPA hack.
23287 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
23288 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
23289 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
23290 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
23291 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
23292 Sanity check predicate length.
23293 (remap_predicate): Likewise; sanity check jump functions.
23294 (inline_read_section, inline_write_summary): Sanity check
23295 predicate length.
23296
23297 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
23298
23299 PR other/48748
23300 * doc/extend.texi (Type Traits): Document __is_standard_layout,
23301 __is_literal_type, and __is_trivial; update throughout about
23302 possibly cv-qualified void types.
23303
23304 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
23305
23306 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
23307 testsuite and make it version agnostic.
23308
23309 2011-04-22 Jan Hubicka <jh@suse.cz>
23310
23311 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
23312
23313 2011-04-23 Jakub Jelinek <jakub@redhat.com>
23314
23315 PR c/48685
23316 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
23317 to VOID_TYPE even around MODIFY_EXPR.
23318
23319 2011-04-22 Mike Stump <mikestump@comcast.net>
23320
23321 * gensupport.c (read_md_rtx): Fix typo in comment.
23322 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
23323 comment.
23324
23325 2011-04-22 Jan Hubicka <jh@suse.cz>
23326
23327 * gengtype.c (open_base_files): Add ipa-inline.h include.
23328 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
23329 ipa-prop.c; update all uses.
23330 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
23331 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
23332 merge summary of inlined function into former caller.
23333 * ipa-inline.c (max_benefit): Remove.
23334 (edge_badness): Compensate for removal of benefits.
23335 (update_caller_keys): Use
23336 reset_node_growth_cache/reset_edge_growth_cache.
23337 (update_callee_keys): Likewise.
23338 (update_all_callee_keys): Likewise.
23339 (inline_small_functions): Do not collect max_benefit; do not reset
23340 estimated_growth; call free_growth_caches and initialize_growth_caches.
23341 * ipa-inline.h (struct condition, type clause_t, struct predicate,
23342 struct size_time_entry): New structures.
23343 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
23344 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
23345 and estimated_growth.
23346 (edge_growth_cache_entry): New structure.
23347 (node_growth_cache, edge_growth_cache): New global vars.
23348 (estimate_growth): Turn into inline.
23349 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
23350 initialize_growth_caches, free_growth_caches): Declare.
23351 (estimate_edge_growth): Rewrite.
23352 (estimate_edge_time): Implement as inline cache lookup.
23353 (reset_node_growth_cache, reset_edge_growth_cache): New inline
23354 functions.
23355 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
23356 (NUM_CONDITIONS): New constant.
23357 (predicate_conditions): New enum.
23358 (IS_NOT_CONSTANT): New constant.
23359 (edge_removal_hook_holder): New var.
23360 (node_growth_cache, edge_growth_cache): New global vars.
23361 (true_predicate, single_cond_predicate, false_predicate,
23362 not_inlined_predicate, add_condition, add_clause, and_predicates,
23363 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
23364 dump_clause, dump_predicate, account_size_time,
23365 evaulate_conditions_for_edge): New functions.
23366 (inline_summary_alloc): Move to heap.
23367 (inline_node_removal_hook): Clear condition and entry vectors.
23368 (inline_edge_removal_hook): New function.
23369 (initialize_growth_caches, free_growth_caches): New function.
23370 (dump_inline_summary): Update.
23371 (edge_execution_predicate): New function.
23372 (will_be_nonconstant_predicate): New function.
23373 (estimate_function_body_sizes): Compute BB and constantness predicates.
23374 (compute_inline_parameters): Do not clear estimated_growth.
23375 (estimate_edge_size_and_time): New function.
23376 (estimate_calls_size_and_time): New function.
23377 (estimate_callee_size_and_time): New function.
23378 (remap_predicate): New function.
23379 (inline_merge_summary): New function.
23380 (do_estimate_edge_time): New function based on...
23381 (estimate_edge_time): ... this one.
23382 (do_estimate_edge_growth): New function.
23383 (do_estimate_growth): New function based on....
23384 (estimate_growth): ... this one.
23385 (inline_analyze_function): Analyze after deciding on jump functions.
23386 (inline_read_section): New function.
23387 (inline_read_summary): Use it.
23388 (inline_write_summary): Write all the new data.
23389 * ipa-prop.c (ipa_get_param_decl_index): Export.
23390 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
23391 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
23392 Declare.
23393 (ipa_get_lattice): Move here from ipa-cp.c
23394 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
23395 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
23396 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
23397 cgraph_edge_inlinable_p): Remove.
23398 * cgraphunit.c: Include ipainline.h
23399 (cgraph_process_new_functions): Update call of
23400 compute_inline_parameters.
23401
23402 2011-04-22 Richard Guenther <rguenther@suse.de>
23403
23404 * tree.c (build_int_cst): Properly create canonicalized integer
23405 constants.
23406 (build_int_cst_type): Remove scary comments.
23407
23408 2011-04-22 Xinliang David Li <davidxl@google.com>
23409
23410 * toplev.c (process_options): Enable -Werror=coverage-mismatch
23411 by default when -Wno-error is not specified.
23412 * opts-global.c (decode_options): Remove call to
23413 control_warning_options.
23414
23415 2011-04-22 Jakub Jelinek <jakub@redhat.com>
23416
23417 PR tree-optimization/48717
23418 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
23419 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
23420
23421 2011-04-22 Joseph Myers <joseph@codesourcery.com>
23422
23423 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
23424 definition where used.
23425
23426 2011-04-22 Jakub Jelinek <jakub@redhat.com>
23427
23428 PR c/48716
23429 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
23430 TREE_STATIC variables declared inside of some OpenMP construct.
23431
23432 2011-04-22 Martin Jambor <mjambor@suse.cz>
23433
23434 PR middle-end/48585
23435 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
23436
23437 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
23438
23439 PR c/36750
23440 * c-typeck.c (pop_init_level): Do not warn about initializing
23441 with ` = {0}'.
23442
23443 2011-04-22 Alan Modra <amodra@gmail.com>
23444
23445 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
23446 when returning call_cookie.
23447 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
23448 pointers, to functions with no more vector args than the current
23449 function, and some non-local calls for ABI_V4.
23450 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
23451 sibcall_nonlocal_aix64): Combine to ..
23452 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
23453 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
23454 (sibcall_value_nonlocal_aix<mode>): ..likewise.
23455 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
23456 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
23457 operand.
23458 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
23459 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
23460 sibcall_value_symbolic_64): Delete.
23461
23462 2011-04-21 Xinliang David Li <davidxl@google.com>
23463
23464 * cgraph.h: Remove pid.
23465 * cgraph.c: Remove pid.
23466 * value-prof.c (init_node_map): New function.
23467 (del_node_map): New function.
23468 (find_func_by_funcdef_no): New function.
23469 (gimple_ic_transform): Call new function.
23470 * cgraphunit.c (cgraph_finalize_function): Remove pid.
23471 * function.c (get_last_funcdef_no): New function.
23472 * function.h (get_last_funcdef_no): New function.
23473 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
23474 to libgcov function.
23475 (tree-profiling): Call node map init and delete function.
23476
23477 2011-04-21 Ian Lance Taylor <iant@google.com>
23478
23479 * godump.c (go_format_type): Use exported Go name for anonymous
23480 field name.
23481
23482 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
23483
23484 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
23485 Call builtin_function_type_list instead of builtin_function_type.
23486 (UNARY, BINARY, TRINARY, QUAD): Likewise.
23487
23488 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
23489
23490 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
23491 build_function_type_list instead of build_function_type.
23492 Delete variable `endlink'.
23493
23494 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
23495
23496 * config/s390/s390.c (s390_init_builtins): Call
23497 build_function_type_list instead of build_function_type.
23498
23499 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
23500
23501 * config/ia64/ia64.c (ia64_init_builtins): Call
23502 build_function_type_list instead of builtin_function_type.
23503
23504 2011-04-21 Easwaran Raman <eraman@google.com>
23505
23506 * cfgexpand.c (stack_var): Remove OFFSET...
23507 (add_stack_var): ...and its reference here...
23508 (expand_stack_vars): ...and here.
23509 (stack_var_cmp): Sort by descending order of size.
23510 (partition_stack_vars): Change heuristic.
23511 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
23512 (dump_stack_var_partition): Add newline after each partition.
23513
23514 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
23515 Jeff Law <law@redhat.com>
23516
23517 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23518 * gengtype.c (matching_file_name_substitute): Likewise.
23519
23520 2011-04-21 Richard Guenther <rguenther@suse.de>
23521
23522 PR lto/48703
23523 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
23524
23525 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
23526
23527 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
23528
23529 2011-04-21 Richard Guenther <rguenther@suse.de>
23530
23531 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
23532 file name.
23533
23534 2011-04-21 Richard Guenther <rguenther@suse.de>
23535
23536 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
23537 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
23538 Use DECL_P, not SSA_VAR_P.
23539 (ptr_derefs_may_alias_p): Likewise.
23540 (ptr_deref_may_alias_ref_p_1): Likewise.
23541 (decl_refs_may_alias_p): Likewise.
23542 (refs_may_alias_p_1): Likewise.
23543 (ref_maybe_used_by_call_p_1): Likewise.
23544 (call_may_clobber_ref_p_1): Likewise.
23545 (indirect_ref_may_alias_decl_p): Assume indirect refrences
23546 are either MEM_REF or TARGET_MEM_REF.
23547 (indirect_refs_may_alias_p): Likewise.
23548 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
23549 for MEM_EXPR of indirect calls.
23550
23551 2011-04-21 Tristan Gingold <gingold@adacore.com>
23552
23553 * vmsdbgout.c (write_srccorr): Compute file length from the string.
23554 (dst_file_info_struct): Remove flen field.
23555 (lookup_filename): Remove code that set flen field.
23556
23557 2011-04-21 Tristan Gingold <gingold@adacore.com>
23558
23559 * config/ia64/ia64.c (ia64_start_function): Add a guard.
23560
23561 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
23562
23563 PR target/48708
23564 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
23565 vec_extract and vec_concat for non-SSE4_1 targets.
23566
23567 2011-04-21 Richard Guenther <rguenther@suse.de>
23568
23569 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
23570 return statements.
23571
23572 2011-04-21 Joseph Myers <joseph@codesourcery.com>
23573
23574 * config/i386/cygming.h (union tree_node, TREE): Don't define or
23575 undefine.
23576 (FILE): Don't undefine.
23577
23578 2011-04-21 Joseph Myers <joseph@codesourcery.com>
23579
23580 * config/alpha/alpha.c (struct machine_function): Use rtx, not
23581 struct rtx_def *.
23582 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
23583 struct rtx_def *.
23584 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
23585 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
23586 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
23587 rtx_def *.
23588 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
23589 definitions where used.
23590 * config/microblaze/microblaze.h (struct microblaze_args): Use
23591 rtx, not struct rtx_def *.
23592 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
23593 rtx_def *.
23594 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
23595 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
23596 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
23597 not struct rtx_def *.
23598 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
23599 struct rtx_def *.
23600 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
23601 rtx_def *.
23602 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
23603
23604 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
23605
23606 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
23607 operand_equal_p to compare DR_BASE_ADDRESSes.
23608 (vect_check_interleaving): Likewise.
23609
23610 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
23611
23612 PR target/46329
23613 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
23614 for all Neon struct constants.
23615
23616 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
23617
23618 * target.def (legitimate_constant_p): New hook.
23619 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
23620 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
23621 * doc/tm.texi: Regenerate.
23622 * hooks.h (hook_bool_mode_rtx_true): Declare.
23623 * hooks.c (hook_bool_mode_rtx_true): Define.
23624 * system.h (LEGITIMATE_CONSTANT_P): Poison.
23625 * calls.c (precompute_register_parameters): Replace uses of
23626 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
23627 (emit_library_call_value_1): Likewise.
23628 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
23629 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
23630 * ira-costs.c (scan_one_insn): Likewise.
23631 * recog.c (general_operand, immediate_operand): Likewise.
23632 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
23633 * reload1.c (init_eliminable_invariants): Likewise.
23634
23635 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
23636 mode argument.
23637 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
23638 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
23639 argument.
23640 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23641 * config/alpha/predicates.md (input_operand): Update call to
23642 alpha_legitimate_constant_p.
23643
23644 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
23645 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
23646 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
23647 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23648 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
23649 (arm_legitimate_constant_p): New functions.
23650 (arm_cannot_force_const_mem): Make static.
23651
23652 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
23653
23654 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
23655 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
23656 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
23657 instead of bfin_legitimate_constant_p.
23658 (bfin_legitimate_constant_p): Make static. Add a mode argument.
23659 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23660
23661 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
23662
23663 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
23664
23665 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
23666 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
23667 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23668 (frv_legitimate_constant_p): Make static. Add a mode argument.
23669
23670 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
23671 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
23672 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
23673
23674 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
23675 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
23676 * config/i386/i386.c (legitimate_constant_p): Rename to...
23677 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
23678 argument.
23679 (ix86_cannot_force_const_mem): Update accordingly.
23680 (ix86_legitimate_address_p): Likewise.
23681 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23682 * config/i386/i386.md: Update commentary.
23683
23684 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
23685 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
23686 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23687 (ia64_legitimate_constant_p): Make static. Add a mode argument.
23688
23689 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
23690
23691 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
23692 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
23693 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23694 (lm32_legitimate_constant_p): Make static. Add a mode argument.
23695
23696 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
23697 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
23698 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
23699
23700 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
23701 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23702 (m32r_legitimate_constant_p): New function.
23703
23704 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
23705 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
23706 LEGITIMATE_CONSTANT_P.
23707 (LEGITIMATE_CONSTANT_P): Delete.
23708 * config/m68k/m68k.c (m68k_expand_prologue): Call
23709 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
23710 (m68k_legitimate_constant_p): New function.
23711 * config/m68k/m68k.md: Update comments.
23712
23713 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
23714 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23715 (mcore_legitimate_constant_p): New function.
23716
23717 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
23718 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
23719 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
23720 Add a mode argument.
23721 (mep_legitimate_address): Update accordingly.
23722 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23723
23724 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
23725 Delete.
23726 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
23727 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
23728 static. Check OP's mode for VOIDmode.
23729 (microblaze_legitimate_constant_p): New function.
23730 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23731
23732 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
23733 * config/mips/mips.c (mips_legitimate_constant_p): New function.
23734 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
23735 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23736 * config/mips/predicates.md: Update comments.
23737
23738 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
23739 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
23740 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23741 (mmix_legitimate_constant_p): Make static, return a bool, and take
23742 a mode argument.
23743 (mmix_print_operand_address): Update accordingly.
23744
23745 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
23746 Delete.
23747 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
23748 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
23749 static. Add a mode argument.
23750 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23751
23752 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
23753
23754 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
23755 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23756 (pa_legitimate_constant_p): New function.
23757
23758 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
23759
23760 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
23761 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23762 (pdp11_legitimate_constant_p): New function.
23763
23764 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
23765 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23766 (rs6000_legitimate_constant_p): New function.
23767
23768 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
23769 (rx_legitimate_constant_p): ...this.
23770 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
23771 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
23772 (rx_legitimate_constant_p): ...this.
23773 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23774 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
23775
23776 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
23777 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
23778 * config/s390/s390.c (legitimate_constant_p): Rename to...
23779 (s390_legitimate_constant_p): ...this. Make static, return a bool,
23780 and add a mode argument.
23781 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23782
23783 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
23784
23785 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
23786 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23787 (sh_legitimate_constant_p): New function.
23788
23789 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
23790 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
23791 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23792 (legitimate_constant_p): Rename to...
23793 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
23794 argument.
23795 (constant_address_p): Update accordingly.
23796
23797 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
23798 argument and return a bool.
23799 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
23800 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23801 (spu_legitimate_constant_p): Add a mode argument and return a bool.
23802 (spu_rtx_costs): Update accordingly.
23803 * config/spu/predicates.md (vec_imm_operand): Likewise.
23804
23805 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
23806
23807 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
23808 * config/v850/v850.c (v850_legitimate_constant_p): New function.
23809 (TARGET_LEGITIMATE_CONSTANT_P): Define.
23810
23811 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
23812 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
23813 * config/vax/vax.c (legitimate_constant_p): Likewise.
23814
23815 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
23816 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
23817 (xtensa_legitimate_constant_p): New function.
23818
23819 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
23820
23821 * target.def (cannot_force_const_mem): Add a mode argument.
23822 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
23823 * doc/tm.texi: Regenerate.
23824 * hooks.h (hook_bool_mode_rtx_false): Declare.
23825 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
23826 (hook_bool_mode_const_rtx_true): Likewise.
23827 (hook_bool_mode_rtx_false): New function.
23828 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
23829 to be non-VOID. Update call to cannot_force_const_mem.
23830 (find_reloads): Update accordingly.
23831 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
23832 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
23833 argument.
23834 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
23835 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
23836 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
23837 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
23838 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
23839 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
23840 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
23841 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23842 (m68k_cannot_force_const_mem): ...this new function.
23843 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
23844 argument.
23845 (mips_const_insns, mips_legitimize_const_move): Update calls.
23846 (mips_secondary_reload_class): Likewise.
23847 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
23848 (pa_cannot_force_const_mem): ...this new function.
23849 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
23850 (rs6000_cannot_force_const_mem): ...this new function.
23851 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
23852 argument.
23853 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
23854 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
23855 to...
23856 (xtensa_cannot_force_const_mem): ...this new function.
23857
23858 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
23859
23860 * config/mips/mips.c (mips16_build_function_stub): Call
23861 build_function_type_list instead of build_function_type.
23862 (mips16_build_call_stub): Likewise.
23863
23864 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
23865
23866 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
23867 instead of build_function_type.
23868
23869 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
23870
23871 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
23872 instead of build_function_type.
23873
23874 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
23875
23876 PR target/48678
23877 * config/i386/i386.md (insv): Change operand 0 constraint to
23878 "register_operand". Change operand 1 and 2 constraint to
23879 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
23880 * config/i386/sse.md (sse4_1_pinsrb): Export.
23881 (sse2_pinsrw): Ditto.
23882 (sse4_1_pinsrd): Ditto.
23883 (sse4_1_pinsrq): Ditto.
23884 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
23885 * config/i386/i386.c (ix86_expand_pinsr): New.
23886
23887 2011-04-20 Easwaran Raman <eraman@google.com>
23888
23889 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
23890 containing union type only with -fstrict-aliasing.
23891
23892 2011-04-20 Jim Meyering <meyering@redhat.com>
23893
23894 Remove useless if-before-free tests.
23895 * calls.c (expand_call, save_area): Likewise.
23896 * cfgcleanup.c (try_forward_edges): Likewise.
23897 * collect2.c (collect_execute): Likewise.
23898 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
23899 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
23900 * coverage.c (coverage_checksum_string): Likewise.
23901 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
23902 * cselib.c (cselib_init): Likewise.
23903 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
23904 (df_set_clean_cfg): Likewise.
23905 * function.c (free_after_compilation): Likewise.
23906 * gcc.c (do_spec_1, main): Likewise.
23907 * gcov.c (create_file_names): Likewise.
23908 * gensupport.c (identify_predicable_attribute): Likewise.
23909 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
23910 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
23911 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
23912 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
23913 * ipa-pure-const.c (local_pure_const): Likewise.
23914 * ipa-reference.c (propagate): Likewise.
23915 * ira-costs.c (free_ira_costs): Likewise.
23916 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
23917 * matrix-reorg.c (mat_free): Likewise.
23918 * prefix.c (get_key_value): Likewise.
23919 * profile.c (compute_value_histograms): Likewise.
23920 * reload1.c (free_reg_equiv): Likewise.
23921 * sched-deps.c (free_deps): Likewise.
23922 * sel-sched-ir.c (fence_clear): Likewise.
23923 * sese.c (set_rename, if_region_set_false_region): Likewise.
23924 * tree-data-ref.c (free_rdg): Likewise.
23925 * tree-eh.c (lower_try_finally): Likewise.
23926 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
23927 * tree-ssa-live.c (delete_var_map): Likewise.
23928 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
23929 * tree-ssa-pre.c (phi_trans_add): Likewise.
23930
23931 2011-04-20 Jakub Jelinek <jakub@redhat.com>
23932
23933 PR tree-optimization/48611
23934 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
23935 beyond ERT_MUST_NOT_THROW region.
23936
23937 2011-04-20 Catherine Moore <clm@codesourcery.com>
23938
23939 * config/mips/mips.opt (mfix-24k): New.
23940 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
23941 * config/mips/mips.md (length): Increase by 4 for stores if
23942 fixing 24K errata.
23943 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
23944 all noreorder if fixing 24K errata.
23945 * doc/invoke.texi: Document mfix-24k.
23946
23947 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
23948
23949 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
23950 quad-word modes, reduce to 9-bit index range when above 1016 limit.
23951
23952 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
23953
23954 * config/arm/arm.c (arm_gen_constant): Move movw support ....
23955 (const_ok_for_op): ... to here.
23956
23957 2011-04-20 Kai Tietz <ktietz@redhat.com>
23958
23959 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
23960 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
23961
23962 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
23963
23964 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
23965
23966 2011-04-20 Richard Guenther <rguenther@suse.de>
23967
23968 PR tree-optimization/47892
23969 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
23970 are if-convertible.
23971
23972 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
23973
23974 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
23975
23976 2011-04-20 Tristan Gingold <gingold@adacore.com>
23977
23978 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
23979
23980 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
23981
23982 PR target/18145
23983
23984 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
23985 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
23986 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23987 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
23988 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
23989
23990 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
23991 New prototype.
23992
23993 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
23994 (avr_asm_named_section, avr_asm_output_aligned_common,
23995 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
23996 New functions to update...
23997 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
23998 (avr_asm_init_sections): Overwrite section callbacks for
23999 data_section, bss_section.
24000 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
24001 from here to...
24002 (avr_file_end): ...here.
24003
24004 2011-04-20 Richard Guenther <rguenther@suse.de>
24005
24006 PR middle-end/48695
24007 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
24008 objects and types here. Adjust for their offset before comparing.
24009
24010 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
24011
24012 * tree-vect-stmts.c (vectorizable_store): Only chain one related
24013 statement per copy.
24014
24015 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
24016
24017 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
24018 (GIMPLE_H): Include $(INTERNAL_FN_H).
24019 (OBJS-common): Add internal-fn.o.
24020 (internal-fn.o): New rule.
24021 * internal-fn.def: New file.
24022 * internal-fn.h: Likewise.
24023 * internal-fn.c: Likewise.
24024 * gimple.h: Include internal-fn.h.
24025 (GF_CALL_INTERNAL): New gf_mask.
24026 (gimple_statement_call): Put fntype into a union with a new
24027 internal_fn field.
24028 (gimple_build_call_internal): Declare.
24029 (gimple_build_call_internal_vec): Likewise.
24030 (gimple_call_same_target_p): Likewise.
24031 (gimple_call_internal_p): New function.
24032 (gimple_call_internal_fn): Likewise.
24033 (gimple_call_fntype): Return null for internal calls.
24034 (gimple_call_set_fntype): Assert that the function is not internal.
24035 (gimple_call_set_fn): Likewise.
24036 (gimple_call_set_fndecl): Likewise.
24037 (gimple_call_set_internal_fn): New function.
24038 (gimple_call_addr_fndecl): Handle null functions.
24039 (gimple_call_return_type): Likewise null types.
24040 * gimple.c (gimple_build_call_internal_1): New function.
24041 (gimple_build_call_internal): Likewise.
24042 (gimple_build_call_internal_vec): Likewise.
24043 (gimple_call_same_target_p): Likewise.
24044 (gimple_call_flags): Handle calls to internal functions.
24045 (gimple_call_fnspec): New function.
24046 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
24047 (gimple_has_side_effects): Handle null functions.
24048 (gimple_rhs_has_side_effects): Likewise.
24049 (gimple_call_copy_skip_args): Handle calls to internal functions.
24050 * cfgexpand.c (expand_call_stmt): Likewise.
24051 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
24052 * gimple-fold.c (gimple_fold_call): Handle null functions.
24053 (gimple_fold_stmt_to_constant_1): Don't fold
24054 calls to internal functions.
24055 * gimple-low.c (gimple_check_call_args): Handle calls to internal
24056 functions.
24057 * gimple-pretty-print.c (dump_gimple_call): Likewise.
24058 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
24059 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
24060 (do_warn_unused_result): Likewise.
24061 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
24062 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
24063 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
24064 the target of a call.
24065 (initialize_hash_element): Update accordingly.
24066 (hashable_expr_equal_p): Use gimple_call_same_target_p.
24067 (iterative_hash_hashable_expr): Handle calls to internal functions.
24068 (print_expr_hash_elt): Likewise.
24069 * tree-ssa-pre.c (can_value_number_call): Likewise.
24070 (eliminate): Handle null functions.
24071 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
24072 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
24073 (find_func_aliases): Likewise.
24074 * value-prof.c (gimple_ic_transform): Likewise.
24075 (gimple_indirect_call_to_profile): Likewise.
24076 * lto-streamer-in.c (input_gimple_stmt): Likewise.
24077 * lto-streamer-out.c (output_gimple_stmt): Likewise.
24078
24079 2011-04-19 Jan Hubicka <jh@suse.cz>
24080
24081 * ipa-inline-transform.c (save_inline_function_body): Add comments.
24082 * ipa-inline.c (inline_small_functions): Compute summaries first,
24083 populate heap later.
24084
24085 2011-04-19 Jan Hubicka <jh@suse.cz>
24086
24087 * cgraph.h (save_inline_function_body): Remove.
24088 * ipa-inline-transform.c: New file, broke out of...
24089 * ipa-inline.c: ... this one; Update toplevel comment.
24090 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
24091 make global.
24092 (update_noncloned_frequencies): Move to ipa-inline-transform.c
24093 (cgraph_mark_inline_edge): Rename to inline_call; move to
24094 ipa-inline-transform.c.
24095 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
24096 move to ipa-inline-transform.c
24097 (recursive_inlining, inline_small_functions, flatten_function,
24098 ipa_inline, inline_always_inline_functions,
24099 early_inline_small_functions): Update.
24100 (inline_transform): Move to ipa-inline-transform.c.
24101 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
24102 Declare.
24103 * Makefile.in (ipa-inline-transform.o): New file.
24104 * cgraphunit.c (save_inline_function_body): Move to
24105 ipa-inline-transform.c
24106
24107 2011-04-19 DJ Delorie <dj@redhat.com>
24108
24109 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
24110 registers if we already know there aren't any.
24111 (m32c_emit_epilogue): Don't emit a barrier here.
24112 (m32c_emit_eh_epilogue): Likewise.
24113 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
24114 operands at expand time.
24115 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
24116 int" wchar type.
24117 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
24118 duplicates. Provide aliases instead.
24119 * config/m32c/prologue.md (eh_return): Emit a barrier here.
24120 (eh_epilogue): Add a "(return)" here as a hint to other parts of
24121 the compiler.
24122
24123 2011-04-19 Anatoly Sokolov <aesok@post.ru>
24124
24125 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
24126 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
24127 (general_or_i64_p, sparc_register_move_cost): New function.
24128
24129 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24130
24131 * doc/install.texi (Configuration, --enable-threads): Remove mach.
24132 Add lynx, mipssde. Sort table.
24133
24134 2011-04-19 Xinliang David Li <davidxl@google.com>
24135
24136 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
24137 not negative.
24138
24139 2011-04-19 Jakub Jelinek <jakub@redhat.com>
24140
24141 PR target/48678
24142 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
24143 is a SUBREG with non-MODE_INT mode inside of it.
24144
24145 2011-04-19 Martin Jambor <mjambor@suse.cz>
24146
24147 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
24148 also according to actual contants.
24149 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
24150 (gimple_fold_call): Use it.
24151 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
24152
24153 2011-04-19 Martin Jambor <mjambor@suse.cz>
24154
24155 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
24156 non-pointer assignments.
24157
24158 2011-04-19 Martin Jambor <mjambor@suse.cz>
24159
24160 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
24161 account anc_offset and otr_type from the indirect edge info.
24162 * ipa-prop.c (get_ancestor_addr_info): New function.
24163 (compute_complex_ancestor_jump_func): Assignment analysis moved to
24164 get_ancestor_addr_info, call it.
24165 (ipa_note_param_call): Do not initialize information about polymorphic
24166 calls, return the indirect call graph edge. Remove the last
24167 parameter, adjust all callers.
24168 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
24169 parameters. Initialize polymorphic information in the indirect edge.
24170
24171 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
24172
24173 PR lto/48148
24174 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
24175 the types if they have different enumeration identifiers.
24176
24177 2011-04-19 Jan Hubicka <jh@suse.cz>
24178
24179 * cgraph.h (cgraph_optimize_for_size_p): Declare.
24180 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
24181 * predict.c (cgraph_optimize_for_size_p): Break out from ...
24182 (optimize_function_for_size_p) ... here.
24183
24184 2011-04-19 Richard Guenther <rguenther@suse.de>
24185
24186 PR lto/48207
24187 * tree.c (free_lang_data): Do not reset the decl-assembler-name
24188 langhook.
24189
24190 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
24191
24192 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
24193 if DECL_NO_INLINE_WARNING_P is set on the function.
24194
24195 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
24196
24197 PR fortran/47976
24198 * reload1.c (inc_for_reload): Return void. All callers changed.
24199 (emit_input_reload_insns): Don't try to delete previous output
24200 reloads to a register, or record spill_reg_store for autoincs.
24201
24202 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
24203
24204 * gengtype.h: Updated copyright year.
24205 (struct input_file_st): Add inpisplugin field.
24206 (type_fileloc): New function.
24207 * gengtype.c
24208 (write_typed_struct_alloc_def): Add gcc_assert.
24209 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
24210 (write_typed_alloc_defns): Don't output for plugin files.
24211 (input_file_by_name): Clear inpisplugin field.
24212 (main): Set inpisplugin field for plugin files.
24213
24214 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
24215
24216 * gengtype-state.c (string_eq): New.
24217 (read_state): Use string_eq instead of strcmp when creating the
24218 state_ident_tab.
24219
24220 2011-04-19 Wei Guozhi <carrot@google.com>
24221
24222 PR target/47855
24223 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
24224 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
24225 linkage.
24226 * config/arm/constraints.md (Uu): New constraint.
24227 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
24228
24229 2011-04-19 Tristan Gingold <gingold@adacore.com>
24230
24231 * config.gcc (-*-*-*vms): Added.
24232 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
24233 definitions moved.
24234 * config/vms/vms-ld.c: New file.
24235 * config/vms/vms-ar.c: New file.
24236 * config/vms/t-vmsnative: New file.
24237
24238 2011-04-18 Xinliang David Li <davidxl@google.com>
24239
24240 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
24241
24242 2011-04-18 Jakub Jelinek <jakub@redhat.com>
24243
24244 PR middle-end/48661
24245 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
24246 if TREE_TYPE (v) is non-NULL.
24247
24248 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
24249 gimple_get_virt_mehtod_for_binfo.
24250 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
24251 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
24252 callers.
24253 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24254
24255 2011-04-18 Michael Matz <matz@suse.de>
24256 Steve Ellcey <sje@cup.hp.com>
24257
24258 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
24259 use its mode as source mode if it isn't VOIDmode.
24260
24261 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
24262
24263 * doc/passes.texi: Fill crossref nodes.
24264
24265 2011-04-18 Jim Meyering <meyering@redhat.com>
24266
24267 Fix doubled-word typos in comments and strings
24268 * config/alpha/vms-unwind.h: s/for for/for/
24269 * config/arm/unwind-arm.h: Likewise.
24270 * config/microblaze/microblaze.c: Likewise.
24271 * config/sh/constraints.md: s/in in/in/
24272 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
24273
24274 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
24275
24276 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
24277 (AVX_FLOAT_MODE_P): Ditto.
24278 (AVX128_VEC_FLOAT_MODE_P): Ditto.
24279 (AVX256_VEC_FLOAT_MODE_P): Ditto.
24280 (AVX_VEC_FLOAT_MODE_P): Ditto.
24281 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
24282 (UNSPEC_MASKSTORE): Ditto.
24283 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
24284 Merge from <sse>_movmsk<ssemodesuffix> and
24285 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
24286 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
24287 iterator.
24288 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
24289 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
24290 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
24291
24292 2011-04-18 Jan Hubicka <jh@suse.cz>
24293
24294 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
24295
24296 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
24297 (want_inline_function_called_once_p): Break out the logic from
24298 ipa_inline.
24299 (edge_badness): Ensure that profile is not misupdated.
24300 (lookup_recursive_calls): Prioritize by call frequencies.
24301 (inline_small_functions): Move program size estimates here;
24302 actually process whole queue even when unit growth has been
24303 met. (to properly compute inline_failed reasons and for the
24304 case unit size decrease.) Revisit comments on recursive inlining.
24305 (ipa_inline): Remove unit summary code; first inline hot calls
24306 of functions called once, cold calls next.
24307 (order, nnodes): Remove unused variables.
24308 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
24309 (GTFILES): Remove ipa-inline.c
24310 * sel-sched.c (fill_insns): Silence uninitialized var warning.
24311
24312 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
24313
24314 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
24315
24316 2011-04-18 Jie Zhang <jie@codesourcery.com>
24317 Richard Earnshaw <rearnsha@arm.com>
24318
24319 * arm.c (neon_builtin_type_bits): Remove.
24320 (typedef enum neon_builtin_mode): New.
24321 (T_MAX): Don't define.
24322 (typedef enum neon_builtin_datum): Remove bits, codes[],
24323 num_vars and base_fcode. Add mode, code and fcode.
24324 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
24325 VAR10): Change accordingly.
24326 (neon_builtin_data[]): Change accordingly
24327 (arm_init_neon_builtins): Change accordingly.
24328 (neon_builtin_compare): Remove.
24329 (locate_neon_builtin_icode): Remove.
24330 (arm_expand_neon_builtin): Change accordingly.
24331
24332 * arm.h (enum arm_builtins): Move to ...
24333 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
24334
24335 * arm.c (arm_builtin_decl): Declare.
24336 (TARGET_BUILTIN_DECL): Define.
24337 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
24338 (arm_builtin_decls[]): New.
24339 (arm_init_neon_builtins): Store builtin declarations in
24340 arm_builtin_decls[].
24341 (arm_init_tls_builtins): Likewise.
24342 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
24343 (arm_builtin_decl): New.
24344
24345 2011-04-18 Richard Guenther <rguenther@suse.de>
24346
24347 * tree.c (upper_bound_in_type): Build properly canonicalized
24348 INTEGER_CSTs.
24349 (lower_bound_in_type): Likewise.
24350
24351 2011-04-18 Richard Guenther <rguenther@suse.de>
24352
24353 * gimple.h (gimple_call_addr_fndecl): New function.
24354 (gimple_call_fndecl): Use it.
24355 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
24356 for direct calls.
24357 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
24358 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
24359
24360 2011-04-18 Richard Guenther <rguenther@suse.de>
24361
24362 PR middle-end/48650
24363 * tree.c (build_string): STRING_CST is now derived from tree_typed.
24364
24365 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
24366
24367 PR lto/48492
24368 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
24369 DECL_IN_CONSTANT_POOL without RTL.
24370
24371 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
24372 Ira Rosen <ira.rosen@linaro.org>
24373
24374 PR target/48252
24375 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
24376 to match neon_vzip/vuzp/vtrn_internal.
24377 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
24378 outputs explicitly dependent on both inputs.
24379 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
24380
24381 2011-04-18 Jakub Jelinek <jakub@redhat.com>
24382
24383 PR tree-optimization/48616
24384 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
24385 whether the shift is by scalar or vector based on whether all SLP
24386 scalar stmts have the same rhs.
24387
24388 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
24389
24390 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
24391 memory operands.
24392
24393 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
24394
24395 PR target/43700
24396 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
24397 registers.
24398
24399 2011-04-17 Jan Hubicka <jh@suse.cz>
24400
24401 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
24402 * cgrpahunit.c (cgraph_finalize_function): Do not set
24403 finalized_by_frontend.
24404 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24405 finalized_by_frontend.
24406
24407 2011-04-17 Jan Hubicka <jh@suse.cz>
24408
24409 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
24410 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
24411 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
24412 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
24413 method.
24414 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
24415 gimple-fold.c
24416 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
24417
24418 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
24419
24420 PR lto/48538
24421 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
24422 is non-null before accessing it.
24423 (input_cgraph): Remove trailing spaces.
24424
24425 2011-04-17 Revital Eres <revital.eres@linaro.org>
24426
24427 * params.def (sms-min-sc): New param flag.
24428 * modulo-sched.c (sms_schedule): Use it.
24429 * doc/invoke.texi (sms-min-sc): Document it.
24430
24431 2011-04-17 Jan Hubicka <jh@suse.cz>
24432
24433 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
24434 present, also set gimple_call_set_cannot_inline.
24435 * ipa-inline.c: Update toplevel comment.
24436 (MAX_TIME): Remove.
24437 (cgraph_clone_inlined_nodes): Fix linebreaks.
24438 (cgraph_check_inline_limits): Restructure to ...
24439 (caller_growth_limits): ... this one; be more tolerant
24440 on growth in nested inline chains; add explanatory comment;
24441 fix stack accounting thinko introduced by previous patch.
24442 (cgraph_default_inline_p): Remove.
24443 (report_inline_failed_reason): New function.
24444 (can_inline_edge_p): New function.
24445 (can_early_inline_edge_p): New function.
24446 (leaf_node_p): Move upwards in file.
24447 (want_early_inline_function_p): New function.
24448 (want_inline_small_function_p): New function.
24449 (want_inline_self_recursive_call_p): New function.
24450 (cgraph_edge_badness): Rename to ...
24451 (edge_badness) ... this one; fix linebreaks.
24452 (update_edge_key): Update call of edge_baddness; add
24453 detailed dump about queue updates.
24454 (update_caller_keys): Use can_inline_edge_p and
24455 want_inline_small_function_p.
24456 (cgraph_decide_recursive_inlining): Rename to...
24457 (recursive_inlining): Use can_inline_edge_p and
24458 want_inline_self_recursive_call_p; simplify and remove no longer
24459 valid FIXME.
24460 (cgraph_set_inline_failed): Remove.
24461 (add_new_edges_to_heap): Use can_inline_edge_p and
24462 want_inline_small_function_p.
24463 (cgraph_decide_inlining_of_small_functions): Rename to ...
24464 (inline_small_functions): ... this one; cleanup; use
24465 can/want predicates; cleanup debug ouput; work edges till fibheap
24466 is exhausted and do not stop once unit growth is reached; remove
24467 later loop processing remaining edges.
24468 (cgraph_flatten): Rename to ...
24469 (flatten_function): ... this one; use can_inline_edge_p
24470 and can_early_inline_edge_p predicates.
24471 (cgraph_decide_inlining): Rename to ...
24472 (ipa_inline): ... this one; remove unreachable nodes before
24473 inlining functions called once; simplify the pass.
24474 (cgraph_perform_always_inlining): Rename to ...
24475 (inline_always_inline_functions): ... this one; use
24476 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
24477 (cgraph_decide_inlining_incrementally): Rename to ...
24478 (early_inline_small_functions): ... this one; simplify
24479 using new predicates; cleanup; make dumps prettier.
24480 (cgraph_early_inlining): Rename to ...
24481 (early_inliner): newer inline regular functions into always-inlines;
24482 fix updating of call stmt summaries.
24483 (pass_early_inline): Update for new names.
24484 (inline_transform): Fix formating.
24485 (gate_cgraph_decide_inlining): Rename to ...
24486 (pass_ipa_inline): ... this one.
24487 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
24488 * ipa-inline-analysis.c (dump_inline_summary): Update.
24489 (compute_inline_parameters): Do not compute disregard_inline_limits;
24490 look for mismatching arguments.
24491 (estimate_growth): Fix handlig of non-trivial self recursion.
24492 (inline_read_summary): Do not read info->disregard_inline_limits.
24493 (inline_write_summary): Do not write info->disregard_inline_limits.
24494 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
24495 and move all checks into can_inline_edge_p predicate; re-enable code
24496 comparing optimization levels.
24497 (expand_call_inline): Do not test inline_forbidden_into_p.
24498 * Makefile.in (ipa-inline.o): Update arguments.
24499
24500 2011-04-17 Revital Eres <revital.eres@linaro.org>
24501
24502 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
24503
24504 2011-04-17 Revital Eres <revital.eres@linaro.org>
24505
24506 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
24507
24508 2011-04-17 Michael Matz <matz@suse.de>
24509
24510 PR tree-optimization/48622
24511 PR lto/48645
24512 * ipa-inline-analysis.c (inline_read_summary): Read size/time
24513 in same order as they're written.
24514
24515 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24516
24517 * config/pa/predicates.md: Reorganize and simplify predicates.
24518 Eliminate duplicate code checks.
24519 (arith_operand): Rename to arith14_operand
24520 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
24521 * config/pa/pa.md: Use renamed operands.
24522 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
24523 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
24524 arith11_operand, adddi3_operand, indexed_memory_operand,
24525 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
24526 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
24527 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
24528 move_dest_operand, move_src_operand, prefetch_cc_operand,
24529 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
24530 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
24531 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
24532 div_operand, int5_operand, movb_comparison_operator,
24533 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
24534 arith_double_operand, ireg_operand, lhs_lshift_operand,
24535 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
24536 integer_store_memory_operand): Likewise.
24537 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
24538 (integer_store_memory_operand, read_only_operand,
24539 function_label_operand, borx_reg_operand,
24540 non_hard_reg_operand): Likewise.
24541 (eq_neq_comparison_operator): Delete unused operator.
24542 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
24543 function_label_operand.
24544 (emit_move_sequence): Likewise.
24545
24546 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
24547
24548 * config/i386/sse.md (sseunpackmode): New mode attribute.
24549 (ssepackmode): Ditto.
24550 (vec_pack_trunc_<mode>): Macroize expander from
24551 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
24552 (vec_unpacks_lo_<mode>): Macroize expander from
24553 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24554 (vec_unpacks_hi_<mode>): Macroize expander from
24555 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24556 (vec_unpacku_lo_<mode>): Macroize expander from
24557 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24558 (vec_unpacku_hi_<mode>): Macroize expander from
24559 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
24560 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
24561 ix86_expand_sse4_unpack.
24562 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
24563
24564 2011-04-16 Jan Hubicka <jh@suse.cz>
24565
24566 * cgraphbuild.c: Include ipa-inline.h.
24567 (reset_inline_failed): Use initialize_inline_failed.
24568 * cgraph.c: Include ipa-inline.h.
24569 (cgraph_create_node_1): Do not initialize estimated_growth.
24570 (initialize_inline_failed): More to ipa-inline-analysis.c
24571 (dump_cgraph_node): Do not dump inline flags.
24572 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
24573 and disregard_inline_limits flags.
24574 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
24575 time, size, estimated_growth.
24576 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
24577 Update.
24578 * cgraphunit.c (cgraph_decide_is_function_needed): Use
24579 DECL_DISREGARD_INLINE_LIMITS.
24580 (cgraph_analyze_function): Do not initialize
24581 node->local.disregard_inline_limits.
24582 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
24583 inlinable, versionable and disregard_inline_limits.
24584 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
24585 cgraph_check_inline_limits, cgraph_default_inline_p,
24586 cgraph_edge_badness, update_caller_keys, update_callee_keys,
24587 add_new_edges_to_heap): Update.
24588 (cgraph_decide_inlining_of_small_function): Update; set
24589 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
24590 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
24591 cgraph_decide_inlining_incrementally): Update.
24592 * ipa-inline.h (inline_summary): Add inlinable, versionable,
24593 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
24594 time, size and estimated_growth parameters.
24595 (estimate_edge_growth): Update.
24596 (initialize_inline_failed): Declare.
24597 * ipa-split.c: Include ipa-inline.h
24598 (execute_split_functions): Update.
24599 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
24600 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
24601 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
24602 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
24603 estimated_growth to INT_MIN.
24604 (inline_node_duplication_hook): Likewise.
24605 (dump_inline_summary): Dump new fields.
24606 (compute_inline_parameters): Update.
24607 (estimate_edge_time, estimate_time_after_inlining,
24608 estimate_size_after_inlining, estimate_growth, inline_read_summary,
24609 inline_write_summary):
24610 (initialize_inline_failed): Move here from cgraph.c.
24611 * tree-sra.c: Include ipa-inline.h.
24612 (ipa_sra_preliminary_function_checks): Update.
24613 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
24614 ipa-inline.h.
24615
24616 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
24617
24618 * config/i386/sse.md (V16): New mode iterator.
24619 (VI1, VI8): Ditto.
24620 (AVXMODEQI, AVXMODEDI): Remove.
24621 (sse2, sse3): New mode attribute.
24622 (mov<mode>): Use V16 mode iterator.
24623 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
24624 (push<mode>1): Use V16 mode iterator.
24625 (movmisalign<mode>): Ditto.
24626 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24627 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
24628 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
24629 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
24630 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
24631 avx_movdqu<avxmodesuffix>.
24632 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
24633 *avx_movdqu<avxmodesuffix>.
24634 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
24635 avx_lddqu<avxmodesuffix>.
24636 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
24637 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
24638 avx_movnt<AVXMODEDI:mode>.
24639 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
24640 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
24641
24642 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
24643
24644 PR target/48629
24645 * haifa-sched.c (prune_ready_list, schedule_block): Use
24646 sched_pressure_p rather than flag_sched_pressure.
24647
24648 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
24649
24650 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
24651 cgraph_get_node instead of cgraph_get_create_node.
24652
24653 2011-04-15 Jakub Jelinek <jakub@redhat.com>
24654
24655 * cfgexpand.c (expand_debug_expr): Use
24656 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
24657
24658 2011-04-15 Michael Matz <matz@suse.de>
24659
24660 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
24661 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
24662 * function.c (gimplify_parameters): Ditto.
24663 * gimplify.c (gimplify_vla_decl): Ditto.
24664
24665 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
24666 (gimple_call_set_alloca_for_var): New inline function.
24667 (gimple_call_alloca_for_var_p): Ditto.
24668 * gimple.c (gimple_build_call_from_tree): Remember
24669 CALL_ALLOCA_FOR_VAR_P state.
24670 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
24671
24672 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
24673 calls if they were for VLA objects.
24674
24675 2011-04-15 Martin Jambor <mjambor@suse.cz>
24676
24677 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
24678 of ADR_EXPRs.
24679
24680 2011-04-15 Martin Jambor <mjambor@suse.cz>
24681
24682 PR middle-end/48601
24683 * tree-emutls.c (lower_emutls_function_body): Call
24684 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
24685 result is non-NULL.
24686
24687 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
24688
24689 * c-decl.c (detect_field_duplicates): Call
24690 objc_detect_field_duplicates instead of objc_get_interface_ivars.
24691
24692 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
24693
24694 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
24695 * gimple.c (gimple_asm_clobbers_memory_p): Define.
24696 * ipa-pure-const.c (check_stmt): Call it.
24697 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
24698
24699 2011-04-15 Richard Guenther <rguenther@suse.de>
24700
24701 PR tree-optimization/48290
24702 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
24703 Properly decide inhibiting propagation based on the valueized
24704 operand. Do loop-closed SSA form preserving here ...
24705 (init_copy_prop): ... not here.
24706
24707 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
24708
24709 PR target/48612
24710 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
24711 (*ieee_smax<mode>3): Likewise.
24712
24713 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24714
24715 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
24716 Replace match_operand with match_dup for the third operand in
24717 these expanders.
24718
24719 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
24720
24721 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
24722 to track processing of conditionals. Update all callers.
24723 (try_combine, simplify_if_then_else): Update.
24724
24725 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
24726
24727 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
24728 -fsched-pressure.
24729
24730 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
24731
24732 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
24733 instead of match_operand for operand 3.
24734
24735 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
24736
24737 * recog.h (insn_operand_data): Add an "allows_mem" field.
24738 * genoutput.c (output_operand_data): Initialize it.
24739 * optabs.c (maybe_legitimize_operand_same_code): New function.
24740 (maybe_legitimize_operand): Use it when matching the original
24741 op->value.
24742
24743 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
24744
24745 * gimplify.c: Fix issues in comments throughout.
24746 (voidify_wrapper_expr): Fix long line.
24747 (build_stack_save_restore): Likewise.
24748 (gimplify_loop_expr): Likewise.
24749 (gimplify_compound_lval): Likewise.
24750 (gimplify_init_ctor_eval): Likewise.
24751 (gimplify_modify_expr_rhs): Likewise.
24752 (omp_notice_threadprivate_variable): Likewise.
24753
24754 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
24755
24756 * cfgexpand.c (expand_call_stmt): Convert the function type to the
24757 original one if this is not a builtin function.
24758
24759 2011-04-14 Jakub Jelinek <jakub@redhat.com>
24760
24761 PR target/48605
24762 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
24763 offset it as needed based on top 2 bits in operands[3], change
24764 MEM mode to SFmode and mask those 2 bits away from operands[3].
24765
24766 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
24767
24768 * c-parser.c (c_parser_objc_protocol_definition): Updated for
24769 change from objc_declare_protocols() to objc_declare_protocol().
24770
24771 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
24772
24773 * config/i386/sse.md (sse4_1): New mode attribute.
24774 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
24775 avx_blend<ssemodesuffix><avxmodesuffix> and
24776 sse4_1_blend<ssemodesuffix> using VF mode iterator.
24777 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
24778 avx_blendv<ssemodesuffix><avxmodesuffix> and
24779 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
24780 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
24781 avx_dp<ssemodesuffix><avxmodesuffix> and
24782 sse4_1_dp<ssemodesuffix> using VF mode iterator.
24783 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
24784 (sse4_1_packusdw): Merge with *avx_packusdw.
24785 (sse4_1_pblendvb): Merge with *avx_pblendvb.
24786 (sse4_1_pblendw): Merge with *avx_pblendw.
24787 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
24788 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
24789 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
24790 VF mode iterator.
24791 (sse4_1_round<ssescalarmodesuffix>): Merge with
24792 *avx_round<ssescalarmodesuffix>.
24793 (aesenc): Merge with *avx_aesenc.
24794 (aesenclast): Merge with *avx_aesenclast.
24795 (aesdec): Merge with *avx_aesdec.
24796 (aesdeclast): Merge with *avx_aesdeclast.
24797 (pclmulqdq): Merge with *pclmulqdq.
24798 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
24799 New predicate.
24800 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
24801
24802 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
24803
24804 PR middle-end/48608
24805 * cfgexpand.c (get_decl_align_unit): Renamed to ...
24806 (align_local_variable): This. Update DECL_ALIGN.
24807 (add_stack_var): Updated.
24808 (expand_one_stack_var): Likewise.
24809
24810 2011-04-14 Richard Guenther <rguenther@suse.de>
24811
24812 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
24813 Remove.
24814 (dse_initialize_block_local_data, dse_leave_block,
24815 record_voperand_set, get_stmt_uid): Likewise.
24816 (dse_possible_dead_store_p): Allow any kind of killing stmt.
24817 (dse_optimize_stmt): Remove voperand set handling code.
24818 Simplify and improve to handle any kind of killing stmt.
24819 (dse_record_phi): Remove.
24820 (dse_enter_block): Simplify.
24821 (tree_ssa_dse): Likewise.
24822 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
24823
24824 2011-04-14 Jan Hubicka <jh@suse.cz>
24825
24826 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
24827 * cgraph.h (struct inline_summary): Move to ipa-inline.h
24828 (cgraph_local_info): Remove inline_summary.
24829 * ipa-cp.c: Include ipa-inline.h.
24830 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
24831 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
24832 accesor.
24833 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
24834 (input_overwrite_node): Do not set inline summary.
24835 (input_node): Do not stream inline summary.
24836 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
24837 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
24838 growth; we do not have inline parameters computed for that anyway.
24839 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
24840 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
24841 (inline_summary_t): New type and VECtor.
24842 (debug_inline_summary, dump_inline_summaries): Declare.
24843 (inline_summary): Use VOCtor.
24844 (estimate_edge_growth): Kill hack computing call stmt size directly.
24845 * lto-section-in.c (lto_section_name): Add inline section.
24846 * ipa-inline-analysis.c: Include lto-streamer.h
24847 (node_removal_hook_holder, node_duplication_hook_holder): New holders
24848 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
24849 (inline_summary_vec): Define.
24850 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
24851 dump_inline_summaries): New functions.
24852 (estimate_function_body_sizes): Properly compute size/time of outgoing
24853 calls.
24854 (compute_inline_parameters): Alloc inline_summary; do not compute
24855 size/time of incomming calls.
24856 (estimate_edge_time): Avoid missing time summary hack.
24857 (inline_read_summary): Read inline summary info.
24858 (inline_write_summary): Write inline summary info.
24859 (inline_free_summary): Free all hooks and inline summary vector.
24860 * lto-streamer.h: Add LTO_section_inline_summary section.
24861 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
24862 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
24863
24864 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
24865
24866 * tree-vectorizer.h (vect_strided_store_supported): Add a
24867 HOST_WIDE_INT argument.
24868 (vect_strided_load_supported): Likewise.
24869 (vect_permute_store_chain): Return void.
24870 (vect_transform_strided_load): Likewise.
24871 (vect_permute_load_chain): Delete.
24872 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
24873 count argument. Check that the count is a power of two.
24874 (vect_strided_load_supported): Likewise.
24875 (vect_permute_store_chain): Return void. Update after above changes.
24876 Assert that the access is supported.
24877 (vect_permute_load_chain): Likewise.
24878 (vect_transform_strided_load): Return void.
24879 * tree-vect-stmts.c (vectorizable_store): Update calls after
24880 above interface changes.
24881 (vectorizable_load): Likewise.
24882 (vect_analyze_stmt): Don't check for strided powers of two here.
24883
24884 2011-04-14 Richard Guenther <rguenther@suse.de>
24885
24886 PR tree-optimization/48590
24887 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24888 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
24889 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
24890 BUILT_IN_STACK_SAVE.
24891 * tree-ssa-dce.c (propagate_necessity): Handle
24892 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
24893
24894 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
24895
24896 * c-parser.c (c_parser_objc_class_declaration): Updated call to
24897 objc_declare_class.
24898
24899 2011-04-14 Richard Guenther <rguenther@suse.de>
24900
24901 * tree.h (get_object_alignment_1): Declare.
24902 * builtins.c (get_object_alignment_1): Split out worker from ...
24903 (get_object_alignment): ... here.
24904 * fold-const.c (get_pointer_modulus_and_residue): Use
24905 get_object_alignment_1.
24906
24907 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
24908
24909 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
24910 type parameter.
24911 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
24912 parameter. Generalise code to handle arrays as well as vectors.
24913 (vect_setup_realignment): Update accordingly.
24914 * tree-vect-stmts.c (vectorizable_store): Likewise.
24915 (vectorizable_load): Likewise.
24916
24917 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
24918
24919 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
24920 within the per-copy loop.
24921
24922 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
24923
24924 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
24925 in the dump file.
24926
24927 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
24928
24929 * doc/options.texi (Negative): Explicitly mention that the
24930 Negative chain must be circular.
24931
24932 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
24933
24934 * function.h (block_chainon): Declare.
24935 * function.c (block_chainon): Define.
24936
24937 2011-04-14 Anatoly Sokolov <aesok@post.ru>
24938 Eric Weddington <eric.weddington@atmel.com>
24939 Georg-Johann Lay <avr@gjlay.de>
24940
24941 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
24942 New Includes
24943 (avr_init_builtins, avr_expand_builtin,
24944 avr_expand_delay_cycles, avr_expand_unop_builtin,
24945 avr_expand_binop_builtin ): New functions.
24946 (avr_builtin_id): New enum
24947 (struct avr_builtin_description): New struct
24948 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
24949 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
24950
24951 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
24952 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
24953 UNSPECV_DELAY_CYCLES): new enumeration values
24954 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
24955 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
24956 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
24957 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
24958 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
24959 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
24960 "fmulsu"): New insns
24961
24962 * config/avr/avr-c.c: fix line endings
24963 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
24964 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
24965 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
24966 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
24967 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
24968
24969 * doc/extend.texi (AVR Built-in Functions): New node
24970 (Target Builtins): Add documentation of AVR
24971 built-in functions.
24972
24973 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
24974
24975 PR target/44643
24976 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
24977 alone. Error if non-const data has attribute progmem.
24978
24979 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
24980
24981 * tree.h (struct tree_constructor): Include tree_typed instead of
24982 tree_common.
24983 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
24984 TS_TYPED instead of TS_COMMON.
24985
24986 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
24987
24988 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
24989 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
24990 (sse2_psadbw): Merge with *avx_psadbw.
24991 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
24992 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
24993 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
24994 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
24995 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
24996 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
24997 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
24998 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
24999 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
25000 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
25001 (ssse3_palignrti): Merge with *avx_palignrti.
25002
25003 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
25004
25005 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
25006 * tree-ssanames.c (fini_ssanames): VEC_free it.
25007 (make_ssa_name_fn): Update for VECness of free_ssanames.
25008 (release_ssa_name, release_dead_ssa_names): Likewise.
25009 * tree.h (struct tree_ssa_name): Include tree_typed instead of
25010 tree_common.
25011 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
25012 TS_TYPED instead of TS_COMMON.
25013
25014 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
25015
25016 * postreload-gcse.c (gcse_after_reload_main): Add calls to
25017 statistics_counter_event.
25018 * tree-ssa-copyrename.c (stats): Define.
25019 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
25020 statistics_counter_event.
25021 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
25022 (bswap_stats, widen_mul_stats): Define.
25023 (insert_reciprocals): Increment rdivs_inserted.
25024 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
25025 rfuncs_inserted. Add calls to statistics_counter_event.
25026 (execute_cse_sincos_1): Increment inserted.
25027 (execute_cse_sincos): Zeroize sincos_stats. Add call to
25028 statistics_counter_event.
25029 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
25030 of bswap_stats. Add calls to statistics_counter_event.
25031 (convert_mult_to_widen): Increment widen_mults_inserted.
25032 (convert_plusminus_to_widen): Increment maccs_inserted.
25033 (convert_mult_to_fma): Increment fmas_inserted.
25034 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
25035 calls to statistics_counter_event.
25036
25037 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
25038
25039 PR rtl-optimization/48455
25040 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
25041 `temp_costs->mem_cost'.
25042
25043 2011-04-13 Jan Hubicka <jh@suse.cz>
25044
25045 * ipa-inline.h: New file.
25046 * ipa-inline-analysis.c: New file. Broken out of ...
25047 * ipa-inline.c: ... this file; update toplevel comment;
25048 include ipa-inline.h
25049 (inline_summary): Move to ipa-inline.h
25050 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
25051 ipa-inline-analysis.c.
25052 (cgraph_estimate_time_after_inlining): Rename to
25053 estiamte_time_after_inlining; move to ipa-inline-analysis.c
25054 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
25055 to estimate_edge_growth.
25056 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
25057 rename to estimate_size_after_inlining.
25058 (cgraph_mark_inline_edge): Update for new naming convention.
25059 (cgraph_check_inline_limits): Likewise.
25060 (cgraph_edge_badness): Likewise.
25061 (cgraph_decide_recursive_inlining): Likewise.
25062 (cgraph_decide_inlining_of_small_functions): Likewise.
25063 (cgraph_decide_inlining_incrementally): Likewise.
25064 (cgraph_estimate_growth): Rename to estimate_growth; move to
25065 ipa-inline-analysis.c.
25066 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
25067 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
25068 (compute_inline_parameters): Likewise.
25069 (compute_inline_parameters_for_current): Likewise.
25070 (pass_inline_parameters): Likewise.
25071 (inline_indirect_intraprocedural_analysis): Likewise.
25072 (analyze_function): Rename to inline_analyze_function; likewise.
25073 (add_new_function): Move to ipa-inline-analysis.c.
25074 (inline_generate_summary): Likewise.
25075 (inline_read_summary): Likewise.
25076 (inline_write_summary): Likewise.
25077 * Makefile.in (ipa-inline-analysis.c): New file.
25078
25079 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25080
25081 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
25082 * configure: Regenerate.
25083
25084 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
25085
25086 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
25087 instead of tree_common.
25088 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
25089 Likewise.
25090 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
25091 TS_TYPED rather than TS_COMMON.
25092 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
25093
25094 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
25095
25096 PR target/45263
25097 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
25098 r20 around calls of __tablejump_elpm__
25099
25100 2011-04-13 Jakub Jelinek <jakub@redhat.com>
25101
25102 PR middle-end/48591
25103 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
25104 NULL.
25105 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
25106
25107 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
25108
25109 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
25110 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
25111 (cfi_vec): New typedef.
25112 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
25113 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
25114 (cie_cfi_vec): New static variable.
25115 (cie_cfi_head): Delete.
25116 (add_cfi): Accept a cfi_vec * as first argument. All callers and
25117 declaration changed. Use vector rather than list operations.
25118 (new_cfi): Don't initialize the dw_cfi_next field.
25119 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
25120 rather than list operations.
25121 (lookup_cfa): Use vector rather than list operations.
25122 (output_cfis): New argument upto. Accept a cfi_vec rather than
25123 a dw_cfi_ref list head as argument. All callers changed.
25124 Iterate over the vector using upto as a maximum index.
25125 (output_all_cfis): New static function.
25126 (output_fde): Use vector rather than list operations. Use the
25127 new upto argument for output_cfis rather than manipulating a
25128 list.
25129 (dwarf2out_begin_prologue): Change initializations to match
25130 new struct members.
25131 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
25132 from the vector length rather than searching for the end of a list.
25133 Use output_all_cfis.
25134 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
25135
25136 2011-04-13 Nick Clifton <nickc@redhat.com>
25137
25138 * config/rx/rx.md (movmemsi): Do not use this pattern when
25139 volatile pointers are involved.
25140
25141 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
25142
25143 * config/i386/sse.md (pinsrbits): Remove.
25144 (sse2_packsswb): Merge with *avx_packsswb.
25145 (sse2_packssdw): Merge with *avx_packssdw.
25146 (sse2_packuswb): Merge with *avx_packuswb.
25147 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
25148 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
25149 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
25150 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
25151 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
25152 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
25153 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
25154 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
25155 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
25156 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
25157 (sse2_loadld): Merge with *avx_loadld.
25158 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
25159 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
25160 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
25161 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
25162 (vec_concatv2di): Merge with *vec_concatv2di_avx.
25163
25164 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
25165
25166 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
25167 calling TREE_CHAIN.
25168 * print-tree.c (print_node): Likewise.
25169 * tree-inline.c (copy_tree_r): Likewise.
25170 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
25171 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
25172 instead of TS_COMMON.
25173 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
25174 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
25175 (copy_node_stat): Zero TREE_CHAIN only if necessary.
25176 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
25177 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
25178 ...and these...
25179 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
25180 * tree.h: ...here.
25181 (TREE_CHAIN): Check for a TS_COMMON structure.
25182 (TREE_TYPE): Check for a TS_TYPED structure.
25183
25184 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
25185
25186 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
25187 cgraph_get_create_node instead of cgraph_node.
25188
25189 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
25190
25191 * c-parser.c (c_parser_initelt): Updated call to
25192 objc_build_message_expr.
25193 (c_parser_postfix_expression): Likewise.
25194
25195 2011-04-12 Kai Tietz <ktietz@redhat.com>
25196
25197 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
25198 MASK_MS_BITFIELD_LAYOUT bit.
25199
25200 2011-04-12 Jakub Jelinek <jakub@redhat.com>
25201
25202 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
25203 assert it is always true.
25204 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
25205 moves.
25206
25207 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
25208
25209 * c-parser.c (c_lex_one_token): Rewritten conditional used when
25210 compiling Objective-C to be more efficient.
25211
25212 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
25213
25214 * opts-common.c (decode_cmdline_options_to_array): Remove variable
25215 argv_copied.
25216
25217 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
25218
25219 * recog.h, genoutput.c, optabs.c: Revert last patch.
25220
25221 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25222
25223 PR target/48090
25224 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
25225
25226 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
25227
25228 * recog.h (insn_operand_data): Add an "allows_mem" field.
25229 * genoutput.c (output_operand_data): Initialize it.
25230 * optabs.c (maybe_legitimize_operand_same_code): New function.
25231 (maybe_legitimize_operand): Use it when matching the original
25232 op->value.
25233
25234 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
25235
25236 * genpreds.c (process_define_predicate): Move most processing
25237 to gensupport.c. Continue to validate the expression.
25238 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
25239 (process_define_predicate): Move processing to gensupport.c.
25240 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
25241 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
25242 (compute_predicate_codes): Moved from genrecog.c. Add lineno
25243 argument.
25244 (valid_predicate_name_p): New function, split out from old
25245 genpreds.c:process_define_predicate.
25246 (process_define_predicate): New function, combining code from
25247 old genpreds.c and genrecog.c functions.
25248 (process_rtx): Call it for DEFINE_PREDICATE and
25249 DEFINE_SPECIAL_PREDICATE.
25250
25251 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
25252
25253 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
25254 size of a '%A' memory reference.
25255 (T_DREG, T_QREG): New neon_builtin_type_bits.
25256 (arm_init_neon_builtins): Assert that the load and store operands
25257 are neon_struct_operands.
25258 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
25259 (NEON_ARG_MEMORY): New builtin_arg.
25260 (neon_dereference_pointer): New function.
25261 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
25262 Handle NEON_ARG_MEMORY.
25263 (arm_expand_neon_builtin): Update after above interface changes.
25264 Use NEON_ARG_MEMORY for loads and stores.
25265 * config/arm/predicates.md (neon_struct_operand): New predicate.
25266 * config/arm/iterators.md (V_two_elem): Tweak formatting.
25267 (V_three_elem): Use BLKmode for accesses that have no associated mode.
25268 (V_four_elem): Tweak formatting.
25269 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
25270 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
25271 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
25272 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
25273 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
25274 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
25275 (neon_vst4<mode>): Replace pointer operand with a memory operand.
25276 Use %A in the output template.
25277 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
25278 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
25279 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
25280 the width of the memory access. Remove post-increment.
25281 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
25282
25283 2011-04-12 Nick Clifton <nickc@redhat.com>
25284
25285 * config/v850/v850.c (expand_prologue): Do not use the CALLT
25286 instruction for interrupt handlers if the target is the basic V850
25287 architecture.
25288 (expand_epilogue): Likewise.
25289
25290 2011-04-12 Jakub Jelinek <jakub@redhat.com>
25291
25292 PR rtl-optimization/48549
25293 * combine.c (propagate_for_debug): Also stop after BB_END of
25294 this_basic_block. Process LAST and just stop processing after it.
25295 (combine_instructions): If last_combined_insn has been deleted,
25296 set last_combined_insn to its PREV_INSN.
25297
25298 2011-04-12 Richard Guenther <rguenther@suse.de>
25299
25300 PR tree-optimization/46076
25301 * gimple.h (struct gimple_statement_call): Add fntype field.
25302 (gimple_call_fntype): Adjust.
25303 (gimple_call_set_fntype): New function.
25304 * gimple.c (gimple_build_call_1): Set the call function type.
25305 * gimplify.c (gimplify_call_expr): Preserve the function
25306 type the frontend used for the call.
25307 (gimplify_modify_expr): Likewise.
25308 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
25309 function type.
25310 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
25311 function type.
25312 * tree-ssa.c (useless_type_conversion_p): Function pointer
25313 conversions are useless.
25314
25315 2011-04-12 Martin Jambor <mjambor@suse.cz>
25316
25317 * cgraph.h (cgraph_node): Remove function declaration.
25318 (cgraph_create_node): Declare.
25319 (cgraph_get_create_node): Likewise.
25320 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
25321 Updated all callers.
25322 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
25323 the decl does not already exist. Call cgraph_get_create_node instead
25324 of cgraph_node.
25325 (cgraph_get_create_node): New function.
25326 (cgraph_same_body_alias): Update comment.
25327 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
25328 assert it does not return NULL.
25329 (cgraph_update_edges_for_call_stmt): Likewise.
25330 (cgraph_clone_edge): Likewise.
25331 (cgraph_create_virtual_clone): Likewise.
25332 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
25333 instead of cgraph_node.
25334 (cgraph_add_new_function): Call cgraph_create_node or
25335 cgraph_get_create_node instead of cgraph_node.
25336 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
25337 instead of cgraph_node.
25338 (record_eh_tables): Likewise.
25339 (mark_address): Likewise.
25340 (mark_load): Likewise.
25341 (build_cgraph_edges): Call cgraph_get_create_node instead
25342 of cgraph_node.
25343 (rebuild_cgraph_edges): Likewise.
25344 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
25345 instead of cgraph_node.
25346 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
25347 cgraph_node.
25348 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
25349 cgraph_create_node instead of cgraph_node.
25350 * c-decl.c (finish_function): Call cgraph_get_create_node instead
25351 of cgraph_node.
25352 * lto-cgraph.c (input_node): Likewise.
25353 * lto-streamer-in.c (input_function): Likewise.
25354 * varasm.c (mark_decl_referenced): Likewise.
25355 (assemble_alias): Likewise.
25356
25357 2011-04-12 Martin Jambor <mjambor@suse.cz>
25358
25359 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
25360 instead of cgraph_node and assert it does not return NULL.
25361 * lto-streamer-in.c (lto_read_body): Likewise.
25362 * omp-low.c (new_omp_context): Likewise.
25363 (create_task_copyfn): Likewise.
25364 * tree-emutls.c (lower_emutls_function_body): Likewise.
25365 * matrix-reorg.c (transform_allocation_sites): Likewise.
25366
25367 2011-04-12 Jakub Jelinek <jakub@redhat.com>
25368
25369 PR c/48552
25370 * c-typeck.c (build_asm_expr): Error out on attempts to use
25371 void type outputs or inputs for constraints that allow reg or
25372 don't allow memory.
25373
25374 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
25375 Richard Earnshaw <rearnsha@arm.com>
25376
25377 PR target/48250
25378 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
25379 to use sign-magnitude offsets. Reject unsupported unaligned
25380 cases. Add detailed description in comments.
25381 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
25382 condition from TARGET_32BIT to TARGET_ARM.
25383
25384 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
25385
25386 * tree.h (struct typed_tree): New.
25387 (struct tree_common): Include it instead of tree_base.
25388 (TREE_TYPE): Update for new location of type field.
25389 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
25390 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
25391 (union tree_node): Add typed field.
25392 * treestruct.def (TS_TYPED): New.
25393 * lto-streamer.c (check_handled_ts_structures): Handle it.
25394 * tree.c (MARK_TS_TYPED): New macro.
25395 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
25396
25397 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
25398
25399 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
25400 (force_nonfallthru): Do not alter the loop nest if no basic block
25401 was created.
25402
25403 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
25404
25405 * config/i386/sse.md (VI): New mode iterator.
25406 (SSEMODEI): Remove.
25407 (AVX256MODEI): Ditto.
25408 (AVXMODEF4P): Ditto.
25409 (avxvecpsmode): Ditto.
25410 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
25411 (sse2_andnot<mode>3): New expander.
25412 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
25413 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
25414 (<any_logic:code><mode>3): Use VI mode iterator.
25415 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
25416 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
25417 (*andnottf3): Handle AVX three-operand constraints.
25418 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
25419
25420 2011-04-11 Joseph Myers <joseph@codesourcery.com>
25421 Robert Millan <rmh@gnu.org>
25422
25423 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
25424 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
25425 GNU_USER_DYNAMIC_LINKER64): Define.
25426 (REG_NAME): Don't undefine.
25427 (MD_UNWIND_SUPPORT): Undefine.
25428 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
25429 (REG_NAME): Don't undefine.
25430 (MD_UNWIND_SUPPORT): Undefine.
25431 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
25432
25433 2011-04-11 Joseph Myers <joseph@codesourcery.com>
25434
25435 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
25436 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
25437
25438 2011-04-11 Xinliang David Li <davidxl@google.com>
25439
25440 * value-profile.c (check_ic_target): New function.
25441 (gimple_ic_transform): Sanity check indirect call target.
25442 * gimple-low.c (gimple_check_call_args): Interface change.
25443 (gimple_check_call_matching_types): New function.
25444 * tree-inline.c (tree_can_inline_p): Call new function.
25445
25446 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
25447
25448 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
25449 tree-pretty-print.h & realmpfr.h.
25450
25451 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
25452
25453 PR middle-end/48464
25454 * ira.c (setup_pressure_classes): Fix typo in loop condition.
25455 (setup_allocno_and_important_classes): Ditto.
25456
25457 2011-04-11 Joseph Myers <joseph@codesourcery.com>
25458
25459 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
25460 GNU_USER_DYNAMIC_LINKER.
25461 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
25462 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25463 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
25464 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25465 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25466 GNU_USER_TARGET_OS_CPP_BUILTINS.
25467 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
25468 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25469 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25470 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25471 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
25472 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25473 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25474 GNU_USER_TARGET_OS_CPP_BUILTINS.
25475 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25476 GNU_USER_DYNAMIC_LINKER.
25477 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25478 GNU_USER_TARGET_OS_CPP_BUILTINS.
25479 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
25480 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25481 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
25482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25483 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
25484 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
25485 GNU_USER_DYNAMIC_LINKER64): Remove.
25486 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
25487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25488 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25489 GNU_USER_DYNAMIC_LINKER.
25490 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25491 GNU_USER_TARGET_OS_CPP_BUILTINS.
25492 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25493 GNU_USER_TARGET_OS_CPP_BUILTINS.
25494 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
25495 to GNU_USER_TARGET_OS_CPP_BUILTINS.
25496 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
25497 GNU_USER_TARGET_OS_CPP_BUILTINS.
25498 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
25499 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
25500 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25501 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
25502 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25503 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25504 GNU_USER_DYNAMIC_LINKER.
25505 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
25506 GNU_USER_TARGET_OS_CPP_BUILTINS.
25507 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
25508 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25509 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25510 GNU_USER_DYNAMIC_LINKER.
25511 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25512 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25513 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
25514 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25515 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25516 GNU_USER_DYNAMIC_LINKER.
25517 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
25518 GNU_USER_DYNAMIC_LINKERN32.
25519 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
25520 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
25521 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
25522 GNU_USER_DYNAMIC_LINKER32.
25523 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
25524 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25525 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25526 GNU_USER_DYNAMIC_LINKER.
25527 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
25528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25529 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
25530 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25531 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25532 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
25533 GNU_USER_DYNAMIC_LINKER32.
25534 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
25535 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
25536 GNU_USER_DYNAMIC_LINKER.
25537 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
25538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25539 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25540 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
25541 GNU_USER_DYNAMIC_LINKER64.
25542 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
25543 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25544 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25545 GNU_USER_DYNAMIC_LINKER.
25546 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
25547 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25548 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
25549 GNU_USER_DYNAMIC_LINKER.
25550 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
25551 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25552 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
25553 GNU_USER_DYNAMIC_LINKER32.
25554 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25555 GNU_USER_DYNAMIC_LINKER64.
25556 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
25557 GNU_USER_DYNAMIC_LINKER64.
25558 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
25559 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25560 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
25561 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
25562 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
25563
25564 2011-04-11 Joseph Myers <joseph@codesourcery.com>
25565
25566 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
25567 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
25568 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
25569 GNU_USER_DYNAMIC_LINKER.
25570 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25571 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
25572 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
25573 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
25574 GNU_USER_DYNAMIC_LINKER64.
25575 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
25576 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
25577 GNU_USER_LINK_EMULATION.
25578 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
25579 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
25580 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
25581 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
25582 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
25583 CPP_SPEC, CC1_SPEC): Remove.
25584 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
25585 (GNU_USER_DYNAMIC_LINKER): Define.
25586 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
25587 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
25588 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
25589 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
25590 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
25591 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
25592 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25593 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
25594 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
25595 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
25596 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
25597 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
25598 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
25599 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
25600 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
25601 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
25602 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25603 GNU_USER_DYNAMIC_LINKER.
25604 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25605 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
25606 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25607 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
25608 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
25609 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
25610 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
25611 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
25612 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
25613 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
25614
25615 2011-04-11 Kai Tietz <ktietz@redhat.com>
25616
25617 PR target/9601
25618 PR target/11772
25619 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
25620 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
25621 comment.
25622 (ix86_is_msabi_thiscall): Removed.
25623 (ix86_is_type_thiscall): Likewise.
25624 (ix86_get_callcvt): New function.
25625 (ix86_comp_type_attributes): Simplify check.
25626 (ix86_function_regparm): Use ix86_get_callcvt for calling
25627 convention attribute checks.
25628 (ix86_return_pops_args): Likewise.
25629 (ix86_static_chain): Likewise.
25630 (x86_this_parameter): Likewise.
25631 (x86_output_mi_thunk): Likewise.
25632 (ix86_function_type_abi): Optimize check for types without attributes.
25633 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
25634 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
25635 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
25636 by flag-values.
25637 (IX86_BASE_CALLCVT): Helper macro.
25638 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25639 Use ix86_get_callcvt for calling convention attribute checks and avoid
25640 symbol-decoration for stdcall in TARGET_RTD case.
25641 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
25642 Likewise.
25643 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
25644 for declaration.
25645
25646 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
25647
25648 * config/i386/sse.md (VI_128): New mode iterator.
25649 (VI12_128): Rename from SSEMODE12.
25650 (VI14_128): Rename from SSEMODE14.
25651 (VI124_128): New mode iterator.
25652 (VI24_128): Rename from SSEMODE248.
25653 (VI248_128): Rename from SSEMODE248.
25654 (SSEMODE124C8): Remove.
25655 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
25656 (*sse2_<plusminus_insn><mode>3): Merge with
25657 *avx_<plusminus_insn><mode>3.
25658 (*mulv8hi3): Merge with *avx_mulv8hi3.
25659 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
25660 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
25661 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
25662 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
25663 (ashr<mode>3): Merge with *avx_ashr<mode>3.
25664 (lshr<mode>3): Merge with *avx_lshr<mode>3.
25665 (ashl<mode>3): Merge with *avx_ashl<mode>3.
25666 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
25667 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
25668 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25669 (*<smaxmin:code>v8hi3): Ditto.
25670 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
25671 (*<smaxmin:code>v16qi3): Ditto.
25672 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
25673 (*sse2_eq<mode>3): Ditto.
25674 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
25675 (*sse2_gt<mode>3): Ditto.
25676 (vcondv2di): Split out of vcond<mode>.
25677 (vconduv2di): Split out of vcondu<mode>.
25678
25679 2011-04-11 Richard Guenther <rguenther@suse.de>
25680
25681 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
25682 before calling tree_low_cst.
25683
25684 2011-04-11 Richard Guenther <rguenther@suse.de>
25685
25686 * stor-layout.c (layout_type): Compute all array index size operations
25687 in the original type.
25688 (initialize_sizetypes): Add comment.
25689 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
25690
25691 2011-04-11 Joseph Myers <joseph@codesourcery.com>
25692
25693 * common.opt (Tbss=, Tdata=, Ttext=): New options.
25694
25695 2011-04-11 Martin Jambor <mjambor@suse.cz>
25696
25697 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
25698 of cgraph_node, handle NULL return value.
25699 (cgraph_global_info): Likewise.
25700 (cgraph_rtl_info): Likewise.
25701 * tree-inline.c (estimate_num_insns): Likewise.
25702 * gimplify.c (unshare_body): Likewise.
25703 (unvisit_body): Likewise.
25704 (gimplify_body): Likewise.
25705 * predict.c (optimize_function_for_size_p): Likewise.
25706 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25707 (call_may_clobber_ref_p_1): Likewise.
25708 * varasm.c (function_section_1): Likewise.
25709 (assemble_start_function): Likewise.
25710
25711 2011-04-11 Martin Jambor <mjambor@suse.cz>
25712
25713 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
25714 of cgraph_node.
25715 * final.c (rest_of_clean_state): Likewise.
25716 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
25717 * passes.c (pass_init_dump_file): Likewise.
25718 (execute_all_ipa_transforms): Likewise.
25719 (function_called_by_processed_nodes_p): Likewise.
25720 * predict.c (maybe_hot_frequency_p): Likewise.
25721 (probably_never_executed_bb_p): Likewise.
25722 (compute_function_frequency): Likewise.
25723 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
25724 (unnest_nesting_tree_1): Likewise.
25725 (lower_nested_functions): Likewise.
25726 * tree-optimize.c (execute_fixup_cfg): Likewise.
25727 (tree_rest_of_compilation): Likewise.
25728 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
25729 * tree-sra.c (ipa_early_sra): Likewise.
25730 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
25731 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
25732 * ipa.c (record_cdtor_fn): Likewise.
25733 * ipa-inline.c (cgraph_early_inlining): Likewise.
25734 (compute_inline_parameters_for_current): Likewise.
25735 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25736 * ipa-pure-const.c (local_pure_const): Likewise.
25737 * ipa-split.c (split_function): Likewise.
25738 (execute_split_functions): Likewise.
25739 * cgraphbuild.c (build_cgraph_edges): Likewise.
25740 (rebuild_cgraph_edges): Likewise.
25741 (cgraph_rebuild_references): Likewise.
25742 (remove_cgraph_callee_edges): Likewise.
25743 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
25744 (verify_cgraph_node): Likewise.
25745 (cgraph_analyze_functions): Likewise.
25746 (cgraph_preserve_function_body_p): Likewise.
25747 (save_inline_function_body): Likewise.
25748 (save_inline_function_body): Likewise.
25749 * tree-inline.c (copy_bb): Likewise.
25750 (optimize_inline_calls): Likewise.
25751
25752 2011-04-11 Martin Jambor <mjambor@suse.cz>
25753
25754 PR tree-optimization/48195
25755 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
25756 ipa_check_create_edge_args.
25757 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
25758 ipa_check_create_edge_args.
25759 * ipa-inline.c (inline_generate_summary): Do not call
25760 ipa_check_create_node_params and ipa_check_create_edge_args.
25761 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
25762 ipa_check_create_edge_args.
25763
25764 2011-04-09 Anatoly Sokolov <aesok@post.ru>
25765
25766 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
25767 instead of loop.
25768 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
25769 * function.c (record_hard_reg_sets): Likewise.
25770 * ira.c (compute_regs_asm_clobbered): Likewise.
25771 * sched-deps.c (sched_analyze_1): Likewise.
25772 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
25773
25774 2011-04-09 Xinliang David Li <davidxl@google.com>
25775
25776 PR tree-optimization/PR48484
25777 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
25778 has_valid_pred lazily
25779
25780 2011-04-09 Duncan Sands <baldrick@free.fr>
25781
25782 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
25783
25784 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
25785
25786 * combine.c (combine_validate_cost): Adjust comments. Set registered
25787 cost of I0 to zero at the end, if any.
25788
25789 2011-04-08 Xinliang David Li <davidxl@google.com>
25790
25791 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
25792 to insane profile data.
25793
25794 2011-04-08 Xinliang David Li <davidxl@google.com>
25795
25796 * ipa-cp.c (ipcp_update_profiling): Correct
25797 negative scale factor due to insane profile data.
25798
25799 2011-04-08 Xinliang David Li <davidxl@google.com>
25800
25801 * final.c (dump_basic_block_info): New function.
25802 (final): Dump basic block.
25803 (final_scan_insn): Remove old dump.
25804
25805 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
25806
25807 PR target/47829
25808 * config.gcc (i386-*-freebsd): Disable unwind table generation for
25809 crtbegin/crtend.
25810
25811 2011-04-08 Michael Matz <matz@suse.de>
25812
25813 PR middle-end/48389
25814 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
25815 functions.
25816 (rebuild_jump_labels): Call rebuild_jump_labels_1.
25817 * rtl.h (rebuild_jump_labels_chain): Declare.
25818 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
25819 insns inserted on edges.
25820
25821 2011-04-08 Joseph Myers <joseph@codesourcery.com>
25822
25823 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
25824 * config/arm/arm-arches.def: New.
25825 * config/arm/arm-opts.h: New.
25826 * config/arm/genopt.sh: New.
25827 * config/arm/arm-tables.opt: New (generated).
25828 * config/arm/arm.c (arm_handle_option, arm_target_help,
25829 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
25830 (all_architectures): Get most table contents from arm-arches.def.
25831 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
25832 arm_selected_tune here.
25833 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
25834 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
25835 (march=, mcpu=, mtune=): Use Enum and Var.
25836 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
25837 (arm.o): Update dependencies.
25838
25839 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
25840
25841 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
25842 of header_file.
25843 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
25844 (write_typed_alloc_defns): Likewise.
25845 (main): Calls write_typed_alloc_defns with output_header.
25846
25847 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
25848
25849 PR inline-asm/48435
25850 * ira-color.c (setup_profitable_hard_regs): Add comments.
25851 Don't take prohibited hard regs into account.
25852 (setup_conflict_profitable_regs): Rename to
25853 get_conflict_profitable_regs.
25854 (check_hard_reg_p): Check prohibited hard regs.
25855
25856 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
25857
25858 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
25859 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
25860 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
25861
25862 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25863
25864 PR target/48366
25865 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
25866 move from floating point to shift amount register.
25867 (emit_move_sequence): Remove secondary reload support for floating
25868 point to shift amount amount register copies.
25869 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
25870 amount register copies.
25871 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
25872 register, return false if mode isn't a scalar integer mode.
25873 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
25874
25875 2011-04-08 Richard Guenther <rguenther@suse.de>
25876
25877 * gimple.c (gimple_call_flags): Remove kludge.
25878
25879 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
25880
25881 * sel-sched.c (sel_region_init): Move call to
25882 sel_setup_region_sched_flags after setup_current_loop_nest.
25883
25884 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
25885
25886 PR rtl-optimization/48272
25887 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
25888 init_insn_reg_pressure_info. Adjust a caller.
25889 * sched-int.h (init_insn_reg_pressure_info): Declare.
25890 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
25891 when sched-pressure is enabled.
25892
25893 2011-04-08 Richard Guenther <rguenther@suse.de>
25894
25895 * gimple.c (gimple_set_modified): Do not queue calls to
25896 MODIFIED_NORETURN_CALLS here ...
25897 * tree-ssa-operands.c (update_stmt_operands): ... but here.
25898
25899 2011-04-08 Richard Guenther <rguenther@suse.de>
25900
25901 PR lto/48467
25902 * toplev.c (lang_dependent_init): Do not open asm_out_file
25903 in WPA mode, nor perform debug machinery initialization.
25904 (finalize): Do not unlink asm_out_file in WPA mode.
25905
25906 2011-04-08 Richard Guenther <rguenther@suse.de>
25907
25908 * gimple.h (gimple_call_fntype): New function.
25909 (gimple_call_return_type): Use it.
25910 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
25911 * gimple-low.c (gimple_check_call_args): Likewise.
25912 * gimple.c (gimple_call_flags): Likewise.
25913 (gimple_call_arg_flags): Likewise.
25914 (gimple_call_return_flags): Likewise.
25915 * tree-cfg.c (verify_gimple_call): Likewise.
25916 (do_warn_unused_result): Likewise.
25917 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
25918 * value-prof.c (gimple_ic_transform): Fix fndecl check.
25919
25920 2011-04-08 Dmitry Melnik <dm@ispras.ru>
25921
25922 PR rtl-optimization/48235
25923 * sel-sched.c (code_motion_process_successors): Recompute the last
25924 insn in basic block if control flow changed.
25925 (code_motion_path_driver): Ditto. Recompute the first insn as well.
25926 Update condition for ilist_remove.
25927
25928 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
25929
25930 PR rtl-optimization/48302
25931 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
25932 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
25933 it to record added preheader blocks.
25934 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
25935 on to sel_add_loop_preheaders.
25936 (sel_region_init): Move call to setup_current_loop_nest after
25937 sel_init_bbs.
25938
25939 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
25940
25941 PR target/48273
25942 * cfgloop.h (loop_has_exit_edges): New helper.
25943 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
25944 non-clonable.
25945 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
25946 that have no exit edges.
25947
25948 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
25949
25950 PR rtl-optimization/48442
25951 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
25952 all callers. Adjust assert.
25953
25954 2011-04-08 Jakub Jelinek <jakub@redhat.com>
25955
25956 PR tree-optimization/48377
25957 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
25958 is_packed to true even for types with smaller TYPE_ALIGN than
25959 TYPE_SIZE.
25960
25961 2011-04-08 Richard Guenther <rguenther@suse.de>
25962
25963 PR bootstrap/48513
25964 * doc/tm.texi: Re-generate.
25965
25966 2011-04-08 Wei Guozhi <carrot@google.com>
25967
25968 PR target/47855
25969 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
25970 * config/arm/arm.c (arm_attr_length_push_multi): New function.
25971 * config/arm/arm.md (*push_multi): Change the length computation to
25972 call a C function.
25973
25974 2011-04-08 Anatoly Sokolov <aesok@post.ru>
25975
25976 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
25977 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
25978 * doc/tm.texi: Regenerate.
25979 * system.h (ASM_OUTPUT_BSS): Poison.
25980 * varasm.c (asm_output_bss): Remove function.
25981 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
25982
25983 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
25984 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
25985 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
25986 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25987 Likewise.
25988 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25989 Likewise.
25990 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
25991 Likewise.
25992 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
25993
25994 2011-04-07 Joseph Myers <joseph@codesourcery.com>
25995
25996 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
25997 EnumValue lines.
25998
25999 2011-04-07 Joseph Myers <joseph@codesourcery.com>
26000
26001 * config/m68k/m68k.c (m68k_handle_option): Don't handle
26002 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
26003 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
26004 OPT_mcpu32.
26005 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26006 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
26007 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
26008 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
26009 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
26010 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
26011 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26012 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
26013 options. Don't map other m68k options manually. Don't handle
26014 old-style options as canonical.
26015 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
26016 * doc/install.texi (m68k-*-*): Document binutils version requirement.
26017
26018 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
26019
26020 * basic-block.h (force_nonfallthru): Move to...
26021 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
26022 (force_nonfallthru): ...here.
26023 * cfghooks.c (force_nonfallthru): New function.
26024 * cfgrtl.c (force_nonfallthru): Rename into...
26025 (rtl_force_nonfallthru): ...this.
26026 (commit_one_edge_insertion): Do not set AUX field.
26027 (commit_edge_insertions): Do not discover new basic blocks.
26028 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
26029 (cfg_layout_rtl_cfg_hooks): Likewise.
26030 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
26031 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
26032 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
26033
26034 2011-04-07 Anatoly Sokolov <aesok@post.ru>
26035
26036 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26037 Remove macros.
26038
26039 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
26040
26041 * config/i386/sse.md: Update copyright year.
26042 (avxcvtvecmode): Remove.
26043 (sse_movhlps): Merge with *avx_movhlps.
26044 (sse_movlhps): Merge with *avx_movlhps.
26045 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
26046 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
26047 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
26048 (sse_loadhps): Merge with *avx_loadhps.
26049 (sse_storelps): Merge with *avx_storelps.
26050 (sse_loadlps): Merge with *avx_loadlps.
26051 (sse_movss): Merge with *avx_movss.
26052 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
26053 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
26054 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
26055 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
26056 (vec_set<mode>_0): Ditto.
26057 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
26058 (sse4_1_insertps): Merge with *avx_insertps.
26059 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
26060 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
26061 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
26062 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
26063 (sse2_storehpd): Merge with *avx_storehpd.
26064 (sse2_loadhpd): Merge with *avx_loadhpd.
26065 (sse2_loadlpd): Merge with *avx_loadlpd.
26066 (sse2_movsd): Merge with *avx_movsd.
26067 (*vec_concatv2df): Merge with *vec_concatv2df.
26068
26069 2011-04-07 Jakub Jelinek <jakub@redhat.com>
26070
26071 PR debug/48343
26072 * combine.c (combine_instructions): Add last_combined_insn,
26073 update it if insn is after it, pass it to all try_combine calls.
26074 (try_combine): Add last_combined_insn parameter, pass it instead of
26075 i3 to propagate_for_debug.
26076
26077 2011-04-07 Nick Clifton <nickc@redhat.com>
26078
26079 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
26080 to handle MDR <-> data register transfers.
26081 (movhi_internal): Likewise.
26082
26083 2011-04-07 Alan Modra <amodra@gmail.com>
26084
26085 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
26086 previous stack info.
26087
26088 2011-04-07 Tom de Vries <tom@codesourcery.com>
26089
26090 PR target/43920
26091 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
26092 flow_find_cross_jump. Swap variables to implement backward replacement.
26093 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
26094
26095 2011-04-07 Tom de Vries <tom@codesourcery.com>
26096
26097 PR target/43920
26098 * cfgcleanup.c (walk_to_nondebug_insn): New function.
26099 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
26100 and bb2.
26101 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
26102 src1 or src2. Redirect edges to the last basic block. Update
26103 frequency and count on multiple basic blocks in case of fallthru.
26104
26105 2011-04-07 Tom de Vries <tom@codesourcery.com>
26106
26107 PR target/43920
26108 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
26109 function.
26110 (old_insns_match_p): Change return type. Replace return false/true
26111 with return dir_none/dir_both. Use can_replace_by.
26112 (flow_find_cross_jump): Add dir_p parameter. Init replacement
26113 direction from dir_p. Register replacement direction in dir, last_dir
26114 and afterlast_dir. Handle new return type of old_insns_match_p using
26115 merge_dir. Return replacement direction in dir_p.
26116 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
26117 return type of old_insns_match_p.
26118 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
26119 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
26120 flow_find_cross_jump.
26121 * basic-block.h (enum replace_direction): New type.
26122 (flow_find_cross_jump): Add parameter to declaration.
26123
26124 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
26125
26126 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
26127 (AVXMODEDCVTPS2DQ): Ditto.
26128 (VEC_FLOAT_MODE): Ditto.
26129 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
26130 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26131 (<any_logic:code><mode>3): Use VF mode iterator.
26132 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
26133 Use VF mode iterator.
26134 (copysign<mode>3): Use VF mode iterator.
26135 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
26136 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
26137 (*<any_logic:code><MODEF:mode>3): Merge with
26138 *avx_<any_logic:code><MODEF:mode>3.
26139 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
26140 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
26141 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
26142 (avx_cvtdq2ps<avxmodesuffix>): Remove.
26143 (sse2_cvtdq2ps): Use %v modifier.
26144 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
26145 (avx_cvtps2dq<avxmodesuffix>): Remove.
26146 (sse2_cvtps2dq): Use %v modifier.
26147 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
26148 (avx_cvttps2dq<avxmodesuffix>): Remove.
26149 (sse2_cvttps2dq): Use %v modifier.
26150 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
26151 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
26152 (sse2_cvtsd2siq): Fix insn template.
26153 (sse2_cvtsd2siq_2): Ditto.
26154 (sse2_cvttsd2siq): Ditto.
26155 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
26156 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
26157
26158 2011-04-06 Joseph Myers <joseph@codesourcery.com>
26159
26160 * gcov-io.c: Use GCC Runtime Library Exception.
26161
26162 2011-04-06 Jakub Jelinek <jakub@redhat.com>
26163
26164 PR debug/48466
26165 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
26166 as base_reg whatever register reg has been eliminated to, instead
26167 of hardcoding STACK_POINTER_REGNUM.
26168
26169 2011-04-06 Joseph Myers <joseph@codesourcery.com>
26170
26171 * doc/tm.texi.in: Document C target hooks as separate from general
26172 target hooks.
26173 * doc/tm.texi: Regenerate.
26174 * genhooks.c (struct hook_desc): Add docname field.
26175 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
26176 docname field.
26177 (hook_array): Include c-target.def.
26178 (emit_documentation): Use docname field in output.
26179 (emit_init_macros): Take docname argument. Only emit definitions
26180 for hooks matching docname.
26181 (main): Expect additional arguments in all cases. Pass argument
26182 to emit_init_macros.
26183 * target.def: Move initial macro definitions and comments to
26184 target-hooks-macros.h.
26185 (gcc_targetcm): Move to c-family/c-target.def.
26186 * target.h (targetcm): Move declaration to c-family/c-target.h.
26187 * targhooks.c (default_handle_c_option): Move to
26188 c-family/c-opts.c.
26189 * targhooks.h (default_handle_c_option): Move declaration to
26190 c-family/c-common.h.
26191 * target-hooks-macros.h: New file.
26192 * config.gcc (target_has_targetcm): Define and use to add to
26193 c_target_objs and cxx_target_objs.
26194 * config/default-c.c: New file.
26195 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
26196 of target.h and target-def.h.
26197 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
26198 (darwin_objc_construct_string, darwin_cfstring_ref_p,
26199 darwin_check_cfstring_format_arg): Make static.
26200 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26201 TARGET_STRING_OBJECT_REF_TYPE_P,
26202 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
26203 * config/darwin-protos.h (darwin_objc_construct_string,
26204 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
26205 declare.
26206 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
26207 TARGET_STRING_OBJECT_REF_TYPE_P,
26208 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
26209 * config/t-darwin (darwin-c.o): Update dependencies.
26210 * system.h (TARGET_HAS_TARGETCM): Poison.
26211 * Makefile.in (TARGET_H): Update.
26212 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
26213 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
26214 (default-c.o): New target.
26215 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
26216 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
26217 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
26218 c-target.def.
26219 (build/genhooks.o): Update dependencies.
26220
26221 2011-04-06 Richard Guenther <rguenther@suse.de>
26222
26223 * ipa-inline.c (enum inlining_mode): Remove.
26224 (cgraph_flatten): Use some other token.
26225 (cgraph_edge_early_inlinable_p): New function, split out from ...
26226 (cgraph_perform_always_inlining): New function, split out from ...
26227 (cgraph_decide_inlining_incrementally): ... here.
26228 (cgraph_mark_inline_edge): Adjust.
26229 (cgraph_early_inlining): Re-structure.
26230 (pass_early_inline): Require SSA form.
26231
26232 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
26233 Julian Brown <julian@codesourcery.com>
26234 Mark Shinwell <shinwell@codesourcery.com>
26235
26236 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
26237 LO_REGS only for Thumb-1.
26238 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
26239 be used in short instructions when optimising for size on Thumb-2.
26240
26241 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
26242
26243 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
26244 associated with user returns to be preserved.
26245
26246 2011-04-06 Tristan Gingold <gingold@adacore.com>
26247
26248 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
26249 symbol_queue_size, DBXOUT_DECR_NESTING,
26250 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
26251 if XCOFF_DEBUGGING_INFO.
26252
26253 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
26254
26255 * config/i386/i386.md (attribute isa): New.
26256 (attribute enabled): New.
26257 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
26258 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
26259 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
26260 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
26261 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
26262 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26263 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
26264 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
26265
26266 * config/i386/sse.md (VF): New mode iterator.
26267 (VF1): Ditto.
26268 (VF2): Ditto.
26269 (VF_128): Ditto.
26270 (SSEMODEF4): Remove.
26271 (attribute sse): Handle V8SF and V4DF modes.
26272 (<absneg:code><mode>2): Use VF mode iterator.
26273 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
26274 mode iterator.
26275 (<plusminus_insn><mode>3): Use VF mode iterator.
26276 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
26277 Use VF mode iterator.
26278 (<sse>_vm<plusminus_insn><mode>3): Merge with
26279 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
26280 (mul<mode>3): Use VF mode iterator.
26281 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
26282 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
26283 mode iterator.
26284 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
26285 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
26286 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
26287 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
26288 mode iterator.
26289 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
26290 Use VF1 mode iterator.
26291 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
26292 (sqrt<VF2:mode>2): New expander.
26293 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
26294 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
26295 and sqrtv2df2. Use VF mode iterator.
26296 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
26297 mode iterator.
26298 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
26299 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
26300 Use VF1 mode iterator.
26301 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
26302 (<smaxmin:code><mode>3): Use VF mode iterator.
26303 (*<smaxmin:code><mode>3_finite): Merge with
26304 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
26305 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
26306 (<sse>_vm<smaxmin:code><mode>2): Merge with
26307 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
26308 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
26309 mode iterator.
26310 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
26311 mode iterator.
26312 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
26313 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
26314 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
26315 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
26316 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
26317 VF mode iterator.
26318 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
26319 Use VF_128 mode iterator.
26320 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
26321 mode iterator.
26322 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
26323 VF_128 mode iterator.
26324 (vcond<mode>): Use VF mode iterator.
26325 * config/i386/predicates.md (sse_comparison_operator): Merge with
26326 avx_comparison_float_operator. Do not declare as special_predicate.
26327 * config/i386/i386.c (struct builtin_description): Update for renamed
26328 compare patterns.
26329 (ix86_expand_args_builtin): Ditto.
26330 (ix86_expand_sse_compare_mask): Ditto.
26331
26332 2011-04-06 Richard Guenther <rguenther@suse.de>
26333
26334 * tree-inline.c (estimate_num_insns): For calls simply account
26335 for all passed arguments and a used return value.
26336
26337 2011-04-06 Richard Guenther <rguenther@suse.de>
26338
26339 PR tree-optimization/47663
26340 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
26341 call_stmt_time fields.
26342 (cgraph_edge_inlinable_p): Declare.
26343 (cgraph_edge_recursive_p): New inline function.
26344 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
26345 (cgraph_clone_edge): Copy it.
26346 * ipa-inline.c (cgraph_estimate_edge_time): New function.
26347 Account for call stmt time.
26348 (cgraph_estimate_time_after_inlining): Take edge argument.
26349 (cgraph_estimate_edge_growth): Account call stmt size.
26350 (cgraph_estimate_size_after_inlining): Take edge argument.
26351 (cgraph_mark_inline_edge): Adjust.
26352 (cgraph_check_inline_limits): Likewise.
26353 (cgraph_recursive_inlining_p): Remove.
26354 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
26355 (cgraph_decide_recursive_inlining): Take edge argument and
26356 adjust.
26357 (cgraph_decide_inlining_of_small_functions): Do not avoid
26358 diags for recursive inlining here.
26359 (cgraph_flatten): Adjust.
26360 (cgraph_decide_inlining_incrementally): Likewise.
26361 (estimate_function_body_sizes): Remove call cost handling.
26362 (compute_inline_parameters): Initialize caller edge call costs.
26363 (cgraph_estimate_edge_growth): New function.
26364 (cgraph_estimate_growth): Use it.
26365 (cgraph_edge_badness): Likewise.
26366 (cgraph_check_inline_limits): Take an edge argument.
26367 (cgraph_decide_inlining_of_small_functions): Adjust.
26368 (cgraph_decide_inlining): Likewise.
26369 * tree-inline.c (estimate_num_insns): Only account for call
26370 return value if it is used.
26371 (expand_call_inline): Avoid diagnostics on recursive inline
26372 functions here.
26373 * lto-cgraph.c (lto_output_edge): Output edge call costs.
26374 (input_edge): Input edge call costs.
26375
26376 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26377
26378 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
26379
26380 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
26381
26382 * doc/invoke.texi (Spec Files): Fix typo.
26383
26384 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
26385
26386 * profile.c (branch_prob): Move declaration of local variable. Remove
26387 obsolete ??? comment. Expand the location explicitly instead of using
26388 the LOCATION_FILE and LOCATION_LINE macros.
26389
26390 2011-04-06 Wei Guozhi <carrot@google.com>
26391
26392 PR target/47855
26393 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
26394 (arm_cond_branch): Likewise.
26395 (arm_cond_branch_reversed): Likewise.
26396 (arm_jump): Likewise.
26397 (push_multi): Likewise.
26398 * config/arm/constraints.md (Py): New constraint.
26399
26400 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26401
26402 PR bootstrap/48471
26403 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
26404 Move these...
26405 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
26406 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
26407 #ifdef DBX_DEBUGGING_INFO.
26408
26409 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
26410
26411 PR bootstrap/48403
26412 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
26413 if old and new states differ.
26414
26415 2011-04-05 Joseph Myers <joseph@codesourcery.com>
26416
26417 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
26418 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
26419 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
26420 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
26421 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
26422 mcfv4e): Use Alias.
26423 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
26424 ColdFire options to -mcpu= options.
26425
26426 2011-04-05 Jeff Law <law@redhat.com>
26427
26428 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
26429 check if BB is a successor of LOOP->header and return
26430 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
26431
26432 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
26433
26434 * cprop.c (struct reg_use): Remove.
26435 (reg_use_table): Make an array of RTX.
26436 (find_used_regs, constprop_register, local_cprop_pass,
26437 bypass_block): Simplify users of reg_use_table.
26438 (cprop_insn): Likewise. Iterate if copy propagation succeeded
26439 on one of the uses found by find_used_regs.
26440
26441 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26442
26443 PR bootstrap/48469
26444 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
26445 declaration.
26446
26447 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26448
26449 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
26450 as an rtx.
26451 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
26452
26453 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
26454
26455 PR middle-end/48441
26456 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
26457
26458 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26459
26460 * combine.c: Include obstack.h.
26461 (struct insn_link): Define.
26462 (uid_log_links): Adjust type.
26463 (FOR_EACH_LOG_LINK): New macro.
26464 (insn_link_obstack): Declare.
26465 (alloc_insn_link): Define.
26466 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
26467 type of link variables.
26468 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
26469 (try_combine, record_promoted_values, distribute_notes): Likewise.
26470 (distribute_links): Likewise. Tweak prototype.
26471 (clear_log_links): Delete.
26472 (adjust_for_new_dest): Call alloc_insn_link.
26473 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
26474
26475 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26476
26477 * gcse.c (modify_mem_list): Convert to an array of VECs.
26478 (canon_modify_mem_list, compute_transp): Tweak formatting.
26479 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
26480 (load_killed_in_block_p): Likewise.
26481 (record_last_mem_set_info): Likewise.
26482 (clear_modify_mem_tables): Likewise.
26483
26484 2011-04-05 Tom de Vries <tom@codesourcery.com>
26485
26486 PR middle-end/48461
26487 * function.c (emit_use_return_register_into_block): Only define if
26488 HAVE_return.
26489
26490 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
26491
26492 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
26493
26494 2011-04-05 Joseph Myers <joseph@codesourcery.com>
26495
26496 * config/rx/rx-opts.h: New.
26497 * config/rx/rx.c (rx_cpu_type): Remove.
26498 (rx_handle_option): Don't assert that global structures are in
26499 use. Access variables via opts pointer. Defer most handling of
26500 OPT_mint_register_. Use error_at.
26501 (rx_option_override): Handle deferred OPT_mint_register_ here.
26502 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
26503 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
26504 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
26505 (rx_cpu_types): New Enum and EnumValue entries.
26506 (mint-register=): Use Defer and use Var accordingly.
26507
26508 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26509
26510 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
26511 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
26512 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
26513 Move these...
26514 (debug_free_queue, debug_nesting, symbol_queue_index):
26515 ...and these...
26516 * dbxout.c: ...to here. Make static.
26517
26518 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
26519
26520 * gcse.c (modify_pair): Define. Define a VEC of it.
26521 (canon_modify_mem_list): Convert to an array of VECs.
26522 (free_insn_expr_list_list): Delete.
26523 (clear_modify_mem_tables): Call VEC_free instead.
26524 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
26525 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
26526 (canon_list_insert, compute_transp): Likewise.
26527
26528 2011-04-05 Tom de Vries <tom@codesourcery.com>
26529
26530 PR target/43920
26531 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
26532 for size.
26533
26534 2011-04-05 Tom de Vries <tom@codesourcery.com>
26535
26536 PR target/43920
26537 * function.c (emit_use_return_register_into_block): New function.
26538 (thread_prologue_and_epilogue_insns): Use
26539 emit_use_return_register_into_block.
26540
26541 2011-04-05 Tom de Vries <tom@codesourcery.com>
26542
26543 PR target/43920
26544 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
26545 insn.
26546
26547 2011-04-05 Tom de Vries <tom@codesourcery.com>
26548
26549 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
26550
26551 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
26552
26553 * config/arm/arm.md (define_constants for unspec): Replace with
26554 define_c_enum.
26555 (define_constants for unspecv): Replace with define_c_enum.
26556 * config/arm/neon.md (define_constants for unspec): Replace with
26557 define_c_enum.
26558
26559 2011-04-04 Richard Henderson <rth@redhat.com>
26560
26561 PR bootstrap/48400
26562 * dwarf2out.c (output_line_info): Always emit line info from
26563 at least one section.
26564 (dwarf2out_init): Create text_section_line_info here ...
26565 (set_cur_line_info_table): ... not here.
26566
26567 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
26568
26569 PR target/48380
26570 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
26571 not called.
26572
26573 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
26574
26575 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
26576
26577 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
26578 (expr_equiv_p): Remove.
26579 (insert_set_in_table): Look at <dest, src> pair instead of expr.
26580 (hash_scan_set): Update call to insert_set_in_table.
26581 (dump_hash_table): Dump <dest, src> pair.
26582 (lookup_set): Simplify. Lookup <dest, src> pair.
26583 (compute_transp): Remove, fold heavily simplified code into...
26584 (compute_local_properties): ...here. Expect COMP and TRANSP
26585 unconditionally.
26586 (find_avail_set): Take set directly from struct expr.
26587 (find_bypass-set): Likewise.
26588 (bypass_block): Likewise.
26589 (cprop_insn): Likewise. Remove redundant INSN_P test.
26590
26591 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
26592 checks on form of COND from find_implicit_sets to here.
26593 (find_implicit_sets): Cleanup control flow. Split critical edges
26594 if it exposes implicit sets. Allocate/resize implicit_sets as
26595 necessary.
26596 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
26597 changed something. Run df_analyze after find_implicit_sets if any
26598 edges were split. Do not allocate implicit_sets here.
26599
26600 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
26601 (gcse_obstack): Renamed to cprop_obstack.
26602 (GNEW, GNEWVEC, GNEWVAR): Remove.
26603 (gmalloc): Remove.
26604 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
26605 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
26606 (gcse_alloc): Likewise, and rename to cprop_alloc.
26607 (alloc_gcse_men, free_gcse_mem): Remove.
26608 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
26609 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
26610 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
26611
26612 * cprop.c (oprs_not_set_p): Remove.
26613 (mark_set, mark_clobber): Remove.
26614 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
26615 (reg_not_set_p): New function.
26616 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
26617 (cprop_insn): Likewise.
26618 (cprop_jump): Use FOR_EACH_EDGE.
26619
26620 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
26621
26622 PR bootstrap/48403
26623 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
26624 (rank_for_schedule): Use scheduled_insns vector instead of
26625 last_scheduled_insn.
26626 (ok_for_early_queue_removal): Likewise.
26627 (queue_to_ready): Search forward in nonscheduled_insns_begin if
26628 we have a dbg_cnt.
26629 (choose_ready): Likewise.
26630 (commit_schedule): Use VEC_iterate.
26631 (schedule_block): Initialize nonscheduled_insns_begin. If we have
26632 a dbg_cnt, use it and ensure the first insn is in the ready list.
26633 (haifa_sched_init): Allocate scheduled_insns.
26634 (sched_extend_ready_list): Don't allocate it; reserve space.
26635 (haifa_sched_finish): Free it.
26636
26637 2011-04-04 Joseph Myers <joseph@codesourcery.com>
26638
26639 * optc-gen.awk: Always remove type from Variable entry before
26640 recording in var_seen.
26641
26642 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
26643
26644 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
26645 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
26646 call to tidy_fallthru_edges.
26647
26648 2011-04-04 Joseph Myers <joseph@codesourcery.com>
26649
26650 * doc/options.texi (ToLower): Document.
26651 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
26652 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
26653 * opts.h (cl_option): Add cl_tolower field.
26654 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
26655 arguments with lowercase strings.
26656 * config/rx/rx.opt (mcpu=): Add ToLower.
26657 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
26658 argument.
26659
26660 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
26661
26662 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
26663
26664 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
26665
26666 * config/vax/vax.c: Include reload.h.
26667
26668 2011-04-04 Anatoly Sokolov <aesok@post.ru>
26669
26670 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
26671 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26672 (sparc_preferred_reload_class): New function.
26673
26674 2011-04-04 Jakub Jelinek <jakub@redhat.com>
26675
26676 PR debug/48401
26677 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
26678 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
26679
26680 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
26681
26682 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
26683 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
26684
26685 2011-04-03 Anatoly Sokolov <aesok@post.ru>
26686
26687 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
26688 (ASM_OUTPUT_ALIGNED_BSS): Define.
26689
26690 2011-04-03 Michael Matz <matz@suse.de>
26691
26692 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
26693 and next_slot members.
26694 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
26695 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
26696 (lto_streamer_cache_append): Declare.
26697 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
26698 unsigned index, remove offset parameter, ensure that we append
26699 or update existing entries.
26700 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
26701 parameter, update next_slot for append.
26702 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
26703 parameter.
26704 (lto_streamer_cache_insert_at): Likewise.
26705 (lto_streamer_cache_append): New function.
26706 (lto_streamer_cache_lookup): Use unsigned index.
26707 (lto_streamer_cache_get): Likewise.
26708 (lto_record_common_node): Don't test tree_node_can_be_shared.
26709 (preload_common_node): Adjust call to lto_streamer_cache_insert.
26710 (lto_streamer_cache_delete): Don't free offsets member.
26711 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
26712 (lto_output_string_with_length): Use lto_output_data_stream.
26713 (lto_output_tree_header): Remove ix parameter, don't write it.
26714 (lto_output_builtin_tree): Likewise.
26715 (lto_write_tree): Adjust callers to above, don't track and write
26716 offset, write unsigned index.
26717 (output_unreferenced_globals): Don't emit all global vars.
26718 (write_global_references): Use unsigned indices.
26719 (lto_output_decl_state_refs): Likewise.
26720 (write_symbol): Likewise.
26721 * lto-streamer-in.c (lto_input_chain): Move earlier.
26722 (input_function): Use unsigned index.
26723 (input_alias_pairs): Don't read and then ignore all global vars.
26724 (lto_materialize_tree): Remove ix_p parameter, don't read index,
26725 don't pass it back, use lto_streamer_cache_append.
26726 (lto_register_var_decl_in_symtab): Use unsigned index.
26727 (lto_register_function_decl_in_symtab): Likewise.
26728 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
26729 index.
26730 (lto_get_builtin_tree): Don't read index, use
26731 lto_streamer_cache_append.
26732 (lto_read_tree): Adjust call to lto_materialize_tree.
26733
26734 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
26735 don't use function calls in arguments to MIN.
26736
26737 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
26738 twice.
26739
26740 * gimple.c (gimple_type_leader_entry): Mark deletable.
26741
26742 2011-04-03 Alan Modra <amodra@gmail.com>
26743
26744 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
26745
26746 2011-04-03 Michael Matz <matz@suse.de>
26747
26748 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
26749 an integer.
26750 * tree.h (tree_decl_non_common.vindex): Adjust comment.
26751
26752 2011-04-03 Michael Matz <matz@suse.de>
26753
26754 * cgraphbuild.c (record_reference): Canonicalize constructor values.
26755 * gimple-fold.c (canonicalize_constructor_val): Accept being called
26756 without function context.
26757 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
26758 current_function_decl and cfun.
26759
26760 2011-04-03 Michael Matz <matz@suse.de>
26761
26762 * tree.c (decl_init_priority_insert): Don't create entry for
26763 default priority.
26764 (decl_fini_priority_insert): Ditto.
26765 (fields_compatible_p, find_compatible_field): Remove.
26766 * tree.h (fields_compatible_p, find_compatible_field): Remove.
26767 * gimple.c (gimple_compare_field_offset): Adjust block comment.
26768
26769 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
26770
26771 * combine.c (try_combine): Remove useless local variable.
26772
26773 2011-04-03 Richard Guenther <rguenther@suse.de>
26774 Ira Rosen <ira.rosen@linaro.org>
26775
26776 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
26777 non-variable offsets and compare the remaining bases of the two
26778 accesses instead of looking for exact same data-ref.
26779
26780 2011-04-02 Kai Tietz <ktietz@redhat.com>
26781
26782 PR target/48416
26783 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
26784
26785 * i386.c (ix86_is_msabi_thiscall): New helper function.
26786 (ix86_is_type_thiscall): New helper function.
26787 (ix86_comp_type_attributes): Handle thiscall for method-functions
26788 special.
26789 (init_cumulative_args): Likewise.
26790 (find_drap_reg): Likewise.
26791 (ix86_static_chain): Likewise.
26792 (x86_this_parameter): Likewise.
26793 (x86_output_mi_thunk): Likewise.
26794
26795 2011-04-01 Olivier Hainque <hainque@adacore.com>
26796 Nicolas Setton <setton@adacore.com>
26797 Eric Botcazou <ebotcazou@adacore.com>
26798
26799 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
26800 (add_gnat_descriptive_type_attribute): New function.
26801 (gen_array_type_die): Call it.
26802 (gen_enumeration_type_die): Likewise.
26803 (gen_struct_or_union_type_die): Likewise.
26804 (modified_type_die): Likewise.
26805 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
26806 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
26807 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
26808
26809 2011-04-01 Jakub Jelinek <jakub@redhat.com>
26810
26811 PR bootstrap/48148
26812 * dwarf2out.c (resolve_addr): Don't call force_decl_die
26813 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
26814
26815 Revert:
26816 2011-03-17 Richard Guenther <rguenther@suse.de>
26817
26818 PR bootstrap/48148
26819 * lto-cgraph.c (input_overwrite_node): Clear the abstract
26820 origin for decls in other ltrans units.
26821 (input_varpool_node): Likewise.
26822
26823 2011-04-01 Jakub Jelinek <jakub@redhat.com>
26824
26825 PR middle-end/48335
26826 * expr.c (expand_assignment): Handle all possibilities
26827 if TO_RTX is CONCAT.
26828 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
26829 (store_split_bit_field): If SUBREG_REG (op0) or
26830 op0 itself has smaller mode than word, return it
26831 for offset 0 and const0_rtx for out-of-bounds stores.
26832 If word is const0_rtx, skip it.
26833
26834 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
26835
26836 * config/h8300/h8300.c (print_operand_address): Rename to...
26837 (h8300_print_operand_address): ...this. Make static. Adjust comments.
26838 Call h8300_print_operand and h8300_print_operand_address instead of
26839 print_operand and print_operand_address. Declare.
26840 (print_operand): Renake to...
26841 (h8300_print_operand): ...this. Make static. Adjust comments.
26842 Call h8300_print_operand instead of print_operand. Declare.
26843 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
26844 (h8300_register_move_cost): Likewise.
26845 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
26846 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
26847 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
26848 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
26849 * config/h8300/h8300-protos.h (print_operand): Delete.
26850 (print_operand_address): Delete.
26851
26852 2011-04-01 Richard Henderson <rth@redhat.com>
26853
26854 PR 48400
26855 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
26856 in strict mode before dwarf4. Re-order tests to early out
26857 before switching sections.
26858
26859 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
26860
26861 * config/h8300/constraints.md: New file.
26862 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
26863 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
26864 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
26865 * config/h8300/predicates.md (bit_operand): Likewise.
26866 (incdec_operand): Use satisfies_constraint_M and
26867 satisfies_constraint_O. Don't use C code block.
26868 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
26869 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
26870 (compute_mov_length): Use satisfies_constraint_G.
26871 (fix_bit_operand): Use satisfies_constraint_U.
26872 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
26873 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
26874 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
26875 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
26876 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
26877 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
26878 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26879 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
26880 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
26881 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
26882 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
26883 (EXTRA_MEMORY_CONSTRAINT): Delete.
26884
26885 2011-04-01 Andrew Pinski <pinskia@gmail.com>
26886 Michael Meissner <meissner@linux.vnet.ibm.com>
26887
26888 PR target/48262
26889 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
26890 operands, as per the specifications.
26891
26892 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
26893 (vec_extract_evenv4sf): Ditto.
26894 (vec_extract_evenv8hi): Ditto.
26895 (vec_extract_evenv16qi): Ditto.
26896 (vec_extract_oddv4si): Ditto.
26897
26898 2011-03-31 Mark Wielaard <mjw@redhat.com>
26899
26900 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
26901 high_pc attribute if the CU has no associated code. Only output
26902 DW_AT_entry_pc for CU if not generating strict dwarf and
26903 dwarf_version < 4.
26904
26905 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
26906
26907 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
26908 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
26909 out of ...
26910 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
26911 * final.c (final_start_function): Call the new function rather
26912 than using a NULL argument for dwarf2out_frame_debug.
26913
26914 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
26915 that contains the prologue.
26916
26917 * haifa-sched.c (queue_insn): New arg REASON. All callers
26918 changed. Print it in debugging output.
26919
26920 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
26921
26922 * sched-ebb.c (begin_schedule_ready): Remove second argument.
26923 Split most of the code into...
26924 (begin_move_insn): ... here. New function.
26925 (ebb_sched_info): Add a pointer to it.
26926 * haifa-sched.c (scheduled_insns): New static variable.
26927 (sched_extend_ready_list): Allocate it.
26928 (schedule_block): Use it to record the order of scheduled insns.
26929 Perform RTL changes to move insns only after all scheduling
26930 decisions have been made.
26931 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
26932 begin_move_insn field.
26933 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
26934 * sched-int.h (struct haifa_sched_info): Remove second argument
26935 from begin_schedule_ready hook. Add new member begin_move_insn.
26936 * sched-rgn.c (begin_schedule_ready): Remove second argument.
26937 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
26938
26939 * haifa-sched.c (prune_ready_list): New function, broken out of
26940 schedule_block.
26941 (schedule_block): Use it.
26942
26943 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26944
26945 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
26946
26947 2011-04-01 Kai Tietz <ktietz@redhat.com>
26948
26949 * config.gcc (*-*-mingw*): Allow as option the
26950 posix threading model.
26951 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
26952 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
26953 definition.
26954 (CPP_SPEC): Add pthread/no-pthread handling.
26955 (LIB_SPEC): Likewise.
26956 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
26957 (LIB_SPEC): Likewise.
26958 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
26959 flag to pass -pthread option for shared libgcc build.
26960 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
26961 for shared libgcc build.
26962 * config/i386/t-mingw-pthread: New file.
26963 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
26964 New define to enable use of library pthread by default.
26965 * config/i386/mingw.opt (pthread): New driver option.
26966 (no-pthread): New driver option.
26967 * config/i386/cygming.opt: Make sure trailing empty line is retained.
26968 * config/i386/mingw-w64.opt: Likewise.
26969
26970 2011-04-01 Gary Funck <gary@intrepid.com>
26971
26972 * c-decl.c (grokdeclarator): Fix formatting.
26973
26974 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
26975
26976 * expr.c (emit_block_move_via_movmem): Use n_generator_args
26977 instead of n_operands.
26978 (set_storage_via_setmem): Likewise.
26979 * optabs.c (maybe_gen_insn): Likewise.
26980 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
26981 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
26982 (mips_expand_builtin_direct): Likewise.
26983 * config/spu/spu.c (expand_builtin_args): Likewise.
26984
26985 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
26986
26987 * recog.h (insn_data_d): Add n_generator_args.
26988 * genoutput.c (data): Likewise.
26989 (output_insn_data): Print it.
26990 (max_opno, num_dups): Delete.
26991 (scan_operands): Just fill in "d->operand[...]".
26992 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
26993
26994 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
26995
26996 * gensupport.h (pattern_stats): New structure.
26997 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
26998 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
26999 (max_operand_1, max_operand_vec): Delete.
27000 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
27001
27002 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
27003
27004 * emit-rtl.c (emit_pattern_after_setloc): New function.
27005 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
27006 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
27007 (emit_pattern_after): New function.
27008 (emit_insn_after, emit_jump_insn_after): Call it.
27009 (emit_call_insn_after, emit_debug_insn_after): Likewise.
27010 (emit_pattern_before_setloc): New function.
27011 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
27012 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
27013 Likewise.
27014 (emit_pattern_before): New function.
27015 (emit_insn_before, emit_jump_insn_before): Call it.
27016 (emit_call_insn_before, emit_debug_insn_before): Likewise.
27017
27018 2011-03-31 Richard Henderson <rth@redhat.com>
27019
27020 * dwarf2out.c (dw_separate_line_info_ref): Remove.
27021 (dw_separate_line_info_entry): Remove.
27022 (enum dw_line_info_opcode): New.
27023 (dw_line_info_entry): Use it.
27024 (dw_line_info_table, dw_line_info_table_p): New.
27025 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
27026 (line_info_table, line_info_label_num): Remove.
27027 (line_info_table_in_use): Remove.
27028 (separate_line_info_table): Remove.
27029 (separate_line_info_table_allocated): Remove.
27030 (separate_line_info_table_in_use): Remove.
27031 (LINE_INFO_TABLE_INCREMENT): Remove.
27032 (line_info_label_num): New.
27033 (cur_line_info_table): New.
27034 (text_section_line_info, cold_text_section_line_info): New.
27035 (separate_line_info): New.
27036 (SEPARATE_LINE_CODE_LABEL): Remove.
27037 (print_dwarf_line_table): Remove.
27038 (debug_dwarf): Don't dump it.
27039 (output_one_line_info_table): New.
27040 (output_line_info): Use it.
27041 (new_line_info_table): New.
27042 (set_cur_line_info_table): New.
27043 (dwarf2out_switch_text_section): Use it.
27044 (dwarf2out_begin_function): Likewise.
27045 (push_dw_line_info_entry): New.
27046 (dwarf2out_source_line): Rewrite for new line info tables.
27047 (dwarf2out_init): Remove dead initailizations.
27048
27049 2011-03-31 Joseph Myers <joseph@codesourcery.com>
27050
27051 * opts.h (cl_option): Add comments to fields. Add bit-fields for
27052 various flags.
27053 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
27054 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
27055 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
27056 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
27057 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
27058 * opt-functions.awk (flag_init, switch_bit_fields): New.
27059 (switch_flags): Don't handle flags moved to bit-fields. Don't
27060 generate CL_MISSING_OK or CL_SAVE.
27061 * optc-gen.awk: Update to generate bit-field output as well as
27062 flags field.
27063 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
27064 bit-field instead of CL_REJECT_DRIVER flag.
27065 * opts-common.c (generate_canonical_option,
27066 decode_cmdline_option): Use bit-fields instead of CL_* flags.
27067 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
27068 instead of CL_REJECT_NEGATIVE flag.
27069 * toplev.c (print_switch_values): Use cl_report bit-field instead
27070 of CL_REPORT flag.
27071
27072 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
27073
27074 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
27075 a zero minimum index only if it is redundant.
27076
27077 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
27078
27079 PR rtl-optimization/48381
27080 * ira-color.c (assign_hard_reg): Use hard reg set intersection
27081 instead of ira_class_hard_reg_index for calculating conflicting
27082 hard registers.
27083
27084 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
27085
27086 * cprop.c: Clean up hash table building.
27087 (reg_avail_info): Remove.
27088 (oprs_available_p): Remove.
27089 (record_last_reg_set_info): Remove.
27090 (record_last_set_info): Remove.
27091 (reg_available_p): New function.
27092 (gcse_constant_p): Do not treat unfolded conditions as constants.
27093 (make_set_regs_unavailable): New function.
27094 (hash_scan_set): Simplify with new reg_available_p.
27095 (compute_hash_table_work): Traverse insns stream only once.
27096 Do not compute reg_avail_info. Traverse insns in reverse order.
27097 Record implicit sets after recording explicit sets from the block.
27098
27099 2011-03-31 Michael Matz <matz@suse.de>
27100
27101 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
27102
27103 2011-03-31 Anatoly Sokolov <aesok@post.ru>
27104
27105 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
27106 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
27107 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27108 (h8300_mode_dependent_address_p): New function.
27109 (h8300_get_index): Make static.
27110
27111 2011-03-31 Jeff Law <law@redhat.com>
27112
27113 * reload1.c (elimination_effects): Fix typo in recent change.
27114
27115 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
27116 typo potentially leading to null pointer dereference.
27117
27118 * caller-save.c (new_saved_hard_reg): Eliminate return value.
27119 (setup_save_areas): Corresponding changes to avoid useless
27120 assignments.
27121
27122 * jump.c (reversed_comparison_code_parts): Avoid successive return
27123 statements when REVERSE_CONDITION is defined.
27124
27125 * expr.c (expand_assignment): Avoid useless assignments.
27126 (expand_expr_real_1): Likewise.
27127 (expand_expr_real_2): Avoid useless statements.
27128
27129 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
27130
27131 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
27132
27133 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
27134 statements.
27135
27136 * stmt.c (expand_expr_stmt): Avoid useless assignment.
27137
27138 2011-03-31 Joseph Myers <joseph@codesourcery.com>
27139
27140 PR target/47109
27141 * doc/tm.texi.in (TARGET_VERSION): Remove.
27142 * doc/tm.texi: Regenerate.
27143 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
27144 * collect2.c (main): Don't use TARGET_VERSION.
27145 * mips-tdump.c (main): Don't use TARGET_VERSION.
27146 * mips-tfile.c (main): Don't use TARGET_VERSION.
27147 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
27148 * config/rs6000/vxworksae.h: Remove.
27149 * config/alpha/alpha.h (TARGET_VERSION): Remove.
27150 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
27151 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
27152 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
27153 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27154 * config/arm/arm.h (TARGET_VERSION): Remove.
27155 * config/arm/coff.h (TARGET_VERSION): Remove.
27156 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
27157 * config/arm/elf.h (TARGET_VERSION): Remove.
27158 * config/arm/freebsd.h (TARGET_VERSION): Remove.
27159 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
27160 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
27161 * config/arm/pe.h (TARGET_VERSION): Remove.
27162 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
27163 * config/arm/semi.h (TARGET_VERSION): Remove.
27164 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
27165 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
27166 * config/arm/vxworks.h (TARGET_VERSION): Remove.
27167 * config/avr/avr.h (TARGET_VERSION): Remove.
27168 * config/bfin/bfin.h (TARGET_VERSION): Remove.
27169 * config/fr30/fr30.h (TARGET_VERSION): Remove.
27170 * config/frv/frv.h (TARGET_VERSION): Remove.
27171 * config/h8300/h8300.h (TARGET_VERSION): Remove.
27172 * config/i386/cygwin.h (TARGET_VERSION): Remove.
27173 * config/i386/darwin.h (TARGET_VERSION): Remove.
27174 * config/i386/darwin64.h (TARGET_VERSION): Remove.
27175 * config/i386/djgpp.h (TARGET_VERSION): Remove.
27176 * config/i386/freebsd.h (TARGET_VERSION): Remove.
27177 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
27178 * config/i386/gnu.h (TARGET_VERSION): Remove.
27179 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
27180 * config/i386/i386elf.h (TARGET_VERSION): Remove.
27181 * config/i386/linux.h (TARGET_VERSION): Remove.
27182 * config/i386/linux64.h (TARGET_VERSION): Remove.
27183 * config/i386/lynx.h (TARGET_VERSION): Remove.
27184 * config/i386/mingw32.h (TARGET_VERSION): Remove.
27185 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
27186 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
27187 * config/i386/netware.h (TARGET_VERSION): Remove.
27188 * config/i386/nto.h (TARGET_VERSION): Remove.
27189 * config/i386/openbsd.h (TARGET_VERSION): Remove.
27190 * config/i386/vxworks.h (TARGET_VERSION): Remove.
27191 * config/ia64/elf.h (TARGET_VERSION): Remove.
27192 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
27193 * config/ia64/hpux.h (TARGET_VERSION): Remove.
27194 * config/ia64/linux.h (TARGET_VERSION): Remove.
27195 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
27196 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
27197 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27198 * config/lm32/lm32.h (TARGET_VERSION): Remove.
27199 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
27200 * config/m32c/m32c.h (TARGET_VERSION): Remove.
27201 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
27202 * config/m32r/m32r.h (TARGET_VERSION): Remove.
27203 * config/m68k/linux.h (TARGET_VERSION): Remove.
27204 * config/m68k/m68k.h (TARGET_VERSION): Remove.
27205 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
27206 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
27207 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
27208 * config/mep/mep.h (TARGET_VERSION): Remove.
27209 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
27210 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
27211 * config/mips/iris6.h (MACHINE_TYPE): Remove.
27212 * config/mips/linux.h (TARGET_VERSION): Remove.
27213 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
27214 * config/mips/vxworks.h (TARGET_VERSION): Remove.
27215 * config/mmix/mmix.h (TARGET_VERSION): Remove.
27216 * config/mn10300/linux.h (TARGET_VERSION): Remove.
27217 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
27218 * config/pa/pa.h (TARGET_VERSION): Remove.
27219 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
27220 * config/picochip/picochip.h (TARGET_VERSION): Remove.
27221 * config/rs6000/aix.h (TARGET_VERSION): Remove.
27222 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
27223 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
27224 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
27225 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
27226 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
27227 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
27228 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
27229 * config/rs6000/linux.h (TARGET_VERSION): Remove.
27230 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
27231 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
27232 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
27233 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
27234 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
27235 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
27236 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
27237 * config/s390/linux.h (TARGET_VERSION): Remove.
27238 * config/s390/s390.h (TARGET_VERSION): Remove.
27239 * config/s390/tpf.h (TARGET_VERSION): Remove.
27240 * config/score/score.h (TARGET_VERSION): Remove.
27241 * config/sh/linux.h (TARGET_VERSION): Remove.
27242 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
27243 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
27244 * config/sh/sh.h (TARGET_VERSION): Remove.
27245 * config/sh/sh64.h (TARGET_VERSION): Remove.
27246 * config/sh/superh.h (TARGET_VERSION): Remove.
27247 * config/sh/vxworks.h (TARGET_VERSION): Remove.
27248 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
27249 * config/sparc/linux.h (TARGET_VERSION): Remove.
27250 * config/sparc/linux64.h (TARGET_VERSION): Remove.
27251 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
27252 TARGET_NAME32, TARGET_NAME): Remove.
27253 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
27254 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
27255 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
27256 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
27257 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
27258 * config/spu/spu.h (TARGET_VERSION): Remove.
27259 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
27260 * config/v850/v850.h (TARGET_VERSION): Remove.
27261 * config/vax/linux.h (TARGET_VERSION): Remove.
27262 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
27263 * config/xtensa/elf.h (TARGET_VERSION): Remove.
27264 * config/xtensa/linux.h (TARGET_VERSION): Remove.
27265
27266 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
27267
27268 PR target/48142
27269 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
27270 frame-related from frame-unrelated adjustments to the stack pointer.
27271
27272 2011-03-31 Jakub Jelinek <jakub@redhat.com>
27273
27274 * common.opt (fdebug-types-section): Move earlier.
27275 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
27276
27277 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
27278
27279 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
27280 var.
27281
27282 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
27283
27284 * tree.h (CASE_CHAIN): Define.
27285 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
27286 (gimple_redirect_edge_and_branch): Likewise.
27287
27288 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
27289
27290 PR middle-end/48367
27291 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
27292 calculation.
27293
27294 2011-03-30 Jeff Law <law@redhat.com>
27295
27296 * PR bootstrap/48371
27297 * reload1.c (reload): Fix botch in last change.
27298
27299 * reload.h (struct reload): Fix typo introduced in last change.
27300
27301 2011-03-30 Joseph Myers <joseph@codesourcery.com>
27302
27303 * config/arm/arm.opt (mhard-float, msoft-float): Mark
27304 Undocumented. Remove help text.
27305 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
27306 -mhard-float.
27307
27308 2011-03-30 Joseph Myers <joseph@codesourcery.com>
27309
27310 * doc/options.texi (NegativeAlias): Document.
27311 (Alias): Mention NegativeAlias.
27312 * opt-functions.awk: Handle NegativeAlias.
27313 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
27314 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
27315 * opts.h (CL_NEGATIVE_ALIAS): Define.
27316 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
27317 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
27318 OPT_mspe_.
27319 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
27320 Alias entries.
27321 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27322 mno-spe and mno-isel instead of mspe=no and -misel=no.
27323
27324 2011-03-29 Mark Wielaard <mjw@redhat.com>
27325
27326 * common.opt (fdebug-types-section): New flag.
27327 * doc/invoke.texi: Document new -fno-debug-types-section flag.
27328 * dwarf2out.c (use_debug_types): New define.
27329 (struct die_struct): Mark die_id with GTY desc use_debug_types.
27330 (print_die): Guard output of type unit signatures using
27331 use_debug_types.
27332 (build_abbrev_table): Replace assert of dwarf_version >= 4
27333 with assert on use_debug_types.
27334 (size_of_die): Likewise.
27335 (unmark_dies): Likewise.
27336 (value_format): Decide AT_ref_external form on use_debug_types.
27337 (output_die): Replace dwarf_version version check guard with
27338 use_debug_types where appropriate.
27339 (modified_type_die): Likewise.
27340 (gen_reference_type_die): Likewise.
27341 (dwarf2out_start_source_file): Likewise.
27342 (dwarf2out_end_source_file): Likewise.
27343 (prune_unused_types_walk_attribs): Likewise.
27344 (dwarf2out_finish): Likewise.
27345
27346 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
27347
27348 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
27349
27350 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
27351
27352 PR rtl-optimization/48332
27353 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
27354 mode of input operand N and modeN to its actual mode.
27355
27356 2011-03-30 Jeff Law <law@redhat.com>
27357
27358 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
27359 define accessor macro.
27360 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
27361 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
27362 (reg_equiv_init): Likewise.
27363 (reg_equivs_size): New variable.
27364 (reg_equiv_init_size): Remove.
27365 (allocate_initial_values): Move prototype to here from....
27366 * integrate.h (allocate_initial_values): Remove prototype.
27367 * integrate.c: Include reload.h.
27368 (allocate_initial_values): Corresponding changes.
27369 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
27370 (fix_reg_equiv_init, no_equiv): Corresponding changes.
27371 (update_equiv_regs): Corresponding changes.
27372 (ira): Corresponding changes.
27373 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
27374 (push_secondary_reload): Corresponding changes.
27375 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
27376 (make_memloc, find_reloads_address): Corresponding changes.
27377 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
27378 (find_reloads_address_1): Corresponding changes.
27379 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
27380 (refers_to_regno_for_reload_p): Corresponding changes.
27381 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
27382 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
27383 * reload1.c: Include ggc.h.
27384 (grow_reg_equivs): New function.
27385 (replace_pseudos_in, reload): Corresponding changes.
27386 (calculate_needs_all_insns, alter_regs): Corresponding changes.
27387 (eliminate_regs_1, elimination_effects): Corresponding changes.
27388 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
27389 (delete_output_reload): Likewise.
27390 * caller-save.c (mark_referenced_regs): Corresponding changes.
27391 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
27392 * frv/predicates.md (frv_load_operand): Corresponding changes.
27393 * microblaze/microblaze.c (double_memory_operand): Corresponding
27394 changes.
27395 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
27396 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
27397 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
27398 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
27399 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
27400 changes.
27401 * pa/pa.c (emit_move_sequence): Corresponding changes.
27402 * vax/vax.c (nonindexed_address_p): Corresponding changes.
27403
27404 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
27405
27406 PR target/47551
27407 * config/arm/arm.c (coproc_secondary_reload_class): Handle
27408 structure modes. Don't check neon_vector_mem_operand for
27409 vector or structure modes.
27410
27411 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
27412 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27413
27414 PR target/43590
27415 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
27416 operand 1 and reshuffle the operands to match.
27417 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
27418
27419 2011-03-30 Christian Schüler <cschueler@gmx.de>
27420
27421 PR driver/48208
27422 * config/c.opt (F): Added 'Driver' to -F option.
27423
27424 PR driver/48260
27425 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
27426 handler function.
27427 * config/darwin.opt: Added '-arch' option.
27428
27429 2011-03-30 Nick Clifton <nickc@redhat.com>
27430
27431 * config/rx/rx.md: Add peepholes and patterns to combine
27432 extending loads and simple arithmetic instructions.
27433 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
27434 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
27435 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
27436 modes to use pre-decrement and post-increment addressing.
27437 (rx_is_restricted_memory_address): Add range checking of REG+INT
27438 addresses.
27439 (rx_print_operand): Add support for %Q. Fix handling of %Q.
27440 (rx_memory_move_cost): Adjust cost of stores.
27441 (rx_adjust_insn_length): New function.
27442
27443 2011-03-30 Jakub Jelinek <jakub@redhat.com>
27444
27445 PR c/48305
27446 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27447 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
27448 matching arg00/arg01 types.
27449
27450 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
27451
27452 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
27453 last_location to UNKNOWN_LOCATION.
27454
27455 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
27456
27457 PR target/48349
27458 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
27459 FLOAT_SSE_REGS.
27460
27461 2011-03-30 Joseph Myers <joseph@codesourcery.com>
27462 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27463
27464 PR bootstrap/48337
27465 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
27466 Init(PROCESSOR_V7).
27467 (sparc_cpu): Likewise.
27468 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
27469 PROCESSOR_V7.
27470
27471 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
27472
27473 PR target/48336
27474 PR middle-end/48342
27475 PR rtl-optimization/48345
27476 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
27477 hard regs for given mode from profitable regs when doing secondary
27478 allocation.
27479
27480 2011-03-29 Jeff Law <law@redhat.com>
27481
27482 PR bootstrap/48327
27483 * tree-ssa-threadupdate.c (struct redirection_data): Remove
27484 do_not_duplicate field.
27485 (lookup_redirection_data): Corresponding changes.
27486 (create_duplicates): Always create a template block.
27487 (redirect_edges): Remove code which reused the original block
27488 when it was going to become unreachable code.
27489 (thread_block): Don't set do_not_duplicate field.
27490
27491 2011-03-29 Joseph Myers <joseph@codesourcery.com>
27492
27493 * lto-opts.c (register_user_option_p, lto_register_user_option):
27494 Make type argument unsigned.
27495 * lto-streamer.h (lto_register_user_option): Make type argument
27496 unsigned.
27497 * opth-gen.awk: Make CL_* macros unsigned.
27498 * opts-common.c (find_opt): Make lang_mask argument unsigned.
27499 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
27500 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
27501 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
27502 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
27503 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
27504 (find_opt): Make lang_mask argument unsigned.
27505
27506 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
27507
27508 PR rtl-optimization/48331
27509 PR rtl-optimization/48334
27510 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
27511 for any used algorithm.
27512
27513 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
27514
27515 * ira-conflicts.c (build_object_conflicts): Add unused attribute
27516 to parent_max.
27517
27518 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
27519
27520 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
27521 (alpha_option_override): Don't set alpha_sr_alias_set.
27522 (emit_frame_store_1): Use gen_frame_mem rather than calling
27523 set_mem_alias_set.
27524 (alpha_expand_epilogue): Ditto.
27525
27526 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
27527
27528 PR tree-optimization/48290
27529 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
27530 vectorization, check that relevant phis in the basic block after
27531 the inner loop are really inner loop's exit phis.
27532
27533 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
27534
27535 PR debug/48190
27536 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
27537 (cached_dw_loc_list_def): New structure.
27538 (cached_dw_loc_list): New typedef.
27539 (cached_dw_loc_list_table): New variable.
27540 (cached_dw_loc_list_table_hash): New function.
27541 (cached_dw_loc_list_table_eq): Likewise.
27542 (add_location_or_const_value_attribute): Take a bool cache_p.
27543 Cache the list when the parameter is true.
27544 (gen_formal_parameter_die): Update caller.
27545 (gen_variable_die): Likewise.
27546 (dwarf2out_finish): Likewise.
27547 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
27548 while generating debug info for the decl.
27549 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
27550 (dwarf2out_init): Initialize cached_dw_loc_list_table.
27551 (resolve_addr): Cache the result of resolving a chain of
27552 location lists.
27553
27554 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
27555
27556 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
27557 conflict object hard regset nodes have intersecting hard reg sets.
27558
27559 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
27560 after regstat_init_n_sets_and_refs.
27561
27562 * ira.c: Add more comments at the top.
27563 (setup_stack_reg_pressure_class, setup_pressure_classes):
27564 Add comments how we compute the register pressure classes.
27565 (setup_allocno_and_important_classes): Add more comments.
27566 (setup_class_translate_array, reorder_important_classes)
27567 (setup_reg_class_relations): Add comments.
27568
27569 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
27570 start of the file.
27571
27572 * ira-color.c: Add 2011 to the Copyright line.
27573 (assign_hard_reg): Add more comments.
27574 (improve_allocation): Ditto.
27575
27576 * ira-costs.c: Add 2011 to the Copyright line.
27577 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
27578 comments.
27579 (setup_regno_cost_classes_by_mode): Ditto.
27580
27581 Initial patches from ira-improv branch:
27582
27583 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
27584
27585 * ira-build.c (ira_create_object): Remove initialization of
27586 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
27587 (ira_create_allocno): Remove initialization of
27588 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
27589 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
27590 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27591 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
27592 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
27593 Initialize ALLOCNO_ADD_DATA.
27594 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
27595 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
27596 ALLOCNO_REG.
27597 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
27598 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
27599
27600 * ira.c (ira_reallocate): Remove.
27601 (setup_pressure_classes): Call
27602 ira_init_register_move_cost_if_necessary. Use
27603 ira_register_move_cost instead of ira_get_register_move_cost.
27604 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
27605 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
27606
27607 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
27608 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
27609 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
27610 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
27611 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
27612 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
27613 Fix formatting.
27614 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
27615 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27616 (struct allocno_color_data): New.
27617 (allocno_color_data_t): New typedef.
27618 (allocno_color_data): New definition.
27619 (ALLOCNO_COLOR_DATA): New macro.
27620 (struct object_color_data): New.
27621 (object_color_data_t): New typedef.
27622 (object_color_data): New definition.
27623 (OBJECT_COLOR_DATA): New macro.
27624 (update_copy_costs, calculate_allocno_spill_cost): Call
27625 ira_init_register_move_cost_if_necessary. Use
27626 ira_register_move_cost instead of ira_get_register_move_cost.
27627 (move_spill_restore, update_curr_costs): Ditto.
27628 (allocno_spill_priority): Make it inline.
27629 (color_pass): Allocate and free allocno_color_dat and object_color_data.
27630 (struct coalesce_data, coalesce_data_t): New.
27631 (allocno_coalesce_data): New definition.
27632 (ALLOCNO_COALESCE_DATA): New macro.
27633 (merge_allocnos, coalesced_allocno_conflict_p): Use
27634 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
27635 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
27636 (coalesce_allocnos): Ditto.
27637 (setup_coalesced_allocno_costs_and_nums): Ditto.
27638 (collect_spilled_coalesced_allocnos): Ditto.
27639 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
27640 (setup_slot_coalesced_allocno_live_ranges): Ditto.
27641 (coalesce_spill_slots): Ditto.
27642 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
27643 free allocno_coalesce_data.
27644
27645 * ira-conflicts.c: Fix formatting.
27646 (process_regs_for_copy): Call
27647 ira_init_register_move_cost_if_necessary. Use
27648 ira_register_move_cost instead of ira_get_register_move_cost.
27649 (build_object_conflicts): Optimize.
27650
27651 * ira-costs.c (record_reg_classes): Optimize. Call
27652 ira_init_register_move_cost_if_necessary. Use
27653 ira_register_move_cost, ira_may_move_in_cost, and
27654 ira_may_move_out_cost instead of ira_get_register_move_cost and
27655 ira_get_may_move_cost.
27656 (record_address_regs): Ditto.
27657 (scan_one_insn): Optimize.
27658 (find_costs_and_classes): Optimize.
27659 (process_bb_node_for_hard_reg_moves): Call
27660 ira_init_register_move_cost_if_necessary. Use
27661 ira_register_move_cost instead of ira_get_register_move_cost.
27662
27663 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
27664 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
27665 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
27666 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
27667 definitions.
27668 (ira_initiate_emit_data, ira_finish_emit_data)
27669 (create_new_allocno): New functions.
27670 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
27671 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
27672 Use ira_register_move_cost instead of ira_get_register_move_cost.
27673
27674 * ira-int.h: Fix some comments.
27675 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
27676 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
27677 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
27678 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
27679 add_data.
27680 (struct ira_allocno): Make mode and aclass a bitfield. Move other
27681 bitfield after mode. Make hard_regno a short int. Make
27682 hard_regno short. Remove first_coalesced_allocno and
27683 next_coalesced_allocno. Move mem_optimized_dest_p,
27684 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
27685 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
27686 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
27687 temp, colorable_p. Add new member add_data.
27688 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
27689 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
27690 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
27691 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
27692 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
27693 (ALLOCNO_ADD_DATA): New macro.
27694 (ira_emit_data_t): New typedef.
27695 (struct ira_emit_data): New. Move mem_optimized_dest_p,
27696 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
27697 from struct ira_allocno.
27698 (ALLOCNO_EMIT_DATA): New macro.
27699 (ira_allocno_emit_data, allocno_emit_reg): New.
27700 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
27701 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
27702 (OBJECT_ADD_DATA): New macro.
27703 (ira_reallocate): Remove.
27704 (ira_initiate_emit_data, ira_finish_emit_data): New.
27705 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
27706 (ira_init_register_move_cost_if_necessary): New.
27707 (ira_object_conflict_iter_next): Merge into
27708 ira_object_conflict_iter_cond.
27709 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
27710
27711 * ira-live.c (process_single_reg_class_operands): Call
27712 ira_init_register_move_cost_if_necessary. Use
27713 ira_register_move_cost instead of ira_get_register_move_cost.
27714
27715 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
27716
27717 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
27718
27719 * ira-costs.c: Fix formatting.
27720 (cost_classes, cost_classes_num): Remove.
27721 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
27722 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
27723 (cost_classes_del, cost_classes_htab): New.
27724 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
27725 (initiate_regno_cost_classes, setup_cost_classes): New.
27726 (setup_regno_cost_classes_by_aclass): New.
27727 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
27728 (record_reg_classes): Use regno_cost_classes instead of
27729 cost_classes. Move checking opposite operand up.
27730 (record_address_regs): Use regno_cost_classes
27731 instead of cost_classes.
27732 (scan_one_insn): Ditto. Use always general register.
27733 (print_allocno_costs): Use regno_cost_classes instead of
27734 cost_classes.
27735 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
27736 (find_costs_and_classes): Set up cost classes for each registers.
27737 Use also their mode for this. Use regno_cost_classes instead of
27738 cost_classes.
27739 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
27740 cost_classes.
27741 (free_ira_costs, ira_init_costs): Don't use cost_classes.
27742 (ira_costs, ira_set_pseudo_classes): Call
27743 initiate_regno_cost_classes and finish_regno_cost_classes.
27744
27745 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
27746
27747 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
27748
27749 * target.def (ira_cover_classes): Remove.
27750
27751 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
27752
27753 * doc/tm.texi.in: Ditto.
27754
27755 * ira-conflicts.c: Remove mentioning cover classes from the file.
27756 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
27757 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
27758
27759 * targhooks.c (default_ira_cover_classes): Remove.
27760
27761 * targhooks.h (default_ira_cover_classes): Ditto.
27762
27763 * haifa-sched.c: Remove mentioning cover classes from the file.
27764 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
27765 ira_pressure_classes and ira_pressure_classes_num instead of
27766 ira_reg_class_cover_size and ira_reg_class_cover. Use
27767 sched_regno_pressure_class instead of sched_regno_cover_class.
27768 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
27769 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27770
27771 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
27772 classes from the file.
27773 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
27774 (struct object_hard_regs, struct object_hard_regs_node): New.
27775 (struct ira_object): New members profitable_hard_regs,
27776 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
27777 (struct ira_allocno): Rename cover_class to aclass. Rename
27778 cover_class_cost and updated_cover_class_cost to class_cost and
27779 updated_class_cost. Remove splay_removed_p and
27780 left_conflict_size. Add new members colorable_p.
27781 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
27782 (ALLOCNO_COLORABLE_P): New macro.
27783 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
27784 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
27785 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
27786 (OBJECT_...): Rename parameter C to O.
27787 (OBJECT_PROFITABLE_HARD_REGS): New macro.
27788 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
27789 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
27790 (struct target_ira_int): New members x_ira_max_memory_move_cost,
27791 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
27792 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
27793 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
27794 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
27795 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
27796 x_ira_reg_class_subunion.
27797 (ira_max_memory_move_cost, ira_max_register_move_cost)
27798 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
27799 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
27800 (ira_important_class_nums, ira_reg_class_superunion): New macros.
27801 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
27802 (ira_reg_class_union): Rename to ira_reg_class_subunion.
27803 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
27804 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
27805 (ira_tune_allocno_costs_and_cover_classes): Rename to
27806 ira_tune_allocno_costs.
27807 (ira_debug_hard_regs_forest): New.
27808 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
27809 (ira_object_conflict_iter_next): Fix comments.
27810 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
27811 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
27812 cover_class to aclass.
27813 (ira_allocate_and_accumulate_costs): Ditto.
27814 (ira_allocate_and_set_or_copy_costs): Ditto.
27815
27816 * opts.c (decode_options): Remove ira_cover_class check.
27817
27818 * ira-color.c: Remove mentioning cover classes from the file. Use
27819 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
27820 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
27821 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
27822 (splay-tree.h): Remove include.
27823 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
27824 before copy_freq_compare_func.
27825 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
27826 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
27827 New definitions.
27828 (hard_regs_roots, hard_regs_node_vec): Ditto.
27829 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
27830 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
27831 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
27832 (create_new_object_hard_regs_node): Ditto.
27833 (add_new_object_hard_regs_node_to_forest): Ditto.
27834 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
27835 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
27836 Ditto.
27837 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
27838 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
27839 (remove_unused_object_hard_regs_nodes): Ditto.
27840 (enumerate_object_hard_regs_nodes): Ditto.
27841 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
27842 (object_hard_regs_subnode_t): Ditto.
27843 (struct object_hard_regs_subnode): Ditto.
27844 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
27845 (setup_object_hard_regs_subnode_index): Ditto.
27846 (get_object_hard_regs_subnodes_num): Ditto.
27847 (form_object_hard_regs_nodes_forest): Ditto.
27848 (finish_object_hard_regs_nodes_tree): Ditto.
27849 (finish_object_hard_regs_nodes_forest): Ditto.
27850 (allocnos_have_intersected_live_ranges_p): Rename to
27851 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
27852 (pseudos_have_intersected_live_ranges_p): Rename to
27853 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
27854 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
27855 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
27856 (update_copy_costs): Remove assert. Skip cost update if the hard
27857 reg does not belong the class.
27858 (assign_hard_reg): Process only profitable hard regs.
27859 (uncolorable_allocnos_num): Make it scalar.
27860 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
27861 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
27862 and ira_reg_class_max_nregs.
27863 (bucket_allocno_compare_func): Check frequency first.
27864 (sort_bucket): Add compare function as a parameter.
27865 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
27866 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
27867 (push_allocno_to_stack): Rewrite for checking new allocno
27868 colorability.
27869 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
27870 (push_only_colorable): Pass new parameter to sort_bucket.
27871 (push_allocno_to_spill): Remove.
27872 (allocno_spill_priority_compare): Make it inline and rewrite.
27873 (splay_tree_allocate, splay_tree_free): Remove.
27874 (allocno_spill_sort_compare): New function.
27875 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
27876 build and use splay tree. Choose first allocno in uncolorable
27877 allocno bucket to spill. Remove setting spill cost.
27878 (all_conflicting_hard_regs): Remove.
27879 (setup_allocno_available_regs_num): Check only profitable hard
27880 regs. Print info about hard regs nodes.
27881 (setup_allocno_left_conflicts_size): Remove.
27882 (put_allocno_into_bucket): Don't call
27883 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
27884 (improve_allocation): New.
27885 (color_allocnos): Call setup_profitable_hard_regs,
27886 form_object_hard_regs_nodes_forest, improve_allocation,
27887 finish_object_hard_regs_nodes_forest. Setup spill cost.
27888 (print_loop_title): Use pressure classes.
27889 (color_allocnso): Ditto.
27890 (do_coloring): Remove allocation and freeing splay_tree_node_pool
27891 and allocnos_for_spilling.
27892 (ira_sort_regnos_for_alter_reg): Don't setup members
27893 {first,next}_coalesced_allocno.
27894 (color): Remove allocating and freeing removed_splay_allocno_vec.
27895 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
27896 prohibited_class_mode_regs.
27897
27898 * ira-lives.c: Remove mentioning cover classes from the file. Fix
27899 formatting.
27900 (update_allocno_pressure_excess_length): Use pressure classes.
27901 (inc_register_pressure, dec_register_pressure): Check for pressure
27902 class.
27903 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
27904 pressure class. Use ira_reg_class_nregs instead of
27905 ira_reg_class_max_nregs.
27906 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
27907 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
27908 (single_reg_class): Use ira_reg_class_nregs instead of
27909 ira_reg_class_max_nregs.
27910 (process_bb_node_lives): Use pressure classes.
27911
27912 * ira-emit.c: Remove mentioning cover classes from the file. Use
27913 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
27914 (change_loop): Use pressure classes.
27915 (modify_move_list): Call ira_set_allocno_class instead of
27916 ira_set_allocno_cover_class.
27917
27918 * ira-build.c: Remove mentioning cover classes from the file. Use
27919 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
27920 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
27921 ALLOCNO_UPDATED_CLASS_COST instead of
27922 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
27923 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
27924 (ira_create_allocno): Remove initialization of
27925 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
27926 ALLOCNO_COLORABLE_P.
27927 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
27928 Update conflict regs for the objects.
27929 (create_cap_allocno): Remove assert. Don't propagate
27930 ALLOCNO_AVAILABLE_REGS_NUM.
27931 (ira_free_allocno_costs): New function.
27932 (finish_allocno): Change a part of code into call of
27933 ira_free_allocno_costs.
27934 (low_pressure_loop_node_p): Use pressure classes.
27935 (object_range_compare_func): Don't compare classes.
27936 (setup_min_max_conflict_allocno_ids): Ditto.
27937
27938 * loop-invariant.c: Remove mentioning cover classes from the file.
27939 Use ira_pressure_classes and ira_pressure_classes_num instead of
27940 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
27941 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
27942 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27943 Use reg_allocno_class instead of reg_cover_class.
27944 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
27945 STACK_REG_COVER_CLASS.
27946 (get_regno_cover_class): Rename to get_regno_pressure_class.
27947 (move_loop_invariants): Initialize and finalize regstat.
27948
27949 * ira.c: Remove mentioning cover classes from the file. Add
27950 comments about coloring without cover classes. Use ALLOCNO_CLASS
27951 instead of ALLOCNO_COVER_CLASS. Fix formatting.
27952 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
27953 setup_class_subset_and_memory_move_costs.
27954 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
27955 (setup_cover_and_important_classes): Rename to
27956 setup_allocno_and_important_classes.
27957 (setup_class_translate_array): New.
27958 (setup_class_translate): Call it for allocno and pressure classes.
27959 (cover_class_order): Rename to allocno_class_order.
27960 (comp_reg_classes_func): Use ira_allocno_class_translate instead
27961 of ira_class_translate.
27962 (reorder_important_classes): Set up ira_important_class_nums.
27963 (setup_reg_class_relations): Set up ira_reg_class_superunion.
27964 (print_class_cover): Rename to print_classes. Add parameter.
27965 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
27966 Print pressure classes too.
27967 (find_reg_class_closure): Rename to find_reg_classes. Don't call
27968 setup_reg_subclasses.
27969 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
27970 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
27971 (setup_prohibited_class_mode_regs): Use
27972 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
27973 (clarify_prohibited_class_mode_regs): New function.
27974 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
27975 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
27976 (ira_init_once): Initialize them.
27977 (free_register_move_costs): Process them.
27978 (ira_init): Move calls of find_reg_classes and
27979 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
27980 Call clarify_prohibited_class_mode_regs.
27981 (ira_no_alloc_reg): Remove.
27982 (too_high_register_pressure_p): Use pressure classes.
27983
27984 * sched-deps.c: Remove mentioning cover classes from the file.
27985 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
27986 ira_pressure_classes and ira_pressure_classes_num instead of
27987 ira_reg_class_cover_size and ira_reg_class_cover.
27988 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
27989 sched_regno_pressure_class instead of sched_regno_cover_class.
27990 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
27991 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
27992
27993 * ira.h: Add 2010 to Copyright.
27994 (ira_no_alloc_reg): Remove external.
27995 (struct target_ira): Rename x_ira_hard_regno_cover_class,
27996 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
27997 x_ira_class_translate to x_ira_hard_regno_allocno_class,
27998 x_ira_allocno_classes_num, x_ira_allocno_classes, and
27999 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
28000 x_ira_pressure_classes, x_ira_pressure_class_translate, and
28001 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
28002 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
28003 x_ira_no_alloc_regs.
28004 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
28005 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
28006 ira_allocno_classes_num and ira_allocno_classes.
28007 (ira_class_translate): Rename to ira_allocno_class_translate.
28008 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
28009 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
28010 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
28011 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
28012 (ira_no_alloc_regs): New.
28013
28014 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
28015 classes from the file. Use ALLOCNO_CLASS instead of
28016 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
28017 ALLOCNO_COVER_CLASS_COST.
28018 (regno_cover_class): Rename to regno_aclass.
28019 (record_reg_classes): Use ira_reg_class_subunion instead of
28020 ira_reg_class_union.
28021 (record_address_regs): Check overflow.
28022 (scan_one_insn): Ditto.
28023 (print_allocno_costs): Print total mem cost fore regional allocation.
28024 (print_pseudo_costs): Use REG_N_REFS.
28025 (find_costs_and_classes): Use classes intersected with them on the
28026 1st pass. Check overflow. Use ira_reg_class_subunion instead of
28027 ira_reg_class_union. Use ira_allocno_class_translate and
28028 regno_aclass instead of ira_class_translate and regno_cover_class.
28029 Modify code for finding regno_aclass. Setup preferred classes for
28030 the next pass.
28031 (setup_allocno_cover_class_and_costs): Rename to
28032 setup_allocno_class_and_costs. Use regno_aclass instead of
28033 regno_cover_class. Use ira_set_allocno_class instead of
28034 ira_set_allocno_cover_class.
28035 (init_costs, finish_costs): Use regno_aclass instead of
28036 regno_cover_class.
28037 (ira_costs): Use setup_allocno_class_and_costs instead of
28038 setup_allocno_cover_class_and_costs.
28039 (ira_tune_allocno_costs_and_cover_classes): Rename to
28040 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
28041 by processing objects. Use ira_reg_class_max_nregs instead of
28042 ira_reg_class_nregs.
28043
28044 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
28045
28046 * sched-int.h: Remove mentioning cover classes from the file.
28047 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
28048
28049 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
28050 classes from the file.
28051 (struct reg_pref): Rename coverclass into allocnoclass.
28052 (reg_cover_class): Rename to reg_allocno_class.
28053
28054 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
28055
28056 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
28057
28058 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
28059
28060 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
28061
28062 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
28063
28064 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
28065
28066 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
28067
28068 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
28069
28070 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
28071
28072 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
28073
28074 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
28075 (i386_ira_cover_classes): Ditto.
28076
28077 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
28078
28079 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
28080
28081 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
28082
28083 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
28084
28085 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
28086
28087 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
28088
28089 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
28090 (mips_ira_cover_classes): Ditto.
28091
28092 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
28093
28094 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
28095
28096 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
28097
28098 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
28099
28100 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
28101
28102 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
28103 (IRA_COVER_CLASSES_VSX): Ditto.
28104
28105 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
28106 (rs6000_ira_cover_classes): Ditto.
28107
28108 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
28109
28110 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
28111
28112 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
28113
28114 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
28115
28116 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
28117
28118 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
28119
28120 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
28121
28122 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
28123
28124 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
28125
28126 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
28127
28128 2011-03-29 Jakub Jelinek <jakub@redhat.com>
28129
28130 PR debug/48253
28131 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
28132 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
28133 dw_fde_unlikely_section_end_label, cold_in_std_section,
28134 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
28135 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
28136 fields.
28137 (output_fde): Use dw_fde_second_{begin,end} if second is
28138 true, otherwise dw_fde_{begin,end}.
28139 (output_call_frame_info): Test dw_fde_second_begin != NULL
28140 instead of dw_fde_switched_sections.
28141 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
28142 fields, initialize new fields. Initialize in_std_section
28143 unconditionally from the first partition.
28144 (dwarf2out_end_epilogue): Don't override dw_fde_end when
28145 dw_fde_second_begin is non-NULL.
28146 (dwarf2out_switch_text_section): Stop initializing removed
28147 dw_fde_struct fields, initialize new fields, initialize
28148 also dw_fde_end here. Set dw_fde_switch_cfi even when
28149 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
28150 (struct var_loc_list_def): Add last_before_switch field.
28151 (arange_table, arange_table_allocated, arange_table_in_use,
28152 ARANGE_TABLE_INCREMENT, add_arange): Removed.
28153 (size_of_aranges): Count !in_std_section and !second_in_std_section
28154 hunks in fdes, instead of looking at arange_table_in_use.
28155 (output_aranges): Add aranges_length argument, don't call
28156 size_of_aranges here. Instead of using aranges_table*
28157 emit ranges for fdes when !in_std_section resp.
28158 !second_in_std_section.
28159 (dw_loc_list): Break ranges crossing section switch.
28160 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
28161 use dw_fde_second_end instead of dw_fde_end as end of last range.
28162 (gen_subprogram_die): Don't call add_arange. Use
28163 dw_fde_{begin,end} for first partition and if switched
28164 section dw_fde_second_{begin,end} for the second.
28165 (var_location_switch_text_section_1,
28166 var_location_switch_text_section): New functions.
28167 (dwarf2out_begin_function): Initialize cold_text_section even
28168 when function_section () isn't text_section.
28169 (prune_unused_types): Don't walk arange_table.
28170 (dwarf2out_finish): Don't needlessly test
28171 flag_reorder_blocks_and_partition when testing cold_text_section_used.
28172 If info_section_emitted, call size_of_aranges and if it indicates
28173 non-empty .debug_aranges, call output_aranges with the computed
28174 size. Stop using removed dw_fde_struct fields, use
28175 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
28176 for second.
28177
28178 PR debug/48203
28179 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
28180 create ENTRY_VALUE if incoming or address of incoming's MEM
28181 is a hard REG.
28182 * dwarf2out.c (mem_loc_descriptor): Don't emit
28183 DW_OP_GNU_entry_value of DW_OP_fbreg.
28184 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
28185 on ENTRY_VALUE is able to find the canonical parameter VALUE.
28186 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
28187 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
28188 ENTRY_VALUE_EXPs.
28189 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
28190 is a REG_P or MEM_P with REG_P address, compute hash directly
28191 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
28192 (preserve_only_constants): Don't clear VALUES forwaring
28193 ENTRY_VALUE to some other VALUE.
28194
28195 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
28196
28197 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
28198 instead of GEN_INT.
28199
28200 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
28201
28202 * cfgexpand.c (expand_gimple_cond): Always set the source location and
28203 block before expanding the statement.
28204 (expand_gimple_stmt_1): Likewise. Set them here...
28205 (expand_gimple_stmt): ...and not here. Tidy.
28206 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
28207 unknown.
28208
28209 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
28210
28211 * Makefile.in: New rule for cprop.o.
28212 * gcse.c: Move constant/copy propagation to cprop.c.
28213 (compute_local_properties): Only handle expression tables.
28214 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
28215 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
28216 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
28217 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
28218 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
28219 compute_cprop_data, find_used_regs, try_replace_reg,
28220 find_avail_set, cprop_jump, constprop_register, cprop_insn,
28221 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
28222 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
28223 find_bypass_set, reg_killed_on_edge, bypass_block,
28224 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
28225 execute_rtl_cprop, pass_rtl_cprop): Move to...
28226 * cprop.c: ...here. New file, constant/copy propagation for RTL
28227 moved from gcse.c to here with minor cleanups in duplicated code.
28228
28229 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
28230
28231 * config/i386/i386.c (flag_opts): Fix a typo in
28232 -mavx256-split-unaligned-store.
28233
28234 2011-03-28 Anatoly Sokolov <aesok@post.ru>
28235
28236 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
28237 LIBCALL_VALUE): Remove macros.
28238 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28239 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28240 (h8300_function_value, h8300_libcall_value,
28241 h8300_function_value_regno_p): New functions.
28242
28243 2011-03-28 Anatoly Sokolov <aesok@post.ru>
28244
28245 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
28246
28247 2011-03-28 Jeff Law <law@redhat.com>
28248
28249 * tree-ssa-threadupdate.c (redirect_edges): Call
28250 create_edge_and_update_destination_phis as needed.
28251 (create_edge_and_update_destination_phis): Accept new BB argument.
28252 All callers updated.
28253 (thread_block): Do not update the profile when threading around
28254 intermediate blocks.
28255 (thread_single_edge): Likewise.
28256 (determine_bb_domination_status): If BB is not a successor of the
28257 loop header, return NONDOMINATING.
28258 (register_jump_thread): Note when we register a jump thread around
28259 an intermediate block.
28260 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
28261 (thread_across_edge): Use it.
28262
28263 2011-03-28 Tristan Gingold <gingold@adacore.com>
28264
28265 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
28266 when for_return is 2.
28267
28268 2011-03-28 Jeff Law <law@redhat.com>
28269
28270 * var-tracking.c (canonicalize_values_mark): Delete unused
28271 lhs assignment.
28272 (canonicalize_values_star, set_variable_part): Likewise.
28273 (clobber_variable_part, delete_variable_part): Likewise.
28274
28275 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
28276
28277 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
28278
28279 2011-03-28 Martin Jambor <mjambor@suse.cz>
28280
28281 * tree-inline.c (expand_call_inline): Do not check that destination
28282 node is analyzed.
28283 (optimize_inline_calls): Assert that destination node is analyzed.
28284 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
28285 not call tree_lowering_passes.
28286 * cgraph.h (cgraph_analyze_function): Declare.
28287 * cgraphunit.c (cgraph_analyze_function): Make public.
28288
28289 2011-03-28 Joseph Myers <joseph@codesourcery.com>
28290
28291 * config/sparc/sparc-opts.h: New.
28292 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
28293 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
28294 (sparc_option_override): Store processor_type enumeration rather
28295 than string in cpu_default. Remove name and enumeration from
28296 cpu_table. Directly default -mcpu then default -mtune from -mcpu
28297 without using sparc_select. Use target_flags_explicit instead of
28298 fpu_option_set.
28299 * config/sparc/sparc.h (enum processor_type): Move to
28300 sparc-opts.h.
28301 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
28302 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
28303 HeaderInclude entry.
28304 (mcpu=, mtune=): Use Var and Enum.
28305 (sparc_processor_type): New Enum and EnumValue entries.
28306
28307 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28308 Iain Sandoe <iains@gcc.gnu.org>
28309
28310 PR target/48245
28311 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
28312
28313 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
28314
28315 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
28316 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
28317 Insert new statements at it in lieu of STMT.
28318 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
28319 * tree-vect-stmts.c (vectorizable_store): Likewise.
28320 (vectorizable_load): Likewise.
28321
28322 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
28323
28324 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
28325 (divtf3): Ditto.
28326 (multf3): Ditto.
28327 (subtf3): Ditto.
28328
28329 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
28330
28331 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
28332 unaligned 256bit load/store.
28333 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
28334 (*avx_movdqu<avxmodesuffix>): Likewise.
28335
28336 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28337
28338 PR target/48288
28339 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
28340 * config/pa/pa.md (iordi3): Use new predicate in expander.
28341 (iorsi3): Likewise.
28342
28343 2011-03-27 Anatoly Sokolov <aesok@post.ru>
28344
28345 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
28346 FUNCTION_VALUE_REGNO_P): Remove macros.
28347 * config/mips/mips-protos.h (mips_function_value): Remove.
28348 * config/mips/mips.c (mips_function_value): Rename to...
28349 (mips_function_value_1): ... this. Make static. Handle receiving
28350 the function type in 'fn_decl_or_type' argument.
28351 (mips_function_value, mips_libcall_value,
28352 mips_function_value_regno_p): New function.
28353 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28354 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28355
28356 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
28357
28358 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
28359 and -mavx256-split-unaligned-store.
28360 (ix86_option_override_internal): Split 32-byte AVX unaligned
28361 load/store by default.
28362 (ix86_avx256_split_vector_move_misalign): New.
28363 (ix86_expand_vector_move_misalign): Use it.
28364
28365 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
28366 -mavx256-split-unaligned-store.
28367
28368 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
28369 256bit load/store. Generate unaligned store on misaligned memory
28370 operand.
28371 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
28372 256bit load/store.
28373 (*avx_movdqu<avxmodesuffix>): Likewise.
28374
28375 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
28376 -mavx256-split-unaligned-store.
28377
28378 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
28379
28380 PR target/38598
28381 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
28382 Update commentary.
28383
28384 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
28385
28386 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
28387 opno arguments with an expand_operand. Use create_input_operand.
28388 (mips_prepare_builtin_target): Delete.
28389 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
28390 functions.
28391 (mips_expand_builtin_direct): Use create_output_operand and
28392 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
28393 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
28394 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
28395
28396 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
28397
28398 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
28399 function.
28400 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
28401
28402 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
28403
28404 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
28405 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
28406 basic blocks and call commit_edge_insertions directly.
28407 (fixup_abnormal_edges): Move from here to...
28408 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
28409 on the edges and return whether some have actually been inserted.
28410 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
28411 compensation code.
28412
28413 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
28414
28415 PR rtl-optimization/48144
28416 * sel-sched-ir.c (merge_history_vect): Factor out from ...
28417 (merge_expr_data): ... here.
28418 (av_set_intersect): Rename to av_set_code_motion_filter.
28419 Update all callers. Call merge_history_vect when an expression
28420 is found in both sets.
28421 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
28422
28423 2011-03-26 Alan Modra <amodra@gmail.com>
28424
28425 * config/rs6000/predicates.md (word_offset_memref_op): Handle
28426 cmodel medium addresses.
28427 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
28428 64-bit gpr loads and stores.
28429 (rs6000_secondary_reload_ppc64): New function.
28430 * config/rs6000/rs6000-protos.h: Declare it.
28431 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
28432
28433 2011-03-26 Alan Modra <amodra@gmail.com>
28434
28435 PR target/47487
28436 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
28437 GNU Go in traceback table.
28438
28439 2011-03-25 Richard Henderson <rth@redhat.com>
28440
28441 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
28442 if there are exactly 6 operands.
28443 (set_storage_via_setmem): Similarly.
28444
28445 2011-03-25 Kai Tietz <ktietz@redhat.com>
28446
28447 * collect2.c (write_c_file_stat): Handle backslash
28448 as right-hand directory separator.
28449 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
28450 checking just for slash.
28451 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
28452 instead of checking for trailing slash.
28453 * gcc.c (record_temp_file): Use filename_cmp instead
28454 of strcmp.
28455 (do_spec_1): Likewise.
28456 (replace_outfile_spec_function): Likewise.
28457 (is_directory): Use filename_ncmp instead of strncmp.
28458 (print_multilib_info): Likewise.
28459 * gcov.c (find_source): Use filename_cmp instead
28460 instead of strcmp.
28461 (make_gcov_file_name): Fix order of slash/backslash
28462 checks.
28463 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
28464 (add_standard_paths): Likewise.
28465 * mips-tfile.c (saber_stop): Handle backslash.
28466 * prefix.c (update_path): Use filename_ncmp instead of
28467 strncmp.
28468 * profile.c (output_location): Use filename_cmp instead
28469 of strcmp.
28470 * read-md.c (handle_toplevel_file): Handle backslash.
28471 * tlink.c (frob_extension): Likewise.
28472 * tree-cfg.c (same_line_p): Use filename_cmp instead of
28473 strcmp.
28474 * tree-dump.c (dequeue_and_dump): Handle backslash.
28475 * tree.c (get_file_function_name): Likewise.
28476 * gengtype.c (read_input_list): Likewise.
28477 (get_file_realbasename): Likewise.
28478 (get_output_file_with_visibility): Use filename_cmp
28479 instead of strcmp.
28480
28481 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
28482
28483 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
28484 case to VFPv1.
28485
28486 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
28487
28488 * fold-const.c (expr_location_or): New function.
28489 (fold_truth_not_expr): Call it.
28490
28491 2011-03-25 Jeff Law <law@redhat.com>
28492
28493 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
28494 va_end.
28495 * c-family/c-common.c (def_fn_type): Likewise.
28496 * emit-rtl.c (gen_rtvec): Likewise.
28497 * lto/lto-lang.c (def_fn_type): Likewise.
28498
28499 2011-03-25 Richard Guenther <rguenther@suse.de>
28500
28501 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
28502 also generate copies.
28503 (fini_copy_prop): Handle constant values properly.
28504
28505 2011-03-25 Jakub Jelinek <jakub@redhat.com>
28506
28507 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
28508 mode size instead of bitsize with DWARF2_ADDR_SIZE.
28509 (hash_loc_operands, compare_loc_operands): Handle
28510 DW_OP_GNU_entry_value.
28511
28512 2011-03-25 Kai Tietz <ktietz@redhat.com>
28513
28514 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
28515 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
28516 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
28517 comment and use macro TARGET_64BIT_MS_ABI instead.
28518 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
28519 and change default behavior for 32-bit MS_ABI.
28520 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
28521 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
28522 32-bit, too.
28523 (ix86_cfun_abi): Likewise.
28524 (ix86_maybe_switch_abi): Adjust comment.
28525 (init_cumulative_args): Check for bit-ness in MS_ABI case.
28526 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
28527 instead of checking for SYSV_ABI.
28528 (ix86_nsaved_sseregs): Likewise.
28529 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
28530 to 16 bytes.
28531 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
28532 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
28533 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
28534 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
28535 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
28536
28537 2011-03-25 Richard Guenther <rguenther@suse.de>
28538
28539 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
28540 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28541 (verify_gimple): Remove.
28542 * tree-cfg.c (verify_gimple_call): Merge verification
28543 from verify_stmts.
28544 (verify_gimple_phi): Merge verification from verify_stmts.
28545 (verify_gimple_label): New function.
28546 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
28547 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
28548 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
28549 (verify_stmts): Rename to verify_gimple_in_cfg.
28550 (verify_gimple_in_cfg): New function.
28551 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
28552 * tree-ssa.c (verify_ssa): Likewise.
28553 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
28554
28555 2011-03-25 Richard Guenther <rguenther@suse.de>
28556
28557 * passes.c (init_optimization_passes): Add FRE pass after
28558 early SRA.
28559
28560 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
28561 Andrew Stubbs <ams@codesourcery.com>
28562
28563 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
28564 for Cortex-A8.
28565 (arm_movdi_vfp_cortexa8): New pattern.
28566 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
28567 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
28568 instructions when tuning for Cortex-A8. Set attribute "arch".
28569 * config/arm/arm.md: Move include arm-tune.md up a bit.
28570 (define_attr "arch"): Add "onlya8" and "nota8" values.
28571 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
28572
28573 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
28574
28575 PR bootstrap/48282
28576 Revert:
28577 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
28578
28579 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28580 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
28581 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28582 * passes.c (init_optimization_passes): Move
28583 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28584
28585 2011-03-25 Kai Tietz <ktietz@redhat.com>
28586
28587 * c-typeck.c (comptypes_internal): Replace target
28588 hook call of comp_type_attributes by version in tree.c file.
28589 * gimple.c (gimple_types_compatible_p_1): Likewise.
28590 * tree-ssa.c (useless_type_conversion_p): Likewise.
28591 * tree.c (build_type_attribute_qual_variant): Likewise.
28592 (attribute_value_equal): New static helper function.
28593 (comp_type_attributes): New function.
28594 (merge_attributes): Use attribute_value_equal for comparison.
28595 (attribute_list_contained): Likewise.
28596 * tree.h (comp_type_attributes): New prototype.
28597
28598 2011-03-25 Richard Guenther <rguenther@suse.de>
28599
28600 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
28601 of complex types at -O0.
28602 (verify_gimple_assign_binary): Likewise.
28603 (verify_gimple_assign_ternary): Likewise.
28604
28605 2011-03-24 Mark Wielaard <mjw@redhat.com>
28606
28607 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
28608 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
28609
28610 2011-03-24 Mark Wielaard <mjw@redhat.com>
28611
28612 PR debug/48041
28613 * dwarf2out.c (output_abbrev_section): Only write table when
28614 abbrev_die_table_in_use > 1.
28615
28616 2011-02-24 Richard Henderson <rth@redhat.com>
28617
28618 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
28619 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
28620 (alpha_expand_unaligned_load_words): Use extql.
28621 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
28622 (emit_insxl): Handle all modes for consistency.
28623
28624 2011-02-24 Richard Henderson <rth@redhat.com>
28625
28626 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
28627 (alpha_expand_unaligned_load): Likewise.
28628 (alpha_expand_unaligned_store): Likewise.
28629 (alpha_expand_unaligned_load_words): Likewise.
28630 (alpha_expand_unaligned_store_words): Likewise.
28631 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
28632 (alpha_split_lock_test_and_set_12): Likewise.
28633 (print_operand, alpha_fold_builtin_extxx): Likewise.
28634 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
28635 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
28636 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
28637 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
28638 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
28639 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
28640 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
28641 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
28642 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
28643 (extwl, extll, extql): Similarly.
28644 (inswh, inslh, insqh): Similarly.
28645 (mskbl, mskwl, mskll, mskql): Similarly.
28646 (mskwh, msklh, mskqh): Similarly.
28647
28648 2011-02-24 Richard Henderson <rth@redhat.com>
28649
28650 * config/alpha/alpha.md (attribute isa): Add er, ner.
28651 (attribute enabled): Handle them.
28652 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
28653
28654 2011-02-24 Richard Henderson <rth@redhat.com>
28655
28656 * config/alpha/alpha.md (attribute isa): Add vms.
28657 (attribute enabled): Handle it.
28658 (*movsf): Merge *movsf_{nofix,fix,nofp}.
28659 (*movdf): Merge *movdf_{nofix,fix,nofp}.
28660 (*movtf): Rename from *movtf_internal for consistency.
28661 (*movsi): Merge with *movsi_nt_vms.
28662 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
28663 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
28664 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
28665 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
28666
28667 2011-02-24 Richard Henderson <rth@redhat.com>
28668
28669 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
28670 (extendqisi2, extendhisi2): Likewise.
28671 (extendqidi2): Simplify BWX/non-BWX expansions.
28672 (extendhidi2): Similarly.
28673
28674 2011-02-24 Richard Henderson <rth@redhat.com>
28675
28676 * config/alpha/alpha.md (attribute isa): New.
28677 (attribute enabled): New.
28678 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
28679 (zero_extendqisi2, zero_extendqidi2): Similarly.
28680 (zero_extendhisi2, zero_extendhidi2): Similarly.
28681 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
28682
28683 2011-02-24 Richard Henderson <rth@redhat.com>
28684
28685 * config/alpha/predicates.md (input_operand): Revert last change;
28686 update comment to mention 32-bit VMS rather than Windows.
28687
28688 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
28689
28690 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
28691 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
28692 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
28693 * passes.c (init_optimization_passes): Move
28694 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
28695
28696 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
28697
28698 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
28699
28700 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
28701
28702 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
28703 correctly.
28704
28705 2011-03-24 Jakub Jelinek <jakub@redhat.com>
28706
28707 PR debug/48204
28708 * simplify-rtx.c (simplify_const_unary_operation): Call
28709 real_convert when changing mode class with FLOAT_EXTEND.
28710
28711 2011-03-24 Nick Clifton <nickc@redhat.com>
28712
28713 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
28714 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
28715 * config/rx/rx.c (rx_option_override): Set align_jumps,
28716 align_loops and align_labels if not set by the user.
28717 (rx_align_for_label): New function.
28718 (rx_max_skip_for_label): New function.
28719 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
28720 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
28721 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
28722 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
28723 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
28724
28725 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
28726
28727 PR rtl-optimization/48263
28728 * optabs.c (expand_binop_directly): Reinstate convert_modes code
28729 and original commutative_p handling. Use maybe_gen_insn.
28730
28731 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28732
28733 * reload.c (find_reloads_subreg_address): Add address_reloaded
28734 parameter and return true there if the full address has been
28735 reloaded.
28736 (find_reloads_toplev): Pass address_reloaded flag.
28737 (find_reloads_address_1): Don't use address_reloaded parameter.
28738
28739 2011-03-24 Jeff Law <law@redhat.com>
28740
28741 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
28742 unused variable "ann".
28743 (remove_unused_locals): Likewise.
28744
28745 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
28746 statement.
28747
28748 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
28749 after it is freed.
28750
28751 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28752
28753 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
28754 for invalid symbolic addresses.
28755 (s390_secondary_reload): Don't use s390_check_symref_alignment for
28756 larl operands.
28757
28758 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
28759
28760 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
28761 the argument in calls to fold_truth_not_expr.
28762
28763 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
28764
28765 * tree.c (record_node_allocation_statistics): New function.
28766 (make_node_stat, copy_node_stat, build_string): Call it.
28767 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
28768 (build1_stat, build_omp_clause): Likewise.
28769
28770 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
28771
28772 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
28773 last commit.
28774
28775 2011-03-24 Richard Guenther <rguenther@suse.de>
28776
28777 PR tree-optimization/48271
28778 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
28779 blocks that still exist.
28780
28781 2011-03-24 Richard Guenther <rguenther@suse.de>
28782
28783 PR tree-optimization/48270
28784 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
28785 not free datarefs before ddrs.
28786
28787 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
28788
28789 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
28790 from the address built for a reference with variable offset.
28791
28792 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
28793
28794 PR target/48237
28795 * config/i386/i386.md (*movdf_internal_rex64): Do not split
28796 alternatives that can be handled with movq or movabsq insn.
28797 (*movdf_internal): Disable for !TARGET_64BIT.
28798 (*movdf_internal_nointeger): Ditto.
28799 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
28800
28801 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
28802
28803 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28804 (FUNCTION_ARG_ADVANCE): Likewise.
28805 * tm.texi.in: Change references to them to hook references.
28806 * tm.texi: Regenerate.
28807 * targhooks.c (default_function_arg): Eliminate check for target macro.
28808 (default_function_incoming_arg): Likewise.
28809 (default_function_arg_advance): Likewise.
28810 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28811 (function_arg_advance): Likewise.
28812 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28813
28814 2011-03-24 Richard Guenther <rguenther@suse.de>
28815
28816 PR middle-end/48269
28817 * tree-object-size.c (addr_object_size): Do not double-account
28818 for MEM_REF offsets.
28819
28820 2011-03-24 Diego Novillo <dnovillo@google.com>
28821
28822 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
28823 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
28824 (lto_input_data_block): Move from lto-opts.c. Make extern.
28825 Update all users.
28826 (lto_input_string): Rename from input_string. Make extern.
28827 Update all users.
28828 * lto-streamer-out.c (lto_output_string_with_length): Rename from
28829 output_string_with_length.
28830 Output 0 to indicate a non-NULL string. Update all callers to
28831 not emit 0.
28832 (lto_output_string): Rename from output_string. Make extern.
28833 Update all users.
28834 (lto_output_decl_state_streams): Make extern.
28835 (lto_output_decl_state_refs): Make extern.
28836 * lto-streamer.h (lto_input_string): Declare.
28837 (lto_input_data_block): Declare.
28838 (lto_output_string): Declare.
28839 (lto_output_string_with_length): Declare.
28840 (lto_output_decl_state_streams): Declare.
28841 (lto_output_decl_state_refs): Declare.
28842
28843 2011-03-24 Richard Guenther <rguenther@suse.de>
28844
28845 PR tree-optimization/46562
28846 * tree.c (build_invariant_address): New function.
28847 * tree.h (build_invariant_address): Declare.
28848 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
28849 a renamed function moved ...
28850 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
28851 Take valueization callback parameter.
28852 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
28853 * gimple-fold.h: New file.
28854 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
28855 (ccp_fold, fold_const_aggregate_ref,
28856 fold_ctor_reference, fold_nonarray_ctor_reference,
28857 fold_array_ctor_reference, fold_string_cst_ctor_reference,
28858 get_base_constructor): Move ...
28859 * gimple-fold.c: ... here.
28860 (gimple_fold_stmt_to_constant_1): New function
28861 split out from ccp_fold. Take a valueization callback parameter.
28862 Valueize all operands.
28863 (gimple_fold_stmt_to_constant): New wrapper function.
28864 (fold_const_aggregate_ref_1): New function split out from
28865 fold_const_aggregate_ref. Take a valueization callback parameter.
28866 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
28867 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
28868 invariant POINTER_PLUS_EXPRs to invariant form.
28869 (vn_valueize): New function.
28870 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
28871 * tree-vrp.c (vrp_valueize): New function.
28872 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
28873 to fold statements to constants.
28874 * tree-ssa-pre.c (eliminate): Properly guard propagation of
28875 function declarations.
28876 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
28877 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
28878
28879 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
28880
28881 * config/h8300/predicates.md (jump_address_operand): Fix register
28882 mode check.
28883
28884 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
28885
28886 * doc/invoke.texi (max-stores-to-sink): Document.
28887 * params.h (MAX_STORES_TO_SINK): Define.
28888 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
28889 if either vectorization or if-conversion is disabled.
28890 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
28891 tree-vect-data-refs.c vect_equal_offsets.
28892 (dr_equal_offsets_p): New function.
28893 (find_data_references_in_bb): Remove static.
28894 * tree-data-ref.h (find_data_references_in_bb): Declare.
28895 (dr_equal_offsets_p): Likewise.
28896 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
28897 (vect_drs_dependent_in_basic_block): Update calls to
28898 vect_equal_offsets.
28899 (vect_check_interleaving): Likewise.
28900 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
28901 (cond_if_else_store_replacement): Rename to...
28902 (cond_if_else_store_replacement_1): ... this. Change arguments and
28903 documentation.
28904 (cond_if_else_store_replacement): New function.
28905 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
28906 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
28907
28908 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
28909
28910 PR target/46934
28911 * config/arm/arm.md (casesi): Use the gen_int_mode() function
28912 to subtract lower bound instead of GEN_INT().
28913
28914 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
28915
28916 PR other/48179
28917 PR other/48221
28918 PR other/48234
28919 * doc/extend.texi (Alignment): Move section to match order in TOC.
28920 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
28921 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
28922
28923 2011-03-23 Jeff Law <law@redhat.com>
28924
28925 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
28926 before removing the edge.
28927
28928 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
28929 it may have been freed by redirect_branch_edge or
28930 redirect_edge_succ_nodup.
28931
28932 2011-03-23 Richard Guenther <rguenther@suse.de>
28933
28934 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
28935 (check_va_list_escapes): Likewise.
28936 (check_all_va_list_escapes): Likewise.
28937
28938 2011-03-23 Richard Guenther <rguenther@suse.de>
28939
28940 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
28941 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
28942 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
28943 (alias.o): Likewise.
28944 (ipa-type-escape.o): Remove.
28945 (ipa-struct-reorg.o): Likewise.
28946 (GTFILES): Remove ipa-struct-reorg.c.
28947 * alias.c: Do not include ipa-type-escape.h.
28948 * tree-ssa-alias.c: Likewise.
28949 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
28950 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
28951 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
28952 and ipa-type-escape passes.
28953 * tree-pass.h (pass_ipa_type_escape): Remove.
28954 (pass_ipa_struct_reorg): Likewise.
28955 * ipa-struct-reorg.h: Remove.
28956 * ipa-struct-reorg.c: Likewise.
28957 * ipa-type-escape.h: Likewise.
28958 * ipa-type-escape.c: Likewise.
28959 * doc/invoke.texi (-fipa-struct-reorg): Remove.
28960 (--param struct-reorg-cold-struct-ratio): Likewise.
28961 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
28962 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
28963 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
28964
28965 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28966
28967 * config/s390/2084.md: Enable all insn reservations also for z9_ec
28968 cpu attribute value.
28969 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
28970 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
28971 * config/s390/s390.c (processor_flags_table): New constant array.
28972 (s390_handle_arch_option): Remove.
28973 (s390_handle_option): Remove s390_handle_arch_option invocations
28974 and OPT_mwarn_framesize_ handling.
28975 (s390_option_override): Remove s390_handle_arch_option invocation.
28976 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
28977 warnings.
28978 * config/s390/s390.md (cpu attribute): Add z9_ec value.
28979 * config/s390/s390.opt (s390_tune, s390_arch)
28980 (march=): Replace s390_arch_option enum and values with
28981 processor_type. Set variable name to s390_arch. Set
28982 initialization value.
28983 (mtune=): Replace s390_arch_option with processor_type. Set
28984 variable name to s390_tune. Set initialization value.
28985
28986 2011-03-23 Julian Brown <julian@codesourcery.com>
28987
28988 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
28989 accesses which are not naturally aligned.
28990
28991 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
28992
28993 PR target/47553
28994 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
28995
28996 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
28997
28998 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
28999 parameter from "int" to "enum insn_code".
29000 (expand_operand_type): New enum.
29001 (expand_operand): New structure.
29002 (create_expand_operand): New function.
29003 (create_fixed_operand, create_output_operand): Likewise
29004 (create_input_operand, create_convert_operand_to): Likewise.
29005 (create_convert_operand_from, create_address_operand): Likewise.
29006 (create_integer_operand): Likewise.
29007 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
29008 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29009 (expand_insn, expand_jump_insn): Likewise.
29010 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
29011 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
29012 (expand_movstr, expand_builtin___clear_cache): Likewise.
29013 (expand_builtin_lock_release): Likewise.
29014 * explow.c (allocate_dynamic_stack_space): Likewise.
29015 (probe_stack_range): Likewise. Allow check_stack to FAIL,
29016 and use the default handling in that case.
29017 * expmed.c (check_predicate_volatile_ok): Delete.
29018 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
29019 (emit_cstore): Likewise.
29020 * expr.c (emit_block_move_via_movmem): Likewise.
29021 (set_storage_via_setmem, expand_assignment): Likewise.
29022 (emit_storent_insn, try_casesi): Likewise.
29023 (emit_single_push_insn): Likewise. Allow the expansion to fail.
29024 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
29025 (expand_vec_shift_expr, expand_binop_directly): Likewise.
29026 (expand_twoval_unop, expand_twoval_binop): Likewise.
29027 (expand_unop_direct, emit_indirect_jump): Likewise.
29028 (emit_conditional_move, vector_compare_rtx): Likewise.
29029 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
29030 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
29031 (expand_sync_lock_test_and_set): Likewise.
29032 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
29033 (emit_unop_insn): Likewise.
29034 (expand_copysign_absneg): Change icode to an insn_code.
29035 (create_convert_operand_from_type): New function.
29036 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
29037 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
29038 (expand_insn, expand_jump_insn): Likewise.
29039 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
29040 than const_int_operand for operand 2.
29041
29042 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29043
29044 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
29045 if possible.
29046
29047 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
29048
29049 * emit-rtl.c (emit_pattern_before_noloc): New function.
29050 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
29051 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
29052 (emit_pattern_after_noloc): New function.
29053 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
29054 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
29055
29056 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
29057
29058 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
29059 (__ffsDI2): Likewise.
29060
29061 2011-03-22 Richard Henderson <rth@redhat.com>
29062
29063 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
29064 of !TARGET_ABI_OPEN_VMS.
29065 (alpha_trampoline_init, alpha_start_function): Likewise.
29066 (alpha_expand_epilogue, alpha_file_start): Likewise.
29067 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
29068 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
29069 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
29070 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
29071 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
29072
29073 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29074
29075 * config/s390/s390-opts.h: New.
29076 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
29077 s390_arch_flags, s390_warn_framesize, s390_stack_size,
29078 s390_stack_guard): Remove.
29079 (s390_handle_arch_option): Return void. Take enum
29080 s390_arch_option value instead of string and searching array.
29081 (s390_handle_option): Don't assert that global structures are in
29082 use. Access variables via opts pointer. Use error_at. Don't use
29083 sscanf for -mstack-guard= or -mstack-size=. Update call to
29084 s390_handle_arch_option.
29085 (s390_option_override): Update call to s390_handle_arch_option.
29086 (s390_emit_prologue): Use %d format for s390_stack_size in
29087 diagnostic. Use %wd for HOST_WIDE_INT.
29088 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
29089 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
29090 * config/s390/s390.opt (config/s390/s390-opts.h): New
29091 HeaderInclude entry.
29092 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
29093 s390_arch_flags, s390_warn_framesize): New Variable entries.
29094 (s390_arch_option): New Enum and EnumValue entries.
29095 (march=): Use Enum instead of Var.
29096 (mstack-guard=, mstack-size=): Use UInteger and Var.
29097 (mtune=): Use Enum.
29098
29099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29100
29101 * config/score/score.c (score_handle_option): Don't assert that
29102 global structures are in use. Access target_flags via opts
29103 pointer. Use value of -march= option to determine target_flags
29104 settings.
29105 * config/score/score.opt (march=): Use Enum.
29106 (score_arch): New Enum and EnumValue entries.
29107
29108 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29109
29110 * config/mep/mep.c (option_mtiny_specified): Remove.
29111 (mep_option_override): Move register handling for -mivc2 from
29112 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
29113 instead of option_mtiny_specified.
29114 (mep_handle_option): Access target_flags via opts pointer. Don't
29115 assert that global structures are in use. Defer part of -mivc2
29116 handling and move it to mep_option_override.
29117 * config/mep/mep.opt (IVC2): New Mask entry.
29118 (mivc2): Use Var and Defer instead of Mask.
29119
29120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29121
29122 * config/v850/v850-opts.h: New.
29123 * config/v850/v850.c (small_memory): Replace with
29124 small_memory_physical_max array. Make that array static const.
29125 (v850_handle_memory_option): Take integer value of argument. Take
29126 gcc_options pointer, option text and location. Return void.
29127 Update for changes to small memory structures.
29128 (v850_handle_option): Access target_flags via opts pointer. Don't
29129 assert that global structures are in use. Update calls to
29130 v850_handle_memory_option.
29131 (v850_encode_data_area): Update references to small memory settings.
29132 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
29133 (enum small_memory_type): Move to v850-opts.h.
29134 * config/v850/v850.opt (config/v850/v850-opts.h): New
29135 HeaderInclude entry.
29136 (small_memory_max): New Variable entry.
29137 (msda): Replace by pair of options msda= and msda-. Use UInteger.
29138 (mtda, mzda): Likewise.
29139
29140 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29141
29142 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
29143 pointer. Don't assert that global structures are in use.
29144
29145 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29146
29147 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
29148 via opts pointer. Don't assert that global structures are in use.
29149
29150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29151
29152 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
29153 (munix=93): Use Var.
29154 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
29155 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
29156 * config/pa/pa-opts.h: New.
29157 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
29158 (pa_handle_option): Don't assert that global structures are in
29159 use. Access target_flags via opts pointer. Don't handle
29160 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
29161 OPT_munix_98 here.
29162 (pa_option_override): Handle deferred OPT_mfixed_range_.
29163
29164 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29165
29166 * config/mn10300/mn10300-opts.h: New.
29167 * config/mn10300/mn10300.c (mn10300_processor,
29168 mn10300_tune_string): Remove.
29169 (mn10300_handle_option): Don't assert that global structures are
29170 in use. Access mn10300_processor via opts pointer. Don't handle
29171 OPT_mtune_ here.
29172 * config/mn10300/mn10300.h (enum processor_type): Move to
29173 mn10300-opts.h.
29174 (mn10300_processor): Remove.
29175 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
29176 HeaderInclude entry.
29177 (mn10300_processor): New Variable entry.
29178 (mtune=): Use Var.
29179
29180 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29181
29182 * config/microblaze/microblaze.c: Don't include opts.h.
29183 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
29184 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
29185 (mno-clearbss): Use Var and Warn.
29186
29187 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29188
29189 * config/m32r/m32r-opts.h: New.
29190 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
29191 (m32r_handle_option): Don't assert that global structures are in
29192 use. Access target_flags and m32r_cache_flush_func via opts
29193 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
29194 OPT_mno_flush_trap here.
29195 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
29196 include of m32r-opts.h.
29197 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
29198 HeaderInclude entry.
29199 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
29200 (mmodel=): Use Enum and Var.
29201 (m32r_model): New Enum and EnumValue entries.
29202 (mno-flush-trap): Use Var.
29203 (msdata=): Use Enum and Var.
29204 (m32r_sdata): New Enum and EnumValue entries.
29205
29206 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29207
29208 * config/m32c/m32c.c: Don't include opts.h.
29209 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
29210 m32c_handle_option): Remove.
29211 (m32c_option_override): Check global_options_set.x_target_memregs
29212 instead of target_memregs_set.
29213 * config/m32c/m32c.h (target_memregs): Remove.
29214 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
29215 variable.
29216
29217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29218
29219 * config/iq2000/iq2000-opts.h: New.
29220 * config/iq2000/iq2000.c: Don't include opts.h.
29221 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
29222 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
29223 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
29224 HeaderInclude entry.
29225 (iq2000_tune): New Variable entry.
29226 (march=): Add comment. Use Enum.
29227 (iq2000_arch): New Enum and EnumValue entries.
29228 (mcpu=): Use Enum and Var.
29229 (iq2000_tune): New Enum and EnumValue entries.
29230
29231 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29232
29233 * config/ia64/ia64-opts.h: New.
29234 * config/ia64/ia64.c (ia64_tune): Remove.
29235 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
29236 here. Use error_at.
29237 (ia64_option_override): Handle deferred OPT_mfixed_range_.
29238 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
29239 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
29240 HeaderInclude entry.
29241 (ia64_tune): New Variable entry.
29242 (mfixed-range=): Use Defer and Var.
29243 (mtune=): Use Enum and Var.
29244 (ia64_tune): New Enum and EnumValue entries.
29245
29246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29247
29248 * config/frv/frv-opts.h: New.
29249 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
29250 frv-opts.h.
29251 (frv_cpu_type): Remove.
29252 * config/frv/frv.c: Don't include opts.h.
29253 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
29254 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
29255 (frv_cpu_type): New Variable entry.
29256 (frv_cpu): New Enum and EnumValue entries.
29257
29258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29259
29260 * config/cris/cris.c (cris_handle_option): Access target_flags via
29261 opts pointer. Don't assert that global structures are in use.
29262 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
29263 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
29264
29265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29266
29267 * config/bfin/bfin-opts.h: New.
29268 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
29269 bfin_si_revision, bfin_workarounds): Remove.
29270 (bfin_cpus): Make static const.
29271 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
29272 not bfin_lib_id_given.
29273 (bfin_handle_option): Don't set bfin_lib_id_given. Access
29274 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
29275 pointer. Use error_at. Don't assert that global structures are in use.
29276 * config/bfin/bfin.h: Include bfin-opts.h.
29277 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
29278 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
29279 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
29280 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
29281 entries.
29282
29283 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29284
29285 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
29286 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
29287 or -msoft-float here.
29288 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
29289 -msoft-float and -mhard-float.
29290 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
29291 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29292 msoft-float.
29293 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
29294 -msoft-float.
29295 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
29296 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
29297 not mhard-float.
29298 (LIBGCC_SPEC): Don't handle -msoft-float.
29299 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
29300 -mhard-float.
29301 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
29302 msoft-float.
29303 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
29304 -mfloat-abi=*, not -msoft-float and -mhard-float.
29305 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
29306 -msoft-float.
29307 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
29308 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
29309 mhard-float and msoft-float.
29310 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
29311 mfloat-abi=soft in comments, not mhard-float and msoft-float.
29312 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29313 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
29314 mhard-float.
29315 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
29316 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
29317 msoft-float.
29318 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
29319 not mhard-float.
29320 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
29321 not msoft-float.
29322
29323 2011-03-22 Richard Henderson <rth@redhat.com>
29324
29325 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
29326 TARGET_ABI_WINDOWS_NT.
29327 (alpha_output_function_end_prologue): Likewise.
29328 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
29329 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
29330 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
29331 (trap, *movsi_nt_vms): Likewise.
29332 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
29333 (*tablejump_osf_nt_internal): Remove.
29334 * config/alpha/predicates.md (input_operand): Only test Pmode.
29335
29336 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29337
29338 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
29339 via opts pointer. Use error_at. Don't assert that global
29340 structures are in use.
29341
29342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29343
29344 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
29345 (ix86_handle_option): Access ix86_isa_flags and
29346 ix86_isa_flags_explicit via opts pointer. Don't assert that
29347 global structures are in use.
29348 (ix86_function_specific_save, ix86_function_specific_restore):
29349 Update ix86_isa_flags_explicit field name.
29350 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
29351 (ix86_isa_flags_explicit): Rename TargetSave entry to
29352 x_ix86_isa_flags_explicit.
29353
29354 2011-03-22 Richard Henderson <rth@redhat.com>
29355
29356 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
29357 (alpha_option_override, direct_return): Likewise.
29358 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
29359 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
29360 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
29361 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
29362 (alpha_expand_epilogue, alpha_end_function): Likewise.
29363 (alpha_init_libfuncs): Likewise.
29364 (struct machine_function): Remove unicosmk members.
29365 (print_operand) ['t']: Remove.
29366 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
29367 unicosmk_output_module_name, unicosmk_output_common,
29368 current_section_align, unicosmk_output_text_section_asm_op,
29369 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
29370 unicosmk_section_type_flags, unicosmk_unique_section,
29371 unicosmk_asm_named_section, unicosmk_insert_attributes,
29372 unicosmk_output_align, unicosmk_defer_case_vector,
29373 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
29374 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
29375 unicosmk_output_ssib, unicosmk_add_call_info_word,
29376 unicosmk_extern_head, unicosmk_output_default_externs,
29377 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
29378 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
29379 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
29380 * config/alpha/alpha-protos.h: Update.
29381 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
29382 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
29383 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
29384 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
29385 (*mulsi_se, mulvsi3): Likewise.
29386 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
29387 (*divmodsi_internal, call, call_value, realign): Likewise.
29388 (moddi3, umoddi3): Likewise; remove duplicate expander.
29389 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
29390 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
29391 (*movdi_nofix): Remove r/U alternative.
29392 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
29393 * config/alpha/constraints.md ("U"): Remove.
29394 * config/alpha/predicates.md (call_operand"): Don't test
29395 TARGET_ABI_UNICOSMK.
29396
29397 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29398
29399 * target.def (handle_option): Take gcc_options and
29400 cl_decoded_option pointers and location_t.
29401 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
29402 * doc/tm.texi: Regenerate.
29403 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
29404 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
29405 * lto-opts.c (lto_reissue_options): Generate option structure for
29406 targetm.handle_option call.
29407 * opts.c (target_handle_option): Update call to
29408 targetm.handle_option. Remove assertions about values now passed
29409 down to hook.
29410 * targhooks.c (default_target_handle_option): New.
29411 * targhooks.h (default_target_handle_option): Declare.
29412 * config/alpha/alpha.c: Include opts.h.
29413 (alpha_handle_option): Update to new hook interface.
29414 * config/arm/arm.c: Include opts.h.
29415 (arm_handle_option): Update to new hook interface.
29416 * config/arm/t-arm (arm.o): Update dependencies.
29417 * config/bfin/bfin.c: Include opts.h.
29418 (bfin_handle_option): Update to new hook interface.
29419 * config/cris/cris.c: Include opts.h.
29420 (cris_handle_option): Update to new hook interface.
29421 * config/frv/frv.c: Include opts.h.
29422 (frv_handle_option): Update to new hook interface.
29423 * config/i386/i386.c: Include opts.h.
29424 (ix86_handle_option): Update to new hook interface.
29425 (ix86_valid_target_attribute_inner_p): Generate option structure
29426 for call to ix86_handle_option.
29427 * config/i386/t-i386 (i386.o): Update dependencies.
29428 * config/ia64/ia64.c: Include opts.h.
29429 (ia64_handle_option): Update to new hook interface.
29430 * config/ia64/t-ia64 (ia64.o): Update dependencies.
29431 * config/iq2000/iq2000.c: Include opts.h.
29432 (iq2000_handle_option): Update to new hook interface.
29433 * config/m32c/m32c.c: Include opts.h.
29434 (m32c_handle_option): Update to new hook interface.
29435 * config/m32r/m32r.c: Include opts.h.
29436 (m32r_handle_option): Update to new hook interface.
29437 * config/m68k/m68k.c: Include opts.h.
29438 (m68k_handle_option): Update to new hook interface.
29439 * config/mep/mep.c: Include opts.h.
29440 (mep_handle_option): Update to new hook interface.
29441 * config/microblaze/microblaze.c: Include opts.h.
29442 (microblaze_handle_option): Update to new hook interface.
29443 * config/mips/mips.c: Include opts.h.
29444 (mips_handle_option): Update to new hook interface.
29445 * config/mn10300/mn10300.c: Include opts.h.
29446 (mn10300_handle_option): Update to new hook interface.
29447 * config/pa/pa.c: Include opts.h.
29448 (pa_handle_option): Update to new hook interface.
29449 * config/pdp11/pdp11.c: Include opts.h.
29450 (pdp11_handle_option): Update to new hook interface.
29451 * config/rs6000/rs6000.c: Include opts.h.
29452 (rs6000_handle_option): Update to new hook interface.
29453 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
29454 * config/rx/rx.c: Include opts.h.
29455 (rx_handle_option): Update to new hook interface.
29456 * config/s390/s390.c: Include opts.h.
29457 (s390_handle_option): Update to new hook interface.
29458 * config/score/score.c: Include opts.h.
29459 (score_handle_option): Update to new hook interface.
29460 * config/sh/sh.c: Include opts.h.
29461 (sh_handle_option): Update to new hook interface.
29462 * config/sparc/sparc.c: Include opts.h.
29463 (sparc_handle_option): Update to new hook interface.
29464 * config/v850/v850.c: Include opts.h.
29465 (v850_handle_option): Update to new hook interface.
29466
29467 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29468
29469 * gcc.c (driver_unknown_option_callback): Only permit and save
29470 unknown -Wno- options.
29471 (driver_wrong_lang_callback): Save options directly instead of via
29472 driver_unknown_option_callback.
29473
29474 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
29475
29476 * combine.c (simplify_set): Try harder to find the best CC mode when
29477 simplifying a nested COMPARE on the RHS.
29478
29479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
29480
29481 * config/alpha/gnu.h: Remove.
29482 * config/arc: Remove directory.
29483 * config/arm/netbsd.h: Remove.
29484 * config/arm/t-pe: Remove.
29485 * config/crx: Remove directory.
29486 * config/i386/netbsd.h: Remove.
29487 * config/m68hc11: Remove directory.
29488 * config/m68k/uclinux-oldabi.h: Remove.
29489 * config/mcore/mcore-pe.h: Remove.
29490 * config/mcore/t-mcore-pe: Remove.
29491 * config/netbsd-aout.h: Remove.
29492 * config/rs6000/gnu.h: Remove.
29493 * config/sh/sh-symbian.h: Remove.
29494 * config/sh/symbian-base.c: Remove.
29495 * config/sh/symbian-c.c: Remove.
29496 * config/sh/symbian-cxx.c: Remove.
29497 * config/sh/symbian-post.h: Remove.
29498 * config/sh/symbian-pre.h: Remove.
29499 * config/sh/t-symbian: Remove.
29500 * config/svr3.h: Remove.
29501 * config/vax/netbsd.h: Remove.
29502 * config.build: Don't handle i[34567]86-*-pe.
29503 * config.gcc: Remove handling of deprecations for most deprecated
29504 targets.
29505 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
29506 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
29507 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
29508 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
29509 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
29510 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
29511 Remove cases.
29512 * config.host: Don't handle i[34567]86-*-pe.
29513 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
29514 (ASM_SPEC32): Don't handle -mcall-gnu.
29515 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
29516 -mcall-gnu.
29517 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
29518 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
29519 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
29520 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
29521 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
29522 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
29523 conditional on SYMBIAN.
29524 * configure.ac: Don't handle powerpc*-*-gnu*.
29525 * configure: Regenerate.
29526 * doc/extend.texi (interrupt attribute): Don't mention CRX.
29527 * doc/install-old.texi (m6811, m6812): Don't mention.
29528 * doc/install.texi (arc-*-elf*): Don't document multilib option.
29529 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
29530 (m68k-uclinuxoldabi): Don't mention.
29531 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
29532 Remove.
29533 (-mcall-gnu): Remove.
29534 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
29535 families): Remove constraint documentation.
29536
29537 2011-03-22 Marius Strobl <marius@FreeBSD.org>
29538
29539 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
29540 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
29541 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
29542
29543 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29544
29545 PR target/48226
29546 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
29547 vector when peeking at the next token for vector, don't expand the
29548 keywords.
29549
29550 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
29551
29552 * config/avr/avr-protos.h (expand_epilogue): Change prototype
29553 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
29554 * config/avr/avr.c (init_cumulative_args)
29555 (avr_function_arg_advance): Use it.
29556 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
29557 sibcall epilogues.
29558 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
29559 (avr_function_ok_for_sibcall): ...this new function.
29560 (avr_lookup_function_attribute1): New static Function.
29561 (avr_naked_function_p, interrupt_function_p)
29562 (signal_function_p, avr_OS_task_function_p)
29563 (avr_OS_main_function_p): Use it.
29564 * config/avr/avr.md ("sibcall", "sibcall_value")
29565 ("sibcall_epilogue"): New expander.
29566 ("*call_insn", "*call_value_insn"): New insn.
29567 ("call_insn", "call_value_insn"): Remove
29568 ("call", "call_value", "epilogue"): Change expander to handle
29569 sibling calls.
29570
29571 2011-03-21 Nick Clifton <nickc@redhat.com>
29572
29573 * doc/invoke.texi (Overall Options): Move closing brace to end of
29574 options list.
29575 (Optimization Options): Add missing @gol.
29576 (Directory Options): Likewise.
29577 (i386 and x86-64 Options): Likewise.
29578 (RS6000 and PowerPC Options): Likewise.
29579 (i386 and x86-64 Windows Options): Likewise.
29580 (V850 Options): Add text missing from descriptions.
29581
29582 2011-03-22 Richard Henderson <rth@redhat.com>
29583
29584 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
29585 (avr_incoming_return_addr_rtx): New.
29586 (emit_push_byte): New.
29587 (expand_prologue): Use it. Remove incorrect dwarf annotation for
29588 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
29589 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
29590 (emit_pop_byte): New.
29591 (expand_epilogue): Use it. Pop frame pointer by bytes.
29592 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
29593 (INCOMING_RETURN_ADDR_RTX): New.
29594 (INCOMING_FRAME_SP_OFFSET): New.
29595 (ARG_POINTER_CFA_OFFSET): New.
29596 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
29597 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
29598 (pophi): Remove.
29599
29600 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
29601
29602 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
29603
29604 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
29605 (FUNCTION_ARG_ADVANCE): Likewise.
29606 * tm.texi.in: Change references to them to hook references.
29607 * tm.texi: Regenerate.
29608 * targhooks.c (default_function_arg): Eliminate check for target
29609 macro.
29610 (default_function_incoming_arg): Likewise.
29611 (default_function_arg_advance): Likewise.
29612 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
29613 (function_arg_advance): Likewise.
29614 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
29615
29616 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
29617
29618 * tree.c (build_call_1): New function.
29619 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
29620
29621 2011-03-22 Richard Guenther <rguenther@suse.de>
29622
29623 PR tree-optimization/48228
29624 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
29625 for single-arg PHIs.
29626
29627 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
29628
29629 PR rtl-optimization/48143
29630 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
29631 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
29632 sse2_cvtps2pd): Likewise.
29633
29634 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29635
29636 * recog.c (canonicalize_change_group): Use validate_unshare_change.
29637
29638 2011-03-22 Richard Guenther <rguenther@suse.de>
29639
29640 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
29641 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
29642 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
29643 and REALIGN_LOAD_EXPR.
29644 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
29645 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
29646 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
29647 DOT_PROD_EXPR case ...
29648 (expand_expr_real_2): ... here.
29649 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
29650 and REALIGN_LOAD_EXPR.
29651 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
29652 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
29653 (vect_create_epilog_for_reduction): Likewise.
29654 (vectorizable_reduction): Likewise.
29655 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
29656 * tree-vect-stmts.c (vectorizable_load): Likewise.
29657
29658 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
29659
29660 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
29661
29662 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29663
29664 * config/s390/s390.c (s390_delegitimize_address): Fix offset
29665 handling for PLTOFF/GOTOFF.
29666
29667 2011-03-22 Nick Clifton <nickc@redhat.com>
29668
29669 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
29670 trailing backslash from the end of the macro definition.
29671
29672 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29673
29674 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
29675 and PLT unspecs.
29676
29677 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
29678
29679 * expr.h (prepare_operand): Move to...
29680 * optabs.h (prepare_operand): ...here and change the insn code
29681 parameter from "int" to "enum insn_code".
29682 (insn_operand_matches): Declare.
29683 * expr.c (init_expr_target): Use insn_operand_matches.
29684 (compress_float_constant): Likewise.
29685 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
29686 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
29687 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
29688 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
29689 Likewise.
29690 (gen_cond_trap): Likewise.
29691 (prepare_operand): Likewise. Change icode to an insn_code.
29692 (insn_operand_matches): New function.
29693 * reload.c (find_reloads_address_1): Use insn_operand_matches.
29694 * reload1.c (gen_reload): Likewise.
29695 * targhooks.c (default_secondary_reload): Likewise.
29696
29697 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
29698
29699 * config/alpha/alpha.md (unspec): New define_c_enum.
29700 (unspecv): Ditto.
29701
29702 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
29703
29704 PR debug/48214
29705 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
29706 between a call and its CALL_ARG_LOCATION note.
29707
29708 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
29709
29710 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
29711
29712 2011-03-21 Jakub Jelinek <jakub@redhat.com>
29713
29714 PR c/42544
29715 PR c/48197
29716 * c-common.c (shorten_compare): If primopN is first sign-extended
29717 to opN and then zero-extended to result type, set primopN to opN.
29718
29719 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
29720
29721 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
29722 for barrier handlers.
29723
29724 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29725
29726 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
29727 UNSPEC constants to be in the unspec enumeration, and redefine
29728 all UNSPECV constants to be in the unspecv enumeration, so that
29729 dumps print which unspec/unspec_volatile this is.
29730 * config/rs6000/vector.md (UNSPEC_*): Ditto.
29731 * config/rs6000/paired.md (UNSPEC_*): Ditto.
29732 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
29733 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
29734 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
29735
29736 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
29737 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
29738 UNSPECV_LWSYNC, since these are used as unspec_volatile.
29739 * config/rs6000/sync.md (isync, lwsync): Ditto.
29740
29741 2011-03-21 Richard Guenther <rguenther@suse.de>
29742
29743 * params.def (lto-min-partition): Fix typo.
29744
29745 2011-03-21 Richard Guenther <rguenther@suse.de>
29746
29747 PR c/47939
29748 * c-decl.c (grokdeclarator): Drop to the main variant only
29749 for array types. Drop flag_gen_aux_info check.
29750
29751 2011-03-21 Richard Guenther <rguenther@suse.de>
29752
29753 PR translation/47911
29754 * params.def (lto-partitions): Fix typo.
29755 (lto-min-partition): Fix wording.
29756
29757 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
29758
29759 * config/rs6000/t-freebsd: Remove duplication from file.
29760
29761 2011-03-21 Richard Guenther <rguenther@suse.de>
29762
29763 PR middle-end/47661
29764 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
29765
29766 2011-03-21 Richard Guenther <rguenther@suse.de>
29767
29768 PR lto/48210
29769 * params.def (lto-partitions): Require at least 1 partition.
29770
29771 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29772
29773 * gthr-solaris.h: Remove.
29774 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
29775 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
29776 (LIB_SPEC): Likewise.
29777 * config/sol2.opt (threads): Remove.
29778 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
29779 (sparc*-*-solaris2*): Likewise.
29780 * configure.ac (enable_threads): Enable solaris support.
29781 * configure: Regenerate.
29782 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
29783 * doc/install.texi (Configuration, --enable-threads=lib): Remove
29784 solaris.
29785
29786 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29787
29788 * config.gcc: Obsolete *-*-solaris2.8*.
29789 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29790
29791 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29792
29793 PR bootstrap/48135
29794 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
29795 reference. Solaris 8 perl works.
29796
29797 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29798
29799 PR bootstrap/48135
29800 * doc/install.texi (Prerequisites): Move jar etc. up.
29801 Explain support library version requirements.
29802
29803 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29804
29805 PR bootstrap/48135
29806 * doc/install.texi (Prerequisites): Move Perl to build
29807 requirements. Always necessary on Solaris 2 with Sun ld.
29808
29809 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29810
29811 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
29812 binutils 2.21.
29813 (Specific, i?86-*-solaris2.[89]): Likewise.
29814 (Specific, i?86-*-solaris2.10): Likewise.
29815 (Specific, mips-sgi-irix6): Likewise.
29816 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
29817 Update for binutils 2.21.
29818
29819 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29820
29821 * configure.ac (gcc_cv_lto_plugin): Fix typo.
29822 Allow -fuse-linker-plugin for non-default plugin linker.
29823 * configure: Regenerate.
29824
29825 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
29826
29827 PR bootstrap/48167
29828 * gengtype.c (files_rules): Added rule for cp/parser.h.
29829
29830 2011-03-21 Jakub Jelinek <jakub@redhat.com>
29831
29832 PR target/48213
29833 * config/s390/s390.c (s390_delegitimize_address): Don't call
29834 lowpart_subreg if orig_x has BLKmode.
29835
29836 2011-03-21 Kai Tietz <ktietz@redhat.com>
29837
29838 PR target/12171
29839 * doc/plugins.texi: Adjust documentation for plugin register_callback.
29840 * tree.h (attribute_spec): Add new member affects_type_identity.
29841 * attribs.c (empty_attribute_table): Adjust attribute_spec
29842 initializers.
29843 * config/alpha/alpha.c: Likewise.
29844 * config/arc/arc.c: Likewise.
29845 * config/arm/arm.c: Likewise.
29846 * config/avr/avr.c: Likewise.
29847 * config/bfin/bfin.c: Likewise.
29848 * config/crx/crx.c: Likewise.
29849 * config/darwin.h: Likewise.
29850 * config/h8300/h8300.c: Likewise.
29851 * config/i386/cygming.h: Likewise.
29852 * config/i386/i386.c: Likewise.
29853 * config/ia64/ia64.c: Likewise.
29854 * config/m32c/m32c.c: Likewise.
29855 * config/m32r/m32r.c: Likewise.
29856 * config/m68hc11/m68hc11.c: Likewise.
29857 * config/m68k/m68k.c: Likewise.
29858 * config/mcore/mcore.c: Likewise.
29859 * config/mep/mep.c: Likewise.
29860 * config/microblaze/microblaze.c: Likewise.
29861 * config/mips/mips.c: Likewise.
29862 * config/rs6000/rs6000.c: Likewise.
29863 * config/rx/rx.c: Likewise.
29864 * config/sh/sh.c: Likewise.
29865 * config/sol2.h: Likewise.
29866 * config/sparc/sparc.c: Likewise.
29867 * config/spu/spu.c: Likewise.
29868 * config/stormy16/stormy16.c: Likewise.
29869 * config/v850/v850.c: Likewise.
29870
29871 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
29872
29873 * simplify-rtx.c (simplify_binary_operation_1): Handle
29874 (xor (and A B) C) case when B and C are both constants.
29875
29876 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
29877
29878 * tree-dfa.c (add_referenced_var): Fix typo in comment.
29879
29880 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
29881
29882 PR bootstrap/48168
29883 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
29884
29885 2011-03-20 Jakub Jelinek <jakub@redhat.com>
29886
29887 PR rtl-optimization/48156
29888 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
29889 assume df and df_lr are not NULL.
29890
29891 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29892
29893 PR debug/48023
29894 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
29895 between a call and its CALL_ARG_LOCATION note.
29896
29897 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
29898
29899 PR debug/48178
29900 * config/sh/sh.c (find_barrier): Don't emit a constant pool
29901 between a call and its corresponding CALL_ARG_LOCATION note.
29902
29903 2011-03-19 Anatoly Sokolov <aesok@post.ru>
29904
29905 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
29906 instead of loop. Use HARD_REGISTER_NUM_P predicate.
29907 * haifa-sched.c (setup_ref_regs): Ditto.
29908 * caller-save.c (add_used_regs_1): Ditto.
29909 * dse.c (look_for_hardregs): Ditto.
29910 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
29911 * sched-rgn.c (check_live_1): Ditto.
29912
29913 2011-03-18 Joseph Myers <joseph@codesourcery.com>
29914
29915 * c-decl.c (diagnose_mismatched_decls): Give an error for
29916 redefining a typedef with variably modified type.
29917
29918 2011-03-18 Joseph Myers <joseph@codesourcery.com>
29919
29920 * c-decl.c (grokfield): Don't allow typedefs for structures or
29921 unions with no tag by default.
29922 * doc/extend.texi (Unnamed Fields): Update.
29923
29924 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
29925
29926 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29927 Rewrite using indirect functions.
29928 (lwp_slwpcb): Ditto.
29929 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
29930 (avx_vinsertf128<mode>): Ditto.
29931
29932 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29933
29934 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
29935 unspecs.
29936
29937 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29938
29939 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
29940 splitting between a call and its corresponding CALL_ARG_LOCATION note.
29941
29942 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
29943
29944 PR rtl-optimization/48170
29945 * gcse.c (hoist_code): Remove bogus asserts.
29946
29947 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
29948
29949 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
29950 computation for prologue/epilogue.
29951
29952 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29953
29954 * Makefile.in (check-consistency): Remove.
29955
29956 2011-03-18 Jakub Jelinek <jakub@redhat.com>
29957
29958 PR debug/48176
29959 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
29960 arange_table_in_use is 0, but either text_section_used or
29961 cold_text_section_used is true. Don't call it if
29962 !info_section_emitted.
29963
29964 2011-03-18 Anatoly Sokolov <aesok@post.ru>
29965
29966 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
29967 FUNCTION_VALUE_REGNO_P): Remove.
29968 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
29969 Remove.
29970 * config/avr/avr.c (avr_ret_register): Make static inline.
29971 (avr_function_value_regno_p): New function.
29972 (avr_libcall_value): Make static. Add 'func' argument.
29973 (avr_function_value): Make static. Rename 'func' argument to
29974 'fn_decl_or_type', forward it to avr_libcall_value. Call
29975 avr_ret_register function instead of RET_REGISTER macro.
29976 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29977
29978 2011-03-18 Jason Merrill <jason@redhat.com>
29979
29980 PR c++/23372
29981 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
29982
29983 2011-03-18 Richard Guenther <rguenther@suse.de>
29984
29985 * doc/install.texi (--enable-gold): Remove.
29986 (--with-plugin-ld): Document.
29987 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
29988
29989 2011-03-18 Andrew Pinski <pinskia@gmail.com>
29990
29991 PR middle-end/47790
29992 * expr.c (optimize_bitfield_assignment_op): Revamp to work
29993 again after expansion changes.
29994
29995 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
29996
29997 * combine.c (try_combine): Do simplification only call of
29998 subst() on i2 even when i1 is present. Update comments.
29999
30000 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
30001
30002 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
30003 and UNSPEC_PCREL_SYMOFF.
30004
30005 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30006
30007 * config/s390/s390.md: Use define_c_enum for the unspec constant
30008 definitions.
30009
30010 2011-03-18 Richard Henderson <rth@redhat.com>
30011 Jakub Jelinek <jakub@redhat.com>
30012
30013 PR bootstrap/48161
30014 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
30015 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
30016
30017 2011-03-17 Anatoly Sokolov <aesok@post.ru>
30018
30019 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30020 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
30021 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
30022 Change return type to bool.
30023 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30024
30025 2011-03-17 Jakub Jelinek <jakub@redhat.com>
30026
30027 PR debug/48163
30028 * var-tracking.c (prepare_call_arguments): If CALL target
30029 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
30030 pc instead of looking it up using cselib_lookup and use
30031 Pmode for it if x has VOIDmode.
30032 * dwarf2out.c (gen_subprogram_die): If also both first and
30033 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
30034
30035 PR debug/48163
30036 * function.c (assign_parms): For data.passed_pointer parms
30037 use MEM of data.entry_parm instead of data.entry_parm itself
30038 as DECL_INCOMING_RTL.
30039 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
30040 also when passed and declared mode is the same, DECL_RTL
30041 is a MEM with pseudo as address and DECL_INCOMING_RTL is
30042 a MEM too.
30043
30044 2011-03-16 Jeff Law <law@redhat.com>
30045
30046 PR rtl-optimization/37273
30047 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30048 handle them like argument loads from stack slots. Do not double
30049 count memory for memory constants and argument loads from stack slots.
30050
30051 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
30052
30053 PR debug/48160
30054 * var-tracking.c (prepare_call_arguments): Check SUBREG.
30055
30056 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
30057
30058 PR target/48171
30059 * config/i386/i386.opt: Add Save to -mavx and -mfma.
30060
30061 2011-03-17 Jakub Jelinek <jakub@redhat.com>
30062
30063 PR bootstrap/48153
30064 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
30065 if dwarf_strict.
30066 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
30067 Clear call_arg_locations and call_arg_loc_last always.
30068
30069 PR middle-end/48152
30070 * var-tracking.c (prepare_call_arguments): If argument needs to be
30071 passed by reference, adjust argtype and mode.
30072
30073 2011-03-17 Richard Guenther <rguenther@suse.de>
30074
30075 PR middle-end/48134
30076 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
30077 a value make sure to fold the statement.
30078
30079 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
30080
30081 PR target/43872
30082 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
30083 return condition with !cfun->calls_alloca.
30084
30085 2011-03-17 Richard Guenther <rguenther@suse.de>
30086
30087 PR bootstrap/48148
30088 * lto-cgraph.c (input_overwrite_node): Clear the abstract
30089 origin for decls in other ltrans units.
30090 (input_varpool_node): Likewise.
30091
30092 2011-03-17 Richard Guenther <rguenther@suse.de>
30093
30094 PR middle-end/48165
30095 * tree-object-size.c (compute_object_offset): Properly return
30096 the offset operand of MEM_REFs as sizetype.
30097
30098 2011-03-17 Jakub Jelinek <jakub@redhat.com>
30099
30100 PR rtl-optimization/48141
30101 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
30102 * dse.c: Include params.h.
30103 (active_local_stores_len): New variable.
30104 (add_wild_read, dse_step1): Clear it when setting active_local_stores
30105 to NULL.
30106 (record_store, check_mem_read_rtx): Decrease it when removing
30107 from the chain.
30108 (scan_insn): Likewise. Increase it when adding to chain, if it
30109 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
30110 set active_local_stores to NULL before the addition.
30111 * Makefile.in (dse.o): Depend on $(PARAMS_H).
30112
30113 PR rtl-optimization/48141
30114 * dse.c (record_store): If no positions are needed in an insn
30115 that cannot be deleted, at least unchain it from active_local_stores.
30116
30117 2011-03-16 Dodji Seketeli <dodji@redhat.com>
30118
30119 PR debug/47510
30120 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
30121 (lookup_type_die_strip_naming_typedef): ... here.
30122 (get_context_die): Use it.
30123 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
30124 the anonymous struct named by the naming typedef.
30125
30126 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 PR target/48154
30129 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
30130 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30131
30132 2011-03-16 Jeff Law <law@redhat.com>
30133
30134 * tree-vrp.c (identify_jump_threads): Slightly simplify type
30135 check for operands of conditional. Allow type to be a pointer.
30136
30137 2011-03-16 Richard Guenther <rguenther@suse.de>
30138
30139 PR tree-optimization/48149
30140 * fold-const.c (fold_binary_loc): Fold
30141 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
30142
30143 2011-03-16 Richard Guenther <rguenther@suse.de>
30144
30145 PR tree-optimization/26134
30146 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
30147 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
30148 (non_rewritable_mem_ref_base): Handle complex type component
30149 accesses, constrain offsets for vector and complex extracts
30150 more properly.
30151
30152 2011-03-16 Richard Guenther <rguenther@suse.de>
30153
30154 PR tree-optimization/48146
30155 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
30156 operands avoiding the need for renaming.
30157
30158 2011-03-16 Richard Guenther <rguenther@suse.de>
30159
30160 * gimple-fold.c (maybe_fold_reference): Open-code relevant
30161 constant folding. Move MEM_REF canonicalization first.
30162 Rely on fold_const_aggregate_ref for initializer folding.
30163 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
30164
30165 2011-03-16 Jakub Jelinek <jakub@redhat.com>
30166
30167 PR middle-end/48136
30168 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
30169 arg0/arg1 or their arguments are always fold converted to matching
30170 types.
30171
30172 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
30173 to nargs.
30174
30175 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30176
30177 PR lto/46944
30178 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
30179 Handle in-tree gold.
30180 (ld_vers): Extract binutils version for gold.
30181 (gcc_cv_ld_hidden): Handle gold here.
30182 (gcc_cv_lto_plugin): Determine level of linker plugin support.
30183 * configure: Regenerate.
30184 * config.in: Regenerate.
30185 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
30186 -fuse-linker-plugin otherwise.
30187 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
30188 (LINK_COMMAND_SPEC): Use it.
30189 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
30190
30191 2011-03-16 Jakub Jelinek <jakub@redhat.com>
30192
30193 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
30194 * calls.c: Remove debug.h include.
30195 (emit_call_1): Don't call virtual_call_token debug hook.
30196 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
30197 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
30198 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
30199 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
30200 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
30201 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
30202 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
30203 dwarf2out_virtual_call): Remove.
30204 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
30205 copy_call_info and virtual_call hooks.
30206 (dwarf2out_init): Don't initialize vcall_insn_table,
30207 debug_dcall_section and debug_vcall_section.
30208 (prune_unused_types): Don't mark nodes from dcall_table.
30209 (dwarf2out_finish): Don't output dcall or vcall tables.
30210 * final.c (final_scan_insn): Don't call direct_call or
30211 virtual_call debug hooks.
30212 * debug.h (struct gcc_debug_hooks): Remove direct_call,
30213 virtual_call_token, copy_call_info and virtual_call hooks.
30214 (debug_nothing_uid): Remove prototype.
30215 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
30216 copy_call_info and virtual_call hooks.
30217 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
30218 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
30219 * debug.c (do_nothing_debug_hooks): Likewise.
30220 (debug_nothing_uid): Remove.
30221 * doc/invoke.texi (-fenable-icf-debug): Remove.
30222 * common.opt (-fenable-icf-debug): Likewise.
30223
30224 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
30225 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
30226 call's MEM. Handle functions returning aggregate through a hidden
30227 first pointer. For virtual calls add clobbered pc to call arguments
30228 chain.
30229 * dwarf2out.c (gen_subprogram_die): Emit
30230 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
30231 can't be emitted.
30232
30233 PR debug/45882
30234 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
30235 * rtl.h (ENTRY_VALUE_EXP): Define.
30236 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
30237 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
30238 * print-rtl.c (print_rtx): Likewise.
30239 * gengtype.c (adjust_field_rtx_def): Likewise.
30240 * var-tracking.c (vt_add_function_parameter): Adjust
30241 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
30242 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
30243 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
30244 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
30245 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
30246
30247 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
30248 Call var_location debug hook even on CALL_INSNs.
30249 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
30250 * rtl.def (ENTRY_VALUE): New.
30251 * dwarf2out.c: Include cfglayout.h.
30252 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
30253 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
30254 (struct call_arg_loc_node): New type.
30255 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
30256 tail_call_site_count): New variables.
30257 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
30258 DW_TAG_GNU_call_site_parameter.
30259 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
30260 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
30261 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
30262 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
30263 and DW_AT_GNU_all_source_call_sites.
30264 (mem_loc_descriptor): Handle ENTRY_VALUE.
30265 (add_src_coords_attributes): Don't add enything if
30266 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
30267 (dwarf2out_abstract_function): Save and clear call_arg_location,
30268 call_site_count and tail_call_site_count around dwarf2out_decl call.
30269 (gen_call_site_die): New function.
30270 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
30271 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
30272 (dwarf2out_function_decl): Clear call_arg_locations,
30273 call_arg_loc_last, set call_site_count and tail_call_site_count
30274 to -1 and free block_map.
30275 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
30276 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
30277 followed by any real instructions.
30278 (dwarf2out_begin_function): Set call_site_count and
30279 tail_call_site_count to 0.
30280 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
30281 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
30282 attempt to force a DIE for it and worst case remove the attribute.
30283 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
30284 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
30285 the decl itself.
30286 * var-tracking.c: Include tm_p.h.
30287 (vt_stack_adjustments): For calls call note_register_arguments.
30288 (argument_reg_set): New variable.
30289 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
30290 ensure the VALUE is resolved.
30291 (call_arguments): New variable.
30292 (prepare_call_arguments): New function.
30293 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
30294 (struct expand_loc_callback_data): Add ignore_cur_loc field.
30295 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
30296 always use the best expression.
30297 (vt_expand_loc): Add ignore_cur_loc argument.
30298 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
30299 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
30300 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
30301 note for all calls.
30302 (vt_add_function_parameter): Use cselib_lookup_from_insn.
30303 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
30304 argument. Don't call cselib_preserve_only_values and
30305 cselib_reset_table.
30306 (note_register_arguments): New function.
30307 (vt_initialize): Compute argument_reg_set. Call
30308 vt_add_function_parameters before processing basic blocks instead of
30309 afterwards. For calls call prepare_call_arguments before calling
30310 cselib_process_insn.
30311 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
30312 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
30313 (var-tracking.o): Depend on $(TM_P_H).
30314 * cfglayout.h (insn_scope): New prototype.
30315 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
30316 * cfglayout.c (insn_scope): No longer static.
30317 * insn-notes.def (CALL_ARG_LOCATION): New.
30318 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
30319 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
30320 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
30321 nothing for DECL_EXTERNAL BLOCK_VARS.
30322
30323 2011-03-16 Alan Modra <amodra@gmail.com>
30324
30325 PR target/45844
30326 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
30327 create invalid offset address for vsx splat insn.
30328 * config/rs6000/predicates.md (splat_input_operand): New.
30329 * config/rs6000/vsx.md (vsx_splat_*): Use it.
30330
30331 2011-03-15 Xinliang David Li <davidxl@google.com>
30332
30333 PR c/47837
30334 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
30335 (normalize_preds): New function.
30336 (is_use_properly_guarded): Normalize def predicates.
30337
30338 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30339
30340 PR target/46788
30341 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
30342 in the output template.
30343
30344 2011-03-15 Richard Guenther <rguenther@suse.de>
30345
30346 PR middle-end/47650
30347 * tree-pretty-print.c (dump_function_declaration): Properly
30348 dump unprototyped and varargs function types.
30349
30350 2011-03-15 Richard Guenther <rguenther@suse.de>
30351
30352 PR tree-optimization/13954
30353 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
30354 and friends.
30355
30356 2011-03-15 Richard Guenther <rguenther@suse.de>
30357
30358 PR tree-optimization/48037
30359 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
30360 selects into BIT_FIELD_REFs.
30361 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
30362 vector select.
30363
30364 2011-03-15 Jakub Jelinek <jakub@redhat.com>
30365
30366 PR tree-optimization/48129
30367 * builtins.c (fold_builtin_snprintf): Convert to type of
30368 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
30369 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
30370
30371 2011-03-15 Richard Guenther <rguenther@suse.de>
30372
30373 PR tree-optimization/41490
30374 * tree-ssa-dce.c (propagate_necessity): Handle returns without
30375 value but with VUSE.
30376 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
30377 return statements.
30378 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
30379 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
30380 * tree-tailcall.c (find_tail_calls): Ignore returns.
30381
30382 2011-03-15 Richard Guenther <rguenther@suse.de>
30383
30384 PR middle-end/48031
30385 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
30386 or variable-indexed array accesses when in gimple form.
30387
30388 2011-03-15 Richard Guenther <rguenther@suse.de>
30389
30390 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
30391
30392 2011-03-15 Alan Modra <amodra@gmail.com>
30393
30394 PR target/48032
30395 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
30396 presume symbol_refs without a symbol_ref_decl are suitably
30397 aligned, nor other trees we may see here. Handle anchor symbols.
30398 (legitimate_constant_pool_address_p): Comment. Add mode param.
30399 Check cmodel=medium addresses. Adjust all calls.
30400 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
30401 creating cmodel=medium optimized access to locals.
30402 * config/rs6000/constraints.md (R): Pass QImode to
30403 legitimate_constant_pool_address_p.
30404 * config/rs6000/predicates.md (input_operand): Pass mode to
30405 legitimate_constant_pool_address_p.
30406 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
30407 Update prototype.
30408
30409 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30410
30411 PR target/48053
30412 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
30413 64-bit constants being loaded into registers other than GPRs such
30414 as loading 0 into a VSX register.
30415
30416 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30417
30418 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
30419
30420 2011-03-14 Jakub Jelinek <jakub@redhat.com>
30421
30422 PR middle-end/47917
30423 * builtins.c (fold_builtin_snprintf): New function.
30424 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
30425 (fold_builtin_4): Likewise.
30426
30427 PR middle-end/38878
30428 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
30429 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
30430 and C - X == X also strip nops from +/-/p+ operand.
30431 When optimizing -X == C, fold C to arg0's type.
30432
30433 PR debug/47946
30434 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
30435 emit it as add_AT_int instead of add_AT_unsigned.
30436
30437 2011-03-14 Tom Tromey <tromey@redhat.com>
30438
30439 * unwind-dw2.c: Include sys/sdt.h if it exists.
30440 (_Unwind_DebugHook): Use STAP_PROBE2.
30441 * config.in, configure: Rebuild.
30442 * configure.ac: Check for sys/sdt.h.
30443
30444 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
30445
30446 * config/i386/i386.md (ROUND_FLOOR): New constant.
30447 (ROUND_CEIL): Ditto.
30448 (ROUND_TRUNC): Ditto.
30449 (ROUND_MXCSR): Ditto.
30450 (ROUND_NO_EXC): Ditto.
30451 (rint<mode>2): Use new defines instead of numerical constants.
30452 (floor<mode>2): Ditto.
30453 (ceil<mode>2): Ditto.
30454 (btrunc<mode>2): Ditto.
30455 * config/i386/i386-builtin-types.def: Define ROUND function type
30456 aliases.
30457 * config/i386/i386.c (enum ix86_builtins): Add
30458 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
30459 (struct builtin_description): Add
30460 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
30461 (ix86_expand_sse_round): New static function.
30462 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
30463 function types.
30464 (ix86_builtin_vectorized_function): Handle
30465 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
30466
30467 2011-03-14 Tom Tromey <tromey@redhat.com>
30468
30469 * c-parser.c (c_parser_asm_string_literal): Clear
30470 warn_overlength_strings.
30471
30472 2011-03-14 Tom Tromey <tromey@redhat.com>
30473
30474 * c-parser.c (disable_extension_diagnostics): Save
30475 warn_overlength_strings.
30476 (restore_extension_diagnostics): Restore warn_overlength_strings.
30477
30478 2011-03-14 Jakub Jelinek <jakub@redhat.com>
30479
30480 * BASE-VER: Change to 4.7.0.
30481
30482 2011-03-14 Richard Guenther <rguenther@suse.de>
30483
30484 PR middle-end/48098
30485 * tree.c (build_vector_from_val): Adjust assert to requirements
30486 and reality.
30487
30488 2011-03-14 Jakub Jelinek <jakub@redhat.com>
30489
30490 PR bootstrap/48102
30491 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
30492
30493 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
30494
30495 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
30496 terms of target_flags_explicit. Adjust copyright year.
30497
30498 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
30499 * config/rs6000/t-freebsd: New file. Add override for
30500 LIB2FUNCS_EXTRA.
30501
30502 2011-03-13 Chris Demetriou <cgd@google.com>
30503
30504 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
30505 (-fno-diagnostics-show-option): this, to reflect current default.
30506 (-Werror=): Update text about -fno-diagnostics-show-option.
30507
30508 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
30509
30510 PR target/48053
30511 * config/rs6000/predicates.md (easy_vector_constant_add_self,
30512 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
30513 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
30514 mode is not V2DImode or V2DFmode.
30515 (vspltis_constant): Do not handle V2DImode and V2DFmode.
30516 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
30517 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
30518 registers to 0.
30519 (movdi_internal64): Likewise.
30520
30521 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
30522
30523 PR tree-optimization/47127
30524 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
30525 parameter.
30526 (set_cloog_options): Same.
30527 (scop_to_clast): Same.
30528 (print_clast_stmt): Do not call cloog_state_malloc and
30529 cloog_state_free.
30530 (print_generated_program): Same.
30531 (gloog): Same.
30532 * graphite-clast-to-gimple.h (cloog_state): Declared.
30533 (scop_to_clast): Adjust declaration.
30534 * graphite.c (cloog_state): Defined here.
30535 (graphite_initialize): Call cloog_state_malloc.
30536 (graphite_finalize): Call cloog_state_free.
30537
30538 2011-03-11 Jason Merrill <jason@redhat.com>
30539
30540 * attribs.c (lookup_attribute_spec): Take const_tree.
30541 * tree.h: Adjust.
30542
30543 2011-03-11 Joseph Myers <joseph@codesourcery.com>
30544
30545 * config/sparc/sparc.c (sparc_option_override): Use
30546 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
30547
30548 2011-03-11 Richard Guenther <rguenther@suse.de>
30549
30550 PR tree-optimization/48067
30551 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
30552 multiplication result will be only used once on the target
30553 stmt.
30554
30555 2011-03-11 Richard Guenther <rguenther@suse.de>
30556
30557 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
30558
30559 2011-03-11 Richard Guenther <rguenther@suse.de>
30560
30561 PR lto/48073
30562 * tree.c (find_decls_types_r): Do not walk types only reachable
30563 from IDENTIFIER_NODEs.
30564
30565 2011-03-11 Jakub Jelinek <jakub@redhat.com>
30566
30567 PR middle-end/48044
30568 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
30569 all vnode->force_output nodes as needed.
30570
30571 2011-03-11 Jason Merrill <jason@redhat.com>
30572
30573 PR c++/48069
30574 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
30575 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
30576
30577 2011-03-11 Martin Jambor <mjambor@suse.cz>
30578
30579 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
30580 cgraph_node.
30581
30582 2011-03-11 Jakub Jelinek <jakub@redhat.com>
30583
30584 PR tree-optimization/48063
30585 * ipa-inline.c (cgraph_decide_inlining): Don't try to
30586 inline functions called once if !tree_can_inline_p (node->callers).
30587
30588 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
30589
30590 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
30591 extra_objs.
30592 * config/score/score3.c: Delete.
30593 * config/score/score3.h: Delete.
30594 * config/score/mul-div.S: Delete.
30595 * config/score/sfp-machine.h: Add new file.
30596 * config/score/constraints.md: Add new file.
30597 * config/score/t-score-softfp: Add new file.
30598 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
30599 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
30600 (score7_extra_constraint): Delete.
30601 (score7_option_override): Remove unused code.
30602 * config/score/score.c: Remove score3 and score5 define and code.
30603 * config/score/score.h: Remove score3 and score5 define and code.
30604 * config/score/score.md: Remove score3 template and unusual insn.
30605 * config/score/score.opt: Remove score3 and score5 options.
30606
30607 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30608
30609 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
30610 when _HPUX_SOURCE is defined.
30611 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
30612
30613 2011-03-10 Jason Merrill <jason@redhat.com>
30614
30615 PR c++/48029
30616 * stor-layout.c (layout_type): Don't set structural equality
30617 on arrays of incomplete type.
30618 * tree.c (type_hash_eq): Handle comparing them properly.
30619
30620 2011-03-10 Jakub Jelinek <jakub@redhat.com>
30621
30622 PR debug/48043
30623 * config/s390/s390.c (s390_delegitimize_address): Make sure the
30624 result mode matches original rtl mode.
30625
30626 2011-03-10 Nick Clifton <nickc@redhat.com>
30627
30628 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
30629 (andsi3, andsi3_flags): Fix timings for three operand alternative.
30630
30631 2011-03-09 Jakub Jelinek <jakub@redhat.com>
30632
30633 PR rtl-optimization/47866
30634 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
30635 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
30636 if target wasn't scalar.
30637 * function.c (assign_stack_temp_for_type): Assert that neither
30638 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
30639 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
30640 macro.
30641 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
30642
30643 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30644
30645 * config/s390/s390-protos.h (s390_label_align): New prototype.
30646 * config/s390/s390.c (s390_label_align): New function.
30647 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
30648
30649 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
30650
30651 PR target/47755
30652 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
30653 V2DI/V2DF constants. Only all 0's or all 1's are easy.
30654 (output_vec_const_move): Ditto.
30655
30656 2011-03-08 Anatoly Sokolov <aesok@post.ru>
30657
30658 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
30659 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
30660 * config/mips/mips.c (mips_preferred_reload_class): Make static.
30661 Change 'rclass' argument and result type to reg_class_t.
30662 (TARGET_PREFERRED_RELOAD_CLASS): Define.
30663
30664 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
30665
30666 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30667 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
30668 (TARGET_MEMORY_MOVE_COST): Define.
30669 (avr_register_move_cost, avr_memory_move_cost): New Functions.
30670
30671 2011-03-08 Jakub Jelinek <jakub@redhat.com>
30672
30673 PR debug/47881
30674 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
30675 removed anything.
30676
30677 PR tree-optimization/48022
30678 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
30679 for EQ/NE_EXPR.
30680
30681 2011-03-07 Jakub Jelinek <jakub@redhat.com>
30682
30683 PR debug/47991
30684 * var-tracking.c (find_use_val): Return NULL for
30685 cui->sets && cui->store_p BLKmode MEMs.
30686
30687 2011-03-07 Anatoly Sokolov <aesok@post.ru>
30688
30689 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
30690 Remove.
30691 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
30692 xstormy16_print_operand_address): Remove.
30693 * config/stormy16/stormy16.c (xstormy16_print_operand,
30694 xstormy16_print_operand_address): Make static.
30695 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
30696
30697 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
30698
30699 PR target/47862
30700 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30701 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
30702 before definition.
30703
30704 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
30705
30706 PR bootstrap/48000
30707 * cfgloopmanip.c (fix_bb_placements): Return immediately
30708 if FROM is BASE_LOOP's header.
30709
30710 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
30711
30712 * gimplify.c (gimplify_function_tree): Fix building calls
30713 to __builtin_return_address.
30714
30715 2011-03-07 Alan Modra <amodra@gmail.com>
30716
30717 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
30718 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
30719 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
30720 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
30721 return_mode args.
30722 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
30723 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
30724 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
30725 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
30726 * config/rs6000/rs6000.c
30727 (rs6000_elf_end_indicate_exec_stack): Rename to..
30728 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
30729 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
30730 (rs6000_file_start): ..here.
30731 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
30732 file scope variables.
30733 (call_ABI_of_interest): New function.
30734 (init_cumulative_args): Set above vars when function return value
30735 is a float, vector, or small struct.
30736 (rs6000_function_arg_advance_1): Likewise for function args.
30737 (rs6000_va_start): Set rs6000_passes_float if variable arg function
30738 references float args.
30739
30740 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
30741
30742 * doc/cfg.texi: Remove "See" before @ref.
30743 * doc/invoke.texi: Likewise.
30744
30745 2011-03-05 Jason Merrill <jason@redhat.com>
30746
30747 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
30748
30749 2011-03-05 Anthony Green <green@moxielogic.com>
30750
30751 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
30752
30753 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
30754
30755 PR rtl-optimization/47899
30756 * cfgloopmanip.c (fix_bb_placements): Fix first argument
30757 to flow_loop_nested_p when moving the loop upward.
30758
30759 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
30760
30761 PR target/47719
30762 * arm.md (movhi_insn_arch4): Accept any immediate constant.
30763
30764 2011-03-05 Jakub Jelinek <jakub@redhat.com>
30765
30766 PR tree-optimization/47967
30767 * ipa-cp.c (build_const_val): Return NULL instead of creating
30768 VIEW_CONVERT_EXPR for mismatching sizes.
30769 (ipcp_create_replace_map): Return NULL if build_const_val failed.
30770 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
30771 give up on versioning.
30772
30773 2011-03-05 Alan Modra <amodra@gmail.com>
30774
30775 PR target/47986
30776 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30777 full cmodel medium/large lo_sum + high addresses.
30778
30779 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30780
30781 * config/s390/s390.c (s390_decompose_address): Reject non-literal
30782 pool references in UNSPEC_LTREL_OFFSET.
30783
30784 2011-03-04 Jan Hubicka <jh@suse.cz>
30785
30786 PR lto/47497
30787 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
30788 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
30789 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
30790 Add node pointers.
30791 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
30792 cgraph_add_thunk): Add node pointers.
30793 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
30794 associated to right node.
30795 (input_node): Update use of cgraph_same_body_alias
30796 and cgraph_add_thunk.
30797
30798 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
30799
30800 * config/i386/i386.opt (mprefer-avx128): New flag.
30801 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
30802 modes when the flag -mprefer-avx128 is on.
30803
30804 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
30805
30806 * dwarf2out.c (compare_loc_operands): Fix address handling.
30807
30808 2011-03-04 Alan Modra <amodra@gmail.com>
30809
30810 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
30811
30812 2011-03-04 Richard Guenther <rguenther@suse.de>
30813
30814 PR middle-end/47968
30815 * expmed.c (extract_bit_field_1): Prefer vector modes that
30816 vec_extract patterns can handle.
30817
30818 2011-03-04 Richard Guenther <rguenther@suse.de>
30819
30820 PR middle-end/47975
30821 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
30822
30823 2011-03-04 Richard Henderson <rth@redhat.com>
30824
30825 * explow.c (emit_stack_save): Remove 'after' parameter.
30826 (emit_stack_restore): Likewise.
30827 * expr.h: Update to match.
30828 * builtins.c, calls.c, stmt.c: Likewise.
30829 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
30830 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
30831 * function.c (expand_function_end): Insert the emit_stack_save
30832 sequence before parm_birth_insn instead of after.
30833
30834 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
30835
30836 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
30837 (ssse3_pmaddubsw128): Ditto.
30838 (ssse3_pmaddubsw): Ditto.
30839
30840 2011-03-03 Steve Ellcey <sje@cup.hp.com>
30841
30842 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
30843
30844 2011-03-03 Jakub Jelinek <jakub@redhat.com>
30845
30846 PR c/47963
30847 * gimplify.c (omp_add_variable): Only call omp_notice_variable
30848 on TYPE_SIZE_UNIT if it is a DECL.
30849
30850 PR debug/47283
30851 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
30852 first operand is not is_gimple_mem_ref_addr, try to fold it.
30853 If the operand still isn't is_gimple_mem_ref_addr, clear
30854 MEM_EXPR on op0.
30855
30856 2011-03-03 Richard Guenther <rguenther@suse.de>
30857
30858 PR middle-end/47283
30859 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
30860 match comment.
30861 (refs_may_alias_p_1): For release branches return true if
30862 we are confused by our input.
30863
30864 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30865
30866 * config/s390/s390.c (s390_function_value): Rename to ...
30867 (s390_function_and_libcall_value): ... this.
30868 (s390_function_value): New function.
30869 (s390_libcall_value): New function.
30870 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
30871 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
30872 target macro definitions.
30873 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
30874
30875 2011-03-02 Joseph Myers <joseph@codesourcery.com>
30876
30877 * config/i386/freebsd64.h (CC1_SPEC): Define.
30878 * config/i386/linux64.h (CC1_SPEC): Define.
30879 * config/i386/x86-64.h (CC1_SPEC): Don't define.
30880
30881 2011-03-02 Anatoly Sokolov <aesok@post.ru>
30882
30883 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
30884 Remove.
30885 * config/stormy16/stormy16.c: Include reload.h.
30886 (xstormy16_memory_move_cost): New function.
30887 (TARGET_MEMORY_MOVE_COST): Define.
30888
30889 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
30890
30891 PR rtl-optimization/47925
30892 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
30893 with side effects. Remove the more-specific check for volatile asms.
30894
30895 2011-03-02 Alan Modra <amodra@gmail.com>
30896
30897 PR target/47935
30898 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
30899 toc relative addresses for valid offsets.
30900
30901 2011-03-01 Richard Guenther <rguenther@suse.de>
30902
30903 PR tree-optimization/47890
30904 * tree-vect-loop.c (get_initial_def_for_induction): Set
30905 related stmt properly.
30906
30907 2011-03-01 Richard Guenther <rguenther@suse.de>
30908
30909 PR lto/47924
30910 * lto-streamer.c (lto_record_common_node): Also register
30911 the canonical type.
30912
30913 2011-03-01 Richard Guenther <rguenther@suse.de>
30914
30915 PR lto/46911
30916 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
30917 Do not stream DECL_ABSTRACT_ORIGIN.
30918 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
30919 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
30920 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
30921 Do not stream DECL_ABSTRACT_ORIGIN.
30922 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
30923 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
30924
30925 2011-02-28 Anatoly Sokolov <aesok@post.ru>
30926
30927 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
30928 FUNCTION_VALUE_REGNO_P): Remove.
30929 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
30930 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
30931 Add 'outgoing' argument.
30932 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
30933 function.
30934 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30935 TARGET_FUNCTION_VALUE_REGNO_P): Define.
30936
30937 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
30938
30939 PR debug/28047
30940 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
30941 (lookup_filename): Likewise.
30942 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
30943
30944 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
30945 Jakub Jelinek <jakub@redhat.com>
30946
30947 PR middle-end/47893
30948 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
30949 (assign_stack_local_1): Change last argument type to int.
30950 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
30951 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
30952 don't record padding space into frame_space_list nor use those areas.
30953 (assign_stack_local): Adjust caller.
30954 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
30955 of assign_stack_local, pass 0 as last argument.
30956 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
30957 callers.
30958
30959 2011-02-28 Jakub Jelinek <jakub@redhat.com>
30960
30961 PR debug/47283
30962 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
30963 Use target address_mode and pointer_mode hooks instead of hardcoded
30964 Pmode and ptr_mode. Handle some simple cases of extending if
30965 POINTERS_EXTEND_UNSIGNED < 0.
30966 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
30967 Call convert_debug_memory_address.
30968 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
30969 convert_debug_memory_address.
30970
30971 PR middle-end/46790
30972 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
30973 * configure: Regenerated.
30974 * config.in: Regenerated.
30975 * varasm.c (default_function_section): Return NULL
30976 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
30977
30978 2011-02-28 Martin Jambor <mjambor@suse.cz>
30979
30980 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
30981 the description to match the printed values.
30982
30983 2011-02-28 Richard Guenther <rguenther@suse.de>
30984
30985 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
30986 of the copied scope tree.
30987
30988 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30989
30990 * doc/extend.texi (Function Attributes): Avoid deeply (and
30991 wrongly) nested tables.
30992
30993 2011-02-27 Jakub Jelinek <jakub@redhat.com>
30994
30995 PR middle-end/47903
30996 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
30997 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
30998 r isn't op0 nor op1.
30999
31000 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
31001
31002 * config/avr/avr.md: Remove magic comment for emacs.
31003
31004 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
31005
31006 PR target/45261
31007 * config/avr/avr.c (avr_option_override): Use error on bad options.
31008 (avr_help): New function.
31009 (TARGET_HELP): Define.
31010
31011 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
31012
31013 PR target/42240
31014 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
31015 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
31016
31017 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
31018
31019 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
31020 (ARM Options): Ditto.
31021 (i386 and x86-64 Options): Ditto.
31022 (RX Options): Ditto.
31023 (SPARC Options): Ditto.
31024
31025 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
31026
31027 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
31028 FreeBSD 6 and later. Generally use cpu generic.
31029
31030 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
31031
31032 * doc/cpp.texi: Update copyright years.
31033
31034 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
31035
31036 PR target/46898
31037 * config/lm32/lm32.md (ashrsi3): Added needed variable.
31038
31039 2011-02-25 Jon Beniston <jon@beniston.com>
31040
31041 PR target/46898
31042 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
31043 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
31044 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
31045 (lm32_block_move_inline): Add type cast to remove warning.
31046 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
31047 (gen_int_relational): Move declarations to start of function.
31048
31049 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
31050
31051 PR tree-optimization/45470
31052 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
31053 can throw internally only.
31054 * tree-vect-stmts.c (vectorizable_call): Likewise.
31055
31056 2011-02-24 Anatoly Sokolov <aesok@post.ru>
31057
31058 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
31059 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
31060 * config/stormy16/stormy16-protos.h
31061 (xstormy16_preferred_reload_class): Remove.
31062 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
31063 static. Change 'rclass' argument and return type to reg_class_t.
31064 (TARGET_PREFERRED_RELOAD_CLASS,
31065 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
31066
31067 2011-02-24 Richard Guenther <rguenther@suse.de>
31068
31069 * lto-streamer-in.c (input_bb): Do not find referenced vars
31070 in debug statements.
31071
31072 2011-02-23 Jason Merrill <jason@redhat.com>
31073
31074 * common.opt (fabi-version): Document v5 and v6.
31075
31076 2011-02-23 Richard Guenther <rguenther@suse.de>
31077
31078 PR tree-optimization/47849
31079 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
31080
31081 2011-02-23 Jie Zhang <jie@codesourcery.com>
31082
31083 * opts-common.c (decode_cmdline_option): Print empty string
31084 argument as "" in decoded->orig_option_with_args_text.
31085 * gcc.c (execute): Print empty string argument as ""
31086 in the verbose output.
31087 (do_spec_1): Keep empty string argument.
31088
31089 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
31090
31091 * config.gcc: Declare score-* and crx-* obsolete.
31092
31093 2011-02-23 Jie Zhang <jie@codesourcery.com>
31094
31095 PR rtl-optimization/47763
31096 * web.c (web_main): Ignore naked clobber when replacing register.
31097
31098 2011-02-22 Anatoly Sokolov <aesok@post.ru>
31099
31100 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31101 Remove.
31102
31103 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
31104
31105 PR doc/47848
31106 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
31107
31108 2011-02-22 Mike Stump <mikestump@comcast.net>
31109
31110 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
31111 assembler.
31112 * configure: Regenerate.
31113
31114 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
31115
31116 PR rtl-optimization/46002
31117 * ira-color.c (update_copy_costs): Change class intersection
31118 test to reg_class_contents[] test of 'hard_regno'.
31119
31120 2011-02-21 Joseph Myers <joseph@codesourcery.com>
31121
31122 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
31123 than Driver option.
31124 * config/hpux11.opt (mt): Likewise.
31125 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
31126 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
31127 * config/vax/elf.opt (mno-asm-pic): Likewise.
31128 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
31129
31130 2011-02-21 Mike Stump <mikestump@comcast.net>
31131
31132 PR target/47822
31133 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
31134 tree so we can get save the type.
31135 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
31136 for CFString instead of trying to use past the end of the builtins.
31137 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
31138 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
31139 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
31140 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
31141 Rename to darwin_builtin_cfstring.
31142 (darwin_init_cfstring_builtins): Return the built type.
31143
31144 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
31145
31146 PR target/47840
31147 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
31148 (_mm256_insert_epi64): Use _mm_insert_epi64.
31149
31150 2011-02-21 Anatoly Sokolov <aesok@post.ru>
31151
31152 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31153 * config/stormy16/stormy16-protos.h
31154 (xstormy16_mode_dependent_address_p): Remove.
31155 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
31156 Make static. Change return type to bool. Change argument type to
31157 const_rtx. Remove dead code.
31158 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31159
31160 2011-02-21 Richard Guenther <rguenther@suse.de>
31161
31162 PR lto/47820
31163 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
31164 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31165 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
31166 TUs context.
31167 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31168 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
31169
31170 2011-02-20 Richard Guenther <rguenther@suse.de>
31171
31172 PR lto/47822
31173 * tree.c (free_lang_data_in_decl): Clean builtins from
31174 the TU decl BLOCK_VARS.
31175
31176 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
31177
31178 PR debug/47620
31179 PR debug/47630
31180 * haifa-sched.c (fix_tick_ready): Skip tick computation
31181 for debug insns.
31182
31183 2011-02-19 Richard Guenther <rguenther@suse.de>
31184
31185 PR lto/47647
31186 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
31187 Remove lazy BLOCK_VARS streaming.
31188 (lto_input_ts_block_tree_pointers): Likewise.
31189 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
31190
31191 2011-02-19 Joseph Myers <joseph@codesourcery.com>
31192
31193 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
31194
31195 2011-02-19 Joseph Myers <joseph@codesourcery.com>
31196
31197 * config/i386/biarch32.h, config/i386/mach.h,
31198 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
31199
31200 2011-02-19 Jakub Jelinek <jakub@redhat.com>
31201
31202 PR target/47800
31203 * config/i386/i386.md (peephole2 for shift and plus): Use
31204 operands[1] original mode in the first insn.
31205
31206 2011-02-18 Mike Stump <mikestump@comcast.net>
31207
31208 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
31209
31210 2011-02-18 Jan Hubicka <jh@suse.cz>
31211
31212 PR middle-end/47788
31213 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
31214 to zero when the function is not inlinable at all.
31215
31216 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31217
31218 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
31219 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
31220 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
31221 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
31222 * config/pa/t-pa64: Likewise.
31223 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
31224
31225 2011-02-18 Jakub Jelinek <jakub@redhat.com>
31226
31227 PR driver/47787
31228 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
31229
31230 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31231
31232 PR target/47792
31233 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
31234
31235 2011-02-18 Anatoly Sokolov <aesok@post.ru>
31236
31237 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
31238 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
31239 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
31240 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
31241 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
31242 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
31243 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
31244 m32r_load_postinc_p, m32r_store_preinc_predec_p,
31245 m32r_legitimate_address_p): New functions.
31246 * config/m32r/constraints.md (constraint "S"): Don't use
31247 STORE_PREINC_PREDEC_P.
31248 (constraint "U"): Don't use LOAD_POSTINC_P.
31249
31250 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
31251
31252 PR rtl-optimization/46178
31253 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
31254 compute ira_hard_regno_cover_class[].
31255
31256 2011-02-18 Richard Guenther <rguenther@suse.de>
31257
31258 PR lto/47798
31259 * lto-streamer.h (lto_global_var_decls): Declare.
31260 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
31261 statics for global var processing.
31262
31263 2011-02-18 Richard Guenther <rguenther@suse.de>
31264
31265 PR tree-optimization/47737
31266 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
31267 edge dominance check.
31268
31269 2011-02-18 Jakub Jelinek <jakub@redhat.com>
31270
31271 PR debug/47780
31272 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
31273 avoid invalid rtx sharing.
31274
31275 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
31276
31277 * doc/cpp.texi (Obsolete Features): Add background on the
31278 origin of assertions.
31279
31280 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
31281
31282 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
31283 objc_abi == 2.
31284 * config/darwin.c (output_objc_section_asm_op): Added support for
31285 ABI v1 and v2.
31286 (is_objc_metadata): New.
31287 (darwin_objc2_section): New.
31288 (darwin_objc1_section): New.
31289 (machopic_select_section): Added support for ABI v1 and v2.
31290 (darwin_emit_objc_zeroed): New.
31291 (darwin_output_aligned_bss): Detect objc metadata and treat it
31292 appropriately.
31293 (darwin_asm_output_aligned_decl_common): Same.
31294 (darwin_asm_output_aligned_decl_local): Same.
31295 * config/darwin-sections.def: Updated for ABI v1 and v2.
31296 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
31297 compiling Objective-C code for the NeXT runtime, default to using
31298 ABI version 0 for 32-bit, and version 2 for 64-bit.
31299
31300 2011-02-17 Joseph Myers <joseph@codesourcery.com>
31301
31302 * common.opt (optimize_fast): New Variable.
31303 * opts.c (default_options_optimization): Use opts->x_optimize_fast
31304 instead of local variable ofast.
31305
31306 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
31307
31308 * doc/invoke.texi (fobjc-abi-version): Documented.
31309 (fobjc-nilcheck): Documented.
31310 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
31311 version.
31312
31313 2011-02-17 Joseph Myers <joseph@codesourcery.com>
31314
31315 PR driver/47390
31316 * common.opt (export-dynamic): New Driver option.
31317 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
31318
31319 2011-02-17 Joseph Myers <joseph@codesourcery.com>
31320
31321 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
31322
31323 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
31324 Jan Hubicka <jh@suse.cz>
31325
31326 PR debug/47106
31327 PR debug/47402
31328 * cfgexpand.c (account_used_vars_for_block): Remove.
31329 (estimated_stack_frame_size): Use referenced vars.
31330 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
31331 that were referenced in the original function. Test src_fn
31332 rather than cfun. Drop redundant get_var_ann.
31333 (setup_one_parameter): Drop redundant get_var_ann.
31334 (declare_return_variable): Likewise.
31335 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
31336 (copy_arguments_for_versioning): Drop redundant get_var_ann.
31337 * ipa-inline.c (compute_inline_parameters): Do not compute
31338 disregard_inline_limits here.
31339 (compute_inlinable_for_current, pass_inlinable): New.
31340 (pass_inline_parameters): Require PROP_referenced_vars.
31341 * cgraphunit.c (cgraph_process_new_functions): Don't run
31342 compute_inline_parameters explicitly unless function is in SSA form.
31343 (cgraph_analyze_function): Set .disregard_inline_limits.
31344 * tree-sra.c (convert_callers): Compute inliner parameters
31345 only for functions already in SSA form.
31346
31347 2011-02-17 Joseph Myers <joseph@codesourcery.com>
31348
31349 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
31350 -mlittle-endian-data.
31351
31352 2011-02-17 Joseph Myers <joseph@codesourcery.com>
31353
31354 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
31355 -mno-fpu, not -fpu and -no-fpu.
31356 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
31357 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
31358
31359 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
31360
31361 PR target/43653
31362 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
31363 input reload with PLUS RTX.
31364
31365 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31366
31367 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
31368 of InverseVar(MDMX).
31369
31370 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31371
31372 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
31373 --m4-340.
31374
31375 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31376
31377 * config/mn10300/mn10300.opt (mno-crt0): New.
31378
31379 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31380
31381 * config/m68k/uclinux.opt (static-libc): New Driver option.
31382
31383 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31384
31385 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
31386
31387 2011-02-16 Joseph Myers <joseph@codesourcery.com>
31388
31389 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
31390 %{muser-extend-enabled}.
31391
31392 2011-02-16 Richard Guenther <rguenther@suse.de>
31393
31394 PR tree-optimization/47738
31395 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
31396 the TODO from tree_predictive_commoning.
31397
31398 2011-02-15 Jeff Law <law@redhat.com>
31399
31400 Revert
31401 2011-01-25 Jeff Law <law@redhat.com>
31402
31403 PR rtl-optimization/37273
31404 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31405 handle them like argument loads from stack slots. Do not double
31406 count memory for memory constants and argument loads from stack slots.
31407
31408 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
31409
31410 PR target/47755
31411 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
31412 mode for vector constants. Remove code that checks for TImode.
31413
31414 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
31415
31416 PR debug/47106
31417 PR debug/47402
31418 * cgraph.h (compute_inline_parameters): Return void.
31419 * ipa-inline.c (compute_inline_parameters): Adjust.
31420
31421 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
31422
31423 PR debug/47106
31424 PR debug/47402
31425 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
31426 rather than decl.
31427 * cfgexpand.c (estimated_stack_frame_size): Likewise.
31428 * ipa-inline.c (compute_inline_parameters): Adjust.
31429
31430 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
31431
31432 PR debug/47106
31433 PR debug/47402
31434 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
31435 Adjust all users. Pass FN to...
31436 * tree-flow-inline.h (first_referenced_var): ... this. Add
31437 fn argument.
31438 * ipa-struct-reorg.c: Adjust.
31439 * tree-dfa.c: Adjust.
31440 * tree-into-ssa.c: Adjust.
31441 * tree-sra.c: Adjust.
31442 * tree-ssa-alias.c: Adjust.
31443 * tree-ssa-live.c: Adjust.
31444 * tree-ssa.c: Adjust.
31445 * tree-ssanames.c: Adjust.
31446 * tree-tailcall.c: Adjust.
31447
31448 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
31449
31450 PR debug/47106
31451 PR debug/47402
31452 * tree-flow.h (referenced_var_lookup): Add fn parameter.
31453 Adjust all callers.
31454 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
31455 * tree-flow-inline.h: Adjust.
31456 * gimple-pretty-print.c: Adjust.
31457 * tree-into-ssa.c: Adjust.
31458 * tree-ssa.c: Adjust.
31459 * cfgexpand.c: Adjust.
31460
31461 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
31462
31463 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
31464 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31465 (EXTRA_CONSTRAINT): Delete.
31466 * config/iq2000/constraints.md: New file.
31467 * config/iq2000/iq2000.md: Include it.
31468 (define_insn ""): Delete.
31469 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
31470 unsupported constraint letters from patterns.
31471 (call_value, call_value_internal1): Likewise.
31472 (call_value_multiple_internal1): Likewise.
31473
31474 2011-02-15 Nick Clifton <nickc@redhat.com>
31475
31476 * config/mn10300/mn10300.c: Include tm-constrs.h.
31477 (struct liw_data): New data structure describing an LIW candidate
31478 instruction.
31479 (extract_bundle): Use struct liw_data. Allow small integer
31480 operands for some instructions.
31481 (check_liw_constraints): Use struct liw_data. Remove swapped
31482 parameter. Add comments describing the checks. Fix bug when
31483 assigning the source of liw1 to the source of liw2.
31484 (liw_candidate): Delete. Code moved into extract_bundle.
31485 (mn10300_bundle_liw): Use struct liw_data. Check constraints
31486 before swapping.
31487 * config/mn10300/predicates.md (liw_operand): New predicate.
31488 Allows registers and small integer constants.
31489 * config/mn10300/constraints.md (O): New constraint. Accetps
31490 integers in the range -8 to +7 inclusive.
31491 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
31492 for moving a small integer into a register. Give this alternative
31493 LIW attributes.
31494 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
31495 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
31496 using the J,K,L and M constraints,
31497 (liw): Remove SI mode on second operands to allow for HI and QI
31498 mode values.
31499 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
31500 instruction.
31501
31502 2011-02-15 Richard Guenther <rguenther@suse.de>
31503
31504 PR tree-optimization/47743
31505 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
31506 for a non-type-compatible VN lookup bail out.
31507
31508 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
31509
31510 * config/fr30/constraints.md: New file.
31511 * config/fr30/fr30.md: Include it.
31512 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
31513 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31514 (EXTRA_CONSTRAINT): Delete.
31515
31516 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
31517
31518 * config/frv/constraints.md: New file.
31519 * config/frv/predicates.md: Include it.
31520 * config/frv/frv.c (reg_class_from_letter): Delete.
31521 (frv_option_override): Don't initialize it.
31522 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
31523 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
31524 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
31525 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31526 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
31527 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31528 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
31529 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
31530 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
31531 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
31532 (REG_CLASS_FROM_CONSTRAINT): Delete.
31533
31534 2011-02-15 Jakub Jelinek <jakub@redhat.com>
31535
31536 PR middle-end/47581
31537 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
31538 if frame size is 0 in a leaf function.
31539
31540 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31541
31542 PR pch/14940
31543 * config/alpha/host-osf.c: New file.
31544 * config/alpha/x-osf: New file.
31545 * config.host (alpha*-dec-osf*): Use it.
31546
31547 2011-02-14 Anatoly Sokolov <aesok@post.ru>
31548
31549 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31550 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
31551 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
31552 (rx_mode_dependent_address_p): ...this. Make static. Change argument
31553 type to const_rtx.
31554 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31555
31556 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
31557
31558 * config/stormy16/constraints.md: New file.
31559 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
31560 Use satisfies_constraint_Q and satisfies_constraint_R.
31561 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
31562 Delete.
31563 (xstormy16_legitiamte_address_p): Declare.
31564 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
31565 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31566 (EXTRA_CONSTRAINT): Delete.
31567 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
31568 Un-staticize.
31569 (xstormy16_extra_constraint_p): Delete.
31570
31571 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
31572
31573 PR tree-optimization/46494
31574 * loop-unroll.c (split_edge_and_insert): Adjust comment.
31575 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
31576 (pass_rtl_loop_done): Add TODO_verify_flow.
31577 * fwprop.c (pass_rtl_fwprop): Likewise.
31578 * modulo-sched.c (pass_sms): Likewise.
31579 * tree-ssa-dom.c (pass_dominator): Likewise.
31580 * tree-ssa-loop-ch.c (pass_ch): Likewise.
31581 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
31582 (pass_tree_loop_done): Likewise.
31583 * tree-ssa-pre.c (execute_pre): Likewise.
31584 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
31585 * tree-ssa-sink.c (pass_sink_code): Likewise.
31586 * tree-vrp.c (pass_vrp): Likewise.
31587
31588 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
31589
31590 * config/v850/constraints.md: New file.
31591 * config/v850/v850.md: Include it.
31592 * config/v850/predicates.md (reg_or_0_operand): Use
31593 satisfies_constraint_G.
31594 (special_symbolref_operand): Use satisfies_constraint_K.
31595 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
31596 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
31597 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
31598 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
31599 (EXTRA_CONSTRAINT): Delete.
31600 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
31601 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
31602 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
31603
31604 2011-02-14 Anatoly Sokolov <aesok@post.ru>
31605
31606 PR target/47696
31607 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
31608 description.
31609
31610 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
31611
31612 * config/mcore/constraints.md: New file.
31613 * config/mcore/mcore.md: Include it.
31614 * config/mcore/mcore.c (reg_class_from_letter): Delete.
31615 * config/mcore/mcore.h (reg_class_from_letter): Delete.
31616 (REG_CLASS_FROM_LETTER): Delete.
31617 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
31618 insn_const_int_ok_for_constraint.
31619 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
31620 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
31621 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31622 (EXTRA_CONSTRAINT): Delete.
31623
31624 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31625
31626 PR ada/41929
31627 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
31628 (IS_SIGHANDLER): Define.
31629 (sparc64_is_sighandler): New function, split off from
31630 sparc64_fallback_frame_state.
31631 (sparc_is_sighandler): New function, split off from
31632 sparc_fallback_frame_state.
31633 (sparc64_fallback_frame_state): Merge with ...
31634 (sparc_fallback_frame_state): ... this into ...
31635 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
31636 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
31637 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
31638 stack instead of hardcoded offsets.
31639
31640 2011-02-14 Andriy Gapon <avg@freebsd.org>
31641
31642 PR target/45808
31643 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
31644
31645 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31646
31647 * configure: Regenerate.
31648
31649 2011-02-12 Joseph Myers <joseph@codesourcery.com>
31650
31651 PR driver/45731
31652 * gcc.c (asm_options): Correct spec matching --target-help.
31653
31654 2011-02-12 Martin Jambor <mjambor@suse.cz>
31655
31656 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
31657 to gimple call error.
31658
31659 2011-02-12 Mike Stump <mikestump@comcast.net>
31660
31661 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
31662 comments in backslash regions.
31663
31664 2011-02-12 Mike Stump <mikestump@comcast.net>
31665 Jakub Jelinek <jakub@redhat.com>
31666 Iain Sandoe <iains@gcc.gnu.org>
31667
31668 PR target/47324
31669 * dwarf2out.c (output_cfa_loc): When required, apply the
31670 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
31671 (output_loc_sequence): Likewise.
31672 (output_loc_operands_raw): Likewise.
31673 (output_loc_sequence_raw): Likewise.
31674 (output_cfa_loc): Likewise.
31675 (output_loc_list): Suppress register number adjustment when
31676 calling output_loc_sequence()
31677 (output_die): Likewise.
31678
31679 2011-02-12 Anatoly Sokolov <aesok@post.ru>
31680
31681 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
31682 Remove macros.
31683 * config/xtensa/xtensa.c (xtensa_register_move_cost,
31684 xtensa_memory_move_cost): New functions.
31685 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
31686
31687 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
31688
31689 PR lto/47225
31690 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
31691 in the current directory.
31692 * configure: Rebuilt.
31693
31694 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
31695
31696 * config/darwin.c (darwin_override_options): Add a hunk missed
31697 from the commit of r168571. Trim comment line lengths and
31698 correct indents of the preceding block.
31699
31700 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
31701
31702 * gcc.c (driver_handle_option): Concatenate the argument to -F with
31703 the switch.
31704
31705 2011-02-11 Joseph Myers <joseph@codesourcery.com>
31706
31707 * common.opt (nostartfiles): New Driver option.
31708
31709 2011-02-11 Xinliang David Li <davidxl@google.com>
31710
31711 PR tree-optimization/47707
31712 * tree-chrec.c (convert_affine_scev): Keep type precision.
31713
31714 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
31715
31716 PR tree-optimization/47420
31717 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
31718
31719 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
31720
31721 PR rtl-optimization/47614
31722 * rtl.h (check_for_inc_dec): Declare.
31723 * dse.c (check_for_inc_dec): Externalize...
31724 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
31725 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
31726
31727 2011-02-11 Joseph Myers <joseph@codesourcery.com>
31728
31729 PR driver/47678
31730 * gcc.c (main): Do not compile inputs if there were errors in
31731 option handling.
31732 * opts-common.c (read_cmdline_option): Check for wrong language
31733 after other error checks.
31734
31735 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
31736
31737 * cgraph.c: Fix comment typos.
31738 * cgraph.h: Likewise.
31739 * cgraphunit.c: Likewise.
31740 * ipa-cp.c: Likewise.
31741 * ipa-inline.c: Likewise.
31742 * ipa-prop.c: Likewise.
31743 * ipa-pure-const.c: Likewise.
31744 * ipa-ref.c: Likewise.
31745 * ipa-reference.c: Likewise.
31746
31747 2011-02-11 Jakub Jelinek <jakub@redhat.com>
31748
31749 PR debug/47684
31750 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
31751
31752 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31753
31754 PR testsuite/47400
31755 * doc/sourcebuild.texi (Require Support): Document
31756 dg-require-ascii-locale.
31757
31758 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
31759
31760 * doc/lto.texi (Write summary): Fix missing parentheses.
31761
31762 2011-02-10 DJ Delorie <dj@redhat.com>
31763
31764 * config/m32c/m32c.c (m32c_option_override): Disable
31765 -fcombine-stack-adjustments until flag value tracking and compare
31766 optimization can be rewritten.
31767
31768 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
31769
31770 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
31771 PROCESSOR_POWER7.
31772 (PROCESSOR_DEFAULT64): Likewise.
31773
31774 2011-02-10 Richard Henderson <rth@redhat.com>
31775
31776 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
31777 change from 2011-02-03.
31778 * config/rx/rx.c (flags_from_code): Likewise.
31779 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
31780 is valid, n/pz otherwise.
31781 (rx_select_cc_mode): Return CCmode if Y is not zero.
31782
31783 2011-02-10 Richard Guenther <rguenther@suse.de>
31784
31785 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
31786
31787 2011-02-10 Richard Guenther <rguenther@suse.de>
31788
31789 PR tree-optimization/47677
31790 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
31791
31792 2011-02-10 Jakub Jelinek <jakub@redhat.com>
31793
31794 PR target/47665
31795 * combine.c (make_compound_operation): Only change shifts into
31796 multiplication for SCALAR_INT_MODE_P.
31797
31798 2011-02-10 Jie Zhang <jie@codesourcery.com>
31799
31800 PR testsuite/47622
31801 Revert
31802 2011-02-05 Jie Zhang <jie@codesourcery.com>
31803 PR debug/42631
31804 * web.c (entry_register): Don't clobber the number of the
31805 first uninitialized reference in used[].
31806
31807 2011-02-09 Richard Guenther <rguenther@suse.de>
31808
31809 PR tree-optimization/47664
31810 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
31811 all edges again.
31812
31813 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
31814
31815 PR target/46481
31816 PR target/47032
31817 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
31818 PROCESSOR_POWER7.
31819 (PROCESSOR_DEFAULT64): Same.
31820 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
31821
31822 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31823
31824 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
31825
31826 2011-02-09 Martin Jambor <mjambor@suse.cz>
31827
31828 PR middle-end/45505
31829 * tree-sra.c (struct access): New flags grp_scalar_read and
31830 grp_scalar_write. Changed description of assignment read and write
31831 flags.
31832 (dump_access): Dump new flags, reorder all of them.
31833 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
31834 to detect multiple scalar reads.
31835 (analyze_access_subtree): Use the new scalar read write flags instead
31836 of the old flags. Adjusted comments.
31837
31838 2011-02-08 DJ Delorie <dj@redhat.com>
31839
31840 PR target/47548
31841 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
31842 patterns.
31843
31844 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31845
31846 * config/m68k/uclinux.opt: New.
31847 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
31848
31849 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31850
31851 * config/cris/elf.opt (sim): New Driver option.
31852
31853 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31854
31855 * config/xtensa/elf.opt: New.
31856 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
31857
31858 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31859
31860 * config/vax/elf.opt: New.
31861 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
31862
31863 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31864
31865 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
31866
31867 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31868
31869 * config/gnu-user.opt: New.
31870 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
31871 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
31872 *-*-uclinux*): Use gnu-user.opt.
31873
31874 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
31875
31876 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
31877 * config/i386/gnu.h (CPP_SPEC): Likewise.
31878
31879 2011-02-08 Ian Lance Taylor <iant@google.com>
31880
31881 * common.opt (fcx-limited-range): Add SetByCombined flag.
31882 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
31883 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
31884 (fassociative-math, freciprocal-math): Likewise.
31885 (funsafe-math-optimizations): Likewise.
31886 * opth-gen.awk: Handle SetByCombined.
31887 * optc-gen.awk: Likewise.
31888 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
31889 (set_unsafe_math_optimizations_flags): Likewise.
31890 * doc/options.texi (Option properties): Document SetByCombined.
31891
31892 2011-02-08 Joseph Myers <joseph@codesourcery.com>
31893
31894 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
31895 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
31896 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
31897 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
31898 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
31899
31900 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
31901
31902 PR tree-optimization/46834
31903 PR tree-optimization/46994
31904 PR tree-optimization/46995
31905 * graphite-sese-to-poly.c (used_outside_reduction): New.
31906 (detect_commutative_reduction): Call used_outside_reduction.
31907 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
31908 translate_scalar_reduction_to_array only when at least one
31909 loop-phi/close-phi tuple has been detected.
31910
31911 2011-02-08 Richard Guenther <rguenther@suse.de>
31912
31913 PR middle-end/47639
31914 * tree-vect-generic.c (expand_vector_operations_1): Update
31915 stmts here ...
31916 (expand_vector_operations): ... not here. Cleanup EH info
31917 and the CFG if required.
31918
31919 2011-02-08 Richard Guenther <rguenther@suse.de>
31920
31921 PR tree-optimization/47641
31922 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
31923 require type compatibility.
31924
31925 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31926
31927 * gimple-low.c (lower_function_body): Don't remove the location of
31928 the return statement here.
31929 (lower_gimple_return): Do it here instead but only if the return
31930 statement is actually used twice.
31931
31932 2011-02-08 Richard Guenther <rguenther@suse.de>
31933
31934 PR tree-optimization/47632
31935 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
31936 unused up_to_stmt parameter, return whether cfg-cleanup is
31937 necessary, remove EH info properly.
31938 (forward_propagate_into_gimple_cond): Adjust caller.
31939 (forward_propagate_into_cond): Likewise.
31940 (forward_propagate_comparison): Likewise.
31941 (tree_ssa_forward_propagate_single_use_vars): Make
31942 forward_propagate_comparison case similar to the two others.
31943
31944 2011-02-08 Nick Clifton <nickc@redhat.com>
31945
31946 * config/mn10300/mn10300.opt (mliw): New command line option.
31947 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
31948 (liw_bundling): New automaton.
31949 (liw): New attribute.
31950 (liw_op): New attribute.
31951 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
31952 (movsi_internal): Add LIW attributes.
31953 (andsi3): Likewise.
31954 (iorsi3): Likewise.
31955 (xorsi3): Likewise.
31956 (addsi3): Separate register and immediate alternatives.
31957 Add LIW attributes.
31958 (subsi3): Likewise.
31959 (cmpsi): Likewise.
31960 (aslsi3): Likewise.
31961 (lshrsi3): Likewise.
31962 (ashrsi3): Likewise.
31963 (liw): New pattern.
31964 * config/mn10300/mn10300.c (liw_op_names): New
31965 (mn10300_print_operand): Handle 'W' operand descriptor.
31966 (extract_bundle): New function.
31967 (check_liw_constraints): New function.
31968 (liw_candidate): New function.
31969 (mn10300_bundle_liw): New function.
31970 (mn10300_reorg): New function.
31971 (TARGET_MACHINE_DEPENDENT_REORG): Define.
31972 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
31973 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
31974 __LIW__ or __NO_LIW__.
31975 * doc/invoke.texi: Describe the -mliw command line option.
31976
31977 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31978
31979 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
31980 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
31981 pthread_mutex_unlock): Remove.
31982 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
31983 * config/pa/t-pa64: Likewise.
31984 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
31985 shared libc if not linking against libpthread.
31986 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31987
31988 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
31989
31990 PR target/47558
31991 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
31992 on 10.6 and later to ensure that we always use the unwinder from
31993 the system. Only add -no_compact_unwind when tarteting darwin
31994 10.6 or later.
31995
31996 2011-02-07 Steve Ellcey <sje@cup.hp.com>
31997
31998 PR target/46997
31999 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
32000 (vec_interleave_lowv2sf): Ditto.
32001 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
32002 (vec_extract_oddv2sf): Ditto.
32003
32004 2011-02-07 Mike Stump <mikestump@comcast.net>
32005
32006 PR target/42333
32007 Add __ieee_divdc3 entry point.
32008 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
32009 entry point.
32010 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
32011 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
32012 * config/darwin.c (darwin_rename_builtins): Add.
32013 * config/darwin-protos.h (darwin_rename_builtins): Add.
32014
32015 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
32016
32017 PR target/47636
32018 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
32019 for the condition.
32020
32021 2011-02-07 Mike Stump <mikestump@comcast.net>
32022
32023 * config/darwin.opt (mmacosx-version-min): Update default OS version.
32024
32025 2011-02-07 Denis Chertykov <chertykov@gmail.com>
32026
32027 PR target/47534
32028 * config/avr/libgcc.S (exit): Move .endfunc
32029
32030 2011-02-07 Richard Guenther <rguenther@suse.de>
32031
32032 PR tree-optimization/47615
32033 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
32034 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
32035 (run_scc_vn): Initialize it.
32036 (visit_reference_op_load): Use it.
32037 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
32038
32039 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32040
32041 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
32042 DImode trapping arithmetic libfuncs.
32043
32044 2011-02-07 Richard Guenther <rguenther@suse.de>
32045
32046 PR tree-optimization/47621
32047 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
32048 two duplicates ...
32049 (execute_update_addresses_taken): ... here. Make it more
32050 conservative in what we accept.
32051
32052 2011-02-06 Joseph Myers <joseph@codesourcery.com>
32053
32054 * config/sparc/freebsd.h (ASM_SPEC): Define.
32055 * config/sparc/vxworks.h (ASM_SPEC): Define.
32056
32057 2011-02-06 Joseph Myers <joseph@codesourcery.com>
32058
32059 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32060
32061 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
32062
32063 * doc/invoke.texi: Remove reference to compiler internals from
32064 user documentation.
32065
32066 * reg-notes.def: Remove REG_VALUE_PROFILE.
32067 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
32068
32069 2011-02-05 Jakub Jelinek <jakub@redhat.com>
32070
32071 PR middle-end/47610
32072 * varasm.c (default_section_type_flags): If decl is NULL,
32073 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
32074
32075 2011-02-05 Jie Zhang <jie@codesourcery.com>
32076
32077 PR debug/42631
32078 * web.c (entry_register): Don't clobber the number of the
32079 first uninitialized reference in used[].
32080
32081 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
32082
32083 PR tree-optimization/46194
32084 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
32085 (build_classic_dist_vector_1): Do not represent classic distance
32086 vectors when the access functions are variating in different loops.
32087
32088 2011-02-04 Joseph Myers <joseph@codesourcery.com>
32089
32090 * config/mips/iris6.opt: New.
32091 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
32092
32093 2011-02-04 Richard Henderson <rth@redhat.com>
32094 Steve Ellcey <sje@cup.hp.com>
32095
32096 PR target/46997
32097 * config/ia64/predicates.md (mux1_brcst_element): New.
32098 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
32099 * config/ia64/ia64.c (ia64_unpack_assemble): New.
32100 (ia64_unpack_sign): New.
32101 (ia64_expand_unpack): Rewrite using new routines.
32102 (ia64_expand_widen_sum): Ditto.
32103 (ia64_expand_dot_prod_v8qi): Ditto.
32104 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
32105 routines, add endian check.
32106 (pmpy2_even): Rename from pmpy2_r, add endian check.
32107 (pmpy2_odd): Rename from pmpy2_l, add endian check.
32108 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
32109 (vec_widen_smult_hi_v4hi): Ditto.
32110 (vec_widen_umult_lo_v4hi): Ditto.
32111 (vec_widen_umult_hi_v4hi): Ditto.
32112 (mulv2si3): Change endian checks.
32113 (sdot_prodv4hi): Rewrite with new calls.
32114 (udot_prodv4hi): New.
32115 (vec_pack_ssat_v4hi): Add endian check.
32116 (vec_pack_usat_v4hi): Ditto.
32117 (vec_pack_ssat_v2si): Ditto.
32118 (max1_even): Rename from max1_r, add endian check.
32119 (max1_odd): Rename from max1_l, add endian check.
32120 (*mux1_rev): Format change.
32121 (*mux1_mix): Ditto.
32122 (*mux1_shuf): Ditto.
32123 (*mux1_alt): Ditto.
32124 (*mux1_brcst_v8qi): Use new predicate.
32125 (vec_extract_evenv8qi): Remove endian check.
32126 (vec_extract_oddv8qi): Ditto.
32127 (vec_interleave_lowv4hi): Format change.
32128 (vec_interleave_highv4hi): Ditto.
32129 (mix2_even): Rename from mix2_r, add endian check.
32130 (mix2_odd): Rename from mux2_l, add endian check.
32131 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
32132 (vec_extract_evenodd_helper): Format change.
32133 (vec_extract_evenv4hi): Remove endian check.
32134 (vec_extract_oddv4hi): Remove endian check.
32135 (vec_interleave_lowv2si): Format change.
32136 (vec_interleave_highv2si): Format change.
32137 (vec_initv2si): Remove endian check.
32138 (vecinit_v2si): Add endian check.
32139 (reduc_splus_v2sf): Add endian check.
32140 (reduc_smax_v2sf): Ditto.
32141 (reduc_smin_v2sf): Ditto.
32142 (vec_initv2sf): Remove endian check.
32143 (fpack): Add endian check.
32144 (fswap): Add endian check.
32145 (vec_interleave_highv2sf): Add endian check.
32146 (vec_interleave_lowv2sf): Add endian check.
32147 (fmix_lr): Add endian check.
32148 (vec_setv2sf): Format change.
32149 (*vec_extractv2sf_0_be): Use shift to extract operand.
32150 (*vec_extractv2sf_1_be): New.
32151 (vec_pack_trunc_v4hi): Add endian check.
32152 (vec_pack_trunc_v2si): Format change.
32153
32154 2011-02-04 Jakub Jelinek <jakub@redhat.com>
32155
32156 PR inline-asm/23200
32157 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
32158 do bb, locus and block comparison and disallow loads if it is not set.
32159 (stmt_is_replaceable_p): New function.
32160 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
32161 callers.
32162 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
32163 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
32164 SSA_NAME_DEF_STMT.
32165 * tree-flow.h (stmt_is_replaceable_p): New prototype.
32166
32167 2011-02-04 Joseph Myers <joseph@codesourcery.com>
32168
32169 * config/rs6000/xilinx.opt: New.
32170 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
32171
32172 2011-02-04 Joseph Myers <joseph@codesourcery.com>
32173
32174 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
32175
32176 2011-02-03 Anatoly Sokolov <aesok@post.ru>
32177
32178 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
32179 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32180 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
32181 secondary_reload_info, xtensa_secondary_reload): Remove.
32182 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
32183 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32184 (xtensa_preferred_reload_class): Make static. Change return and
32185 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
32186 Use CONST_DOUBLE_P predicate.
32187 (xtensa_preferred_output_reload_class): New function.
32188 (xtensa_secondary_reload): Make static.
32189
32190 2011-02-03 Joseph Myers <joseph@codesourcery.com>
32191
32192 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
32193 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
32194 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
32195
32196 2011-02-03 Jakub Jelinek <jakub@redhat.com>
32197
32198 PR middle-end/31490
32199 * output.h (SECTION_RELRO): Define.
32200 (SECTION_MACH_DEP): Adjust.
32201 (get_variable_section): New prototype.
32202 * varpool.c (varpool_finalize_named_section_flags): New function.
32203 (varpool_assemble_pending_decls): Call it.
32204 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
32205 * cgraphunit.c (cgraph_output_in_order): Call
32206 varpool_finalize_named_section_flags.
32207 * varasm.c (get_section): Allow section flags conflicts between
32208 relro and read-only sections if the section hasn't been declared yet.
32209 Set SECTION_OVERRIDE after diagnosing section type conflict.
32210 (get_variable_section): No longer static.
32211 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
32212 readonly sections that need relocations.
32213 (decl_readonly_section_1): New function.
32214 (decl_readonly_section): Use it.
32215
32216 Revert:
32217 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
32218 Steve Ellcey <sje@cup.hp.com>
32219
32220 PR middle-end/31490
32221 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
32222 if section attribute used.
32223
32224 2011-02-03 Jakub Jelinek <jakub@redhat.com>
32225
32226 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
32227 * config/darwin.c (SECTION_NO_ANCHOR): Define.
32228 (darwin_init_sections): Remove assertion.
32229
32230 2011-02-03 Nick Clifton <nickc@redhat.com>
32231
32232 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
32233 lt and ge.
32234 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
32235 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
32236 instead of "n" and "pz".
32237 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
32238 CC_FLAG_S.
32239
32240 2011-02-03 Jakub Jelinek <jakub@redhat.com>
32241
32242 PR target/47312
32243 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
32244 fma, expand FMA_EXPR as fma{,f,l} call.
32245
32246 PR lto/47274
32247 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
32248 copy them into a unsigned char variable and pass address of it to
32249 lto_output_data_stream.
32250
32251 PR target/47564
32252 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
32253 around backend_init_target and lang_dependent_init_target calls.
32254 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
32255 (verify_cgraph_node): Don't call set_cfun here. Use
32256 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
32257 Set error_found for incorrectly represented calls to thunks.
32258
32259 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
32260
32261 PR debug/43092
32262 PR rtl-optimization/43494
32263 * rtl.h (for_each_inc_dec_fn): New type.
32264 (for_each_inc_dec): Declare.
32265 * rtlanal.c (struct for_each_inc_dec_ops): New type.
32266 (for_each_inc_dec_find_inc_dec): New fn.
32267 (for_each_inc_dec_find_mem): New fn.
32268 (for_each_inc_dec): New fn.
32269 * dse.c (struct insn_size): Remove.
32270 (replace_inc_dec, replace_inc_dec_mem): Remove.
32271 (emit_inc_dec_insn_before): New fn.
32272 (check_for_inc_dec): Use it, along with for_each_inc_dec.
32273 (canon_address): Pass mem modes to cselib_lookup.
32274 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
32275 (cselib_lookup_from_insn): Likewise.
32276 (cselib_subst_to_values): Likewise.
32277 * cselib.c (find_slot_memmode): New var.
32278 (cselib_find_slot): New fn. Use it instead of
32279 htab_find_slot_with_hash everywhere.
32280 (entry_and_rtx_equal_p): Use find_slot_memmode.
32281 (autoinc_split): New fn.
32282 (rtx_equal_for_cselib_p): Rename and implement in terms of...
32283 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
32284 Deal with autoinc. Special-case recursion into MEMs.
32285 (cselib_hash_rtx): Likewise.
32286 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
32287 address and MEM modes.
32288 (cselib_subst_to_values): Add memmode, pass it on.
32289 Deal with autoinc.
32290 (cselib_lookup): Add memmode argument, pass it on.
32291 (cselib_lookup_from_insn): Add memmode.
32292 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
32293 (struct cselib_record_autoinc_data): New.
32294 (cselib_record_autoinc_cb): New fn.
32295 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
32296 mode to cselib_lookup. Reset autoinced REGs here instead of...
32297 (cselib_process_insn): ... here.
32298 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
32299 to cselib_lookup.
32300 (add_uses): Likewise, also to cselib_subst_to_values.
32301 (add_stores): Likewise.
32302 * sched-deps.c (add_insn_mem_dependence): Pass mode to
32303 cselib_subst_to_values.
32304 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
32305 * gcse.c (do_local_cprop): Adjusted.
32306 * postreload.c (reload_cse_simplify_set): Adjusted.
32307 (reload_cse_simplify_operands): Adjusted.
32308 * sel-sched-dump (debug_mem_addr_value): Pass mode.
32309
32310 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
32311
32312 PR tree-optimization/45122
32313 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
32314 unsafe assumptions when there's more than one loop exit.
32315
32316 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32317
32318 PR target/47272
32319 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
32320 Document using vector double with the load/store builtins, and
32321 that the load/store builtins always use Altivec instructions.
32322
32323 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
32324 to use altivec memory instructions, even on VSX.
32325 (vector_altivec_store_<mode>): Ditto.
32326
32327 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
32328 function.
32329
32330 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32331 V2DF, V2DI support to load/store overloaded builtins.
32332
32333 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
32334 altivec load/store builtins for V2DF/V2DI types.
32335
32336 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32337 set avoid indexed addresses on power6 if -maltivec.
32338 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
32339 vector_altivec_load/vector_altivec_store builtins.
32340 (altivec_expand_st_builtin): Ditto.
32341 (altivec_expand_builtin): Add VSX memory builtins.
32342 (rs6000_init_builtins): Add V2DI types to internal types.
32343 (altivec_init_builtins): Add support for V2DF/V2DI altivec
32344 load/store builtins.
32345 (rs6000_address_for_altivec): Insure memory address is appropriate
32346 for Altivec.
32347
32348 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
32349 vec_vsx_ld and vec_vsx_st.
32350 (vsx_store_<mode>): Ditto.
32351
32352 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
32353 variables to hold long long types for VSX vector memory builtins.
32354 (RS6000_BTI_unsigned_long_long): Ditto.
32355 (long_long_integer_type_internal_node): Ditti.
32356 (long_long_unsigned_type_internal_node): Ditti.
32357
32358 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
32359 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
32360 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
32361
32362 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
32363 short cuts.
32364 (vec_vsx_st): Ditto.
32365
32366 2011-02-02 Joseph Myers <joseph@codesourcery.com>
32367
32368 * config/pa/pa-hpux10.opt: New.
32369 * config/hpux11.opt (pthread): New Driver option.
32370 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
32371 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
32372
32373 2011-02-02 Joseph Myers <joseph@codesourcery.com>
32374
32375 * config/ia64/vms.opt: New.
32376 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
32377
32378 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
32379
32380 PR target/47580
32381 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
32382 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
32383 generator functions.
32384 (vsx_floatuns<VSi><mode>2): Ditto.
32385 (vsx_fix_trunc<mode><VSi>2): Ditto.
32386 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
32387
32388 2011-02-02 Joseph Myers <joseph@codesourcery.com>
32389
32390 * config/i386/djgpp.opt (posix): New Driver option.
32391
32392 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
32393
32394 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
32395 Move to the unsupported targets list.
32396
32397 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
32398
32399 PR rtl-optimization/47525
32400 * df-scan.c: Update copyright years.
32401 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
32402 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
32403
32404 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32405
32406 * config/i386/sysv4.h (TARGET_VERSION): Remove.
32407 (SUBTARGET_RETURN_IN_MEMORY): Remove.
32408 (ASM_OUTPUT_ASCII): Remove.
32409 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
32410
32411 2011-02-02 Jeff Law <law@redhat.com>
32412
32413 PR middle-end/47543
32414 * reload.c (find_reloads_address): Handle reg+d address where both
32415 components are invalid by reloading the entire address.
32416
32417 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
32418 Richard Guenther <rguenther@suse.de>
32419
32420 PR tree-optimization/40979
32421 PR bootstrap/47044
32422 * passes.c (init_optimization_passes): After LIM call copy_prop
32423 and DCE to clean up.
32424 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
32425
32426 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
32427
32428 PR tree-optimization/47576
32429 PR tree-optimization/47555
32430 * doc/invoke.texi (scev-max-expr-complexity): Documented.
32431 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32432 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
32433 * tree-scalar-evolution.c (follow_ssa_edge): Use
32434 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
32435
32436 2011-02-02 Richard Guenther <rguenther@suse.de>
32437
32438 PR tree-optimization/47566
32439 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
32440
32441 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
32442
32443 PR debug/47106
32444 PR debug/47402
32445 * tree-inline.c (declare_return_variable): Remove unused caller
32446 variable.
32447
32448 PR debug/47106
32449 PR debug/47402
32450 * tree-flow-inline.h (clear_is_used, is_used_p): New.
32451 * cfgexpand.c (account_used_vars_for_block): Use them.
32452 * tree-nrv.c (tree_nrv): Likewise.
32453 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
32454 (dump_scope_block): Likewise.
32455 (remove_unused_locals): Likewise.
32456
32457 PR debug/47106
32458 PR debug/47402
32459 * tree-inline.c (declare_return_variable): Add result decl to
32460 local decls only once.
32461 * gimple-low.c (record_vars_into): Mark newly-created variables
32462 as referenced.
32463
32464 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
32465
32466 PR debug/47498
32467 PR debug/47501
32468 PR debug/45136
32469 PR debug/45130
32470 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32471 debug insns.
32472 (no_real_insns_p, schedule_block, set_priorities): Drop special
32473 treatment of boundary debug insns.
32474 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32475 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
32476 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32477 (BOUNDARY_DEBUG_INSN_P): Likewise.
32478 (SCHEDULE_DEBUG_INSN_P): Likewise.
32479 * sched-rgn.c (init_ready_list): Drop special treatment of
32480 boundary debug insns.
32481 * final.c (rest_of_clean_state): Clear notes' BB.
32482
32483 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32484
32485 * config/openbsd.opt (assert=): New Driver option.
32486
32487 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32488
32489 * config/i386/nto.opt: New.
32490 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
32491
32492 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32493
32494 * config/i386/netware.opt: New.
32495 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
32496
32497 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32498
32499 * config/interix.opt (posix): New Driver option.
32500
32501 2011-02-01 DJ Delorie <dj@redhat.com>
32502
32503 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
32504
32505 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
32506 class for A0/A1.
32507
32508 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
32509
32510 PR tree-optimization/47561
32511 * toplev.c (process_options): Print the Graphite flags. Add
32512 flag_loop_flatten to the list of options requiring Graphite.
32513
32514 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32515
32516 * config/i386/cygming.opt (posix): New Driver option.
32517
32518 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32519
32520 * config/arm/vxworks.opt: New.
32521 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
32522
32523 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32524
32525 * config/alpha/elf.opt: New.
32526 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
32527 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
32528
32529 2011-02-01 Richard Guenther <rguenther@suse.de>
32530
32531 PR tree-optimization/47559
32532 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
32533 store-motion on references that can throw.
32534
32535 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
32536
32537 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
32538 * tree-pass.h (TDF_CSELIB): New macro.
32539 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
32540 cselib_lookup): Check for it rather than for TDF_DETAILS.
32541
32542 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
32543
32544 PR driver/47547
32545 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
32546 is HOST_BIT_BUCKET.
32547
32548 * opts.c (finish_options): Don't add x_aux_base_name if it is
32549 HOST_BIT_BUCKET.
32550
32551 2011-02-01 Richard Guenther <rguenther@suse.de>
32552
32553 PR tree-optimization/47555
32554 Revert
32555 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
32556
32557 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
32558
32559 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
32560
32561 PR gcc/46692
32562 * config/lm32/t-lm32: Add multilib for all CPU options.
32563
32564 2011-02-01 Richard Guenther <rguenther@suse.de>
32565
32566 PR tree-optimization/47541
32567 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
32568 sure to have a field at offset zero.
32569
32570 2011-01-31 Joseph Myers <joseph@codesourcery.com>
32571
32572 * config/arc/arc.opt (EB, EL): New Driver options.
32573
32574 2011-01-31 Joseph Myers <joseph@codesourcery.com>
32575
32576 * config/alpha/osf5.opt: New.
32577 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
32578
32579 2011-01-31 Joseph Myers <joseph@codesourcery.com>
32580
32581 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
32582
32583 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
32584
32585 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
32586 -floop-interchange.
32587 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
32588 is an alias of -floop-interchange and that it requires the
32589 Graphite infrastructure.
32590 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
32591 flag_loop_interchange based on the value of flag_tree_loop_linear.
32592
32593 2011-01-31 Jakub Jelinek <jakub@redhat.com>
32594 Richard Guenther <rguenther@suse.de>
32595
32596 PR tree-optimization/47538
32597 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
32598 type instead of r1type, except for comparisons. For right
32599 shifts and comparisons punt if there are mismatches in
32600 sizetype vs. non-sizetype types.
32601
32602 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32603
32604 * doc/sourcebuild.texi (Effective-Target Keywords): Document
32605 avx_runtime.
32606
32607 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32608
32609 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
32610 version number.
32611 * configure: Regenerate.
32612
32613 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32614
32615 * configure.ac (gcc_cv_ld_static_option): Define.
32616 (gcc_cv_ld_dynamic_option): Define.
32617 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
32618 instead.
32619 (HAVE_LD_STATIC_DYNAMIC): Update message.
32620 (LD_STATIC_OPTION): Define.
32621 (LD_DYNAMIC_OPTION): Define.
32622 * configure: Regenerate.
32623 * config.in: Regenerate.
32624 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
32625 HAVE_LD_STATIC_DYNAMIC]: Use them.
32626
32627 2011-01-31 Nick Clifton <nickc@redhat.com>
32628
32629 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
32630 registers inside interrupt handlers if the handler is not a leaf
32631 function.
32632
32633 2011-01-31 Nick Clifton <nickc@redhat.com>
32634
32635 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
32636 reg_renumber returning an INVALID_REGNUM.
32637
32638 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
32639
32640 PR libgcj/44341
32641 * doc/install.texi: Document host options discarded when cross
32642 configuring target libraries.
32643
32644 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
32645
32646 Reverted:
32647 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
32648 PR debug/45136
32649 PR debug/45130
32650 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32651 debug insns.
32652 (no_real_insns_p, schedule_block, set_priorities): Drop special
32653 treatment of boundary debug insns.
32654 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32655 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
32656 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32657 (BOUNDARY_DEBUG_INSN_P): Likewise.
32658 (SCHEDULE_DEBUG_INSN_P): Likewise.
32659 * sched-rgn.c (init_ready_list): Drop special treatment of
32660 boundary debug insns.
32661 * final.c (rest_of_clean-state): Clear notes' BB.
32662
32663 2011-01-31 Alan Modra <amodra@gmail.com>
32664
32665 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
32666 toc relative expressions as we do in print_operand_address.
32667
32668 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
32669
32670 * doc/extend.texi: Follow spelling conventions.
32671 * doc/invoke.texi: Fix a typo.
32672
32673 2011-01-30 Joseph Myers <joseph@codesourcery.com>
32674
32675 * config/hpux11.opt: New.
32676 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
32677 ia64*-*-hpux*): Use hpux11.opt.
32678
32679 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
32680
32681 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
32682 to tmake_file.
32683
32684 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
32685
32686 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
32687 support sites.
32688
32689 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
32690
32691 * doc/install.texi (Binaries): Remove outdated reference for
32692 Motorola 68HC11/68HC12 downloads.
32693
32694 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
32695
32696 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
32697 Drepper's paper.
32698
32699 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
32700
32701 PR bootstrap/47147
32702 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
32703 used by NetBSD.
32704
32705 2011-01-28 Ahmad Sharif <asharif@google.com>
32706
32707 * value-prof.c (check_counter): Corrected error message.
32708
32709 2011-01-29 Jie Zhang <jie@codesourcery.com>
32710
32711 * config/arm/arm.c (arm_legitimize_reload_address): New.
32712 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
32713 arm_legitimize_reload_address.
32714 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
32715
32716 2011-01-28 Ian Lance Taylor <iant@google.com>
32717
32718 * godump.c (go_define): Ignore macros whose definitions include
32719 two adjacent operands.
32720
32721 2011-01-28 Jakub Jelinek <jakub@redhat.com>
32722
32723 PR target/42894
32724 * varasm.c (force_const_mem): Store copy of x in desc->constant
32725 instead of x itself.
32726 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
32727 itself into REG_EQUAL note.
32728
32729 2011-01-28 Joseph Myers <joseph@codesourcery.com>
32730
32731 * config/freebsd.opt (posix, rdynamic): New Driver options.
32732
32733 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32734
32735 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
32736 -Bstatic/-Bdynamic.
32737 * configure: Regenerate.
32738
32739 2011-01-27 Joseph Myers <joseph@codesourcery.com>
32740
32741 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
32742 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
32743
32744 2011-01-27 Anatoly Sokolov <aesok@post.ru>
32745
32746 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
32747 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
32748 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
32749 (s390_preferred_reload_class): Make static. Change return and
32750 'rclass' argument type to reg_class_t.
32751
32752 2011-01-27 Jan Hubicka <jh@suse.cz>
32753
32754 PR middle-end/46949
32755 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
32756 (process_function_and_variable_attributes): Check defined weakrefs.
32757
32758 2011-01-27 Martin Jambor <mjambor@suse.cz>
32759
32760 PR tree-optimization/47228
32761 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
32762 build_ref_for_offset.
32763
32764 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32765
32766 * config/spu/spu-elf.h (ASM_SPEC): Remove.
32767
32768 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
32769
32770 PR rtl-optimization/46856
32771 * postreload.c (reload_combine_recognize_const_pattern): Do not
32772 separate cc0 setter and user on cc0 targets.
32773
32774 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
32775
32776 PR c/43082
32777 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
32778 passed a VOID_TYPE expression, immediately emit an error and
32779 return error_mark_node.
32780
32781 2011-01-26 Jeff Law <law@redhat.com>
32782
32783 PR rtl-optimization/47464
32784 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
32785 rather than may_trap_p as needed.
32786
32787 2011-01-26 DJ Delorie <dj@redhat.com>
32788
32789 PR rtl-optimization/46878
32790 * combine.c (insn_a_feeds_b): Check for the implicit cc0
32791 setter/user dependency as well.
32792
32793 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
32794
32795 PR rtl-optimization/44469
32796 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
32797 after removing trivially dead basic blocks.
32798
32799 2011-01-26 Joseph Myers <joseph@codesourcery.com>
32800
32801 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
32802 * config/frv/frv.h (LINK_SPEC): Likewise.
32803 * config/i386/netware.h (LINK_SPEC): Likewise.
32804 * config/m68k/linux.h (ASM_SPEC): Likewise.
32805 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
32806 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32807 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32808 * config/sparc/linux.h (ASM_SPEC): Likewise.
32809 * config/sparc/linux64.h (ASM_SPEC): Likewise.
32810 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32811
32812 2011-01-26 Joseph Myers <joseph@codesourcery.com>
32813
32814 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
32815 * config/frv/frv.h (ASM_SPEC): Likewise.
32816 * config/m68k/linux.h (ASM_SPEC): Likewise.
32817 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32818 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
32819 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32820 * config/sparc/linux.h (ASM_SPEC): Likewise.
32821 * config/sparc/linux64.h (ASM_SPEC): Likewise.
32822 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32823
32824 2011-01-26 Joseph Myers <joseph@codesourcery.com>
32825
32826 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
32827 * config/frv/frv.h (LINK_SPEC): Likewise.
32828 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
32829
32830 2011-01-26 Joseph Myers <joseph@codesourcery.com>
32831
32832 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
32833 * config/frv/frv.h (ASM_SPEC): Likewise.
32834 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
32835 * config/m68k/linux.h (ASM_SPEC): Likewise.
32836 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
32837 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
32838 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
32839 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
32840 * config/sparc/linux.h (ASM_SPEC): Likewise.
32841 * config/sparc/linux64.h (ASM_SPEC): Likewise.
32842 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
32843 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
32844
32845 2011-01-26 Steve Ellcey <sje@cup.hp.com>
32846
32847 PR target/46997
32848 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
32849 (*mux2): Ditto.
32850 (vec_extract_evenodd_help): Ditto.
32851 (vec_extract_evenv4hi): Ditto.
32852 (vec_extract_oddv4hi): Ditto.
32853 (vec_interleave_lowv2si): Ditto.
32854 (vec_interleave_highv2si): Ditto.
32855 (vec_extract_evenv2si): Ditto.
32856 (vec_extract_oddv2si: Ditto.
32857 (vec_pack_trunc_v2si): Ditto.
32858
32859 2011-01-22 Jan Hubicka <jh@suse.cz>
32860
32861 PR target/47237
32862 * cgraph.h (cgraph_local_info): New field can_change_signature.
32863 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
32864 signature can change.
32865 (ipcp_estimate_growth): Call sequence simplify only if calle signature
32866 can change.
32867 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
32868 (cgraph_function_versioning): We can not change signature of functions
32869 that don't allow that.
32870 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
32871 (lto_input_node): Likewise.
32872 * ipa-inline.c (compute_inline_parameters): Compute
32873 local.can_change_signature.
32874 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
32875 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
32876 functions that can not change signature.
32877 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
32878 init_cumulative_args): Do not use local calling conventions
32879 for functions that can not change signature.
32880
32881 2011-01-22 Jan Hubicka <jh@suse.cz>
32882
32883 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
32884
32885 2011-01-26 Richard Guenther <rguenther@suse.de>
32886
32887 PR tree-optimization/47190
32888 * cgraphunit.c (process_common_attributes): New function.
32889 (process_function_and_variable_attributes): Use it.
32890
32891 2011-01-26 Richard Guenther <rguenther@suse.de>
32892
32893 PR lto/47423
32894 * cgraphbuild.c (record_eh_tables): Record reference to personality
32895 function.
32896
32897 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
32898
32899 PR debug/45454
32900 * sel-sched.c (moveup_expr): Don't let debug insns prevent
32901 non-debug insns from moving up.
32902
32903 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
32904
32905 PR target/40125
32906 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
32907 t-dlldir{,-x} fragment for build and add it to tmake_file.
32908 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
32909 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
32910 * config/i386/t-dlldir: New file.
32911 (SHLIB_DLLDIR): Define.
32912 * config/i386/t-dlldir-x: New file.
32913 (SHLIB_DLLDIR): Define.
32914 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
32915 (SHLIB_INSTALL): Use it.
32916
32917 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
32918
32919 PR target/47246
32920 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
32921 lower bound of the allowed Thumb-2 coprocessor load/store
32922 index range to -256. Add explaining comment.
32923
32924 2011-01-25 Ian Lance Taylor <iant@google.com>
32925
32926 * godump.c (go_define): Improve lexing of macro expansion to only
32927 accept expressions which match Go spec.
32928
32929 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
32930
32931 PR c++/43601
32932 * tree.c (handle_dll_attribute): Handle it.
32933 * doc/extend.texi (@item dllexport): Mention it.
32934 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
32935
32936 2011-01-25 Ian Lance Taylor <iant@google.com>
32937
32938 PR tree-optimization/26854
32939 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
32940 (decl_jump_unsafe): Move higher in file, with no other change.
32941 (bind): Set has_jump_unsafe_decl if appropriate.
32942 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
32943 (check_earlier_gotos): Likewise.
32944 (c_check_switch_jump_warnings): Likewise.
32945
32946 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
32947
32948 * doc/invoke.texi (Warning Options): Add missing hyphen.
32949 (-fprofile-dir): Minor grammatical fixes.
32950 (-fbranch-probabilities): Likewise.
32951
32952 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
32953
32954 PR debug/45136
32955 PR debug/45130
32956 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
32957 debug insns.
32958 (no_real_insns_p, schedule_block, set_priorities): Drop special
32959 treatment of boundary debug insns.
32960 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
32961 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
32962 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
32963 (BOUNDARY_DEBUG_INSN_P): Likewise.
32964 (SCHEDULE_DEBUG_INSN_P): Likewise.
32965 * sched-rgn.c (init_ready_list): Drop special treatment of
32966 boundary debug insns.
32967 * final.c (rest_of_clean-state): Clear notes' BB.
32968
32969 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
32970
32971 * Makefile.in (LAMBDA_H): Removed.
32972 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
32973 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
32974 lambda-trans.o, and tree-loop-linear.o.
32975 (lto-symtab.o): Remove dependence on LAMBDA_H.
32976 (tree-loop-linear.o): Remove rule.
32977 (lambda-mat.o): Same.
32978 (lambda-trans.o): Same.
32979 (lambda-code.o): Same.
32980 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
32981 (tree-vect-slp.o): Same.
32982 * hwint.h (gcd): Moved here.
32983 (least_common_multiple): Same.
32984 * lambda-code.c: Removed.
32985 * lambda-mat.c: Removed.
32986 * lambda-trans.c: Removed.
32987 * lambda.h: Removed.
32988 * tree-loop-linear.c: Removed.
32989 * lto-symtab.c: Do not include lambda.h.
32990 * omega.c (gcd): Removed.
32991 * passes.c (init_optimization_passes): Remove pass_linear_transform.
32992 * tree-data-ref.c (print_lambda_vector): Moved here.
32993 (lambda_vector_copy): Same.
32994 (lambda_matrix_copy): Same.
32995 (lambda_matrix_id): Same.
32996 (lambda_vector_first_nz): Same.
32997 (lambda_matrix_row_add): Same.
32998 (lambda_matrix_row_exchange): Same.
32999 (lambda_vector_mult_const): Same.
33000 (lambda_vector_negate): Same.
33001 (lambda_matrix_row_negate): Same.
33002 (lambda_vector_equal): Same.
33003 (lambda_matrix_right_hermite): Same.
33004 * tree-data-ref.h: Do not include lambda.h.
33005 (lambda_vector): Moved here.
33006 (lambda_matrix): Same.
33007 (dependence_level): Same.
33008 (lambda_transform_legal_p): Removed declaration.
33009 (lambda_collect_parameters): Same.
33010 (lambda_compute_access_matrices): Same.
33011 (lambda_vector_gcd): Same.
33012 (lambda_vector_new): Same.
33013 (lambda_vector_clear): Same.
33014 (lambda_vector_lexico_pos): Same.
33015 (lambda_vector_zerop): Same.
33016 (lambda_matrix_new): Same.
33017 * tree-flow.h (least_common_multiple): Removed declaration.
33018 * tree-parloops.c (lambda_trans_matrix): Moved here.
33019 (LTM_MATRIX): Same.
33020 (LTM_ROWSIZE): Same.
33021 (LTM_COLSIZE): Same.
33022 (LTM_DENOMINATOR): Same.
33023 (lambda_trans_matrix_new): Same.
33024 (lambda_matrix_vector_mult): Same.
33025 (lambda_transform_legal_p): Same.
33026 * tree-pass.h (pass_linear_transform): Removed declaration.
33027 * tree-ssa-loop.c (tree_linear_transform): Removed.
33028 (gate_tree_linear_transform): Removed.
33029 (pass_linear_transform): Removed.
33030 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
33031 flag_loop_interchange.
33032
33033 2011-01-25 Jakub Jelinek <jakub@redhat.com>
33034
33035 PR tree-optimization/47265
33036 PR tree-optimization/47443
33037 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
33038 if name still has some uses.
33039
33040 2011-01-25 Martin Jambor <mjambor@suse.cz>
33041
33042 PR tree-optimization/47382
33043 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
33044 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
33045
33046 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
33047
33048 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
33049 sjlj_except_unwind_info.
33050
33051 2011-01-25 Richard Guenther <rguenther@suse.de>
33052
33053 PR tree-optimization/47426
33054 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
33055 visible functions results escape.
33056
33057 2011-01-25 Jakub Jelinek <jakub@redhat.com>
33058
33059 PR target/45701
33060 * config/arm/arm.c (any_sibcall_uses_r3): New function.
33061 (arm_get_frame_offsets): Use it.
33062
33063 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33064 Jakub Jelinek <jakub@redhat.com>
33065
33066 PR tree-optimization/47271
33067 * tree-if-conv.c (bb_postdominates_preds): New.
33068 (if_convertible_bb_p): Call bb_postdominates_preds.
33069 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
33070 (predicate_scalar_phi): Call bb_postdominates_preds.
33071
33072 2011-01-25 Nick Clifton <nickc@redhat.com>
33073
33074 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
33075 * config/rx/rx.c (rx_function_value): Likewise.
33076 (rx_promote_function_mode): Likewise.
33077 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
33078 in order to make it legitimate.
33079 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
33080 make sure that the first operand is the same as the result register.
33081 (addsi3_unspec): Delete.
33082 (subdi3): Do not accept immediate operands.
33083 (subdi3_internal): Likewise.
33084
33085 2011-01-25 Jeff Law <law@redhat.com>
33086
33087 PR rtl-optimization/37273
33088 * ira-costs.c (scan_one_insn): Detect constants living in memory and
33089 handle them like argument loads from stack slots. Do not double
33090 count memory for memory constants and argument loads from stack slots.
33091
33092 2011-01-25 Jakub Jelinek <jakub@redhat.com>
33093
33094 PR tree-optimization/47427
33095 PR tree-optimization/47428
33096 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
33097 coalesce if the new root var would be TREE_READONLY.
33098
33099 2011-01-25 Richard Guenther <rguenther@suse.de>
33100
33101 PR middle-end/47414
33102 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
33103 correct type for TBAA.
33104
33105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33106
33107 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
33108 (close_phi_written_to_memory): Call for_each_index with
33109 dr_indices_valid_in_loop.
33110
33111 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33112
33113 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
33114 when it is initialized.
33115
33116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33117
33118 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
33119 call to graphite_find_data_references_in_stmt.
33120 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
33121 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
33122 call to graphite_find_data_references_in_stmt.
33123 (analyze_drs_in_stmts): Same.
33124 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
33125 in which the scalar analysis of indices is performed.
33126 (create_data_ref): Same. Update call to dr_analyze_indices.
33127 (find_data_references_in_stmt): Update call to create_data_ref.
33128 (graphite_find_data_references_in_stmt): Same.
33129 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
33130 declaration.
33131 (create_data_ref): Same.
33132 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
33133 call to create_data_ref.
33134
33135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33136
33137 * graphite-sese-to-poly.c (build_poly_scop): Move
33138 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
33139
33140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33141
33142 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
33143 VAR_DECL, PARM_DECL, and RESULT_DECL.
33144
33145 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33146
33147 * graphite-dependences.c (reduction_dr_1): Allow several reductions
33148 in a reduction PBB.
33149 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
33150 that have already been marked as PBB_IS_REDUCTION.
33151
33152 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33153
33154 * graphite-scop-detection.c (same_close_phi_node): New.
33155 (remove_duplicate_close_phi): New.
33156 (make_close_phi_nodes_unique): New.
33157 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
33158
33159 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33160
33161 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
33162 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
33163 of both data references to be the same.
33164
33165 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33166
33167 * graphite-dependences.c (build_lexicographical_constraint): Remove
33168 the gdim parameter.
33169 (build_lexicographical_constraint): Adjust call to
33170 ppl_powerset_is_empty.
33171 (dependence_polyhedron): Same.
33172 (graphite_legal_transform_dr): Same.
33173 (graphite_carried_dependence_level_k): Same.
33174 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
33175 parameter.
33176 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
33177
33178 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33179
33180 * graphite-sese-to-poly.c
33181 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
33182 (close_phi_written_to_memory): New.
33183 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
33184 and unshare_expr.
33185
33186 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33187
33188 * doc/install.texi: Update the expected version number of PPL to 0.11.
33189 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
33190 #if PPL_VERSION_MINOR < 11.
33191
33192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33193
33194 * graphite-dependences.c: Include graphite-cloog-util.h.
33195 (new_poly_ddr): Inlined into dependence_polyhedron.
33196 (free_poly_ddr): Moved close by new_poly_ddr.
33197 (dependence_polyhedron_1): Renamed dependence_polyhedron.
33198 Early return NULL when ppl_powerset_is_empty returns true.
33199 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
33200 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
33201 (graphite_legal_transform_dr): Call new_poly_ddr.
33202 (graphite_carried_dependence_level_k): Same.
33203 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
33204 (dot_transformed_deps_stmt_1): Removed.
33205 (dot_deps_stmt_1): Call dot_deps_stmt_2.
33206 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
33207 (dot_deps_1): Call dot_deps_2.
33208 * Makefile.in (graphite-dependences.o): Add missing dependence on
33209 graphite-cloog-util.h.
33210
33211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33212
33213 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
33214 (build_lexicographical_constraint): Same.
33215 (dependence_polyhedron_1): Same.
33216 (graphite_legal_transform_dr): Same.
33217 (graphite_carried_dependence_level_k): Same.
33218 * graphite-ppl.c (ppl_powerset_is_empty): New.
33219 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
33220 * tree-data-ref.c (dump_data_reference): Print the basic block index.
33221
33222 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33223
33224 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
33225 the "a followed by b" relation and document it.
33226
33227 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33228
33229 * graphite-dependences.c (build_lexicographical_constraint): Stop the
33230 iteration when the bag of constraints is empty.
33231
33232 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33233
33234 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
33235
33236 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33237
33238 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
33239 nest and two loop depths as parameters.
33240 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
33241 lst_perfect_nestify.
33242
33243 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33244
33245 * graphite-dependences.c (print_pddr): Call
33246 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
33247
33248 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33249
33250 * graphite-ppl.c (debug_gmp_value): New.
33251 * graphite-ppl.h (debug_gmp_value): Declared.
33252
33253 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
33254
33255 * doc/install.texi: Document availability of cloog-0.16.
33256
33257 2011-01-25 Vladimir Kargov <kargov@gmail.com>
33258
33259 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
33260 invalid postdominance info.
33261
33262 2011-01-24 Jan Hubicka <jh@suse.cz>
33263
33264 PR c/21659
33265 * doc/extend.texi (weak pragma): Drop claim that it must
33266 appear before definition.
33267 * varasm.c (merge_weak, declare_weak): Only sanity check
33268 that DECL is not output at a time it is declared weak.
33269
33270 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
33271
33272 * machmode.def: Fixed comments.
33273
33274 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
33275
33276 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
33277
33278 2011-01-24 Paul Koning <ni1d@arrl.net>
33279
33280 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
33281 WORDS_BIG_ENDIAN.
33282
33283 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
33284
33285 PR target/46519
33286 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
33287 (block_info): Add scanned and prev.
33288 (move_or_delete_vzeroupper_2): Return if the basic block
33289 has been scanned and the upper 128bit state is unchanged
33290 from the last scan.
33291 (move_or_delete_vzeroupper_1): Return true if the exit
33292 state is changed.
33293 (move_or_delete_vzeroupper): Visit basic blocks using the
33294 work-list based algorithm based on vt_find_locations in
33295 var-tracking.c.
33296
33297 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
33298
33299 2011-01-24 Nick Clifton <nickc@redhat.com>
33300
33301 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
33302 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
33303 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
33304 then define __v850e1__.
33305 * doc/invoke.texi: Document -mv850es.
33306
33307 2011-01-24 Richard Henderson <rth@redhat.com>
33308
33309 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
33310 compound unordered comparisons.
33311 * config/rx/rx.c (rx_split_fp_compare): Remove.
33312 * config/rx/rx-protos.h: Update.
33313 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
33314 (cbranchsf4): Don't call rx_split_fp_compare.
33315 (*cbranchsf4): Use rx_split_cbranch.
33316 (*cmpsf): Don't accept "i" constraint.
33317 (*conditional_branch): Only valid after reload.
33318 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
33319
33320 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33321
33322 PR target/47385
33323 * config/rs6000/altivec.md (vector constant splitters): Add
33324 support for creating vector single precision constants if -mvsx is
33325 used and we would create the constant using Altivec primitives.
33326
33327 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
33328 Richard Sandiford <rdsandiford@googlemail.com>
33329
33330 PR rtl-optimization/47166
33331 * reload1.c (emit_reload_insns): Disable the spill_reg_store
33332 mechanism for PRE_MODIFY and POST_MODIFY.
33333 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
33334 reloadreg.
33335
33336 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
33337
33338 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
33339
33340 2011-01-22 Jan Hubicka <jh@suse.cz>
33341
33342 PR lto/47333
33343 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
33344
33345 2011-01-22 Jan Hubicka <jh@suse.cz>
33346
33347 PR tree-optimization/43884
33348 PR lto/44334
33349 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
33350 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
33351
33352 2011-01-22 Anatoly Sokolov <aesok@post.ru>
33353
33354 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
33355 * config/s390/s390.c (s390_register_move_cost,
33356 s390_memory_move_cost): New.
33357 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
33358
33359 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33360
33361 PR middle-end/47401
33362 * except.c (sjlj_assign_call_site_values): Move setting the
33363 crtl->uses_eh_lsda flag to ...
33364 (sjlj_mark_call_sites): ... here.
33365 (sjlj_emit_function_enter): Support NULL dispatch label.
33366 (sjlj_build_landing_pads): In a function with no landing pads
33367 that still has must-not-throw regions, generate code to register
33368 a personality function with empty LSDA.
33369
33370 2011-01-21 Richard Henderson <rth@redhat.com>
33371
33372 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
33373
33374 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
33375
33376 * compare-elim.c: New file.
33377 * Makefile.in (OBJS-common): Add it.
33378 (compare-elim.o): New.
33379 * common.opt (fcompare-elim): New.
33380 * opts.c (default_options_table): Add OPT_fcompare_elim.
33381 * tree-pass.h (pass_compare_elim_after_reload): New.
33382 * passes.c (init_optimization_passes): Add it.
33383 * recog.h: Protect against re-inclusion.
33384 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
33385 * doc/invoke.texi (-fcompare-elim): Document it.
33386 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
33387 * doc/tm.texi: Rebuild.
33388
33389 2011-01-22 Nick Clifton <nickc@redhat.com>
33390
33391 * config/rx/rx.md (cstoresf4): Pass comparison operator to
33392 rx_split_fp_compare.
33393
33394 2011-01-22 Nick Clifton <nickc@redhat.com>
33395
33396 * config/rx/rx.md (UNSPEC_CONST): New.
33397 (deallocate_and_return): Wrap the amount popped off the stack in
33398 an UNSPEC_CONST in order to stop it being rejected by
33399 -mmax-constant-size.
33400 (pop_and_return): Add a "(return)" rtx.
33401 (call): Drop the immediate operand.
33402 (call_internal): Likewise.
33403 (call_value): Likewise.
33404 (call_value_internal): Likewise.
33405 (sibcall_internal): Likewise.
33406 (sibcall_value_internal): Likewise.
33407 (sibcall): Likewise. Generate an explicit call using
33408 sibcall_internal.
33409 (sibcall_value): Likewise.
33410 (mov<>): FAIL if a constant operand is not legitimate.
33411 (addsi3_unpsec): New pattern.
33412
33413 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
33414 (ok_for_max_constant): New function.
33415 (gen_safe_add): New function.
33416 (rx_expand_prologue): Use gen_safe_add.
33417 (rx_expand_epilogue): Likewise.
33418 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
33419 UNSPEC CONSTs.
33420
33421 2011-01-21 Jeff Law <law@redhat.com>
33422
33423 PR tree-optimization/47053
33424 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
33425 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
33426 statements are deleted.
33427 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
33428 is nonempty, then purge dead edges and cleanup the CFG.
33429
33430 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
33431
33432 PR debug/47402
33433 Temporarily revert:
33434 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
33435 PR debug/47106
33436 * tree-dfa.c (create_var_ann): Mark variable as used.
33437
33438 2011-01-21 Jakub Jelinek <jakub@redhat.com>
33439
33440 PR middle-end/45566
33441 * except.c (convert_to_eh_region_ranges): Emit queued no-region
33442 notes from other section in hot/cold partitioning even if
33443 last_action is -3. Increment call_site_base.
33444
33445 PR rtl-optimization/47366
33446 * fwprop.c (forward_propagate_into): Return bool. If
33447 any changes are made, -fnon-call-exceptions is used and
33448 REG_EH_REGION note is present, call purge_dead_edges
33449 and return true if it purged anything.
33450 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
33451 any EH edges were purged.
33452
33453 2011-01-21 Jeff Law <law@redhat.com>
33454
33455 PR rtl-optimization/41619
33456 * caller-save.c (setup_save_areas): Break out code to determine
33457 which hard regs are live across calls by examining the reload chains
33458 so that it is always used.
33459 Eliminate code which checked REG_N_CALLS_CROSSED.
33460
33461 2011-01-21 Jakub Jelinek <jakub@redhat.com>
33462
33463 PR tree-optimization/47355
33464 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
33465 NOP has non-debug uses beyond PHIs in new_bb.
33466
33467 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
33468
33469 PR debug/47106
33470 * cfgexpand.c (account_used_vars_for_block): Only account vars
33471 that are annotated as used.
33472 (estimated_stack_frame_size): Don't set TREE_USED.
33473 * tree-dfa.c (create_var_ann): Mark variable as used.
33474
33475 2011-01-21 Richard Guenther <rguenther@suse.de>
33476
33477 PR middle-end/47395
33478 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
33479
33480 2011-01-21 Richard Guenther <rguenther@suse.de>
33481
33482 PR tree-optimization/47365
33483 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
33484 (vn_reference_lookup_pieces): Adjust.
33485 (vn_reference_lookup): Likewise.
33486 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
33487 (vn_reference_lookup_3): Only look through kills if in
33488 VN_WALKREWRITE mode.
33489 (vn_reference_lookup_pieces): Adjust.
33490 (vn_reference_lookup): Likewise.
33491 (visit_reference_op_load): Likewise.
33492 (visit_reference_op_store): Likewise.
33493 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
33494 (compute_avail): Likewise.
33495 (eliminate): Likewise.
33496
33497 2011-01-21 Jakub Jelinek <jakub@redhat.com>
33498
33499 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
33500 DECL_IGNORED_P non-reg vars if they are used.
33501
33502 PR tree-optimization/47391
33503 * varpool.c (const_value_known_p): Return false if
33504 decl is volatile.
33505
33506 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
33507
33508 PR bootstrap/47215
33509 * config/i386/i386.c (ix86_local_alignment): Handle
33510 case for va_list_type_node is nil.
33511 (ix86_canonical_va_list_type): Likewise.
33512
33513 2011-01-21 Alan Modra <amodra@gmail.com>
33514
33515 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
33516 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
33517
33518 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33519
33520 * config/arm/arm.md (define_attr type): Rename f_load
33521 and f_store to f_fpa_load and f_fpa_store. Update.
33522 (write_conflict): Deal with rename fallout.
33523 (*push_fp_multi): Likewise.
33524 * config/arm/fpa.md (f_load): Use f_fpa_load.
33525 (f_store): Use f_fpa_store.
33526 (*movsf_fpa): Likewise.
33527 (*movdf_fpa): Likewise.
33528 (*movxf_fpa): Likewise.
33529 (*thumb2_movsf_fpa): Likewise.
33530 (*thumb2_movdf_fpa): Likewise.
33531 (*thumb2_movxf_fpa): Likewise.
33532 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
33533 f_loadd and f_stored.
33534 (*thumb2_movdi_vfp): Likewise.
33535 (*thumb2_movsf_vfp): Fix attribute to f_loads.
33536 (*thumb2_movsi_vfp): Likewise.
33537 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
33538 Use f_loads instead of f_load.
33539 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
33540
33541 2011-01-20 Anatoly Sokolov <aesok@post.ru>
33542
33543 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33544 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
33545 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33546 (xtensa_mode_dependent_address_p): New function.
33547 (constantpool_address_p): Make static. Change return type to bool.
33548 Change argument type to const_rtx. Use CONST_INT_P predicate.
33549
33550 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
33551
33552 PR debug/46583
33553 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
33554
33555 2011-01-20 Jakub Jelinek <jakub@redhat.com>
33556
33557 PR debug/47283
33558 * cfgexpand.c (expand_debug_expr): Instead of generating
33559 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
33560 etc. handling.
33561
33562 2011-01-20 Richard Guenther <rguenther@suse.de>
33563
33564 PR middle-end/47370
33565 * tree-inline.c (remap_gimple_op_r): Recurse manually for
33566 the pointer operand of MEM_REFs.
33567
33568 2011-01-20 Jakub Jelinek <jakub@redhat.com>
33569
33570 PR tree-optimization/46130
33571 * ipa-split.c (consider_split): If return_bb contains non-virtual
33572 PHIs other than for retval or if split_function would not adjust it,
33573 refuse to split.
33574
33575 2011-01-20 Richard Guenther <rguenther@suse.de>
33576
33577 PR tree-optimization/47167
33578 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
33579 Revert previous change, only avoid enumeral type changes.
33580
33581 2011-01-19 Mike Stump <mikestump@comcast.net>
33582
33583 * doc/tm.texi.in (BRANCH_COST): Englishify.
33584 * doc/tm.texi (BRANCH_COST): Likewise.
33585
33586 2011-01-19 Dodji Seketeli <dodji@redhat.com>
33587
33588 PR c++/47291
33589 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
33590 (gen_scheduled_generic_parms_dies): New functions.
33591 (gen_struct_or_union_type_die): Schedule template parameters DIEs
33592 generation for the end of CU compilation.
33593 (dwarf2out_finish): Generate template parameters DIEs here.
33594
33595 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
33596
33597 PR debug/46240
33598 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
33599 debug bind stmt on merge edges.
33600
33601 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
33602
33603 PR debug/47079
33604 PR debug/46724
33605 * function.c (instantiate_expr): Instantiate incoming rtl of
33606 implicit arguments, and recurse on VALUE_EXPRs.
33607 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
33608 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
33609
33610 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
33611
33612 * c-parser.c (c_parser_for_statement): Initialize
33613 collection_expression.
33614
33615 2011-01-19 Joseph Myers <joseph@codesourcery.com>
33616
33617 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
33618
33619 2011-01-19 Joseph Myers <joseph@codesourcery.com>
33620
33621 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
33622 (LINK_SHLIB_SPEC): Don't use %(link_path).
33623 (SUBTARGET_EXTRA_SPECS): Remove link_path.
33624
33625 2011-01-19 Joseph Myers <joseph@codesourcery.com>
33626
33627 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
33628 (NO_SHARED_LIB_SUPPORT): Remove.
33629 (LINK_SHLIB_SPEC): Remove one conditional definition.
33630
33631 2011-01-19 Joseph Myers <joseph@codesourcery.com>
33632
33633 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
33634 %{call_shared}.
33635 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
33636 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
33637 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
33638 %{call_shared} and conditionals on these options not being passed.
33639 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
33640 %{call_shared}.
33641
33642 2011-01-19 Jakub Jelinek <jakub@redhat.com>
33643
33644 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
33645 simplify.
33646
33647 * ipa-split.c: Spelling fixes.
33648
33649 2011-01-19 Richard Henderson <rth@redhat.com>
33650
33651 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
33652 (*mulsi3): Likewise.
33653
33654 * longlong.h [__mn10300__] (count_leading_zeros): New.
33655 [__mn10300__] (umul_ppmm, smul_ppmm): New.
33656 [__mn10300__] (add_ssaaaa, subddmmss): New.
33657 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
33658 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
33659
33660 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33661
33662 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
33663
33664 2011-01-19 Richard Henderson <rth@redhat.com>
33665
33666 * config/mn10300/mn10300.md (addsi3_flags): New.
33667 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
33668 (subsi3_flags, subc_internal, subdi3): New.
33669 (subdi3_internal, *subdi3_degenerate): New.
33670 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
33671
33672 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
33673 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
33674 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
33675 * config/mn10300/mn10300-protos.h: Update.
33676 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
33677 (return_ret): Likewise. Rename from return_internal_regs.
33678 (return_internal): Remove.
33679
33680 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
33681 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
33682 (mn10300_legitimate_constant_p): Likewise.
33683 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
33684 (mn10300_frame_size): New.
33685 (mn10300_expand_prologue): Use it.
33686 (mn10300_expand_epilogue): Likewise.
33687 (mn10300_initial_offset): Likewise.
33688 * config/mn10300/mn10300-protos.h: Update.
33689 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
33690 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
33691 (prologue, epilogue, return_internal): Tidy output code.
33692 (mn10300_store_multiple_operation, return): Likewise.
33693 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
33694 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
33695 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
33696 (load_pic, am33_load_pic): New.
33697 (mn10300_load_pic0, mn10300_load_pic1): New.
33698
33699 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
33700 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
33701 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
33702 (cc_flags_for_mode, cc_flags_for_code): New.
33703 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
33704 overflow flag is not valid. Validate that the flags we need
33705 for the comparison are valid.
33706 (mn10300_output_cmp): Remove.
33707 (mn10300_output_add): New.
33708 (mn10300_select_cc_mode): Use cc_flags_for_code.
33709 (mn10300_split_cbranch): New.
33710 (mn10300_match_ccmode): New.
33711 (mn10300_split_and_operand_count): New.
33712 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
33713 to the function.
33714 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
33715 (addsi3): ... here. Use mn10300_output_add.
33716 (*addsi3_flags): New.
33717 (*am33_subsi3, *mn10300_subsi3): Merge...
33718 (subsi3): ... here. Use attribute isa.
33719 (*subsi3_flags): New.
33720 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
33721 when possible.
33722 (*am33_andsi3, *mn10300_andsi3): Merge...
33723 (andsi3): ... here.
33724 (*andsi3_flags): New.
33725 (andsi3 splitters): New.
33726 (*am33_iorsi3, *mn10300_iorsi3): Merge...
33727 (iorsi3): ... here.
33728 (*iorsi3_flags): New.
33729 (*am33_xorsi3, *mn10300_xorsi3): Merge...
33730 (xorsi3): ... here.
33731 (*xorsi3_flags): New.
33732 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
33733 (one_cmplsi2): ... here.
33734 (*one_cmplsi2_flags): New.
33735 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
33736 instead of "dax" in constraints. Use mn10300_split_cbranch.
33737 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
33738 use matching constraints to eliminate a self-comparison.
33739 (*integer_conditional_branch): Rename from integer_conditional_branch.
33740 Use int_mode_flags to match CC_REG.
33741 (*cbranchsi4_btst, *btstsi): New.
33742 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
33743 mn10300_split_cbranch.
33744 (*am33_cmpsf): Rename from am33_cmpsf.
33745 (*float_conditional_branch): Rename from float_conditional_branch.
33746 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
33747 (zero_extendqisi2): ... here.
33748 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
33749 (zero_extendhisi2): ... here.
33750 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
33751 (extendqisi2): ... here.
33752 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
33753 (extendhisi2): ... here.
33754 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
33755 (ashlsi3): ... here.
33756 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
33757 (lshrsi3): ... here.
33758 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
33759 (ashrsi3): ... here.
33760 (consecutive add peephole): Remove.
33761 * config/mn10300/predicates.md (label_ref_operand): New.
33762 (int_mode_flags): New.
33763 (CCZN_comparison_operator): New.
33764
33765 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
33766 (throughput_42_latency_43): New reservation.
33767 (mulsidi3, umulsidi3): New expanders.
33768 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
33769 the MDR register to allocation; separately allocate the low and
33770 high parts of the DImode result.
33771 (umulsidi3_internal): Similarly.
33772 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
33773 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
33774 (udivsi3, umodsi3): Remove.
33775 (udivmodsi4, divmodsi4): New expanders.
33776 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
33777 (*divmodsi4): Simiarly.
33778 (ext_internal): New.
33779
33780 * config/mn10300/constraints.md ("z"): New constraint.
33781 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
33782 (FIXED_REGISTERS): Don't fix MDR.
33783 (CALL_USED_REGSITERS): Reformat nicely.
33784 (REG_ALLOC_ORDER): Add MDR.
33785 (enum regclass): Add MDR_REGS.
33786 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
33787 (IRA_COVER_CLASSES): Add MDR_REGS.
33788 (REGNO_REG_CLASS): Handle MDR_REG.
33789 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
33790 (mn10300_register_move_cost): Likewise.
33791 * config/mn10300/mn10300.md (MDR_REG): New.
33792 (*movsi_internal): Handle moves to/from MDR_REGS.
33793
33794 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
33795 POST_MODIFY.
33796 (mn10300_secondary_reload): Tidy combination reload classes.
33797 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
33798 addresses for AM33. Allow symbolic offsets for reg+imm.
33799 (mn10300_regno_in_class_p): New.
33800 (mn10300_legitimize_reload_address): New.
33801 * config/mn10300/mn10300.h (enum reg_class): Remove
33802 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
33803 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
33804 SP_OR_GENERAL_REGS.
33805 (REG_CLASS_NAMES): Update to match.
33806 (REG_CLASS_CONTENTS): Likewise.
33807 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
33808 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
33809 (REGNO_IN_RANGE_P): Remove.
33810 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
33811 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
33812 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
33813 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
33814 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
33815 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
33816 (REGNO_GENERAL_P): New.
33817 (HAVE_POST_MODIFY_DISP): New.
33818 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
33819 (LEGITIMIZE_RELOAD_ADDRESS): New.
33820 * config/mn10300/mn10300-protos.h: Update.
33821
33822 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
33823 DATA_REGS for AM33 stack-pointer destination.
33824 (mn10300_preferred_output_reload_class): Likewise.
33825 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
33826 into a form appropriate for ...
33827 (TARGET_SECONDARY_RELOAD): New.
33828 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
33829 * config/mn10300/mn10300-protos.h: Update.
33830 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
33831 reload_insi; use the "A" constraint for the scratch; handle AM33
33832 moves of sp to non-address registers.
33833
33834 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
33835 (*movqi_internal): ... here.
33836 (*am33_movhi, *mn10300_movhi): Merge into...
33837 (*movhi_internal): ... here.
33838 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
33839 as the source/destination of moves from/to SP.
33840 (movsf): Only allow for AM33-2.
33841 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
33842 any integer constant constraint. Only allow for AM33-2. Tidy
33843 all of the alternative outputs.
33844 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
33845 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
33846 for MN103.
33847 (udivsi3, umodsi3): New patterns for MN103 only.
33848
33849 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
33850
33851 * doc/tm.texi.in: Spell out that a lack of register class unions
33852 can lead to ICEs.
33853 * doc/tm.texi: Regenerate.
33854
33855 2011-01-19 Jakub Jelinek <jakub@redhat.com>
33856
33857 PR rtl-optimization/47337
33858 * dce.c (check_argument_store): New function.
33859 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
33860
33861 PR tree-optimization/47290
33862 * tree-eh.c (infinite_empty_loop_p): New function.
33863 (cleanup_empty_eh): Use it.
33864
33865 2011-01-18 Steve Ellcey <sje@cup.hp.com>
33866
33867 PR target/46997
33868 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
33869 (a64_expand_widen_sum): Ditto.
33870 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
33871 (vec_extract_evenodd_help): Ditto.
33872 (vec_extract_evenv4hi): Ditto.
33873 (vec_extract_oddv4hi): Ditto.
33874 (vec_extract_evenv2si): Ditto.
33875 (vec_extract_oddv2si): Ditto.
33876 (vec_extract_evenv2sf): Ditto.
33877 (vec_extract_oddv2sf): Ditto.
33878 (vec_pack_trunc_v4hi: Ditto.
33879 (vec_pack_trunc_v2si): Ditto.
33880 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
33881 (vec_interleave_highv8qi): Ditto.
33882 (mix1_r): Ditto.
33883 (vec_extract_oddv8qi): Ditto.
33884 (vec_interleave_lowv4hi): Ditto.
33885 (vec_interleave_highv4hi): Ditto.
33886 (vec_interleave_lowv2si): Ditto.
33887 (vec_interleave_highv2si): Ditto.
33888
33889 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33890
33891 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
33892 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
33893 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
33894 (pa_c_mode_for_suffix): New.
33895 (TARGET_EXPAND_BUILTIN): Define.
33896 (TARGET_C_MODE_FOR_SUFFIX): Define.
33897 (pa_builtins): Define.
33898 (pa_init_builtins): Register __float128 type and init new support
33899 builtins.
33900 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
33901 * config/pa/quadlib.c (_U_Qfcopysign): New.
33902
33903 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
33904
33905 PR middle-end/46894
33906 * explow.c (allocate_dynamic_stack_space): Do not assume more than
33907 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
33908 are defined.
33909
33910 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33911
33912 PR tree-optimization/47179
33913 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
33914 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
33915
33916 2011-01-18 Richard Guenther <rguenther@suse.de>
33917
33918 PR rtl-optimization/47216
33919 * emit-rtl.c: Include tree-flow.h.
33920 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
33921 of replicating it with different semantics.
33922 * Makefile.in (emit-rtl.o): Adjust.
33923
33924 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33925
33926 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
33927 (cortex_a9_dp): Handle neon types correctly.
33928
33929 2011-01-18 Jakub Jelinek <jakub@redhat.com>
33930
33931 PR rtl-optimization/47299
33932 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
33933 subtarget. Use normal multiplication if both operands are constants.
33934 * expmed.c (expand_widening_mult): Don't try to optimize constant
33935 multiplication if op0 has VOIDmode. Convert op1 constant to mode
33936 before using it.
33937
33938 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33939
33940 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
33941 spacing after 'e.g.', typos, comma, hyphenation.
33942
33943 2011-01-17 Richard Henderson <rth@redhat.com>
33944
33945 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
33946 (rx_restricted_mem_operand): New.
33947 (rx_shift_operand): Use register_operand.
33948 (rx_source_operand, rx_compare_operand): Likewise.
33949 * config/rx/rx.md (addsi3_flags): New expander.
33950 (adddi3): Rewrite as expander.
33951 (adc_internal, *adc_flags, adddi3_internal): New patterns.
33952 (subsi3_flags): New expander.
33953 (subdi3): Rewrite as expander.
33954 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
33955
33956 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
33957 (rx_init_builtins): Remove sat builtin.
33958 (rx_expand_builtin): Likewise.
33959 * config/rx/rx.md (ssaddsi3): New.
33960 (*sat): Rename from sat. Represent the CC_REG input.
33961
33962 * config/rx/predicates.md (rshift_operator): New.
33963 * config/rx/rx.c (rx_expand_insv): Remove.
33964 * config/rx/rx-protos.h: Update.
33965 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
33966 operand to the canonical position.
33967 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
33968 (*bitclr, *bitclr_in_memory): Similarly.
33969 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
33970 (insv): Retain the zero_extract in the expansion.
33971
33972 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
33973 (bswaphi2, bitinvert, revw): Likewise.
33974
33975 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
33976 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
33977 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
33978 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
33979 (bitset, bitset_in_memory): Likewise.
33980 (bitinvert, bitinvert_in_memory): Likewise.
33981 (bitclr, bitclr_in_memory): Likewise.
33982 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
33983 (rx_strend, rx_cmpstrn): Likewise.
33984 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
33985 (bitop peep2 patterns): Remove.
33986
33987 * config/rx/rx.c (rx_match_ccmode): New.
33988 * config/rx/rx-protos.h: Update.
33989 * config/rx/rx.md (abssi2): Clobber, don't set flags.
33990 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
33991 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
33992 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
33993 (fix_truncsfsi2, floatsisf2): Likewise.
33994 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
33995 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
33996 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
33997 (*subsi3_flags, *xorsi3_flags): New.
33998
33999 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
34000
34001 * config/rx/rx.c (rx_print_operand): Remove workaround for
34002 unsplit comparison operations.
34003
34004 * config/rx/rx.md (movsicc): Split after reload.
34005 (*movsicc): Merge *movsieq and *movsine via match_operator.
34006 (*stcc): New pattern.
34007
34008 * config/rx/rx.c (rx_float_compare_mode): Remove.
34009 * config/rx/rx.h (rx_float_compare_mode): Remove.
34010 * config/rx/rx.md (cstoresi4): Split after reload.
34011 (*sccc): New pattern.
34012
34013 * config/rx/predicates.md (label_ref_operand): New.
34014 (rx_z_comparison_operator): New.
34015 (rx_zs_comparison_operator): New.
34016 (rx_fp_comparison_operator): New.
34017 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
34018 Validate that the flags are set properly for the comparison.
34019 (rx_gen_cond_branch_template): Remove.
34020 (rx_cc_modes_compatible): Remove.
34021 (mode_from_flags): New.
34022 (flags_from_code): Rename from flags_needed_for_conditional.
34023 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
34024 (rx_select_cc_mode): Likewise.
34025 (rx_split_fp_compare): New.
34026 (rx_split_cbranch): New.
34027 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
34028 (*cbranchsi4): Use match_operator and rx_split_cbranch.
34029 (*cbranchsf4): Similarly.
34030 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
34031 match_operator and rx_split_cbranch.
34032 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
34033 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
34034 (*cmpsi): Rename from cmpsi.
34035 (*tstsi): Rename from tstsi.
34036 (*cmpsf): Rename from cmpsf; use CC_Fmode.
34037 (*conditional_branch): Rename from conditional_branch.
34038 (*reveresed_conditional_branch): Remove.
34039 (b<code>): Remove expander.
34040 * config/rx/rx-protos.h: Update.
34041
34042 * config/rx/rx.c (rx_compare_redundant): Remove.
34043 * config/rx/rx.md (cmpsi): Don't use it.
34044 * config/rx/rx-protos.h: Update.
34045
34046 * config/rx/rx-modes.def (CC_F): New mode.
34047 * config/rx/rx.c (rx_select_cc_mode): New.
34048 * config/rx/rx.h (SELECT_CC_MODE): Use it.
34049 * config/rx/rx-protos.h: Update.
34050
34051 2011-01-17 Richard Henderson <rth@redhat.com>
34052
34053 * except.c (dump_eh_tree): Fix stray ; after for statement.
34054
34055 2011-01-17 Richard Guenther <rguenther@suse.de>
34056
34057 PR tree-optimization/47313
34058 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
34059 handling before copying the body. Properly deal with
34060 by-reference result in SSA form.
34061
34062 2011-01-17 Ian Lance Taylor <iant@google.com>
34063
34064 PR target/47219
34065 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
34066 (struct_value_alias_set): Don't define.
34067 (sparc_option_override): Don't set sparc_sr_alias_set and
34068 struct_value_alias_set.
34069 (save_or_restore_regs): Use gen_frame_mem rather than calling
34070 set_mem_alias_set.
34071 (sparc_struct_value_rtx): Likewise.
34072
34073 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
34074
34075 PR target/47318
34076 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
34077 (_mm_maskstore_pd): Likewise.
34078 (_mm_maskload_ps): Likewise.
34079 (_mm_maskstore_ps): Likewise.
34080 (_mm256_maskload_pd): Change mask to __m256i.
34081 (_mm256_maskstore_pd): Likewise.
34082 (_mm256_maskload_ps): Likewise.
34083 (_mm256_maskstore_ps): Likewise.
34084
34085 * config/i386/i386-builtin-types.def: Updated.
34086 (ix86_expand_special_args_builtin): Likewise.
34087
34088 * config/i386/i386.c (bdesc_special_args): Update
34089 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
34090 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
34091 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
34092 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
34093
34094 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
34095 Use <avxpermvecmode> on mask register.
34096 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
34097
34098 2011-01-17 Olivier Hainque <hainque@adacore.com>
34099 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34100 Eric Botcazou <ebotcazou@adacore.com>
34101
34102 PR target/46655
34103 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
34104 if <= USHRT_MAX in 32-bit mode.
34105
34106 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34107
34108 * doc/install.texi (Configuration, Specific): Wrap long
34109 lines in examples. Allow line wrapping in long options
34110 and URLs where beneficial for PDF output.
34111
34112 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
34113
34114 * config/mips/mips.c (mips_classify_symbol): Don't return
34115 SYMBOL_PC_RELATIVE for nonlocal labels.
34116
34117 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
34118
34119 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
34120
34121 2011-01-15 Jan Hubicka <jh@suse.cz>
34122
34123 PR tree-optimization/47276
34124 * ipa.c (function_and_variable_visibility): Do not try to mark alias
34125 declarations as needed.
34126
34127 2011-01-15 Martin Jambor <mjambor@suse.cz>
34128
34129 * common.opt (fdevirtualize): New flag.
34130 * doc/invoke.texi (Option Summary): Document it.
34131 * opts.c (default_options_table): Add devirtualize flag.
34132 * ipa-prop.c (detect_type_change): Return immediately if
34133 devirtualize flag is not set.
34134 (detect_type_change_ssa): Likewise.
34135 (compute_known_type_jump_func): Likewise.
34136 (ipa_analyze_virtual_call_uses): Likewise.
34137
34138 2011-01-14 Martin Jambor <mjambor@suse.cz>
34139
34140 PR tree-optimization/45934
34141 PR tree-optimization/46302
34142 * ipa-prop.c (type_change_info): New type.
34143 (stmt_may_be_vtbl_ptr_store): New function.
34144 (check_stmt_for_type_change): Likewise.
34145 (detect_type_change): Likewise.
34146 (detect_type_change_ssa): Likewise.
34147 (compute_complex_assign_jump_func): Check for dynamic type change.
34148 (compute_complex_ancestor_jump_func): Likewise.
34149 (compute_known_type_jump_func): Likewise.
34150 (compute_scalar_jump_functions): Likewise.
34151 (ipa_analyze_virtual_call_uses): Likewise.
34152 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
34153
34154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34155
34156 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
34157 * config/i386/i386.opt (msse5): New Alias.
34158
34159 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34160
34161 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34162 * config/sparc/linux64.h (CC1_SPEC): Likewise.
34163 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34164 * config/sparc/sparc.h (CC1_SPEC): Likewise.
34165
34166 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34167
34168 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
34169 -mcpu options.
34170 * config/sparc/linux64.h (CC1_SPEC): Likewise.
34171 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
34172 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
34173 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
34174 Likewise.
34175 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
34176
34177 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34178
34179 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
34180
34181 2011-01-14 Mike Stump <mikestump@comcast.net>
34182
34183 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
34184 * config/fr30/fr30.md: Likweise
34185 (movsi_push): Likewise.
34186 (movsi_pop): Likewise.
34187 (enter_func): Likewise.
34188 * config/moxie/moxie.md (movsi_push): Likewise.
34189 (movsi_pop): Likewise.
34190
34191 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34192
34193 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
34194 %{no_archive} %{exact_version}.
34195 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
34196 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
34197 %{no_archive} %{exact_version}.
34198 * config/mips/openbsd.h (LINK_SPEC): Likewise.
34199 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
34200 * config/mips/vxworks.h: Likewise.
34201
34202 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34203
34204 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
34205
34206 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34207
34208 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
34209 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
34210
34211 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34212
34213 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
34214 -nodefaultlib.
34215
34216 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34217
34218 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
34219 for mcpu not cpu.
34220 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
34221 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
34222 not cpu.
34223 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
34224 Don't handle -shlib.
34225
34226 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34227
34228 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
34229 (CC1_SPEC): Don't handle -profile.
34230
34231 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34232
34233 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
34234 * config/mips/mips.h (CC1_SPEC): Likewise.
34235
34236 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34237
34238 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
34239 * config/mips/mips.h (CC1_SPEC): Likewise.
34240
34241 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34242
34243 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
34244 * config/m32r/linux.h (LINK_SPEC): Likewise.
34245 * config/mips/linux.h (LINK_SPEC): Likewise.
34246 * config/mips/linux64.h (LINK_SPEC): Likewise.
34247 * config/sparc/linux.h (LINK_SPEC): Likewise.
34248 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
34249 LINK_SPEC): Likewise.
34250 * config/xtensa/linux.h (LINK_SPEC): Likewise.
34251
34252 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34253
34254 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
34255 %{version:-v}.
34256 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
34257
34258 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34259
34260 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
34261 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
34262
34263 2011-01-14 Joseph Myers <joseph@codesourcery.com>
34264
34265 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
34266
34267 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34268
34269 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
34270 supports -Bstatic/-Bdynamic.
34271 * configure: Regenerate.
34272
34273 2011-01-14 Jan Hubicka <jh@suse.cz>
34274 Jack Howarth <howarth@bromo.med.uc.edu>
34275
34276 PR target/46037
34277 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
34278 when checking debug_info_level. Test write_symbols instead of
34279 debug_hooks->var_location when setting flag_var_tracking_uninit.
34280
34281 2011-01-14 Richard Guenther <rguenther@suse.de>
34282
34283 PR tree-optimization/47179
34284 * target.def (ref_may_alias_errno): New target hook.
34285 * targhooks.h (default_ref_may_alias_errno): Declare.
34286 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
34287 (default_ref_may_alias_errno): New function.
34288 * target.h (struct ao_ref_s): Declare.
34289 * tree-ssa-alias.c: Include target.h.
34290 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
34291 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
34292 (targhooks.o): Likewise.
34293 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
34294 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
34295
34296 2011-01-14 Richard Guenther <rguenther@suse.de>
34297
34298 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
34299
34300 2011-01-14 Richard Guenther <rguenther@suse.de>
34301
34302 PR tree-optimization/47280
34303 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
34304 return CFG changes.
34305 (tree_ssa_forward_propagate_single_use_vars): Deal with
34306 CFG changes from associate_plusminus.
34307
34308 2011-01-14 Richard Guenther <rguenther@suse.de>
34309
34310 PR middle-end/47281
34311 Revert
34312 2011-01-11 Richard Guenther <rguenther@suse.de>
34313
34314 PR tree-optimization/46076
34315 * tree-ssa.c (useless_type_conversion_p): Conversions from
34316 unprototyped to empty argument list function types are useless.
34317
34318 2011-01-14 Richard Guenther <rguenther@suse.de>
34319
34320 PR tree-optimization/47286
34321 * tree-ssa-structalias.c (new_var_info): Register variables are global.
34322
34323 2011-01-14 Martin Jambor <mjambor@suse.cz>
34324
34325 PR middle-end/46823
34326 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
34327
34328 2011-01-13 Anatoly Sokolov <aesok@post.ru>
34329
34330 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
34331 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
34332 * config/xtensa/xtensa.c (xtensa_libcall_value,
34333 xtensa_function_value_regno_p): New functions.
34334 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34335
34336 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
34337
34338 PR c++/47213
34339 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
34340 PE specific hook.
34341 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
34342 New function prototype.
34343 * config/i386/winnt.c (i386_pe_assemble_visibility):
34344 Warn only if attribute was specified by user.
34345
34346 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34347
34348 PR target/47251
34349 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
34350 floating point.
34351 (floatunsdidf2_fcfidu): Ditto.
34352
34353 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34354
34355 * config/s390/s390.c (print_operand_address): Replace 'error' with
34356 'output_operand_lossage'.
34357 (print_operand): Likewise.
34358
34359 2011-01-13 Jeff Law <law@redhat.com>
34360
34361 PR rtl-optimization/39077
34362 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
34363 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
34364 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
34365 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
34366 * gcse.c (prune_insertions_deletions): New function.
34367 (compute_pre_data): Use it.
34368
34369 2011-01-13 Dodji Seketeli <dodji@redhat.com>
34370
34371 PR debug/PR46973
34372 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
34373 static function.
34374 (prune_unused_types_mark): Use it.
34375
34376 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
34377
34378 PR rtl-optimization/45352
34379 * sel-sched.c: Update copyright years.
34380 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
34381 in the advancing loop when we have issued issue_rate insns.
34382
34383 2011-01-12 Richard Henderson <rth@redhat.com>
34384
34385 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
34386 (TARGET_MD_ASM_CLOBBERS): New.
34387
34388 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
34389 (TARGET_DELEGITIMIZE_ADDRESS): New.
34390
34391 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
34392 (clzsi2, *bsch): New patterns.
34393
34394 * config/mn10300/mn10300.md (INT): New mode iterator.
34395 (*mov<INT>_clr): New pattern, and peep2 to generate it.
34396
34397 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
34398 flag_split_wide_types.
34399
34400 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
34401 (mn10300_trampoline_init): Rewrite without a template, an immediate
34402 load and a direct branch.
34403 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
34404
34405 2011-01-12 Anatoly Sokolov <aesok@post.ru>
34406
34407 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34408 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
34409 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
34410 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34411
34412 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
34413
34414 PR debug/47209
34415 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
34416 of type.
34417
34418 2011-01-12 Jan Hubicka <jh@suse.cz>
34419
34420 PR driver/47244
34421 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
34422 (PLUGIN_COND_CLOSE): New macro.
34423 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
34424
34425 2011-01-12 Richard Guenther <rguenther@suse.de>
34426
34427 PR lto/47259
34428 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
34429 register variables in a MEM_REF.
34430
34431 2011-01-12 Joseph Myers <joseph@codesourcery.com>
34432
34433 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
34434 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
34435 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
34436 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
34437 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
34438 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
34439 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
34440 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
34441 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
34442 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
34443 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
34444 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
34445 * config/gnu-user.h: New. Copied from linux.h.
34446 (LINUX_TARGET_STARTFILE_SPEC): Rename to
34447 GNU_USER_TARGET_STARTFILE_SPEC.
34448 (LINUX_TARGET_ENDFILE_SPEC): Rename to
34449 GNU_USER_TARGET_ENDFILE_SPEC.
34450 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
34451 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
34452 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
34453 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
34454 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
34455 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
34456 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
34457 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
34458 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
34459 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
34460 * config/arm/linux-eabi.h (CC1_SPEC): Use
34461 GNU_USER_TARGET_CC1_SPEC.
34462 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
34463 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
34464 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
34465 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
34466 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
34467 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
34468 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
34469 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
34470
34471 2011-01-12 Richard Guenther <rguenther@suse.de>
34472
34473 PR other/46946
34474 * doc/invoke.texi (ffast-math): Document it is turned on
34475 with -Ofast.
34476
34477 2011-01-12 Jan Hubicka <jh@suse.cz>
34478
34479 PR tree-optimization/47233
34480 * opts.c (common_handle_option): Disable ipa-reference with profile
34481 feedback.
34482
34483 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
34484
34485 * c-parser.c (c_parser_objc_at_property_declaration): Improved
34486 error message.
34487
34488 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
34489
34490 * c-parser.c (c_lex_one_token): Updated and reindented some
34491 comments. No changes in code.
34492
34493 2011-01-11 Ian Lance Taylor <iant@google.com>
34494
34495 * godump.c (go_output_var): Don't output the variable if there is
34496 already a type with the same name.
34497
34498 2011-01-11 Ian Lance Taylor <iant@google.com>
34499
34500 * godump.c (go_format_type): Don't generate float80.
34501
34502 2011-01-11 Richard Henderson <rth@redhat.com>
34503
34504 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
34505 declaration. Rewrite for both speed and size.
34506 (mn10300_address_cost_1): Remove.
34507 (mn10300_register_move_cost): New.
34508 (mn10300_memory_move_cost): New.
34509 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
34510 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
34511 extensions, shifts, BSWAP, CLZ.
34512 (mn10300_wide_const_load_uses_clr): Remove.
34513 (TARGET_REGISTER_MOVE_COST): New.
34514 (TARGET_MEMORY_MOVE_COST): New.
34515 * config/mn10300/mn10300-protos.h: Update.
34516 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
34517
34518 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
34519 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
34520 * config/mn10300/mn10300-protos.h: Update.
34521 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
34522 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
34523 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
34524 (*test_int_bitfield, *test_byte_bitfield): Remove.
34525 (*bit_test, *subreg_bit_test): Remove.
34526 * config/mn10300/predicates.md (const_8bit_operand): Remove.
34527
34528 * config/mn10300/constraints.md ("c"): Rename from "A".
34529 ("A", "D"): New constraint letters.
34530 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
34531 (fmssf4, fnmasf4, fnmssf4): Likewise.
34532
34533 * config/mn10300/mn10300.md (isa): New attribute.
34534 (enabled): New attribute.
34535
34536 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
34537 (abssf2, negsf2): Define only for hardware fp.
34538 (sqrtsf2): Reformat.
34539 (addsf3, subsf3, mulsf3): Merge expander and insn.
34540
34541 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
34542 (DEBUGGER_AUTO_OFFSET): Remove.
34543 (DEBUGGER_ARG_OFFSET): Remove.
34544
34545 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
34546 Emit register stores with the same offsets as the hardware.
34547 (mn10300_store_multiple_operation): Don't check that the register
34548 save offsets are monotonic.
34549 * config/mn10300/mn10300-protos.h: Update.
34550
34551 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
34552
34553 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
34554 in terms of the value on the stack, not the MDR register.
34555
34556 2011-01-11 Jan Hubicka <jh@suse.cz>
34557
34558 PR lto/45721
34559 PR lto/45375
34560 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
34561 (symbol_alias_set_destroy, symbol_alias_set_contains,
34562 propagate_aliases_backward): Declare.
34563 * lto-streamer-out.c (struct sets): New sturcture.
34564 (trivally_defined_alias): New function.
34565 (output_alias_pair_p): Rewrite.
34566 (output_unreferenced_globals): Fix output of alias pairs.
34567 (produce_symtab): Likewise.
34568 * ipa.c (function_and_variable_visibility): Set weak alias destination
34569 as needed in lto.
34570 * varasm.c (symbol_alias_set_t): Remove.
34571 (symbol_alias_set_destroy): Export.
34572 (propagate_aliases_forward, propagate_aliases_backward): New functions
34573 based on ...
34574 (compute_visible_aliases): ... this one; remove.
34575 (trivially_visible_alias): New
34576 (trivially_defined_alias): New.
34577 (remove_unreachable_alias_pairs): Rewrite.
34578 (finish_aliases_1): Reorganize code checking if alias is defined.
34579 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
34580 in LTO mode.
34581
34582 2011-01-11 Richard Guenther <rguenther@suse.de>
34583
34584 PR tree-optimization/46076
34585 * tree-ssa.c (useless_type_conversion_p): Conversions from
34586 unprototyped to empty argument list function types are useless.
34587
34588 2011-01-11 Richard Guenther <rguenther@suse.de>
34589
34590 PR middle-end/45235
34591 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
34592 volatile MEMs as MEM_READONLY_P.
34593
34594 2011-01-11 Richard Guenther <rguenther@suse.de>
34595
34596 PR tree-optimization/47239
34597 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
34598
34599 2011-01-11 Jeff Law <law@redhat.com>
34600
34601 PR tree-optimization/47086
34602 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
34603 IVs from statements that might throw.
34604
34605 2011-01-10 Jan Hubicka <jh@suse.cz>
34606
34607 PR lto/45375
34608 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
34609
34610 2011-01-10 Jan Hubicka <jh@suse.cz>
34611
34612 PR lto/45375
34613 * profile.c (read_profile_edge_counts): Ignore profile inconistency
34614 when correcting profile.
34615
34616 2011-01-10 Jan Hubicka <jh@suse.cz>
34617
34618 PR lto/46083
34619 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
34620 DECL_FINI_PRIORITY.
34621 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
34622 Restore DECL_FINI_PRIORITY.
34623
34624 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34625
34626 * doc/gimple.texi: Fix quoting of multi-word return values in
34627 @deftypefn statements. Ensure presence of return value. Wrap
34628 overlong @deftypefn lines.
34629 (is_gimple_operand, is_gimple_min_invariant_address): Remove
34630 descriptions of removed functions.
34631 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
34632 of multi-word return value in @deftypefn statement.
34633
34634 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34635
34636 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
34637 (Conditional Expressions, Logical Operators)
34638 (Statement and operand traversals): Do not indent smallexample
34639 code. Fix duplicate function argument in example.
34640
34641 2011-01-10 Jeff Law <law@redhat.com>
34642
34643 PR tree-optimization/47141
34644 * ipa-split.c (split_function): Handle case where we are
34645 returning a value and the return block has a virtual operand phi.
34646
34647 2011-01-10 Jan Hubicka <jh@suse.cz>
34648
34649 PR tree-optimization/47234
34650 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
34651 (pass_feedback_split_functions): Declare.
34652 * passes.c (init_optimization_passes): Add ipa-split as subpass of
34653 tree-profile.
34654 * ipa-split.c (gate_split_functions): Update comments; disable
34655 split-functions for profile_arc_flag and branch_probabilities.
34656 (gate_feedback_split_functions): New function.
34657 (execute_feedback_split_functions): New function.
34658 (pass_feedback_split_functions): New global var.
34659
34660 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
34661
34662 PR lto/46760
34663 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
34664 calling gimple_call_set_cannot_inline.
34665
34666 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
34667
34668 * config/darwin-sections.def: Remove unused section.
34669
34670 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
34671
34672 PR c++/47218
34673 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
34674
34675 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
34676
34677 PR objc/47232
34678 * c-parser.c (c_parser_declaration_or_fndef): Improved
34679 error message.
34680
34681 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
34682
34683 * config/i386/winnt.c (i386_pe_start_function): Make sure
34684 to switch back to function's section.
34685
34686 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
34687
34688 PR gcc/46902
34689 PR testsuite/46912
34690 * plugin.c: Move include of dlfcn.h from here...
34691 * system.h: ... to here.
34692
34693 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34694
34695 * doc/cpp.texi (C++ Named Operators): Fix markup for header
34696 file name.
34697 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
34698 two extra empty pages in PDF output.
34699
34700 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
34701
34702 PR objc/47078
34703 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
34704 for error recovery purposes behave as if it was not specified so
34705 that the default type is usd.
34706
34707 2011-01-07 Jan Hubicka <jh@suse.cz>
34708
34709 PR tree-optmization/46469
34710 * ipa.c (function_and_variable_visibility): Clear needed flags on
34711 nodes with external decls; handle weakrefs merging correctly.
34712
34713 2011-01-07 Joseph Myers <joseph@codesourcery.com>
34714
34715 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
34716 not false.
34717
34718 2011-01-07 Jan Hubicka <jh@suse.cz>
34719
34720 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
34721 and no longer claim that gold is required for linker plugin.
34722 * configure: Regenerate.
34723 * gcc.c (PLUGIN_COND): New macro.
34724 (LINK_COMMAND_SPEC): Use it.
34725 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
34726 * config.in (HAVE_LTO_PLUGIN): New.
34727 * configure.ac (--with-lto-plugin): New parameter; autodetect
34728 HAVE_LTO_PLUGIN.
34729
34730 2011-01-07 Jan Hubicka <jh@suse.cz>
34731
34732 PR tree-optimization/46367
34733 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
34734 when we can update original.
34735 (cgraph_mark_inline_edge): Sanity check.
34736 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
34737
34738 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34739
34740 * config/spu/spu.h (ASM_COMMENT_START): Define.
34741
34742 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
34743
34744 PR driver/42445
34745 * gcc.c (%>S): New.
34746 (SWITCH_KEEP_FOR_GCC): Likewise.
34747 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
34748 (do_spec_1): Handle "%>".
34749
34750 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
34751
34752 2011-01-07 Jakub Jelinek <jakub@redhat.com>
34753
34754 PR target/47201
34755 * config/i386/i386.c (ix86_delegitimize_address): If
34756 simplify_gen_subreg fails, return orig_x.
34757
34758 PR bootstrap/47187
34759 * value-prof.c (gimple_stringop_fixed_value): Handle
34760 lhs of the call properly.
34761
34762 2011-01-07 Jan Hubicka <jh@suse.cz>
34763
34764 PR lto/45375
34765 * lto-opt.c (lto_reissue_options): Set flag_shlib.
34766
34767 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
34768
34769 * target.def (function_switched_text_sections): New hook.
34770 * doc/tm.texi: Regenerated.
34771 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34772 * final.c (default_function_switched_text_sections): New.
34773 (final_scan_insn): Call function_switched_text_sections when a
34774 mid-function section change occurs.
34775 * output.h (default_function_switched_text_sections): Declare.
34776 * config/darwin-protos.h (darwin_function_switched_text_sections):
34777 Likewise.
34778 * config/darwin.c (darwin_function_switched_text_sections): New.
34779 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
34780
34781 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
34782
34783 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
34784 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
34785 the secondary code fragment when outputting for DWARF == 2.
34786
34787 2011-01-07 Anatoly Sokolov <aesok@post.ru>
34788
34789 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34790 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
34791 Remove.
34792 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
34793 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34794
34795 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
34796
34797 PR debug/46704
34798 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
34799 when it is not empty.
34800
34801 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
34802
34803 Bobcat Enablement
34804 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
34805 (case ${target}): Add btver1.
34806 * config/i386/driver-i386.c (host_detect_local_cpu): Let
34807 -march=native recognize btver1 processors.
34808 * config/i386/i386-c.c (ix86_target_macros_internal): Add
34809 btver1 def_and_undef
34810 * config/i386/i386.c (struct processor_costs btver1_cost): New
34811 btver1 cost table.
34812 (m_BTVER1): New definition.
34813 (m_AMD_MULTIPLE): Includes m_BTVER1.
34814 (initial_ix86_tune_features): Add btver1 tune.
34815 (processor_target_table): Add btver1 entry.
34816 (static const char *const cpu_names): Add btver1 entry.
34817 (software_prefetching_beneficial_p): Add btver1.
34818 (ix86_option_override_internal): Add btver1 instruction sets.
34819 (ix86_issue_rate): Add btver1.
34820 (ix86_adjust_cost): Add btver1.
34821 * config/i386/i386.h (TARGET_BTVER1): New definition.
34822 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
34823 (enum processor_type): Add PROCESSOR_BTVER1.
34824 * config/i386/i386.md (define_attr "cpu"): Add btver1.
34825
34826 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34827
34828 PR target/43309
34829 * config/i386/i386.c (legitimize_tls_address)
34830 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
34831 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
34832 (tls_initial_exec_64_sun): New pattern.
34833
34834 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34835
34836 * doc/invoke.texi (Overall Options): Improve wording and markup
34837 of the description of -wrapper.
34838
34839 2011-01-06 Joseph Myers <joseph@codesourcery.com>
34840
34841 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
34842 rdynamic, threads): New Driver options.
34843
34844 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34845
34846 PR target/38118
34847 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
34848 if coming from .tdata.
34849 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
34850
34851 2011-01-06 Jan Hubicka <jh@suse.cz>
34852
34853 PR lto/47188
34854 * collect2.c (main): Do not enable LTOmode when plugin is active.
34855
34856 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34857
34858 PR other/45915
34859 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
34860 --version output if supported.
34861 * configure: Regenerate.
34862
34863 2011-01-06 Joseph Myers <joseph@codesourcery.com>
34864
34865 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
34866 Driver options.
34867
34868 2011-01-06 Jakub Jelinek <jakub@redhat.com>
34869
34870 PR c/47150
34871 * c-convert.c (convert): When converting a complex expression
34872 other than COMPLEX_EXPR to a different complex type, ensure
34873 c_save_expr is called instead of save_expr, unless in_late_binary_op.
34874 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
34875 when converting COMPLEX_TYPE.
34876
34877 2011-01-06 Ira Rosen <irar@il.ibm.com>
34878
34879 PR tree-optimization/47139
34880 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
34881 only the last reduction value is used outside the loop. Update
34882 documentation.
34883
34884 2011-01-05 Joseph Myers <joseph@codesourcery.com>
34885
34886 * config/rtems.opt: New.
34887 * config.gcc (*-*-rtems*): Use rtems.opt.
34888
34889 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
34890
34891 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
34892 processors do not support 3DNow instructions.
34893
34894 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34895
34896 * config/spu/spu.c (spu_option_override): Set parameter
34897 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
34898
34899 2011-01-05 Jan Hubicka <jh@suse.cz>
34900
34901 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
34902 at the command line.
34903
34904 2011-01-05 Martin Jambor <mjambor@suse.cz>
34905
34906 PR lto/47162
34907 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
34908 deltas on streamed outgoing edges.
34909 (output_node_opt_summary): Output info for outgoing edges only when
34910 the node is in new parameter set.
34911 (output_cgraph_opt_summary): New parameter set, passed to the two
34912 aforementioned functions. Update its forward declaration and its
34913 callee too.
34914
34915 2011-01-05 Tom Tromey <tromey@redhat.com>
34916
34917 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
34918 operator to c_finish_omp_atomic.
34919 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
34920 (build_unary_op): Update.
34921 (build_modify_expr): Update.
34922 (build_asm_expr): Update.
34923
34924 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34925
34926 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
34927 newly inserted insns.
34928 (pad_bb): Likewise.
34929 (spu_emit_branch_hint): Likewise.
34930 (insert_hbrp_for_ilb_runout): Likewise.
34931 (spu_machine_dependent_reorg): Call df_finish_pass after
34932 schedule_insns returns.
34933
34934 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34935
34936 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
34937
34938 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
34939
34940 PR tree-optimization/47005
34941 * tree-sra.c (struct access): Add 'non_addressable' bit.
34942 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
34943 (decide_one_param_reduction): Return 0 if the parameter is passed by
34944 reference and one of the accesses in the group is non_addressable.
34945
34946 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
34947
34948 PR tree-optimization/47056
34949 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
34950 (mark_load): Likewise. Handle FUNCTION_DECL specially.
34951 (mark_store): Likewise. Pass STMT to ipa_record_reference.
34952
34953 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
34954
34955 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
34956 initializer. Skip view conversions from aggregate types.
34957
34958 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
34959
34960 PR bootstrap/47055
34961 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
34962
34963 2011-01-04 Philipp Thomas <pth@suse.de>
34964
34965 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
34966 obvious typo.
34967
34968 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34969
34970 * function.c (thread_prologue_and_epilogue_insns): Do not crash
34971 on empty epilogue sequences.
34972
34973 2011-01-04 Joseph Myers <joseph@codesourcery.com>
34974
34975 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
34976 non-static): New Driver options.
34977
34978 2011-01-04 Jie Zhang <jie@codesourcery.com>
34979
34980 PR driver/47137
34981 * gcc.c (default_compilers[]): Set combinable field to 0
34982 for all assembly languages.
34983
34984 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
34985
34986 * config/mips/loongson3a.md: New file.
34987 * config/mips/mips.md: Include loongson3a.md.
34988 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
34989 TUNE_LOONGSON_3A.
34990
34991 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
34992
34993 PR middle-end/47017
34994 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
34995 instead of convert_memory_address_addr_space on the base expression.
34996
34997 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34998
34999 * config/spu/spu.c (spu_option_override): Update error text
35000 for bad -march= / -mtune= values.
35001
35002 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35003
35004 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
35005 if branch-hint optimization will be performed.
35006
35007 2011-01-03 Jakub Jelinek <jakub@redhat.com>
35008
35009 PR tree-optimization/47148
35010 * ipa-split.c (split_function): Convert arguments to
35011 DECL_ARG_TYPE if possible.
35012
35013 PR tree-optimization/47155
35014 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
35015 when computing uns.
35016
35017 PR rtl-optimization/47157
35018 * combine.c (try_combine): If undobuf.other_insn becomes
35019 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
35020 and set *new_direct_jump_p too.
35021
35022 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
35023
35024 PR tree-optimization/47021
35025 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
35026
35027 2011-01-03 Jakub Jelinek <jakub@redhat.com>
35028
35029 * gcc.c (process_command): Update copyright notice dates.
35030 * gcov.c (print_version): Likewise.
35031 * gcov-dump.c (print_version): Likewise.
35032 * mips-tfile.c (main): Likewise.
35033 * mips-tdump.c (main): Likewise.
35034
35035 2011-01-03 Martin Jambor <mjambor@suse.cz>
35036
35037 PR tree-optimization/46801
35038 * tree-sra.c (type_internals_preclude_sra_p): Check whether
35039 aggregate fields start at byte boundary instead of the bit-field flag.
35040
35041 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
35042
35043 PR driver/47137
35044 * gcc.c (main): Revert revision 168407.
35045
35046 2011-01-03 Martin Jambor <mjambor@suse.cz>
35047
35048 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
35049
35050 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35051
35052 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
35053 vector optab to expand vector/scalar shift, update gimple to vector.
35054
35055 2011-01-03 Martin Jambor <mjambor@suse.cz>
35056
35057 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
35058 a thunk.
35059
35060 2011-01-03 Martin Jambor <mjambor@suse.cz>
35061
35062 PR tree-optimization/46984
35063 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
35064 HOST_WIDE_INT.
35065 (cgraph_create_indirect_edge): Fixed line length.
35066 (cgraph_indirect_call_info): Declare.
35067 (cgraph_make_edge_direct) Update declaration.
35068 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
35069 (cgraph_create_indirect_edge): Use it.
35070 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
35071 callees.
35072 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
35073 the new thunk_delta representation.
35074 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
35075 HOST_WIDE_INT.
35076 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
35077 (ipa_read_indirect_edge_info): Likewise.
35078 * lto-cgraph.c (output_edge_opt_summary): New function.
35079 (output_node_opt_summary): Call it on all outgoing edges.
35080 (input_edge_opt_summary): New function.
35081 (input_node_opt_summary): Call it on all outgoing edges.
35082
35083 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
35084
35085 PR driver/47137
35086 * gcc.c (main): Don't check have_o when settting combine_inputs.
35087
35088 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
35089
35090 * regrename.c: Add general comment describing the pass.
35091 (struct du_head): Remove 'length' field.
35092 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
35093 (regrename_optimize): Do not sort chains. Rework comments, add others.
35094 Force renaming to the preferred class (if any) in the first pass and do
35095 not consider registers that belong to it in the second pass.
35096 (create_new_chain): Do not set 'length' field.
35097 (scan_rtx_reg): Likewise.
35098
35099 2011-01-02 Jakub Jelinek <jakub@redhat.com>
35100
35101 PR tree-optimization/47140
35102 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
35103 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
35104 to bit_value_binop.
35105
35106 PR rtl-optimization/47028
35107 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
35108 parm_birth_insn instead of at the beginning of first bb.
35109
35110 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
35111
35112 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
35113 Remove the word "see" before "@pxref".
35114 * doc/rtl.texi: Remove the word "see" before "@pxref".
35115
35116 2011-01-01 Jan Hubicka <jh@suse.cz>
35117
35118 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
35119 memory.
35120
35121 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
35122
35123 PR target/38662
35124 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
35125
35126 \f
35127 Copyright (C) 2011 Free Software Foundation, Inc.
35128
35129 Copying and distribution of this file, with or without modification,
35130 are permitted in any medium without royalty provided the copyright
35131 notice and this notice are preserved.