OSDN Git Service

2009-04-15 Rafael Avila de Espindola <espindola@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
2
3         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
4         * init.c (build_vtbl_address): Remove call to assemble_external.
5
6 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7
8         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
9         output for other floating point modes.
10
11 2009-04-14  Diego Novillo  <dnovillo@google.com>
12
13         * diagnostic.c (diagnostic_report_diagnostic): Do not
14         warn about loaded plugins for DK_ERROR and DK_WARNING.
15         * c-decl.c (declspecs_add_type): Move call to
16         invoke_plugin_callbacks ...
17         * c-parser.c (c_parser_declspecs): ... here.
18         * plugin.c (dump_active_plugins): Tidy output.
19
20 2009-04-14  Diego Novillo  <dnovillo@google.com>
21             Le-Chun Wu  <lcwu@google.com>
22
23         * configure.ac: Add --enable-plugin support.
24         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
25         * Makefile.in (PLUGIN_H): Define.
26         Export ENABLE_PLUGIN and GMPINC to site.exp.
27         Add PLUGINLIBS to link command.
28         Add/modify dependencies for plugin.o and files including plugin.h.
29         (plugin.o): New.
30         * config.in: Regenerate.
31         
32         * opts.c (common_handle_option): Handle OPT_fplugin_ and
33         OPT_fplugin_arg_.
34
35 2009-04-14  Le-Chun Wu  <lcwu@google.com>
36
37         * tree-pass.h (register_one_dump_file): Add a prototype for
38         register_one_dump_file.
39         * toplev.c (compile_file): Call initialize_plugins.
40         (do_compile): Call invoke_plugin_callbacks.
41         (toplev_main): Call invoke_plugin_callbacks.
42         * common.opt: Add -fplugin= and -fplugin-arg-.
43         * gcc-plugin.h: New public header file for plugins to include.
44         * plugin.c: New source file.
45         * plugin.h: New internal header file.
46         * passes.c (register_one_dump_file): Make it external.
47         
48         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
49
50 2009-04-14  Diego Novillo  <dnovillo@google.com>
51
52         * doc/plugins.texi: New.
53         * doc/gccint.texi: Add reference to Plugins chapter.
54         * doc/invoke.texi: Document -fplugin and -fplugin-arg
55         * diagnostic.c (diagnostic_report_diagnostic): Warn about
56         loaded plugins, if any.
57         * timevar.def (TV_PLUGIN_INIT): Define.
58         (TV_PLUGIN_RUN): Define.
59         * plugin.c: Include timevar.h
60         (plugins_active_p): New.
61         (dump_active_plugins): New.
62         (debug_active_plugins): New.
63
64 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
65
66         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
67         library paths.
68         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
69
70 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
71
72         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
73         the same as a minus without a shift.
74
75 2009-04-14  Nick Clifton  <nickc@redhat.com>
76
77         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
78         comparisons with small integers will always produce a short
79         branch.
80
81 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
82
83         Merge:
84
85         2008-12-19  Diego Novillo  <dnovillo@google.com>
86
87                 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
88
89 2000-04-14  Richard Guenther  <rguenther@suse.de>
90
91         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
92         verification.
93         (verify_gimple_assign_binary): Likewise.  Handle shifts and
94         rotates correctly.
95         (verify_gimple_phi): Print the mismatched argument position.
96         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
97         Fix types.
98         (vect_update_init_of_dr): Likewise.
99         * matrix-reorg.c (transform_access_sites): Do what the
100         comment suggests.
101         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
102
103 2009-04-13  Michael Eager <eager@eagercon.com>
104
105         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
106         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
107         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
108         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file, 
109         remove duplicate config
110
111 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
112
113         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
114         file_name:line_number type locator of the call site.
115         
116 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
117
118         * genautomata.c: Put blank after comma.
119         (automaton_decls): New.
120         (struct unit_usage): Add comments to member next.
121         (store_alt_unit_usage): Keep the list ordered.
122         (unit_present_on_list_p, equal_alternatives_p): New.
123         (check_regexp_units_distribution): Check units distribution
124         correctness correctly.
125         (main): Don't write automata if error is found.  Return correct
126         exit code.
127         
128         * config/m68k/cf.md (cfv4_ds): Remove.
129         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
130         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
131
132         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
133         power4-load-ext, power4-store, power4-store-update,
134         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
135         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
136         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
137         power4-sqrt, power4-isync): Modify reservation to make correct
138         unit distribution to automata.
139
140         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
141         power5-store-update, power5-two, power5-three, power5-lmul,
142         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
143         
144 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
145
146         * except.c (pass_set_nothrow_function_flags): Set name and add
147         TODO_dump_func.
148         (set_nothrow_function_flags): Mention in the dump file when
149         changing a function to nothrow.
150
151 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
152
153         PR/39066
154         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
155         instead of unsigned long.
156
157 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
158
159         * config/arm/arm.c (return_used_this_function): Remove.
160         (arm_output_function_prologue): Remove use of
161         return_used_this_function.
162         (output_return_instruction): Replace use of
163         return_used_this_function
164         by cfun->machine->return_used_this_function.
165         (arm_output_epilogue): Likewise.
166         (arm_output_function_epilogue): Likewise.
167         (thumb_unexpanded_epilogue): Likewise.
168         * config/arm/arm.h (struct machine_function):
169         New member return_used_this_function.
170
171 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
172
173         * doc/install.texi: Correct description of default directory for
174         --with-gxx-include-dir.
175
176 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
177
178         * fold-const.c (build_range_check): Properly deal with enumeral and
179         boolean base types.
180
181 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
182
183         * doc/invoke.texi (max_gcse_passes): Remove documentation.
184         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
185         * params.h (MAX_GCSE_PASSES): Remove.
186         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
187         in sequence.  Remove ability to run multiple passes.
188         (bypass_jumps): Report run as third CPROP pass.
189
190 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
191
192         PR middle-end/39651
193         * except.c (can_throw_external): Look at each insn in a SEQUENCE
194         when deciding whether the whole SEQUENCE can throw.
195
196 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
197
198         PR target/39740
199         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
200         offseted label references.
201
202 2009-04-11  Jan Hubicka  <jh@suse.cz>
203
204         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
205
206 2009-04-11  Richard Guenther  <rguenther@suse.de>
207
208         PR middle-end/39732
209         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
210         return variables as TREE_ADDRESSABLE.
211
212 2009-04-11  Richard Guenther  <rguenther@suse.de>
213
214         PR tree-optimization/39713
215         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
216         reference trees have SSA_NAME operands.
217
218 2009-04-11  Richard Guenther  <rguenther@suse.de>
219
220         PR c/39712
221         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
222         address expressions.
223
224 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
225
226         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
227         match changes in Cygwin 1.7
228         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
229         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
230
231 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
232
233         PR tree-optimization/39701
234         * doc/invoke.texi (Optimization Options): Document change in
235         meaning and initialization of -fdelete-null-pointer-checks.
236
237 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
238
239         PR middle-end/39701
240         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
241
242         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
243         here.
244
245         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
246
247 2009-04-10  Chao-ying Fu  <fu@mips.com>
248
249         * doc/tm.texi (Instruction Output): Document
250         TARGET_ASM_FINAL_POSTSCAN_INSN.
251         * target.h (final_postscan_insn): New field in asm_out.
252         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
253         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
254         * final.c (final_scan_insn): Call
255         targetm.asm_out.final_postscan_insn after outputting
256         an asm macro and a normal instruction.
257
258         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
259         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
260         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
261         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
262         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
263
264 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
265
266         PR middle-end/39701
267         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
268         variables as non-NULL even with -fdelete-null-pointer-checks.
269
270 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
271
272         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
273
274 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
275
276         PR target/39678
277         * config/i386/i386.c (classify_argument): Handle SCmode with
278         (bit_offset % 64) != 0.
279
280 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
281
282         * doc/invoke.texi (Optimize Options): Add cross-reference to
283         -Q --help=optimizers examples.
284
285 2009-04-10  Ben Elliston  <bje@au.ibm.com>
286
287         PR target/36800
288         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
289         regalign for the reg == fpr and TDmode case.
290
291 2009-04-09  David Ayers  <ayers@fsfe.org>
292
293         PR objc/29200
294         * objc/objc-act.c (warn_with_method): Remove helper function.
295         (check_duplicates): Call warning and inform directly.
296         (really_start_method): Likewise.
297
298 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
299
300         * expmed.c (expand_divmod): Always use a comparison for a division
301         by a large unsigned integer.
302
303         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
304         for things others than variables or functions as nonzero.
305
306 2009-04-09  Nick Clifton  <nickc@redhat.com>
307
308         * unwind-compat.c: Change copyright header to refer to version
309         3 of the GNU General Public License with version 3.1 of the
310         GCC Runtime Library Exception and to point readers at the
311         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
312         * config/alpha/crtfastmath.c: Likewise.
313         * config/alpha/linux-unwind.h: Likewise.
314         * config/alpha/qrnnd.asm: Likewise.
315         * config/alpha/vms-crt0-64.c: Likewise.
316         * config/alpha/vms-crt0.c: Likewise.
317         * config/alpha/vms-dwarf2.asm: Likewise.
318         * config/alpha/vms-dwarf2eh.asm: Likewise.
319         * config/alpha/vms-psxcrt0-64.c: Likewise.
320         * config/alpha/vms-psxcrt0.c: Likewise.
321         * config/alpha/vms_tramp.asm: Likewise.
322         * config/arc/initfini.c: Likewise.
323         * config/arc/lib1funcs.asm: Likewise.
324         * config/arm/bpabi-v6m.S: Likewise.
325         * config/arm/bpabi.S: Likewise.
326         * config/arm/bpabi.c: Likewise.
327         * config/arm/crti.asm: Likewise.
328         * config/arm/crtn.asm: Likewise.
329         * config/arm/ieee754-df.S: Likewise.
330         * config/arm/ieee754-sf.S: Likewise.
331         * config/arm/lib1funcs.asm: Likewise.
332         * config/arm/libunwind.S: Likewise.
333         * config/arm/linux-atomic.c: Likewise.
334         * config/arm/mmintrin.h: Likewise.
335         * config/arm/pr-support.c: Likewise.
336         * config/arm/unaligned-funcs.c: Likewise.
337         * config/arm/unwind-arm.c: Likewise.
338         * config/arm/unwind-arm.h: Likewise.
339         * config/avr/libgcc.S: Likewise.
340         * config/bfin/crti.s: Likewise.
341         * config/bfin/crtlibid.s: Likewise.
342         * config/bfin/crtn.s: Likewise.
343         * config/bfin/lib1funcs.asm: Likewise.
344         * config/bfin/linux-unwind.h: Likewise.
345         * config/cris/arit.c: Likewise.
346         * config/cris/cris_abi_symbol.c: Likewise.
347         * config/darwin-64.c: Likewise.
348         * config/darwin-crt2.c: Likewise.
349         * config/darwin-crt3.c: Likewise.
350         * config/darwin.h: Likewise.
351         * config/dbxelf.h: Likewise.
352         * config/dfp-bit.c: Likewise.
353         * config/dfp-bit.h: Likewise.
354         * config/elfos.h: Likewise.
355         * config/fixed-bit.c: Likewise.
356         * config/fixed-bit.h: Likewise.
357         * config/fp-bit.c: Likewise.
358         * config/fp-bit.h: Likewise.
359         * config/fr30/crti.asm: Likewise.
360         * config/fr30/crtn.asm: Likewise.
361         * config/fr30/lib1funcs.asm: Likewise.
362         * config/freebsd-spec.h: Likewise.
363         * config/frv/cmovd.c: Likewise.
364         * config/frv/cmovh.c: Likewise.
365         * config/frv/cmovw.c: Likewise.
366         * config/frv/frvbegin.c: Likewise.
367         * config/frv/frvend.c: Likewise.
368         * config/frv/lib1funcs.asm: Likewise.
369         * config/glibc-stdint.h: Likewise.
370         * config/h8300/clzhi2.c: Likewise.
371         * config/h8300/crti.asm: Likewise.
372         * config/h8300/crtn.asm: Likewise.
373         * config/h8300/ctzhi2.c: Likewise.
374         * config/h8300/fixunssfsi.c: Likewise.
375         * config/h8300/lib1funcs.asm: Likewise.
376         * config/h8300/parityhi2.c: Likewise.
377         * config/h8300/popcounthi2.c: Likewise.
378         * config/i386/ammintrin.h: Likewise.
379         * config/i386/att.h: Likewise.
380         * config/i386/avxintrin.h: Likewise.
381         * config/i386/biarch64.h: Likewise.
382         * config/i386/bmmintrin.h: Likewise.
383         * config/i386/cpuid.h: Likewise.
384         * config/i386/cross-stdarg.h: Likewise.
385         * config/i386/crtfastmath.c: Likewise.
386         * config/i386/crtprec.c: Likewise.
387         * config/i386/cygming-crtbegin.c: Likewise.
388         * config/i386/cygming-crtend.c: Likewise.
389         * config/i386/cygwin.asm: Likewise.
390         * config/i386/emmintrin.h: Likewise.
391         * config/i386/gmm_malloc.h: Likewise.
392         * config/i386/gthr-win32.c: Likewise.
393         * config/i386/i386.h: Likewise.
394         * config/i386/immintrin.h: Likewise.
395         * config/i386/linux-unwind.h: Likewise.
396         * config/i386/linux64.h: Likewise.
397         * config/i386/mm3dnow.h: Likewise.
398         * config/i386/mmintrin-common.h: Likewise.
399         * config/i386/mmintrin.h: Likewise.
400         * config/i386/nmmintrin.h: Likewise.
401         * config/i386/pmm_malloc.h: Likewise.
402         * config/i386/pmmintrin.h: Likewise.
403         * config/i386/smmintrin.h: Likewise.
404         * config/i386/sol2-c1.asm: Likewise.
405         * config/i386/sol2-ci.asm: Likewise.
406         * config/i386/sol2-cn.asm: Likewise.
407         * config/i386/sol2-gc1.asm: Likewise.
408         * config/i386/tmmintrin.h: Likewise.
409         * config/i386/unix.h: Likewise.
410         * config/i386/w32-unwind.h: Likewise.
411         * config/i386/wmmintrin.h: Likewise.
412         * config/i386/x86-64.h: Likewise.
413         * config/i386/x86intrin.h: Likewise.
414         * config/i386/xmmintrin.h: Likewise.
415         * config/ia64/crtbegin.asm: Likewise.
416         * config/ia64/crtend.asm: Likewise.
417         * config/ia64/crtfastmath.c: Likewise.
418         * config/ia64/crti.asm: Likewise.
419         * config/ia64/crtn.asm: Likewise.
420         * config/ia64/fde-glibc.c: Likewise.
421         * config/ia64/lib1funcs.asm: Likewise.
422         * config/ia64/linux-unwind.h: Likewise.
423         * config/ia64/quadlib.c: Likewise.
424         * config/ia64/unwind-ia64.c: Likewise.
425         * config/linux.h: Likewise.
426         * config/m32c/m32c-lib1.S: Likewise.
427         * config/m32c/m32c-lib2-trapv.c: Likewise.
428         * config/m32c/m32c-lib2.c: Likewise.
429         * config/m32r/initfini.c: Likewise.
430         * config/m68hc11/larith.asm: Likewise.
431         * config/m68hc11/m68hc11-crt0.S: Likewise.
432         * config/m68k/cf.md: Likewise.
433         * config/m68k/crti.s: Likewise.
434         * config/m68k/crtn.s: Likewise.
435         * config/m68k/lb1sf68.asm: Likewise.
436         * config/m68k/linux-unwind.h: Likewise.
437         * config/mcore/crti.asm: Likewise.
438         * config/mcore/crtn.asm: Likewise.
439         * config/mcore/lib1.asm: Likewise.
440         * config/mips/linux-unwind.h: Likewise.
441         * config/mips/loongson.h: Likewise.
442         * config/mips/mips16.S: Likewise.
443         * config/mmix/crti.asm: Likewise.
444         * config/mmix/crtn.asm: Likewise.
445         * config/pa/fptr.c: Likewise.
446         * config/pa/hpux-unwind.h: Likewise.
447         * config/pa/lib2funcs.asm: Likewise.
448         * config/pa/linux-atomic.c: Likewise.
449         * config/pa/linux-unwind.h: Likewise.
450         * config/pa/milli64.S: Likewise.
451         * config/pa/quadlib.c: Likewise.
452         * config/pa/stublib.c: Likewise.
453         * config/picochip/libgccExtras/adddi3.asm: Likewise.
454         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
455         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
456         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
457         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
458         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
459         * config/picochip/libgccExtras/divmod15.asm: Likewise.
460         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
461         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
462         * config/picochip/libgccExtras/longjmp.asm: Likewise.
463         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
464         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
465         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
466         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
467         * config/picochip/libgccExtras/setjmp.asm: Likewise.
468         * config/picochip/libgccExtras/subdi3.asm: Likewise.
469         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
470         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
471         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
472         * config/rs6000/750cl.h: Likewise.
473         * config/rs6000/altivec.h: Likewise.
474         * config/rs6000/biarch64.h: Likewise.
475         * config/rs6000/crtresfpr.asm: Likewise.
476         * config/rs6000/crtresgpr.asm: Likewise.
477         * config/rs6000/crtresxfpr.asm: Likewise.
478         * config/rs6000/crtresxgpr.asm: Likewise.
479         * config/rs6000/crtsavfpr.asm: Likewise.
480         * config/rs6000/crtsavgpr.asm: Likewise.
481         * config/rs6000/darwin-asm.h: Likewise.
482         * config/rs6000/darwin-fallback.c: Likewise.
483         * config/rs6000/darwin-fpsave.asm: Likewise.
484         * config/rs6000/darwin-ldouble.c: Likewise.
485         * config/rs6000/darwin-tramp.asm: Likewise.
486         * config/rs6000/darwin-unwind.h: Likewise.
487         * config/rs6000/darwin-vecsave.asm: Likewise.
488         * config/rs6000/darwin-world.asm: Likewise.
489         * config/rs6000/e500crtres32gpr.asm: Likewise.
490         * config/rs6000/e500crtres64gpr.asm: Likewise.
491         * config/rs6000/e500crtres64gprctr.asm: Likewise.
492         * config/rs6000/e500crtrest32gpr.asm: Likewise.
493         * config/rs6000/e500crtrest64gpr.asm: Likewise.
494         * config/rs6000/e500crtresx32gpr.asm: Likewise.
495         * config/rs6000/e500crtresx64gpr.asm: Likewise.
496         * config/rs6000/e500crtsav32gpr.asm: Likewise.
497         * config/rs6000/e500crtsav64gpr.asm: Likewise.
498         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
499         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
500         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
501         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
502         * config/rs6000/eabi-ci.asm: Likewise.
503         * config/rs6000/eabi-cn.asm: Likewise.
504         * config/rs6000/eabi.asm: Likewise.
505         * config/rs6000/linux-unwind.h: Likewise.
506         * config/rs6000/linux64.h: Likewise.
507         * config/rs6000/paired.h: Likewise.
508         * config/rs6000/paired.md: Likewise.
509         * config/rs6000/ppc64-fp.c: Likewise.
510         * config/rs6000/ppu_intrinsics.h: Likewise.
511         * config/rs6000/rs6000.h: Likewise.
512         * config/rs6000/si2vmx.h: Likewise.
513         * config/rs6000/sol-ci.asm: Likewise.
514         * config/rs6000/sol-cn.asm: Likewise.
515         * config/rs6000/spe.h: Likewise.
516         * config/rs6000/spu2vmx.h: Likewise.
517         * config/rs6000/sysv4.h: Likewise.
518         * config/rs6000/tramp.asm: Likewise.
519         * config/rs6000/vec_types.h: Likewise.
520         * config/s390/linux-unwind.h: Likewise.
521         * config/s390/tpf-unwind.h: Likewise.
522         * config/score/crti.asm: Likewise.
523         * config/score/crtn.asm: Likewise.
524         * config/sh/crt1.asm: Likewise.
525         * config/sh/crti.asm: Likewise.
526         * config/sh/crtn.asm: Likewise.
527         * config/sh/divtab-sh4-300.c: Likewise.
528         * config/sh/divtab-sh4.c: Likewise.
529         * config/sh/divtab.c: Likewise.
530         * config/sh/lib1funcs-4-300.asm: Likewise.
531         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
532         * config/sh/lib1funcs.asm: Likewise.
533         * config/sh/lib1funcs.h: Likewise.
534         * config/sh/linux-atomic.asm: Likewise.
535         * config/sh/linux-unwind.h: Likewise.
536         * config/sh/shmedia.h: Likewise.
537         * config/sh/sshmedia.h: Likewise.
538         * config/sh/ushmedia.h: Likewise.
539         * config/sparc/crtfastmath.c: Likewise.
540         * config/sparc/linux-unwind.h: Likewise.
541         * config/sparc/sol2-c1.asm: Likewise.
542         * config/sparc/sol2-ci.asm: Likewise.
543         * config/sparc/sol2-cn.asm: Likewise.
544         * config/spu/divmodti4.c: Likewise.
545         * config/spu/divv2df3.c: Likewise.
546         * config/spu/float_disf.c: Likewise.
547         * config/spu/float_unsdidf.c: Likewise.
548         * config/spu/float_unsdisf.c: Likewise.
549         * config/spu/float_unssidf.c: Likewise.
550         * config/spu/mfc_multi_tag_release.c: Likewise.
551         * config/spu/mfc_multi_tag_reserve.c: Likewise.
552         * config/spu/mfc_tag_release.c: Likewise.
553         * config/spu/mfc_tag_reserve.c: Likewise.
554         * config/spu/mfc_tag_table.c: Likewise.
555         * config/spu/multi3.c: Likewise.
556         * config/spu/spu_internals.h: Likewise.
557         * config/spu/spu_intrinsics.h: Likewise.
558         * config/spu/spu_mfcio.h: Likewise.
559         * config/spu/vec_types.h: Likewise.
560         * config/spu/vmx2spu.h: Likewise.
561         * config/stormy16/stormy16-lib2.c: Likewise.
562         * config/svr4.h: Likewise.
563         * config/sync.c: Likewise.
564         * config/v850/lib1funcs.asm: Likewise.
565         * config/vxlib-tls.c: Likewise.
566         * config/vxlib.c: Likewise.
567         * config/vxworks-dummy.h: Likewise.
568         * config/xtensa/crti.asm: Likewise.
569         * config/xtensa/crtn.asm: Likewise.
570         * config/xtensa/ieee754-df.S: Likewise.
571         * config/xtensa/ieee754-sf.S: Likewise.
572         * config/xtensa/lib1funcs.asm: Likewise.
573         * config/xtensa/lib2funcs.S: Likewise.
574         * config/xtensa/linux-unwind.h: Likewise.
575         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
576         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
577         * coretypes.h: Likewise.
578         * crtstuff.c: Likewise.
579         * defaults.h: Likewise.
580         * dwarf2.h: Likewise.
581         * emutls.c: Likewise.
582         * gbl-ctors.h: Likewise.
583         * gcov-io.h: Likewise.
584         * ginclude/float.h: Likewise.
585         * ginclude/iso646.h: Likewise.
586         * ginclude/stdarg.h: Likewise.
587         * ginclude/stdbool.h: Likewise.
588         * ginclude/stddef.h: Likewise.
589         * ginclude/stdfix.h: Likewise.
590         * ginclude/stdint-gcc.h: Likewise.
591         * ginclude/tgmath.h: Likewise.
592         * gthr-aix.h: Likewise.
593         * gthr-dce.h: Likewise.
594         * gthr-gnat.c: Likewise.
595         * gthr-gnat.h: Likewise.
596         * gthr-lynx.h: Likewise.
597         * gthr-mipssde.h: Likewise.
598         * gthr-nks.h: Likewise.
599         * gthr-posix.c: Likewise.
600         * gthr-posix.h: Likewise.
601         * gthr-posix95.h: Likewise.
602         * gthr-rtems.h: Likewise.
603         * gthr-single.h: Likewise.
604         * gthr-solaris.h: Likewise.
605         * gthr-tpf.h: Likewise.
606         * gthr-vxworks.h: Likewise.
607         * gthr-win32.h: Likewise.
608         * gthr.h: Likewise.
609         * libgcc2.c: Likewise.
610         * libgcc2.h: Likewise.
611         * libgcov.c: Likewise.
612         * tsystem.h: Likewise.
613         * typeclass.h: Likewise.
614         * unwind-c.c: Likewise.
615         * unwind-compat.h: Likewise.
616         * unwind-dw2-fde-compat.c: Likewise.
617         * unwind-dw2-fde-darwin.c: Likewise.
618         * unwind-dw2-fde-glibc.c: Likewise.
619         * unwind-dw2-fde.c: Likewise.
620         * unwind-dw2-fde.h: Likewise.
621         * unwind-dw2.c: Likewise.
622         * unwind-dw2.h: Likewise.
623         * unwind-generic.h: Likewise.
624         * unwind-pe.h: Likewise.
625         * unwind-sjlj.c: Likewise.
626         * unwind.inc: Likewise.
627         * config/arm/neon-gen.ml: Change generated copyright header to
628         refer to version 3 of the GNU General Public License with
629         version 3.1 of the GCC Runtime Library Exception and to point
630         readers at the COPYING3 and COPYING3.RUNTIME files and the
631         FSF's license web page.
632         * config/arm/arm_neon.h: Regenerate.
633
634 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
635
636         * config/cris/cris.md: Change copyright header to refer to version
637         3 of the GNU General Public License.
638         * doc/install.texi2html: Change copyright header to refer to version
639         3 of the GNU General Public License and to point readers at the
640         COPYING3 file and the FSF's license web page.
641         * config/vax/linux.h: Likewise.
642
643 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
644
645         * config/i386/i386.md (cmpcc): New.
646         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
647         (sync_compare_and_swap_cc*): Delete.
648
649         * config/s390/s390.c (s390_compare_emitted): Remove.
650         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
651         s390_compare_emitted used to be handled.  Assert that modes match.
652         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
653         refer to sync_compare_and_swap_ccsi.
654         * config/s390/s390.h (s390_compare_emitted): Remove.
655         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
656         instead of s390_compare_emitted.
657         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
658         instead of s390_compare_emitted.
659         * config/s390/s390.md (cmpcc): New.
660         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
661         CC_REGNUM, do not pretend it's set.
662         (sync_compare_and_swap_cc*): Delete.
663         * config/s390/predicates.md (cc_reg_operand): New.
664
665         * expr.c (sync_compare_and_swap_cc): Delete.
666         * optabs.h (sync_compare_and_swap_cc): Delete.
667         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
668         is being used with can_compare_p.
669         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
670         (find_cc_set): New.
671         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
672         look for a MODE_CC set instead.  Use emit_store_flag.
673         (expand_compare_and_swap_loop): Likewise, with some additional
674         complication to avoid a force_reg when useless.  Use
675         emit_cmp_and_jump_insns.
676         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
677         * doc/md.texi (sync_compare_and_swap_cc): Merge with
678         sync_compare_and_swap documentation.
679
680 2009-04-09  Jan Hubicka  <jh@suse.cz>
681
682         * except.c (find_prev_try): Break out from ....
683         (duplicate_eh_regions): ... here; properly update prev_try pointers
684         when duplication part of tree.
685         (dump_eh_tree): Improve dumping.
686         (verify_eh_region): New.
687         (verify_eh_tree): Use it.
688
689 2009-04-06  Richard Guenther  <rguenther@suse.de>
690
691         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
692         &ARRAY addresses by adjusting their types and prepending
693         a conversion.
694         * tree-cfg.c (verify_gimple_assign_single): Verify that
695         addresses are correct.
696
697 2009-04-09  Richard Guenther  <rguenther@suse.de>
698
699         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
700         indices into an array reference if possible.
701         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
702         Fold POINTER_PLUS_EXPR statements with invariant address.
703
704 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
705
706         PR target/39634
707         * config.gcc (powerpc64-*-linux*): Always build biarch.
708
709 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
710
711         PR c/39613
712         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
713         it and pedwarn if this results in an INTEGER_CST.
714
715 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
716
717         * doc/install.texi: Update minimum GMP version.  Remove obsolete
718         text in MPFR section.
719
720 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
721
722         * dwarf2out.c (class_scope_p): New static inline.
723         (class_or_namespace_scope_p): Use it.
724         (gen_variable_die): Use DW_TAG_member tag for static data member
725         declarations instead of DW_TAG_variable.
726
727         PR middle-end/39573
728         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
729         variables.
730
731 2009-04-08  Richard Guenther  <rguenther@suse.de>
732
733         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
734         valueize random data.
735
736 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
737
738         * config.gcc (aix tm_file):  Add aix-stdint.h.
739         (aix tm clause use_gcc_stdint):  Set to wrap.
740         * config/rs6000/aix-stdint.h:  New file.
741         
742 2009-04-08  Richard Guenther  <rguenther@suse.de>
743
744         PR middle-end/36291
745         * tree-dfa.c (add_referenced_var): Do not recurse into
746         global initializers.
747         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
748         exposed variables.
749         (fold_const_aggregate_ref): Likewise.
750
751 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
752
753         * recog.c (ordered_comparison_operator): New.
754         * gensupport.c (std_preds): Add it.
755         * doc/md.texi (Machine-Independent Predicates): Document it.
756
757 2009-04-08  Jan Hubicka  <jh@suse.cz>
758
759         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
760         * function.h (rtl_eh): Remove exception_handler_label_map.
761         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
762         remove_exception_handler_label, for_each_eh_label_1): Remove.
763         (rtl_remove_unreachable_regions): Remove.
764         (convert_from_eh_region_ranges): Do not remove unreachable regions.
765         (find_exception_handler_labels): Don't build the hashtable.
766         (maybe_remove_eh_handler): Remove.
767         (for_each_eh_label): Rewrite to walk the tree.
768         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
769         * except.h (maybe_remove_eh_handler): Remove.
770         * passes.c (init_optimization_passes): Schedule second EH cleanup
771         before out-of-ssa.
772         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
773         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
774
775 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
776
777         * genoutput.c (validate_optab_operands): New.
778         (gen_insn, gen_expand): Call it.
779
780         * genflags.c (gen_insn): Detect misused iterators.
781         (main): Pass line_no to gen_insn, exit with status 1 on error.
782
783         * genextract.c (line_no): Make global.
784         (VEC_safe_set_locstr): Change assertion to error message.
785         (main): Exit with status 1 on error.
786
787 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
788
789         PR c/39614
790         PR c/39673
791         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
792         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
793         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
794         * c-convert.c (convert): Do not call fold on results of conversion
795         functions when the result is a C_MAYBE_CONST_EXPR.
796         * c-parser.c (c_parser_postfix_expression): Do not fold condition
797         of __builtin_choose_expr.
798         * c-typeck.c (remove_c_maybe_const_expr): New.
799         (build_unary_op, build_conditional_expr, build_compound_expr,
800         build_binary_op, c_objc_common_truthvalue_conversion): Call
801         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
802         integer operands.
803
804 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
805
806         * fold-const.c (const_binop): Combine two VECTOR_CST under operation 
807         CODE to produce a new one. Add a prototype to use fold_convert_const
808
809 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
810
811         PR bootstrap/39660
812         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
813         mix declarations and code.
814
815 2009-04-08  Ben Elliston  <bje@au.ibm.com>
816
817         * gcc.c: Replace `CC' with `GCC' throughout.
818
819 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
820
821         * doc/invoke.texi: Document Atom support.
822
823 2009-04-07  Jason Merrill  <jason@redhat.com>
824
825         PR c++/25185
826         * c-common.h, c-common.c: Add flag_pretty_templates.
827         * c-opts.c (c_common_handle_option): Set it.
828         * c.opt: Add -fno-pretty-templates.
829         * doc/invoke.texi (C++ Dialect Options): Likewise.
830
831 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
832
833         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
834         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
835         (ia64_expand_builtin): Likewise.
836
837 2009-04-07  Martin Jambor  <mjambor@suse.cz>
838
839         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
840         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
841         ADDR_EXPRS are include too.
842
843 2009-04-07  Richard Guenther  <rguenther@suse.de>
844
845         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
846         decls are only used if passes as parameters or if they are
847         local statics and the call is not to a builtin.
848         (call_may_clobber_ref_p_1): Likewise.
849
850 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
851
852         * expr.c (do_store_flag): Remove last argument.  Simplify code
853         to avoid duplication of tests already done by can_compare_p.
854         (expand_expr_real_1): Adjust caller.
855
856 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
857
858         * optabs.c (can_compare_p): Test the predicate of a
859         cbranch and cstore pattern.
860
861 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
862
863         * expr.c (convert_move): Use emit_store_flag instead of
864         "emulating" it.
865
866 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
867
868         * config/i386/i386.c (ix86_compare_emitted): Remove.
869         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
870         ix86_compare_op0 like ix86_compare_emitted used to be handled.
871         * config/i386/i386.h (ix86_compare_emitted): Remove.
872         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
873         instead of ix86_compare_emitted.
874         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
875
876 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
877
878         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
879         Add t-sysroot-suffix to tmake_file.
880         * config/print-sysroot-suffix.sh: New file.
881         * config/t-sysroot-suffix: New file.
882
883 2009-04-07  Ben Elliston  <bje@au.ibm.com>
884
885         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
886         as the latter produces a warning when the target does not support
887         infinity.
888
889 2009-04-07  Ben Elliston  <bje@au.ibm.com>
890
891         * dfp.c: Replace type punning assignments with memcpy throughout.
892         * Makefile.in (dfp.o-warn): Remove.
893         
894 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
895
896         PR target/39634
897         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
898         Include soft-fp/t-softfp after rs6000/t-linux64.
899
900 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
901
902         * stor-layout.c (set_sizetype): Use the full precision of their
903         machine mode for bitsize types.
904
905 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
906
907         * config/i386/i386.md: Revert 2 accidental checkins.
908
909 2009-04-06  Joey Ye  <joey.ye@intel.com>
910             Xuepeng Guo <xuepeng.guo@intel.com>
911             H.J. Lu  <hongjiu.lu@intel.com>
912
913         Atom pipeline model, tuning and insn selection.
914         * config.gcc (atom): Add atom config options and target.
915
916         * config/i386/atom.md: New.
917
918         * config/i386/i386.c (atom_cost): New cost.
919         (m_ATOM): New macro flag.
920         (initial_ix86_tune_features): Set m_ATOM.
921         (x86_accumulate_outgoing_args): Likewise.
922         (x86_arch_always_fancy_math_387): Likewise.
923         (processor_target): Add Atom cost.
924         (cpu_names): Add Atom cpu name.
925         (override_options): Set Atom ISA.
926         (ix86_issue_rate): New case PROCESSOR_ATOM.
927         (ix86_adjust_cost): Likewise.
928
929         * config/i386/i386.h (TARGET_ATOM): New target macro.
930         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
931         (TARGET_OPT_AGU): New target option.
932         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
933         (processor_type): Add PROCESSOR_ATOM.
934
935         * config/i386/i386.md (cpu): Add new value "atom".
936         (use_carry, movu): New attr.
937         (atom.md): Include atom.md.
938         (adddi3_carry_rex64): Set attr "use_carry".
939         (addqi3_carry): Likewise.
940         (addhi3_carry): Likewise.
941         (addsi3_carry): Likewise.
942         (*addsi3_carry_zext): Likewise.
943         (subdi3_carry_rex64): Likewise.
944         (subqi3_carry): Likewise.
945         (subhi3_carry): Likewise.
946         (subsi3_carry): Likewise.
947         (x86_movdicc_0_m1_rex64): Likewise.
948         (*x86_movdicc_0_m1_se): Likewise.
949         (x86_movsicc_0_m1): Likewise.
950         (*x86_movsicc_0_m1_se): Likewise.
951         (*adddi_1_rex64): Emit add insn as much as possible.
952         (*addsi_1): Likewise.
953         (return_internal): Set atom_unit.
954         (return_internal_long): Likewise.
955         (return_pop_internal): Likewise.
956         (*rcpsf2_sse): Set atom_sse_attr attr.
957         (*qrt<mode>2_sse): Likewise.
958         (*prefetch_sse): Likewise.
959
960         * config/i386/i386-c.c (ix86_target_macros_internal): New case
961         PROCESSOR_ATOM.
962         (ix86_target_macros_internal): Likewise.
963
964         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
965         (*prefetch_sse_rex): Likewise.
966         (sse_rcpv4sf2): Likewise.
967         (sse_vmrcpv4sf2): Likewise.
968         (sse_sqrtv4sf2): Likewise.
969         (<sse>_vmsqrt<mode>2): Likewise.
970         (sse_ldmxcsr): Likewise.
971         (sse_stmxcsr): Likewise.
972         (*sse_sfence): Likewise.
973         (sse2_clflush): Likewise.
974         (*sse2_mfence): Likewise.
975         (*sse2_lfence): Likewise.
976         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
977         (<sse>_movup<ssemodesuffixf2c>): Likewise.
978         (avx_movdqu<avxmodesuffix>): Likewise.
979         (avx_lddqu<avxmodesuffix>): Likewise.
980         (sse2_movntv2di): Change attr "type" to "ssemov".
981         (sse2_movntsi): Likewise.
982         (rsqrtv8sf2): Change attr "type" to "sseadd".
983         (sse3_addsubv2df3): Set attr "atom_unit".
984         (sse3_h<plusminus_insn>v4sf3): Likewise.
985         (*sse2_pmaddwd): Likewise.
986         (*vec_extractv2di_1_rex64): Likewise.
987         (*vec_extractv2di_1_avx): Likewise.
988         (sse2_psadbw): Likewise.
989         (ssse3_phaddwv8hi3): Likewise.
990         (ssse3_phaddwv4hi3): Likewise.
991         (ssse3_phadddv4si3): Likewise.
992         (ssse3_phadddv2si3): Likewise.
993         (ssse3_phaddswv8hi3): Likewise.
994         (ssse3_phaddswv4hi3): Likewise.
995         (ssse3_phsubwv8hi3): Likewise.
996         (ssse3_phsubwv4hi3): Likewise.
997         (ssse3_phsubdv4si3): Likewise.
998         (ssse3_phsubdv2si3): Likewise.
999         (ssse3_phsubswv8hi3): Likewise.
1000         (ssse3_phsubswv4hi3): Likewise.
1001         (ssse3_pmaddubsw128): Likewise.
1002         (sse3_pmaddubsw: Likewise.
1003         (ssse3_palignrti): Likewise.
1004         (ssse3_palignrdi): Likewise.
1005
1006 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
1007
1008         * doc/install.texi (Specific): Fix two cross-references to MinGW.
1009
1010 2009-04-06  Richard Guenther  <rguenther@suse.de>
1011
1012         PR tree-optimization/28868
1013         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
1014         of which PHI results we inserted.
1015         (insert_into_preds_of_block): Record inserted PHIs.
1016         (eliminate): Eliminate redundant PHI nodes.
1017         (init_pre): Init inserted_phi_names.
1018
1019 2009-04-06  Richard Guenther  <rguenther@suse.de>
1020
1021         PR tree-optimization/39643
1022         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
1023         IMAGPART_EXPRs of complex constants.
1024         (execute_fold_all_builtins): If we folded a call queue
1025         TODO_update_address_taken.
1026
1027 2009-04-06  Jan Hubicka  <jh@suse.cz>
1028
1029         PR middle-end/39659
1030         * except.c (remove_unreachable_regions): Propagate may_contain_throw
1031         flag.
1032
1033 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
1034
1035         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
1036         delay slot.
1037         (ic_invalidate_array): Likewise.
1038
1039 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
1040
1041         * calls.c (emit_library_call_value_1): Fix a problem with parameter
1042         alignment for library calls.
1043
1044 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
1045
1046         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
1047         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
1048         * config/i386/mingw-stdint.h:  New file.
1049
1050 2009-04-05  Richard Guenther  <rguenther@suse.de>
1051
1052         PR tree-optimization/39648
1053         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
1054         our &A vs. &A[0] IL deficiencies.
1055
1056 2009-04-04  Jan Hubicka  <jh@suse.cz>
1057
1058         * except.c (sjlj_find_directly_reachable_regions): Be ready for
1059         removed toplevel regions.
1060         (sjlj_mark_call_sites): Likewise.
1061
1062 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
1063
1064         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
1065         (cygwin tm clause use_gcc_stdint):  Set to wrap.
1066         * config/i386/cygwin-stdint.h:  New file.
1067
1068 2009-04-04  Richard Guenther  <rguenther@suse.de>
1069
1070         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
1071         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
1072         single-argument PHIs if we are in loop-closed SSA form.
1073         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
1074         for the pre-condition.
1075         (slpeel_tree_peel_loop_to_edge): Likewise.
1076         (vect_build_loop_niters): Take an optional sequence to append stmts.
1077         (vect_generate_tmps_on_preheader): Likewise.
1078         (vect_do_peeling_for_loop_bound): Take extra guards for the
1079         pre-condition.
1080         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
1081         the cost model check.
1082         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
1083         guards if we are going to peel.  Do not apply versioning in that case.
1084         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
1085         (vect_do_peeling_for_loop_bound): Likewise.
1086         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
1087         loop bound only record extra pre-conditions, do not apply loop
1088         versioning.
1089
1090 2009-04-04  Richard Guenther  <rguenther@suse.de>
1091
1092         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
1093         renaming code.
1094
1095 2009-04-04  Jan Hubicka  <jh@suse.cz>
1096
1097         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
1098         last_basic_block for size of bb->index indexed array.
1099         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
1100         compute_out, link_btr_uses, build_btr_def_use_webs,
1101         build_btr_def_use_webs, migrate_btr_defs): Likewise.
1102
1103 2009-04-04  Jan Hubicka  <jh@suse.cz>
1104
1105         * except.c (remove_eh_handler_and_replace): Break out from ...
1106         (remove_eh_handler): ... here.
1107         (bring_to_root): New function.
1108         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
1109         handled ones, bring others to root of tree.
1110
1111 2009-04-04  Jan Hubicka  <jh@suse.cz>
1112
1113         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
1114         (all_phis_safe_to_merge): New function.
1115         (update_info): New structure.
1116         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
1117         (cleanup_empty_eh): Update SSA if possible.
1118
1119 2009-04-04  Richard Guenther  <rguenther@suse.de>
1120
1121         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
1122         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
1123         (append_vuse): Likewise.
1124
1125 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
1128         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
1129         instead of REG_UNSAVED for DW_CFA_undefined.
1130         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
1131         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
1132         outermost frame.
1133
1134 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
1135
1136         PR target/39501
1137         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
1138         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
1139         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
1140
1141 2009-04-04  Richard Guenther  <rguenther@suse.de>
1142
1143         PR tree-optimization/8781
1144         PR tree-optimization/37892
1145         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
1146         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
1147         (valueize_refs): Call it for *& valueizations.
1148         (shared_reference_ops_from_ref): Rename to ...
1149         (valueize_shared_reference_ops_from_ref): ... this and valueize.
1150         (shared_reference_ops_from_call): Rename to ...
1151         (valueize_shared_reference_ops_from_call): ... this and valueize.
1152         (vn_reference_lookup): Update.
1153         (visit_reference_op_call): Likewise.
1154         * tree-ssa-pre.c (phi_translate_1): Fold *&.
1155         (eliminate): Value-replace the call address in call statements.
1156
1157 2009-04-04  Richard Guenther  <rguenther@suse.de>
1158
1159         PR tree-optimization/39636
1160         * tree-ssa-forwprop.c
1161         (forward_propagate_addr_into_variable_array_index): Check for
1162         GIMPLE_ASSIGN before accessing the rhs code.
1163
1164 2009-04-03  Jason Merrill  <jason@redhat.com>
1165
1166         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
1167
1168 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
1169
1170         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
1171         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
1172         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
1173         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
1174         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
1175         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
1176         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
1177         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
1178         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
1179         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
1180         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
1181         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
1182         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
1183         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
1184         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
1185         Use fr_reg_or_fp01_operand instead of fr_register_operand
1186
1187         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
1188         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
1189         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
1190
1191 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
1192
1193         PR rtl-optimization/39607
1194         PR rtl-optimization/39631
1195
1196         Revert:
1197         
1198         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1199         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
1200         instead of DF_LR_OUT.
1201         * ira-lives.c (process_bb_node_lives): Ditto.
1202         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
1203         instead of DF_LR_{OUT,IN}.
1204         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
1205         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
1206
1207 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
1208
1209         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
1210         (execute_lower_omp): Always run but take the short way out if -fopenmp
1211         is not given.
1212         (gate_lower_omp): Remove, forcing the pass manager to always run the
1213         pass and always set PROP_gimple_lomp.
1214         (pass_lower_omp): Remove gate function.
1215         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
1216         PROP_trees.  Instead, require it.
1217         * ipa-cp.c (pass_ipa_cp): Likewise.
1218         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
1219         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
1220         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
1221         and PROP_gimple_leh.
1222
1223 2009-04-03  Richard Guenther  <rguenther@suse.de>
1224
1225         PR middle-end/13146
1226         PR tree-optimization/23940
1227         PR tree-optimization/33237
1228         PR middle-end/33974
1229         PR middle-end/34093
1230         PR tree-optimization/36201
1231         PR tree-optimization/36230
1232         PR tree-optimization/38049
1233         PR tree-optimization/38207
1234         PR tree-optimization/38230
1235         PR tree-optimization/38301
1236         PR tree-optimization/38585
1237         PR middle-end/38895
1238         PR tree-optimization/38985
1239         PR tree-optimization/39299
1240         * tree-ssa-structalias.h: Remove.
1241         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
1242         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
1243         (struct vuse_element_d): Remove.
1244         (struct vuse_vec_d): Likewise.
1245         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
1246         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
1247         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
1248         VUSE_ELEMENT_VAR): Likewise.
1249         (struct voptype_d): Likewise.
1250         (NUM_VOP_FREE_BUCKETS): Likewise.
1251         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
1252         (struct stmt_operands_d): Remove.
1253         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
1254         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
1255         VDEF_NUM, VDEF_VECT): Likewise.
1256         (copy_virtual_operands): Remove.
1257         (operand_build_cmp): Likewise.
1258         (create_ssa_artificial_load_stmt): Likewise.
1259         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
1260         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
1261         vuse_index and mayuse_index members.  Pack and move done and iter_type
1262         members to the front.
1263         (SSA_OP_VMAYUSE): Remove.
1264         (SSA_OP_VIRTUAL_USES): Adjust.
1265         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
1266         (unlink_stmt_vdef): Declare.
1267         (add_to_addressable_set): Remove.
1268         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
1269         (vrp_visit_stmt): Likewise.
1270         * doc/tree-ssa.texi (Alias analysis): Update.
1271         * doc/invoke.texi (max-aliased-vops): Remove docs.
1272         (avg-aliased-vops): Likewise.
1273         * tree-into-ssa.c (syms_to_rename): Remove.
1274         (need_to_update_vops_p): Likewise.
1275         (need_to_initialize_update_ssa_p): Rename to ...
1276         (update_ssa_initialized_fn): ... this.  Track function we are
1277         initialized for.
1278         (symbol_marked_for_renaming): Simplify.
1279         (add_new_name_mapping): Do not set need_to_update_vops_p.
1280         (dump_currdefs): Use SYMS_TO_RENAME.
1281         (rewrite_update_stmt): Always walk all uses/defs.
1282         (dump_update_ssa): Adjust.
1283         (init_update_ssa): Take function argument.  Track what we are
1284         initialized for.
1285         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
1286         (create_new_def_for): Initialize for cfun, assert we are initialized
1287         for cfun.
1288         (mark_sym_for_renaming): Simplify.
1289         (mark_set_for_renaming): Do not initialize update-ssa.
1290         (need_ssa_update_p): Simplify.  Take function argument.
1291         (name_mappings_registered_p): Assert we ask for the correct function.
1292         (name_registered_for_update_p): Likewise.
1293         (ssa_names_to_replace): Likewise.
1294         (release_ssa_name_after_update_ssa): Likewise.
1295         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
1296         (dump_decl_set): Do not print a newline.
1297         (debug_decl_set): Do it here.
1298         (dump_update_ssa): And here.
1299         * tree-ssa-loop-im.c (move_computations): Adjust.
1300         (movement_possibility): Likewise.
1301         (determine_max_movement): Likewise.
1302         (gather_mem_refs_stmt): Likewise.
1303         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
1304         or NAME_MEMORY_TAG.
1305         * tree-complex.c (update_all_vops): Remove.
1306         (expand_complex_move): Adjust.
1307         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
1308         Simplify test for memory referencing statement.  Exclude
1309         non-invariant ADDR_EXPRs.
1310         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
1311         * tree-loop-distribution.c (generate_memset_zero): Adjust.
1312         (rdg_flag_uses): Likewise.
1313         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
1314         related code.
1315         (tree_optimize_tail_calls_1): Also split the
1316         edge from the entry block if we have degenerate PHI nodes in
1317         the first basic block.
1318         * tree.c (init_ttree): Remove memory-tag related code.
1319         (tree_code_size): Likewise.
1320         (tree_node_structure): Likewise.
1321         (build7_stat): Re-write to be build6_stat.
1322         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
1323         (SSA_VAR_P): Adjust.
1324         (struct tree_memory_tag): Remove.
1325         (struct tree_memory_partition_tag): Likewise.
1326         (union tree_node): Adjust.
1327         (build7): Re-write to be build6.
1328         * tree-pass.h (pass_reset_cc_flags): Remove.
1329         (TODO_update_address_taken): New flag.
1330         (pass_simple_dse): Remove.
1331         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
1332         * params.h (MAX_ALIASED_VOPS): Remove.
1333         (AVG_ALIASED_VOPS): Likewise.
1334         * omp-low.c (expand_omp_taskreg): Update SSA form.
1335         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
1336         aliases the lhs in a copy stmt.
1337         * tree-ssa-dse.c (struct address_walk_data): Remove.
1338         (memory_ssa_name_same): Likewise.
1339         (memory_address_same): Likewise.
1340         (get_kill_of_stmt_lhs): Likewise.
1341         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
1342         unused stores.  Look through PHI nodes into post-dominated regions.
1343         (dse_optimize_stmt): Simplify.  Properly remove stores.
1344         (tree_ssa_dse): Compute dominators.
1345         (execute_simple_dse): Remove.
1346         (pass_simple_dse): Likewise.
1347         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
1348         gimple_loaded_syms and gimple_stored_syms computation.
1349         * toplev.c (dump_memory_report): Dump alias and pta stats.
1350         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
1351         (vn_reference_eq): Likewise.
1352         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
1353         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
1354         valueize_vuses): Remove.
1355         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
1356         (get_def_ref_stmt_vuse): ... this.
1357         (vn_reference_lookup_2): New function.
1358         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
1359         walking equivalent vuses.  Simplify.
1360         (vn_reference_lookup): Likewise.
1361         (vn_reference_insert): Likewise.
1362         (vn_reference_insert_pieces): Likewise.
1363         (visit_reference_op_call): Simplify.
1364         (visit_reference_op_load): Likewise.
1365         (visit_reference_op_store): Likewise.
1366         (init_scc_vn): Remove shared_lookup_vuses initialization.
1367         (free_scc_vn): Remove shared_lookup_vuses freeing.
1368         (sort_vuses, sort_vuses_heap): Remove.
1369         (get_ref_from_reference_ops): Export.
1370         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
1371         vector with single vuse pointer.
1372         (vn_reference_lookup_pieces, vn_reference_lookup,
1373         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
1374         (shared_vuses_from_stmt): Remove.
1375         (get_ref_from_reference_ops): Declare.
1376         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
1377         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
1378         memory-tag related code.
1379         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
1380         (likely_value): Add comment, skip static-chain of call statements.
1381         (surely_varying_stmt_p): Adjust.
1382         (gimplify_and_update_call_from_tree): Likewise.
1383         (execute_fold_all_builtins): Do not rebuild alias info.
1384         (gimplify_and_update_call_from_tree): Properly update VOPs.
1385         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
1386         (copy_ref_info): Remove memory-tag related code.
1387         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
1388         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
1389         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
1390         computation.
1391         * tree-ssa-dom.c (gimple_p): Remove typedef.
1392         (eliminate_redundant_computations): Adjust.
1393         (record_equivalences_from_stmt): Likewise.
1394         (avail_expr_hash): Likewise.
1395         (avail_expr_eq): Likewise.
1396         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
1397         (stmt_makes_single_load): Likewise.
1398         (stmt_makes_single_store): Likewise.
1399         * tree-ssa-alias.c: Rewrite completely.
1400         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
1401         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
1402         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
1403         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
1404         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
1405         Remove public functions.
1406         (pass_reset_cc_flags): Remove.
1407         (pass_build_alias): Move ...
1408         * tree-ssa-structalias.c (pass_build_alias): ... here.
1409         * tree-ssa-alias.c (may_be_aliased): Move ...
1410         * tree-flow-inline.h (may_be_aliased): ... here.
1411         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
1412         count_uses_and_derefs): Move ...
1413         * gimple.c: ... here.
1414         * gimple.h (count_uses_and_derefs): Declare.
1415         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
1416         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
1417         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
1418         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
1419         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
1420         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
1421         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
1422         New functions.
1423         * tree-dfa.c (refs_may_alias_p): Move ...
1424         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
1425         * tree-ssa-alias.h: New file.
1426         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
1427         (statement_sink_location): Likewise.
1428         * opts.c (decode_options): Do not adjust max-aliased-vops or
1429         avg-aliased-vops values.
1430         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
1431         (TV_CALL_CLOBBER): Likewise.
1432         (TV_FLOW_SENSITIVE): Likewise.
1433         (TV_FLOW_INSENSITIVE): Likewise.
1434         (TV_MEMORY_PARTITIONING): Likewise.
1435         (TV_ALIAS_STMT_WALK): New timevar.
1436         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
1437         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
1438         (get_address_description): Remove memory-tag related code.
1439         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
1440         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
1441         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
1442         and immediate uses in statements.  Document.
1443         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
1444         (dump_symbols): Remove.
1445         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
1446         * alias.c (get_deref_alias_set): New function split out from ...
1447         (get_alias_set): ... here.
1448         * alias.h (get_deref_alias_set): Declare.
1449         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
1450         type parameter.  Remove restrict pointer handling.  Create a
1451         ref-all pointer in case type-based alias sets do not conflict.
1452         (vect_analyze_data_refs): Remove SMT related code.
1453         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
1454         (vectorizable_load): Likewise.
1455         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
1456         (DR_SYMBOL_TAG, DR_VOPS): Remove.
1457         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
1458         Ignore vops and SMTs.
1459         (dr_analyze_alias): Likewise..
1460         (free_data_ref): Likewise.
1461         (create_data_ref): Likewise.
1462         (analyze_all_data_dependences): Likewise.
1463         (get_references_in_stmt): Adjust.
1464         * tree-flow-inline.h (gimple_aliases_computed_p,
1465         gimple_addressable_vars, gimple_call_clobbered_vars,
1466         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
1467         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
1468         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
1469         gimple_mem_ref_stats): Remove.
1470         (gimple_vop): New function.
1471         (op_iter_next_use): Remove vuses and mayuses cases.
1472         (op_iter_next_def): Remove vdefs case.
1473         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
1474         (clear_and_done_ssa_iter): Do not set removed fields.
1475         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
1476         Assert we are not iterating over vuses or vdefs if not also
1477         iterating over uses or defs.
1478         (op_iter_init_use): Likewise.
1479         (op_iter_init_def): Likewise.
1480         (op_iter_next_vdef): Remove.
1481         (op_iter_next_mustdef): Likewise.
1482         (op_iter_init_vdef): Likewise.
1483         (compare_ssa_operands_equal): Likewise.
1484         (link_use_stmts_after): Handle vuse operand.
1485         (is_call_used): Use is_call_clobbered.
1486         (is_call_clobbered): Global variables are always call clobbered,
1487         query the call-clobbers bitmap.
1488         (mark_call_clobbered): Ignore global variables.
1489         (clear_call_clobbered): Likewise.
1490         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
1491         virtual operands sanity check.
1492         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
1493         Remove.
1494         (TARGET_MEM_REF): Remove TMR_TAG operand.
1495         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
1496         Remove call-clobber related code.
1497         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
1498         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
1499         partitions or escape reason.
1500         (get_single_def_stmt, get_single_def_stmt_from_phi,
1501         get_single_def_stmt_with_phi): Remove.
1502         (dump_referenced_vars): Tidy.
1503         (get_ref_base_and_extent): Allow bare decls.
1504         (collect_dfa_stats): Adjust.
1505         * graphite.c (rename_variables_in_stmt): Adjust.
1506         (graphite_copy_stmts_from_block): Likewise.
1507         (translate_clast): Likewise.
1508         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
1509         (EXPR_DIES): New.
1510         (translate_vuse_through_block): Use the oracle.
1511         (phi_translate_1): Adjust.
1512         (value_dies_in_block_x): Use the oracle.  Cache the outcome
1513         in EXPR_DIES.
1514         (valid_in_sets): Check if the VUSE for
1515         a REFERENCE is available.
1516         (eliminate): Do not remove stmts during elimination,
1517         instead queue and remove them afterwards.
1518         (do_pre): Do not rebuild alias info.
1519         (pass_pre): Run TODO_rebuild_alias before PRE.
1520         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
1521         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
1522         (mark_all_v_defs_stmt): Remove.
1523         (mark_all_v_defs_seq): Adjust.
1524         (sra_replace): Likewise.
1525         (scalarize_use): Likewise.
1526         (scalarize_copy): Likewise.
1527         (scalarize_init): Likewise.
1528         (scalarize_ldst): Likewise.
1529         (todoflags): Remove.
1530         (tree_sra): Do not rebuild alias info.
1531         (tree_sra_early): Adjust.
1532         (pass_sra): Run TODO_update_address_taken before SRA.
1533         * tree-predcom.c (set_alias_info): Remove.
1534         (prepare_initializers_chain): Do not call it.
1535         (mark_virtual_ops_for_renaming): Adjust.
1536         (mark_virtual_ops_for_renaming_list): Remove.
1537         (initialize_root_vars): Adjust.
1538         (initialize_root_vars_lm): Likewise.
1539         (prepare_initializers_chain): Likewise.
1540         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
1541         (may_propagate_copy_into_stmt): Likewise.
1542         (merge_alias_info): Do nothing for now.
1543         (propagate_tree_value_into_stmt): Adjust.
1544         (stmt_may_generate_copy): Likewise.
1545         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
1546         not mark symbols for renaming.
1547         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
1548         with the same statement, make sure to update the new pointed-to one.
1549         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
1550         call statements, do not mark symbols for renaming.
1551         (mark_operand_necessary): Dump something.
1552         (ref_may_be_aliased): New function.
1553         (mark_aliased_reaching_defs_necessary_1): New helper function.
1554         (mark_aliased_reaching_defs_necessary): Likewise.
1555         (mark_all_reaching_defs_necessary_1): Likewise.
1556         (mark_all_reaching_defs_necessary): Likewise.
1557         (propagate_necessity): Do not process virtual PHIs.  For
1558         non-aliased loads mark all reaching definitions as necessary.
1559         For aliased loads and stores mark the immediate dominating
1560         aliased clobbers as necessary.
1561         (visited): New global static.
1562         (perform_tree_ssa_dce): Free visited bitmap after propagating
1563         necessity.
1564         (remove_dead_phis): Perform simple dead virtual PHI removal.
1565         (remove_dead_stmt): Properly unlink virtual operands when
1566         removing stores.
1567         (eliminate_unnecessary_stmts): Schedule PHI removal after
1568         stmt removal.
1569         * tree-ssa-ter.c (is_replaceable_p): Adjust.
1570         (process_replaceable): Likewise.
1571         (find_replaceable_in_bb): Likewise.
1572         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
1573         based on the single gimple vop.
1574         (verify_flow_insensitive_alias_info): Remove.
1575         (verify_flow_sensitive_alias_info): Likewise.
1576         (verify_call_clobbering): Likewise.
1577         (verify_memory_partitions): Likewise.
1578         (verify_alias_info): Likewise.
1579         (verify_ssa): Adjust..
1580         (execute_update_addresses_taken): Export.  Update SSA
1581         manually.  Optimize only when optimizing.  Use a local bitmap.
1582         (pass_update_address_taken): Remove TODO_update_ssa, add
1583         TODO_dump_func.
1584         (pass_update_address_taken): Just use TODO_update_address_taken.
1585         (init_tree_ssa): Do not initialize addressable_vars.
1586         (verify_ssa): Verify new VUSE / VDEF properties.
1587         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
1588         Do not call verify_alias_info.
1589         (delete_tree_ssa): Clear the VUSE, VDEF operands.
1590         Do not free the loaded and stored syms bitmaps.  Reset the escaped
1591         and callused solutions.  Do not free addressable_vars.
1592         Remove memory-tag related code.
1593         (warn_uninitialized_var): Aliases are always available.
1594         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
1595         * lambda-code.c (can_put_in_inner_loop): Adjust.
1596         (can_put_after_inner_loop): Likewise.
1597         (perfect_nestify): Likewise.
1598         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
1599         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
1600         (vectorizable_conversion): Do not mark symbols for renaming.
1601         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
1602         (expand_call_inline): Unlink the calls virtual operands before
1603         replacing it.
1604         (tree_function_versioning): Do not call update_ssa if we are not
1605         updating clones.  Simplify.
1606         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
1607         (propagate_with_phi): Likewise..
1608         * tree-outof-ssa.c (create_temp): Remove memory tag and call
1609         clobber code.  Assert we are not aliased or global.
1610         * tree-flow.h: Include tree-ssa-alias.h
1611         (enum escape_type): Remove.
1612         (struct mem_sym_stats_d): Likewise.
1613         (struct mem_ref_stats_d): Likewise.
1614         (struct gimple_df): Add vop member.  Remove global_var,
1615         call_clobbered_vars, call_used_vars, addressable_vars,
1616         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
1617         escaped and callused members.
1618         (struct ptr_info_def): Remove all members, add points-to solution
1619         member pt.
1620         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
1621         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
1622         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
1623         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
1624         (tree-ssa-alias.o): Likewise.
1625         (toplev.o): Add tree-ssa-alias.h
1626         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
1627         * gimple.c (gimple_set_bb): Fix off-by-one error.
1628         (is_gimple_reg): Do not handle memory tags.
1629         (gimple_copy): Also copy virtual operands.
1630         Delay updating the statement.  Do not reset loaded and stored syms.
1631         (gimple_set_stored_syms): Remove.
1632         (gimple_set_loaded_syms): Likewise.
1633         (gimple_call_copy_skip_args): Copy the virtual operands
1634         and mark the new statement modified.
1635         * tree-ssa-structalias.c (may_alias_p): Remove.
1636         (set_uids_in_ptset): Take the alias set to prune with as
1637         parameter.  Fold in the alias test of may_alias_p.
1638         (compute_points_to_sets): Compute whether a ptr is dereferenced
1639         in a local sbitmap.
1640         (process_constraint): Deal with &ANYTHING on the lhs, reject all
1641         other ADDRESSOF constraints on the lhs.
1642         (get_constraint_for_component_ref): Assert that we don't get
1643         ADDRESSOF constraints from the base of the reference.
1644         Properly generate UNKNOWN_OFFSET for DEREF if needed.
1645         (struct variable_info): Remove collapsed_to member.
1646         (get_varinfo_fc): Remove.
1647         (new_var_info): Do not set collapsed_to.
1648         (dump_constraint): Do not follow cycles.
1649         (dump_constraint_graph): Likewise.
1650         (build_pred_graph): Likewise.
1651         (build_succ_graph): Likewise.
1652         (rewrite_constraints): Likewise.
1653         (do_simple_structure_copy): Remove.
1654         (do_rhs_deref_structure_copy): Remove.
1655         (do_lhs_deref_structure_copy): Remove.
1656         (collapse_rest_of_var): Remove.
1657         (do_structure_copy): Re-implement.
1658         (pta_stats): New global variable.
1659         (dump_pta_stats): New function.
1660         (struct constraint_expr): Make offset signed.
1661         (UNKNOWN_OFFSET): Define special value.
1662         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
1663         (solution_set_expand): New helper function split out from ...
1664         (do_sd_constraint): ... here.
1665         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
1666         (do_ds_constraint): Likewise.
1667         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
1668         and CALLUSED = *CALLUSED.
1669         (set_union_with_increment): Make inc argument signed.
1670         (type_safe): Remove.
1671         (get_constraint_for_ptr_offset): Handle unknown and negative
1672         constant offsets.
1673         (first_vi_for_offset): Handle offsets before start.  Bail
1674         out early for offsets beyond the variable extent.
1675         (first_or_preceding_vi_for_offset): New function.
1676         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
1677         Together with ESCAPED = *ESCAPED this properly computes reachability.
1678         (find_what_var_points_to): New function.
1679         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
1680         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
1681         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
1682         pt_solutions_intersect): New functions.
1683         (compute_call_used_vars): Remove.
1684         (compute_may_aliases): New main entry into PTA computation.
1685         * gimple.h (gimple_p): New typedef.
1686         (struct gimple_statement_base): Remove references_memory_p.
1687         (struct gimple_statement_with_memory_ops_base): Remove
1688         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
1689         members.
1690         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
1691         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
1692         gimple_set_references_memory): Remove.
1693         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
1694         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
1695         New functions.
1696         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
1697         (verify_expr): Allow RESULT_DECL.
1698         (gimple_duplicate_bb): Do not copy virtual operands.
1699         (gimple_duplicate_sese_region): Adjust.
1700         (gimple_duplicate_sese_tail): Likewise.
1701         (mark_virtual_ops_in_region): Remove.
1702         (move_sese_region_to_fn): Do not call it.
1703         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
1704         and pass_simple_dse.
1705         (execute_function_todo): Handle TODO_update_address_taken,
1706         call execute_update_addresses_taken for TODO_rebuild_alias.
1707         (execute_todo): Adjust.
1708         (execute_one_pass): Init dump files early.
1709         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
1710         call-clobbered.
1711         (create_general_new_stmt): Clear vops.
1712         * tree-ssa-reassoc.c (get_rank): Adjust.
1713         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
1714         symbols for renaming.
1715         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
1716         (PARAM_AVG_ALIASED_VOPS): Likewise.
1717         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
1718         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
1719         * tree-ssa-operands.c: Simplify for new virtual operand representation.
1720         (operand_build_cmp, copy_virtual_operands,
1721         create_ssa_artificial_load_stmt, add_to_addressable_set,
1722         gimple_add_to_addresses_taken): Remove public functions.
1723         (unlink_stmt_vdef): New function.
1724
1725 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1726
1727         * config.gcc (powerpc-*-linux*): Merge variants.
1728
1729 2009-04-02  Chao-ying Fu  <fu@mips.com>
1730             James Grosbach <james.grosbach@microchip.com>
1731
1732         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
1733         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
1734         cop0_sp_offset.
1735         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
1736         keep_interrupts_masked_p, use_debug_exception_return_p.
1737         (mips_attribute_table): Add interrupt, use_shadow_register_set,
1738         keep_interrupts_masked, use_debug_exception_return.
1739         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
1740         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
1741         New functions.
1742         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
1743         (mips_print_operand): Process COP0 registers to print $0 .. $31
1744         correctly for GAS to process.
1745         (mips_interrupt_extra_call_saved_reg_p): New function.
1746         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
1747         extra registers.
1748         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1749         (mips_compute_frame_info): Add supports for interrupt context that
1750         includes doubleword accumulators and COP0 registers.
1751         (mips_for_each_saved_acc): New function.
1752         (mips_for_each_saved_gpr_and_fpr): Change the function name from
1753         mips_for_each_saved_reg.
1754         (mips_save_reg): Save accumulators.
1755         (mips_kernel_reg_p): A new for_each_rtx callback.
1756         (mips_expand_prologue): Support interrupt handlers.
1757         (mips_restore_reg): Restore accumulators.
1758         (mips_expand_epilogue): Support interrupt handlers.
1759         (mips_can_use_return_insn): Return false for interrupt handlers.
1760         (mips_epilogue_uses): New function.
1761         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
1762         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
1763         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
1764         cop0_move): New instructions.
1765         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
1766         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
1767         defines.
1768         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
1769         New defines.
1770         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
1771         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
1772         interrupt handlers, we use K0 as the temporary register.
1773         (EPILOGUE_USES): Change to a function call.
1774         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
1775         handlers, we use K0 as the temporary register.
1776         
1777         * doc/extend.texi (Function Attributes): Document interrupt,
1778         use_shadow_register_set, keep_interrupts_masked,
1779         use_debug_exception_return for MIPS attributes.
1780
1781 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1782
1783         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
1784         Remove a number of t-files from tmake_file.
1785         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
1786         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
1787         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1788         target_prototype, not TARGET_PROTOTYPE.
1789         (LINK_OS_GNU_SPEC): Define.
1790         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
1791         and darwin-ldoubdle.c.
1792
1793 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1794
1795         PR driver/39293
1796         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
1797         (cpp_options): Ditto.
1798         (default_compilers): Ditto.
1799         (display_help): Ditto.
1800         (process_command): Ditto.
1801         (do_spec_1): Ditto.
1802         (set_input): Use lbasename instead of duplicate code.
1803         (save_temps_prefix): New static for -save-temps=obj.
1804         (save_temps_length): Ditto.
1805         
1806         * doc/invoke.texi (-save-temps=obj): Document new variant to
1807         -save-temps switch.
1808
1809 2009-04-02  Jeff Law  <law@redhat.com>
1810
1811         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
1812         variable.
1813
1814 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1815
1816         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
1817         * configure: Regenerated.
1818
1819 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1820
1821         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
1822         share the argument list.
1823
1824 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1825
1826         Merge
1827
1828         2009-02-12  Diego Novillo  <dnovillo@google.com>
1829
1830         * varpool.c (debug_varpool): New.
1831         * cgraph.h (debug_varpool): Declare.
1832
1833 2009-04-02  Jan Hubicka  <jh@suse.cz>
1834
1835         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
1836         pass.
1837
1838 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         * config/i386/i386.c (ix86_abi): Move initialization to ...
1841         (override_options): Here.
1842
1843 2009-04-02  Christian Bruel  <christian.bruel@st.com>
1844
1845         * config/sh/sh.c (sh_dwarf_register_span): New function.
1846         (TARGET_DWARF_REGISTER_SPAN): Define.
1847         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
1848         
1849 2009-04-02  Ira Rosen  <irar@il.ibm.com>
1850
1851         PR tree-optimization/39595
1852         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
1853         interleaved loads group is not  greater than the SLP group size.
1854
1855 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1856
1857         * builtins.c (is_builtin_name): New.
1858         (called_as_built_in): Use is_builtin_name.
1859         * tree.h (is_builtin_name): New.
1860         * varasm.c (incorporeal_function_p): Use is_builtin_name
1861
1862 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
1863
1864         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
1865
1866 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
1867
1868         PR c++/26693
1869         * c-decl.c: (clone_underlying_type): Move this ...
1870         * c-common.c (set_underlying_type): ... here.
1871         Also, make sure the function properly sets TYPE_STUB_DECL() on
1872         the newly created typedef variant type.
1873         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
1874         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
1875         points.
1876
1877 2009-04-02  Richard Guenther  <rguenther@suse.de>
1878
1879         PR tree-optimization/37221
1880         * tree-flow.h (degenerate_phi_result): Declare.
1881         * tree-ssa-dom.c (degenerate_phi_result): Export.
1882         * tree-scalar-evolution.c (analyze_initial_condition): If
1883         the initial condition is defined by a degenerate PHI node
1884         use the degenerate value.
1885
1886 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
1887
1888         PR rtl-optimization/39588
1889         * combine.c (merge_outer_ops): Do not set the constant when this
1890         is not necessary.
1891         (simplify_shift_const_1): Do not modify it either in this case.
1892
1893 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1894
1895         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
1896         tuning is deprecated if -mtune value is set to an Itanium1 variant.
1897
1898 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
1899
1900         PR c/29027
1901         * c-lex.c (interpret_float): Default (no suffix) is double.
1902
1903 2009-04-1  Xinliang David Li  <davidxl@google.com>
1904
1905         * config/i386/i386.c (legitimate_constant_p): Recognize
1906         all one vector constant.
1907
1908 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1909
1910         * gcc/config/vax/vax.c: Add #includes to silence warnings.
1911         Change #include order to silence two warnings.
1912
1913 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1914
1915         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
1916         (ASM_SPEC): Pass -k to the assembler for PIC code.
1917
1918 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1919
1920         * gcc/config.gcc: Add vax-*-linux* to the switch.
1921         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
1922         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
1923
1924 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1925
1926         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
1927         Use predicate macros instead of GET_CODE() == foo.
1928         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
1929         ashlsi3, rotrsi3, <unnamed>): Likewise.
1930
1931 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1932
1933         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
1934         jbbccihi, jbbccisi): Remova trailing whitespace.
1935         * gcc/config/vax/constraints.md: Likewise.
1936         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1937         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
1938         * gcc/config/vax/predicates.md: Likewise.
1939         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
1940         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
1941         * gcc/config/vax/vax.h: Likewise.
1942         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
1943
1944 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1945
1946         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
1947         (indirectable_address_p, adjacent_operands_p): Add spaces around
1948         braces.
1949         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
1950
1951 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1952
1953         * gcc/config/vax/vax.c (legitimate_constant_address_p,
1954         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
1955         index_term_p, reg_plus_index_p, legitimate_address_p,
1956         vax_mode_dependent_address_p): Update comments to match functions
1957         modified by the recent int->bool conversion.
1958
1959 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1960
1961         * gcc/config/vax/builtins.md: Update copyright message.
1962         * gcc/config/vax/constraints.md: Likewise.
1963         * gcc/config/vax/netbsd-elf.h: Likewise.
1964         * gcc/config/vax/predicates.md: Likewise.
1965         * gcc/config/vax/vax-protos.h: Likewise.
1966         * gcc/config/vax/vax.c: Likewise.
1967         * gcc/config/vax/vax.h: Likewise.
1968         * gcc/config/vax/vax.md: Likewise.
1969         * gcc/config/vax/vax.opt: Likewise.
1970
1971 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1972
1973         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
1974         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
1975         * gcc/config/vax/constraints.md (B, R): Likewise.
1976         * gcc/config/vax/predicates.md (external_memory_operand,
1977         nonimmediate_addsub_di_operand): Likewise.
1978         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
1979         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
1980         untyped_call): Likewise.
1981
1982 2009-04-01  Matt Thomas <matt@3am-software.com>
1983
1984         * config/vax/predicates.md: New file.
1985         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
1986         external_const_operand, nonsymbolic_operand, external_memory_operand,
1987         indirect_memory_operand, indexed_memory_operand,
1988         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
1989         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
1990         predicate.
1991         * config/vax/constraints.md: New file.
1992         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
1993         New constraint.
1994         * config/vax/builtins.md: New file.
1995         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
1996         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
1997         jbbccisi): Define.
1998         * config/vax/vax.opt (mqmath): Add option.
1999         * config/vax/vax.md (isfx): Extend with DI.
2000         (VAXintQH, VAXintQHSD): Define.
2001         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
2002         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
2003         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
2004         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
2005         (movdi): Update constraints and use vax_output_int_move().
2006         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
2007         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
2008         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
2009         nonlocal_goto): New.
2010         (mov<mode>): Extend accepted operand types.
2011         (subdi3_old): Rename from subdi3, change update constraints and use
2012         a new implementation.
2013         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
2014         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
2015         MOVE_RATIO, CLEAR_RATIO): Define.
2016         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
2017         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
2018         (PRINT_OPERAND): Redefine using a function instead of inlined code.
2019         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2020         (split_quadword_operands): Make static and really allow variable
2021         splitting.
2022         (print_operand_address): Update for PIC generation.
2023         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
2024         indexable_address_p, fixup_mathdi_operand,
2025         vax_expand_addsub_di_operands, adjacent_operands_p): New.
2026         (vax_float_literal, legitimate_constant_p,
2027         indirectable_constant_address_p, index_term_p,
2028         reg_plus_index_p): Return bool instead of int.
2029         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
2030         where needed.
2031         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
2032         generation.
2033         (vax_output_conditional_branch): Indent.
2034         (legitimate_constant_address_p, indirectable_constant_address_p,
2035         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
2036         vax_mode_dependent_address_p): Return bool instead of int, update for
2037         PIC generation.
2038         * config/vax/vax-protos.h (legitimate_constant_address_p,
2039         legitimate_constant_p, legitimate_address_p,
2040         vax_mode_dependent_address_p): Change declaration to bool.
2041         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
2042         vax_expand_addsub_di_operands, vax_output_int_subtract,
2043         vax_output_movmemsi): Declare.
2044         (split_quadword_operands, vax_float_literal): Delete declaration.
2045         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
2046         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
2047         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
2048         ASM_OUTPUT_DWARF_PCREL): Define.
2049         (ASM_SPEC): Change definition to allow PIC generation.
2050
2051 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
2052
2053         * doc/sourcebuild.texi: Update front-end requirements.
2054
2055 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2056
2057         PR target/39226
2058         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
2059         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
2060         (booldi3_internal3): Use boolean_or_operator instead of
2061         boolean_operator.
2062
2063 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
2064
2065         PR c/39605
2066         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
2067         declarator whose size is not an integer constant expression but
2068         folds to an integer constant, then treat it as a constant
2069         subsequently.
2070
2071 2009-04-01  Richard Guenther  <rguenther@suse.de>
2072
2073         * fold-const.c (fold_plusminus_mult_expr): Do not fold
2074         i * 4 + 2 to (i * 2 + 1) * 2.
2075
2076 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2077
2078         PR c/37772
2079         * c-parser.c (c_parser_asm_statement): Skip until close paren and
2080         return if c_parser_asm_string_literal returned NULL.
2081
2082 2009-04-01  Nick Clifton  <nickc@redhat.com>
2083
2084         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
2085         already defined.
2086         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
2087         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
2088         other typedefs to avoid conflicts with libgcc2.c.  Define labels
2089         to gain 16-bit bit-manipulation functions from libgcc2.c and then
2090         include it.
2091         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
2092         to gain 16-bit trapping arithmetic functions from libgcc2.c and
2093         then include it.
2094
2095 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
2096
2097         * varasm.c (default_function_rodata_section): Declare DOT as
2098         const char*.
2099
2100 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
2101             Andrey Galkin <agalkin@hypercom.com>
2102
2103         PR/39492
2104         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2105         Make object_name unique for each process.
2106
2107 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2108
2109         PR other/39591
2110         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
2111         addressable variables in the parallel that could go out of scope while
2112         running queued tasks.
2113
2114 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
2115
2116         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
2117         (CASE_VALUES_THRESHOLD): Redefine.
2118         * config/avr/avr.c (avr_override_options): Remove initialization of
2119         avr_case_values_threshold variable.
2120         (avr_case_values_threshold): Remove variable. Add new function.
2121         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
2122         * config/avr/avr.opt (mno-tablejump): Remove option.
2123         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
2124
2125 2009-04-01  DJ Delorie  <dj@redhat.com>
2126
2127         * varasm.c (default_function_rodata_section): Don't assume
2128         anything about where the first '.' in the section name is.
2129
2130 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
2131
2132         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
2133         rs6000_emit_stack_tie.
2134
2135 2009-03-31  Ian Lance Taylor  <iant@google.com>
2136
2137         * tree-eh.c (tree_remove_unreachable_handlers): Compare
2138         gimple_code with GIMPLE_RESX, not RESX.
2139
2140 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2141
2142         * c-common.c (c_get_ident): New.
2143         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
2144
2145 2009-04-01  Ben Elliston  <bje@au.ibm.com>
2146
2147         * config/rs6000/sysv4.opt (msdata): Improve option description.
2148
2149 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
2150
2151         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
2152         (divdf3_internal_lat): Remove.
2153         (divxf3_internal_lat): Remove.
2154         (divxf3_internal_thr): Remove.
2155         (divxf): Use divxf3_internal.
2156         * config/ia64/div.md (divsf3_internal_lat): New.
2157         (divdf3_internal_lat): New.
2158         (divxf3_internal): New.
2159
2160 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2161
2162         PR c/448
2163         * Makefile.in (USE_GCC_STDINT): Define.
2164         (stmp-int-hdrs): Install stdint.h if applicable.
2165         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
2166         if known.
2167         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
2168         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
2169         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2170         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2171         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2172         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2173         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2174         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2175         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2176         (c_common_nodes_and_builtins): Initialize
2177         underlying_wchar_type_node.  Do not initialize
2178         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
2179         nodes for new types.
2180         (c_stddef_cpp_builtins): Define macros for new types.
2181         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
2182         Remove.
2183         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
2184         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
2185         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
2186         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
2187         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
2188         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
2189         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
2190         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
2191         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
2192         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
2193         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
2194         int16_type_node, int32_type_node, int64_type_node,
2195         uint8_type_node, uint16_type_node, c_uint32_type_node,
2196         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
2197         int_least32_type_node, int_least64_type_node,
2198         uint_least8_type_node, uint_least16_type_node,
2199         uint_least32_type_node, uint_least64_type_node,
2200         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
2201         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
2202         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
2203         uintptr_type_node): Define.
2204         * c-cppbuiltin.c (builtin_define_constants,
2205         builtin_define_type_minmax): New.
2206         (builtin_define_stdint_macros): Define more macros.
2207         (c_cpp_builtins): Define more limit macros.
2208         (type_suffix): New.
2209         (builtin_define_type_max): Define in terms of
2210         builtin_define_type_minmax.  Remove is_long parameter.  All
2211         callers changed.
2212         * config.gcc (use_gcc_stdint): Define.
2213         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
2214         Add newlib-stdint.h for generic targets.
2215         * config/glibc-stdint.h, config/newlib-stdint.h,
2216         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
2217         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
2218         * config/score/score.h (UINTPTR_TYPE): Define.
2219         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
2220         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
2221         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2222         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2223         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2224         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2225         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2226         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2227         * config/spu/spu.h (STDINT_LONG32): Define.
2228         * configure.ac (use_gcc_stdint): Substitute.
2229         * configure: Regenerate.
2230         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
2231         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
2232         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
2233         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
2234         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
2235         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
2236         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
2237         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
2238         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
2239         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
2240         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
2241         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
2242         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
2243         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
2244         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
2245         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
2246         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
2247         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
2248         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
2249         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
2250         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
2251         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
2252         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2253         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2254         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2255         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2256         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2257         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2258         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
2259
2260 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
2261
2262         * loop-iv.c (suitable_set_for_replacement): Renamed from
2263         simplify_using_assignment; changed to return bool and to accept new
2264         args DEST and SRC.  Return true iff we find a source/destination pair
2265         that can be used to make a replacement, and fill SRC and DEST if so.
2266         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
2267         changed.
2268         (simplify_using_initial_values): Deal with altered regs here and track
2269         more precisely the effect they have on the validity of our expression.
2270
2271         * loop-iv.c (simplify_using_condition): A condition of the form
2272         (EQ REG CONST) can be used to simply make a substitution.
2273         (simplify_using_initial_values): Keep track of conditions we have seen
2274         and keep using them to simplify new expressions, while applying the
2275         same substitutions to them as to the expression.
2276
2277         * simplify-rtx.c (simplify_relational_operation_1): Simplify
2278         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
2279         GEU/LTU reversed.
2280
2281         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
2282         changed.  Use this when trying to improve the upper bound.
2283         Generate the comparison by using simplify_gen_relational.
2284
2285         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
2286
2287         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
2288         functions.
2289         (simplify_using_assignment, simplify_using_initial_values): Call 
2290         replace_in_expr to make replacements.  Call replace_single_def_regs
2291         once on the initial version of the expression.
2292
2293 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2294
2295         PR target/27237
2296         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2297         
2298 2009-03-31  Richard Guenther  <rguenther@suse.de>
2299
2300         PR middle-end/31029
2301         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
2302         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
2303
2304 2009-03-31  Richard Guenther  <rguenther@suse.de>
2305
2306         * tree.h (div_if_zero_remainder): Declare.
2307         * fold-const.c (div_if_zero_remainder): Export.
2308         * tree-ssa-forwprop.c
2309         (forward_propagate_addr_into_variable_array_index): Handle
2310         constant array index addition outside of the variable index.
2311
2312 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2313
2314         PR target/39592
2315         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
2316         define_splits, floatunssi<mode>2): Require x87 conversions from
2317         DImode to be permitted.
2318
2319 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2320
2321         PR preprocessor/15638
2322         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
2323
2324 2009-03-31  Richard Guenther  <rguenther@suse.de>
2325
2326         PR middle-end/23401
2327         PR middle-end/27810
2328         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
2329         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
2330         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
2331         a separate statement.
2332         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
2333         (lookup_tmp_var): Likewise.
2334         (is_gimple_formal_tmp_or_call_rhs): Remove.
2335         (is_gimple_reg_or_call_rhs): Rename to ...
2336         (is_gimple_reg_rhs_or_call): ... this.
2337         (is_gimple_mem_or_call_rhs): Rename to ...
2338         (is_gimple_mem_rhs_or_call): ... this.
2339         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
2340         DECL_GIMPLE_REG_P only if is_formal is true.
2341         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
2342         for non-proper post-modify expression gimplification.
2343         (gimplify_self_mod_expr): For post-modify expressions gimplify
2344         the lvalue to a minimal lvalue.
2345         (rhs_predicate_for): Remove formal temp case.
2346         (gimplify_modify_expr_rhs): Likewise.
2347         (gimplify_addr_expr): Use is_gimple_reg.
2348         (gimplify_expr): Remove formal temp cases.
2349         (gimple_regimplify_operands): Likewise.
2350         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
2351         and FILTER_EXPR like constants.
2352         * gimple.c (walk_gimple_op): Fix val_only initialization, use
2353         is_gimple_reg.
2354         (is_gimple_formal_tmp_rhs): Remove.
2355         (is_gimple_reg_rhs): Remove special casing.
2356         (is_gimple_mem_rhs): Fix.
2357         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
2358         (is_gimple_formal_tmp_var): Remove.
2359         (is_gimple_formal_tmp_reg): Likewise.
2360         (is_gimple_min_lval): Allow invariant component ref parts.
2361         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
2362         is_gimple_formal_tmp_reg): Remove declarations.
2363         * tree-cfg.c (verify_expr): Verify that variables with address
2364         taken do not have DECL_GIMPLE_REG_P set.
2365         * tree-mudflap.c (mf_build_check_statement_for): Use
2366         force_gimple_operand instead of gimplify_expr.
2367
2368 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
2369
2370         * modulo-sched.c (sms_schedule_by_order): Pass the actual
2371         schedulable rows to compute_split_row.
2372
2373 2009-03-31  Ben Elliston  <bje@au.ibm.com>
2374
2375         PR target/31635
2376         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
2377         OPT_mvrsave.
2378
2379 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2380
2381         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
2382         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
2383         * configure: Regenerate.
2384         * config.in: Regenerate.
2385         * config/rs6000/rs6000.opt (mtls-markers): Add.
2386         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
2387         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
2388         (tls_ld_aix, tls_ld_sysv): Likewise.
2389         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
2390         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
2391
2392 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2393
2394         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
2395
2396 2009-03-30  Jan Hubicka  <jh@suse.cz>
2397
2398         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
2399         out of RESX.
2400         (tree_remove_unreachable_handlers): Cleanup EH predecestor
2401         detection and label handling.
2402
2403 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2404
2405         * ira-int.h (ira_allocno): Rename left_conflicts_num to
2406         left_conflicts_size.
2407         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
2408         ALLOCNO_LEFT_CONFLICTS_SIZE.
2409
2410         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
2411         remove_allocno_from_bucket_and_push,
2412         allocno_spill_priority_compare, push_allocnos_to_stack,
2413         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2414         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
2415         (setup_allocno_left_conflicts_num): Ditto.  Rename to
2416         setup_allocno_left_conflicts_size.
2417         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2418         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
2419         setup_allocno_left_conflicts_size instead of
2420         setup_allocno_left_conflicts_num.
2421
2422         * ira-build.c (ira_create_allocno): Use
2423         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
2424         ALLOCNO_LEFT_CONFLICTS_NUM.
2425                 
2426 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2427
2428         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
2429         instead of DF_LR_OUT.
2430
2431         * ira-lives.c (process_bb_node_lives): Ditto.
2432
2433         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
2434         instead of DF_LR_{OUT,IN}.
2435
2436         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
2437
2438         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
2439
2440 2009-03-30  Jan Hubicka  <jh@suse.cz>
2441
2442         * except.c (label_to_region_map): Fix thinko.
2443
2444 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
2445
2446         PR middle-end/38237
2447         * tree.h (tree_find_value): New declaration.
2448         * tree.c (tree_find_value): New function.
2449         * varasm.c (assemble_external): Avoid duplicate entries on lists.
2450
2451 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
2452
2453         PR debug/39563
2454         * c-decl.c (struct c_binding): Add locus field.
2455         (bind): Add locus argument, set locus field from it.
2456         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
2457         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
2458         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
2459         implicitly_declare, undeclared_variable, lookup_label,
2460         declare_label, c_make_fname_decl, c_builtin_function,
2461         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
2462         bind callers.
2463
2464 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         PR target/38781
2467         * config/i386/i386.c (classify_argument): Check total size of
2468         structure.
2469
2470 2009-03-30  Martin Jambor  <mjambor@suse.cz>
2471
2472         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
2473         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
2474         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
2475         respectively.
2476
2477         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
2478         seen_variable_array_ref while also traversing a union.
2479
2480         * tree-inline.c (optimize_inline_calls): Do not call
2481         cgraph_node_remove_callees.
2482         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
2483         (pass_remove_cgraph_callee_edges): New variable.
2484         * passes.c (init_optimization_passes): Add
2485         pass_remove_cgraph_callee_edges after early inlining and before all
2486         late intraprocedural passes.
2487
2488         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
2489
2490 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2491
2492         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
2493         Fix typos in names.
2494
2495 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2496
2497         * combine.c (simplify_comparison): Use have_insn_for.
2498         * dojump.c (do_jump): Likewise.
2499
2500 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2501
2502         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
2503         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
2504         sparc_compare_op0 like sparc_compare_emitted used to be handled.
2505         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
2506         instead of sparc_compare_emitted.
2507         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
2508         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
2509         instead of sparc_compare_emitted.
2510
2511 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2512
2513         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
2514         enter/exit cfglayout mode.
2515         (pass_partition_block): Require it.
2516         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
2517         (combine_instructions): Track basic blocks instead of labels.
2518         (update_cfg_for_uncondjump): New.
2519         (try_combine): Use it.  Update jumps after rescanning.
2520         (pass_combine): Require PROP_cfglayout.
2521         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
2522
2523 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2524
2525         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
2526         Provide/destroy PROP_cfglayout respectively.
2527         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
2528         * tree-pass.h (PROP_cfglayout): New.
2529
2530 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2531
2532         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
2533         fold_convert_const_fixed_from_fixed,
2534         fold_convert_const_fixed_from_int,
2535         fold_convert_const_fixed_from_real, fold_negate_const): Do not
2536         set TREE_CONSTANT_OVERFLOW.
2537         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
2538         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
2539
2540 2009-03-30  Ira Rosen  <irar@il.ibm.com>
2541
2542         * tree-vect-loop-manip.c: New file.
2543         * tree-vectorizer.c: Update documentation and included files.
2544         (vect_loop_location): Make extern.
2545         (rename_use_op): Move to tree-vect-loop-manip.c
2546         (rename_variables_in_bb, rename_variables_in_loop, 
2547         slpeel_update_phis_for_duplicate_loop, 
2548         slpeel_update_phi_nodes_for_guard1,
2549         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
2550         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
2551         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2552         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
2553         find_loop_location): Likewise.
2554         (new_stmt_vec_info): Move to tree-vect-stmts.c.
2555         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
2556         get_vectype_for_scalar_type, vect_is_simple_use,
2557         supportable_widening_operation, supportable_narrowing_operation):
2558         Likewise.
2559         (bb_in_loop_p): Move to tree-vect-loop.c.
2560         (new_loop_vec_info, destroy_loop_vec_info, 
2561         reduction_code_for_scalar_code, report_vect_op, 
2562         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
2563         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
2564         (vect_supportable_dr_alignment): Likewise.
2565         * tree-vectorizer.h (tree-data-ref.h): Include.
2566         (vect_loop_location): Declare.
2567         Reorganize function declarations according to the new file structure.
2568         * tree-vect-loop.c: New file.
2569         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
2570         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
2571         * tree-vect-data-refs.c: New file.
2572         * tree-vect-patterns.c (timevar.h): Don't include.
2573         * tree-vect-stmts.c: New file.
2574         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
2575         tree-vect-slp.c, tree-vect-loop.c.
2576         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
2577         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
2578         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
2579         (tree-vect-analyze.o): Remove.
2580         (tree-vect-transform.o): Likewise.
2581         (tree-vect-data-refs.o): Add rule.
2582         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
2583         tree-vect-slp.o): Likewise.
2584         (tree-vect-patterns.o): Remove redundant dependencies.
2585         (tree-vectorizer.o): Likewise.
2586         * tree-vect-slp.c: New file.
2587
2588 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2589
2590         * optc-gen.awk: Warn if an option flag has multiple different
2591         help strings.
2592
2593 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
2594
2595         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
2596         -floop-block): Document dependences on PPL, CLooG and Graphite.
2597
2598 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2599
2600         PR rtl-optimization/323
2601         * c-common.c (c_fully_fold, convert_and_check,
2602         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
2603         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
2604         * c-common.def (EXCESS_PRECISION_EXPR): New.
2605         * c-cppbuiltin.c (builtin_define_float_constants): Define
2606         constants with enough digits for long double.
2607         * c-lex.c (interpret_float): Interpret constant with excess
2608         precision where appropriate.
2609         * c-opts.c (c_common_post_options): Set
2610         flag_excess_precision_cmdline.  Give an error for
2611         -fexcess-precision=standard for C++ for processors where the
2612         option is significant.
2613         * c-parser.c (c_parser_conditional_expression): Handle excess
2614         precision in condition.
2615         * c-typeck.c (convert_arguments): Handle arguments with excess
2616         precision.
2617         (build_unary_op): Move excess precision outside operation.
2618         (build_conditional_expr): Likewise.
2619         (build_compound_expr): Likewise.
2620         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
2621         (build_modify_expr): Handle excess precision in RHS.
2622         (convert_for_assignment): Handle excess precision in converted
2623         value.
2624         (digest_init, output_init_element, process_init_element): Handle
2625         excess precision in initializer.
2626         (c_finish_return): Handle excess precision in return value.
2627         (build_binary_op): Handle excess precision in operands and add
2628         excess precision as needed for operation.
2629         * common.opt (-fexcess-precision=): New option.
2630         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
2631         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2632         For standard excess precision, output explicit conversion to and
2633         truncation from XFmode.
2634         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
2635         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
2636         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
2637         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
2638         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
2639         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
2640         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
2641         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
2642         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
2643         define_splits, sqrt<mode>2): Disable where appropriate for
2644         standard excess precision.
2645         * convert.c (convert_to_real): Do not shorten arithmetic to type
2646         for which excess precision would be used.
2647         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
2648         * doc/invoke.texi (-fexcess-precision=): Document option.
2649         (-mfpmath=): Correct index entry.
2650         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
2651         flag_excess_precision): New.
2652         * langhooks.c (lhd_post_options): Set
2653         flag_excess_precision_cmdline.
2654         * opts.c (common_handle_option): Handle -fexcess-precision=.
2655         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
2656         init_excess_precision): New.
2657         (lang_dependent_init_target): Call init_excess_precision.
2658         * tree.c (excess_precision_type): New.
2659         * tree.h (excess_precision_type): Declare.
2660
2661 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2662
2663         PR c/35235
2664         * c-typeck.c (build_component_ref): Do not copy qualifiers from
2665         non-lvalue to component.
2666
2667 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2668
2669         PR preprocessor/34695
2670         * Makefile.in (c-opts.o): Depend on c-tree.h.
2671         * c-common.c: Move down include of diagnostic.h.
2672         (done_lexing, c_cpp_error): New.
2673         * c-common.h (done_lexing): Declare.
2674         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
2675         (parse_in).
2676         * c-opts.c: Include c-tree.h.
2677         (c_common_init_options): Set preprocessor error callback.
2678         (c_common_handle_option): Do not set preprocessor
2679         inhibit_warnings, warnings_are_errors, warn_system_headers,
2680         pedantic_errors or inhibit_warnings flags.
2681         (c_common_post_options): Do not check cpp_errors (parse_in).
2682         (c_common_finish): Do not output dependencies if there were
2683         errors.  Do not check return value of cpp_finish.
2684         * c-ppoutput.c (pp_file_change): Set input_location.
2685         * c-tree.h (c_cpp_error): Declare.
2686         * diagnostic.c (diagnostic_set_info_translated): Also initialize
2687         override_column.
2688         (diagnostic_build_prefix): Check override_column.
2689         * diagnostic.h (diagnostic_info): Add override_column field.
2690         (diagnostic_override_column): Define.
2691
2692 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
2693
2694         * c-common.c (c_expand_expr, c_staticp): Remove.
2695         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
2696         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
2697         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
2698         * c-gimplify.c (gimplify_compound_literal_expr,
2699         optimize_compound_literals_in_ctor): Remove.
2700         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
2701         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
2702         * c-semantics.c (emit_local_var): Remove.
2703
2704         * langhooks-def.h (lhd_expand_expr): Remove.
2705         * langhooks.c (lhd_expand_expr): Remove.
2706         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
2707
2708         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
2709         handling from c-semantics.c; don't call into langhook.
2710         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
2711         * gimplify.c (gimplify_compound_literal_expr,
2712         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
2713         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
2714         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
2715         as was done in c-gimplify.c.
2716         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
2717         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
2718         Move from c-common.h.
2719         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2720
2721         * tree.c (staticp): Do not call langhook.
2722         * langhooks.c (lhd_staticp): Delete.
2723         * langhooks-def.h (lhd_staticp): Delete prototype.
2724         (LANG_HOOKS_STATICP): Delete.
2725         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
2726
2727         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
2728         instead of DECL_STMTs.
2729
2730 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2731
2732         PR c/456
2733         PR c/5675
2734         PR c/19976
2735         PR c/29116
2736         PR c/31871
2737         PR c/35198
2738         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
2739         void_type_node.
2740         (fold_call_expr): Return a NOP_EXPR from folding rather than the
2741         contained expression.
2742         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
2743         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
2744         conditional expressions for C.
2745         (decl_constant_value_for_optimization): Move from
2746         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
2747         whether optimizing and that the expression is a VAR_DECL not of
2748         array type instead of doing such checks in the caller.  Do not
2749         check pedantic.  Call gcc_unreachable for C++.
2750         * c-common.def (C_MAYBE_CONST_EXPR): New.
2751         * c-common.h (c_fully_fold, c_save_expr,
2752         decl_constant_value_for_optimization): New prototypes.
2753         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2754         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2755         EXPR_INT_CONST_OPERANDS): Define.
2756         * c-convert.c (convert): Strip nops from expression.
2757         * c-decl.c (groktypename): Take extra parameters expr and
2758         expr_const_operands.  Update call to grokdeclarator.
2759         (start_decl): Update call to grokdeclarator.  Add statement for
2760         expressions used in type of decl.
2761         (grokparm): Update call to grokdeclarator.
2762         (push_parm_decl): Update call to grokdeclarator.
2763         (build_compound_literal): Add parameter non_const and build a
2764         C_MAYBE_COSNT_EXPR if applicable.
2765         (grokdeclarator): Take extra parameters expr and
2766         expr_const_operands.  Track expressions used in declaration
2767         specifiers and declarators.  Fold array sizes and track whether
2768         they are constant expressions and whether they are integer
2769         constant expressions.
2770         (parser_xref_tag): Set expr and expr_const_operands fields in
2771         return value.
2772         (grokfield): Update call to grokdeclarator.
2773         (start_function): Update call to grokdeclarator.
2774         (build_null_declspecs): Set expr and expr_const_operands fields in
2775         return value.
2776         (declspecs_add_type): Handle expressions in typeof specifiers.
2777         * c-parser.c (c_parser_declspecs): Set expr and
2778         expr_const_operands fields for declaration specifiers.
2779         (c_parser_enum_specifier): Likewise.
2780         (c_parser_struct_or_union_specifier): Likewise.
2781         (c_parser_typeof_specifier): Likewise.  Update call to
2782         groktypename.  Fold expression as needed.  Return expressions with
2783         type instead of adding statements.
2784         (c_parser_attributes): Update calls to c_parser_expr_list.
2785         (c_parser_statement_after_labels): Fold expression before passing
2786         to objc_build_throw_stmt.
2787         (c_parser_condition): Fold expression.
2788         (c_parser_asm_operands): Fold expression.
2789         (c_parser_conditional_expression): Use c_save_expr.  Update call
2790         to build_conditional_expr.
2791         (c_parser_alignof_expression): Update call to groktypename.
2792         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
2793         original_code.  Fold expression argument of va_arg.  Create
2794         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
2795         argument to va_arg.  Update calls to groktypename.  Fold array
2796         index for offsetof.  Verify that first argument to
2797         __builtin_choose_expr has integer type.
2798         (c_parser_postfix_expression_after_paren_type): Update calls to
2799         groktypename and build_compound_literal.  Handle expressions with
2800         side effects in type name.
2801         (c_parser_postfix_expression_after_primary): Update call to
2802         c_parser_expr_list.  Set original_code for calls to
2803         __builtin_constant_p.
2804         (c_parser_expr_list): Take extra parameter fold_p.  Fold
2805         expressions if requested.
2806         (c_parser_objc_type_name): Update call to groktypename.
2807         (c_parser_objc_synchronized_statement): Fold expression.
2808         (c_parser_objc_receiver): Fold expression.
2809         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
2810         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
2811         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
2812         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
2813         (struct c_typespec): Add elements expr and expr_const_operands.
2814         (struct c_declspecs): Add elements expr and expr_const_operands.
2815         (groktypename, build_conditional_expr, build_compound_literal):
2816         Update prototypes.
2817         (in_late_binary_op): Declare.
2818         * c-typeck.c (note_integer_operands): New function.
2819         (in_late_binary_op): New variable.
2820         (decl_constant_value_for_broken_optimization): Move to c-common.c
2821         and rename to decl_constant_value_for_optimization.
2822         (default_function_array_conversion): Do not strip nops.
2823         (default_conversion): Do not call
2824         decl_constant_value_for_broken_optimization.
2825         (build_array_ref): Do not fold result.
2826         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
2827         result when operand is a VLA.
2828         (c_expr_sizeof_type): Update call to groktypename.  Handle
2829         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
2830         result when operand names a VLA type.
2831         (build_function_call): Update call to build_compound_literal.
2832         Only fold result for calls to __builtin_* functions.  Strip
2833         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
2834         the function designator.
2835         (convert_arguments): Fold arguments.  Update call to
2836         convert_for_assignment.
2837         (build_unary_op): Handle increment and decrement of
2838         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
2839         decrement earlier.  Fold operand of increment and decrement.
2840         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
2841         built for integer operand.  Wrap returns that are INTEGER_CSTs
2842         without being integer constant expressions or that have integer
2843         constant operands without being INTEGER_CSTs.
2844         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
2845         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
2846         result is an integer constant expression or can be used in
2847         unevaluated parts of one and avoid folding and wrap as
2848         appropriate.  Fold operands before possibly doing -Wsign-compare
2849         warnings.
2850         (build_compound_expr): Wrap result for C99 if operands can be used
2851         in integer constant expressions.
2852         (build_c_cast): Update call to digest_init.  Do not ignore
2853         overflow from casting floating-point constants to integers.  Wrap
2854         results that could be confused with integer constant expressions,
2855         null pointer constants or floating-point constants.
2856         (c_cast_expr): Update call to groktypename.  Handle expressions
2857         included in type name.
2858         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
2859         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
2860         Update calls to convert_for_assignment.
2861         (convert_for_assignment): Take new parameter
2862         null_pointer_constant.  Do not strip nops or call
2863         decl_constant_value_for_broken_optimization.  Set
2864         in_late_binary_op for conversions to boolean.
2865         (store_init_value): Update call to digest_init.
2866         (digest_init): Take new parameter null_pointer_constant.  Do not
2867         call decl_constant_value_for_broken_optimization.  pedwarn for
2868         initializers not constant expressions.  Update calls to
2869         convert_for_assignment.
2870         (constructor_nonconst): New.
2871         (struct constructor_stack): Add nonconst element.
2872         (really_start_incremental_init, push_init_level, pop_init_level):
2873         Handle constructor_nonconst and nonconst element.
2874         (set_init_index): Call constant_expression_warning for array
2875         designators.
2876         (output_init_element): Fold value.  Set constructor_nonconst as
2877         applicable.  pedwarn for initializers not constant expressions.
2878         Update call to digest_init.  Call constant_expression_warning
2879         where constant initializers are required.
2880         (process_init_element): Use c_save_expr.
2881         (c_finish_goto_ptr): Fold expression.
2882         (c_finish_return): Fold return value.  Update call to
2883         convert_for_assignment.
2884         (c_start_case): Fold switch expression.
2885         (c_process_expr_stmt): Fold expression.
2886         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
2887         ensure statement expression is not evaluated in constant expression.
2888         (build_binary_op): Track whether results are integer constant
2889         expressions or may occur in such, disable folding and wrap results
2890         as applicable.  Fold operands for -Wsign-compare warnings unless
2891         in_late_binary_op.
2892         (c_objc_common_truthvalue_conversion): Handle results folded to
2893         integer constants that are not integer constant expressions.
2894         * doc/extend.texi: Document when typeof operands are evaluated,
2895         that condition of __builtin_choose_expr is an integer constant
2896         expression, and more about use of __builtin_constant_p in
2897         initializers.
2898
2899 2009-03-29  Richard Guenther  <rguenther@suse.de>
2900
2901         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
2902         propagate addresses of array references.
2903
2904 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
2905
2906         * regmove.c (perhaps_ends_bb_p): Remove.
2907         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
2908         from INSN and check that the main loop stays within that basic block.
2909         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
2910         (regmove_forward_pass): Split out from regmove_optimize.  Use
2911         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
2912         (regmove_backward_pass): Split out from regmove_optimize.  Use
2913         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
2914         (regmove_optimize): Simplify.
2915
2916 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2917
2918         PR target/39545
2919         * config/i386/i386.c (classify_argument): Ignore flexible array
2920         member in struct and warn ABI change.
2921
2922 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2923
2924         * config/i386/i386-protos.h (ix86_agi_dependent): New.
2925
2926         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
2927         (ix86_adjust_cost): Updated.
2928
2929 2009-03-29  Jan Hubicka  <jh@suse.cz>
2930
2931         PR middle-end/28850
2932         * tree-pass.h (pass_cleanup_eh): New function.
2933         (remove_unreachable_regions): Break code handling RTL
2934         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
2935         that can not be reached by runtime.
2936         (can_be_reached_by_runtime): New function.
2937         (label_to_region_map): New function.
2938         (num_eh_regions): New function.
2939         (rtl_remove_unreachable_regions): New function.
2940         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
2941         (remove_eh_region): New function.
2942         * except.h: Include sbitmap and vecprim.
2943         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
2944         num_eh_regions): Declare.
2945         * passes.c (init_optimization_passes): Schedule cleanup_eh.
2946         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
2947         * tree-eh.c (tree_remove_unreachable_handlers): New function.
2948         (tree_empty_eh_handler_p): New function.
2949         (cleanup_empty_eh): New function.
2950         (cleanup_eh): New function.
2951         (pass_cleanup_eh): New function.
2952
2953 2009-03-29  Jan Hubicka  <jh@suse.cz>
2954
2955         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
2956         for removed regions.
2957
2958 2009-03-29  Jan Hubicka  <jh@suse.cz>
2959
2960         * except.c (dump_eh_tree): Dump all datastructures.
2961
2962 2009-03-29  Jan Hubicka  <jh@suse.cz>
2963
2964         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
2965         (duplicate_eh_regions_1): Likewise.
2966         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
2967         vector; call EH verification.
2968         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
2969         Be ready for region being removed.
2970
2971 2009-03-29  Jan Hubicka  <jh@suse.cz>
2972
2973         * bitmap.c (bitmap_last_set_bit): New function.
2974         * bitmap.h (bitmap_last_set_bit): Declare.
2975
2976 2009-03-29  David Ayers  <ayers@fsfe.org>
2977
2978         PR objc/27377
2979         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
2980         by calling objc_compare_types and surpress warnings about
2981         incompatible C pointers that are compatible ObjC pointers.
2982         
2983 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
2984
2985         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
2986         call initialize_inline_failed.
2987         (initialize_inline_failed): Move it from here ...
2988         * cgraph.c (initialize_inline_failed): ... to here.
2989         (cgraph_create_edge): Call initialize_inline_failed rather than
2990         setting inline_failed directly.
2991
2992 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2993
2994         PR target/32542
2995         * sysv4.opt (msdata): Improve comment.
2996         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
2997         * sysv4.h (SVR4_ASM_SPEC): Likewise.
2998
2999 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3000
3001         PR target/30451
3002         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
3003         load and store attributes.
3004
3005 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3006
3007         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
3008         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
3009         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
3010         * doc/extend.texi (X86 Built-in Functions): Add index entries for
3011         __builtin_infq and __builtin_huge_valq.
3012
3013 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
3014
3015         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
3016         atmega8m1 devices.
3017         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3018         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
3019
3020 2009-03-28  Xinliang David Li  <davidxl@google.com>
3021
3022         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
3023         (do_dbg_cnt): New function.
3024
3025 2009-03-28  Jan Hubicka  <jh@suse.cz>
3026
3027         Merge from pretty-ipa:
3028
3029         2009-03-27  Jan Hubicka  <jh@suse.cz>
3030
3031         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3032         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
3033         * passes.c (function_called_by_processed_nodes_p): New.
3034         * ipa-pure-const.c (check_call): Fix handling of operands.
3035         (analyze_function): Dump debug output for skipped bodies.
3036         (local_pure_const): Use function_called_by_processed_nodes_p.
3037         * dwarf2out.c (reference_to_unused): Use output.
3038         * passes.c (do_per_function_toporder): Likewise.
3039
3040         2008-11-12  Jan Hubicka  <jh@suse.cz>
3041
3042         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
3043         * ipa-pure-const.c (funct_state_d): Add can throw field; make
3044         state_set_in_source enum
3045         (check_decl): Ignore memory tags; do not set fake looping flags;
3046         dump diagnostics.
3047         (check_operand, check_tree, check_rhs_var, check_lhs_var,
3048         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
3049         (check_call, analyze_function): Rewrite.
3050         (check_stmt): New.
3051         (add_new_function): Update call of analyze_function.
3052         (generate_summary): Add call of analyze_function.
3053         (propagate): Propagate can_throw; handle state_set_in_source correctly.
3054         (local_pure_const): New function.
3055         (pass_local_pure_const): New pass.
3056         * ipa-inline.c (inline_transform): Set after_inlining.
3057         * tree-eh.c (stmt_can_throw_external): New.
3058         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
3059         work with aliasing built.
3060         * tree-flow.h (stmt_can_throw_external): New.
3061         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
3062         and local pure/const pass in early and late optimization queue.
3063
3064 2009-03-28  Martin Jambor  <mjambor@suse.cz>
3065
3066         * fold-const.c (get_pointer_modulus_and_residue): New parameter
3067         allow_func_align.
3068         (fold_binary): Allow function decl aligment consideration is the
3069         second argument is integer constant one.
3070         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
3071         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
3072         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
3073
3074 2009-03-28  Jan Hubicka  <jh@suse.cz>
3075
3076         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
3077         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
3078         * function.h (rtl_data): Add nothrow flag.
3079         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
3080         set DECL_NOTHROW for AVAILABLE functions.
3081
3082 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
3083
3084         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
3085         following vector keyword has expansion starting with pixel or bool
3086         keyword, expand vector to __vector and pixel or bool to __pixel or
3087         __bool.
3088
3089         PR c++/39554
3090         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
3091         warn_if_disallowed_function_p): Removed.
3092         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
3093         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
3094         warning_if_disallowed_function_p.
3095         * flags.h (warn_if_disallowed_function_p,
3096         warn_disallowed_functions): Removed.
3097         * common.opt (Wdisallowed-function-list=): Removed.
3098         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
3099
3100 2009-03-28  Richard Guenther  <rguenther@suse.de>
3101
3102         PR tree-optimization/38723
3103         * tree-ssa-pre.c (compute_avail): Add all default definitions to
3104         the entry block.
3105
3106 2009-03-28  Jan Hubicka  <jh@suse.cz>
3107
3108         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
3109         test introduced by my previous patch.
3110
3111 2009-03-28  Richard Guenther  <rguenther@suse.de>
3112
3113         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
3114         the PHIs value undefined.
3115
3116 2009-03-28  Jan Hubicka  <jh@suse.cz>
3117
3118         * tree-pass.h (pass_fixup_cfg): New pass.
3119         * ipa-inline.c (inline_transform): Set
3120         always_inline_functions_inlined/after_inlining.
3121         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
3122         (pass_fixup_cfg): New pass.
3123         * passes.c (init_optimization_passes): Add fixup_cfg.
3124
3125 2009-03-28  Richard Guenther  <rguenther@suse.de>
3126
3127         PR tree-optimization/38458
3128         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
3129         argument use the arguments copy-of value.
3130
3131 2009-03-28  Richard Guenther  <rguenther@suse.de>
3132
3133         PR tree-optimization/38180
3134         * tree-ssa-ccp.c (get_default_value): Simplify.
3135         (likely_value): Likewise.
3136         (surely_varying_stmt_p): Properly handle VOP case.
3137         (ccp_initialize): Likewise.
3138         (ccp_fold): Handle propagating through *&.
3139         (fold_const_aggregate_ref): Also handle decls.
3140
3141 2009-03-28  Jan Hubicka  <jh@suse.cz>
3142
3143         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3144         * cgraph.h (cgraph_node): Likewise.
3145         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
3146         (cgraph_reset_node): Use process flag.
3147         (cgraph_mark_functions_to_output): Likewise.
3148         (cgraph_expand_function): Likewise.
3149         (cgraph_expand_all_functions): Likewise.
3150         (cgraph_output_in_order): Likewise.
3151         * dwarf2out.c (reference_to_unused): Likewise.
3152         * passes.c do_per_function_toporder): Likewise.
3153
3154 2009-03-28  Jan Hubicka  <jh@suse.cz>
3155
3156         Bring from lto-branch:
3157
3158         2008-09-03  Doug Kwan  <dougkwan@google.com>
3159
3160         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
3161         enums instead of reason strings.
3162         * cgraph.c (cgraph_create_edge): Same.
3163         (cgraph_inline_failed_string): New function.
3164         * cgraph.h (cgraph_inline_failed_t): New enum type.
3165         (cgraph_inline_failed_string): New prototype.
3166         (struct cgraph_edge): Change type of INLINED_FAILED from constant
3167         char pointer to cgraph_inline_failed_t.
3168         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
3169         (cgraph_default_inline_p): Ditto.
3170         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
3171         to cgraph_inline_failed_t pointer.
3172         * cif-code.def: New file.
3173         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
3174         reason string.
3175         (cgraph_check_inline_limits): Change type of REASON to pointer to
3176         cgraph_inline_failed_t.  Replace reason strings with enums.
3177         (cgraph_default_inline_p): Ditto.
3178         (cgraph_recursive_inlining_p): Ditto.
3179         (update_caller_keys): Change type of FAILED_REASON to
3180         cgraph_inline_failed_t.
3181         (cgraph_set_inline_failed): Change type of REASON to pointer to
3182         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
3183         convert enums to strings for text output.
3184         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
3185         to be of type cgraph_inline_failed_t.  Replace reason strings with
3186         enums.  Call cgraph_inline_failed_string to covert enums
3187         to strings for text output.
3188         (cgraph_decide_inlining): Replace reason strings with enums.
3189         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
3190         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
3191         for text output.
3192         * tree-inline.c (expand_call_inline): Change type of REASON
3193         to cgraph_inline_failed_t.  Replace reason strings with enums.
3194         Call cgraph_inline_failed_string for text output.
3195         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
3196         (cgraph.o): Ditto.
3197
3198 2009-03-28  Jan Hubicka  <jh@suse.cz>
3199
3200         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
3201         cgraph_clone_node): Remove master clone handling.
3202         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3203         * cgraph.h (master_clone): Remove.
3204         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3205         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
3206         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3207
3208 2009-03-28  Jan Hubicka  <jh@suse.cz>
3209
3210         * cgraph.c (cgraph_function_body_availability): Functions declared
3211         inline are always safe to assume that it is not going to be replaced.
3212
3213 2009-03-28  Richard Guenther  <rguenther@suse.de>
3214
3215         PR tree-optimization/38513
3216         * tree-ssa-pre.c (eliminate): Remove redundant stores.
3217         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3218         EXC_PTR_EXPR and FILTER_EXPR.
3219         (get_ref_from_reference_ops): Likewise.
3220
3221 2009-03-28  Richard Guenther  <rguenther@suse.de>
3222
3223         PR tree-optimization/38968
3224         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
3225         Use FLOOR_MOD_EXPR to compute misalignment.
3226
3227 2009-03-28  Richard Guenther  <rguenther@suse.de>
3228
3229         PR tree-optimization/37795
3230         * tree.h (combine_comparisons): Declare.
3231         * fold-const.c (combine_comparisons): Export.
3232         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
3233         comparisons.
3234         (ifcombine_iforif): Use combine_comparisons.
3235
3236 2009-03-28  Jan Hubicka  <jh@suse.cz>
3237
3238         * tree-eh.c (inlinable_call_p): New function.
3239         (make_eh_edges): Use it.
3240         (verify_eh_edges): Use it.
3241         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
3242         * except.c (reachable_next_level): Add inlinable_function argument
3243         (sjlj_find_directly_reachable_regions): Update.
3244         (add_reachable_handler): Do not set saw_any_handlers.
3245         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
3246         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
3247         Add new inlinable call parameter.
3248         (can_throw_internal, can_throw_external): Update.
3249         * except.h (can_throw_internal_1, can_throw_external_1,
3250         foreach_reachable_handler): Update declaration.
3251
3252 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
3253
3254         * config/arm/t-arm-coff, config/h8300/coff.h,
3255         config/i386/i386-aout.h, config/i386/i386-coff.h,
3256         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
3257         config/pdp11/2bsd.h, config/rs6000/aix41.h,
3258         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
3259         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
3260         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
3261         sys-types.h: Remove.
3262         * Makefile.in: Remove protoize and fixproto support and references
3263         in comments.
3264         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
3265         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
3266         Remove.
3267         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
3268         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
3269         unprotoize$(exeext).
3270         (rest.encap): Don't depend on $(STMP_FIXPROTO)
3271         (.PHONY): Don't depend on proto.
3272         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
3273         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
3274         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
3275         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
3276         build/gen-protos.o, build/scan.o, xsys-protos.h,
3277         build/fix-header$(build_exeext), build/fix-header.o,
3278         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
3279         stmp-install-fixproto): Remove.
3280         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
3281         SYSCALLS.c or fixproto files.
3282         (install-common): Don't install protoize.
3283         (install-headers-tar, install-headers-cpio, install-headers-cp):
3284         Don't depend on $(STMP_FIXPROTO).
3285         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
3286         install fixproto files or write out fixproto settings.
3287         (uninstall): Don't uninstall protoize.
3288         * config.gcc (use_fixproto): Remove.
3289         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
3290         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
3291         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
3292         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
3293         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
3294         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
3295         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
3296         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
3297         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
3298         * config/t-vxworks (STMP_FIXPROTO): Remove.
3299         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
3300         STMP_FIXPROTO): Remove.
3301         * config.in, configure: Regenerate.
3302         * crtstuff.c (gid_t, uid_t): Don't undefine.
3303         * doc/install.texi: Change m68k-coff to m68k-elf in example.
3304         (arm-*-coff, arm-*-aout: Remove target entries.
3305         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
3306         Remove mention of AIX 4.1.
3307         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
3308         * doc/invoke.texi (Running Protoize): Remove.
3309         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
3310         (Protoize Caveats): Remove.
3311         * tsystem.h: Update comments on headers assumed to exist.
3312
3313 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3314
3315         * genautomata.c: Add a new year to the copyright.  Add a new
3316         reference.
3317         (struct insn_reserv_decl): Add comments for member bypass_list.
3318         (find_bypass): Remove.
3319         (insert_bypass): New.
3320         (process_decls): Use insert_bypass.
3321         (output_internal_insn_latency_func): Output all bypasses with the
3322         same input insn in one switch case.
3323
3324         * rtl.def (define_bypass): Describe bypass choice.
3325         * doc/md.texi (define_bypass): Ditto.
3326
3327 2009-03-27  Richard Guenther  <rguenther@suse.de>
3328
3329         * gimplify.c (mark_addressable): Export.
3330         * tree-flow.h (mark_addressable): Declare.
3331         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
3332         * tree-ssa.c (verify_phi_args): Verify that address taken
3333         variables have TREE_ADDRESSABLE set.
3334
3335 2009-03-27  Richard Guenther  <rguenther@suse.de>
3336
3337         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
3338         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
3339         Do not mark decls TREE_ADDRESSABLE.
3340         (build_fold_addr_expr): Adjust.
3341         (fold_addr_expr): Remove.
3342         (fold_unary): Use build_fold_addr_expr.
3343         (fold_comparison): Likewise.
3344         (split_address_to_core_and_offset): Likewise.
3345         * coverage.c (tree_coverage_counter_addr): Mark the array decl
3346         TREE_ADDRESSABLE.
3347         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
3348         (gimplify_modify_expr_to_memcpy): Mark source and destination
3349         addressable.
3350         * omp-low.c (create_omp_child_function): Mark the object decl
3351         TREE_ADDRESSABLE.
3352         (lower_rec_input_clauses): Mark the var we take the address of
3353         TREE_ADDRESSABLE.
3354         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
3355
3356 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3357
3358         PR middle-end/39315
3359         * cfgexpand.c (expand_one_stack_var_at): Change alignment
3360         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
3361
3362 2009-03-27  Richard Guenther  <rguenther@suse.de>
3363
3364         PR tree-optimization/39120
3365         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
3366         constraints.