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