OSDN Git Service

b8cfa97469911f6503b25e327e4013290ede6998
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
2
3         PR tree-optimization/31383
4         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
5         to have the same length.
6
7 2007-03-30  Jan Hubicka  <jh@suse.cz>
8
9         PR middle-end/PR30700
10         * dwarf2out.c (reference_to_unused): Ask cgraph for functions 
11         availablility; add more sanity checking; ask varpool only about
12         VAR_DECL.
13
14 2007-03-29  Richard Henderson  <rth@redhat.com>
15
16         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
17         to decide, but __SIZEOF_LONG_LONG__.
18
19 2007-03-29  Richard Henderson  <rth@redhat.com>
20
21         * emutls.c (struct __emutls_array): New.
22         (emutls_destroy): Use it instead of casting element 0 from void*.
23         (__emutls_get_address): Likewise.
24
25 2007-03-29  Richard Henderson  <rth@redhat.com>
26
27         * varasm.c (initializer_constant_valid_p): Don't deny
28         DECL_DLLIMPORT_P on functions.
29
30         * config/i386/cygming.h: Remove function declarations.
31         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
32         (ASM_OUTPUT_LABELREF): Remove.
33         (COMMON_ASM_OP): Remove.
34         (ASM_OUTPUT_COMMON): Remove.
35         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
37         (ASM_DECLARE_FUNCTION_NAME): Likewise.
38         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
39         Rename from TARGET_ENCODE_SECTION_INFO.
40         * config/i386/netware.h: Likewise.
41         * config/i386/i386-protos.h: Update.
42         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
43         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
44         (legitimate_constant_p): Reject dllimports.
45         (dllimport_map, get_dllimport_decl): New.
46         (legitimize_dllimport_symbol): New.
47         (legitimize_address, ix86_expand_move): Use it.
48         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
49         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
50         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
51         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
52         * config/i386/predicates.md (constant_call_address_operand): Only
53         accept symbols; reject dllimport_p symbols.
54         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
55         i386_pe_maybe_record_exported_symbol.
56         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
57         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
58         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
59         trust the setting of DECL_DLLIMPORT_P.
60         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
61         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
62         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
63         tidy the argument scanning loop.
64         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
65         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
66         (i386_pe_strip_name_encoding): Remove.
67         (i386_pe_binds_local_p): New.
68         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
69         (i386_pe_output_labelref): Remove.
70         (i386_pe_asm_output_aligned_decl_common): New.
71         (i386_pe_maybe_record_exported_symbol): Rename from
72         i386_pe_record_exported_symbol; check for dllexported symbols.
73
74 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
75
76         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
77         add comment explaining why vsnprintf cannot be used.
78
79 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
80
81         PR tree-optimization/30666
82         * tree.c (build_complex_type): When creating type names for DWARF2
83         debug info, create TYPE_DECLs for TYPE_NAME instead of
84         IDENTIFIER_NODEs.
85         (build_common_tree_nodes_2): Use build_complex_type when building
86         predefined complex types, to preserve canonical types.
87
88 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
89
90         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
91         (noce_get_alt_condition): Look at it to determine whether to
92         reverse the condition or not.
93         (noce_get_condition): Substitute the truth for lies.
94         (noce_find_if_block): Set the then_else_reversed field.
95
96 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
97
98         * config/fr30/fr30.md (movdi): Do not accept immediates as the
99         destination of this insn.
100         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
101         than calling gen_rtx_SET directly.  Use r0 to hold the value of
102         'address + 4' rather than a stack based temporary which can be
103         mis-optimized away.
104         
105 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
106
107         * config/s390/s390.c (s390_secondary_input_reload_class,
108         s390_secondary_output_reload_class): Functions removed.
109         (s390_secondary_reload): New function.
110         (TARGET_SECONDARY_RELOAD): Target macro defined.
111         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
112         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
113         * config/s390/s390.md ("reload_outti", "reload_outdi",
114         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
115         "reload_out<mode>"): Expanders removed.
116         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
117         "reload<mode>_nonoffmem_out"): Expanders added.
118
119 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
120
121         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
122         SRC->DEST replacement failed anyway.
123
124 2007-03-28  Mike Stump  <mrs@apple.com>
125
126         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
127         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
128         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
129
130 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
131
132         * config.gcc: Accept barcelona as a variant of amdfam10.
133         * config/i386/i386.c (override_options): Likewise.
134         * doc/invoke.texi: Likewise.
135         
136 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
137
138         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
139         offsets for BIT_FIELD_REF and COMPONENT_REF.
140
141 2007-03-28  Richard Guenther  <rguenther@suse.de>
142
143         * tree.c (is_global_var): Move ...
144         * tree-flow-inline.h (is_global_var): ... here.
145         * tree.h (is_global_var): Remove declaration.
146
147 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
148
149         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
150         option.
151         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
152         * config/i386/i386.c (ix86_tune_features): Initialize new
153         tuning option.
154         * config/i386/predicates.md (promotable_binary_operator): Use
155         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
156
157 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
158
159         PR target/31380
160         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
161
162 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
163
164         * config/fr30/fr30.md (movsi_internal): Change destination
165         constraint from m to V and add m to the end. 
166
167 2007-03-28  Christian Bruel  <christian.bruel@st.com>
168
169         * config/sh/sh.md (movsi_i): Fix type attribute.
170
171 2007-03-28  Christian Bruel  <christian.bruel@st.com>
172
173         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
174         (movsf_ie): Likewise.
175
176 2007-03-28  Christian Bruel  <christian.bruel@st.com>
177
178         * config.gcc: Add sh4-300 to multilib.
179         * config/sh/t-mlib-sh4-300: New file.
180
181 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
182
183         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
184         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
185         fix_trunc<mode>di2.
186         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use 
187         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
188         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
189         "fixuns_trunctddi2"): Whitespace fix.
190
191 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
192
193         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
194         the definition of struct sh_args.
195         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
196         CALL_COOKIE_INT_REG_GET): Likewise.
197
198 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
199
200         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
201         transformations are applied successfully.
202
203 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
204
205         * tree.c (tree_contains_struct): Permit 512 tree codes.
206         * tree.h (tree_contains_struct): Ditto.
207         (MAX_TREE_CODES): Ditto.
208         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
209         SPARE member to store remaining padding bits.
210
211 2007-03-27  Anatoly Sokolov <aesok@post.ru>
212
213         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4' 
214         architecture.
215
216 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
217
218         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
219         * configure: Regenerate.
220
221         * configure: Regenerate using the correct version of autoconf.
222
223 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
224
225         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
226         pointer regs.
227         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
228         regs to "__SP_L__" and "__SP_H__".
229
230 2007-03-27  Richard Guenther  <rguenther@suse.de>
231
232         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
233         computations with it with a HOST_WIDE_INT variable.  
234
235 2007-03-26  Mike Stump  <mrs@apple.com>
236
237         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
238         objective-c-header, objective-c++-header and objc++-cpp-output
239         support.
240         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
241
242 2007-03-26  Richard Henderson  <rth@redhat.com>
243
244         PR target/31361
245         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
246         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
247         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
248         IX86_BUILTIN_PSRLQ128): New.
249         (ix86_init_mmx_sse_builtins): Add them.
250         (ix86_expand_builtin): Expand them.
251         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
252         operand 2 be TImode.
253         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
254         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
255         _mm_srli_epi64): Mark __B const.
256         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
257         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
258         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use 
259         new two-vector shift builtins.
260
261 2007-03-26  Ian Lance Taylor  <iant@google.com>
262
263         PR tree-optimization/31345
264         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
265         [+INF, +INF(OVF)] into VARYING.
266
267 2007-03-26  Zack Weinberg  <zackw@panix.com>
268
269         * gengtype-parse.c: New file.
270         * gengtype-yacc.y: Delete.
271         * gengtype-lex.l: Don't include gengtype-yacc.h.
272         Define YY_DECL and yyterminate appropriately for recursive
273         descent parser.  yylval is now a string out-parameter to yylex.
274         (HWS, EOID): New shorthand.
275         (IWORD): Add a couple more types.
276         (yylex): Add a setup stanza.  Remove the complex rules for
277         detecting GTY'ed types and typedefs; replace with simple
278         keyword detectors.  Adjust everything for the changed
279         definition of yylval.  Ignore all pp-directives, not just #define.
280         (yyerror): Delete.
281         (parse_file): Rename yybegin; do not call yyparse.
282         (yyend): New.
283         * gengtype.c (xasprintf): Export again.
284         (this_file): New.  Use everywhere __FILE__ was being used.
285         (get_lang_bitmap): Special case types defined in gengtype.c.
286         (do_typedef, new_structure): Suppress definition of certain types.
287         (new_structure): Improve diagnostics of duplicate definitions.
288         Make sure location_s is associated with input.h.
289         (nreverse_pairs, define_location_structures): New functions.
290         (main): Improve tagging of kludge types.  Remove old kludges
291         for input.h types; use define_location_structures.
292         * gengtype.h: Update prototypes.  Define token codes here.
293         * Makefile.in: Remove all references to gengtype-yacc.
294         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
295         and gengtype.
296         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
297         add GTY((skip)) to the field that's only conditionally there.
298         * doc/install.texi: Document that Bison is no longer required
299         unless building treelang.
300
301         * gengtype.c: Don't include gtyp-gen.h.
302         (srcdir): Declare here.
303         (base_files, lang_dir_names): Allocate dynamically.
304         (gt_files, num_gt_files, num_lang_dirs): New globals.
305         (measure_input_list, read_input_line, read_input_list)
306         (set_lang_bitmap): New functions.
307         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
308         simplify, relying on read_input_list to set up the bitmaps.
309         (main): Arguments are no longer unused.  Check for correct number
310         of command line arguments, set srcdir and srcdir_len, then call
311         read_input_list, before doing anything else.  No need to worry
312         about duplicates in main loop.
313         * configure.ac: Simplify the calculation of all_gtfiles.
314         Put language tags in there.  Don't set or substitute
315         all_gtfiles_files_langs or all_gtfiles_files_frags.
316         * Makefile.in: Revamp the way gengtype is invoked, now that it
317         takes a file on its command line with a much simpler format.
318         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
319         (GTFILES): Remove duplicates and C source files.
320         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
321         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
322         * configure: Regenerate.
323
324         * gengtype.h: Remove all type definitions to gengtype.c; leave
325         only definitions of options_p, type_p, and pair_p as opaque
326         pointers.  Update prototypes.
327         * gengtype.c: Many type definitions moved here from gengtype.h.
328         Consolidate type definitions at the top of the file.
329         (xvasprintf): Delete.
330         (xasprintf): Make static.
331         (create_nested_pointer_option): Add 'next' parameter.
332         (create_field_all, create_field_at): New functions.
333         (create_field): Now a thin wrapper around create_field_all.
334         (create_optional_field): Rename create_optional_field_ and add
335         line argument.  Original name is now a macro which supplies
336         __LINE__.
337         (oprintf): Use vsnprintf directly.
338         (close_output_files): Use fatal rather than perror/exit.
339         (note_def_vec, note_def_vec_alloc): Use create_field_at.
340         (main): Set progname.  Don't use exit.
341         * gengtype-yacc.y (struct_fields): Use create_field_at.
342         (option, optionseqopt): Delete.
343         (optionseq): Consolidate productions from option here so we
344         can use the first argument to create_option.
345
346         * gengtype-lex.l: Distinguish unions from structures in the
347         token type.  Don't call find_structure; return the tag as a string.
348         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
349         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
350         Reorganize typedef_struct production accordingly.
351         Use create_nested_ptr_option.
352         * gengtype.c (create_nested_ptr_option): New function.
353         * gengtype.h: Declare it.
354
355         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
356         (string_type): Don't declare.
357         (do_scalar_typedef): Declare.
358         (create_scalar_type): Update prototype.
359         * gengtype.c (string_type): Make static.
360         (scalar_nonchar, scalar_char): New.
361         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
362         (resolve_typedef): Use scalar_nonchar for error recovery.
363         (create_scalar_type): Remove name_len field.  Return scalar_char
364         or scalar_nonchar as appropriate.
365         (adjust_field_type): Look at scalar_is_char boolean to decide whether
366         to use string_type.
367         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
368         whenever possible.
369         (main): Initialize scalar_char and scalar_nonchar before calling
370         gen_rtx_next.
371         * gengtype-lex.l: Adjust for removal of second argument to
372         create_scalar_type.  Use yylval.s instead of yylval.t when
373         returning SCALAR.
374         * gengtype-yacc.y: Type of SCALAR is string.  Call
375         create_scalar_type from type:SCALAR rule.  Adjust for removal of
376         second argument to create_scalar_type.
377
378         * vec.h: Remove all #if IN_GENGTYPE blocks.
379         Add comment saying that changes may require adjustments to gengtype.
380         * gengtype.c: Don't include coretypes.h or tm.h.
381         Add comment to inclusion of errors.h.
382         (note_def_vec, note_def_vec_alloc): New functions.
383         * gengtype.h: Declare new functions.
384         * gengtype-lex.l: Don't include coretypes.h.
385         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
386         Delete.
387         (update_lineno): Remove unnecessary prototype.
388         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
389         (VEC rule): Just return VEC_TOKEN.
390         * gengtype-yacc.y (VEC_TOKEN): New token type.
391         (type): Add a production for VEC(a,b).
392         * Makefile.in: Update dependencies.
393
394         * gengtype-lex.l: Remove rules for parsing pointer-to-function
395         typedefs that use the old PARAMS macro.
396
397         * gengtype-lex.l: Remove all rules and states relating to yacc
398         input files.
399         * gengtype-yacc.y: Similarly.
400         * gengtype.c (note_yacc_type): Delete function.
401         * gengtype.h: Update prototypes.
402
403 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
404
405         * tree-pretty-print.c (dump_generic_node): Report precision of
406         unnamed integer types.
407
408 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
409
410         * ifcvt.c (noce_try_store_flag_constants): Don't check
411         no_new_pseudos here.
412         (noce_try_store_flag_constants): Don't check no_new_pseudos.
413         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
414         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
415         noce_try_sign_mask): Likewise.
416         (if_convert): Check no_new_pseudos here.
417
418         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
419         Remove prototypes.
420         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
421         (noce_get_condition): Handle new then_else_reversed argument.
422         (noce_init_if_info): Remove, fold into noce_find_if_block.
423         (noce_process_if_block): Take a struct noce_if_info as the
424         argument.  Don't set up one based on ce_if_info.  Update pointer
425         references accordingly.
426         (cond_move_process_if_block): Likewise.
427         (process_if_block): Removed.
428         (find_if_block): Removed.  Move functionality two new functions,
429         noce_find_if_block and cond_exec_find_if_block.
430         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
431         blocks and the symmetric IF-ELSE-JOIN case.
432         (cond_exec_find_if_block): Also new function mostly based on old
433         find_if_block and process_if_block.
434         (find_if_header): Replace find_if_block call with separately
435         guarded calls to noce_find_if_block and cond_exec_find_if_block.
436         (find_cond_trap): Update noce_get_condition call.
437         (dead_or_predicable): Likewise.
438
439 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
440
441         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
442         Remove.
443         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
444         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
445         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
446         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
447         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
448         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
449         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
450         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
451         __builtin_ia32_psrad128 builtins.
452
453 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
454
455         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
456         * config/i386/constraints.md
457         (define_constraint "I"): Use IN_RANGE macro.
458         (define_constraint "J"): Ditto.
459         (define_constraint "K"): Ditto.
460         (define_constraint "M"): Ditto.
461         (define_constraint "N"): Ditto.
462         (define_constraint "O"): Ditto.
463         * config/i386/predicates.md
464         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
465         (define_predicate "const_0_to_3_operand"): Ditto.
466         (define_predicate "const_0_to_7_operand"): Ditto.
467         (define_predicate "const_0_to_15_operand"): Ditto.
468         (define_predicate "const_0_to_63_operand"): Ditto.
469         (define_predicate "const_0_to_255_operand"): Ditto.
470         (define_predicate "const_1_to_31_operand"): Ditto.
471         (define_predicate "const_2_to_3_operand"): Ditto.
472         (define_predicate "const_4_to_7_operand"): Ditto.
473
474 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
475
476         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
477         in SImode for save_world.
478         * config/rs6000/altivec.md (save_world, restore_world): Convert to
479         LR hard reg.
480
481 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
482
483         PR tree-optimization/30784
484         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
485         BIT_FIELD_REF.
486
487 2007-03-25  Revital Eres  <eres@il.ibm.com>
488
489         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
490           Fold movement_possibility function into it.
491
492 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
493
494         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
495         (load_macho_picbase_{si,di}): Convert to LR hard reg.
496         (call_indirect_nonlocal_darwin64): Same.
497         (call_nonlocal_darwin64): Same.
498         (call_value_indirect_nonlocal_darwin64): Same.
499         (call_value_nonlocal_darwin64): Same.
500         (sibcall_nonlocal_darwin64): Same.
501         (sibcall_value_nonlocal_darwin64): Same.
502         (sibcall_symbolic_64): Same.
503         (sibcall_value_symbolic_64): Same.
504         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
505         LR pseudo.
506         (rs6000_emit_load_toc_table): Same.
507         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
508         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
509         (mull_call): Same.
510         (divss_call): Same.
511         (divus_call): Same.
512         (quoss_call): Same.
513         (quous_call): Same.
514         (load_toc_v4_pic_si): Same
515         (load_toc_v4_PIC_1): Same.
516         (load_toc_v4_PIC_1b): Same.
517         (call_indirect_aix{32,64}): Same.
518         (call_value_indirect_aix{32,64}): Same.
519         (call): Same.
520         (call_value): Same.
521         (call_local{32,64}): Same.
522         (call_value_local{32,64}): Same.
523         (call_indirect_nonlocal_aix{32,64}): Same.
524         (call_nonlocal_aix{32,64}): Same.
525         (call_value_indirect_nonlocal_aix{32,64}): Same.
526         (call_value_nonlocal_aix{32,64}): Same.
527         (call_indirect_nonlocal_sysv<mode>): Same.
528         (call_nonlocal_sysv<mode>): Same.
529         (call_value_indirect_nonlocal_sysv<mode>): Same.
530         (call_value_nonlocal_sysv<mode>): Same.
531         (sibcall): Same.
532         (sibcall_local{32,64}): Same.
533         (sibcall_value_local{32,64}): Same.
534         (sibcall_nonlocal_aix{32,64}): Same.
535         (sibcall_value_nonlocal_aix{32,64}): Same.
536         (sibcall_nonlocal_sysv<mode>): Same.
537         (sibcall_value): Same.
538         (sibcall_value_nonlocal_sysv<mode>): Same.
539
540 2007-03-24  Paul Brook  <paul@codesourcery.com>
541
542         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
543         * config/arm/linux-eabi.h: Remove legacy syscall hack.
544
545 2007-03-24  Richard Henderson  <rth@redhat.com>
546
547         * config/ia64/constraints.md: New file.
548         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
549         satisfies_constraint_?.
550         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
551         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
552         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
553         ia64_output_mi_thunk): Likewise.
554         (ia64_const_ok_for_letter_p): Remove.
555         (ia64_const_double_ok_for_letter_p): Remove.
556         (ia64_extra_constraint): Remove.
557         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
558         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
559         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
560         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
561         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
562         EXTRA_MEMORY_CONSTRAINT): Remove.
563         * config/ia64/ia64.md: Include constriants.md.  Replace
564         CONST_OK_FOR_? with satisfies_constraint_?.
565
566 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
567             H.J. Lu  <hongjiu.lu@intel.com>
568
569         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
570         DPD or BID name.
571         (name macros): Use DPD_BID_NAME to convert names properly.
572
573         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
574         decimal floating point format.
575         (init_floating_libfuncs): Change decimal functions so that they
576         have a "bid_" prefix if the decimal system uses the BID format,
577         and "dpd_" prefix if the decimal system uses the DPD format.
578         (init_interclass_conv_libfuncs): Ditto.
579         (init_intraclass_conv_libfuncs): Ditto.
580
581         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
582         using the BID format.
583
584         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
585         whether we are using the BID decimal format.
586         * configure: Regenerate.
587
588         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
589         the compiler has decimal floating point enabled.  Define
590         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
591         instead of DPD.
592
593         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
594         using the BID format.
595
596         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
597         whether we are using the BID decimal format.
598         * configure: Regenerate.
599
600         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
601         the compiler has decimal floating point enabled.  Define
602         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
603         instead of DPD.
604
605         * doc/install.texi (--enable-decimal-float): Document BID and DPD
606         options, and that it is enabled for i386/x86_64 systems.
607
608         * Makefile.in (enable_decimal_float): New.
609         (DECNUMFMT): New.
610         (DECNUMINC): Add  -I$(DECNUMFMT).
611         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
612         to $(DECNUMFMT) from $(DECNUM).
613
614         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
615         Substitute enable_decimal_float.
616         * configure: Regenerated.
617
618         PR other/30529
619         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
620         unsigned long.
621
622         * configure.ac: Enable decimal float for x86_64-*-linux*.
623         * configure: Regenerated.
624
625         PR other/30530
626         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
627         decimal128ClearSign to flip and clear the sign bit in decimal128.
628         (decimal_real_maxval): Set decimal128SetSign to set the sign
629         bit in decimal128.
630
631 2007-03-23  Ian Lance Taylor  <iant@google.com>
632
633         * fold-const.c (fold_binary): Correct warning for X - c >= X.
634
635 2007-03-23  Ian Lance Taylor  <iant@google.com>
636
637         * tree-dump.c (dump_files): Correct comment.
638
639 2007-03-23  Ian Lance Taylor  <iant@google.com>
640
641         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
642
643 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
644
645         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
646         in cfglayout mode.  Don't go into and out of cfglayout mode.
647         Link the blocks in the order of the constructed traces.
648         (rest_of_handle_tracer): Adjust call to tracer.
649         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
650         Don't go into cfglayout mode.
651         (rtl_loop_done): Don't go out of cfglayout mode.
652         * cfglayout.c (relink_block_chain): New function, split out from...
653         (fixup_reorder_chain): ...here.  Remove redundant checking.
654         (cfg_layout_finalize): Don't clear the header, footer, and aux
655         fields here, move the code to do so to relink_block_chain.  Likewise
656         for free_original_copy_tables.
657         * rtl.h (tracer): Update prototype.
658         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
659         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
660         mode.  Use relink_block_chain to serialize the CFG according to the
661         new basic block order.  Move targetm.cannot_modify_jumps_p check from
662         here...
663         (gate_handle_reorder_blocks): ...to here.
664         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
665         from here...
666         (gate_duplicate_computed_gotos): ...to here.
667         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
668         something always changes when going into and out of cfglayout mode.
669         Perform an expensive cfg cleanup while going into cfglayout mode.
670         Always update liveness information on HAVE_conditional_execution
671         targets.  Reserialize the basic blocks and go out of cfglayout mode.
672         * reg-stack.c: Include cfglayout.h.
673         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
674         the call to reorder_basic_blocks.
675         * basic-block.h (reorder_basic_blocks): Update prototype.
676         (relink_block_chain): New prototype.
677         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
678
679 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
680
681         * config/mips/mips.md (type, hazard, *movdi_32bit,
682         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
683         *movhi_internal, *movqi_internal, *movsf_hardfloat,
684         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
685         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
686         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
687         applicable.
688         (movcc): Change first xfer to multi.
689         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
690         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
691         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
692         config/mips/generic.md: Change reservations using "xfer" to use
693         "mfc,mtc".
694         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
695         using match_operand.
696         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
697         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
698         examining mode.
699         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
700
701 2007-03-22  Richard Henderson  <rth@redhat.com>
702
703         * config/i386/i386.c: Remove unnecessary function declarations.
704         Move targetm definition, and all related macros, to the end of
705         the file.  Resort some functions to put definitions before uses.
706         (ix86_attribute_table): Make static.  Move to end of file.
707         (ix86_gimplify_va_arg): Make static.
708
709 2007-03-22  Richard Henderson  <rth@redhat.com>
710
711         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
712         don't increase local_regparm with force_align_arg_pointer check.
713         (ix86_function_sseregparm): Assert 32-bit.
714         (type_has_variadic_args_p): New.
715         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
716         type_has_variadic_args_p.
717         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
718         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
719         use memset instead.  Do maybe_vaarg check first; skip attribute
720         tests if true; skip attribute tests for 64-bit.
721         (construct_container): Remove TARGET_DEBUG_ARG.
722         (function_arg_advance_32, function_arg_advance_64): Split out ...
723         (function_arg_advance): ... from here.
724         (function_arg_32, function_arg_64): Split out ...
725         (function_arg): ... from here.
726         (ix86_pass_by_reference): Tidy.
727         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
728         (function_value_32): New, from parts of ix86_function_value
729         and ix86_value_regno.
730         (function_value_64): New, from parts of ix86_function_value
731         and ix86_libcall_value.
732         (ix86_function_value_1): New.
733         (ix86_function_value, ix86_libcall_value): Use it.
734         (return_in_memory_32, return_in_memory_64): Split out ...
735         (ix86_return_in_memory): ... from here.
736         (ix86_struct_value_rtx): Skip for 64-bit.
737         (ix86_libcall_value, ix86_value_regno): Remove.
738         (setup_incoming_varargs_64): Split out ...
739         (ix86_setup_incoming_varargs): ... from here.
740         (ix86_va_start): Remove TARGET_DEBUG_ARG.
741         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
742         * config/i386/i386-protos.h (ix86_function_value): Remove.
743         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
744
745 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
746
747         PR other/23572
748         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
749         infinities not supported, otherwise emit warning if -Woverflow. On
750         underflow, emit warning if -Woverflow.
751         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
752         and 0 otherwise.
753         * real.h (real_from_string): Update declaration
754
755 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
756             Richard Henderson  <rth@redhat.com>
757
758         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
759         * calls.c (compute_argument_block_size, expand_call,
760         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
761         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
762         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
763         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
764         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
765         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
766         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
767         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
768         Set to 1.
769
770 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
771
772         * c-incpath.c (add_sysroot_to_chain): New.
773         (merge_include_chains): Add sysroot argument.  Call
774         add_sysroot_to_chain if sysrooted.
775         (register_include_chains): Update call to merge_include_chains.
776         * doc/cppopts.texi: Document use of '=' in include directory
777         arguments.
778
779 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
780
781         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
782         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
783         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
784         insn pattern using X87MODEF12 mode macro.
785
786 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
787
788         * regmove.c (regmove_optimize): Use reg_mentioned_p
789         instead of reg_overlap_mentioned_p for DST.
790
791 2007-03-21  Mike Stump  <mrs@apple.com>
792
793         * c.opt: Fixup for Objective-C/C++.
794
795 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
796
797         * explow.c (convert_memory_address): Fold memory reference when
798         POINTERS_EXTEND_UNSIGNED < 0
799
800 2007-03-21  Richard Henderson  <rth@redhat.com>
801
802         PR target/31245
803         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
804         * config/i386/mmintrin.h (__m64): Likewise.
805         * config/i386/xmmintrin.h (__m128): Likewise.
806
807 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
808
809         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
810         (VXWORKS_OS_CPP_BUILTINS): Define.
811         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
812         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
813
814 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
815
816         * rtl.h (constant_pool_reference_p): Delete.
817         (find_constant_src): Declare.
818         * rtlanal.c (find_constant_src): New function.
819         * simplify-rtx.c (constant_pool_reference_p): Delete.
820         * config/i386/i386.md: Use find_constant_src instead of
821         constant_pool_reference_p/avoid_constant_pool_reference pairs.
822
823 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
824
825         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
826         * c-cppbuiltin.c (c_cpp_builtins): Define them.
827
828 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
829
830         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
831         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
832         (arm_elf_asm_constructor): Use it.
833         (arm_elf_asm_destructor): New function.
834
835 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
836
837         * jump.c (mark_jump_label): Treat SEQUENCE specially.
838
839 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
840
841         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
842
843 2007-03-19  Andrew Haley  <aph@redhat.com>
844
845         PR tree-optimization/31264
846         * tree-vrp.c (register_edge_assert_for_1): Don't look though
847         VIEW_CONVERT_EXPRs.
848
849 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
850
851         PR rtl-optimization/30907
852         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
853         (fwprop_init): Always call loop_optimizer_initialize.
854         (fwprop_done): Always call loop_optimizer_finalize.
855         (fwprop): We always have loop info now.
856         (gate_fwprop_addr): Remove.
857         (pass_fwprop_addr): Use gate_fwprop as gate.
858
859         PR rtl-optimization/30841
860         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
861         df_chain_alloc): Call df_reorganize_refs unconditionally.
862         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
863         refs_organized to refs_organized_size.
864         (df_ref_create_structure): Use refs_organized_size instead of
865         bitmap_size if refs had been organized, and keep refs_organized_size
866         up-to-date.
867         * df.h (struct df_ref_info): Change refs_organized to
868         refs_organized_size.
869         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
870         bitmap_size.
871
872 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
873
874         * except.c (output_function_exception_table): Do not reference the
875         EH personality routine for functions that do not require an
876         exception table.
877
878 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
879
880         PR c/30762
881         * c-typeck.c (convert_for_assignment): Call comptypes for
882         RECORD_TYPE or UNION_TYPE.
883
884         PR inline-asm/30505
885         * reload1.c (reload): Do invalid ASM checking after
886         cleanup_subreg_operands.
887
888 2007-03-19  Jeff Law  <law@redhat.com>
889
890         * tree-cfg.c (find_taken_edge): Tighten conditions for
891         optimizing computed gotos.
892
893 2007-03-19  Michael Matz  <matz@suse.de>
894
895         * builtins.c (expand_builtin_sync_operation,
896         expand_builtin_compare_and_swap,
897         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
898         correctly.
899
900         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
901         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
902         for operand 3.
903
904 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
905
906         * doc/tm.texi: Add brackets around the return type of
907         TARGET_SECONDARY_RELOAD.
908
909 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
910         Richard Guenther  <rguenther@suse.de>
911
912         PR tree-optimization/31254
913         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
914         Use handled_component_p () where appropriate.  Continue
915         propagating into the rhs if we propagated into an INDIRECT_REF
916         on the lhs.
917
918 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
919
920         * config/s390/s390.md (op_type attribute): RRR instruction type added.
921         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
922         (xde, xdee): Mode attributes adjusted to support DFP modes.
923         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
924         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
925         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
926         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
927         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
928         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
929         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
930         numbers.
931         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
932         "movsf"): Insn definitions removed.
933         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
934         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
935         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
936         definitions added.
937         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
938         "reload_in<mode>", "reload_out<mode>"): Expander added.
939         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
940         Expander removed.
941
942 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
943
944         * config/s390/s390.md: Only non-functional changes.  Renamed
945         FPR mode macro to BFP all over the file.
946
947 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
948
949         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
950         (op_type attribute): RRF instruction type added.
951         (fT0): New mode attribute.
952         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
953         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
954         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
955         no secondary memory is needed when moving DFmode values between GPRs
956         and FPRs.
957
958 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
959
960         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
961         inverted and documentation adjusted.
962         ("mhard-dfp", "msoft-dfp"): New options.
963         * config/s390/s390.c (s390_handle_arch_option): New architecture
964         switch: z9-ec.
965         (override_options): Sanity checks for the new options added.
966         * config.gcc: New architecture switch: z9-ec.
967         * config/s390/s390.h (processor_flags): PF_DFP added.
968         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
969         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
970         when the bit is NOT set so remove it from the defaults.
971
972 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
973
974         * genemit.c (main): Print include statement for dfp.h.
975         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
976         is not available.
977
978 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
979
980         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
981
982 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
983
984         PR target/31022
985         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
986         instead of PATTERN.
987
988 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
989
990         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
991         attr_length_call, output_call, output_indirect_call): Cleanup
992         formatting of targetm calls.
993
994 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
995
996         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
997
998 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
999
1000         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
1001         reservation, bypass and anti-bypass descriptions for these instructions.
1002         Update move patterns.
1003         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
1004         TYPE_FPSTORE.
1005
1006 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
1007
1008         * tree-vect-transform.c (get_initial_def_for_induction): Replace
1009         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
1010         (get_initial_def_for_reduction): Likewise.
1011
1012 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
1013
1014         Fix PR tree-optimization/29922
1015         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
1016         (get_representative): Removed.
1017         (value_dies_in_block_x): Update for rvuse removal.
1018         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
1019         (compute_antic_aux): Handle when PHI nodes appear in
1020         non-single-successors.
1021         (dump_bitmap_of_names): Removed.
1022         (compute_antic_safe): Renamed and removed rvuse calculation.
1023         Calculate only antic safe.
1024         (insert_into_preds_of_block): Remove assert.
1025         (execute_pre): Update for renamed functions.
1026         (defer_or_phi_translate_block): New function.
1027
1028 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
1029
1030         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
1031         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
1032         typos.
1033         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
1034         Follow spelling conventions.
1035
1036         * tree-data-ref.h: Remove the prototype for analyze_array.
1037
1038 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
1039
1040         PR tree-optimization/31041
1041         * tree-vect-transform.c (get_initial_def_for_induction): Call
1042         force_gimple_operand.
1043
1044 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
1045
1046         * ipa-type-escape.c (look_for_casts) : Revert code to use
1047         handled_component_p due to ada test a-numaux.adb.
1048
1049 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
1050
1051         * final.c (final_scan_insn): Alter the condition of a
1052         conditional trap if we have nonstandard CC.
1053
1054 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1055
1056         * configure.ac: Remove excess quoting from asm line 0 test.
1057         * configure: Rebuilt.
1058
1059 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1060
1061         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
1062         * c-common.c (convert_and_check): Move warning logic to...
1063         (warnings_for_convert_and_check): ...here. Define.
1064         * c-common.h (warnings_for_convert_and_check): Declare.
1065
1066 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1067
1068         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
1069         (output_call): Likewise.
1070
1071 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
1072
1073         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
1074
1075 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
1076
1077         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
1078
1079 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
1080
1081         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
1082         opteron, athlon-64 and athlon-fx processor_alias_table entries.
1083
1084 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
1085
1086         PR tree-optimization/31183
1087         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1088         Use double_int instead of unsigned int for representing access_strides.
1089         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
1090
1091 2007-03-16  Richard Guenther  <rguenther@suse.de>
1092
1093         PR tree-optimization/31146
1094         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
1095         to allow recursion of forward_propagate_addr_expr.
1096         (forward_propagate_addr_into_variable_array_index): Likewise.
1097         (forward_propagate_addr_expr): Likewise.
1098         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1099         (forward_propagate_addr_expr_1): Recurse on simple copies
1100         instead of propagating into them.  Do so for useless conversions
1101         as well.
1102         (forward_propagate_addr_expr): Clean up unused statements after
1103         recursion.
1104
1105 2007-03-16  Richard Guenther  <rguenther@suse.de>
1106
1107         * builtins.c (expand_builtin_cexpi): Use the right argument
1108         for the expansion via cexp.
1109
1110 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1111
1112         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
1113         * configure: Rebuilt.
1114
1115 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1116
1117         PR debug/29906
1118         * dwarf2out.c (force_type_die): Adjust comment.
1119         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
1120
1121 2007-03-15  DJ Delorie  <dj@redhat.com>
1122
1123         * config/frv/predicates.md (minmax_operator): Don't check operands
1124         here.
1125
1126 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
1127
1128         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
1129         Update constant estimates of number of iterations.
1130         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
1131         argument renamed to "realistic".
1132         (compute_estimated_nb_iterations): Removed.
1133         (record_niter_bound): New function.
1134         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
1135         call record_nonwrapping_iv with upper = false.
1136         (infer_loop_bounds_from_signedness): Pass upper argument to
1137         record_nonwrapping_iv.
1138         (estimate_numbers_of_iterations_loop): Do not call
1139         compute_estimated_nb_iterations.  Record estimate based on profile
1140         information.  Initialize the constant estimates of number of
1141         iterations.
1142         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
1143         estimates.
1144         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
1145         number of iterations is too small.
1146         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
1147         (EST_NOT_AVAILABLE): Removed.
1148         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
1149         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
1150         fields.
1151
1152 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
1153
1154         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
1155         Handle NE_EXPR guards.
1156
1157 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1158
1159         PR c++/24924
1160         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
1161         Set also -pedantic-errors by default for the  preprocessor unless
1162         -fpermissive is given.
1163
1164 2007-03-15  Richard Guenther  <rguenther@suse.de>
1165
1166         PR middle-end/29719
1167         PR middle-end/31161
1168         * builtins.c (expand_builtin_cexpi): As a fallback if we
1169         don't have builtins for sincos or cexp create a function
1170         declaration for cexp and expand to a call to that.
1171         (expand_builtin_int_roundingfn): Always fall
1172         back to floor/ceil and its variants even if they may be
1173         not available.
1174
1175 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
1176
1177         PR middle-end/31159
1178         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1179         jump tables, move the call to delete_dead_jumptables from here...
1180         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
1181         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1182         don't allow merging of blocks that try_redirect_by_replacing_jump
1183         also does not handle when not optimizing.
1184
1185 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1186             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1187
1188         * config/i386/i386.md (x86_sahf_1): Correctly handle
1189         HAVE_AS_IX86_SAHF.
1190
1191 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1192
1193         PR target/31167
1194         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1195         x86_64_general_operand as operand[2] predicate.  Remove "iF"
1196         from operand constraints and use "e" constraint instead.
1197         (*subti3_1, *subti3_1 splitter): Ditto.
1198         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1199         operand[1] predicate.
1200
1201 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
1202
1203         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1204         arrays, multiply the access strides by the size of the sub-array.
1205         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1206
1207 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1208
1209         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1210         the configured assembler supports the sahf mnemonic.
1211         * configure: Regenerate.
1212         * config.in: Regenerate.
1213
1214         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1215         emit "sahf" or ".byte\t0x9e" as asm template.
1216
1217 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
1218
1219         PR 31018
1220         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1221         option to replace hard coded TARGET_xxx in md file.
1222         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1223         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1224         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1225         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1226         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1227         (X86_TUNE_NOT_VECTORMODE): Ditto.
1228         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1229         (TUNE_AVOID_VECTOR_DECODE): Ditto.
1230         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1231         (TUNE_SLOW_IMUL_IMM8): Ditto.
1232         (TUNE_MOVE_M1_VIA_OR): Ditto.
1233         (TUNE_NOT_UNPAIRABLE): Ditto.
1234         (TUNE_NOT_VECTORMODE): Ditto.
1235
1236         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1237         options.
1238
1239         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1240         tuning options instead of hard coded TARGET_xxx.
1241         (fix ssemode peephole2's): Ditto.
1242         (imul peephole2's): Ditto.
1243         (movsi_or): Ditto.
1244         (movdi_or_rex64): Ditto.
1245         (move peephole2): Ditto.
1246         (not peephole2's): Ditto.
1247
1248 2007-03-14  Dirk Mueller  <dmueller@suse.de>
1249
1250         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1251         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1252         * c-parser.c (c_parser_if_body): Always add an empty statement in case
1253         of empty body.
1254         * c-parser.c (c_parser_do_statement): Warn about empty body in
1255         do/while statement.
1256         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1257         * doc/invoke.texi (-Wempty-body): Update documentation.
1258
1259 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1260
1261         PR c/21438
1262         * c-common.h (warn_for_div_by_zero): Declare.
1263         * c-common.c (warn_for_div_by_zero): Define.
1264         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1265         warning.
1266
1267 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1268
1269         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1270         to PREFIX and STANDARD_PREFIX.
1271
1272 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1273             Phil Edwards  <phil@codesourcery.com>
1274
1275         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1276         (__gthread_once_t): Remove busy field for RTPs.
1277         (__GTHREAD_ONCE_INIT): Update accordingly.
1278
1279 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1280
1281         * doc/invoke.texi: Document VxWorks options.
1282
1283 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1284
1285         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1286
1287 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
1288
1289         PR tree-optimization/30590
1290         * tree-nrv.c (tree_nrv): Check for the partial update of the
1291         return value.
1292
1293 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1294
1295         * flags.h (flag_random_seed): Remove declaration, in favor of...
1296         * toplev.h (get_random_seed, set_random_seed): ... these.
1297         * tree.c (get_file_function_name): Use the former.
1298         * opts.c (common_handle_option): Use the latter.
1299         * toplev.c
1300
1301 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
1302
1303         PR middle-end/31127
1304         * cse.c (cse_find_path): Do not bail out if a basic block that
1305         we already visited now becomes part of a path that starts at a
1306         different basic block.  Just disallow this, to make sure we
1307         visit each basic block at most once.
1308
1309 2007-03-13  Jan Hubicka  <jh@suse.cz>
1310
1311         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1312         when profile esitmate is present, calls with very low frequency are
1313         cold.
1314
1315 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
1316
1317         PR tree-optimization/30730
1318         PR tree-optimization/26900
1319         * tree-ssa-loop-niter.c: Include gmp.h.
1320         (bounds): New type.
1321         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1322         split_to_var_and_offset, determine_value_range,
1323         bound_difference_of_offsetted_base, refine_bounds_using_guard,
1324         bound_difference, bounds_add, bounds_negate,
1325         number_of_iterations_ne_max, dump_affine_iv): New functions.
1326         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1327         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1328         difference of initial and final value of control iv to validate
1329         results.
1330         (number_of_iterations_cond): Add loop parameter.  Determine bounds
1331         on the difference of the extremes of the control iv.  Add dumps.
1332         (expand_simple_operations): Handle phi nodes.
1333         (simplify_using_initial_conditions): Do not record used conditions.
1334         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1335         Do not set additional_info.
1336         (implies_nonnegative_p, implies_ge_p): Removed.
1337         (derive_constant_upper_bound): Do not use parameter `additional'.
1338         (record_estimate): Parameter `additional' removed.  Parameter
1339         `i_bound' added.  Do not call derive_constant_upper_bound.
1340         (record_nonwrapping_iv): Use derive_constant_upper_bound to
1341         bound the number of iterations estimate.
1342         (estimate_numbers_of_iterations_loop): Pass the estimate from
1343         the number of iterations analysis to record_estimate.
1344         * tree.h (multiple_of_p): Declare.
1345         * tree-scalar-evolution.c (expression_expensive_p): Removed.
1346         (scev_const_prop): Do not check expression_expensive_p.
1347         * fold-const.c (multiple_of_p): Exported.
1348         * double-int.c (double_int_mask): Exported.
1349         * double-int.h (double_int_mask): Declare.
1350         * tree-flow.h (struct tree_niter_desc): Removed additional_info
1351         field.  Added max field.
1352
1353 2007-03-13  David Taylor  <taylor@candd.org>
1354
1355         PR driver/12448:
1356         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1357         default -MQ.
1358
1359 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1360
1361         PR target/31123
1362         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
1363         two unamed patterns.
1364
1365 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
1366
1367         * config/i386/i386.opt (mcx16, msahf): New options.
1368         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1369         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1370
1371         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1372         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1373         Output -mcx16 and -msahf options when corresponding bit is set.
1374
1375         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1376         and -msahf options.
1377
1378 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1379
1380         * configure.ac: Test for assembler tolerance to # 0 "".
1381         * configure, config.in: Rebuilt.
1382         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1383
1384 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
1385
1386         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1387
1388         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1389         (handle_syscall): Handle direct system calls.
1390         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1391
1392 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1393
1394         * doc/invoke.texi: Fix cpp.info cross-reference.
1395         * doc/passes.texi: Fix gcc.info cross-reference.
1396
1397 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
1398
1399         PR tree-optimization/30835
1400         * lambda-code.c (can_convert_to_perfect_nest): Check whether
1401         bb_for_stmt is not NULL before accessing it.
1402
1403 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
1404
1405         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1406         some multilibs.
1407
1408 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1409
1410         PR 30635
1411         * doc/install.texi: Document --enable-stage1-languages
1412
1413 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
1414
1415         * tree-pass.h (pass_into_cfg_layout_mode,
1416         pass_outof_cfg_layout_mode): Declare.
1417         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1418         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1419         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1420         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1421
1422 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
1423
1424         * c-decl.c (warn_variable_length_array): New function.
1425         Refactored from grokdeclarator to handle warn_vla
1426         and handle unnamed array case.
1427         (grokdeclarator): Refactored VLA warning case.
1428         * c.opt (Wvla): New flag.
1429         * doc/invoke.texi (Wvla): New warning.
1430
1431 2007-03-12  Richard Henderson  <rth@redhat.com>
1432
1433         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1434         (TARGET_SECTION_TYPE_FLAGS): New.
1435
1436 2007-03-12  Richard Henderson  <rth@redhat.com>
1437
1438         * config/darwin.c (machopic_reloc_rw_mask): New.
1439         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1440         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1441
1442 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
1443
1444         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1445         * cppdefault.h (cpp_PREFIX): Document.
1446         (cpp_PREFIX_len): Likewise.
1447         (cpp_EXEC_PREFIX): New variable.
1448         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1449         * c-incpath.c (add_standard_paths): Correct logic for relocating
1450         paths within prefix.
1451
1452 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
1453
1454         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
1455         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
1456         mode macro.
1457         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
1458         fix_truncdfdi_sse using SSEMODEF mode macro.
1459         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
1460         fix_truncdfsi_sse using SSEMODEF mode macro.
1461         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
1462         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
1463
1464 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
1465
1466         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
1467         elfos.h to tm_file.
1468
1469 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
1470
1471         * tree.h : Add multiple_of_p declaration.
1472         * fold-const.c (multiple_of_p): Make multiple_of_p public.
1473         * ipa-type-escape.c (results_of_malloc): Redundant.
1474         (visited_stmts): New. Visited stmt for walk_use_def_chains.
1475         (cast_type): Extended with new members.
1476         (check_cast): Returns cast_type.
1477         (cast): New structure for data of walk_use_def_chains.
1478         (is_malloc_result, is_cast_from_non_pointer_1,
1479         is_cast_from_non_pointer,
1480         is_array_access_through_pointer_and_index): New functions.
1481         (look_for_casts): Returns cast types.
1482         (check_call): Returns void.
1483         (okay_pointer_operation): Use support of pointer plus index,
1484         pointer plus constant and allow all multiplications.
1485
1486 2007-03-11  Richard Guenther  <rguenther@suse.de>
1487
1488         PR tree-optimization/31115
1489         * tree-vrp.c (extract_range_from_binary_expr): Make sure
1490         the shift count is positive and non-anti-range for RSHIFT_EXPR.
1491         A shift count of zero is not special as with *_DIV_EXPR.
1492         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
1493         direction.
1494
1495 2007-03-11  Ian Lance Taylor  <iant@google.com>
1496
1497         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
1498         the *_DIV_EXPR codes correctly with overflow infinities.
1499
1500 2007-03-11  Ira Rosen  <irar@il.ibm.com>
1501
1502         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
1503         indicate success/failure of the analysis. Add negation to subtrahend
1504         in case of subtraction. Fail if both operands contain constants.
1505         (create_data_ref): Fail if analyze_offset fails.
1506
1507 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
1508
1509         * config/i386/i386.md (frndintxf2): Rename to ...
1510         (rintxf2): ... this. Remove expander having same name.
1511         (rintsf2, rintdf2): Implement using SSEMODEF macro.
1512         (roundsf2, rounddf2): Ditto.
1513         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
1514         (lround<mode>di2, lround<mode>si2): Ditto.
1515
1516 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
1517
1518         * lower-subreg.c: Include except.h.
1519         (decompose_multiword_subregs): Verify that the only control flow
1520         insns we can split are loads to multi-words pseudos.
1521         Handle breaking such blocks after splitting, instead of calling
1522         find_many_sub_basic_blocks.
1523
1524         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
1525         on the new basic block.  Add a lengthy comment explaining why we
1526         thought this was necessary.
1527         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
1528
1529 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
1530
1531         PR c++/30924
1532         * tree.c (walk_type_fields): Recurse into the element type of
1533         ARRAY_TYPEs if there is a pointer set.
1534
1535 2007-03-10  Dirk Mueller  <dmueller@suse.de>
1536
1537         * c-common.c (warn_logical_operator): Fix condition.
1538
1539 2007-03-10  Tobias Schl├╝ter  <tobi@gcc.gnu.org>
1540
1541         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
1542         quotation mark.
1543         * config/darwin.c (machopic_select_section): Remove superfluous
1544         argument in call to categorize_decl_for_section.  Remove unused
1545         variable shlib.
1546
1547 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
1548
1549         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
1550         defined.
1551         * configure: Regenerate.
1552
1553 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
1554
1555         PR target/31101
1556         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
1557         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
1558         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
1559         Add LABEL_NUSES to emitted label.
1560         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
1561         branch probability value to emitted jump insn.
1562         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
1563         Do not check life information and do not re-arrange input operands
1564         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
1565
1566 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1567
1568         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
1569         the change of decode_asm_operands.
1570
1571 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1572
1573         * mode-switching.c (create_pre_exit): Skip blockage insn.
1574
1575 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
1576
1577         * tree-pass.h (TODO_update_smt_usage): Remove.
1578         Update all users.
1579         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1580         argument SOME.
1581         Update all users.
1582
1583 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1584
1585         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
1586         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
1587         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
1588         SOM target.
1589
1590 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
1591
1592         * gcc.c: Document %{, in big comment at top.
1593         (input_suffix_matches): Remove special handling for .s and
1594         .S.
1595         (input_spec_matches): New.
1596         (handle_braces): Handle %{,.
1597         (validate_switches): ',' indicates a value which is not a switch.
1598         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
1599         to detect assembler input.
1600         * config/i386/sol2.h (CPP_SPEC): Likewise.
1601         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
1602         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1603         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
1604         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1605         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
1606         -m64 causes deployment target to default to 10.5.
1607         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1608
1609 2007-03-09  Richard Henderson  <rth@redhat.com>
1610
1611         PR target/26090
1612         * target.h (targetm.asm.out.reloc_rw_mask): New.
1613         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
1614         (TARGET_ASM_OUT): Use it.
1615         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
1616         * varasm.c (categorize_decl_for_section): Remove shlib argument;
1617         use the new reloc_rw_mask target hook instead.
1618         (default_section_type_flags_1): Merge into...
1619         (default_section_type_flags): ... here.
1620         (decl_readonly_section_1): Merge into...
1621         (decl_readonly_section): ... here.
1622         (default_elf_select_section_1): Merge into...
1623         (default_elf_select_section): ... here.
1624         (default_unique_section_1): Merge into...
1625         (default_unique_section): ... here.
1626         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
1627         (default_select_rtx_section): Use it.
1628         (default_elf_select_rtx_section): Likewise.
1629         * output.h: Update to match.
1630         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
1631         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
1632         (TARGET_ASM_RELOC_RW_MASK): New.
1633         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
1634         to categorize_decl_for_section.
1635         (x86_64_elf_unique_section): Likewise.
1636         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
1637         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
1638         (TARGET_ASM_RELOC_RW_MASK): New.
1639         * config/ia64/ia64.c (ia64_rwreloc_select_section,
1640         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
1641         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
1642         (TARGET_RWRELOC): Remove.
1643         (ia64_section_type_flags): Adjust call to default_section_type_flags.
1644         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1645         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
1646         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
1647         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
1648         (rs6000_xcoff_select_section): Use decl_readonly_section.
1649         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
1650         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1651         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
1652         (TARGET_SECTION_TYPE_FLAGS): Remove.
1653         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
1654
1655 2007-03-09  Roger Sayle  <roger@eyesopen.com>
1656
1657         * fold-const.c (fold_comparison): Remove compile-time evaluation of
1658         complex constant equality/inequality comparisons for here.
1659         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
1660         known at compile-time or can be simplified to a scalar comparison.
1661         (fold_relational_const): Move compile-time evaluation of complex
1662         constant equality/inequality comparisons to here.
1663
1664 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1665
1666         PR rtl-optimization/30643
1667         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
1668         dest_addr_elt.
1669         (fold_rtx): Recurse, like before 2006-11-03.
1670
1671 2007-03-09  DJ Delorie  <dj@redhat.com>
1672
1673         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
1674         m32c-pragma.o.
1675
1676 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
1677
1678         PR tree-optimization/30375
1679         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
1680         LHS of statements is not the same.
1681         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
1682
1683 2007-03-09  Chao-ying Fu  <fu@mips.com>
1684
1685         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
1686         REV 2.
1687         * doc/invoke.texi (-mdspr2): Document new option.
1688         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
1689         New unspec for DSP REV 2.
1690         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
1691         these instructions are extended in DSP REV 2.
1692         (mips-dspr2.md): Include.
1693         * config/mips/mips.opt (mdspr2): New option.
1694         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
1695         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
1696         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
1697         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
1698         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
1699         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
1700         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
1701         and 2 builtins.
1702         (bdesc_map): Add one field of unsupported_target_flags.
1703         (bdesc_arrays):  Update entries to have extra fields.  Add
1704         dsp_32only_bdesc.
1705         (mips_init_builtins): Initialize new function types.
1706         Check unsupported_target_fileds to filter out builtins.
1707         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
1708         TARGET_DSPR2.
1709         (ASM_SPEC): Pass mdspr2 to the assembler.
1710         * config/mips/mips-dspr2.md: New file.
1711
1712 2007-03-09  Sa Liu  <saliu@de.ibm.com>
1713
1714         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
1715
1716 2007-03-09  Ian Lance Taylor  <iant@google.com>
1717
1718         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
1719         argument) like -Wstrict-overflow=2.
1720         * doc/invoke.texi (Warning Options): Update documentation.
1721
1722 2007-03-09  Dirk Mueller  <dmueller@suse.de>
1723
1724         PR c++/17946
1725         * doc/invoke.texi (-Wlogical-op): Document.
1726         * common.opt (-Wlogical-op): New.
1727         * c-common.h (warn_logical_operator): Declare.
1728         * c-common.c (warn_logical_operator): Define.
1729         * c-typeck.c (parser_build_binary_op): Call
1730         warn_logical_operator.
1731
1732 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1733
1734         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
1735         * final.c (final_scan_insn): Test for non-"" file name.
1736
1737 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
1738
1739         * doc/loop.texi: Document the Omega linear constraints solver.
1740         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
1741         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
1742         omega-hash-table-size, omega-max-keys, and
1743         omega-eliminate-redundant-constraints.
1744         * tree-pass.h (pass_check_data_deps): Declared.
1745         * omega.c: New.
1746         * omega.h: New.
1747         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
1748         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
1749         pass_check_data_deps): New.
1750         * tree-data-ref.c (init_data_ref): Remove declaration.
1751         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
1752         (analyze_array): Renamed init_array_ref, move up initializations.
1753         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
1754         Removed arguments that are set to NULL.
1755         (analyze_indirect_ref): Correct indentation, correct call to
1756         init_pointer_ref.
1757         (object_analysis): Call init_array_ref instead of analyze_array.
1758         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
1759         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
1760         of DR_ACCESS_FNS_ADDR.
1761         (init_omega_eq_with_af, omega_extract_distance_vectors,
1762         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
1763         ddr_consistent_p): New.
1764         (compute_affine_dependence): Check consistency of ddrs when
1765         flag_check_data_deps is passed.
1766         (analyze_all_data_dependences): Uncomment.
1767         (tree_check_data_deps): New.
1768         * tree-data-ref.h: Include omega.h.
1769         (DR_ACCESS_FNS_ADDR): Removed.
1770         (data_dependence_relation): Add inner_loop.
1771         (DDR_INNER_LOOP): New.
1772         * common.opt (fcheck-data-deps): New.
1773         * tree-flow.h (tree_check_data_deps): Declare.
1774         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
1775         (OBJS-common): Depend on omega.o.
1776         (omega.o): Define.
1777         * passes.c (pass_check_data_deps): Scheduled.
1778         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
1779         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
1780         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
1781         PARAM_VECT_MAX_VERSION_CHECKS,
1782         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
1783
1784 2007-03-09  Richard Guenther  <rguenther@suse.de>
1785
1786         PR tree-optimization/30904
1787         PR middle-end/31058
1788         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
1789         the same way as *_DIV_EXPR.
1790
1791 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1792
1793         * recog.c (decode_asm_operands): No mixed declarations and code.
1794
1795 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1796
1797         * rtl.def (ASM_INPUT): Add location.
1798         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
1799         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
1800         (decode_asm_operands): Add loc operand.
1801         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
1802         * stmt.c (expand_asm): Rename to...
1803         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
1804         gen_rtx_ASM_INPUT_loc.
1805         (expand_asm_expr): Adjust.
1806         * recog.c (decode_asm_operands): Add loc operand.
1807         (check_asm_operands, extract_insn): Adjust.
1808         * reload1.c (maybe_fix_stack_asms): Likewise.
1809         * final.c (asm_insn_count): Likewise.
1810         (final_scan_insn): Output # line before and after asm.
1811
1812 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
1813
1814         * tree-ssa-structalias.c (variable_info): Remove
1815         finished_solution.
1816         (new_var_info): Ditto.
1817         (shared_bitmap_info_t): New structure.
1818         (shared_bitmap_table): New variable.
1819         (shared_bitmap_hash): New function.
1820         (shared_bitmap_eq): Ditto
1821         (shared_bitmap_lookup): Ditto.
1822         (shared_bitmap_add): Ditto.
1823         (merge_smts_into): Change to take bitmap directly.
1824         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
1825         (init_alias_vars): Init shared bitmap hashtable.
1826         (delete_points_to_sets): Delete shared bitmap hashtable.
1827         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
1828         is_aliased removal as a change that was still necessary was
1829         deleted.
1830
1831 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
1832
1833         * config/i386/i386.h (override_options): Conditionally disable
1834         x86_sahf for 64bit targets only.
1835
1836 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1837
1838         PR C/31072
1839         * c-decl.c (merge_decls): Don't call make_var_volatile.
1840         * varasm.c (make_var_volatile): Remove.
1841         * output.h (make_var_volatile): Remove.
1842
1843 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
1844
1845         PR tree-optimization/31085
1846         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
1847
1848 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1849
1850         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
1851         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
1852         ATTR_CONST_NOTHROW_LIST.
1853
1854         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1855         FIX_TRUNC_EXPR.
1856
1857 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
1858
1859         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
1860
1861 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
1862
1863         PR 31013
1864         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
1865         is declared.
1866         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
1867         passed, use shared libgcc.
1868
1869 2007-03-08  Roger Sayle  <roger@eyesopen.com>
1870
1871         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
1872         instead of calling build2 with a GIMPLE_MODIFY_STMT.
1873         (honor_protect_cleanup_actions, lower_try_finally_switch):
1874         Likewise.
1875         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
1876         ifc_temp_var): Likewise.
1877         * tree-inline.c (setup_one_parameter): Likewise.
1878         * tree-mudflap.c (mf_decl_cache_locals,
1879         mf_build_check_statement_for): Likewise.
1880         * tree-nested.c (init_tmp_var, save_tmp_var,
1881         finalize_nesting_tree_1): Likewise.
1882         * tree-outof-ssa.c (insert_copy_on_edge,
1883         insert_backedge_copies): Likewise.
1884         * tree-profile.c (tree_gen_edge_profiler,
1885         tree_gen_ic_profiler): Likewise.
1886         * tree-scalar-evolution.c (scev_const_prop): Likewise.
1887         * tree-sra.c (sra_build_assignment): Likewise.
1888         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
1889         * tree-ssa-math-opts.c (insert_reciprocals,
1890         execute_cse_sincos_1): Likewise.
1891         * tree-tailcall.c (adjust_accumulator_values,
1892         adjust_return_value): Likewise.
1893         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
1894         * tree-vect-transform.c (vect_create_data_ref_ptr,
1895         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
1896         vect_create_epilog_for_reduction, vectorizable_reduction,
1897         vectorizable_call, vectorizable_conversion,
1898         vectorizable_assignment, vectorizable_operation,
1899         vectorizable_type_demotion, vect_gen_widened_results_half,
1900         vect_permute_store_chain, vectorizable_store,
1901         vect_setup_realignment, vect_permute_load_chain,
1902         vectorizable_load, vectorizable_condition,
1903         vect_create_cond_for_align_checks): Likewise.
1904         * tree-vrp.c (build_assert_expr_for): Likewise.
1905
1906 2007-03-08  Ian Lance Taylor  <iant@google.com>
1907
1908         * tree-vrp.c: Include "intl.h".
1909         (usable_range_p): New static function.
1910         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
1911         overflowed values, juts set *strict_overflow_p.
1912         (compare_values): Only return -2 if one of the operands is not a
1913         constant.
1914         (compare_ranges): Call usable_range_p.
1915         (compare_range_with_value): Likewise.
1916         (vrp_evaluate_conditional_warnv): Rename from
1917         vrp_evaluate_conditional.  Make static.  Change all callers.
1918         (vrp_evaluate_conditional): New function.
1919         (simplify_div_or_mod_using_ranges): Issue warning about reliance
1920         on signed overflow.
1921         (simplify_abs_using_ranges): Likewise.
1922         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
1923         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
1924         within_stmt parameter.
1925         * tree-ssa-propagate.c (fold_predicate_in): Update call to
1926         vrp_evaluate_conditional.
1927         * tree-ssa-threadedge.c
1928         (record_temporary_equivalences_from_stmts_at_dest): Change
1929         simplify parameter to take a second tree parameter.
1930         (simplify_control_stmt_condition): Likewise.
1931         (thread_across_edge): Likewise.
1932         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1933         (thread_across_edge): Likewise.
1934         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
1935
1936 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
1937
1938         * config/i386/i386.h (TARGET_SAHF): New define.
1939         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
1940         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
1941         (x86_sahf): New global variable.
1942         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
1943         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
1944         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
1945         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
1946         for 64-bit.
1947         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
1948         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
1949         when expanding fcomi/sahf based tests.
1950         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
1951         expanding sahf based alternative. Emit sahf based sequence when
1952         optimizing for code size.
1953         * config/i386/i386.md (x86_sahf_1): Do not disable for
1954         TARGET_64BIT, enable for TARGET_SAHF.
1955
1956 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
1957
1958         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
1959         spurious whitespace from error message.
1960
1961 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
1962
1963         PR c++/30852
1964         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
1965
1966 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
1967
1968         * c-decl.c (grokdeclarator): Disable warnings for anonymous
1969         bitfields.
1970         * tree-sra.c (instantiate_element): Propagate disabled warnings
1971         from the element itself to the created variable.
1972
1973 2007-03-07  Richard Henderson  <rth@redhat.com>
1974
1975         PR target/30848
1976         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
1977         silently fix up the stack in the case of a missing register.
1978
1979 2007-03-07  Paul Brook  <paul@codesourcery.com>
1980
1981         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
1982
1983 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
1984
1985         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
1986         New.
1987         (phase1_vrs): Use them.
1988         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
1989         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
1990         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
1991         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
1992         __gnu_Unwind_Restore_WMMXC if required.
1993         (_Unwind_VRS_Pop): Implement iWMMXt support.
1994         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
1995         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
1996         gnu_Unwind_Save_WMMXC): Define.
1997
1998 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
1999
2000         * config/vxworks.h (vxworks_override_options): Declare.
2001         (VXWORKS_OVERRIDE_OPTIONS): Use it.
2002         * config/vxworks.c: Include target.h and toplev.h.
2003         (vxworks_override_options): New function.
2004         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
2005
2006 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2007
2008         * config/s390/s390.c (override_options): Don't emit an error when
2009         -mstack-size is used without providing -mstack-guard.
2010         (s390_emit_prologue): Choose stack_guard value automatically if not
2011         provided via command line.
2012         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
2013
2014 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
2015
2016         * config/i386/i386.c (output_set_got): Add a GOT initialization
2017         sequence for VxWorks PIC.
2018         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
2019         around labels as well as symbols.  Use gotoff_operand instead
2020         of local_symbolic_operand.
2021         (legitimize_pic_address): Use gotoff_operand instead of
2022         local_symbolic_operand.  Use @GOT accesses for labels as
2023         well as symbols.
2024         (ix86_output_addr_diff_elt): Use PC-relative rather than
2025         GP-relative offsets for VxWorks PIC.
2026         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
2027         no_new_pseudos.  Check whether the returned register is op0.
2028         * config/i386/i386.md (tablejump): Use PC-relative rather than
2029         GP-relative offsets for VxWorks PIC.
2030         * config/i386/predicates.md (gotoff_operand): New predicate.
2031
2032 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2033
2034         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
2035         before defining.
2036         * config/vxworks-dummy.h: New file.
2037         * config/i386/i386.h: Include it.
2038
2039 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
2040
2041         * dwarf2out.c (is_inlined_entry_point): New
2042         (add_high_low_attributes): Emit DW_AT_entry_pc along with
2043         DW_AT_ranges if the first subblock is the entry point.
2044
2045 2007-03-06  David Daney  <ddaney@avtrex.com>
2046
2047         * doc/install.texi (mips-*-*): Change recommended binutils
2048         version.
2049
2050 2007-03-06  Anatoly Sokolov <aesok@post.ru>
2051
2052         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
2053         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
2054         devices.
2055         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2056         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2057
2058 2007-03-06  Jan Hubicka  <jh@suse.cz>
2059
2060         * errors.h (warning, error, fatal, internal_error): Mark as cold.
2061         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
2062         are hot.
2063         (probably_cold_bb_p): Cold functions are cold.
2064         (probably_never_executed_bb_p): Cold functions are cold.
2065         (tree_bb_level_predictions): Predict calls to cold functions as not
2066         taken.
2067         (compute_function_frequency): Check hot/cold attributes.
2068         * function.h (function_frequency): Update comments.
2069         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
2070         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
2071         (c_common_att): Add cold and hot.
2072
2073         * doc/extend.texi (hot,cold attributes): Document.
2074
2075 2007-03-06  Andrew Haley  <aph@redhat.com>
2076
2077         * function.c (expand_function_end): Move blockage to just after we
2078         emit the label for the naked return from the function.
2079
2080 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2081
2082         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
2083         before redefining.
2084
2085 2007-03-06  Jan Hubicka  <jh@suse.cz>
2086
2087         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
2088         loaded for constant large models.  Non-large 64bit PIC can do.
2089         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
2090         * cmodel.h: Add LARGE PIC.
2091         * i386.md (UNSPEC_PLTOFF): New.
2092         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
2093         needed.
2094         (*call_1_rex64): Disable for large models.
2095         (*call_1_rex64_large): New.
2096         (*call_value_1_rex64): Disable for large models.
2097         (*call_value_1_rex64_large): New.
2098         (set_rip_rex4): New.
2099         (set_got_offset_rex64): New.
2100         * predicates.md (constant_call_address_operand): For large model
2101         constant calls are not possible.
2102         * i386-protos.h (construct_plt_address): Declare.
2103         * i386.c (override_options): Accept large models.
2104         (ix86_expand_prologue): Expand large PIC GOT pointer load.
2105         (legitimate_constant_p): Add new UNSPECs.
2106         (legitimate_pic_operand_p): Likewise.
2107         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
2108         (legitimize_pic_address): Do easy RIP relative way for TLS only for
2109         non-large model.
2110         (output_pic_addr_const): Add PLTOFF.
2111         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
2112         (ix86_expand_move): Legitimize pic address when in PIC mode.
2113         (construct_plt_address): New function.
2114         (ix86_expand_call): Offload the address to register and use GOT pointer
2115         for large model.
2116         * invoke.texi (mcmodel=large): Update documentation.
2117
2118 2007-03-06  Richard Henderson  <rth@redhat.com>
2119
2120         * config/i386/i386.c (x86_use_leave, x86_push_memory,
2121         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
2122         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
2123         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
2124         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
2125         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
2126         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
2127         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
2128         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
2129         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2130         x86_partial_reg_dependency, x86_memory_mismatch_stall,
2131         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
2132         x86_sse_partial_reg_dependency, x86_sse_split_regs,
2133         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2134         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
2135         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
2136         x86_schedule, x86_use_bt, x86_pad_returns,
2137         x86_use_xchgb): Merge into ...
2138         (ix86_tune_features): ... here.  New array.
2139         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2140         x86_bswap): Merge into ...
2141         (ix86_arch_features): ... here.  New array.
2142         (x86_3dnow_a): Remove.
2143         (x86_accumulate_outgoing_args): Make static.
2144         (x86_arch_always_fancy_math_387): Make static.
2145         (ix86_tune_mask, ix86_arch_mask): Move ...
2146         (override_options): ... to local variables here.  Apply the
2147         appropriate mask to each element of ix86_arch_features and
2148         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
2149         as were done in the old macros.
2150         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
2151         * config/i386/i386.h (x86_use_leave, x86_push_memory,
2152         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
2153         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
2154         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
2155         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
2156         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
2157         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
2158         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
2159         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
2160         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
2161         x86_partial_reg_dependency, x86_memory_mismatch_stall,
2162         x86_accumulate_outgoing_args, x86_prologue_using_move,
2163         x86_epilogue_using_move, x86_decompose_lea,
2164         x86_arch_always_fancy_math_387, x86_shift1,
2165         x86_sse_partial_reg_dependency, x86_sse_split_regs,
2166         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2167         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
2168         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2169         x86_use_incdec, x86_pad_returns, x86_bswap,
2170         x86_partial_flag_reg_stall): Remove.
2171         (enum ix86_tune_indices): New.
2172         (ix86_tune_features): New.
2173         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
2174         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
2175         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2176         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2177         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2178         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2179         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2180         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2181         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2182         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2183         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2184         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2185         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2186         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2187         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2188         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2189         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2190         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2191         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2192         TARGET_EXT_80387_CONSTANTS): Use it.
2193         (enum ix86_arch_indices): New.
2194         (ix86_arch_features): New.
2195         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2196         TARGET_BSWAP): Use it.
2197         (ix86_tune_mask, ix86_arch_mask): Remove.
2198
2199 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
2200
2201         PR bootstrap/31020
2202         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2203         Define using $${sysroot_headers_suffix}.
2204         * configure: Regenerate.
2205         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2206         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2207         defined.
2208         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2209         * gcc.c (print_sysroot_headers_suffix): New.
2210         (option_map): Include --print-sysroot-headers-suffix.
2211         (display_help): Mention -print-sysroot-headers-suffix.
2212         (process_command): Handle -print-sysroot-headers-suffix.
2213         (do_spec_1): Append multilib directory to include-fixed path if
2214         sysroot suffixes in use.
2215         (main): Handle -print-sysroot-headers-suffix.
2216         * Makefile.in (start.encap): Don't depend on xlimits.h
2217         (xlimits.h): Remove.
2218         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
2219         limits.h for each multilib in fixinc_list.
2220         (fixinc_list, s-fixinc_list): New.
2221         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
2222         generate them for each multilib in fixinc_list.
2223         (stmp-fixproto): Use include-fixed.  Run fixproto for each
2224         multilib in fixinc_list.
2225         (mostlyclean): Don't remove xlimits.h.
2226         (clean): Remove include-fixed.
2227         (real-install-headers-tar, real-install-headers-cpio,
2228         real-install-headers-cp): Don't copy include, only include-fixed.
2229         (install-mkheaders): Depend on fixinc_list.  Don't depend on
2230         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
2231         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
2232         SYSTEM_HEADER_DIR setting in mkheaders.conf.
2233
2234 2007-03-06  Jan Hubicka  <jh@suse.cz>
2235
2236         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2237         NANs easilly.
2238
2239 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2240
2241         * configure.ac: Allow tm_file to contain build-directory files.
2242         * configure: Regenerate.
2243         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2244         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2245         * config/m68k/print-sysroot-suffix.sh: New file.
2246
2247 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2248
2249         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2250         of pic_offset_table_rtx if reload_completed.
2251         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2252         PIC_OFFSET_TABLE_REGNUM.
2253         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2254         return true.
2255         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2256         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
2257
2258 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2259
2260         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2261         functions that call eh_return.
2262
2263 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2264
2265         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2266         functions that need a constant pool.
2267
2268 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2269
2270         PR target/28181
2271         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2272         (m68k_preferred_reload_class): Likewise.
2273         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2274         (SECONDARY_RELOAD_CLASS): Define.
2275         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2276         (LIMIT_RELOAD_CLASS): Delete.
2277         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2278         registers from storing bytes.
2279         (m68k_secondary_reload_class): New function.
2280         (m68k_preferred_reload_class): Likewise.
2281
2282 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2283
2284         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2285         leaf functions.
2286         (m68k_expand_prologue): Likewise.
2287
2288 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2289
2290         * config/m68k/m68k-protos.h (output_sibcall): Declare.
2291         (mips_expand_epilogue): Add a bool parameter.
2292         (m68k_legitimize_sibcall_address): Declare.
2293         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2294         (m68k_expand_epilogue): Add a parameter to select between sibling
2295         and normal epilogues.  Only generate a return for the latter.
2296         (m68k_ok_for_sibcall_p): New function.
2297         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2298         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2299         (sibcall_value, *sibcall_value): Likewise.
2300         (*call, *call_value): Require !SIBLING_CALL_P.
2301         (epilogue): Update call to m68k_expand_epilogue.
2302         (sibcall_epilogue): New pattern.
2303         * config/m68k/predicates.md (const_call_operand): Say that this
2304         predicate applies to sibling calls too.
2305         (sibcall_operand): New predicate.
2306
2307 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2308
2309         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2310         alternatives as movsi_cf.
2311         (movsf_cf_hard): Add commentary.
2312
2313 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
2314             Richard Sandiford  <richard@codesourcery.com>
2315
2316         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2317         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2318         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2319         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
2320         as being live on exit from an interrupt function.
2321         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2322         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2323         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2324         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2325         (m68k_interrupt_function_p): Globalize.
2326         (m68k_compute_frame_layout): Remove reverse mask code.
2327         (m68k_emit_movem, m68k_set_frame_related): New functions.
2328         (m68k_output_function_prologue): Delete in favor of...
2329         (m68k_expand_prologue): ...this new function.
2330         (m68k_output_function_epilogue): Delete in favor of...
2331         (m68k_expand_epilogue): ...this new function.
2332         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2333         functions.
2334         (print_operand): Handle %?.
2335         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2336         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2337         (prologue, epilogue): New patterns.
2338         (return): Turn into a define_expand.
2339         (*return): New pattern, derived from old "return" pattern.  Use rte
2340         rather than rts for interrupt functions.  Only use rtd if the pop
2341         count is nonzero.
2342         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2343         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2344         (link, *link, unlink, *unlink, load_got): Likewise.
2345
2346 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2347
2348         PR target/23482
2349         PR target/17114
2350         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2351         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2352         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2353         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2354         and m68k_matches_u_p.
2355         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2356         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2357         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2358         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2359         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2360         (REG_STRICT_P): New macro.
2361         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2362         PCREL_GENERAL_OPERAND_OK.
2363         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
2364         m68k_legitimate_base_reg_p.
2365         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2366         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2367         (PIC_CASE_VECTOR_ADDRESS): Update comment.
2368         * config/m68k/m68k.c (m68k_address): New structure.
2369         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2370         (m68k_decompose_index, m68k_legitimate_constant_address_p)
2371         (m68k_jump_table_ref_p, m68k_decompose_address)
2372         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2373         (m68k_matches_u_p): New functions.
2374         (print_operand_address): Rewrite to use m68k_decompose_index.
2375
2376 2007-03-05  David Taylor  <dtaylor@emc.com>
2377
2378         * gcc.c: Correct copyright date in --version output.
2379
2380 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2381
2382         * pa.md: In unamed move patterns, disparge copies between general
2383         and floating point registers using '?' modifier.  Don't include 'f'
2384         constraint for register preferences in DImode, SImode, HImode and
2385         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
2386         Remove constraints for copies between general and floating registers
2387         in soft-float DFmode pattern.
2388         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2389         floating register.
2390         (movsf): Likewise.
2391
2392 2007-03-05  Mike Stump  <mrs@apple.com>
2393
2394         * c-common.c (targetcm): Add.
2395         * c-opts.c (c_common_handle_option): Handle language specific
2396         target options.
2397         * opts.c (handle_option): Verify language for target options, if
2398         any are given.
2399         * opth-gen.awk: Add CL_LANG_ALL.
2400         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2401         (TARGETCM_INITIALIZER): Add.
2402         * target.h (struct gcc_targetcm): Add.
2403         (targetcm): Add.
2404         * targhooks.c (default_handle_c_option): Add.
2405         * targhooks.h (default_handle_c_option): Add.
2406         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2407
2408         * config/darwin.opt (iframework): Add.
2409         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2410         * config/darwin-c.c (handle_c_option): Add.
2411         (TARGET_HANDLE_C_OPTION): Add.
2412         (targetcm): Add.
2413         * doc/invoke.texi (Darwin Options): Add -iframework.
2414
2415 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2416
2417         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2418         conversion.
2419
2420 2007-03-05  Ian Lance Taylor  <iant@google.com>
2421
2422         * c.opt (fgnu89-inline): New option.
2423         * c-opts.c (c_common_post_options): Set default value for
2424         flag_gnu89_inline.
2425         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2426         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2427         inline functions.
2428         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2429         (grokdeclarator, start_function): Likewise.
2430         * c-cppbuiltin.c (c_cpp_builtins): Define either
2431         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2432         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2433         (C Dialect Options): Document -fgnu89-inline.
2434         * doc/extend.texi (Function Attributes): Explain what the
2435         gnu_inline attribute does.
2436         * doc/cpp.texi (Common Predefined Macros): Document
2437         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2438
2439 2007-03-05  Ian Lance Taylor  <iant@google.com>
2440
2441         PR tree-optimization/31034
2442         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2443         half-range if the other side is an overflow infinity.
2444
2445 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2446
2447         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2448         (bfin*-linux-uclibc*): New configuration.
2449         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
2450         defining.
2451         * config/bfin/linux.h: New file.
2452         * config/bfin/libgcc-bfin.ver: New file.
2453         * config/bfin/t-bfin-uclinux: New file.
2454         * config/bfin/t-bfin-linux: New file.
2455         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
2456         (TARGET_OS_CPP_BUILTINS): New macro.
2457
2458 2007-03-05  Richard Guenther  <rguenther@suse.de>
2459
2460         * fold-const.c (fold_binary): Remove duplicate folding
2461         of comparison of non-null ADDR_EXPR against null.
2462
2463 2007-03-05  Richard Guenther  <rguenther@suse.de>
2464             Dorit Nuzman  <dorit@il.ibm.com>
2465
2466         PR tree-optimization/26420
2467         * tree-vectorizer.c (vectorize_loops): Bail out early if there
2468         are no loops in the function.  Only print the number of
2469         vectorized loops if it is greater than zero or we are supposed
2470         to print information about unvectorized loops.
2471
2472 2007-03-05  Revital Eres  <eres@il.ibm.com>
2473
2474         * gcc.dg/var-expand1.c: New test.
2475         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
2476         when an accumulator is expanded.
2477
2478 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2479
2480         PR other/30465
2481         * c-common.c (convert_and_check): Don't give warnings for
2482         conversion if 'expr' already overflowed.
2483
2484 2007-03-04  Roger Sayle  <roger@eyesopen.com>
2485
2486         PR middle-end/30744
2487         * fold-const.c (fold_comparison): Enforce type consistency when
2488         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
2489
2490 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
2491
2492         * tree-ssa-address.c (create_mem_ref): Do not put an expression
2493         containing a cast to the base of TARGET_MEM_REF.
2494
2495 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
2496
2497         * tree.c (tree_contains_struct_check_failed): Remove spurious
2498         whitespace from error message.
2499
2500 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
2501
2502         PR target/30406
2503         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
2504         instead of precision.
2505
2506 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
2507             Nathan Sidwell  <nathan@codesourcery.com>
2508
2509         * emit-rtl.c (find_auto_inc): New.
2510         (try_split): recreate REG_INC notes,
2511         Use regular for loops rather than whiles.
2512
2513 2007-03-03  Andreas Schwab  <schwab@suse.de>
2514
2515         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
2516         * configure: Regenerate.
2517
2518 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2519
2520         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
2521         flag_rounding_math, not flag_unsafe_math_optimizations.
2522
2523         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
2524         fold_build2.
2525         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
2526         alpha_fold_vector_minmax): Likewise.
2527         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2528         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2529
2530 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
2531
2532         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
2533         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
2534         if the lhs has side-effects.
2535         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
2536
2537 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2538
2539         * config/i386/i386.h (TUNEMASK): Remove define.
2540         (ARCHMASK): Remove define.
2541         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
2542          Use ix86_arch_mask variable instead of ARCHMASK.
2543         * config/i386/i386.c (override_options): Ditto.
2544         (standard_80387_constant_p): Ditto.
2545
2546 2007-03-02  Ian Lance Taylor  <iant@google.com>
2547
2548         Used signed infinities in VRP.
2549         * tree-vrp.c (uses_overflow_infinity): New static function.
2550         (supports_overflow_infinity): New static function.
2551         (make_overflow_infinity): New static function.
2552         (negative_overflow_infinity): New static function.
2553         (positive_overflow_infinity): New static function.
2554         (is_negative_overflow_infinity): New static function.
2555         (is_positive_overflow_infinity): New static function.
2556         (is_overflow_infinity): New static function.
2557         (overflow_infinity_range_p): New static function.
2558         (compare_values_warnv): New function split out of compare_values.
2559         (compare_value): Call it.
2560         (set_value_range_to_nonnegative): Add overflow_infinity
2561         parameter.  Change caller.
2562         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
2563         Change callers.
2564         (vrp_expr_computes_nonzero): Likewise.
2565         (compare_ranges, compare_range_with_value): Likewise.
2566         (compare_name_with_value, compare_names): Likewise.
2567         (vrp_evaluate_conditional): Likewise.
2568         (set_value_range): Handle infinity
2569         (vrp_operand_equal_p, operand_less_p): Likewise.
2570         (extract_range_from_assert): Likewise.
2571         (vrp_int_const_binop): Likewise.
2572         (extract_range_from_binary_expr): Likewise.
2573         (extract_range_from_unary_expr): Likewise.
2574         (extract_range_from_comparison): Likewise.
2575         (extract_range_from_expr): Likewise.
2576         (dump_value_range): Likewise.
2577         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
2578         (test_for_singularity): Likewise.
2579         (vrp_int_const_binop): Remove inline qualifier.
2580         (adjust_range_with_scev): Add comment.
2581         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2582
2583 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
2584
2585         * tree-ssa-structalias.c (could_have_pointers): Tidy.
2586         (get_constraint_for): Likewise.
2587         (do_structure_copy): Likewise.
2588         (find_func_aliases): Fix references to MODIFY_EXPR.
2589         (intra_create_variable_infos): Tidy.
2590         * tree-ssa-operands.c (add_virtual_operand): Add argument
2591         IS_CALL_SITE.
2592         When adding members of alias sets, if IS_CALL_SITE is true and
2593         the symbol is not call-clobbered, skip it.
2594         Adjust all callers.
2595
2596 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
2597
2598         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
2599         entry by means of emit_insn_at_entry.
2600
2601 2007-03-02  Richard Henderson  <rth@redhat.com>
2602
2603         * expr.h (promoted_input_arg): Remove decl.
2604         * function.c (promoted_input_arg): Merge into ...
2605         * combine.c (setup_incoming_promotions): ... only caller.
2606         Rearrange to avoid double loop.
2607
2608 2007-03-02  Ben Elliston  <bje@au.ibm.com>
2609             Peter Bergner  <bergner@vnet.ibm.com>
2610             Janis Johnson  <janis187@us.ibm.com>
2611
2612         * config/rs6000/dfp.md: New file.
2613         * config/rs6000/rs6000.md: Include dfp.md.
2614         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
2615         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
2616         and TDmode decimal float modes in FP registers.
2617         (num_insns_constant): Likewise.
2618         (rs6000_legitimate_offset_address_p): Likewise.
2619         (rs6000_legitimize_address): Likewise.
2620         (rs6000_legitimize_reload_address): Likewise.
2621         (rs6000_legitimate_address): Likewise.
2622         (rs6000_emit_move): Likewise.
2623         (function_arg_boundary): Likewise.
2624         (function_arg_advance): Likewise.
2625         (rs6000_darwin64_record_arg_recurse): Likewise.
2626         (function_arg): Likewise.
2627         (rs6000_gimplify_va_arg): Likewise.
2628         (rs6000_split_multireg_move): Likewise.
2629         (rs6000_output_function_epilogue): Likewise.
2630         (rs6000_output_function_epilogue): Likewise.
2631         (rs6000_register_move_cost): Likewise.
2632         (rs6000_function_value): Likewise.
2633         (rs6000_libcall_value): Likewise.
2634
2635 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
2636
2637         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
2638
2639 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
2640
2641         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
2642         Use $MULTIDIR to choose between the kernel and RTP headers,
2643         and use $WIND_BASE and $WIND_USR to locate them.
2644
2645 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2646
2647         * config/i386/i386.c (override_options): Put initialization of
2648         ix86_tune_mask and ix86_arch_mask to the correct place.
2649
2650 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2651             Michael Meissner  <michael.meissner@amd.com>
2652
2653         PR target/31019
2654         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
2655         (ARCHMASK): Define.
2656         (TARGET_CMOVE): Use ARCHMASK.
2657         (TARGET_CMPXCHG): Ditto.
2658         (TARGET_CMPXCHG8B): Ditto.
2659         (TARGET_XADD): Ditto.
2660         (TARGET_BSWAP): Ditto.
2661         * config/i386/i386.c (ix86_tune_mask): New global variable.
2662         (ix86_arch_mask): Ditto.
2663         (override_options): Initialize ix86_tune_mask and
2664         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
2665         target_flags.
2666
2667 2007-03-02  Ben Elliston  <bje@au.ibm.com>
2668
2669         PR 30992
2670         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
2671
2672 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
2673
2674         * target.h (init_dwarf_reg_sizes_extra): New target hook.
2675         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
2676         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
2677         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
2678         hook.
2679         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
2680         rs6000_init_dwarf_reg_sizes_extra): New.
2681         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
2682         SPE register high parts.
2683
2684 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2685
2686         * Makefile.in: Add install-pdf target as
2687         copied from automake v1.10 rules.
2688         * configure.ac: Add install-pdf to target list.
2689         * configure: Regenerate.
2690
2691 2007-03-01  Paul Brook  <paul@codesourcery.com>
2692
2693         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
2694         modes to LDRD for DImode.
2695         (output_move_double): Fixup out of range ldrd/strd.
2696         (vfp_secondary_reload_class): Rename...
2697         (coproc_secondary_reload_class): ... to this.  Add wb argument.
2698         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
2699         coproc_secondary_reload_class for CLASS_IWMMXT.
2700         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
2701         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
2702
2703 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
2704
2705         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
2706         factor by the estimated number of iterations.
2707         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
2708         prefetch latency.
2709
2710         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
2711         decode_caches_intel, detect_caches_intel): New functions.
2712         (host_detect_local_cpu): Use detect_caches_amd and
2713         detect_caches_intel.
2714
2715 2007-03-01  Richard Henderson  <rth@redhat.com>
2716
2717         * expr.c (emit_move_complex_push): Export.
2718         (emit_move_complex_parts): Split out from ...
2719         (emit_move_complex): ... here.
2720         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
2721         * config/i386/i386.md (movcdi): New.
2722
2723 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
2724
2725         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
2726         size of mode1 to check for tieable modes in MMX case.
2727
2728 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
2729
2730         * Makefile.in (rtlanal.o): Depend on tree.h.
2731         * rtl.h (offset_within_section_p, split_const): Declare.
2732         * rtlanal.c: Include tree.h.
2733         (offset_within_block_p): New function, taken from
2734         mips_offset_within_object_p.
2735         (split_const): New function, taken from mips_split_const.
2736         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
2737         Declare.
2738         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
2739         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
2740         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
2741         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2742         (m68k_illegitimate_symbolic_constant_p): New function.
2743         * config/m68k/m68k.md (movsi): Remove misleading predicates.
2744         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
2745         symbolic constant that might be outside the symbol's section,
2746         move the symbol first and then add the offset.
2747         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
2748         Override.
2749         * config/mips/mips.c (mips_split_const): Delete.
2750         (mips_offset_within_object_p): Delete.
2751         (mips_symbolic_constant_p): Use offset_within_section_p and
2752         split_const instead of mips_offset_within_object_p and
2753         mips_split_const.
2754         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
2755         (mips_legitimize_const_move, print_operand_reloc)
2756         (mips_dangerous_for_la25_p): Use split_const instead of
2757         mips_split_const.
2758
2759 2007-02-28  Eric Christopher  <echristo@apple.com>
2760
2761         * Makefile.in (install-include-dir): Don't rm -rf include.
2762
2763 2007-02-28  Richard Guenther  <rguenther@suse.de>
2764
2765         PR middle-end/30364
2766         * fold-const.c (fold_binary): Do not associate expressions
2767         with more than one variable for integer types that do not wrap.
2768
2769 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
2770
2771         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
2772         Delete, and replace with...
2773         (fold_builtin_call_array): This.  Update callers to use it.
2774         * fold-const.c (fold_build_call_list): Delete, and replace with...
2775         (fold_build_call_array): This.
2776         (fold_build_call_list_initializer): Delete, and replace with...
2777         (fold_build_call_array_initializer): This.
2778         * tree.h: Update declarations to reflect above changes.
2779
2780         * c-typeck.c (build_function_call): Store converted arguments
2781         in a stack-allocated array instead of building a list.
2782         (convert_arguments): Store arguments in the array passed in as an
2783         argument, and return the actual number of arguments.
2784         * c-format.c: (check_function_format): Pass arguments in an
2785         array instead of a list.
2786         * c-common.c (check_function_nonnull): Likewise.
2787         (check_function_sentinel): Likewise.
2788         (check_function_arguments): Likewise.
2789         * c-common.h: Update declarations to reflect above changes.
2790
2791 2007-02-28  Jan Hubicka  <jh@suse.cz>
2792
2793         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
2794         PRED_NEGATIVE_RETURN): Update outcomes.
2795
2796 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2797
2798         * calls.c (emit_library_call_value_1): Handle partial registers
2799         correctly when building up CALL_INSN_FUNCTION_USAGE.
2800
2801 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2802
2803         * pa/predicates.md (move_src_operand): Allow zero for mode.
2804         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
2805         move pattern.
2806
2807 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
2808
2809         PR target/30970
2810         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
2811         *movv2df_internal): Enable pattern only for valid operand
2812         combinations.
2813         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
2814         tie only 128bit modes. For MMX registers, tie only 64bit modes.
2815
2816 2007-02-27  Mike Stump  <mrs@apple.com>
2817
2818         * config/darwin-crt3.c: Avoid compilation when compiling for a
2819         kext multilib.
2820
2821 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
2824         FIXED_INCLUDE_DIR.
2825         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
2826         for fixed headers and limits.h.
2827         (install-include-dir, install-headers-tar, install-headers-cpio,
2828         install-headers-cp, real-install-headers-tar,
2829         real-install-headers-cpio, real-install-headers-cp): Handle
2830         include-fixed as well as include.
2831         (install-mkheaders): Don't install files that go only in include
2832         not include-fixed.
2833         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
2834         from GCC_INCLUDE_DIR.
2835         * gcc.c (process_command): Remove special -BstageN/ handling.
2836         (do_spec_1): Add include-fixed directories.
2837
2838 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2839
2840         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
2841         _smulsi3_highpart.
2842         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
2843         New functions.
2844         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
2845         patterns.
2846
2847 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
2848
2849         * c-common.c (get_priority): Add check for
2850         SUPPORTS_INIT_PRIORITY.
2851
2852 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2853
2854         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
2855
2856         * config/bfin/bfin.c: Include "cfglayout.h".
2857         (MAX_LSETUP_DISTANCE): New macro.
2858         (struct loop_info): New members incoming, incoming_src and
2859         incoming_dest.  Delete member predecessor.
2860         (length_for_loop): New function.
2861         (bfin_optimize_loop): Handle more different loop structures.
2862         (bfin_discover_loop): Rework detection of predecessor blocks by
2863         examining incoming edges.
2864         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
2865         bfin_reorg_loops.
2866         (bfin_reorder_loops): New function.
2867         (bfin_reorg_loops): Use these three new functions.
2868
2869         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
2870         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
2871         (CONSTRAINT_LEN): Add entry for 'q'.
2872         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
2873         Add 'q' constraints.
2874         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
2875         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
2876
2877         * config/bfin/bfin.md (add_with_carry): New pattern.
2878         (s_or_u, su_optab, su_modifier): New code macros/attrs.
2879         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
2880         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
2881         support unsigned multiplies too.  Removed incorrect commutativity from
2882         operand 1 constraint where appropriate.
2883         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
2884         patterns.
2885         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
2886         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
2887         New patterns.
2888         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
2889         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
2890         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
2891         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
2892         usmulhisi_hh_huh): New patterns.
2893
2894         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
2895         lshifthi3): Fix output template to use half reg for operand 2.
2896
2897         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
2898         instead of R2.
2899
2900         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
2901
2902 2007-02-27  Andreas Schwab  <schwab@suse.de>
2903
2904         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
2905
2906 2007-02-27  Jan Hubicka  <jh@suse.cz>
2907
2908         * predict.c (last_basic_block_p): Remove.
2909         (tree_estimate_probability): Update return heuristic for commonized
2910         return blocks.
2911
2912 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
2913
2914         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
2915
2916 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
2917
2918         * doc/include/gcc-common.texi (versionsubtitle): New macro.
2919         * doc/cpp.texi: Standardize title page.
2920         * doc/cppinternals.texi: Likewise.
2921         * doc/gcc.texi: Standardize title page, remove version number
2922         from copyright page.
2923         * doc/gccint.texi: Likewise.
2924         * doc/install.texi: Standardize title page, add table of
2925         contents.
2926
2927 2007-02-26  Jan Hubicka  <jh@suse.cz>
2928
2929         * predict.def: Set outcomes according to more recent results.
2930         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
2931         Remove dead predictors.
2932         * predict.c (return_prediction): Fix pasto.
2933
2934 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2935
2936         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
2937         change; avoid a memory leak when returning early.
2938
2939 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
2940
2941         * c-decl.c (static_ctors): Move to c-common.c.
2942         (static_dtors): Likewise.
2943         (finish_function): Use c_record_cdtor_fn.
2944         (build_cdtor): Move to c-common.c.
2945         (c_write_global_declarations): Use c_build_cdtor_fns.
2946         * c-common.h (static_ctors): Declare.
2947         (static_dtors): Likewise.
2948         (c_record_cdtor_fn): Likewise.
2949         (c_build_cdtor_fns): Likewise.
2950         * c-common.c (static_ctors): New variable.
2951         (static_dtors): Likewise.
2952         (c_record_cdtor_fn): New function.
2953         (build_cdtor): Move from c-decl.c
2954         (c_build_cdtor_fns): New function.
2955
2956         * output.h (assemble_addr_to_section): Declare.
2957         (get_cdtor_priority_section): Likewise.
2958         * varasm.c (assemble_addr_to_section): New function.
2959         (get_cdtor_priority_section): Likewise.
2960         (default_named_section_asm_out_destructor): Use them.
2961         (destor_dtor_section_asm_out_destructor): Likewise.
2962         (default_named_section_asm_out_constructor): Likewise.
2963         (default_ctor_section_asm_out_constructor): Likewise.
2964         * config.gcc (*-*-vxworks*): Include vxworks.o.
2965         * config/t-vxworks (vxworks.o): New target.
2966         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
2967         (TARGET_ASM_CONSTRUCTOR): Define.
2968         (TARGET_ASM_DESTRUCTOR): Likewise.
2969         (vxworks_asm_out_constructor): Declare.
2970         (vxworks_asm_out_destructor): Likewise.
2971
2972         * c-common.c (get_priority): Check that we have not just an
2973         INTEGER_CST, but an integer constant with integeral type.
2974
2975 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
2976
2977         PR tree-optimization/30938
2978         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
2979         use &dt[nargs-1] instead of &dt[nargs] in the call to
2980         vect_is_simple_use().
2981
2982 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
2983
2984         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
2985         from register elimination as PRE_MODIFY / POST_MODIFY increments.
2986         Do not attempt to handle MEM inside auto-inc expressions.
2987         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
2988         of a register modified by an auto-inc expression.  However, do handle
2989         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
2990         (elimination_effects): Prohibit elimination of a register modified
2991         by an auto-inc expression.  Disable register elimination rules whose
2992         target register is modified by an auto-inc expression with variable
2993         increment.
2994
2995 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
2996
2997         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
2998         off-by-one error.
2999         (array_at_struct_end_p): New function.
3000         (idx_infer_loop_bounds): Use it.
3001         (estimate_numbers_of_iterations_loop): Export.
3002         * predict.c (predict_loops): Use estimated_loop_iterations_int.
3003         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
3004         (tree_estimate_probability): Call record_loop_exits.
3005         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
3006         (estimated_loop_iterations, estimated_loop_iterations_int,
3007         estimated_loop_iterations_tree): New functions.
3008         (analyze_siv_subscript_cst_affine,
3009         compute_overlap_steps_for_affine_1_2,
3010         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
3011         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
3012         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
3013         (PRED_LOOP_ITERATIONS_GUESSED): New.
3014         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
3015         * cfgloop.h (estimate_numbers_of_iterations_loop,
3016         estimated_loop_iterations_int): Declare.
3017
3018 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
3019
3020         * doc/extend.texi: Document optional priority argument to
3021         constructors and destructors.
3022         * tree.c (init_priority_for_decl): Adjust GTY markers.
3023         (init_ttree): Use priority-info hash functions for
3024         init_priority_for_decl.
3025         (tree_map_eq): Rename to ...
3026         (tree_map_base_eq): ... this.
3027         (tree_map_marked_p): Rename to ...
3028         (tree_map_base_marked_p): ... this.
3029         (tree_map_base_hash): New function.
3030         (decl_init_priority_lookup): Rework.
3031         (decl_fini_priority_lookup): New function.
3032         (decl_priority_info): New function.
3033         (decl_init_priority_insert): Use it.
3034         (decl_fini_priority_insert): Likewise.
3035         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
3036         hierarchy.
3037         (decl_restrict_base_insert): Likewise.
3038         (decl_debug_expr_insert): Likewise.
3039         (decl_value_expr_lookup): Likewise.
3040         (decl_value_expr_insert): Likewise.
3041         * tree.h (priority_type): New type.
3042         (decl_init_priority_lookup): Use priority_type.
3043         (decl_fini_priority_lookup): New function.
3044         (decl_init_priority_insert): Use priority_type.
3045         (decl_fini_priority_insert): New function.
3046         (DECL_HAS_INIT_PRIORITY): Tweak comments.
3047         (DECL_INIT_PRIORITY): Likewise.
3048         (SET_DECL_INIT_PRIORITY): Add comment.
3049         (DECL_FINI_PRIORITY): New macro.
3050         (SET_DECL_FINI_PRIORITY): Likewise.
3051         (DEFAULT_INIT_PRIORITY): Document.
3052         (MAX_INIT_PRIORITY): Likewise.
3053         (MAX_RESERVED_INIT_PRIORITY): Likewise.
3054         (tree_map_base): New type.
3055         (tree_map_base_eq): New function.
3056         (tree_map_base_hash): Likewise.
3057         (tree_map_base_marked_p): Likewise.
3058         (tree_map): Inherit from tree_map_base.
3059         (tree_map_eq): Make it a macro.
3060         (tree_map_marked_p): Likewise.
3061         (tree_int_map): Inherit from tree_map_base.
3062         (tree_int_map_eq): Make it a macro.
3063         (tree_int_map_hash): Likewise.
3064         (tree_int_map_marked_p): Likewise.
3065         (tree_priority_map): New type.
3066         (tree_priority_map_eq): New macro.
3067         (tree_priority_map_hash): Likewise.
3068         (tree_priority_map_marked_p): Likewise.
3069         * varasm.c (emults_decl): Adjust for refactoring of tree_map
3070         hierarchy.
3071         (emutls_common_1): Likewise.
3072         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3073         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
3074         of tree_map hierarchy.
3075         * tree-cfg.c (move_stmt_r): Likewise.
3076         (new_label_mapper): Likewise.
3077         * c-tree.h (c_expand_body): Move to ...
3078         * c-common.h (c_expand_body): ... here.
3079         * c-decl.c (c_expand_body): Move to ...
3080         * c-common.c (c_expand_body): ... here.
3081         (c_common_attribute_table): Allow 1 argument for the constructor
3082         and destructor attributes.
3083         (get_priority): New function.
3084         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
3085         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
3086
3087 2007-02-24  Jan Hubicka  <jh@suse.cz>
3088
3089         PR middle-end/30509
3090         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
3091
3092 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
3093             Jan Hubicka  <jh@suse.cz>
3094
3095         PR target/30778
3096         * i386.c (counter_mode): New function.
3097         (expand_set_or_movmem_via_loop): Use it.
3098         (expand_movmem_epilogue): Likewise; fix pasto.
3099         (ix86_expand_movmem): Do emit guard even for constant counts.
3100         (ix86_expand_setmem): Likewise.
3101
3102 2007-02-25  Nick Clifton  <nickc@redhat.com>
3103
3104         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
3105         (JUMP_TABLES_IN_TEXT_SECTION): Define.
3106
3107 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         PR target/30770
3110         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
3111         count argument with 0x10, not with 0x16.
3112         (expand_setmem_epilogue): Ditto.
3113
3114 2007-02-24  Mike Stump  <mrs@apple.com>
3115
3116         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
3117         symbols.
3118
3119 2007-02-24  Richard Guenther  <rguenther@suse.de>
3120
3121         PR middle-end/30951
3122         * fold-const.c (fold_binary): Fold x +- CST op x for
3123         EQ_EXPR and NE_EXPR.
3124
3125 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3126
3127         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
3128
3129 2007-02-24  Jan Hubicka  <jh@suse.cz>
3130
3131         * cgraphunit.c (decide_is_function_needed): Honor
3132         -fkeep-inline-functions.
3133
3134 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3135
3136         * builtins.c (fold_builtin_modf): New.
3137         (fold_builtin_2): Use it.
3138
3139 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3140
3141         * loop-iv.c (implies_p): Detect additional cases where A implies B.
3142         (determine_max_iter): Take additional LOOP arg; all callers changed.
3143         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
3144         one using simplifications.
3145         (simplify_using_initial_values): Return if the expression becomes
3146         invalid due to altered regs.
3147
3148 2007-02-23  DJ Delorie  <dj@redhat.com>
3149
3150         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
3151
3152 2007-02-23  Mike Stump  <mrs@apple.com>
3153
3154         * tlink.c (scan_linker_output): Parse linker messages from
3155         darwin9's linker better.
3156
3157 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
3158
3159         PR debug/29614
3160         * varpool.c (varpool_assemble_pending_decls):  Set
3161         varpool_last_needed_node to null.
3162
3163 2007-02-23  DJ Delorie  <dj@redhat.com>
3164
3165         * config/i386/i386.c (ix86_data_alignment): Don't specify an
3166         alignment bigger than the object file can handle.
3167
3168 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
3169
3170         PR target/30825
3171         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
3172         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
3173         (*movsf_1): Penalize MMX moves.
3174
3175 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3176
3177         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
3178         2^32-1 or more times unless flag_unsafe_loop_optimizations.
3179
3180         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
3181
3182 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3183
3184         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
3185         (fold_builtin_1): Use them.
3186         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3187         BUILT_IN_SIGNIFICAND.
3188
3189 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
3190
3191         * config/i386/i386.c (bdesc_1arg): Initialize
3192         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
3193         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
3194         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
3195         and IX86_BUILTIN_MOVSLDUP.
3196
3197 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
3198
3199         PR rtl-optimization/30841
3200         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
3201
3202 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3203
3204         * builtins.c (fold_builtin_frexp): New.
3205         (fold_builtin_2): Use it.
3206
3207 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
3208
3209         * doc/invoke.texi (Spec Files): Document getenv spec function.
3210
3211         * gcc.c (getenv_spec_function): New function.
3212         (static_spec_functions): Add it.
3213         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
3214         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
3215         header files.
3216
3217 2007-02-22  Michael Matz  <matz@suse.de
3218
3219         PR c++/29433
3220         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
3221         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
3222
3223 2007-02-22  Ian Lance Taylor  <iant@google.com>
3224
3225         PR debug/30898
3226         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
3227         (mem_loc_descriptor): Call it.
3228
3229 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
3230             Ira Rosen  <irar@il.ibm.com>
3231
3232         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
3233
3234 2007-02-22  Ira Rosen  <irar@il.ibm.com>
3235
3236         PR tree-optimization/30843
3237         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3238         stores only after all the group is vectorized.
3239
3240 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
3241
3242         PR tree-optimization/30858
3243         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
3244         in the reduction cycle have a single use in the loop.
3245         * tree-vectorizer.h (relevant): Add documentation.
3246
3247 2007-02-20  Mike Stump  <mrs@apple.com>
3248
3249         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
3250         * configure: Regenerate.
3251
3252 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3253
3254         Change the defaults of some parameters and options.
3255         * config/spu/spu-protos.h (spu_optimization_options): Declare.
3256         * config/spu/spu.c (spu_optimization_options): Add.
3257         (spu_override_options): Change params in spu_optimization_options.
3258         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
3259
3260         Register 127 is only 16 byte aligned when used as a frame pointer.
3261         * config/spu/spu-protos.h (spu_init_expanders): Declare.
3262         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
3263         HARD_FRAME_POINTER_REGNUM.
3264         (spu_legitimate_address):  Use regno_aligned_for_reload.
3265         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
3266         aligned when frame_pointer_needed is true.
3267         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
3268         to 8 bits.
3269         * config/spu/spu.h (INIT_EXPANDERS): Define.
3270
3271         Make sure shift and rotate instructions have valid immediate operands.
3272         * config/spu/predicates.md (spu_shift_operand): Remove.
3273         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
3274         * config/spu/constraints.md (W, O): Extend range.
3275         * config/spu/spu.md (umask, nmask): Define.
3276         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
3277         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
3278         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
3279         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
3280         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
3281         (lshr<mode>3_reg):  Fix rtl description.
3282
3283         Make sure mulhisi immediate operands are valid.
3284         * config/spu/predicates.md (imm_K_operand): Add.
3285         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
3286
3287         Generate constants using fsmbi and andi.
3288         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
3289         (print_operand, spu_split_immediate, classify_immediate,
3290         fsmbi_const_p): Handle IC_FSMBI2.
3291
3292         Correctly handle a CONST_VECTOR containing symbols.
3293         * config/spu/spu.c (print_operand): Handle HIGH correctly.
3294         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
3295         (immediate_load_p): Allow symbols that use 2 instructions to create.
3296         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
3297         with symbols when flag_pic is set.
3298         (const_vector_immediate_p): New.
3299         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
3300         accept a CONST_VECTOR with symbols.
3301         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
3302         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
3303         correctly.
3304         * config/spu/spu.md (high, low): Delete.
3305         (low_<mode>): Define.
3306
3307         Remove INTRmode and INTR_REGNUM, which didn't work.
3308         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
3309         of INTR_REGNUM.
3310         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
3311         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
3312         peephole2 pattern): Don't use INTR or 131.
3313         (movintrcc): Delete.
3314         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
3315         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
3316         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
3317         (UNSPEC_SET_INTR): Add.
3318         * config/spu/spu-modes.def (INTR): Remove.
3319
3320         More accurate warnings about run-time relocations.
3321         * config/spu/spu.c (reloc_diagnostic): Test in_section.
3322
3323         Correctly warn about immediate arguments to specific intrinsics.
3324         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
3325         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
3326         the instruction predicate.
3327
3328         Fix tree check errors with latest update.
3329         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
3330         CALL_EXPR_ARG.
3331         (spu_expand_builtin): Use CALL_EXPR_FN.
3332
3333         Add missing specific intrinsics.
3334         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
3335         si_bislede.
3336         * config/spu/spu_internals.h: Ditto.
3337
3338         Fix incorrect operand modifiers.
3339         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
3340         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
3341
3342         Optimize one case of zero_extend of a vec_select.
3343         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
3344
3345         Accept any immediate for hbr.
3346         * config/spu/spu.md (hbr):  Change s constraints to i.
3347
3348 2007-02-21  Paul Brook  <paul@codesourcery.com>
3349
3350         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
3351         condexec_count when skipping USE and CLOBBER.
3352
3353 2007-02-21  Nick Clifton  <nickc@redhat.com>
3354
3355         * common.opt (Warray-bounds): Add Warning attribute.
3356         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
3357         Likewise.
3358         (fsized-zeroes): Add Optimization attribute.
3359         (fsplit-wide-types, ftree-scev-cprop): Likewise.
3360         * c.opt (Wc++0x-compat): Add Warning attribute.
3361
3362 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3363
3364         PR middle-end/30761
3365         * reload1.c (eliminate_regs_in_insn): In the single_set special
3366         case, attempt to re-recognize the insn before falling back to
3367         having reload fix it up.
3368
3369 2007-02-20  Eric Christopher  <echristo@gmail.com>
3370
3371         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
3372         Rewrite accordingly.
3373         (frv_read_iacc_argument): Ditto.
3374         (frv_expand_set_builtin): Take a call instead of arglist, update for
3375         above changes.
3376         (frv_expand_unop_builtin): Ditto.
3377         (frv_expand_binop_builtin): Ditto.
3378         (frv_expand_cut_builtin): Ditto.
3379         (frv_expand_binopimm_builtin): Ditto.
3380         (frv_expand_voidbinop_builtin): Ditto.
3381         (frv_expand_int_void2arg): Ditto.
3382         (frv_expand_prefetches): Ditto.
3383         (frv_expand_voidtriop_builtin): Ditto.
3384         (frv_expand_voidaccop_builtin): Ditto.
3385         (frv_expand_load_builtin): Ditto.
3386         (frv_expand_store_builtin): Ditto.
3387         (frv_expand_mdpackh_builtin): Ditto.
3388         (frv_expand_mclracc_builtin): Ditto.
3389         (frv_expand_mrdacc_builtin): Ditto.
3390         (frv_expand_mwtacc_builtin): Ditto.
3391         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
3392         calls for above.
3393
3394 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
3395
3396         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
3397         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
3398         cmpb instruction.
3399         (HAVE_GAS_DFP): Check for assembler support of decimal floating
3400         point instructions.
3401         * configure: Regenerate.
3402         * config.in: Regenerate.
3403         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
3404         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
3405         masks to power6 and power6x and to POWERPC_MASKS.
3406         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3407         _ARCH_PWR6.
3408         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
3409         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
3410         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3411         Access PROTOTYPE as variable, not mask.
3412
3413 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3414
3415         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
3416         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
3417         * combine.c (adjust_for_new_dest): Use it.
3418         * postreload.c (reload_combine): Likewise.
3419
3420 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3421
3422         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
3423         notes on an insn with multiple sets, even if single_set returns
3424         non-NULL for that insn.
3425
3426 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3427
3428         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
3429         scalbn and scalbln.
3430
3431 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
3432
3433         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
3434         if user didn't pass it.
3435         * config/i386/darwin.h (CC1_SPEC): Likewise.
3436         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
3437         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
3438         -mmacosx-version-min.
3439
3440 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3441             Uros Bizjak  <ubizjak@gmail.com>
3442
3443         * optabs.h (enum optab_index): Add new OTI_scalb.
3444         (scalb_optab): Define corresponding macro.
3445         * optabs.c (init_optabs): Initialize scalb_optab.
3446         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
3447         patterns.
3448         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
3449         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
3450         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
3451         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
3452         flag_unsafe_math_optimizations is set.
3453
3454         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
3455         to implement scalbf, scalb and scalbl built-ins as inline x87
3456         intrinsics.
3457
3458 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3459             DJ Delorie <dj@redhat.com>
3460
3461         PR other/30824
3462         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
3463         (diagnostic_report_diagnostic): ... here, and turn them into real
3464         errors. If warnings are inhibited, no need to do anything.
3465
3466 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
3467
3468         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
3469         better code generation.
3470
3471 2007-02-20  Ben Elliston  <bje@au.ibm.com>
3472
3473         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
3474
3475 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
3476
3477         * config/alpha/alpha.c, config/alpha/alpha.md,
3478         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
3479         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
3480         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
3481         config/arm/lib1funcs.asm: Follow spelling conventions.
3482
3483         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
3484         config/fr30/fr30.md, config/i386/i386.h,
3485         config/iq2000/iq2000.h, config/iq2000/predicates.md,
3486         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
3487         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
3488         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
3489         config/rs6000/altivec.md, config/rs6000/rs6000.c,
3490         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
3491         config/sparc/sparc.c, config/sparc/sparc.h,
3492         config/sparc/sparc.md, config/spu/constraints.md,
3493         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
3494         conventions.
3495
3496 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
3497
3498         PR target/29943
3499         * varasm.c (use_blocks_for_decl_p): Return false for decls with
3500         alias attribute.
3501
3502 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
3503
3504         * doc/invoke.texi (-ftree-lrs): Remove.
3505
3506 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
3507
3508         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
3509         NULL.
3510
3511 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
3512
3513         * config/ia64/ia64.c (ia64_expand_builtin): Use the
3514         new CALL_EXPR_FN macro for retrieving the function
3515         declaration of the input expression.
3516
3517 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3518
3519         * c.opt (Waddress): New.
3520         * common.opt (Walways-true): Delete.
3521         (Wstring-literal-comparison): Delete.
3522         * doc/invoke.texi (Warning Options): Delete -Walways-true and
3523         -Wstring-literal-comparison. Add -Waddress.
3524         (Waddress): New.
3525         (Walways-true): Delete.
3526         (Wstring-literal-comparison): Delete.
3527         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
3528         consistently instead of -Walways-true in example.
3529         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
3530         * c-typeck.c (parser_build_binary_op): Replace
3531         -Wstring-literal-comparison and -Walways-true with -Waddress.
3532         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
3533         with -Waddress.
3534
3535 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
3536
3537         * tree-cfg.c (dump_function_to_file): Be prepared for functions
3538         without DECL_STRUCT_FUNCTION initialized.
3539
3540 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
3541
3542         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
3543         due to calls to functions taking pointers as parameters.
3544
3545 2007-02-19  Richard Henderson  <rth@redhat.com>
3546
3547         PR debug/29558
3548         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
3549         in memory.
3550
3551 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3552
3553         * config/s390/s390.c (s390_call_saved_register_used,
3554         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
3555         accessed to the new scheme.
3556
3557 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3558
3559         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
3560         (cris_print_index, cris_print_operand, cris_print_operand_address)
3561         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
3562         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
3563         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
3564         GET_CODE () == xxx.
3565         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
3566         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
3567         GO_IF_LEGITIMATE_ADDRESS): Ditto.
3568         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
3569         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
3570         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
3571         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
3572         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
3573         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
3574         (uminsi3, call, call_value): Ditto.
3575         (define_split: indir_to_reg_split, unnamed): Ditto.
3576
3577 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
3578
3579         PR tree-optimization/30975
3580         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
3581         wrong assert.
3582
3583 2007-02-18  Eric Christopher  <echristo@gmail.com>
3584
3585         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
3586         Remove use of arglist.
3587         (mips_expand_builtin): Remove use of arglist, pass in expr.
3588         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
3589         (mips_expand_builtin_movtf): Ditto.
3590         (mips_expand_builtin_compare): Ditto.
3591
3592 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
3593
3594         * tree-sra.c (sra_build_assignment): Replace assertion
3595         checking with a comment explaining why it can't be done.
3596
3597 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
3598
3599         PR middle-end/30833
3600         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
3601         during CALL_EXPR representation conversion.
3602         * tree-ssa-propagate.c (set_rhs): Likewise.
3603
3604 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
3605
3606         * tree-sra.c (sra_build_assignment): Disable assertion checking
3607         for now.
3608
3609 2007-02-18  Roger Sayle  <roger@eyesopen.com>
3610
3611         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
3612         instead of calling build2 with a GIMPLE_MODIFY_STMT.
3613         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
3614         Likewise.
3615         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
3616         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
3617         gimplify_init_ctor_eval_range, gimple_push_cleanup,
3618         gimplify_omp_for, gimplify_omp_atomic_pipeline,
3619         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
3620         force_gimple_operand): Likewise.
3621         * ipa-cp.c (constant_val_insert): Likewise.
3622         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3623         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
3624         perfect_nestify): Likewise.
3625         * langhooks.c (lhd_omp_assignment): Likewise.
3626         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
3627         lower_copyprivate_clauses, lower_send_clauses,
3628         lower_send_shared_vars, expand_parallel_call,
3629         expand_omp_for_generic, expand_omp_for_static_nochunk,
3630         expand_omp_for_static_chunk, expand_omp_sections,
3631         lower_omp_single_copy, lower_omp_for_lastprivate,
3632         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
3633         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
3634         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
3635         Likewise.
3636
3637 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
3638
3639         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
3640         config/sh/sh.md: Follow spelling conventions.
3641
3642         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
3643         config/frv/predicates.md: Follow spelling conventions.
3644
3645         * config/m68k/linux-unwind.h: Fix a comment typo.
3646         * target.h: Follow spelling conventions.
3647
3648 2007-02-18  Roger Sayle  <roger@eyesopen.com>
3649
3650         PR rtl-optimization/28173
3651         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
3652         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
3653         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
3654         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
3655         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
3656
3657 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3658
3659         * builtins.c (fold_builtin_load_exponent): New.
3660         (fold_builtin_2): Use it.
3661
3662 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
3663
3664         PR rtl-optimization/30773
3665         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
3666         if we fail to attach a REG_EQUIV note.
3667
3668 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
3669             Roger Sayle  <roger@eyesopen.com>
3670
3671         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
3672
3673 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
3674
3675         * calls.c (initialize_argument_information): Pass original EXP
3676         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
3677         code to split complex arguments here, as part of initializing the
3678         ARGS array.
3679         (expand_call): Remove code that builds a list of arguments and
3680         inserts implicit arguments into it.  Instead, just count how many
3681         implicit arguments there will be so we can determine the size of
3682         the ARGS array, and let initialize_argument_information do the work.
3683         (split_complex_values): Delete unused function.
3684
3685 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
3686
3687         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
3688
3689 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
3690
3691         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
3692         for arg pointer based indexed addressing.
3693
3694 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
3695
3696         * config/ia64/ia64.h, config/ia64/ia64.md,
3697         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
3698         spelling conventions.
3699
3700 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
3701
3702         * config/m68k/m68k.c (split_di): New.
3703         * config/m68k/m68k-protos.h: Declare split_di.
3704         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
3705           Improve predicate handling and split constant shifts.
3706
3707 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
3708
3709         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
3710         parameter for register bitfield operations, general predicates
3711         cleanup
3712
3713 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
3714
3715         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
3716         * config/m68k/linux-unwind.h: New file.
3717
3718 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
3719
3720         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
3721         config/i386/athlon.md, config/ia64/ia64.md,
3722         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
3723         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
3724         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
3725         tree-ssa-loop-niter.c, tree-vect-analyze.c,
3726         tree-vect-transform.c: Fix comment typos.
3727
3728 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
3729
3730         * sched-deps.c (find_insn_list): Remove.
3731         * sched-int.h: Remove the prototype for find_insn_list.
3732
3733 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
3734
3735         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
3736         to linker.
3737         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
3738         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
3739         darwin_rs6000_override_options.
3740         (C_COMMON_OVERRIDE_OPTIONS): Expect
3741         darwin_macosx_version_min to be non-NULL always.
3742         (TARGET_C99_FUNCTIONS): Likewise.
3743         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
3744         (DARWIN_MINVERSION_SPEC): New.
3745         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
3746         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
3747         to cc1*.
3748         (DARWIN_MINVERSION_SPEC): New.
3749         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
3750         value.
3751         * config/darwin-c.c (darwin_cpp_builtins): Expect
3752         darwin_macosx_version_min to be non-NULL always.
3753
3754         * config/rs6000/rs6000.c: Clean up trailing whitespace.
3755
3756 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
3757
3758         * config/i386/i386.h (x86_use_xchgb): New.
3759         (TARGET_USE_XCHGB): New macro.
3760         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
3761         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
3762         Split after reload into bswaphi for shifts of 8.
3763         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
3764         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
3765         or when optimizing for size.
3766
3767 2007-02-16  Richard Guenther  <rguenther@suse.de>
3768             Christian Bruel  <christian.bruel@st.com>
3769
3770         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
3771         DECLs but prefer SSA_NAMEs over DECLs.
3772
3773 2007-02-16  Richard Guenther  <rguenther@suse.de>
3774
3775         * tree-flow-inline.h (single_imm_use_p): Remove.
3776         (zero_imm_uses_p): Likewise.
3777         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
3778         instead of single_imm_use_p.
3779         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
3780         zero_imm_uses_p.
3781
3782 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3783
3784         PR other/27843
3785         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
3786         nested double- and backquotes.
3787
3788 2007-02-15  Roger Sayle  <roger@eyesopen.com>
3789
3790         PR middle-end/30391
3791         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
3792         should be unreachable.
3793         (build2_stat): Allow construction of MODIFY_EXPR at any time.
3794         For the time being redirect GIMPLE_MODIFY_STMT to the new
3795         (renamed) build_gimple_modify_stmt_stat.
3796         (build2_gimple_stat): Rename to...
3797         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
3798         Always build a GIMPLE_MODIFY_STMT node.
3799         * tree.h (build2_gimple, build2_gimple_stat): Delete.
3800         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
3801         declarations.
3802
3803         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
3804         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
3805         * tree-complex.c (set_component_ssa_name, expand_complex_move,
3806         expand_complex_div_wide): Likewise.
3807         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
3808         * tree-ssa-loop-im.c (schedule_sm): Likewise.
3809         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
3810         * tree-ssa-loop-manip.c (create_iv): Likewise.
3811         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
3812         abs_replacement): Likewise.
3813         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
3814         realify_fake_stores): Likewise.
3815
3816         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
3817         node rather than a GIMPLE_MODIFY_STMT node.
3818         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
3819         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
3820         Likewise.
3821         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
3822         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
3823         GIMPLE_MODIFY_STMT.
3824
3825 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3826
3827         PR middle-end/30433
3828         * fold-const.c (fold_comparison): Add back the
3829         folding of constant complex comparisions.
3830
3831 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3832
3833         PR middle-end/30729
3834         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
3835         effects unknown to this function, return early.
3836
3837 2007-02-15  Ian Lance Taylor  <iant@google.com>
3838
3839         * lower-subreg.c (move_eh_region_note): New static function.
3840         (resolve_simple_move): Call it.
3841         (decompose_multiword_subregs): Track blocks for which we resolve a
3842         simple move which is also a control flow insn.  Pass them to
3843         find_many_sub_basic_blocks.
3844         (pass_lower_subreg): Add TODO_verify_flow.
3845         (pass_lower_subreg2): Likewise.
3846
3847 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3848             Brooks Moses  <brooks.moses@codesourcery.com>
3849             Lee Millward  <lee.millward@codesourcery.com>
3850
3851         * tree.h (enum tree_code_class): Add tcc_vl_exp.
3852         (VL_EXP_CLASS_P): New.
3853         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
3854         TREE_CODE_LENGTH.
3855         (TREE_OPERAND_CHECK_CODE): Likewise.
3856         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
3857         (TREE_RTL_OPERAND_CHECK): Likewise.
3858         (tree_operand_check_failed): Make second parameter the whole tree
3859         instead of its code.  Fixed callers.
3860         (VL_EXP_CHECK): New.
3861         (TREE_OPERAND_LENGTH): New.
3862         (VL_EXP_OPERAND_LENGTH): New.
3863         (CALL_EXPR_FN): New.
3864         (CALL_EXPR_STATIC_CHAIN): New.
3865         (CALL_EXPR_ARGS): New.
3866         (CALL_EXPR_ARG): New.
3867         (call_expr_nargs): New.
3868         (CALL_EXPR_ARGP): New.
3869         (build_nt_call_list): Declare.
3870         (build_vl_exp_stat): Declare.
3871         (build_vl_exp): New.
3872         (build_call_list): Declare.
3873         (build_call_nary): Declare.
3874         (build_call_valist): Declare.
3875         (build_call_array): Declare.
3876         (call_expr_arg): Declare.
3877         (call_expr_argp): Declare.
3878         (call_expr_arglist): Declare.
3879         (fold_build_call_list): Declare.
3880         (fold_build_call_list_initializer): Declare.
3881         (fold_call_expr): Declare to replace fold_builtin.
3882         (fold_builtin_fputs): Update to agree with modified definition.
3883         (fold_builtin_strcpy): Likewise.
3884         (fold_builtin_strncpy): Likewise.
3885         (fold_builtin_memory_chk): Likewise.
3886         (fold_builtin_stxcpy_chk): Likewise.
3887         (fold_builtin_strncpy_chk): Likewise.
3888         (fold_builtin_next_arg): Likewise.
3889         (fold_build_call_expr): Declare.
3890         (fold_builtin_call_list): Declare.
3891         (fold_builtin_call_valist): Declare.
3892         (build_call_expr): Declare.
3893         (validate_arglist): Update to agree with modified definition.
3894         (tree_operand_length): New.
3895         (call_expr_arg_iterator): New.
3896         (init_call_expr_arg_iterator): New.
3897         (next_call_expr_arg): New.
3898         (first_call_expr_arg): New.
3899         (more_call_expr_args_p): New.
3900         (FOR_EACH_CALL_EXPR_ARG): New.
3901
3902         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
3903         and tcc_gimple_stmt.
3904         (tree_code_size): Update documentation.  Use sizeof (tree) rather
3905         than sizeof (char *).
3906         (tree_size): Likewise.  Add case for tcc_vl_exp.
3907         (tree_node_structure): Add case for tcc_vl_exp.
3908         (contains_placeholder_p): Likewise.
3909         (substitute_in_expr): Likewise.
3910         (substitute_placeholder_in_expr): Likewise.
3911         (stabilize_reference_1): Likewise.
3912         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
3913         to diagnose breakage of this interface for constructing CALL_EXPRs.
3914         (build_nt): Add similar assertion here.
3915         (build_nt_call_list): New.
3916         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
3917         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
3918         TREE_CODE_LENGTH.
3919         (get_callee_fndecl): Use new CALL_EXPR accessors.
3920         (tree_operand_check_failed): Change parameters to pass entire node
3921         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
3922         (process_call_operands): New.
3923         (build_vl_exp_stat): New.
3924         (build_call_list): New.
3925         (build_call_nary): New.
3926         (build_call_valist): New.
3927         (build_call_array): New.
3928         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3929         (call_expr_arglist): New.
3930
3931         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
3932         tcc_vl_exp instead of a fixed-size tcc_expression.
3933
3934         * doc/c-tree.texi (CALL_EXPR): Document new representation and
3935         accessors for CALL_EXPRs.
3936         (AGGR_INIT_EXPR): Likewise.
3937
3938 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3939             Brooks Moses  <brooks.moses@codesourcery.com>
3940             Lee Millward  <lee.millward@codesourcery.com>
3941
3942         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
3943         (expand_builtin_nonlocal_goto): Change parameter to be entire
3944         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
3945         (expand_builtin_prefetch): Likewise.
3946         (expand_builtin_classify_type): Likewise.
3947         (mathfn_built_in): Return NULL_TREE instead of 0.
3948         (expand_errno_check): Use new CALL_EXPR accessors.
3949         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
3950         Return NULL_RTX instead of 0.
3951         (expand_builtin_mathfn_2): Likewise.
3952         (expand_builtin_mathfn_3): Likewise.
3953         (expand_builtin_interclass_mathfn): Likewise.
3954         (expand_builtin_sincos): Likewise.
3955         (expand_builtin_cexpi): Likewise.
3956         (expand_builtin_int_roundingfn): Likewise.
3957         (expand_builtin_int_roundingfn_2): Likewise.
3958         (expand_builtin_pow): Likewise.
3959         (expand_builtin_powi): Likewise.
3960         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
3961         of arglist, fixing callers appropriately.  Use new CALL_EXPR
3962         accessors and constructors.  Return NULL_RTX instead of 0.
3963         (expand_builtin_strstr): Likewise.
3964         (expand_builtin_strchr): Likewise.
3965         (expand_builtin_strrchr): Likewise.
3966         (expand_builtin_strpbrk): Likewise.
3967         (expand_builtin_memcpy): Likewise.
3968         (expand_builtin_mempcpy): Likewise.
3969         (expand_builtin_mempcpy_args): New.
3970         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
3971         (expand_builtin_memmove_args): New.
3972         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
3973         (expand_movstr): Likewise.
3974         (expand_builtin_strcpy): Likewise.
3975         (expand_builtin_strcpy_args): New.
3976         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
3977         (expand_builtin_strncpy): Likewise.
3978         (expand_builtin_memset): Likewise.
3979         (expand_builtin_memset_args): New.
3980         (expand_builtin_bzero): Similarly to expand_builtin_memset.
3981         (expand_builtin_memcmp): Likewise.
3982         (expand_builtin_strcmp): Likewise.
3983         (expand_builtin_strncmp): Likewise.
3984