]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* gcse.c (insert_store): Fix typo in previous patch.
[gcc.git] / gcc / ChangeLog
CommitLineData
3f2eae23
JH
1Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
2
3 * gcse.c (insert_store): Fix typo in previous patch.
4
f0babc9a
NB
52003-07-30 Neil Booth <neil@daikokuya.co.uk>
6
7 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
8
edeac5de
AK
92003-07-30 Andi Kleen <ak@muc.de>
10
11 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
12
6e885ee3
ZD
132003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14
15 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
16 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
17 GCOV_N_VALUE_COUNTERS): New.
18 * profile.c (compute_value_histograms): New static function.
19 (branch_prob): Read back the value histograms.
20 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
21 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
22 * value-prof.c: Add comment on reading the profile.
23 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
24 * doc/invoke.texi (-fprofile-values): Document behavior with
25 -fbranch-probabilities.
26
0e6cb2cb
DE
272003-07-30 David Edelsohn <edelsohn@gnu.org>
28
29 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
30
656ec3b1
UW
312003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
32
33 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
34 symbolically.
35
a0c8285b
JH
36Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
37
38 * gcse.c (insert_store): Ignore fake edges.
39
40 * c-common.c (flag_vtable_gc): Kill.
41 * c-common.g (flag_vtable_gc): Kill.
42 * c-opts (c_common_handle_option): Kill.
43 * c.opt (fvtable-gc): Kill.
44 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
45 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
46 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
47
48 * invoke.texi (-ftable-gc): Kill documentation.
49
50 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
51 just because function body is missing.
52
53 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
54
b2e863b8
RM
552003-07-30 Ranjit Mathew <rmathew@hotmail.com>
56
57 * unwind-sjlj.c: Fix typo in file description.
58
9206d736
AM
592003-07-30 Alan Modra <amodra@bigpond.net.au>
60
61 * calls.c (load_register_parameters): When shifting reg sized values
62 to the msb, move the value to a reg first.
63
9074464c
GK
642003-07-29 Geoffrey Keating <geoffk@apple.com>
65
66 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
67 * line-map.h (linemap_add): Update comments.
68 * line-map.c (linemap_add): Update comments, interpret zero-length
69 filename as "<stdin>".
70
e55e4f68
NN
712003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
72
73 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
74
55d54003
ZW
752003-07-29 Zack Weinberg <zack@codesourcery.com>
76
77 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
78 New static variables.
79 (struct c_scope): Add parms and warned_forward_parm_decls
80 fields; remove parm_order.
81 (storedecls, storetags): Delete.
82 (poplevel): Also clear bindings on the parms chain.
83 (pushdecl): Handle forward declarations of parameters, and
84 chain PARM_DECLs on the parms list, not the names list.
85 (lookup_name_current_level): Check for PARM_DECLs on the parms
86 list too.
87 (push_parm_decl): Don't update parm_order.
88 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
89 warning, only once per parameter list, and set TREE_ASM_WRITTEN
90 on the decls here. Then move the forward decls to the names list.
91 (grokparms): Set last_function_parm_vars.
92 (get_parm_info): Don't use gettags or getdecls. No need to
93 extract non-parms from the parms list, or reorganize the parms
94 list. Feed nonparms back in the TREE_TYPE of the list node
95 returned. Issue only one error per parameter list for "void"
96 appearing more than once in said parameter list. Collapse
97 parmlist_tags_warning into this function to avoid double scan
98 of tags list.
99 (start_function): Set current_function_parm_vars.
100 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
101 directly. Get non-parms from current_function_parm_vars; no
102 need to extract them from the parms chain. Properly bind tags
103 in the new scope.
104 (store_parm_decls_oldstyle): No need to extract non-parameters
105 from the parms chain, nor to store them back afterward. Move
106 declaration to top of function, restructure code reordering
107 DECL_ARGUMENTS.
108 (store_parm_decls): No need to save and restore warn_shadow.
109 * c-parse.in: Don't call parmlist_tags_warning nor
110 clear_parm_order. Call mark_forward_parm_decls when forward
111 parm decls are encountered.
112 * c-tree.h: Prototype mark_forward_parm_decls; not
113 clear_parm_order or parmlist_tags_warning.
114
18c81520
GK
1152003-07-29 Geoffrey Keating <geoffk@apple.com>
116
117 * c-common.c (allow_pch): Remove.
118 * c-common.h (allow_pch): Remove.
119 (c_common_no_more_pch): Declare.
120 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
121 * c-pch.c: Include hosthooks.h.
122 (c_common_valid_pch): Don't check allow_pch.
123 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
124 (c_common_no_more_pch): New.
125 * ggc-common.c: Include hosthooks.h.
126 (gt_pch_save): Call gt_pch_get_address.
127 (gt_pch_restore): Call gt_pch_use_address.
128 * hooks.c (hook_voidp_size_t_null): New.
129 (hook_bool_voidp_size_t_false): New.
130 * hooks.h (hook_voidp_size_t_null): New.
131 (hook_bool_voidp_size_t_false): New.
132 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
133 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
134 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
135 HOST_HOOKS_GT_PCH_USE_ADDRESS.
136 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
137 gt_pch_use_address.
138 * doc/hostconfig.texi (Host Common): Document
139 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
140 * Makefile.in (c-pch.o): Depend on hosthooks.h.
141 (ggc-common.o): Likewise.
142
143 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
144 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
145 (pch_address_space): New.
146 (darwin_rs6000_gt_pch_get_address): New.
147 (darwin_rs6000_gt_pch_use_address): New.
148
8f9b4009
NB
1492003-07-29 Neil Booth <neil@daikokuya.co.uk>
150
151 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
152 * cppfiles.c: Completely rewritten.
153 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
154 struct cpp_path is now struct cpp_dir.
155 (remove_duplicates): Don't simplify path names.
156 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
157 cpp_stack_file.
158 * cpphash.h: Include hashtab.h.
159 (_cpp_file): Declare.
160 (struct cpp_buffer): struct include_file is now struct _cpp_file,
161 and struct cpp_path is now struct cpp_dir. Rename members.
162 (struct cpp_reader): Similarly. New members once_only_files,
163 file_hash, file_hash_entries, quote_ignores_source_dir,
164 no_search_path, saw_pragma_once. Remove all_include_files and
165 max_include_len. Make some members bool.
166 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
167 (_cpp_stack_file): Renamed from _cpp_read_file.
168 (_cpp_stack_include): Renamed from _cpp_execute_include.
169 (_cpp_init_files): Renamed from _cpp_init_includes.
170 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
171 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
172 (cpp_read_next_file): Rename and move to cppfiles.c.
173 (cpp_read_main_file): Update.
174 * cpplib.c (run_directive): Update for renamed members.
175 (do_include_common, _cpp_pop_buffer): Update.
176 (do_import): Undeprecate #import.
177 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
178 * cpplib.h: Remove file_name_map_list.
179 (cpp_options): Remove map_list.
180 (cpp_dir): Rename from cpp_path. New datatype for name_map.
181 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
182
a6400add
PE
1832003-07-29 Phil Edwards <pme@gcc.gnu.org>
184
185 * Makefile.in: Make stamp-objdir safe for parallel builds.
186
b2790407
PE
1872003-07-29 Phil Edwards <pme@gcc.gnu.org>
188
189 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
190 (info): Depend on stmp-docobjdir.
191
8e3940b2
RO
1922003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
193
194 * configure: Regenerate.
195
987bf56f
JH
196Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
197
198 PR C++/11131
199 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
200 in !unit-at-a-time mode.
201
5f0eabcc
GK
2022003-07-28 Geoffrey Keating <geoffk@apple.com>
203
204 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
205 main function.
206
7b6d72fc
MM
2072003-07-28 Mark Mitchell <mark@codesourcery.com>
208
209 PR c++/11667
210 * c-common.c (shorten_compare): Take into account differences
211 between C and C++ representation for enumeration types.
212 * tree.h (set_min_and_max_values_for_integral_type): Declare.
213 * stor-layout.c (set_min_and_max_values_for_integral_type): New
214 function, broken out from ...
215 (fixup_signed_type): ... here and ...
216 (fixup_unsigned_type): ... here.
217
14077d68
ZW
2182003-07-28 Zack Weinberg <zack@codesourcery.com>
219
220 * c-decl.c: Update commentary, adjust blank lines throughout.
221 (struct c_scope): Fix indentation. Reorder members so
222 outer-context pointers come first, booleans last.
223 (duplicate_decls, define_label): Use a 'locus' variable for
224 diagnostic locations in a few more places.
225 (warn_if_shadowing): Un-split a conditional that fits on one line.
226 (c_init_decl_processing): No need to clear current_scope and
227 current_function_scope.
228 (start_decl): Merge if/else if statements with same action.
229 (push_parm_decl): Rename old_immediate_size_expand to use
230 save_foo convention; save/restore around entire function.
231 (grokdeclarator): Remove unnecessary braces.
232
85617eba
HPN
2332003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
234 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
235
236 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
237 when warn_declaration_after_statement. Call pedwarn_c90, not
238 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
239 * c-common.c (warn_declaration_after_statement): Define.
240 * c-common.h (warn_declaration_after_statement): Declare.
241 * c.opt (Wdeclaration-after-statement): New.
242 * c-errors.c (pedwarn_c90): New function.
243 * c-opts.c (c_common_handle_option) <case
244 OPT_Wdeclaration_after_statement>: New.
245 * c-tree.h (pedwarn_c90): Declare.
246 * doc/invoke.texi (Option Summary): Document
247 -Wdeclaration-after-statement.
248 (Warning Options): Ditto.
249
f527d196
JH
250Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
251
252 * i386.md (memory attribute) Avoid accessing uninitialized memory
253 for ishift1 type instructions.
254
5dfa45d0
JJ
2552003-07-28 Jakub Jelinek <jakub@redhat.com>
256
257 * configure.in (--enable-checking): Add fold category.
258 (ENABLE_FOLD_CHECKING): Define if requested.
259 * configure: Rebuilt.
260 * config.in: Rebuilt.
261 * doc/install.texi: Document it.
262 * fold-const.c: Include md5.h.
263 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
264 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
265 print_fold_checksum): New functions.
266
267 * fold-const.c (fold): Never modify argument passed to fold, instead
268 change a copy and return it.
269 * convert.c (convert_to_integer): Likewise.
270
447673de
NN
2712003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
272
14077d68 273 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
274 cleanup of junk after #else and #endif directives. Collapse repeated
275 clauses into for statment.
276
277 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
278
66db6b62
ZW
2792003-07-27 Zack Weinberg <zack@codesourcery.com>
280
a8ccdffe
ZW
281 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
282 (keep_next_if_subblocks): Rename next_is_function_body.
283 (pushlevel): Adjust commentary. Always set ->keep on the
284 outermost level of a function. Don't set ->keep_if_subblocks.
285 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
286 (store_parm_decls): Adjust to match.
287 (finish_function): Adjust to match.
288 Call poplevel with all three arguments zero.
289
66db6b62
ZW
290 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
291 New functions split out of store_parm_decls.
292 Avoid unnecessary work. Use local variables consistently.
293 (store_parm_decls): Likewise.
294
295 (finish_function): No need to set functionbody flag on call to
296 poplevel.
297 (struct language_function): Remove scope field.
298 (c_push_function_context, c_pop_function_context): No need to
299 save and restore current_scope.
300
90ea7324
NS
3012003-07-27 Nathan Sidwell <nathan@codesourcery.com>
302
303 * doc/extend.texi (Deprecated Features): Implicit typename is
304 gone. Default args on types is going.
305
11a004ef
R
3062003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
307
308 * Makefile.in (ifcvt.o): Depend on target.h
309 * ifcvt.c (target.h): Include.
310 (if_convert): Don't call mark_loop_exit_edges if we can't
311 modify jumps.
312
6cbf57c9
GP
3132003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
314
315 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
316
a6c14a64
RH
3172003-07-26 Richard Henderson <rth@redhat.com>
318
319 PR inline-asm/11676
320 * cse.c (count_reg_usage): Handle asm_operands properly.
321
cc42f5f5
RS
3222003-07-26 Roger Sayle <roger@eyesopen.com>
323
324 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
325 (DEF_EXT_FALLBACK_BUILTIN): Delete.
326 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
327 the regular DEF_EXT_LIB_BUILTIN macro.
328 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
329 the regular DEF_LIB_BUILTIN macro.
330 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
331 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
332 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
333 DEF_EXT_LIB_BUILTIN macro.
334
335 * c-decl.c (duplicate_decls): Remove code to handle builtin
336 functions prototyped without an argument list.
337
92e7a6ef
DS
3382003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
339
340 * config/i386/winnt.c: Revert 2003-07-08 change.
341 (i386_pe_section_type_flags): Remove error_with_decl here too.
342
ba9cfcb5
GDR
3432003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
344
345 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
346 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
347 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
348 (v850_handle_data_area_attribute): Likewise.
349
0e5da0be
GK
3502003-07-26 Geoffrey Keating <geoffk@apple.com>
351
66db6b62 352 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
353 ASM_DECLARE_CONSTANT_NAME if defined.
354 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
355 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
356 objects get at least one byte to prevent assembler problems.
357 (ASM_DECLARE_CONSTANT_NAME): New.
358
d2908a50
GK
359 * Makefile.in (libbackend.o): Remove options_.h.
360 (mostlyclean): Likewise.
361
0e5da0be
GK
362 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
363 insert a label at the end of an function under Mach-O.
863d3dfb
GK
364
365 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
366
36252949
AH
3672003-07-25 Aldy Hernandez <aldyh@redhat.com>
368
369 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
370 equality.
371 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
372
373 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
374
0fe37f68
GDR
3752003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
376
377 * doc/passes.texi (Passes): Mention pretty-printing and
378 diagnostic files.
379
50fc59e7
NS
3802003-07-25 Nathan Sidwell <nathan@codesourcery.com>
381
382 * doc/extend.texi (Function Attributes): GNU C++ does now allow
383 unused parameter decls.
384 (Attribute Syntax): GNU C++ does not allow label attributes to be
385 after the ':'.
386
cd475805
GDR
3872003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
388
389 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
390 (objc_declare_class): Likewise.
391 (error_with_ivar): Likewise.
392 (start_class): Likewise.
393 (warn_with_method): Likewise.
394
b6fe0bb8
GDR
3952003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
396
397 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 398 from GCC.
b6fe0bb8
GDR
399 * calls.c (try_to_integrate): Don't use xxx_with_decl.
400 (expand_call): Likewise.
401 * dwarfout.c (output_reg_number): Likewise.
402 * expr.c (expand_expr): Likewise.
403 * function.c (assign_temp): Likewise.
404 (uninitialized_vars_warning): Likewise.
405 (setjmp_args_warning): Likewise.
406 (expand_function_end): Likewise.
407 * stmt.c (fixup_gotos): Likewise.
408 (warn_about_unused_variables): Likewise.
409 (expand_end_bindings): Likewise.
410 * stor-layout.c (layout_decl): Likewise.
411 (place_field): Likewise.
412 * toplev.c (check_global_declarations): Likewise.
413 (rest_of_handle_inlining): Likewise.
414 (default_tree_printer): New function.
415 (general_init): Initialize diagnostic machinery before routing
416 signals to the ICE machinery. Set default tree printer.
417 * toplev.h (pedwarn_with_decl): Remove declaration.
418 (warning_with_decl): Likewise.
419 (error_with_decl): Likewise.
66db6b62 420 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
421 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
422 * varasm.c (named_section): Likewise.
423 (make_decl_rtl): Likewise.
424 (assemble_variable): Likewise.
425 (merge_weak): Likewise.
426 (declare_weak): Likewise.
427
428 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
429 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
430 (format_with_decl): Remove.
431 (diagnostic_for_decl): Likewise.
432 (pedwarn_with_decl): Likewise.
433 (warning_with_decl): Likewise.
434 (error_with_decl): Likewise.
435 (diagnostic_initialize): Adjust.
436 (diagnostic_count_diagnostic): Likewise.
437 (announce_function): Likewise.
438 (lhd_print_error_function): Likewise.
439 (diagnostic_report_current_module): Likewise.
440 (default_diagnostic_starter): Likewise.
441 (diagnostic_report_diagnostic): Likewise.
442 (default_diagnostic_finalizer): Likewise.
443 (verbatim): Likewise.
444 (error): Likewise.
445 (warning): Likewise.
446 * opts.c (common_handle_option): Likewise.
447 * pretty-print.c: New file.
448 * c-pretty-print.h (pp_base): Override.
449 * c-pretty-print.c: Adjust use of macros throughout.
450 (pp_buffer): New macro.
451 (pp_newline): Likewise.
452 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
453 * Makefile.in (DIAGNOSTIC_H): New variable.
454 (c-errors.o): Use it.
455 (c-objc-common.o): Likewise.
456 (c-common.o): Likewise.
457 (c-opts.o): Likewise.
458 (c-format.o): Likewise.
459 (diagnostic.o): Likewise.
460 (opts.o): Likewise.
461 (toplev.o): Likewise.
462 (rtl-error.o): Likewise.
463 (dwarf2out.o): Likewise.
464 (jump.o): Likewise.
465 (pretty-print.o): New rule.
466
868b8cda
RS
4672003-07-24 Roger Sayle <roger@eyesopen.com>
468
469 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
470 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
471 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
472 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
473 (DEF_FRONT_END_LIB_BUILTIN): Delete.
474 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
475 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
476
477 * builtins.c (build_string_literal): New function to construct
478 a char* pointer to a string literal.
479 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
480 "rtx target" to be consistent with other expand_builtin_* functions.
481 Change 3rd argument from "int unlocked" to "bool unlocked".
482 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
483 c-common.c to avoid front-end dependencies. Optimize printf("")
484 as a no-op when the result isn't required. Handle embedded NULs
485 in format string.
486 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
487 from c-common.c to avoid front-end dependencies. Likewise, optimize
488 fprintf(fp,"") as a no-op when the result isn't required, evaluating
489 fp for side-effects. Handle embedded NULs in format string.
490 (expand_builtin_sprintf): Fix typo.
491 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
492 optimizing. Adjust calls of expand_builtin_fputs to match the API
493 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
494 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
495 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
496
497 * c-common.c (is_valid_printf_arglist): Delete.
498 (c_expand_builtin): Delete.
499 (c_expand_builtin_printf): Moved to builtins.c. Delete.
500 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
501 (c_expand_expr): No longer treat CALL_EXPRs specially.
502 (CALLED_AS_BUILT_IN): Delete.
503
2a868ea4
ZD
5042003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
505
506 PR optimization/11631
507 * gcse.c (store_motion): Connect infinite loops to exit.
508
de7df9eb
JM
5092003-07-24 Jason Merrill <jason@redhat.com>
510
511 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
512 (boolean_true_node, boolean_false_node): Likewise.
513 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
514 * tree.c (build_common_tree_nodes): Init boolean_type_node.
515 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
516 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
517 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
518 (truthvalue_true_node): Renamed from boolean_true_node.
519 (truthvalue_false_node): Renamed from boolean_false_node.
520 * c-decl.c: Just set truthvalue_* to integer_*.
521 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
522
6907ddd3
RS
5232003-07-24 Roger Sayle <roger@eyesopen.com>
524
525 * c-decl.c (match_builtin_function_types): New subroutine of
526 duplicate_decls to test whether a redeclaration of a builtin
527 function is suitably close, i.e. the return type and all of
528 the argument types have the same modes as the builtin expects.
529 (duplicate_decls): Fuzzy type matching for builtin functions
530 moved to match_builtin_function_types.
531
84d45ad1
ZD
5322003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
533
534 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
535 flag correctly.
536
f8521984
ZW
5372003-07-24 Zack Weinberg <zack@codesourcery.com>
538
539 * c-decl.c: Search-and-replace change 'binding level' to
540 'scope' in commentary.
541 (struct binding_level): Now struct c_scope.
542 (current_binding_level): Now current_scope.
543 (free_binding_level): Now scope_freelist.
544 (current_function_level): Now current_function_scope.
545 (global_binding_level): Now global_scope.
546 (make_binding_level): Now make_scope.
547 (pop_binding_level): Now pop_scope.
548
0f31374d
RO
5492003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
550
551 * configure.in (libgcc_visibility): Add missing whitespace.
552
270606ac
RH
5532003-07-24 Richard Henderson <rth@redhat.com>
554
555 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
556 __gcc_personality_v0.
f8521984 557
5f08e44f
RO
5582003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
559
560 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
561
a4878735
NS
5622003-07-24 Nathan Sidwell <nathan@codesourcery.com>
563
564 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
565 documentation missed from my 2003-07-09 patch.
566
5aaaf0e8
NN
5672003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
568
569 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
570 it's not provided.
571 * configure: Rebuild.
572
8f5b6d29
SB
5732003-07-24 Steven Bosscher <steven@gcc.gnu.org>
574
575 PR c/10602
576 * c-typeck.c (type_lists_compatible_p): Do not compare
577 arguments if one of them is an error_mark_node
578
acd0b319
AM
5792003-07-24 Alan Modra <amodra@bigpond.net.au>
580
581 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
582 if current_function_calls_eh_return.
583
28b619b2
MM
5842003-07-23 Mark Mitchell <mark@codesourcery.com>
585
586 * doc/c-tree.texi (OFFSET_TYPE): Update description.
587
07154156
BW
5882003-07-23 Bob Wilson <bob.wilson@acm.org>
589
590 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
591 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
592 __umodsi3, __modsi3): Increase frame size to 32.
593
5f5bfdd0
GK
5942003-07-23 Geoffrey Keating <geoffk@apple.com>
595
596 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
597 prototype.
598
11b8e71c
MM
5992003-07-23 Mark Mitchell <mark@codesourcery.com>
600
28b619b2
MM
601 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
602
11b8e71c
MM
603 PR optimization/10679
604 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
605
9d6b7c09
JDA
6062003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
607
608 PR target/11607 and PR target/11516
609 * pa.md (extzv, extv, insv): Revert latter half of last patch.
610
a5ac359a
MM
6112003-07-22 Mark Mitchell <mark@codesourcery.com>
612
613 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
614 * varasam.c (output_constant): Likewise.
615
938d968e
KH
6162003-07-22 Kazu Hirata <kazu@cs.umass.edu>
617
618 * alias.c: Fix comment formatting.
619 * c-common.c: Likewise.
620 * c-decl.c: Likewise.
621 * c-opts.c: Likewise.
622 * combine.c: Likewise.
623 * cpplib.c: Likewise.
624 * diagnostic.c: Likewise.
625 * dojump.c: Likewise.
626 * final.c: Likewise.
627 * fold-const.c: Likewise.
628 * gcc.c: Likewise.
629 * gcse.c: Likewise.
630 * ggc-page.c: Likewise.
631 * jump.c: Likewise.
632 * loop.c: Likewise.
633 * mips-tfile.c: Likewise.
634 * recog.c: Likewise.
635 * regclass.c: Likewise.
636 * regmove.c: Likewise.
637 * tree.c: Likewise.
638 * tree.h: Likewise.
639
b3147029
PB
6402003-07-22 Per Bothner <pbothner@apple.com>
641
642 * line-map.c (add_line_map): Handle invalid LEAVE request.
643 Fixes PR preprocessor/11361.
644
53f72d60
PB
6452003-07-22 Per Bothner <pbothner@apple.com>
646
647 * diagnostic.c.(diagnostic_report_current_module): Update to match
648 2003-06-05 changes to push_srcloc and pop_srcloc.
649
5cf0212f
WB
6502003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
651
652 * doc/trouble.texi: Better document two-stage name lookup.
653
c7453384
EC
6542003-07-22 Eric Christopher <echristo@redhat.com>
655
656 * config/s390.c (s390_valid_pointer_mode): New.
657 (TARGET_VALID_POINTER_MODE): Use.
658 (s390_emit_prologue): Add tpf profiling hooks.
659 (s390_emit_epilogue): Ditto.
660 * config/s390.h (MASK_TPF): New.
661 (TARGET_TPF): Use.
662 (POINTERS_EXTEND_UNSIGNED): Define.
663 * config/s390.md (ptr_extend): New pattern.
664
a2f7be91
ZW
6652003-07-22 Zack Weinberg <zack@codesourcery.com>
666
667 * hashtable.c (approx_sqrt): Make static.
668 * hashtable.h: Don't prototype approx_sqrt.
669 * line-map.c (init_line_maps): Rename linemap_init.
670 (free_line_maps): Rename linemap_free.
671 (add_line_map): Rename linemap_add.
672 (lookup_line): Rename linemap_lookup.
673 (print_containing_files): Rename linemap_print_containing_files.
674 * linemap.h: Update to match.
675
676 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
677 linemap routines to use new names.
678
c6e4cc53
NS
6792003-07-16 Nathan Sidwell <nathan@codesourcery.com>
680
681 * c-common.c (handle_packed_attribute): Don't pack a struct via a
682 typedef. Propagate packedness from a main variant.
683
55de4f08
NN
6842003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
685
686 * Makefile.in (install-common): Add dependency on installdirs.
687
fb5d2a87
AO
6882003-07-21 Alexandre Oliva <aoliva@redhat.com>
689
690 * c-common.c (c_common_type_for_mode): Return integer types for
691 pointer modes.
692
905bd7b5
GK
6932003-07-22 Geoffrey Keating <geoffk@apple.com>
694
d05cc98e
GK
695 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
696 (finish_decl): Call maybe_apply_pragma_weak here.
697 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
698 TREE_PUBLIC and TREE_STATIC are decided.
699 (start_function): Move call to maybe_apply_pragma_weak. Check that
700 DECL_ASSEMBLER_NAME isn't set too early.
701
905bd7b5
GK
702 * cpplex.c (_cpp_process_line_notes): Mention option name in
703 trigraphs warning.
704
87d9741e
KH
7052003-07-22 Kazu Hirata <kazu@cs.umass.edu>
706
707 * combine.c (if_then_else_cond): Simplify the comparison of
708 rtx against -1, 0, and 1.
709 * loop.c (check_dbra_loop): Likewise.
710 * optabs.c (emit_conditional_move): Likewise.
711 (emit_conditional_add): Likewise.
712 * config/i386/i386.md (*movsi_or): Likewise.
713 (*movdi_or_rex6): Likewise.
714
b67d7f4a
JH
715Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
716
717 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
718
8d973a83
NB
7192003-07-21 Neil Booth <neil@daikokuya.co.uk>
720
721 * cppfiles.c (open_file_pch): Don't put unused entries in the
722 splay tree. Remove dead code.
723
49a64b24
GK
7242003-07-21 Geoffrey Keating <geoffk@apple.com>
725
48873ed2
GK
726 * c-common.h (num_in_fnames): Declare.
727 (c_static_assembler_name): Move from here...
728 * c-tree.h (c_static_assembler_name): ... to here.
729 * c-opts.c: Don't include langhooks-def.h.
730 (c_static_assembler_name): Move to c-decl.c.
731 (num_in_fnames): Make externally visible.
732 * c-decl.c: Include langhooks-def.h.
733 (c_static_assembler_name): Move from c-opts.c.
734 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
735 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
736
49a64b24
GK
737 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
738 when it's not needed.
739
8c29550d
JJ
7402003-07-21 Jakub Jelinek <jakub@redhat.com>
741
742 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
743 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
744 (rs6000_emit_prologue): Save FPRs inline if set.
745
92cbea22
L
7462003-07-21 H.J. Lu <hongjiu.lu@intel.com>
747
748 * config/ia64/ia64.md (prefetch): Support predicate.
749
ee735eef
JZ
7502003-07-21 Josef Zlomek <zlomekj@suse.cz>
751
752 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
753 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
754 table.
755
bbda30a4
EB
7562003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
757
a2f7be91 758 PR optimization/11536
bbda30a4
EB
759 * unroll.c (loop_iterations): Do not replace a register holding
760 the final value by its equivalent before the loop if it is not
761 invariant.
762
64c18e57
DF
7632003-07-21 Dave Fluri <dave.fluri@onlink.net>
764
765 * doc/extend.texi: Fixes to spelling, grammar, and diction.
766
b222f49a
BE
7672003-07-21 Ben Elliston <bje@wasabisystems.com>
768
769 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
770 (V850 Options): Spelling fixes.
771
9eff22bc
LG
7722003-07-20 Lisa M. Goldstein <opus@gnu.org>
773
a2f7be91 774 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 775
6a6c0154
RS
7762003-07-20 Roger Sayle <roger@eyesopen.com>
777
778 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
779 * system.h (SMALL_STACK): Poison obsolete target macro.
780 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
781
d38b3a8d
PE
7822003-07-20 Phil Edwards <pme@gcc.gnu.org>
783
784 * configure.in: Cache the results of testing for cmp's capabilities.
785 * configure: Regenerate.
786
35dc2bd8
MM
7872003-07-20 Mark Mitchell <mark@codesourcery.com>
788
789 PR debug/11279
790 * dwarf2out.c (gen_enumeration_type_die): Remember that
791 enumerators can be unsigned.
792
14e33ee8
ZW
7932003-07-19 Zack Weinberg <zack@codesourcery.com>
794
795 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
796 (push_label_level, pop_label_level): Kill.
797 (struct binding_level): Rename level_chain to outer.
798 Add outer_function field. Change parm_flag, function_body,
799 keep, keep_if_subblocks to 1-bit bitfields of type bool.
800 (current_function_level): New variable.
801 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
802 (keep_next_level, declare_parm_level, warn_if_shadowing):
803 Update to match.
804 (struct language_function): Kill named_labels, shadowed_labels fields.
805 (c_init_decl_processing, start_function, c_push__function_context)
806 (c_pop_function_context): No need to muck with named_labels nor
807 shadowed_labels.
808
809 (make_binding_level): No need to clear the structure here.
810 (pop_binding_level): Always operate on current_binding_level.
811 Update current_function_level if necessary.
812 (pushlevel): Don't clear named_labels. Update current_function_level
813 if necessary. Use "true" and "false" where appropriate.
814 (poplevel): Diagnose labels defined but not used, or vice
815 versa, and clear out label-meanings leaving scope, while
816 walking down the decls list, for all binding levels.
817 Handle LABEL_DECLs appearing in the shadowed list.
818 pop_binding_level takes no arguments.
819 (pushdecl_function_level): Use current_function_level.
820
821 (make_label, bind_label): New static functions.
822 (declare_label): New exported function.
823 (lookup_label, define_label): Rewritten for new data structure.
824 (shadow_label): Kill.
825
826 * c-tree.h: Prototype declare_label; don't prototype
827 push_label_level, pop_label_level, nor shadow_label.
828 * c-parse.in: Remove all calls to push_label_level and
829 pop_label_level. Use declare_label for __label__ decls.
830
831 * doc/extend.texi: Clarify that __label__ can be used to
832 declare labels with local scope in any nested block, not
833 just statement expressions. Cross-reference nested functions
834 section from local labels section.
835
8a6b9b7f
ZD
8362003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
837
838 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
839
026fe6c8
PE
8402003-07-19 Phil Edwards <pme@gcc.gnu.org>
841
842 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
843
c68b0a84
KG
8442003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
845
846 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
847 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
848
fd7643fb
UW
8492003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
850
14e33ee8 851 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
852 relative to the GOT instead of relative to the literal pool base.
853 (s390_output_symbolic_const): Handle new GOT-relative accesses.
854 * config/s390/s390.md ("call"): Access local functions and PLT stubs
855 relative to the GOT instead of relative to the literal pool base.
856 ("call_value"): Likewise.
857 ("call_value_tls"): Likewise.
858
14e33ee8 859 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
860 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
861 (s390_chunkify_finish): Likewise.
862 (s390_chunkify_cancel): Likewise.
863 (s390_reorg): Adapt caller.
864 (find_base_register_in_addr,
865 find_base_register_ref, replace_base_register_ref): Delete.
866 (find_ltrel_base, replace_ltrel_base): New functions.
867 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
868 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
869 base vs. index register usage.
870 (struct constant_pool): Remove 'anchor'.
871 (s390_add_anchor): Delete.
872 (s390_dump_pool): Remove anchor handling.
873 * config/s390/s390.md ("reload_anchor"): Remove.
874
875 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
876 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
877 (s390_emit_prologue): Use it.
14e33ee8
ZW
878 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
879 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
880 hard-code register 14.
881 * config/s390/s390-protos.h (s390_load_got): Declare.
882
14e33ee8 883 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
884 Support TImode constants.
885 * config/s390/s390.md ("consttable_ti"): New.
886 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
887
888 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
889 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
890 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
891 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
892 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
893 New symbolic constants.
894 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
895 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
896 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
897 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
898 symbolic UNSPEC values.
14e33ee8 899 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
900 bras_sym_operand, s390_cannot_force_const_mem,
901 s390_delegitimize_address, s390_decompose_address,
902 legitimize_pic_address, s390_output_symbolic_const,
903 s390_function_profiler): Use symbolic UNSPEC values.
904
703ad42b
KG
9052003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
906
907 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
908 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
909 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
910 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
911 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
912 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
913 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
914 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
915 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
916 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
917 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
918 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
919 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
920 postreload.c prefix.c print-tree.c protoize.c ra-build.c
921 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
922 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
923 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
924 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
925 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
926 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
927 casts.
928
308ca868
GDR
9292003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
930
931 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
932 * toplev.h (warning): Remove attribute.
933
435ab236
GDR
9342003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
935
936 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
937 (pop_label_level): Likewise.
938 (duplicate_decls): Likewise.
939 (implicitly_declare): Likewise.
940 (shadow_label): Likewise.
941 (start_decl): Likewise.
942 (finish_decl): Likewise.
943 (grokdeclarator): Likewise.
944 (get_parm_info): Likewise.
945 (detect_field_duplicates): Likewise.
946 (finish_struct): Likewise.
947 (start_function): Likewise.
948 (store_parm_decls): Likewise.
949 (finish_function): Likewise.
950 (c_expand_body_1): Likewise.
951 (check_for_loop_decls): Likewise.
952 (merge_translation_unit_decls): Likewise.
953
2cc98056
NB
9542003-07-19 Neil Booth <neil@daikokuya.co.uk>
955
956 * common.opt: Document --param.
957 * opts.c (columns, undocumented_msg): New.
958 (print_help): Get number of columns from environment. Print
959 --param help. Tweak newline handling.
960 (print_param_help): New.
961 (print_filtered_help): Better handling of duplicates. Complain
962 about undocumented switches.
963 (print_switch): New.
964 (wrap_help): Improve wrapping, use COLUMNS.
965 * opts.sh: Ignore comments in records.
966 * params.def: Fix typos and remove trailing periods.
967 * toplev.c (display_help): Don't dump --param help.
968 * doc/sourcebuild.texi: Update.
969
d893ccde
RH
9702003-07-18 Richard Henderson <rth@redhat.com>
971
0e38b30b 972 PR target/11556
d893ccde
RH
973 * optabs.c (prepare_operand): Fail gracefully instead of abort
974 if the predicate doesn't satisfy.
975 (gen_cond_trap): Allow prepare_operand to fail.
976
eb8221ea
GDR
9772003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
978
979 * c-common.c: Don't undefine GCC_DIAG_STYLE.
980 (fname_decl): Don't use xxx_with_decl.
981 (c_add_case_label): Likewise.
982 (handle_section_attribute): Likewise.
983 (handle_alias_attribute): Likewise.
984 (handle_no_instrument_function_attribute): Likewise.
985 (handle_no_limit_stack_attribute): Likewise.
986 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
987 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
988
65f43cdf
ZD
9892003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
990
991 * Makefile.in (ifcvt.o): Add cfgloop.h.
992 * basic-block.h (EDGE_LOOP_EXIT): New flag.
993 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
994 * ifcvt.c: Include cfgloop.h.
995 (mark_loop_exit_edges): New static function.
996 (if_convert): Call it.
997 (find_if_header): Ignore branches out of loops.
998
e5686da7
KH
9992003-07-18 Kazu Hirata <kazu@cs.umass.edu>
1000
14e33ee8 1001 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
1002 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
1003
8d05ebaa
DE
10042003-07-18 David Edelsohn <edelsohn@gnu.org>
1005
1006 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
1007 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1008 (MUST_PASS_IN_STACK): Define.
1009 (BLOCK_REG_PADDING): Define.
1010
79019985
RH
10112003-07-18 Richard Henderson <rth@redhat.com>
1012
1013 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
1014 to skip the addr_vec.
1015
0595d388
AO
1016Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
1017
1018 * combine.c (combinable_i3pat): Don't forbid occurrences of
1019 i2dest or i1dest in inner_dest if inner_dest is a mem.
1020
2ee1067b
JH
1021Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
1022
1023 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
1024
16f6812f
JJ
10252003-07-17 Jakub Jelinek <jakub@redhat.com>
1026
1027 PR target/11087
1028 * loop.c (basic_induction_var): Check if convert_modes emitted any
1029 instructions. Remove them and return 0 if so.
1030
f129791c
EB
10312003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1032
1033 PR optimization/11083
1034 * toplev.c (rest_of_handle_addresof): Rename into
1035 rest_of_handle_addressof. Delete unreachable blocks
1036 if dead edges were purged after the addressof pass.
1037
b2e608ca
NB
10382003-07-18 Neil Booth <neil@daikokuya.co.uk>
1039
1040 * Makefile.in, configure, configure.in: Remove handling of
1041 lang-options.h and options_.h.
1042 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1043 (display_help): Don't use documented_lang_options.
1044
9cd51ef6
ZW
10452003-07-17 Zack Weinberg <zack@codesourcery.com>
1046
1047 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1048 (kept_level_p): Fold into poplevel.
1049 (undeclared_variable): Moved here from c-typeck.c. Export.
1050 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1051 (undeclared_variable): Prototype here. Don't prototype
1052 kept_level_p nor pushdecl_function_level.
1053 * c-parse.in: Change first argument to poplevel from
1054 "kept_level_p()" to "KEEP_MAYBE".
1055 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1056
cf6bcbd0
RS
10572003-07-17 Roger Sayle <roger@eyesopen.com>
1058
1059 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1060 commutative operands instead of modifying the RTL in-place.
1061
2b187c63
MM
10622003-07-17 Mark Mitchell <mark@codesourcery.com>
1063
1064 PR optimization/11557
1065 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1066 unless we know which function is being called.
1067
c715abdd
RS
10682003-07-17 Roger Sayle <roger@eyesopen.com>
1069
1070 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1071 whether to reorder the operands of a commutative binary operator.
1072
3e4093b6
RS
10732003-07-17 Roger Sayle <roger@eyesopen.com>
1074
1075 * fold-const.c (const_binop): Avoid performing the FP operation at
1076 compile-time, if either operand is NaN and we honor signaling NaNs,
1077 or if we're dividing by zero and either flag_trapping_math is set
1078 or the desired mode doesn't support infinities.
1079 (fold_initializer): New function to fold an expression ignoring any
1080 potential run-time exceptions or traps.
1081 * tree.h (fold_initializer): Prototype here.
1082 * c-typeck.c (build_binary_op): Move to the end of the file so
1083 that intializer_stack is in scope. If constructing an initializer,
1084 i.e. when initializer_stack is not NULL, use fold_initializer to
1085 fold expressions.
1086 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1087 performing FP operations at compile-time, if they would raise an
1088 exception at run-time.
1089
89e9faee
GK
10902003-07-17 Geoffrey Keating <geoffk@apple.com>
1091
26e0dcb3
GK
1092 PR 11498
1093 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1094 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1095 (GTFILES): Add langhooks.c.
1096 (gt-langhooks.h): New.
1097 * c-common.h (c_static_assembler_name): Prototype.
1098 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1099 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1100 * c-opts.c: Include langhooks-def.h.
1101 (c_static_assembler_name): New.
1102 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1103 (var_labelno): New.
1104 (lhd_set_decl_assembler_name): Give static objects with context
1105 unique names.
1106 * varasm.c (var_labelno): Delete.
1107 (make_decl_rtl): Don't change the assembler name once it's set.
1108
89e9faee
GK
1109 * c-opts.c (this_input_filename): New.
1110 (finish_options): Take new parameter, name of file being compiled.
1111 Update callers. Set this_input_filename.
1112 (push_command_line_include): Use this_input_filename not
1113 main_input_filename.
1114
6ec3f553
NB
11152003-07-17 Neil Booth <neil@daikokuya.co.uk>
1116
1117 * Makefile.in: Depend .pot generation on options.c.
1118 * po/exgettext: Add an extra_files variable containing additional
1119 files to scan.
1120
78ff95dc
ZW
11212003-07-17 Zack Weinberg <zack@codesourcery.com>
1122
36c6d174
ZW
1123 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1124 c_write_global_declarations.
1125
eb1dfbb2
ZW
1126 * c-decl.c: Fix typos in several comments. Remove all
1127 #if 0 blocks; reindent as needed. Remove unused argument
1128 to declare_parm_level; all callers changed.
1129 * c-parse.in: Update calls to declare_parm_level. Avoid
1130 issuing a double warning in some circumstances.
1131 * c-typeck.c: Update calls to declare_parm_level.
1132 * c-tree.h: Update prototype of declare_parm_level.
1133
1134 * c-pragma.c (apply_pragma_weak): Don't complain about a
1135 redundant #pragma weak.
1136
1137 * objc/objc-act.c (forward_declare_categories,
1138 build_selector_reference_decl, build_class_reference_decl,
1139 build_objc_string_decl, synth_forward_declarations,
1140 build_protocol_reference): Set TREE_PUBLIC on synthetic
1141 forward decl to 0, consistent with eventual definition.
1142 Correct comments to match.
1143
78ff95dc
ZW
1144 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1145 in regexp that don't form a range expression.
1146 * fixinc/fixincl.def: Regenerate.
1147
b23ba0b8
RH
11482003-07-17 Richard Henderson <rth@redhat.com>
1149
78ff95dc
ZW
1150 PR target/10907
1151 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1152 even with !TARGET_CONST_GP.
1153 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 1154
d944c82d
SB
11552003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1156
1157 * c-common.c (c_estimate_num_insns_1): Don't handle
1158 METHOD_CALL_EXPR.
1159 * expr.c (safe_from_p): Likewise.
1160 * gengtype.c (adjust_field_tree_exp): Likewise.
1161 * stmt.c (warn_if_unused_value): Likewise
1162 * tree.c (first_rtl_op): Likewise.
1163 * tree.def: Don't define METHOD_CALL_EXPR.
1164 * java/lang.c (java_estimate_num_insns_1): Don't handle
1165 METHOD_CALL_EXPR.
1166
54284728
EB
11672003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1168
1169 PR other/11466
1170 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1171 and its restrictions for the SPARC64 port.
1172 Move the entry of "-mimpure-text" before that of "-mv8".
1173
bc890961 11742003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 1175 Phil Edwards <phil@jaj.com>
bc890961
EB
1176
1177 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1178 procedure to bootstrap and install.
1179 Document the preference for the legacy Sun tools in /usr/bin
1180 over the POSIX tools in /usr/xpg4/bin for the build process.
1181
f2ac9964
NB
11822003-07-17 Neil Booth <neil@daikokuya.co.uk>
1183
1184 * c.opt: Document Uncodumented; use it. Document ObjC options.
1185 * opts.c (print_filtered_help): Skip undocumented switches.
1186 * opts.h (CL_UNDOCUMENTED): New.
1187 * opts.sh: Handle Undocumented.
1188 * toplev.c (documented_lang_options): Prevent its becoming empty.
1189objc:
1190 * lang-options.h: Remove.
1191
03988cac
UW
11922003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1193
1194 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1195 instead of struct loop_info * as argument. Accept BIVs with
1196 increment +/- 1 provided there is a friendly exit test against
1197 a loop-invariant value.
1198 (strength_reduce): Adapt call to check_ext_dependent_givs.
1199
fada1961
R
12002003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1201 Con Bradley <con.bradley@superh.com>
1202
1203 * sh-protos.h (sh_get_pr_initial_val): Declare.
1204 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1205 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1206 and live_regs_mask arguments. Changed all callers.
1207 (save_schedule_s): New structure.
1208 (save_schedule): New typedef.
1209 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1210 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1211 In interrupts handlers, also save registers that are usually
1212 partially saved, and make sure there is at least one general purpose
1213 register saved if a target register needs saving.
1214 Add casts in comparisons to avoid warnings.
1215 (sh_media_register_for_return): return -1 for interrupt handlers.
1216 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1217 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1218 registers used are available.
1219 Set RTX_FRAME_RELATED_P where appropriate.
1220 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1221 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1222 (initial_elimination_offset): Likewise.
1223 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1224 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1225 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1226 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1227 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1228 and for target registers.
1229 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1230 (regno_reg_class): Make its elements type enum reg_class.
1231 (CONSTRAINT_LEN): Don't use isdigit.
1232 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1233 (FUNCTION_ARG): Add parentheses to avoid warnings.
1234 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1235 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1236 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1237 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1238 * sh.md (xordi3+1): Remove unused variable regno.
1239 (return_media): Check that tr0 is available before using it.
1240
bae92bf3
NB
12412003-07-16 Neil Booth <neil@daikokuya.co.uk>
1242
1243 * c.opt: Document more options.
1244
cc8c96fd
RS
12452003-07-16 Roger Sayle <roger@eyesopen.com>
1246
1247 * combine.c (subst): Also handle (subreg (const_double ...)) case
1248 if created by a substitution, by using the original inner mode.
1249
d41ba56f
RS
12502003-07-16 Roger Sayle <roger@eyesopen.com>
1251
1252 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1253 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1254 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1255
264d65c1 12562003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 1257
264d65c1 1258 * doc/install.texi (--without-headers): New.
1622229c
AP
1259
1260 Partial Fix PR/10129
1261 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1262 (machopic_output_function_base_name): New; print the true pic label.
1263 (machopic_classify_ident): Pic Base is always a defined data.
1264 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1265 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1266
db2f435b
AP
1267 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1268 if they are not floating point registers.
1269
d07605f5
AP
1270 PR c/10962
1271 * ggc.h: Add header guards.
1272 * c-decl.c (finish_struct): Sort fields if
1273 number greater than 15 and there are no
1274 anonymous structs/unions.
1275 * c-common.h: Include ggc.h.
1276 (sorted_fields_type): New struct.
1277 (field_decl_cmp): New prototype.
1278 (resort_sorted_fields): New prototype.
1279 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1280 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1281 as s, removing other fields.
1282 * c-typeck.c (lookup_field): Use s in lang_type.
1283 These were mostly moved from cp/class.c:
1284 * c-common.c (field_decl_cmp): New static function.
1285 (field_decl_cmp): New function.
1286 (resort_sorted_fields): New function.
1287
3d7964d5
GK
12882003-07-16 Geoffrey Keating <geoffk@apple.com>
1289
1290 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1291 to do most of the work.
1292
4e58524e
HPN
12932003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1294
1295 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1296 * config/mmix/mmix.c: Convert functions to ISO C90.
1297 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1298 formatting.
1299 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1300
1e0343dd
R
13012003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1302
1303 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1304
fc4767bb
JJ
13052003-07-16 Jakub Jelinek <jakub@redhat.com>
1306
1307 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1308 (uw_update_context_1): Use it.
1309 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1310 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1311 in parent frame if _Unwind_* called directly instead of through
1312 .plt.
1313 (rs6000_emit_eh_toc_restore): Remove.
1314 (rs6000_emit_prologue): Update stack pointer before doing any saving
1315 if current_function_calls_eh_return. Generate unwind info for $r2.
1316 (rs6000_emit_epilogue): Restore stack pointer after doing all
1317 restoring if current_function_calls_eh_return. Restore $r2.
1318 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1319 * config/rs6000/rs6000.md (eh_return): Remove call to
1320 rs6000_emit_eh_toc_restore.
1321 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1322 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1323
6972c506
JJ
13242003-07-15 Jakub Jelinek <jakub@redhat.com>
1325
1326 * expr.c (emit_block_move): Don't move anything if size is const 0.
1327 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1328 against 0.
1329
ac59ed37
DM
13302003-07-15 David S. Miller <davem@redhat.com>
1331
1332 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1333 emit nop if the last real insn is CALL_INSN.
1334
b828d124
DS
13352003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1336
1337 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1338 as "nul".
1339 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1340
d5648e12
DS
13412003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1342
1343 * config/i386/winnt.c (associated_type): Artificial methods are not
1344 affected by the import/export status of their class unless they are
1345 COMDAT.
1346 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1347
1348 * config/i386/winnt.c: Fix GCC copyright comment.
1349
b0e3f7ec
GDR
13502003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1351
1352 PR c++/11531
1353 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1354 not recursing on hard error.
1355 (diagnostic_for_decl): Likewise.
1356 * diagnostic.def: Rearrange.
1357
71628aa0
R
13582003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1359
1360 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1361 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1362
13632003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1364 Richard Henderson <rth@redhat.com>
1365
1366 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1367 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1368 (_Unwind_SetGR): Likewise.
1369 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1370 (Unwind_SpTmp): New typedef.
1371 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1372 (uw_update_context): Use _Unwind_GetPtr.
1373 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1374 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1375 Use _Unwind_SetSpColumn.
1376 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1377 Use _Unwind_GetPtr.
1378
5a170a05
NB
13792003-07-15 Neil Booth <neil@daikokuya.co.uk>
1380
1381 * c.opt: Document more options.
1382 * toplev.c (documented_lang_options): Remove all local help strings.
1383
b0afa2fc
MM
13842003-07-15 Mark Mitchell <mark@codesourcery.com>
1385
1386 PR debug/11473
1387 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1388 base classes.
1389
5df90541
KH
13902003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1391
1392 PR target/10795
1393 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1394 swap comparison operands if doing so would generate an
1395 unrecognizable insn.
1396
5a257872
EB
13972003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1398
1399 PR optimization/11320
1400 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1401 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1402 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1403 current_sched_info->compute_jump_reg_dependencies. Record which
1404 registers are used and which registers are set by the jump.
1405 Clear deps->reg_conditional_sets after a barrier.
1406 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1407 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1408 (init_deps): Initialize reg_conditional_sets.
1409 (free_deps): Clear reg_conditional_sets.
1410 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1411 Mark registers live on entry of the fallthrough block and conditionally
1412 set as set by the jump. Mark registers live on entry of non-fallthrough
1413 blocks as used by the jump.
1414 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1415 Mark new parameters as unused.
1416
3cec3f83
RS
14172003-07-15 Richard Sandiford <rsandifo@redhat.com>
1418
1419 * doc/invoke.texi: Resync MIPS -march documentation.
1420
98450f0d
RS
14212003-07-15 Richard Sandiford <rsandifo@redhat.com>
1422
1423 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1424 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1425 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1426 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1427 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1428 (mips_issue_rate): Handle PROCESSOR_R9000.
1429 (mips_use_dfa_pipeline_interface): Likewise.
1430 * config/mips/9000.md: New file.
1431 * config/mips/mips.md: Include it.
1432 (define_attr cpu): Add r9000.
1433 (mulsi3_mult3): Use "mul" for rm9000 code.
1434
5fe25f47
SC
14352003-07-15 Stan Cox <scox@redhat.com>
1436
1437 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1438 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1439 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1440 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1441 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1442 (mips_issue_rate): Handle PROCESSOR_R7000.
1443 (mips_use_dfa_pipeline_interface): Likewise.
1444 * config/mips/7000.md: New file.
1445 * config/mips/mips.md: Include it.
1446 (define_attr cpu): Add r7000.
1447 (mulsi3_mult3): Use "mul" for rm7000 code.
1448
5a2515e6
RS
14492003-07-15 Richard Sandiford <rsandifo@redhat.com>
1450
1451 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1452 the conditional move patterns.
1453 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1454 Check for condmove type.
1455 (ir_vr54_arith): Add move type.
1456 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1457 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1458
72de27ea
NB
14592003-07-15 Neil Booth <neil@daikokuya.co.uk>
1460
1461 * c-opts.c (print_help): Remove.
1462 (c_common_handle_option): Don't handle --help.
1463 * c.opt: Document some options.
1464 (--help): Remove.
1465 * opts.c (print_filtered_help): New.
1466 (print_help): Use it.
1467
e6ebd07b
GK
14682003-07-14 Geoffrey Keating <geoffk@apple.com>
1469
2d799c09
GK
1470 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1471 * tree.c: (build_common_tree_nodes_2): Likewise.
1472 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1473 (V4DF_type_node): New.
1474
e6ebd07b
GK
1475 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1476 we'll need it.
1477 (finish_options): Reset init_cursor.
1478
b90f141a
KH
14792003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1480
1481 * expr.c (expand_assignment): Remove an unused argument
1482 SUGGEST_REG.
1483 * expr.h: Update the prototype.
1484 * function.c: Update the callers.
1485 * stmt.c: Likewise.
1486
1e7ee6ad
MM
14872003-07-14 Mark Mitchell <mark@codesourcery.com>
1488
1489 PR debug/11098
1490 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1491 as DECL_ABSTRACT.
1492
bf66f7b0
NN
14932003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1494
1495 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1496 with __cplusplus, not "we must use the C++ compiler's type"
1497 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1498 * fixinc/fixincl.x: Regenerate.
1499
18009d03
GK
15002003-07-14 Geoffrey Keating <geoffk@apple.com>
1501
ea00486e
GK
1502 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1503 and unseen_objects from the global data before calling
1504 __deregister_frame_info_bases.
1505 (examine_objects): Insert objects into the seen_objects list,
1506 not unseen_objects.
1507 (_Unwind_Find_FDE): Always unlock the global object lists, even if
1508 we couldn't allocate a data structure to put in it.
1509
18009d03
GK
1510 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1511 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1512 (SET_TYPE_PROTOCOL_LIST): New.
1513 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1514 (get_object_reference): Likewise.
1515
9ae130f8
JH
1516Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
1517
1518 * cfglayout.c (locator_file): Break out from ....
1519 (insn_file): ... here.
1520 (locator_line): Break out from ....
1521 (insn_line): ... here.
1522 * rtl.h (locator_file, locator_line): Declare.
1523 (final_start_function): Set proper line/file info.
1524
e07d4821
GDR
15252003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1526
1527 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1528 handled by pp_c_cast_expression.
1529
121d69e6
RS
15302003-07-14 Richard Sandiford <rsandifo@redhat.com>
1531
1532 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1533 allocate 32768 bytes of stack. Use addition rather than subtraction
1534 when a single insn is enough.
1535 * config/mips/mips.md: Remove insns and splitters for subtracting
1536 constants.
1537 (subsi3): Only accept register operands.
1538 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
1539 (subdi3_internal_3, subsi3_internal_2): Likewise.
1540 (casesi): Use expand_binop to subtract the lower bound.
1541
3485245e
RS
15422003-07-14 Richard Sandiford <rsandifo@redhat.com>
1543
1544 * config/mips/mips.c (mips_in_small_data_p): Don't handle
1545 TARGET_MIPS16 specially.
1546
6627b7f9
RS
15472003-07-14 Richard Sandiford <rsandifo@redhat.com>
1548
6d0b50a4
RS
1549 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1550 mips_output_aligned_bss.
1551 * config/mips/linux.h: Likewise.
1552 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1553 * config/mips/mips.c (mips_output_aligned_bss): New function.
1554
8d50bd19
RS
1555 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1556 * config/mips/elf64.h: Likewise.
1557
c1115ccd
RS
1558 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1559 mips_declare_object_name.
1560 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1561 * config/mips/elf64.h: As for elf.h.
1562 * config/mips/iris6.h: Likewise.
1563 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1564 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1565 do...while (0) block.
1566 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1567 (mips_finish_declare_object): Declare.
1568 * config/mips/mips.c (mips_declare_object_name): New function.
1569 (mips_finish_declare_object): New function.
1570
060ff934
RS
1571 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1572 * config/mips/linux.h: Likewise.
1573
d82783b6
RS
1574 * config/mips/mips.c (inside_function): Delete.
1575 (file_in_function_warning, ignore_line_number): Delete.
1576 (mips_output_filename): Don't warn about changing filenames within
1577 a function.
1578 (mips_output_lineno): Update accordingly.
1579 (mips_output_function_prologue): Don't reset the deleted variables.
1580 * config/mips/mips.h (inside_function): Delete.
1581 (file_in_function_warning, ignore_line_number): Delete.
1582
373f8df7
RS
1583 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1584 * config/mips/elf64.h: Likewise.
1585 * config/mips/openbsd.h: Likewise.
1586 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1587 * config/mips/linux.h: Likewise.
1588 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1589 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1590
6627b7f9
RS
1591 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1592 to the list of include files when using gas.
1593 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1594 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1595 * config/mips/elf64.h: Likewise.
1596 * config/mips/iris5.h: Likewise.
1597 * config/mips/linux.h: Likewise.
1598 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1599 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1600 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1601 * config/mips/sdb.h: ...this new file.
1602
c18b00c0
NN
16032003-07-14 Douglas Rupp <rupp@gnat.com>
1604
1605 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1606 argument to getcwd; use fixed buffer instead.
1607
16082003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1609
1610 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1611 * fixinc/fixinc.wrap: Delete.
1612
adc4adcd
GP
16132003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1614
1615 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1616 don't have 2.
1617
16182003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1619
1620 * ggc-page.c (struct globals): Add new fields to keep track of the
1621 total allocated memory and overhead.
1622 (ggc_print_statistics): Print them.
1623 (ggc_alloc): Keep track of the total allocated memory and the
1624 overhead.
1625
1626 * tree.c (dump_tree_statistics): Increase spacing.
1627 (enum tree_node_kind): Move to ...
1628 * tree.h (enum tree_node_kind): ... here.
1629 (tree_node_counts, tree_node_sizes): Declare.
1630
16312003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
1632
1633 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1634
bbd288a4
FS
16352003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1636
1637 PR optimization/11440
1638 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1639 SIGN_EXTRACT SETs.
1640
6e985040
AM
16412003-07-14 Alan Modra <amodra@bigpond.net.au>
1642
1643 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1644 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1645 (emit_group_load, emit_group_store): Adjust declarations.
1646 Remove most occurrences of #ifdef TREE_CODE.
1647 * expr.c (emit_group_load): Add "type" param, and use
1648 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
1649 aligned accesses if !SLOW_UNALIGNED_ACCESS.
1650 (emit_group_store): Likewise.
1651 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1652 emit_group_load and emit_group_store calls.
1653 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
1654 BLOCK_REG_PADDING to determine whether we need endian_correction.
1655 (load_register_parameters): Localize vars. Handle shifting of
1656 small values to the correct end of regs. Adjust emit_group_load
1657 call.
1658 (expand_call, emit_library_call_value_1): Adjust emit_group_load
1659 and emit_group_store calls.
1660 * function.c (assign_parms): Set mem alignment for stack slots.
1661 Adjust emit_group_store call. Store values at the "wrong" end
1662 of regs to the stack. Use BLOCK_REG_PADDING.
1663 (locate_and_pad_parm): Save where_pad.
1664 (expand_function_end): Adjust emit_group_load call.
1665 * stmt.c (expand_value_return): Adjust emit_group_load call.
1666 * Makefile.in (calls.o): Depend on $(OPTABS_H).
1667 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1668 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1669 (MUST_PASS_IN_STACK): Define.
1670 (BLOCK_REG_PADDING): Define.
1671 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1672 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1673 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1674 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1675 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1676
4fab535e
AL
16772003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
1678
1679 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1680
8d2e5f72
RK
16812003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1682
1683 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1684 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1685
7eaab492
NN
16862003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1687
1688 PR other/11123
1689 * toplev.c: Don't cut off option names.
1690
9d4a30f2
AJ
16912003-07-13 Andreas Jaeger <aj@suse.de>
1692
1693 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1694 to integer of different size.
1695
34ed3bb0
KH
16962003-07-13 Kazu Hirata <kazu@cs.umass.edu>
1697
1698 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1699 to (eq (and X 1) 0).
1700
1a7d0840
AJ
17012003-07-13 Andreas Jaeger <aj@suse.de>
1702
1703 * config.gcc: Add pmmintrin.h for x86_64-*-*.
1704
43839642
ZW
17052003-07-13 Zack Weinberg <zack@codesourcery.com>
1706
1707 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1708 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1709 list. Move these all together down by cpplib.
1710
1711 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1712 definition of CPPCHAR_SIGNED_T.
1713
1714 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1715 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1716 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1717
1718 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1719 * cppinit.c (cpp_create_reader): Likewise.
1720
1721 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1722 * cpptrad.c: Likewise. All callers changed.
1723 * cpplib.c: All callers changed.
1724 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1725 * hashtable.h: Define GTY(x) to nothing here too.
1726
0acf4f88
RK
17272003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1728
1729 * stor-layout.c (compute_record_mode): Remove very obsolete test
1730 that forces BLKmode for records with fields crossing word boundary.
1731
46db61e7
ZW
17322003-07-13 Zack Weinberg <zack@codesourcery.com>
1733
1734 * Makefile.in: Remove orphan reference to acconfig.h.
1735
db0e878d
AJ
17362003-07-13 Andreas Jaeger <aj@suse.de>
1737
1738 * cgraphunit.c: Convert prototypes to ISO C90.
1739
4146d8d0
NN
17402003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1741
1742 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1743 (for OpenBSD).
1744 * fixinc/fixincl.x: Rebuild.
1745
6f3ca281
ZW
17462003-07-12 Zack Weinberg <zack@codesourcery.com>
1747
1748 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1749 i?86-*-*. Use correct name of cache variable.
1750 * configure: Regenerate.
1751
9a9f7594
KH
17522003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1753
1754 * config/alpha/alpha.c: Fix comment typos.
1755 * config/alpha/alpha.md: Likewise.
1756 * config/arm/arm.c: Likewise.
1757 * config/arm/arm.md: Likewise.
1758 * config/arm/lib1funcs.asm: Likewise.
1759 * config/avr/avr.md: Likewise.
1760 * config/arm/README-interworking: Fix typos.
1761
4ed43216
KH
17622003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1763
1764 * c-format.c: Fix comment formatting.
1765 * c-typeck.c: Likewise.
1766 * coverage.c: Likewise.
1767 * cppcharset.c: Likewise.
1768 * cpplib.c: Likewise.
1769 * dbxout.c: Likewise.
1770 * gcov-io.h: Likewise.
1771 * toplev.c: Likewise.
1772
c3a5b1e9
NN
17732003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1774
6f3ca281 1775 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
1776 fix.
1777
8ada417f
ZW
17782003-07-12 Zack Weinberg <zack@codesourcery.com>
1779
1780 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1781 uses three-argument AC_DEFINE so no acconfig.h entries are
1782 needed.
1783 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1784 which contains the GAS version number as a scaled integer.
1785 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
1786 ability to check for ELF assembler.
1787 (gcc_GAS_CHECK_FEATURE): New macro.
1788 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
1789 assembler feature checks using gcc_GAS_CHECK_FEATURE.
1790 Use three-argument AC_DEFINE everywhere.
1791 * acconfig.h: Deleted.
1792 * config.in, configure: Regenerate.
1793
d5d16b5f
NN
17942003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1795
3b57c563
NN
1796 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1797 (on OpenBSD).
d33fb69b 1798 * fixinc/fixincl.x: Regenerate.
3b57c563 1799
d5d16b5f
NN
1800 * fixinc/inclhack.def (gnu_types): Improve comment.
1801
439f7bc3
AJ
18022003-07-12 Andreas Jaeger <aj@suse.de>
1803
1804 * fp-test.c (main): Use ISO C90 prototype.
1805
1806 * version.c: Remove unneded include of ansidecl.h.
1807
1808 * cgraph.h: Convert prototypes to ISO C90.
1809 * cgraph.c: Likewise.
1810 * fix-header.c: Likewise.
1811 * ra.h: Likewise.
1812 * protoize.c: Likewise.
1813
1a5c5701
JH
1814Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
1815
1816 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1817 warning.
1818
b58b1157
JH
1819Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
1820 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1821
1822 * cgraph.c (cgraph_max_uid): New global variable.
1823 (cgraph_node): Set uid field.
1824 (create_edge): Keep inline flags consistent.
1825 (dump_cgraph): Dump more info.
1826 * cgraph.h (struct cgraph_local_info): Remove inline_many and
1827 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1828 (struct cgraph_global_info): Add insns, calls, cloned_times,
1829 will_be_output.
1830 (struct cgraph_node): Add uid.
1831 (struct cgraph_edge): Add inline_call.
1832 (cgraph_max_uid, cgraph_inline_p): Declare.
1833 * cgraph.c: Include params.h and fibheap.h
1834 (cgraph_mark_functions_to_inline_once): Kill.
1835 (INSNS_PER_CALL): New constant.
1836 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1837 static variables.
1838 (cgraph_finalize_function): Do not analyze inlining.
1839 (cgraph_finalize_compilation_unit): Set inlining attributes.
1840 (cgraph_mark_functions_to_output): More consistency checks.
1841 (cgraph_optimize_function): Set current_function_decl to NULL.
1842 (cgraph_expand_function): Use new inline flags.
1843 (cgraph_postorder): Expand from cgraph_expand_functions.
1844 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1845 (cgraph_inlined_into, cgraph_inlined_callees,
1846 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1847 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 1848 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
1849 cgraph_decide_inlining, cgraph_inline_p): New functions.
1850 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1851 PARAM_INLINE_UNIT_GROWTH): New parameters.
1852 * tree-inline.c (struct inline_data): New field current_decl.
1853 (expand_call_inline): Avoid forward declarations; use
1854 inlinable_function_p.
1855 (optimize_inline_calls): Set id.current_decl.
1856
27b8e366
AP
18572003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1858
1859 * configure.in: Remove wrongly added definition of
1860 local_prefix.
1861 * configure: Regenerate.
1862
80fa0b4c
DN
18632003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1864
1865 * rtl.def (NOTE): Do not use padding.
1866
1ea6f4c8
DH
18672003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
1868
1869 * doc/install.tex: Update required binutils for i?86-*-linux*
1870
ed2d8944
RH
18712003-07-11 Richard Henderson <rth@redhat.com>
1872
1873 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1874
a44cea75
MM
18752003-07-11 Mark Mitchell <mark@codesourcery.com>
1876
1877 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1878 TRANSLATION_UNIT_DECL as top_level.
1879
358b8f01
JJ
18802003-07-11 Jakub Jelinek <jakub@redhat.com>
1881
1882 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1883 then fall back to cmpstrM.
1884 * builtins.c (expand_builtin_memcmp): Likewise.
1885 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1886 (s390_expand_cmpmem): ... this.
1887 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1888 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1889 from cmpstr* patterns. Rename call to s390_expand_cmpstr
1890 to s390_expand_cmpmem.
1891 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1892 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
1893 to cmpmem*.
1894 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1895 cmpstr* patterns.
1896 * doc/md.texi (cmpstrM): Describe as String compare insn, not
1897 Block compare insn.
1898 (cmpmemM): Add.
1899
8634e925
LR
19002003-07-11 Loren James Rittle <ljrittle@acm.org>
1901
1902 * config/i386/freebsd.h (SET_ASM_OP): Remove.
1903 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1904 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1905 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1906
48144cd4
RH
19072003-07-11 Richard Henderson <rth@redhat.com>
1908
1909 * function.c (assign_parms): Don't recombine complex args if
1910 fnargs is unchanged from orig_fnargs.
1911 (split_complex_args): Return args without complex before copying.
1912 Re-layout the modified parameters.
1913
fee226d2
R
19142003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
1915
1916 * regclass.c (choose_hard_reg_mode): Add third argument.
1917 Changed all callers.
1918 * rtl.h (choose_hard_reg_mode): Update declaration.
1919 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1920 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1921
d1bd0ded
GK
19222003-07-11 Geoffrey Keating <geoffk@apple.com>
1923
1924 * c-decl.c (finish_decl): Handle 'used' here...
1925 * cgraphunit.c (cgraph_finalize_function): ... and here ...
1926 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 1927
d1bd0ded
GK
1928 * configure.in (onstep): Support --enable-intermodule.
1929 * Makefile.in (OBJS-common): New.
1930 (OBJS-md): New.
1931 (OBJS-archive): New.
1932 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1933 (OBJS-onestep): New.
1934 (libbackend.a): Support @onestep@.
1935 (libbackend.o): New.
1936 * configure: Regenerate.
439f7bc3 1937
d1bd0ded
GK
1938 * c-common.h (c_reset_state): New prototype.
1939 (c_parse_file): New prototype.
1940 (finish_file): Move prototype from c-tree.h.
1941 * c-decl.c: Include <hashtab.h>.
1942 (builtin_decls): New.
1943 (current_file_decl): New.
1944 (duplicate_decls): Add extra parameter. Change all callers. Don't
1945 output duplicate common symbols.
1946 (link_hash_hash): New.
1947 (link_hash_eq): New.
1948 (poplevel): Handle popping of the top level.
1949 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1950 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1951 (pushdecl_top_level): Likewise.
1952 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1953 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1954 (finish_decl): Handle TRANSLATION_UNIT_DECL.
1955 (merge_translation_unit_decls): New.
1956 (c_write_global_declarations): New.
1957 (c_reset_state): New.
1958 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1959 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1960 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1961 TRANSLATION_UNIT_DECL.
1962 (c_objc_common_finish_file): Call merge_translation_unit_decls.
1963 * c-opts.c (in_fnames): Rename from in_fname.
1964 (c_common_decode_option): Handle multiple input filenames.
1965 (c_common_post_options): Likewise.
1966 (c_common_parse_file): Likewise; also, call c_parse_file rather than
1967 yyparse.
1968 * c-parse.in: Move cleanup code to c_parse_file.
1969 (free_parser_stacks): Move contents to c_parse_file.
1970 (c_parse_file): New.
1971 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1972 for integer types.
1973 (C_DECL_FILE_SCOPE): New.
1974 (finish_file): Move prototype to c-common.h.
1975 (merge_translation_unit_decls): New prototype.
1976 (comptypes): Add extra parameter to prototype.
1977 (c_write_global_declarations): New prototype.
1978 * c-typeck.c (tagged_types_tu_compatible_p): New.
1979 (function_types_compatible_p): Add extra parameter, change all callers.
1980 (type_lists_compatible_p): Likewise.
1981 (comptypes): Likewise.
1982 (struct tagged_tu_seen): New.
1983 (tagged_tu_seen_base): New.
1984 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1985 (c_mark_addressable): Remove #if 0 code.
1986 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1987 comment explaining why it shouldn't have to.
1988 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1989 options.
1990 * cppinit.c (cpp_read_next_file): New.
1991 (cpp_read_main_file): Use it.
1992 * cpplib.c (undefine_macros): New.
1993 (cpp_undef_all): New.
1994 * cpplib.h (cpp_read_next_file): Prototype.
1995 (cpp_undef_all): Prototype.
1996 * langhooks-def.h (write_global_declarations): Remove prototype.
1997 * toplev.h (write_global_declarations): Add prototype.
1998 * tree.c (decl_type_context): Use switch statement, handle
1999 TRANSLATION_UNIT_DECL.
2000 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
2001 (TRANSLATION_UNIT_DECL): New kind of tree.
2002 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
2003 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
2004 * doc/invoke.texi: Make attempt to document new functionality.
2005
2006 2003-05-19 Per Bothner <bothner@apple.com>
2007
2008 * gcc.c (combine_inputs): New.
2009 (process_command): Set combine_inputs.
2010 (do_spec_1): Handle combine_inputs.
2011 (main): Likewise.
2012
ac8354b1
JW
20132003-07-10 James E Wilson <wilson@tuliptree.org>
2014
2015 PR optimization/9745
2016 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
2017 loop_insn_emit_before.
2018 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 2019
dea55da5
ZW
20202003-07-10 Zack Weinberg <zack@codesourcery.com>
2021
2022 * cppcharset.c: Fix comment.
2023 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
2024 (EILSEQ): #define to EINVAL if not already defined.
2025 (convert_using_iconv): #if out when !HAVE_ICONV.
2026 (init_iconv_desc): Handle !HAVE_ICONV here...
2027 (cpp_init_iconv): ...not here.
2028
f3fdaec4
NB
20292003-07-11 Neil Booth <neil@daikokuya.co.uk>
2030
2031 * common.opt: More --help messages.
2032 * opts.c (print_help): Use puts().
2033 * toplev.c (f_options): Remove help text.
2034 (display_help): Don't dump f_options.
2035
7ebbf1ea
NN
20362003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2037
2038 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2039 Move i?86-*-interix* to the don't-fix list.
2040 * fixinc/fixinc.interix: Delete with extreme prejudice.
2041
959a73a4
DH
20422003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2043
2044 PR bootstrap/10758
2045 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2046
9959901c
RS
20472003-07-10 Roger Sayle <roger@eyesopen.com>
2048
2049 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2050
6b88314c
ZW
20512003-07-10 Zack Weinberg <zack@codesourcery.com>
2052
2053 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2054 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2055 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2056 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2057 convert_no_conversion, convert_using_iconv): New functions.
2058 (APPLY_CONVERSION): New macro.
2059 (struct conversion, conversion_tab): New data structure.
2060 (init_iconv_desc): Check conversion_tab for a custom conversion
2061 primitive before trying to use iconv.
2062 (convert_cset): Deleted.
2063 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2064 (_cpp_destroy_iconv): Update to match.
2065 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2066 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2067 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2068 (_cpp_interpret_string_notranslate): New function, moved here
2069 from cpplib.c.
2070
2071 * cpphash.h (convert_f, struct cset_converter): New types.
2072 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2073 are now struct cset_converter, not bare iconv_t.
2074 Update prototypes.
2075 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2076 all callers changed.
2077
38f4680f 20782003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 2079
38f4680f
KC
2080 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2081 to opts.sh command line.
2082 * opts.sh: Write to temporary files with a move-if-change at the end.
2083
2a868fac 20842003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 2085 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
2086
2087 * combine.c (gen_binary): Handle the CLOBBER rtx and
2088 don't build a binary operation with it.
2089
3b14e3af
ZD
20902003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2091
2092 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2093 store_killed_after, store_killed_before): Keep track of the correct
2094 dependency function to use.
2095
a9189cc0
SB
20962003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2097 * toplev.c (do_compile): Don't try to open dump files before
2098 lang_dependent_init initializes dump_base_name.
2099
e97a46ce
KG
21002003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2101
2102 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2103 Use ARRAY_SIZE.
2104 * config/frv/frv.c (frv_expand_builtin): Likewise.
2105 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2106
4a386498
MM
21072003-07-09 Mark Mitchell <mark@codesourcery.com>
2108
2109 PR c++/10032
2110 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2111 -fpermissive.
2112
1e60c057
R
21132003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2114
2115 * tm.texi (RETURN_ADDR_OFFSET): Document.
2116
330d2e2a
NS
21172003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2118
2119 * gcov-io.h: Update documentation.
2120 (GCOV_UNSIGNED2STRING): New.
2121 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2122 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2123 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2124 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2125 GCOV_TAG_COUNTER_NUM): New.
2126 (GCOV_BLOCK_SIZE): Number of words.
2127 (gcov_var): Adjust buffer type.
2128 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2129 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2130 count, not byte count.
2131 (gcov_open): Adjust overread init.
2132 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2133 gcov_write_string, gcov_write_tag, gcov_write_length,
2134 gcov_write_tag_length): Adjust.
2135 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2136 (gcov_sync, gcov_seek): Adjust.
2137 * gcov-dump.c (print_usage): Show gcc version only.
2138 (dump_file): Use GCOV_UNSIGNED2STRING.
2139 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2140 * gcov.c (print_version): Show gcc version only.
2141 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2142 GCOV_TAG_*_NUM macros.
2143 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2144 GCOV_TAG_COUNTER_LENGTH.
2145 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2146 Use GCOV_TAG_COUNTER_NUM.
2147 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2148 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2149
3dbb446e
AS
21502003-07-10 Andreas Schwab <schwab@suse.de>
2151
2152 * gcov-dump.c (dump_file): Fix missing address operator.
2153
11791dbc
KH
21542003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2155
2156 PR c/11449
2157 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2158 of HOST_WIDE_INT.
2159 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2160 bit being tested is not a sign bit.
2161
ae12c666
KH
21622003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2163
2164 * config/h8300/h8300.md (a peephole2): New.
2165
2beef00e
AO
21662003-07-10 Alexandre Oliva <aoliva@redhat.com>
2167
2168 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2169 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2170 from ld-linux.so.2 to ld.so.1.
2171 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2172 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2173 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2174 nor -Wl,-rpath-link.
2175 (LIB_SPEC): Add -rpath-link if !static.
2176 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2177 * config/mn10300/mn10300.c (mn10300_protect_label): New
2178 variable.
2179 * config/mn10300/linux.h (PRINT_OPERAND,
2180 PRINT_OPERAND_ADDRESS): Set it during their execution.
2181 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2182 mn10300_protect_label is set.
2183 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2184 -Wl,-rpath-link.
2185 (LIB_SPEC, STARTFILE_SPEC): Define.
2186 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2187 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2188 FLOAT_BIT_ORDER_MISMATCH.
2189 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2190 * config.gcc (am33_2.0-*-linux*): Added.
2191 * config/mn10300/linux.h: New.
2192 * config/mn10300/t-linux: New.
2193
75040a04
AJ
21942003-07-10 Andreas Jaeger <aj@suse.de>
2195
2196 * fold-const.c: Properly wrap prototypes.
2197
d1776069
AO
21982003-07-09 Alexandre Oliva <aoliva@redhat.com>
2199
2200 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2201 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2202 Moved from...
2203 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2204 * config/mn10300/mn10300.h: GTY-declare it.
2205 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2206 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2207 prototype. Use incoming RTL argument.
2208 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2209 * config/mn10300/mn10300.md (int_label): Move C statements...
2210 (GOTaddr2picreg): ... here.
2211 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2212 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2213 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2214 ... here. New function.
2215 (TARGET_ENCODE_SECTION_INFO): Define to it.
2216 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2217 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2218 pattern name.
2219 (mn10300_loadPC): Define as insn splittable after reload.
2220 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2221 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2222 be defined in .rodata even in PIC, now that the assembler
2223 supports that.
2224 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2225 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2226 symbol take an underscore prefix.
2227 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2228 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2229 legitimize_pic_address): Declare.
2230 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2231 the PIC register as fixed.
2232 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2233 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2234 PIC.
2235 (LEGITIMATE_PIC_OPERAND_P): Define.
2236 (PIC_OFFSET_TABLE_REGNUM): Define.
2237 (GOT_SYMBOL_NAME): Define.
2238 (SYMBOLIC_CONST_P): Define.
2239 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2240 symbols.
2241 (MN10300_GLOBAL_P): Test it.
2242 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2243 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2244 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2245 (expand_prologue): Set PIC register.
2246 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2247 (legitimize_address): Call legitimize_pic_address.
2248 (legitimize_pic_address): New fn.
2249 (legitimate_pic_operand_p): New fn.
2250 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2251 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2252 UNSPEC_PLT): New constants.
2253 (pop_pic_reg): New insn.
2254 (movsi): Adjust non-PIC addresses.
2255 (builtin_setjmp_receiver): Restore the PIC register.
2256 (casesi): New insn.
2257 (call): Adjust non-PIC addresses.
2258 (int_label, GOTaddr2picreg): New expands.
2259 (am33_loadPC): New insn.
2260 (mn10300_loadPC): New expand.
2261 (call_next_insn): New insn.
2262 (add_GOT_to_pic_reg): New expand.
2263 (symGOT2reg, symGOT2reg_i): New expands.
2264 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2265 (sym2PIC, sym2PLT): New expands.
2266
18e9d2f9
AO
22672003-07-09 Alexandre Oliva <aoliva@redhat.com>
2268
2269 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2270 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2271 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2272 to flag_unsafe_math_optimizations.
2273 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2274 * config/mn10300/mn10300.c (expand_prologue): Mark
2275 FP-register-saving insns as frame-related.
2276 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2277 * config/mn10300/mn10300.c
2278 (mn10300_get_live_callee_saved_regs): Don't search past
2279 LAST_EXTENDED_REGNUM.
2280 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2281 * config/mn10300/mn10300.md: Remove excessive line breaks from
2282 `@' output patterns that were accounted as additional
2283 alternatives.
2284 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2285 Re-introduce changes accidentally removed in Richard Sandiford's
2286 2000-12-05's patch.
2287 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2288 Re-instate am33-2 lost in merge from net GCC.
2289 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2290 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2291 floating-point registers.
2292 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2293 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2294 pessimizations that had gone in on 2000-05-08.
2295 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2296 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2297 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2298 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2299 operand 0.
2300 * (movhi): Likewise.
2301 * (movsi): Likewise.
2302 * (movsf): Likewise.
2303 * (movdi): Likewise.
2304 * (movdf): Likewise.
2305 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2306 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2307 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2308 (expand_prologue, expand_epilogue): Save and restore FP regs.
2309 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2310 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2311 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2312 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2313 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2314 Do not clobber cc0.
2315 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2316 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2317 Discourage the two-argument, longer opcodes.
2318 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2319 ones.
2320 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2321 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2322 * config/mn10300/mn10300.md (cmpsf): New pattern.
2323 (branch): Test mdep.fpCC and output fbCC.
2324 * config/mn10300/mn10300.c (print_operand): Output conditions.
2325 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2326 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2327 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2328 mulsf3, divsf3): Use the `F' constraint for FP values.
2329 * config/mn10300/mn10300.c (const_1f_operand): New function.
2330 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2331 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2332 (rsqrtsf2): New insn.
2333 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2334 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2335 previous check-in.
2336 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2337 * config/mn10300/mn10300.md (abssf2, negdf2): On
2338 TARGET_AM33_2, expand to...
2339 (abssf2_am33_2, negdf2_am33_2): New insns.
2340 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2341 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2342 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2343 movdi, movdf): Added FP regs.
2344 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2345 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2346 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2347 New macros.
2348 (REGNO_AM33_2_FP_P): Renamed to...
2349 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2350 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2351 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2352 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2353 regs from GENERAL_REGS.
2354 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2355 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2356 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2357 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2358 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2359 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2360 as FP_REGS.
2361 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2362 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2363 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2364 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2365 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2366 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2367 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2368 AM33/2.0 floating-point registers.
2369 (CONDITIONAL_REGISTER_USAGE): Adjust.
2370 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2371 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2372 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2373 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2374 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2375 (MULTILIB_DIRNAMES): Likewise.
2376 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2377 `__AM33_2__' when `-mam33-2' is given.
2378 (TARGET_AM33_2): Define.
2379 (TARGET_SWITCHES): Adjust.
2380 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2381 when appropriate.
2382
2ff16718
MK
23832003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2384
2385 * doc/install.texi: Add missing @.
2386
a7bda3d5
BW
23872003-07-09 Bob Wilson <bob.wilson@acm.org>
2388
2389 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2390
bb498ea3
AH
23912003-07-09 Aldy Hernandez <aldyh@redhat.com>
2392
2393 PR/11144
2394 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2395
a401fd60
NN
23962003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2397
21f3dbfc 2398 PR bootstrap/11043
6b88314c 2399 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
2400 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2401
15e4ea18
NN
2402 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2403 * fixinc/fixincl.x: Rebuild.
2404
a401fd60
NN
2405 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2406 * fixinc/fixincl.x: Rebuild.
2407
c2f82a84
HPN
24082003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2409
2410 * doc/install.texi (Configuration): Document the valgrind option
2411 to --enable-checking.
2412
1f66e2a0
JH
2413Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2414
2415 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2416
d0974745
RO
24172003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2418
2419 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2420
160e2e4f
NS
24212003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2422
2423 * gcov-io.h: Update documentation.
2424 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2425 GCOV_NOTE_MAGIC.
2426 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2427 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2428 (struct gcov_var): Change buffer's type. Add endian flag.
2429 (gcov_open): Remove mode in libgcov.
2430 (gcov_magic): Prototype.
2431 * gcov-io.c (from_file): New.
2432 (gcov_open): Clear endian flag.
2433 (gcov_magic): New.
2434 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2435 pointers.
2436 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2437 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2438 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2439 * gcov-iov.c (main): Correct cast.
2440 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2441 conversion.
2442 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2443 (coverage_init): Use GCOV_NOTE_SUFFIX.
2444 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2445 Rename to gcov_version, and return flag.
2446 (gcov_exit): Use gcov_version.
2447 (__gcov_init): Use gcov_version.
2448 * Makefile.in (coverageexts): Update.
2449 * gcov.c (print_version): Remove endianness conversion.
2450 (create_file_names): Use GCOV_NOTE_SUFFIX.
2451 (read_graph_file): Use gcov_magic.
2452 (read_count_file): Likewise.
2453 * gcov-dump.c (dump_file): Remove endianness conversion, use
2454 gcov_magic.
2455
83599948
NS
24562003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2457
2458 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2459 coverage is on.
2460 * configure: Regenerated.
2461 * Makefile.in (ALL_CFLAGS): Correct its comment.
2462
d17811fd
MM
24632003-07-08 Mark Mitchell <mark@codesourcery.com>
2464
2465 * fold-const.c (make_range): Do not access operand 1 for a
2466 zero-operand operator.
2467
28786366
NB
24682003-07-09 Neil Booth <neil@daikokuya.co.uk>
2469
2470 * toplev.c (warn_dummy, W_options): Die.
2471 (display_help): Don't print W_options.
2472 * common.opt: Add W_options help from toplev.c.
2473
fbdb0453
AJ
24742003-07-09 Andreas Jaeger <aj@suse.de>
2475
2476 * opts.c (wrap_help): Only pass int arguments as arguments to
2477 printf's '*' modifier. Change argument of function.
2478
c80e4c17
MK
24792003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2480
2481 * doc/invoke.texi: Fix misspelling of "@item".
2482
2c5a64c6
KH
24832003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2484
2485 * config/i386/i386.md: Remove an old comment about
2486 NOTICE_UPDATE_CC.
2487
a194aa56
JH
2488Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2489
2490 * cgraph.c (cgraph_node_name): New function.
2491 (dump_cgraph): Use it.
2492 * cgraph.h (cgraph_dump_file): Declare.
2493 (cgraph_node_name): Declare.
2494 * cgraphunit.c: Include timevar.h
2495 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2496 (cgraph_optimize_function): Use TV_INTEGRATION.
2497 (cgraph_mark_local_functions): reorganize dumps.
2498 (cgraph_mark_functions_to_inline_once): Likewise.
2499 (cgraph_optimize): Likewise; use timevar.
2500 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2501 * toplev.c (dump_file_index): Add DFI_cgraph.
2502 (dump_file_info): Likewise.
2503 (cgraph_dump_file): New global variable.
2504 (do_compile): Open and close cgraph dump.
2505 * invoke.texi (-d): Document new flag; renumber.
2506
8af61113
RS
25072003-07-08 Roger Sayle <roger@eyesopen.com>
2508
2509 PR c/11370
2510 * calls.c (emit_call_1): Don't bother popping the arguments off of
2511 the stack after a noreturn function call; The adjustment is dead.
2512 (expand_call): Likewise.
2513
436bcda1
GK
25142003-07-08 Geoffrey Keating <geoffk@apple.com>
2515
2516 * expr.c (MOVE_MAX_PIECES): Move from here...
2517 * defaults.h (MOVE_MAX_PIECES): ... to here.
2518
6f3fcc0b
MK
25192003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2520
2521 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2522
ec049fdb
KG
25232003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2524
2525 * genattr.c (internal_dfa_insn_code): Don't prototype.
2526 * genattrtab.c (attr_desc): Add `static_p' field.
2527 (expand_units): Make blockage range and ready cost functions
2528 static.
2529 (write_attr_get): Don't add extern prototypes in C file. Mark
2530 static functions as appropriate.
2531 (find_attr, make_internal_attr): Initialize static_p.
2532 * genattrtab.h (ATTR_STATIC): New macro.
2533 * genautomata.c (output_internal_reset_func): Mark output function
2534 as inline.
2535 (make_internal_dfa_insn_code_attr): Mark output function as static.
2536
11597bc9
KG
25372003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2538
2539 * genattrtab.h: Add new macros for attr `special' flags.
2540 * genattrtab.c (attr_desc): Reorder/resize fields better.
2541 Use attr `special' macros in all calls to make_internal_attr.
2542 * genautomata.c: Likewise.
2543
084c1779
JH
2544Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
2545
2546 * c-common.c (c_estimate_num_insns_1): New static function.
2547 (c_estimate_num_insns): New global function.
2548 * c-common.h (DECL_NUM_STMTS): Rename to...
2549 (DECL_ESTIMATED_INSNS): ... this.
2550 (c_estimate_num_insns): Declare.
2551 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2552 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2553 * c-semantics.c (add_stmt): Do not account statements.
2554 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2555 New.
2556 * langhooks.h (lang_hooks_for_tree_inlining): Add
2557 estimate_num_insns
2558 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2559 to 100.
2560 (max-inline-insns): set to 300.
2561 (min-inline-insns): set to 10.
2562 * tree-inline.c (struct inline_data): Rename inlined_stmts to
2563 inlined-insns.
2564 (INSNS_PER_STMT): Kill.
2565 (inlinable_function_p): Compute and store body size.
2566 (expand_call_inline): Likewise.
2567 (optimize_inline_calls): Likewise.
2568
1b1838b6
JW
25692003-07-08 James E Wilson <wilson@tuliptree.org>
2570
2571 PR target/10021
2572 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2573 loop over new variable t2 instead of t.
2574
81a6341d
DS
25752003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2576
2577 PR bootstrap/11455
2578 * config/i386/winnt.c: Replace use of error(), warning() with
2579 error_with_decl(), warning_with_decl(), throughout.
2580
21789816
NB
25812003-07-08 Neil Booth <neil@daikokuya.co.uk>
2582
2583 * opts.c (wrap_help): Use unsigned int, not size_t.
2584
f6423302
SC
25852003-07-08 Stephane Carrez <stcarrez@nerim.fr>
2586
2587 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2588 as .file/.loc directives are incompatible with linker relaxation.
2589
ab747408
ZW
25902003-07-08 Zack Weinberg <zack@codesourcery.com>
2591
2592 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2593 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2594 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2595 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2596 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2597 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2598 Escape { and } characters which are not part of range expressions.
2599 * fixinc/fixincl.x: Regenerate.
a27531fb 2600 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 2601
51657442
SB
26022003-07-08 Steven Bosscher <steven@gcc.gnu.org>
2603
2604 PR c/1687
2605 * tree-inline.c (find_alloca_call): Use
2606 walk_tree_without_duplicates, instead of walk_tree.
2607 (find_builtin_longjmp_call): Likewise.
2608 * c-objc-common.c (c_cannot_inline_fn): Likewise.
2609 * c-semantics.c (find_reachable_label): Likewise.
2610
7e6dc358
JJ
26112003-07-08 Jakub Jelinek <jakub@redhat.com>
2612
2613 PR c/11420
2614 * config/i386/i386.c (ix86_check_movabs): New function.
2615 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2616 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2617 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2618
318b7749
CD
26192003-07-08 Chris Demetriou <cgd@broadcom.com>
2620
2621 * Makefile.in (install-po): Cope with empty CATALOGS.
2622
b8898790
RS
26232003-07-08 Richard Sandiford <rsandifo@redhat.com>
2624
2625 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2626 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2627 (SECTION_FUNCTION_TEMPLATE): Delete.
2628 * config/mips/elf.h: As for elf64.h.
2629 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2630 * config/mips/linux.h: As for elf.h
2631 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2632 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2633 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
2634 of in_sdata from current_section_name and current_section_flags.
2635 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2636 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2637 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2638 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2639 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2640 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2641 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2642 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2643 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2644 (override_options): Remove setting of MASK_GPOPT.
2645 (mips_output_external): Use mips_in_small_data_p to check whether a
2646 symbol needs an .extern directive. Don't emit such directives for
2647 TARGET_EXPLICIT_RELOCS.
2648 (mips_declare_object): Update accordingly.
2649 (mips_select_rtx_section): Call named_section rather than
2650 SMALL_DATA_SECTION.
2651 (mips_select_section): Use default_elf_section_section for everything
2652 except .text string constants.
2653 (mips_in_small_data_p): New function.
2654 (mips_encode_section_info): Remove small data handling.
2655 (mips_unique_section): Delete.
2656 (iris6_section_type_flags): New function.
2657 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2658
f5d1c3de
JDA
26592003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2660
2661 PR Target/11453
2662 * pa.md: Disparage all mtsar constraints.
2663 (extzv, extv, insv): Don't fail on length of {32|64}.
2664
ce1bb65b
ZW
26652003-07-08 Zack Weinberg <zack@codesourcery.com>
2666
2667 * system.h: Poison MAP_CHARACTER.
2668 * config/i370/i370-protos.h (mvs_map_char): Delete.
2669 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2670 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2671 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2672
c163ddca
DS
26732003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2674
2675 * toplev.c (randomize): Correct call to time().
2676
8df63efa
JJ
26772003-07-08 Jakub Jelinek <jakub@redhat.com>
2678
2679 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2680 REG_EQUIV notes as well.
2681
4b5cc2b3
KH
26822003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2683
2684 * doc/md.texi: Fix the description of addmodecc.
2685
56694dd9
ZW
26862003-07-07 Zack Weinberg <zack@codesourcery.com>
2687
2688 * Makefile.in (top_builddir): Set to "..", not ".".
2689 (INTLLIBS, INTLDEPS): Delete.
2690 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2691 (LIBDEPS): Add $(LIBICONV_DEP).
2692 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2693 (INCLUDES): Replace -I../intl with @INCINTL@.
2694 ($(top_builddir)/intl/libintl.a): Delete rule.
2695 (stage2-start, stage3-start, stage4-start, stageprofile-start,
2696 stagefeedback-start): Use $$ for variable to be evaluated by
2697 shell, not make.
2698 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2699 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2700 * aclocal.m4: sinclude ../config/progtest.m4. Add
2701 contents of lcmessage.m4 from gettext distro.
2702 * configure.in: Check for wchar.h and setlocale. Set
2703 LIBICONV_DEP to the empty string and substitute it.
2704 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
2705 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
2706 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
2707 in $LIBINTL, to avoid linking it twice.
2708 * configure, config.in: Regenerate.
2709
a294c4cf
NN
27102003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
2711
2712 * fixinc/mkfixinc.sh: Remove winnt support.
2713 * fixinc/fixinc.winnt: Delete with extreme prejudice.
2714
979312a4
NB
27152003-07-08 Neil Booth <neil@daikokuya.co.uk>
2716
2717 * Makefile.in: Update.
2718 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2719 * c.opt: Update documentation.
2720 * common.opt: Add some help text.
2721 * opts.c: Include intl.h.
2722 (wrap_help, print_help): New.
2723 (find_opt, handle_option, common_handle_option): opt_text now
2724 contains the '-'. Use print_help to output help.
2725 * opts.h (struct cl_option): New member "help".
2726 * opts.sh: Update to handle help text output and to prepend
2727 options with '-'.
2728 * toplev.c (display_help): Remove some help text.
2729
2c4a9cff
DE
27302003-07-07 David Edelsohn <edelsohn@gnu.org>
2731 Fariborz Jahanian <fjahanian@apple.com>
2732
2733 * configure.in: Test for PowerPC mfcr field support in assembler.
2734 * config.in, configure: Regenderated.
2735
2736 * config/rs6000/power4.md: Add mfcrf reservation.
2737 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2738 * config/rs6000/rs6000.c (mfcr_operation): Define.
2739 (print_operand): Add 'Q' case for mfcrf.
2740 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2741 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2742 (movcc_internal1): Emit optional field operand for mfcr and set
2743 "type" attribute appropriately.
2744 (mfcr SCC): Likewise.
2745 (movesi_from_cr_one): New.
2746
923c4cf2
RS
27472003-07-07 Roger Sayle <roger@eyesopen.com>
2748
2749 * config/i386/i386.md: Correct check-in of incorrect version.
2750
75b6f3fd
KG
27512003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2752
2753 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2754 adjacent stdio calls.
2755 * c-decl.c (c_print_identifier): Likewise.
2756 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2757 * print-rtl.c (print_rtx): Likewise.
2758 * print-tree.c (print_node_brief, print_node): Likewise.
2759 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 2760
75b6f3fd
KG
2761 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2762 * config.in, configure: Regenerated.
2763
afeeac3f
RS
27642003-07-07 Roger Sayle <roger@eyesopen.com>
2765
2766 PR target/10979
2767 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2768 Changed to define_expand patterns that copy operand[1] to prevent
2769 it from being clobbered before emitting an atan2?f3_1 insn.
2770 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2771 patterns that actually specify the behaviour of x87's FPATAN.
2772
eeff9307
JJ
27732003-07-07 Jakub Jelinek <jakub@redhat.com>
2774
2775 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2776 clearing of SYMBOL_FLAG_LOCAL bit.
2777 If vcall_offset fits into signed 16-bit immediate, use
2778 one instruction for both addition and load.
2779
0fcd5dda
NB
27802003-07-07 Neil Booth <neil@daikokuya.co.uk>
2781
2782 * opts.c (common_handle_option): Correct handling of the
2783 -falign- switches that do and don't take an argument.
2784
b275810a
KH
27852003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2786
2787 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2788 today.
2789 (pushhi1_h8300hs): Likewise.
2790
5671bf27
AJ
27912003-07-07 Andreas Jaeger <aj@suse.de>
2792
2793 * genextract.c: Convert remaining prototypes to ISO C90.
2794
2795 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2796 * fold-const.c (fold_single_bit_test): Likewise.
2797 * diagnostic.c (default_diagnostic_finalizer): Likewise.
2798 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2799
2800 * gengtype.c (write_array): Generate ISO C90 prototypes.
2801
2802 * genflags.c (gen_proto): Generate ISO C90 prototypes.
2803
2c430630
RS
28042003-07-07 Roger Sayle <roger@eyesopen.com>
2805
2806 PR optimization/11059
2807 * expr.c (can_store_by_pieces): Return true if length is zero.
2808 (store_by_pieces): If length is zero and endp is two, abort,
2809 othwerise, if length is zero and endp is not two, return "to".
2810 (clear_by_pieces): Do nothing if length is zero.
2811 (clear_storage): Do nothing if length is zero.
2812 (store_constructor): Simplify code when size is zero, or the
2813 target has already been cleared. This avoids emitting a
2814 blockage instruction when initializing empty structures.
2815
cf633f5b
AJ
28162003-07-07 Andreas Jaeger <aj@suse.de>
2817
2818 * mips-tfile.c: Convert prototypes to ISO C90.
2819 * mips-tdump.c: Convert prototypes to ISO C90.
2820
0cea056b
NS
28212003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2822
2823 * rtl.h (emit_line_note): Take a location_t.
2824 (emit_line_note_force): Remove.
2825 (set_file_and_line_for_statement): Take a location_t.
2826 * tree.g (emit_line_note): Take a location_t.
2827 * emit-rtl.c (emit_line_note): Take a location_t.
2828 (emit_line_note_force): Remove.
2829 * function.c (init_function_start): Adjust emit_line_note call.
2830 (expand_function_end): Use force_next_line_note, not
2831 emit_line_note_force.
2832 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2833 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2834 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2835 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2836 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2837 genrtl_continue_stmt, genrtl_switch_stmt,
2838 genrtl_asm_stmt): Likewise.
2839 * expr.c (expand_expr): Likewise.
2840 * integrate.c (expand_inline_function): Likewise.
2841 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2842 (expand_decl_init): Adjust emit_line_note call.
2843
8eb910fc
DJ
28442003-07-07 Dale Johannesen <dalej@apple.com>
2845
56694dd9 2846 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 2847
b96a374d
AJ
28482003-07-07 Andreas Jaeger <aj@suse.de>
2849
2850 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2851 * config/i386/i386.c: Likewise.
2852
273fc01e
KH
28532003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2854
2855 * config/h8300/h8300.md: Use gen_int_mode instead of
2856 GEN_INT (trunc_int_for_mode (...)).
2857
fb7d7712
KH
28582003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2859
2860 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2861 2 bytes and then subtract 2 from the stack pointer.
2862 (pushhi1_h8300hs): Likewise.
2863
e61a2eb7
NS
28642003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2865
2866 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2867 -frandom-seed.
2868 * configure: Regenerated.
2869 * Makefile.in: Remove extraneous comment.
2870 * toplev.c (randomize): Protect against potential multiple calls.
2871 * doc/invoke.texi (-frandom-seed): Document use for in coverage
2872 files.
2873
82d610ec 28742003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 2875 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
2876
2877 PR optimization/11198
2878 * alias.c (objects_must_conflict_p): Return 1 if the types have
2879 the same alias set, not if the alias sets only conflict.
2880
5beadb33
AP
28812003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
2882
2883 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2884 (convert_cset): Change inbuf to type ICONV_CONST char.
2885 * Makefile.in (LIBS): Add LIBICONV.
2886
9bb34f3c
AJ
2887 * doc/invoke.texi (-falign-functions): Document that
2888 when n is zero then a machine-dependent default is used.
2889 (-falign-labels): Document that when n is zero then a
2890 machine-dependent default is used and that -falign-labels =1
2891 is equivalent to -fno-align-labels.
2892 (-falign-loops): Likewise.
2893 (-falign-jumps): Likewise.
2894
1dbb6ce8
AH
28952003-07-06 Art Haas <ahaas@airmail.net>
2896
2897 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2898 initializer syntax.
2899
8338d44d
JW
29002003-07-06 James E Wilson <wilson@tuliptree.org>
2901
2902 PR optimization/9812
2903 * rtl.h (mem_for_const_double): Delete prototype.
2904 * varasm.c (mem_for_const_double): Delete function.
2905 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2906 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2907 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2908 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2909 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2910 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
2911 comment about confused support for XFmode constants.
2912
9efd34a5
JH
2913Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
2914
2915 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2916
2a43945f
KH
29172003-07-06 Kazu Hirata <kazu@cs.umass.edu>
2918
2919 * config/h8300/h8300.c: Fix comment typos.
2920 * config/h8300/h8300.md: Likewise.
2921 * config/i386/athlon.md: Likewise.
2922 * config/i386/i386.c: Likewise.
2923 * config/i386/pentium.md: Likewise.
2924 * config/ia64/ia64.c: Likewise.
2925 * config/ia64/itanium1.md: Likewise.
2926 * config/ia64/itanium2.md: Likewise.
2927 * config/m32r/m32r.md: Likewise.
2928 * config/m68hc11/m68hc11.c: Likewise.
2929 * config/mcore/mcore.c: Likewise.
2930 * config/mips/sr71k.md: Likewise.
2931 * config/mips/t-iris5-as: Likewise.
2932 * config/mmix/mmix.h: Likewise.
2933 * config/ns32k/ns32k.h: Likewise.
2934 * config/ns32k/NOTES: Fix a typo.
2935
ceee09f7
AJ
29362003-07-06 Andreas Jaeger <aj@suse.de>
2937
7e51717c
AJ
2938 * stmt.c: Convert remaining prototypes to ISO C90.
2939 * cfglayout.c: Likewise.
2940 * dbxout.c: Likewise.
2941 * gcc.c: Likewise.
2942 * genemit.c: Likewise.
2943
ceee09f7
AJ
2944 * basic-block.h: Convert prototypes to ISO C90.
2945 * c-parse.in: Likewise.
2946 * c-pragma.h: Likewise.
2947 * c-typeck.c: Likewise.
2948 * cfghooks.h: Likewise.
2949 * cfgloopanal.c: Likewise.
2950 * dbxout.h: Likewise.
2951 * debug.h: Likewise.
2952 * dwarf2asm.h: Likewise.
2953 * gcov.c: Likewise.
2954 * gengtype-lex.l: Likewise.
2955 * sched-int.h: Likewise.
2956 * timevar.c: Likewise.
2957
cb66e385
NB
29582003-07-06 Neil Booth <neil@daikokuya.co.uk>
2959
2960 * c-common.h (c_comon_handle_filename,
2961 c_common_missing_arguement): New.
2962 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2963 LANG_HOOKS_MISSING_ARGUMENT): New.
2964 * c-opts.c (missing_arg): Rename c_common_missing_argument,
2965 update to be an appropriate langhook.
2966 (c_common_handle_option): Don't handle filenames.
2967 (c_common_handle_filename): New.
2968 * hooks.c (hook_void_constcharptr,
2969 hook_bool_constcharptr_size_t_false): New.
2970 * hooks.h (hook_void_constcharptr,
2971 hook_bool_constcharptr_size_t_false): New.
2972 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2973 LANG_HOOKS_MISSING_ARGUMENT): New.
2974 (LANG_HOOKS_INITIALIZER): Update.
2975 * langhooks.h (struct lang_hooks): Add handle_filename and
2976 missing_argument.
2977 * opts.c (handle_option): Don't handle filenames here, but ...
2978 (handle_options): ... here.
2979 (common_handle_option): Don't handle missing arguments here.
2980 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2981 LANG_HOOKS_MISSING_ARGUMENT): New.
2982
ade4289c
NB
29832003-07-06 Neil Booth <neil@daikokuya.co.uk>
2984
2985 * Makfile.in: Remove traces of mbchar.
2986 * c-parse.in (MULTIBYTE_CHARS): Remove.
2987 * config.in (MULTIBYTE_CHARS): Remove.
2988 * configure: Remove --enable-mbchar.
2989 * configure.in: Remove --enable-mbchar.
2990 * mbchar.c, mbchar.h: Remove.
2991 * system.h: Poison MULTIBYTE_CHARS.
2992 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2993 * config/linux.h (MULTIBYTE_CHARS): Remove.
2994 * config/svr4.h (MULTIBYTE_CHARS): Remove.
2995 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2996
2e1eedd6
AJ
29972003-07-06 Andreas Jaeger <aj@suse.de>
2998
11dc5cc6
AJ
2999 * varray.c (varray_check_failed): Fix typo.
3000
3001 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
3002 * varasm.c: Likewise.
3003 * varray.c: Likewise.
3004 * varray.h: Likewise.
3005 * vmsdbgout.c: Likewise.
3006 * xcoffout.c: Likewise.
3007 * xcoffout.h: Likewise.
3008
dd486eb2
NS
30092003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3010
3011 * gcov-io.h: Add a local time stamp.
3012 (struct gcov_info): Add stamp field.
3013 (gcov_truncate): New.
3014 * coverage.c (read_counts_file): Skip the stamp.
3015 (coverage_begin_output): Write the stamp.
3016 (build_gcov_info): Declare and init the stamp.
3017 (coverage_finish): Only unlink data file, if stamp is zero.
3018 * gcov-dump.c (dump_file): Dump the stamp.
3019 * gcov.c (bbg_stamp): New.
3020 (release_structures): Clear bbg_stamp.
3021 (read_graph_file): Read stamp.
3022 (read_count_file): Check stamp.
3023 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
3024
c07e5477
NS
30252003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3026
3027 * tree.h (default_flag_random_seed): Remove.
3028 * toplev.h (local_tick): Declare.
3029 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3030 toplev.c.
3031 (append_random_chars): Don't call default_flag_random_seed.
3032 * toplev.c (flag_random_seed): Define here. Set local_tick.
3033 (local_tick): Define.
3034 (randomize): New, moved from tree.c.
3035 (print_switch_values): Adjust.
3036 (toplev_main): Call randomize.
3037
2aab7ceb
NS
30382003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3039
3040 * tree.h (crc32_string): Declare.
3041 * tree.c (append_random_chars): Remove.
3042 (crc32_string): New.
3043 (get_file_function_name_long): Use crc32_string here.
3044
1d088dee
AJ
30452003-07-06 Andreas Jaeger <aj@suse.de>
3046
3047 * gcc.c: Convert prototypes to ISO C90.
3048 * gcc.h: Likewise.
3049 * gcov-dump.c: Likewise.
3050 * gcov-iov.c: Likewise.
3051 * gcse.c: Likewise.
3052 * genattrtab.h: Likewise.
3053 * ggc.h: Likewise.
3054 * global.c: Likewise.
3055 * graph.c: Likewise.
3056 * graph.h: Likewise.
3057 * hosthooks.h: Likewise.
3058 * hooks.h: Likewise.
3059 * hooks.c: Likewise.
3060 * hashtable.h: Likewise.
3061 * hashtable.c: Likewise.
3062 * haifa-sched.c: Likewise.
3063 * integrate.h: Likewise.
3064 * integrate.c: Likewise.
3065 * input.h: Likewise.
3066 * ifcvt.c: Likewise.
f8ec47c7 3067 * jump.c: Likewise.
0c20a65f
AJ
3068 * langhooks-def.h: Likewise. Add extern to prototypes.
3069 * langhooks.c: Likewise.
3070 * langhooks.h: Likewise.
3071 * lcm.c: Likewise.
3072 * local-alloc.c: Likewise.
3073 * loop-init.c: Likewise.
3074 * loop-unroll.c: Likewise.
3075 * loop-unswitch.c: Likewise.
3076 * loop.c: Likewise.
3077 * loop.h: Likewise. Add extern to prototypes.
3078 * machmode.h: Likewise.
3079 * main.c: Likewise.
3080 * mbchar.c: Likewise.
3081 * mbchar.h: Likewise.
3082 * mkdeps.c: Likewise.
3083 * mkdeps.h: Likewise.
3084 * optabs.c: Likewise.
3085 * optabs.h: Likewise.
3086 * output.h: Likewise.
3087 * gccspec.c: Likwise.
3088 * postreload.c: Likewise.
3089 * prefix.c: Likewise.
3090 * prefix.h: Likewise.
3091 * print-rtl.c: Likewise.
3092 * print-tree.c: Likewise.
3093 * profile.c: Likewise.
3094 * read-rtl.c: Likewise.
3095 * real.c: Likewise.
3096 * real.h: Likewise.
3097 * recog.c: Likewise.
3098 * recog.h: Likewise.
3099 * reg-stack.c: Likewise.
3100 * regclass.c: Likewise.
3101 * regmove.c: Likewise.
3102 * regrename.c: Likewise.
3103 * regs.h: Likewise.
3104 * reload.c: Likewise.
3105 * reload.h: Likewise.
3106 * reload1.c: Likewise.
3107 * reorg.c: Likewise.
3108 * resource.c: Likewise.
3109 * resource.h: Likewise.
3110 * rtl-error.c: Likewise.
3111 * rtl.c: Likewise.
3112 * rtl.h: Likewise.
3113 * rtlanal.c: Likewise.
46c5ad27
AJ
3114 * sbitmap.c: Likewise.
3115 * sbitmap.h: Likewise.
3116 * scan-decls.c: Likewise.
3117 * scan.c: Likewise.
3118 * sched-deps.c: Likewise.
3119 * sched-ebb.c: Likewise.
3120 * sched-int.h: Likewise.
3121 * sched-rgn.c: Likewise.
3122 * sched-vis.c: Likewise.
3123 * sibcall.c: Likewise.
3124 * simplify-rtx.c: Likewise.
3125 * sreal.c: Likewise.
3126 * sreal.h: Likewise.
3127 * ssa-ccp.c: Likewise.
3128 * ssa-dce.c: Likewise.
3129 * ssa.c: Likewise.
3130 * ssa.h: Likewise.
3131 * stack.h: Likewise.
3132 * stmt.c: Likewise.
3133 * stor-layout.c: Likewise.
3134 * stringpool.c: Likewise.
3135 * target.h: Likewise.
3136 * timevar.c: Likewise.
3137 * timevar.h: Likewise.
3138 * tlink.c: Likewise.
3139 * tracer.c: Likewise.
3140 * tree-inline.c: Likewise.
3141 * tree-inline.h: Likewise.
3142 * tree.c: Likewise.
3143 * tree.h: Likewise.
1d088dee 3144
4f649bc1
KH
31452003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3146
3147 * combine.c (nonzero_bits1): Fix a warning.
3148
31492003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
3150
3151 * config/h8300/h8300.c (compute_mov_length): Correct the
3152 length of loading CONST0_RTX (SFmode).
3153
f5924ac1
NS
31542003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3155
3156 * toplev.c (output_clean_symbol_name): Remove.
3157 * toplev.h (output_clean_symbol_name): Remove.
3158 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3159 lbasename & clean_symbol_name.
3160
39e3f58c
KH
31612003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3162
3163 * ggc.h: Follow spelling conventions.
3164 * config/i386/i386.c: Likewise.
3165 * config/i386/winnt.c: Likewise.
3166 * config/rs6000/rs6000.c: Likewise.
3167
4d6922ee
KH
31682003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3169
3170 * bt-load.c: Fix comment typos.
3171 * c-incpath.c: Likewise.
3172 * cfg.c: Likewise.
3173 * cfgcleanup.c: Likewise.
3174 * cfgloop.h: Likewise.
3175 * cfgloopmanip.c: Likewise.
3176 * cfgrtl.c: Likewise.
3177 * diagnostic.h: Likewise.
3178 * dwarfout.c: Likewise.
3179 * emit-rtl.c: Likewise.
3180 * et-forest.c: Likewise.
3181 * et-forest.h: Likewise.
3182 * expr.c: Likewise.
3183 * gcse.c: Likewise.
3184 * genattr.c: Likewise.
3185 * jump.c: Likewise.
3186 * langhooks.h: Likewise.
3187 * local-alloc.c: Likewise.
3188 * loop-unroll.c: Likewise.
3189 * loop-unswitch.c: Likewise.
3190 * ra-build.c: Likewise.
3191 * regclass.c: Likewise.
3192 * regmove.c: Likewise.
3193 * rtl.def: Likewise.
3194 * rtlanal.c: Likewise.
3195 * sched-ebb.c: Likewise.
3196 * sched-rgn.c: Likewise.
3197 * simplify-rtx.c: Likewise.
3198 * ssa.c: Likewise.
3199 * tracer.c: Likewise.
3200 * tree.c: Likewise.
3201
f1c4bc4f
ZW
32022003-07-05 Zack Weinberg <zack@codesourcery.com>
3203
3204 * cppcharset.c: Use the correct return type for the fallback iconv
3205 macro.
3206
65c6f1b4
ZD
3207Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3208
3209 Blame to Jan Hubicka <jh@suse.cz>
3210 * cfglayout.c (record_effective_endpoints): Split insns before
3211 first basic block correctly.
3212
a8f3bf52
RK
32132003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3214
f1c4bc4f 3215 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
3216 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3217 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3218
0641776c
AJ
32192003-07-05 Andreas Jaeger <aj@suse.de>
3220
3221 * genattrtab.c (write_attr_get): Revert part of last patch to
3222 always write out a prototype.
3223
3224 * genemit.c (gen_split): Readd lost unused attributes in last
3225 patch.
3226
977129f6
ZD
32272003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3228
3229 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3230 different from header.
3231
5ee084df
AS
32322003-07-05 Andreas Schwab <schwab@suse.de>
3233
3234 * config/m68k/m68k.c: Remove code protected by CRDS.
3235 * config/m68k/m68k.md: Likewise.
3236
33de9573
NB
32372003-07-05 Neil Booth <neil@daikokuya.co.uk>
3238
3239 PR driver/11417
3240 * c-opts.c (permit_fortran_options): New.
3241 (c_common_init_options): Accept fortran front end options if
3242 it looks like we might be preprocessing Fortran.
3243 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3244
6906ba40
KG
32452003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246
3247 * genattr.c (internal_dfa_insn_code): Output prototype.
3248 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3249 * genautomata.c: Likewise.
3250 * genconditions.c: Likewise.
3251 * genemit.c: Likewise.
3252 * genextract.c: Likewise.
3253 * gengenrtl.c: Likewise.
3254 * gengtype.c: Likewise.
3255 * genopinit.c: Likewise.
3256 * genoutput.c: Likewise.
3257 * genpeep.c: Likewise.
3258 * genrecog.c: Likewise.
3259
e6cc3a24
ZW
32602003-07-04 Zack Weinberg <zack@codesourcery.com>
3261
3262 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3263 (struct cpp_options): Add narrow_charset, wide_charset,
3264 bytes_big_endian fields. Remove EBCDIC field.
3265 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3266
3267 * cpphash.h: Include <iconv.h> if we have it, otherwise
3268 provide a dummy definition of iconv_t.
3269 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3270 (_cpp_valid_ucn): Update prototype.
3271 (_cpp_destroy_iconv): New prototype.
3272
3273 * doc/cpp.texi: Document character set handling.
3274 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3275 * doc/extend.texi: Delete entire section on multiline strings.
3276 Rewrite section on __FUNCTION__ etc now that these are
3277 variables in C.
3278
3279 * cppucnid.tab, cppucnid.pl: New files.
3280 * cppucnid.h: New generated file.
3281 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3282 (iconv_open, iconv, iconv_close): Provide dummy definitions
3283 if !HAVE_ICONV.
3284 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3285 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3286 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3287 cpp_interpret_string, narrow_str_to_charconst,
3288 wide_str_to_charconst): New.
3289 (ucn_valid_in_identifier): Use a binary search through the
3290 ucnranges table defined in cppucnid.h, not a long chain of if
3291 statements.
3292 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3293 character names are only valid in C++ and C99" to a warning.
3294 Issue the "meaning of \[uU] is different in traditional C"
3295 warning here. Take care not to let iconv see an invalid UCS
3296 value if we get a malformed UCN. Issue an error if we don't
3297 have iconv.
3298 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3299 cpp_interpret_string to do the heavy lifting.
3300
3301 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3302 narrow_charset, wide_charset fields of options structure.
3303 (cpp_destroy): Call _cpp_destroy_iconv.
3304 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3305 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3306 (cpp_interpret_charconst): Moved to cppcharset.c.
3307 * cpplib.c (dequote_string): Delete.
3308 (interpret_string_notranslate): New.
3309 (do_line, do_linemarker): Use interpret_string_notranslate.
3310
3311 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3312
3313 * c-common.c (fname_string, combine_strings): Delete.
3314 * c-common.h (fname_string, combine_strings): Delete prototypes.
3315 * c-lex.c (ignore_escape_flag): Delete.
3316 (cb_ident): Use cpp_interpret_string, not lex_string.
3317 (get_nonpadding_token): New function.
3318 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3319 Adjust calls to lex_string. Don't write *value twice.
3320 (lex_string): Now handles string constant concatenation.
3321 Most of the work handed off to cpp_interpret_string.
3322 Call fix_string_type here.
3323 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3324 FUNC_NAME, throughout.
3325 (OBJC_STRING): New token type.
3326 (primary:STRING): No need to call fix_string_type here.
3327 (primary:objc_string): Make that OBJC_STRING.
3328 (objc_string nonterminal): Delete.
3329 (yylexname): Delete code to handle fake string constants.
3330 (yylexstring): Delete entirely.
3331 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3332 to handle CPP_ATSIGN.
3333
3334 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3335 * c-opts.c (missing_arg, c_common_handle_option): Handle
3336 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3337 (c_common_init): Set cpp_opts->bytes_big_endian, not
3338 cpp_opts->EBCDIC. Call cpp_init_iconv.
3339 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3340 (TARGET_EBCDIC): Delete default definition.
3341
3342 * objc/objc-act.c (build_objc_string_object): No need to
3343 handle string constant concatenation.
3344
61aeb06f
KH
33452003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3346
3347 * doc/install.texi: Fix typos.
3348 * doc/invoke.texi: Likewise.
3349 * doc/tm.texi: Likewise.
3350
c1207243
KH
33512003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3352
3353 * config/pa/fptr.c: Fix comment typos.
3354 * config/pa/pa-64.h: Likewise.
3355 * config/pa/pa.c: Likewise.
3356 * config/pa/pa.h: Likewise.
3357 * config/rs6000/603.md: Likewise.
3358 * config/rs6000/7xx.md: Likewise.
3359 * config/rs6000/darwin.h: Likewise.
3360 * config/rs6000/freebsd.h: Likewise.
3361 * config/rs6000/rs6000.c: Likewise.
3362 * config/rs6000/rs6000.md: Likewise.
3363 * config/rs6000/spe.h: Likewise.
3364
58add37a
UW
33652003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3366
3367 * config/s390/2064.md: Change GNU CC to GCC.
3368 * config/s390/2084.md: Likewise.
3369 * config/s390/fixdfdi.h: Likewise.
3370 * config/s390/linux.h: Likewise.
3371 * config/s390/s390-modes.def: Likewise.
3372 * config/s390/s390-protos.h: Likewise.
3373 * config/s390/s390.c: Likewise.
3374 * config/s390/s390.h: Likewise.
3375 * config/s390/s390.md: Likewise.
3376 * config/s390/s390x.h: Likewise.
3377
60cd4dae
JL
33782003-07-04 Jeff Law <law@redhat.com>
3379
a38825d2 3380 PR c/11428
60cd4dae
JL
3381 * expr.c (do_store_flag): Pass in the correct result type
3382 when calling fold_single_bit_test.
3383 * fold-const.c (fold_single_bit_test): Use result_type for the
3384 result when folding a sign bit test.
3385
5e14ae7e
NB
33862003-07-04 Neil Booth <neil@daikokuya.co.uk>
3387
3388 * opts.c (common_handle_options): Negate sense of -falign- switches.
3389
8c90b13a
L
33902003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3391
c3b3975a 3392 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 3393
72d4a2ad
ZD
33942003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3395
3396 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3397 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3398 Handle strange loops.
3399
8e9a4a45
TM
34002003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3401
3402 * install.texi: Even the g77 manpage is derived from
3403 the full g77 manual.
3404
6eb95e99
ZW
34052003-07-04 Zack Weinberg <zack@codesourcery.com>
3406
3407 * ABOUT-NLS: Delete.
3408 * intl: Delete entire directory.
3409 * aclocal.m4: Include ../config/gettext.m4. Delete
3410 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3411 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3412 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3413 Remove intl/Makefile from all_outputs.
3414 * configure, config.in: Regenerate.
3415 * Makefile.in: Expunge all references to intl subdirectory.
3416 Add -I../intl to INCLUDES.
3417 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3418
bcd5d841
RS
34192003-07-04 Roger Sayle <roger@eyesopen.com>
3420
3421 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3422 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3423
6b6cb52e
DS
34242003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3425
3426 PR c++/5287, PR c++/7910, PR c++/11021
3427 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3428 dllimport attribute if function is defined at declaration, but
3429 report error instead. Likewise for dllimport'd variable
3430 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3431 declared within functions, Report error if dllimport or dllexport
3432 symbol is not global.
3433 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3434 if defined after declaration or if inlined. Don't allow definition
3435 of static data members of C++ classes. Don't dllimport virtual
3436 methods.
3437 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3438 (i386_pe_mark_dllimport): Remove unnecessary checks.
3439 (i386_pe_encode_section_info): Warn if the dllimport attribute
3440 and symbol prefix have been instantiated and then overridden.
3441
3442 * doc/extend.texi: Document dllimport and dllexport attributes.
3443
3444 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3445
cc2f5d34
US
34462003-07-03 Uwe Stieber <uwe@kaos-group.de>
3447
3448 * config/kaos.h (CPP_PREDEFINES): Delete.
3449 (TARGET_OS_CPP_BUILTINS): New.
3450
5f1989e6
KG
34512003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3452
3453 * c-aux-info.c: Include toplev.h after c-tree.h.
3454 * c-common.c: Likewise.
3455 (GCC_DIAG_STYLE): Undef.
3456 * c-semantics.c (GCC_DIAG_STYLE): Define.
3457 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3458 * diagnostic.h (inform): Move prototype to toplev.h.
3459 * jump.c: Include diagnostic.h before toplev.h.
3460 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3461 (warning, error, fatal_error, pedwarn, sorry, inform,
3462 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3463
8d28e87d
ZD
34642003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3465
3466 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3467 at all if edge is not specified.
3468 (can_copy_bbs_p, copy_bbs): New.
3469 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3470 * cfgloop.c (get_loop_body): Comment more precisely.
3471 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3472 (scale_bbs_frequencies): Fix comment typo.
3473 (can_duplicate_loop_p): Use can_copy_bbs_p.
3474 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3475
694abeb6
DP
34762003-07-03 Devang Patel <dpatel@apple.com>
3477
3478 * c-opts.c (c_common_parse_file): Remove extra
3479 debug_hooks->start_source_file call.
6eb95e99 3480
0a9530a9
RS
34812003-07-03 Roger Sayle <roger@eyesopen.com>
3482
3483 * real.c (real_trunc, real_floor, real_ceil): New functions
3484 to implement trunc, floor and ceil respectively.
3485 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3486 * builtins.c (integer_valued_real_p): New function to test if
3487 a floating point expression has an integer valued result.
3488 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3489 foo(x) where foo is an integer rounding function. Similarly,
3490 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3491 (double)(int)x when both foo and bar are integer rounding
3492 functions and we don't need to honor errno.
3493 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3494 New functions to fold trunc, floor and ceil.
3495 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3496 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3497 to fold BUILT_IN_CEIL*.
3498 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3499 the remaining integer rounding functions.
3500
c3427c7d
EB
35012003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3502
3503 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3504 SPARC_INT_ARG_MAX to determine where to split unnamed
3505 complex FP arguments.
3506
bc35512f
JH
3507Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
3508
3509 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3510 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3511 (merge_blocks_move_predecessor_nojumps,
3512 merge_blocks_move_successor_nojumps): Use merge_blocks.
3513 (try_optimize_cfg): Use merge_blocks_move.
3514 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3515 (merge_blocks_nomove): Rename to rtl_merge_blocks.
3516 (cfg_layout_create_basic_block): New.
3517 (rtl_can_merge_blocks): New.
3518 (cfg_layout_split_block): Do not alloc aux by hand.
3519 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3520 merge_blocks.
3521 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3522 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3523 * cfgloopmanip.c (loop_split_edge_with): Likewise.
3524 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3525
3526 * basic-block.h (basic_block_def): Add field 'rbi'.
3527 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3528 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3529 * cfg.c (entry_exit_blocks): Add new field.
3530 * cfglayout.c: Include alloc-pool.h;
3531 (cfg_layout_pool): New.
3532 (record_effective_endpoints, fixup_reorder_chain,
3533 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3534 of rbi.
3535 (cfg_layout_initialize_rbi): New function.
3536 (cfg_layout_initialize): Use it.
3537 (cfg_layout_finalize): Clear rbi fields.
3538 * cfglayout.h (RBI): Kill.
3539 (cfg_layout_initialize_rbi): Declare.
3540 * cfgloopmanip.c (copy_bbs): Use rbi.
3541 (record_exit_edges): Likewise.
3542 (duplicate_loop_to_header_edge): Likewise.
3543 * cfgrtl.c (cfg_layout_create_basic_block): Use
3544 cfg_layout_initialize_rbi.
3545 (cfg_layout_split_block): Use rbi.
3546 (cfg_layout_delete_block): Likewise.
3547 * loop-init.c (loop_optimizer_finalize): Likewise.
3548 * loop-unswitch.c (unswitch_loop): Likewise.
3549 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3550
3551 * cfgrtl.c: Update comments.
3552 (try_redirect_by_replacing_jump): New argument.
3553 (redirect_branch_edge): Break out from ...
3554 (rtl_redirect_edge_and_branch): ... this one.
3555 (update_cfg_after_block_merging): Break out from ...
3556 (rtl_merge_blocks): ... this one.
3557 (cfg_layout_split_edge): New.
3558 (cfg_layout_merge_blocks): New.
3559 (cfg_layout_can_merge_blocks_p): New.
3560 (cfg_layout_redirect_edge_and_branch): Reorganize.
3561 (cfg_layout_rtl_cfg_hooks): Fill in.
3562 (cfg_layout_delete_block): Kill barriers.
3563 * cfganal.c (can_fallthru): Deal with exit blocks
3564 * cfglayout.c (cfg_layout_function_header): New function
3565 (record_effective_endpoints): Record function header.
3566 (fixup_reorder_chain): Fixup dead jumptables; place header
3567
3568 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3569 * bb-reorder.c (cfg_layout_initialize): Update call.
3570 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3571 edges in cfglayout mode.
3572 * cfglayout.c (cleanup_unconditional_jumps): Kill.
3573 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3574 * cfglayout.h (cfg_layout_initialize): Update prototype.
3575 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3576 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3577 * flow.c (propagate_block): Do not crash when basic block ends
3578 by first insn in the chain.
3579 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
3580 do loop discovery.
3581 * tracer.c (tracer): Update call of cfg_layout_initialize.
3582
dd220c49
KG
35832003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3584
3585 * Makefile.in: Use dependency variables in lieu of explicit
3586 files throughout.
3587
fa5b060f
SB
35882003-07-03 Steven Bosscher <steven@gcc.gnu.org>
3589
3590 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3591 * tree.h: ...to here.
3592
fae778eb
KH
35932003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3594
3595 * config/s390/2064.md: Fix comment typos.
3596 * config/s390/2084.md: Likewise.
3597 * config/s390/s390.c: Likewise.
3598 * config/s390/s390.md: Likewise.
3599 * config/sh/sh.c: Likewise.
3600 * config/sh/sh.h: Likewise.
3601 * config/sh/sh.md: Likewise.
3602 * config/sparc/sparc.c: Likewise.
3603 * config/sparc/sparc.h: Likewise.
3604 * config/sparc/sparc.md: Likewise.
3605 * config/stormy16/stormy16.c: Likewise.
3606 * config/stormy16/stormy16.h: Likewise.
3607 * config/stormy16/stormy-abi: Fix a typo.
3608
58eabcb1
KC
36092003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
3610
3611 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3612
af261903
KG
36132003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3614
3615 * config/mips/mips.h (save_argv): Delete.
3616
a11c61d2
RS
36172003-07-03 Roger Sayle <roger@eyesopen.com>
3618
3619 PR target/10700
3620 * fold-const.c (extract_muldiv_1): There's nothing that can be done
3621 if the expression is a SAVE_EXPR.
3622
dab66575
KH
36232003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3624
3625 * config/m32r/m32r.c: Fix comment typos.
3626 * config/m68hc11/m68hc11.c: Likewise.
3627 * config/m68hc11/m68hc11.h: Likewise.
3628 * config/m68k/m68k.c: Likewise.
3629 * config/mcore/mcore.c: Likewise.
3630 * config/mcore/mcore.h: Likewise.
3631 * config/mcore/mcore.md: Likewise.
3632 * config/mips/mips.c: Likewise.
3633 * config/mips/mips.h: Likewise.
3634 * config/mips/mips.md: Likewise.
3635 * config/mips/netbsd.h: Likewise.
3636 * config/mn10300/mn10300.c: Likewise.
3637
8837d828
AS
36382003-07-03 Andreas Schwab <schwab@suse.de>
3639
3640 * dbxout.c (pending_bincls): Move decl down inside
3641 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3642
dd107e66
NS
36432003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3644
3645 * rtl.h (NOTE_DATA): Refer to whole union.
3646 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3647
8821d091
EB
36482003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3649
3650 PR optimization/11381
3651 * simplify-rtx.c (simplify_relational_operation): Check that
3652 two equal operands have no side-effects before simplifying
3653 the comparison.
3654
7960bf22
JL
36552003-07-02 Jeff Law <law@redhat.com>
3656
3657 * expr.c (do_store_flag): Remove special case folding for
3658 single bit tests. Instead call back into the commonized folder
3659 routine.
3660 * fold-const.c (fold_single_bit_test): New function, mostly
3661 extracted from do_store_flag, with an additional case extracted
3662 from fold.
3663 (fold): Call fold_single_bit_test appropriately.
3664 * tree.h (fold_single_bit_test): Prototype.
3665
3dce1408
ZW
36662003-07-02 Zack Weinberg <zack@codesourcery.com>
3667
3668 * system.h: Include filenames.h.
3669 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3670 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3671 define based on HAVE_DOS_BASED_FILE_SYSTEM.
3672 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3673 * config/i386/xm-mingw32.h: Don't define
3674 HAVE_DOS_BASED_FILE_SYSTEM,
3675 DIR_SEPARATOR, or DIR_SEPARATOR_2.
3676 * doc/hostconfig.texi: Update to match.
3677
3678 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3679 config/i386/cygwin.h:
3680 Use IS_ABSOLUTE_PATH throughout.
3681 * gcc.c (DIR_UP): Delete, unused.
3682 * protoize.c (IS_SAME_PATH): Define in terms of
3683 FILENAME_CMP.
3684 (is_abspath): Delete.
3685
c51e6d85
KH
36862003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3687
3688 * config/i386/emmintrin.h: Fix comment typos.
3689 * config/i386/i386.c: Likewise.
3690 * config/i386/i386.h: Likewise.
3691 * config/i386/sco5.h: Likewise.
3692 * config/ia64/ia64.c: Likewise.
3693 * config/ia64/itanium2.md: Likewise.
3694
5ec3a5a7
L
36952003-07-02 H.J. Lu <hongjiu.lu@intel.com>
3696
3697 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3698 DBX_USE_BINCL.
3699 (emit_bincl_stab): Same.
3700 (emit_pending_bincls): Same.
3701
fad37371
KH
37022003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3703
3704 * config/h8300/h8300.c (compute_mov_length): Fix the length of
3705 loading CONST0_RTX (SFmode).
3706 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3707 'G' to CONST0_RTX (SFmode).
3708 * config/h8300/h8300.md (movsf_h8300): Change the first
3709 constraint to 'G'.
3710 (movsf_h8300h): Likewise.
3711
b86f6cd9
NB
37122003-07-02 Neil Booth <neil@daikokuya.co.uk>
3713
3714 * c-common.h (c_common_init_options): New prototype.
3715 * c-opts.c (deferred_size): Remove.
3716 (defer_opt): Array is now pre-allocated.
3717 (c_common_init_options): Pre-allocate deferred_opts. Make
3718 lang_flags unsigned.
3719 (push_command_line_options): Free deferred_opts.
3720 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3721 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3722 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3723 * langhooks.h (struct lang_hooks): New prototype for init_options.
3724 * main.c (main): Cast argv.
3725 * opts.c (handle_option, handle_options): Update prototypes.
3726 (decode_options): save_argc, save_argv are not global. Constify.
3727 * opts.h (decode_options): New prototype.
3728 * toplev.c (general_init): New protoype.
3729 (save_argv): Make static.
3730 (save_argc): Remove.
3731 (print_switch_values, general_init): Constify.
3732 (toplev_main): Save argv.
3733 * toplev.h (toplev_main): Update prototype.
3734 (save_argc, save_argv): Remove.
3735
f23b9d52
DE
37362003-07-02 David Edelsohn <edelsohn@gnu.org>
3737
3738 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3739 (emit_bincl_stab): Same.
3740 (emit_pending_bincls): Same.
3741
300e89a2
NS
37422003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3743
3744 PR c++/11072
3745 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3746
eaac6968
AS
37472003-07-02 Andreas Schwab <schwab@suse.de>
3748
3749 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3750
1a8c4ca6
EB
37512003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3752
3753 PR optimization/11210
3754 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3755 about the behaviour with regard to bitfields.
3756 * fold-const (decode_field_reference): Record outermost type in
3757 case the expression is a NOP. Strip all NOPs. Set the signedness
3758 to that of the outermost type (if any) when the bitsize is equal
3759 to the size of the type.
3760
23cdfcf7
RS
37612003-07-02 Richard Sandiford <rsandifo@redhat.com>
3762
3763 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3764 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3765 (adddi3_internal_3, addsi3_internal_2): Likewise.
3766
6f2993e5
RS
37672003-07-02 Richard Sandiford <rsandifo@redhat.com>
3768
3769 * config/mips/mips.c (machine_function): Add new fields:
3770 ignore_hazard_length_p and all_noreorder_p.
3771 (mips_flag_delayed_branch): New variable.
3772 (override_options): Treat '/' as an operand punctuation character.
3773 Set up mips_flag_delayed_branch.
3774 (print_operand): Handle '/'.
3775 (mips_output_function_prologue): Put the whole function in
3776 .set noreorder and .set nomacro if all_noreorder_p is true.
3777 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3778 (mips16_optimize_gp): Remove "first insn" parameter.
3779 (mips16_lay_out_constants): New function, split out from mips_reorg.
3780 (mips_avoid_hazard, mips_avoid_hazards): New functions.
3781 (mips_reorg): For mips16 code, call mips16_lay_out_constant
3782 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
3783 do delayed-branch scheduling followed by hazard detection.
3784 (mips_adjust_insn_length): Only account for hazards if
3785 !ignore_hazard_length_p.
3786 (mips_output_load_label): Add a nop to the o32 sequence if
3787 the target suffers from load delays.
3788 (mips_output_conditional_branch): Add %/ to the end of branches.
3789 (mips_output_division): Fill the branch delay slot with %#.
3790 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3791 instructions. End all other %* branches with %/.
3792 (ffssi2, ffsdi2): Fix lengths.
3793 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3794 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3795 (fix_truncsfsi2_macro): Likewise.
3796 (mov_lwl): Set hazard to "none".
3797 (ashldi3_internal): Fill the branch delay slot with %#.
3798 (ashrdi3_internal, lshrdi3_internal): Likewise.
3799 (exception_receiver): Explicitly set $28.
3800 (hazard_nop): New pattern.
3801
0184bd46
JH
3802Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
3803
3804 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3805 before calling tree_inlinable_function_p.
3806
1a78e5a7
RO
38072003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3808
3809 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3810 <internal/stdio_core.h> too.
3811 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3812 <internal/wchar_core.h> too.
3813 Substitute va_list uses in inline definition.
3814 * fixinc/fixincl.x: Regenerate.
3815
4c82f12b
RO
38162003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3817
3818 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3819 Undef before redefinition.
3820 (LABEL_AFTER_LOC): Likewise.
3821 (DEFAULT_SIGNED_CHAR): Likewise.
3822 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3823 Fix IRIX spelling.
3dce1408 3824
4c82f12b
RO
3825 * config/mips/iris3.h: Remove, unused.
3826 * config/mips/iris4.h: Likewise.
3827
3828 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3829
3830 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3831 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3832 target_cpu_default.
3833
3834 * config/mips/iris5.h: Move explicit includes ...
3835 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 3836
4c82f12b
RO
3837 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3838 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3839 tm_defines.
3840
3841 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3842 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3843 target_cpu_default.
3844
3845 * config/mips/iris6.h: Fix IRIX spelling.
3846 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 3847
4c82f12b
RO
3848 * config/mips/iris6.h: Move explicit includes ...
3849 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3850
8bd87c4e
JH
3851Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
3852
3853 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3854 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3855 Use next_needed field instead of aux to maintain the queue.
3856 * cgraph.h (cgraph_node): Add next_needed.
3857 (cgraph_varpool_node): Add next_needed; remove aux.
3858 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3859
f6981e16
JH
3860Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3861
3862 * cgraphunit.c (cgraph_finalize_function): Set finalized.
3863 (cgraph_finalize_function): Do not examine inlinablility.
3864 (cgraph_finalize_compilation_unit): Do it here.
3865 * cgraph.h (cgraph_local_info): Add finalized field.
3866
d1c60855
RO
38672003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3868
3869 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3870 (gt_pch_restore): Likewise.
3871
093354e0
KH
38722003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3873
3874 * config/alpha/alpha.c: Fix comment typos.
3875 * config/alpha/elf.h: Likewise.
3876 * config/arm/arm.c: Likewise.
3877 * config/arm/arm.h: Likewise.
3878 * config/arm/arm.md: Likewise.
3879 * config/arm/t-arm-coff: Likewise.
3880 * config/arm/t-strongarm-pe: Likewise.
3881 * config/arm/xscale-elf.h: Likewise.
3882 * config/avr/avr.h: Likewise.
3883
ce47ca44
JL
38842003-07-01 Jeff Law <law@redhat.com>
3885
3886 * stmt.c (any_pending_cleanups): Remove another redundant test.
3887
43b68ce5
DE
38882003-07-01 David Edelsohn <edelsohn@gnu.org>
3889 J"orn Rennecke <joern.rennecke@superh.com>
3890
3891 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3892 for MEM case.
3893
33e9d2aa
DP
38942003-07-01 Devang Patel <dpatel@apple.com>
3895
3896 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3897 (binclstatus): New.
3dce1408 3898 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
3899 prev.
3900 (pending_bincls): New.
3901 (dbxout_init): Initialize new dbx_file members.
3902 (dbxout_start_source_file): Same.
3903 (emit_bincl_stab): New function.
3904 (emit_pending_bincls): Same.
3905 (emit_pending_bincls_if_required): Same.
3dce1408 3906 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
3907 processed.
3908 (dbxout_begin_block): Emit pending BINCL stabs.
3909 (dbxout_end_block): Same.
3910 (dbxout_function_decl): Same.
3911 (dbxout_continue): Same.
3912 (dbxout_type): Same.
3913 (dbxout_class_name_qualifiers): Same.
3914 (dbxout_symbol): Same.
3915 (dbxout_symbol_location): Same.
3916 (dbxout_parms): Same.
3dce1408 3917
0108ae51
KG
39182003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3919
3920 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3921 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3922
54ced33d
AJ
39232003-07-01 Andreas Jaeger <aj@suse.de>
3924
3925 * fold-const.c: Convert prototypes to ISO C90.
3926 * function.c: Likewise.
3927 * function.h: Likewise.
3928
c0cbdbd9
KH
39292003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3930
3931 * doc/contrib.texi: Fix typos.
3932 * doc/invoke.texi: Likewise.
3933 * doc/passes.texi: Likewise.
3934 * doc/sourcebuild.texi: Likewise.
3935 * doc/tm.texi: Likewise.
3936
e0bb17a8
KH
39372003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3938
3939 * basic-block.h: Fix comment typos.
3940 * bb-reorder.c: Likewise.
3941 * c-format.c: Likewise.
3942 * cfgcleanup.c: Likewise.
3943 * cfghooks.h: Likewise.
3944 * cfgloop.c: Likewise.
3945 * cfgloopmanip.c: Likewise.
3946 * cfgrtl.c: Likewise.
3947 * cgraph.h: Likewise.
3948 * cgraphunit.c: Likewise.
3949 * combine.c: Likewise.
3950 * convert.c: Likewise.
3951 * dbxout.c: Likewise.
3952 * df.c: Likewise.
3953 * df.h: Likewise.
3954 * diagnostic.c: Likewise.
3955 * dwarf2out.c: Likewise.
3956 * et-forest.h: Likewise.
3957 * flow.c: Likewise.
3958 * fold-const.c: Likewise.
3959 * function.h: Likewise.
3960 * gcov-io.h: Likewise.
3961 * gcov.c: Likewise.
3962 * gcse.c: Likewise.
3963 * genautomata.c: Likewise.
3964 * ggc-common.c: Likewise.
3965 * ggc-page.c: Likewise.
3966 * loop-unroll.c: Likewise.
3967 * loop-unswitch.c: Likewise.
3968 * loop.c: Likewise.
3969 * mips-tfile.c: Likewise.
3970 * optabs.c: Likewise.
3971 * ra-build.c: Likewise.
3972 * ra-colorize.c: Likewise.
3973 * ra-rewrite.c: Likewise.
3974 * ra.h: Likewise.
3975 * regmove.c: Likewise.
3976 * reload.c: Likewise.
3977 * rtlanal.c: Likewise.
3978 * sched-ebb.c: Likewise.
3979 * sched-int.h: Likewise.
3980 * sched-vis.c: Likewise.
3981 * sreal.c: Likewise.
3982 * ssa-ccp.c: Likewise.
3983 * ssa.c: Likewise.
3984 * toplev.c: Likewise.
3985 * tree-inline.c: Likewise.
3986 * value-prof.c: Likewise.
3987 * value-prof.h: Likewise.
3988
5f2fc772
NS
39892003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3990
3991 * rtl.h (emit_line_note_after): Remove.
3992 (emit_note_copy_after, emit_note_copy): New.
3993 * emit-rtl.c (reorder_insns_with_line_notes): Replace
3994 emit_line_note_after with emit_note_copy_after.
3995 (emit_insn_after_with_line_notes): Likewise.
3996 (emit_line_note_after): Kill.
3997 (emit_note_copy_after): New.
3998 (emit_note_copy): New.
3999 * function.c (emit_return_into_block): Use emit_note_copy_after.
4000 (thread_prologue_and_epilogue_insns): Likewise.
4001 * integrate.c (expand_inline_function): Use emit_note_copy.
4002 (copy_insn_list): Likewise.
4003 * unroll.c (copy_loop_body): Likewise.
4004 * cfglayout.c (duplicate_insn_chain): Likewise.
4005
5b030314
NS
40062003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4007
4008 * c-tree.h (define_label): Replace filename and lineno arguments
4009 with a location_t.
4010 * c-decl.c (poplevel): Adjust define_label call.
4011 (pop_label_level): Likewise.
4012 (define_label): Replace filename and lineno arguments with a
4013 location_t.
4014 (store_parm_decls): Use DECL_SOURCE_LOCATION.
4015 * c-parse.in (label): Adjust define_label call.
4016
04df6730
NB
40172003-07-01 Neil Booth <neil@daikokuya.co.uk>
4018
4019 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
4020 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
4021 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
4022 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
4023 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
4024
6cf9ac28
AJ
40252003-07-01 Andreas Jaeger <aj@suse.de>
4026
4027 * final.c: Convert prototypes to ISO C90.
4028 * flow.c: Likewise.
4029 * flags.h: Likewise.
4030 * gcov-io.c: Likewise.
4031 * gcov-io.h: Likewise.
4032
2a868fac 4033See ChangeLog.9 for earlier changes.
This page took 0.678023 seconds and 5 git commands to generate.