1 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3 * combine.c (nonzero_bits1): Fix a warning.
5 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7 * config/h8300/h8300.c (compute_mov_length): Correct the
8 length of loading CONST0_RTX (SFmode).
10 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
12 * toplev.c (output_clean_symbol_name): Remove.
13 * toplev.h (output_clean_symbol_name): Remove.
14 * config/alpha/alpha.c (unicosmk_output_module_name): Use
15 lbasename & clean_symbol_name.
17 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
19 * ggc.h: Follow spelling conventions.
20 * config/i386/i386.c: Likewise.
21 * config/i386/winnt.c: Likewise.
22 * config/rs6000/rs6000.c: Likewise.
24 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
26 * bt-load.c: Fix comment typos.
27 * c-incpath.c: Likewise.
29 * cfgcleanup.c: Likewise.
30 * cfgloop.h: Likewise.
31 * cfgloopmanip.c: Likewise.
33 * diagnostic.h: Likewise.
34 * dwarfout.c: Likewise.
35 * emit-rtl.c: Likewise.
36 * et-forest.c: Likewise.
37 * et-forest.h: Likewise.
40 * genattr.c: Likewise.
42 * langhooks.h: Likewise.
43 * local-alloc.c: Likewise.
44 * loop-unroll.c: Likewise.
45 * loop-unswitch.c: Likewise.
46 * ra-build.c: Likewise.
47 * regclass.c: Likewise.
48 * regmove.c: Likewise.
50 * rtlanal.c: Likewise.
51 * sched-ebb.c: Likewise.
52 * sched-rgn.c: Likewise.
53 * simplify-rtx.c: Likewise.
58 2003-07-05 Zack Weinberg <zack@codesourcery.com>
60 * cppcharset.c: Use the correct return type for the fallback iconv
63 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
65 Blame to Jan Hubicka <jh@suse.cz>
66 * cfglayout.c (record_effective_endpoints): Split insns before
67 first basic block correctly.
69 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
71 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
72 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
73 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
75 2003-07-05 Andreas Jaeger <aj@suse.de>
77 * genattrtab.c (write_attr_get): Revert part of last patch to
78 always write out a prototype.
80 * genemit.c (gen_split): Readd lost unused attributes in last
83 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
85 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
86 different from header.
88 2003-07-05 Andreas Schwab <schwab@suse.de>
90 * config/m68k/m68k.c: Remove code protected by CRDS.
91 * config/m68k/m68k.md: Likewise.
93 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
96 * c-opts.c (permit_fortran_options): New.
97 (c_common_init_options): Accept fortran front end options if
98 it looks like we might be preprocessing Fortran.
99 (c_common_handle_option): Don't reject switch if permit_fotran_options.
101 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
103 * genattr.c (internal_dfa_insn_code): Output prototype.
104 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
105 * genautomata.c: Likewise.
106 * genconditions.c: Likewise.
107 * genemit.c: Likewise.
108 * genextract.c: Likewise.
109 * gengenrtl.c: Likewise.
110 * gengtype.c: Likewise.
111 * genopinit.c: Likewise.
112 * genoutput.c: Likewise.
113 * genpeep.c: Likewise.
114 * genrecog.c: Likewise.
116 2003-07-04 Zack Weinberg <zack@codesourcery.com>
118 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
119 (struct cpp_options): Add narrow_charset, wide_charset,
120 bytes_big_endian fields. Remove EBCDIC field.
121 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
123 * cpphash.h: Include <iconv.h> if we have it, otherwise
124 provide a dummy definition of iconv_t.
125 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
126 (_cpp_valid_ucn): Update prototype.
127 (_cpp_destroy_iconv): New prototype.
129 * doc/cpp.texi: Document character set handling.
130 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
131 * doc/extend.texi: Delete entire section on multiline strings.
132 Rewrite section on __FUNCTION__ etc now that these are
135 * cppucnid.tab, cppucnid.pl: New files.
136 * cppucnid.h: New generated file.
137 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
138 (iconv_open, iconv, iconv_close): Provide dummy definitions
140 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
141 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
142 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
143 cpp_interpret_string, narrow_str_to_charconst,
144 wide_str_to_charconst): New.
145 (ucn_valid_in_identifier): Use a binary search through the
146 ucnranges table defined in cppucnid.h, not a long chain of if
148 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
149 character names are only valid in C++ and C99" to a warning.
150 Issue the "meaning of \[uU] is different in traditional C"
151 warning here. Take care not to let iconv see an invalid UCS
152 value if we get a malformed UCN. Issue an error if we don't
154 (cpp_interpret_charconst): Moved here from cpplex.c. Use
155 cpp_interpret_string to do the heavy lifting.
157 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
158 narrow_charset, wide_charset fields of options structure.
159 (cpp_destroy): Call _cpp_destroy_iconv.
160 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
161 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
162 (cpp_interpret_charconst): Moved to cppcharset.c.
163 * cpplib.c (dequote_string): Delete.
164 (interpret_string_notranslate): New.
165 (do_line, do_linemarker): Use interpret_string_notranslate.
167 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
169 * c-common.c (fname_string, combine_strings): Delete.
170 * c-common.h (fname_string, combine_strings): Delete prototypes.
171 * c-lex.c (ignore_escape_flag): Delete.
172 (cb_ident): Use cpp_interpret_string, not lex_string.
173 (get_nonpadding_token): New function.
174 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
175 Adjust calls to lex_string. Don't write *value twice.
176 (lex_string): Now handles string constant concatenation.
177 Most of the work handed off to cpp_interpret_string.
178 Call fix_string_type here.
179 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
180 FUNC_NAME, throughout.
181 (OBJC_STRING): New token type.
182 (primary:STRING): No need to call fix_string_type here.
183 (primary:objc_string): Make that OBJC_STRING.
184 (objc_string nonterminal): Delete.
185 (yylexname): Delete code to handle fake string constants.
186 (yylexstring): Delete entirely.
187 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
188 to handle CPP_ATSIGN.
190 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
191 * c-opts.c (missing_arg, c_common_handle_option): Handle
192 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
193 (c_common_init): Set cpp_opts->bytes_big_endian, not
194 cpp_opts->EBCDIC. Call cpp_init_iconv.
195 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
196 (TARGET_EBCDIC): Delete default definition.
198 * objc/objc-act.c (build_objc_string_object): No need to
199 handle string constant concatenation.
201 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
203 * doc/install.texi: Fix typos.
204 * doc/invoke.texi: Likewise.
205 * doc/tm.texi: Likewise.
207 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
209 * config/pa/fptr.c: Fix comment typos.
210 * config/pa/pa-64.h: Likewise.
211 * config/pa/pa.c: Likewise.
212 * config/pa/pa.h: Likewise.
213 * config/rs6000/603.md: Likewise.
214 * config/rs6000/7xx.md: Likewise.
215 * config/rs6000/darwin.h: Likewise.
216 * config/rs6000/freebsd.h: Likewise.
217 * config/rs6000/rs6000.c: Likewise.
218 * config/rs6000/rs6000.md: Likewise.
219 * config/rs6000/spe.h: Likewise.
221 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
223 * config/s390/2064.md: Change GNU CC to GCC.
224 * config/s390/2084.md: Likewise.
225 * config/s390/fixdfdi.h: Likewise.
226 * config/s390/linux.h: Likewise.
227 * config/s390/s390-modes.def: Likewise.
228 * config/s390/s390-protos.h: Likewise.
229 * config/s390/s390.c: Likewise.
230 * config/s390/s390.h: Likewise.
231 * config/s390/s390.md: Likewise.
232 * config/s390/s390x.h: Likewise.
234 2003-07-04 Jeff Law <law@redhat.com>
237 * expr.c (do_store_flag): Pass in the correct result type
238 when calling fold_single_bit_test.
239 * fold-const.c (fold_single_bit_test): Use result_type for the
240 result when folding a sign bit test.
242 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
244 * opts.c (common_handle_options): Negate sense of -falign- switches.
246 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
248 * Makefile.in: Replace PWD with PWD_COMMAND.
250 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
252 * cfgloopanal.c (count_strange_loop_iterations): New static function.
253 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
254 Handle strange loops.
256 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
258 * install.texi: Even the g77 manpage is derived from
261 2003-07-04 Zack Weinberg <zack@codesourcery.com>
264 * intl: Delete entire directory.
265 * aclocal.m4: Include ../config/gettext.m4. Delete
266 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
267 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
268 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
269 Remove intl/Makefile from all_outputs.
270 * configure, config.in: Regenerate.
271 * Makefile.in: Expunge all references to intl subdirectory.
272 Add -I../intl to INCLUDES.
273 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
275 2003-07-04 Roger Sayle <roger@eyesopen.com>
277 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
278 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
280 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
282 PR c++/5287, PR c++/7910, PR c++/11021
283 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
284 dllimport attribute if function is defined at declaration, but
285 report error instead. Likewise for dllimport'd variable
286 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
287 declared within functions, Report error if dllimport or dllexport
288 symbol is not global.
289 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
290 if defined after declaration or if inlined. Don't allow definition
291 of static data members of C++ classes. Don't dllimport virtual
293 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
294 (i386_pe_mark_dllimport): Remove unnecessary checks.
295 (i386_pe_encode_section_info): Warn if the dllimport attribute
296 and symbol prefix have been instantiated and then overridden.
298 * doc/extend.texi: Document dllimport and dllexport attributes.
300 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
302 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
304 * config/kaos.h (CPP_PREDEFINES): Delete.
305 (TARGET_OS_CPP_BUILTINS): New.
307 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
309 * c-aux-info.c: Include toplev.h after c-tree.h.
310 * c-common.c: Likewise.
311 (GCC_DIAG_STYLE): Undef.
312 * c-semantics.c (GCC_DIAG_STYLE): Define.
313 * c-tree.h (GCC_DIAG_STYLE): Likewise.
314 * diagnostic.h (inform): Move prototype to toplev.h.
315 * jump.c: Include diagnostic.h before toplev.h.
316 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
317 (warning, error, fatal_error, pedwarn, sorry, inform,
318 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
320 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
322 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
323 at all if edge is not specified.
324 (can_copy_bbs_p, copy_bbs): New.
325 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
326 * cfgloop.c (get_loop_body): Comment more precisely.
327 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
328 (scale_bbs_frequencies): Fix comment typo.
329 (can_duplicate_loop_p): Use can_copy_bbs_p.
330 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
332 2003-07-03 Devang Patel <dpatel@apple.com>
334 * c-opts.c (c_common_parse_file): Remove extra
335 debug_hooks->start_source_file call.
337 2003-07-03 Roger Sayle <roger@eyesopen.com>
339 * real.c (real_trunc, real_floor, real_ceil): New functions
340 to implement trunc, floor and ceil respectively.
341 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
342 * builtins.c (integer_valued_real_p): New function to test if
343 a floating point expression has an integer valued result.
344 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
345 foo(x) where foo is an integer rounding function. Similarly,
346 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
347 (double)(int)x when both foo and bar are integer rounding
348 functions and we don't need to honor errno.
349 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
350 New functions to fold trunc, floor and ceil.
351 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
352 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
353 to fold BUILT_IN_CEIL*.
354 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
355 the remaining integer rounding functions.
357 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
359 * config/sparc/sparc.c (function_arg_partial_nregs): Use
360 SPARC_INT_ARG_MAX to determine where to split unnamed
361 complex FP arguments.
363 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
365 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
366 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
367 (merge_blocks_move_predecessor_nojumps,
368 merge_blocks_move_successor_nojumps): Use merge_blocks.
369 (try_optimize_cfg): Use merge_blocks_move.
370 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
371 (merge_blocks_nomove): Rename to rtl_merge_blocks.
372 (cfg_layout_create_basic_block): New.
373 (rtl_can_merge_blocks): New.
374 (cfg_layout_split_block): Do not alloc aux by hand.
375 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
377 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
378 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
379 * cfgloopmanip.c (loop_split_edge_with): Likewise.
380 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
382 * basic-block.h (basic_block_def): Add field 'rbi'.
383 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
384 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
385 * cfg.c (entry_exit_blocks): Add new field.
386 * cfglayout.c: Include alloc-pool.h;
387 (cfg_layout_pool): New.
388 (record_effective_endpoints, fixup_reorder_chain,
389 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
391 (cfg_layout_initialize_rbi): New function.
392 (cfg_layout_initialize): Use it.
393 (cfg_layout_finalize): Clear rbi fields.
394 * cfglayout.h (RBI): Kill.
395 (cfg_layout_initialize_rbi): Declare.
396 * cfgloopmanip.c (copy_bbs): Use rbi.
397 (record_exit_edges): Likewise.
398 (duplicate_loop_to_header_edge): Likewise.
399 * cfgrtl.c (cfg_layout_create_basic_block): Use
400 cfg_layout_initialize_rbi.
401 (cfg_layout_split_block): Use rbi.
402 (cfg_layout_delete_block): Likewise.
403 * loop-init.c (loop_optimizer_finalize): Likewise.
404 * loop-unswitch.c (unswitch_loop): Likewise.
405 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
407 * cfgrtl.c: Update comments.
408 (try_redirect_by_replacing_jump): New argument.
409 (redirect_branch_edge): Break out from ...
410 (rtl_redirect_edge_and_branch): ... this one.
411 (update_cfg_after_block_merging): Break out from ...
412 (rtl_merge_blocks): ... this one.
413 (cfg_layout_split_edge): New.
414 (cfg_layout_merge_blocks): New.
415 (cfg_layout_can_merge_blocks_p): New.
416 (cfg_layout_redirect_edge_and_branch): Reorganize.
417 (cfg_layout_rtl_cfg_hooks): Fill in.
418 (cfg_layout_delete_block): Kill barriers.
419 * cfganal.c (can_fallthru): Deal with exit blocks
420 * cfglayout.c (cfg_layout_function_header): New function
421 (record_effective_endpoints): Record function header.
422 (fixup_reorder_chain): Fixup dead jumptables; place header
424 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
425 * bb-reorder.c (cfg_layout_initialize): Update call.
426 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
427 edges in cfglayout mode.
428 * cfglayout.c (cleanup_unconditional_jumps): Kill.
429 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
430 * cfglayout.h (cfg_layout_initialize): Update prototype.
431 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
432 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
433 * flow.c (propagate_block): Do not crash when basic block ends
434 by first insn in the chain.
435 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
437 * tracer.c (tracer): Update call of cfg_layout_initialize.
439 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
441 * Makefile.in: Use dependency variables in lieu of explicit
444 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
446 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
447 * tree.h: ...to here.
449 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
451 * config/s390/2064.md: Fix comment typos.
452 * config/s390/2084.md: Likewise.
453 * config/s390/s390.c: Likewise.
454 * config/s390/s390.md: Likewise.
455 * config/sh/sh.c: Likewise.
456 * config/sh/sh.h: Likewise.
457 * config/sh/sh.md: Likewise.
458 * config/sparc/sparc.c: Likewise.
459 * config/sparc/sparc.h: Likewise.
460 * config/sparc/sparc.md: Likewise.
461 * config/stormy16/stormy16.c: Likewise.
462 * config/stormy16/stormy16.h: Likewise.
463 * config/stormy16/stormy-abi: Fix a typo.
465 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
467 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
469 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
471 * config/mips/mips.h (save_argv): Delete.
473 2003-07-03 Roger Sayle <roger@eyesopen.com>
476 * fold-const.c (extract_muldiv_1): There's nothing that can be done
477 if the expression is a SAVE_EXPR.
479 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
481 * config/m32r/m32r.c: Fix comment typos.
482 * config/m68hc11/m68hc11.c: Likewise.
483 * config/m68hc11/m68hc11.h: Likewise.
484 * config/m68k/m68k.c: Likewise.
485 * config/mcore/mcore.c: Likewise.
486 * config/mcore/mcore.h: Likewise.
487 * config/mcore/mcore.md: Likewise.
488 * config/mips/mips.c: Likewise.
489 * config/mips/mips.h: Likewise.
490 * config/mips/mips.md: Likewise.
491 * config/mips/netbsd.h: Likewise.
492 * config/mn10300/mn10300.c: Likewise.
494 2003-07-03 Andreas Schwab <schwab@suse.de>
496 * dbxout.c (pending_bincls): Move decl down inside
497 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
499 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
501 * rtl.h (NOTE_DATA): Refer to whole union.
502 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
504 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
506 PR optimization/11381
507 * simplify-rtx.c (simplify_relational_operation): Check that
508 two equal operands have no side-effects before simplifying
511 2003-07-02 Jeff Law <law@redhat.com>
513 * expr.c (do_store_flag): Remove special case folding for
514 single bit tests. Instead call back into the commonized folder
516 * fold-const.c (fold_single_bit_test): New function, mostly
517 extracted from do_store_flag, with an additional case extracted
519 (fold): Call fold_single_bit_test appropriately.
520 * tree.h (fold_single_bit_test): Prototype.
522 2003-07-02 Zack Weinberg <zack@codesourcery.com>
524 * system.h: Include filenames.h.
525 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
526 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
527 define based on HAVE_DOS_BASED_FILE_SYSTEM.
528 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
529 * config/i386/xm-mingw32.h: Don't define
530 HAVE_DOS_BASED_FILE_SYSTEM,
531 DIR_SEPARATOR, or DIR_SEPARATOR_2.
532 * doc/hostconfig.texi: Update to match.
534 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
535 config/i386/cygwin.h:
536 Use IS_ABSOLUTE_PATH throughout.
537 * gcc.c (DIR_UP): Delete, unused.
538 * protoize.c (IS_SAME_PATH): Define in terms of
540 (is_abspath): Delete.
542 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
544 * config/i386/emmintrin.h: Fix comment typos.
545 * config/i386/i386.c: Likewise.
546 * config/i386/i386.h: Likewise.
547 * config/i386/sco5.h: Likewise.
548 * config/ia64/ia64.c: Likewise.
549 * config/ia64/itanium2.md: Likewise.
551 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
553 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
555 (emit_bincl_stab): Same.
556 (emit_pending_bincls): Same.
558 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
560 * config/h8300/h8300.c (compute_mov_length): Fix the length of
561 loading CONST0_RTX (SFmode).
562 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
563 'G' to CONST0_RTX (SFmode).
564 * config/h8300/h8300.md (movsf_h8300): Change the first
566 (movsf_h8300h): Likewise.
568 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
570 * c-common.h (c_common_init_options): New prototype.
571 * c-opts.c (deferred_size): Remove.
572 (defer_opt): Array is now pre-allocated.
573 (c_common_init_options): Pre-allocate deferred_opts. Make
575 (push_command_line_options): Free deferred_opts.
576 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
577 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
578 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
579 * langhooks.h (struct lang_hooks): New prototype for init_options.
580 * main.c (main): Cast argv.
581 * opts.c (handle_option, handle_options): Update prototypes.
582 (decode_options): save_argc, save_argv are not global. Constify.
583 * opts.h (decode_options): New prototype.
584 * toplev.c (general_init): New protoype.
585 (save_argv): Make static.
587 (print_switch_values, general_init): Constify.
588 (toplev_main): Save argv.
589 * toplev.h (toplev_main): Update prototype.
590 (save_argc, save_argv): Remove.
592 2003-07-02 David Edelsohn <edelsohn@gnu.org>
594 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
595 (emit_bincl_stab): Same.
596 (emit_pending_bincls): Same.
598 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
601 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
603 2003-07-02 Andreas Schwab <schwab@suse.de>
605 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
607 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
609 PR optimization/11210
610 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
611 about the behaviour with regard to bitfields.
612 * fold-const (decode_field_reference): Record outermost type in
613 case the expression is a NOP. Strip all NOPs. Set the signedness
614 to that of the outermost type (if any) when the bitsize is equal
615 to the size of the type.
617 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
619 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
620 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
621 (adddi3_internal_3, addsi3_internal_2): Likewise.
623 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
625 * config/mips/mips.c (machine_function): Add new fields:
626 ignore_hazard_length_p and all_noreorder_p.
627 (mips_flag_delayed_branch): New variable.
628 (override_options): Treat '/' as an operand punctuation character.
629 Set up mips_flag_delayed_branch.
630 (print_operand): Handle '/'.
631 (mips_output_function_prologue): Put the whole function in
632 .set noreorder and .set nomacro if all_noreorder_p is true.
633 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
634 (mips16_optimize_gp): Remove "first insn" parameter.
635 (mips16_lay_out_constants): New function, split out from mips_reorg.
636 (mips_avoid_hazard, mips_avoid_hazards): New functions.
637 (mips_reorg): For mips16 code, call mips16_lay_out_constant
638 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
639 do delayed-branch scheduling followed by hazard detection.
640 (mips_adjust_insn_length): Only account for hazards if
641 !ignore_hazard_length_p.
642 (mips_output_load_label): Add a nop to the o32 sequence if
643 the target suffers from load delays.
644 (mips_output_conditional_branch): Add %/ to the end of branches.
645 (mips_output_division): Fill the branch delay slot with %#.
646 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
647 instructions. End all other %* branches with %/.
648 (ffssi2, ffsdi2): Fix lengths.
649 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
650 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
651 (fix_truncsfsi2_macro): Likewise.
652 (mov_lwl): Set hazard to "none".
653 (ashldi3_internal): Fill the branch delay slot with %#.
654 (ashrdi3_internal, lshrdi3_internal): Likewise.
655 (exception_receiver): Explicitly set $28.
656 (hazard_nop): New pattern.
658 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
660 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
661 before calling tree_inlinable_function_p.
663 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
665 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
666 <internal/stdio_core.h> too.
667 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
668 <internal/wchar_core.h> too.
669 Substitute va_list uses in inline definition.
670 * fixinc/fixincl.x: Regenerate.
672 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
674 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
675 Undef before redefinition.
676 (LABEL_AFTER_LOC): Likewise.
677 (DEFAULT_SIGNED_CHAR): Likewise.
678 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
681 * config/mips/iris3.h: Remove, unused.
682 * config/mips/iris4.h: Likewise.
684 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
686 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
687 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
690 * config/mips/iris5.h: Move explicit includes ...
691 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
693 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
694 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
697 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
698 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
701 * config/mips/iris6.h: Fix IRIX spelling.
702 (MULTILIB_DEFAULTS): Undef before redefinition.
704 * config/mips/iris6.h: Move explicit includes ...
705 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
707 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
709 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
710 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
711 Use next_needed field instead of aux to maintain the queue.
712 * cgraph.h (cgraph_node): Add next_needed.
713 (cgraph_varpool_node): Add next_needed; remove aux.
714 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
716 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
718 * cgraphunit.c (cgraph_finalize_function): Set finalized.
719 (cgraph_finalize_function): Do not examine inlinablility.
720 (cgraph_finalize_compilation_unit): Do it here.
721 * cgraph.h (cgraph_local_info): Add finalized field.
723 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
725 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
726 (gt_pch_restore): Likewise.
728 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
730 * config/alpha/alpha.c: Fix comment typos.
731 * config/alpha/elf.h: Likewise.
732 * config/arm/arm.c: Likewise.
733 * config/arm/arm.h: Likewise.
734 * config/arm/arm.md: Likewise.
735 * config/arm/t-arm-coff: Likewise.
736 * config/arm/t-strongarm-pe: Likewise.
737 * config/arm/xscale-elf.h: Likewise.
738 * config/avr/avr.h: Likewise.
740 2003-07-01 Jeff Law <law@redhat.com>
742 * stmt.c (any_pending_cleanups): Remove another redundant test.
744 2003-07-01 David Edelsohn <edelsohn@gnu.org>
745 J"orn Rennecke <joern.rennecke@superh.com>
747 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
750 2003-07-01 Devang Patel <dpatel@apple.com>
752 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
754 (struct dbx_file): New members - bincl_status, pending_bincl_name and
756 (pending_bincls): New.
757 (dbxout_init): Initialize new dbx_file members.
758 (dbxout_start_source_file): Same.
759 (emit_bincl_stab): New function.
760 (emit_pending_bincls): Same.
761 (emit_pending_bincls_if_required): Same.
762 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
764 (dbxout_begin_block): Emit pending BINCL stabs.
765 (dbxout_end_block): Same.
766 (dbxout_function_decl): Same.
767 (dbxout_continue): Same.
769 (dbxout_class_name_qualifiers): Same.
770 (dbxout_symbol): Same.
771 (dbxout_symbol_location): Same.
772 (dbxout_parms): Same.
774 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
776 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
777 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
779 2003-07-01 Andreas Jaeger <aj@suse.de>
781 * fold-const.c: Convert prototypes to ISO C90.
782 * function.c: Likewise.
783 * function.h: Likewise.
785 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
787 * doc/contrib.texi: Fix typos.
788 * doc/invoke.texi: Likewise.
789 * doc/passes.texi: Likewise.
790 * doc/sourcebuild.texi: Likewise.
791 * doc/tm.texi: Likewise.
793 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
795 * basic-block.h: Fix comment typos.
796 * bb-reorder.c: Likewise.
797 * c-format.c: Likewise.
798 * cfgcleanup.c: Likewise.
799 * cfghooks.h: Likewise.
800 * cfgloop.c: Likewise.
801 * cfgloopmanip.c: Likewise.
802 * cfgrtl.c: Likewise.
803 * cgraph.h: Likewise.
804 * cgraphunit.c: Likewise.
805 * combine.c: Likewise.
806 * convert.c: Likewise.
807 * dbxout.c: Likewise.
810 * diagnostic.c: Likewise.
811 * dwarf2out.c: Likewise.
812 * et-forest.h: Likewise.
814 * fold-const.c: Likewise.
815 * function.h: Likewise.
816 * gcov-io.h: Likewise.
819 * genautomata.c: Likewise.
820 * ggc-common.c: Likewise.
821 * ggc-page.c: Likewise.
822 * loop-unroll.c: Likewise.
823 * loop-unswitch.c: Likewise.
825 * mips-tfile.c: Likewise.
826 * optabs.c: Likewise.
827 * ra-build.c: Likewise.
828 * ra-colorize.c: Likewise.
829 * ra-rewrite.c: Likewise.
831 * regmove.c: Likewise.
832 * reload.c: Likewise.
833 * rtlanal.c: Likewise.
834 * sched-ebb.c: Likewise.
835 * sched-int.h: Likewise.
836 * sched-vis.c: Likewise.
838 * ssa-ccp.c: Likewise.
840 * toplev.c: Likewise.
841 * tree-inline.c: Likewise.
842 * value-prof.c: Likewise.
843 * value-prof.h: Likewise.
845 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
847 * rtl.h (emit_line_note_after): Remove.
848 (emit_note_copy_after, emit_note_copy): New.
849 * emit-rtl.c (reorder_insns_with_line_notes): Replace
850 emit_line_note_after with emit_note_copy_after.
851 (emit_insn_after_with_line_notes): Likewise.
852 (emit_line_note_after): Kill.
853 (emit_note_copy_after): New.
854 (emit_note_copy): New.
855 * function.c (emit_return_into_block): Use emit_note_copy_after.
856 (thread_prologue_and_epilogue_insns): Likewise.
857 * integrate.c (expand_inline_function): Use emit_note_copy.
858 (copy_insn_list): Likewise.
859 * unroll.c (copy_loop_body): Likewise.
860 * cfglayout.c (duplicate_insn_chain): Likewise.
862 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
864 * c-tree.h (define_label): Replace filename and lineno arguments
866 * c-decl.c (poplevel): Adjust define_label call.
867 (pop_label_level): Likewise.
868 (define_label): Replace filename and lineno arguments with a
870 (store_parm_decls): Use DECL_SOURCE_LOCATION.
871 * c-parse.in (label): Adjust define_label call.
873 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
875 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
876 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
877 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
878 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
879 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
881 2003-07-01 Andreas Jaeger <aj@suse.de>
883 * final.c: Convert prototypes to ISO C90.
886 * gcov-io.c: Likewise.
887 * gcov-io.h: Likewise.
889 2003-06-30 Bruno Haible <bruno@clisp.org>
892 * libgcc2.c (__subvsi3): Remove simplification that would not work
893 when subtracting -0x80000000.
894 (__subvdi3): Remove simplification that would return a wrong result.
895 (__mulvsi3): Fix overflow check.
896 (__absvdi2): Fix simplification that would return a wrong result.
897 (__mulvdi3): Fix overflow check.
899 2003-06-30 Jeff Law <law@redhat.com>
901 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
902 was always passed in the value '1'. Simplify body appropriately.
903 * tree.h (any_pending_cleanups): Corresponding changes.
904 * calls.c: (expand_call): Corresponding changes.
906 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
908 * combine.c (distribute_notes): Don't bother REG_WAS_0.
909 * cse.c (cse_insn): Likewise.
910 * final.c (final_scan_insn): Likewise.
911 * jump.c (duplicate_loop_exit_test): Likewise.
912 * rtl.c (reg_note_name): Remove REG_WAS_0.
913 * rtl.h (REG_WAS_0): Remove.
914 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
915 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
916 (output_movhi): Likewise.
917 (output_movsisf): Likewise.
919 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
921 (m68hc11_gen_movqi): Likewise.
922 * config/vax/vax-protos.h: Remove the prototype for
924 * config/vax/vax.c (follows_p): Remove.
925 (reg_was_0_p): Likewise.
926 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
929 * doc/rtl.texi (REG_WAS_0): Remove.
931 2003-06-30 Mark Mitchell <mark@codesourcery.com>
933 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
935 2003-06-30 Bob Wilson <bob.wilson@acm.org>
937 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
938 top-level include directory.
939 * config/xtensa/lib2funcs.S: Likewise.
940 * config/xtensa/xtensa.h: Likewise.
941 * config/xtensa/xtensa-config.h: Remove.
942 * doc/install.texi: Update location of "xtensa-config.h" header.
944 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
946 * config/s390/s390.c (s390_extra_constraint): New function.
947 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
948 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
949 * config/s390/s390.c (q_constraint): Remove.
950 * config/s390/s390-protos.h (q_constraint): Likewise.
951 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
952 (EXTRA_ADDRESS_CONSTRAINT): Define.
954 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
955 (DISP_IN_RANGE, s390_short_displacement): New.
956 (legitimate_reload_operand_p): Support long displacements.
957 (s390_decompose_address): Likewise.
958 (legitimize_pic_address): Likewise.
959 (legitimize_address): Likewise.
960 (s390_fixup_clobbered_return_reg): Likewise.
961 (s390_emit_prologue, s390_emit_epilogue): Likewise.
962 (s390_output_mi_thunk): Likewise.
964 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
965 (attr "atype", attr "length"): Add defaults for new op_types.
966 (all insns): Change op_type attribute where appropriate.
968 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
969 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
970 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
971 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
972 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
973 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
974 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
975 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
976 "*movdf_64", "*movdf_31", "*movsf",
977 "*load_multiple_si", "*store_multiple_di",
978 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
979 "*la_64", "*la_31", "*la_31_and", "force_la_31",
980 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
981 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
982 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
983 "*addsi3_sign", "*addsi3_sub", "addsi3",
984 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
985 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
987 "*andsi3_cc", "*andsi3_cconly", "andsi3",
988 "*andqi3_ss", "*andqi3_ss_inv",
989 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
990 "*iorqi3_ss", "*iorqi3_ss_inv",
991 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
992 "*xorqi3_ss", "*xorqi3_ss_inv",
993 "*tls_load_31"): Add alternatives for long-displacement instructions.
995 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
996 "*load_multiple_di", "*store_multiple_di",
997 "*sethighqidi_64", "*zero_extendhisi2_31",
998 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
999 "adddf3", "*adddf3", "*adddf3_ibm",
1000 "addsf3", "*addsf3", "*addsf3_ibm",
1001 "subdf3", "*subdf3", "*subdf3_ibm",
1002 "subsf3", "*subsf3", "*subsf3_ibm",
1003 "mulsi_6432", "divmoddisi3",
1004 "muldf3", "*muldf3", "*muldf3_ibm",
1005 "mulsf3", "*mulsf3", "*mulsf3_ibm",
1006 "divdf3", "*divdf3", "*divdf3_ibm",
1007 "divsf3", "div*sf3", "*divsf3_ibm",
1008 "sqrtdf2", "sqrtsf2",
1009 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
1010 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
1011 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
1012 and address constraints for instructions that do not accept long
1015 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1016 Ulrich Weigand <uweigand@de.ibm.com>
1018 * config/s390/2084.md: New file.
1019 * config/s390/s390.md: Include it.
1020 * config/s390/s390.c (s390_adjust_priority): New function.
1021 (TARGET_SCHED_ADJUST_PRIORITY): Define.
1022 (s390_first_cycle_multipass_dfa_lookahead): New function.
1023 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1024 (s390_sched_reorder2): New function.
1025 (TARGET_SCHED_REORDER2): Define.
1026 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
1027 (s390_issue_rate): Likewise.
1029 Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
1031 * Makefile.in (GTFILES): Add cgraph.h.
1032 * cgraph.c (known_decls): Remove.
1033 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
1034 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
1035 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
1036 (cgraph_varpool_node): Likewise; add next pointer.
1037 (cgraph_varpool_nodes): New static variable.
1038 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
1039 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
1040 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
1041 * gengtype.c (open_base_files): Include cgraph.h
1043 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1045 * Changelog: Remove ">>>>>>>" from previous change.
1047 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1049 * config/cris/cris.c: Fix spelling for "testcase".
1050 * config/cris/cris.h: Likewise.
1051 * config/cris/cris.md: Likewise.
1052 * config/mmix/crti.asm: Likewise.
1053 * config/mmix/mmix.h: Likewise.
1054 * config/mmix/mmix.md: Likewise.
1056 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1058 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
1061 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
1063 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
1064 --with-mode configure options.
1065 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
1066 (DRIVER_SELF_SPECS): Define.
1067 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
1068 architecture to assembler.
1069 (LINK_SPEC): Merge 31-bit and 64-bit variants.
1070 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
1071 * config/s390/s390.c (override_options): New default rules for
1072 architecture mode and cpu architecture selection.
1073 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
1076 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
1077 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
1078 * config/s390/s390.c (override_options): Add "z990" to
1079 processor_alias_table.
1080 * doc/invoke.texi (-march): Document "z990" processor type.
1082 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
1083 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
1084 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
1085 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
1086 * config/s390/s390.c (override_options): Replace enum pta_flags by
1087 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
1089 * config/s390/s390.c (s390_cpu): Rename to ...
1090 (s390_tune): ... this.
1091 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
1092 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
1093 * config/s390/s390.md (attr "cpu"): Likewise.
1095 2003-06-30 Neil Booth <neil@daikokuya.co.uk>
1097 * c-common.c (enum c_language_kind, flag_objc): Remove.
1098 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
1099 c_add_case_label, finish_label_addr_expr, boolean_increment):
1100 Use c_dialect_ macros.
1101 * c-common.h (enum c_language_kind): Extend.
1102 (c_dialect_cxx, c_dialect_objc): New.
1103 (flag_objc): Remove.
1104 (c_common_init_options): Update prototype.
1105 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1107 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1109 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1110 * c-lang.c (c_init_options): Remove.
1111 (c_language): Define.
1112 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1113 * c-lex.c (lex_charconst): Use c_dialect_ macros.
1114 * c-opts.c (lang_flags): Make function-local.
1115 (c_common_init_options): Use c_dialect_ macros. Handle
1116 C++ diagnostic requirements.
1117 (c_common_handle_option, c_common_post_options): Use flag_cxx.
1118 * c-parse.in (init_reswords): Use c_dialect_objc ().
1119 * c-pch.c (get_ident): Use c_language.
1120 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1121 * c-typeck.c (comptypes, build_c_cast): Similarly.
1122 * objc/objc-lang.c (c_language): Define.
1123 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1124 (objc_init_options): Remove.
1126 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1128 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1129 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1131 2003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
1133 * doc/sourcebuild.texi: Don't reference gnats.html any more.
1135 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1137 * config/h8300/h8300.c (compute_mov_length): Fix length of
1140 2003-06-30 Nick Clifton <nickc@redhat.com>
1142 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1145 Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
1147 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1149 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1151 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1152 (altivec_in_gprs_p): New function.
1154 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
1156 (altivec_in_gprs_p): New prototype.
1158 * config/rs6000/altivec.md (*movv4si_internal): Change
1159 multi-assembler alternative to '#'. Add postreload splitter to
1161 (*movv4hi_internal): Likewise.
1162 (*movv4qi_internal): Likewise.
1163 (*movv4sf_internal): Likewise.
1165 2003-06-30 Jason Merrill <jason@redhat.com>
1167 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1168 * calls.c: Not here.
1170 2003-06-30 Ben Elliston <bje@wasabisystems.com>
1172 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1173 (bad_signed_byte_operand): Likewise.
1174 (arm_output_epilogue): Likewise.
1175 (arm_final_prescan_insn): Likewise.
1177 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1179 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1181 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1183 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1186 Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
1188 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1191 Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
1193 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1194 (init_ext_80387_constants): Likewise.
1195 (standard_80387_constant_rtx): Likewise.
1196 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1197 (atantf): Disable for !TARGET_128BIT_LONG_LONG
1198 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1199 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1200 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1201 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1204 (exp?f2): Use expsf2_tf when needed.
1208 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
1210 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1211 statement from tmake_file set.
1213 2003-06-29 James E Wilson <wilson@tuliptree.org>
1215 * reload.c (find_reloads): Change push_reloads to push_reload in
1217 * reload1.c (eliminate_regs): Likewise.
1218 (dump_needs): Delete prototype for deleted function.
1220 2003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1222 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1224 * c-format.c (enum format_type): Add gcc_diag_format_type,
1225 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1226 (gcc_diag_length_specs, gcc_cdiag_length_specs,
1227 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1228 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1229 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1230 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1231 (format_types_orig): Add new data.
1232 (find_char_info_specifier_index, init_dynamic_diag_info): New
1234 (handle_format_attribute): Update to handle new format attributes.
1236 2003-06-29 Aaron W. LaFramboise <awlaframboise@aol.com>
1238 * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
1240 2003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
1242 * doc/install.texi: Remove install documentation for obsoleted targets
1243 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1245 Update information about IA64 toolchain, AIX make requirements,
1246 and binutils for m68k-*-hpux and *-*-linuxaout targets.
1248 Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
1250 * regmove.c (regmove_optimize): Don't try to make src and dst match
1251 when they are in different modes.
1253 Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
1255 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
1256 busy work when builtin is not supported by the backend.
1258 2003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1260 * loop.c (count_one_set): Fix detection of registers set in more
1261 than one basic block.
1263 2003-06-29 Andreas Jaeger <aj@suse.de>
1265 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
1266 * system.h: Poison OBJ_FORMAT_ROSE.
1267 * doc/tm.texi (Macros for Initialization): Remove documentatin of
1269 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
1270 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
1272 2003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1274 * pa.c (update_total_code_bytes): New function.
1275 (last_address): Number of bytes output for a function and its
1277 (compute_frame_size): Use BITS_PER_UNIT.
1278 (pa_output_function_epilogue): Compute last_address. Use
1279 update_total_code_bytes.
1280 (output_lbranch): Handle long branch on portable runtime.
1281 (attr_length_millicode_call, attr_length_call,
1282 attr_length_indirect_call): Only use total_code_bytes for calls in
1284 (output_call): Only use an indirect call sequence when the target is
1286 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
1287 test to determine when an IA-relative branch can be used. Add various
1288 long branch sequences. Avoid using an indirect branch on all ports
1291 2003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
1293 * expr.c (clear_by_pieces): Fix prototype.
1295 2003-06-29 Andreas Jaeger <aj@suse.de>
1297 * cse.c: Convert prototypes to ISO C90.
1298 * cselib.c: Likewise.
1299 * cselib.h: Likewise.
1300 * dbxout.c: Likewise.
1301 * debug.c: Likewise.
1304 * dojump.c: Likewise.
1305 * doloop.c: Likewise.
1306 * dominance.c: Likewise.
1307 * dwarf2asm.c: Likewise.
1308 * dwarf2out.c: Likewise.
1309 * dwarf2out.h: Likewise.
1310 * dwarfout.c: Likewise.
1311 * except.c: Likewise.
1312 * except.h: Likewise.
1313 * emit-rtl.c: Likewise.
1314 * et-forest.c: Likewise.
1315 * et-forest.h: Likewise.
1316 * except.c: Likewise.
1317 * explow.c: Likewise.
1318 * expmed.c: Likewise.
1322 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1324 * alloc-pool.c: Fix comment formatting.
1325 * bitmap.c: Likewise.
1326 * bitmap.h: Likewise.
1327 * bt-load.c: Likewise.
1328 * builtins.c: Likewise.
1329 * caller-save.c: Likewise.
1330 * cfganal.c: Likewise.
1331 * cfgrtl.c: Likewise.
1332 * collect2.c: Likewise.
1335 * diagnostic.c: Likewise.
1336 * dwarf2out.c: Likewise.
1337 * dwarfout.c: Likewise.
1338 * expmed.c: Likewise.
1339 * final.c: Likewise.
1340 * flags.h: Likewise.
1341 * fold-const.c: Likewise.
1343 * gcov-io.h: Likewise.
1345 * genattrtab.c: Likewise.
1346 * genautomata.c: Likewise.
1347 * libgcov.c: Likewise.
1348 * mips-tfile.c: Likewise.
1349 * optabs.c: Likewise.
1350 * prefix.c: Likewise.
1351 * rtlanal.c: Likewise.
1353 * stor-layout.c: Likewise.
1354 * toplev.c: Likewise.
1355 * varasm.c: Likewise.
1356 * vmsdbgout.c: Likewise.
1358 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1360 * expr.c (emit_single_push_insn): If padding is needed
1361 downward, adjust the stack pointer first, and then store the
1362 data into the stack location using an offset.
1364 2003-06-29 Andreas Jaeger <aj@suse.de>
1366 * collect2.h: Convert prototypes to ISO C90.
1367 * collect2.c: Likewise.
1368 * conflict.c: Likewise.
1369 * coverage.c: Likewise.
1370 * convert.h: Likewise.
1371 * convert.c: Likewise.
1373 2003-06-29 Nathan Sidwell <nathan@codesourcery.com>
1375 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1376 filename to <internal>.
1377 * tree.c (make_node): Just copy the current location.
1379 2003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
1381 PR optimization/11210
1382 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1384 2003-06-29 Neil Booth <neil@daikokuya.co.uk>
1386 * toplev.c (flag_dummy): Remove.
1387 (f_options): Restore flag pointers.
1389 2003-06-29 David Edelsohn <edelsohn@gnu.org>
1391 * config/rs6000/rs6000.c (processor_target_table): Add 970.
1392 * config.gcc: Add 970.
1394 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1396 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1397 -1) with ggc_strdup.
1398 * stmt.c (expand_asm_operands): Likewise.
1399 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1401 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1403 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1406 2003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1408 * opts.c: Include insn-attr.h.
1409 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1411 2003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1413 * flow.c (propagate_one_insn): Use proper test for a register
1414 being part of the return value.
1416 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1418 * config/avr/avr.c: Fix a comment typo.
1420 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1422 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1423 with avr_simplify_comparison_p.
1424 * config/avr/avr.c: Likewise.
1426 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1428 * builtins.c: Follow spelling conventions.
1429 * cgraph.c: Likewise.
1430 * cpplex.c: Likewise.
1431 * config/arm/arm.c: Likewise.
1432 * config/arm/iwmmxt.md: Likewise.
1433 * config/c4x/c4x-modes.def: Likewise.
1434 * config/c4x/c4x.c: Likewise.
1435 * config/c4x/c4x.h: Likewise.
1436 * config/c4x/c4x.md: Likewise.
1437 * config/i386/i386-interix.h: Likewise.
1438 * config/mips/mips.h: Likewise.
1440 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1442 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1443 __mc68020__ on TARGET_68020.
1445 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1447 * config/h8300/h8300.c: Fix a comment typo.
1449 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1451 * c-parse.in (yylexstring): Use a location_t.
1453 * diagnostic.h (diagnostic_set_info): Replace file and lineno
1454 parameters with a location_t.
1455 * diagnostic.c (diagnostic_set_info): Replace file and lineno
1456 parameters with a location_t.
1457 (inform, warning, pedwarn, error, sorry, fatal_error,
1458 internal_error, warning_with_decl, pedwarn_with_decl,
1459 error_with_decl): Adjust.
1460 * c-error.c (pedwarn_c99): Adjust.
1461 * c-format.c (status_warning): Adjust.
1462 * rtl-error.c (file_and_line_for_asm): Rename to ...
1463 (location_for_asm): Return a location_t.
1464 (diagnostic_for_asm): Adjust.
1466 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1468 * cpptrad.c (skip_macro_block_comment): New.
1469 (copy_comment): Use it if appropriate.
1471 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1473 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1475 (store_killed_in_insn): Likewise.
1476 * print-rtl.c (print_rtx): Likewise.
1477 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1478 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1479 (m68hc11_reassign_regs): Likewise.
1480 (m68hc11_reorg): Likewise.
1482 2003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1484 * diagnostic.c (output_integer_with_precision): New macro.
1485 (output_format): Use it. Handle more format specifiers.
1486 (output_long_decimal): Remove.
1487 (output_unsigned_decimal): Likewise.
1488 (output_long_unsigned_decimal): Likewise.
1489 (output_octal): Likewise.
1490 (output_long_octal): Likewise.
1491 (output_hexadecimal): Likewise.
1492 (output_long_hexadecimal): Likewise.
1493 (output_long_long_decimal): Likewise.
1495 2003-06-28 Andreas Schwab <schwab@suse.de>
1497 * config/ia64/ia64.md: Follow recent emit_note API change.
1499 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1501 * c-parse.in (%union): Replace filename & lineno with location.
1502 (save_filename, save_lineno): Remove.
1503 (save_location): New.
1504 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1505 nested_function, notype_nested_function, if_prefix, lineno_stmt,
1506 lineno_label, label): Adjust.
1508 2003-06-28 Jakub Jelinek <jakub@redhat.com>
1510 * builtins.c (c_strlen): Add only_value argument.
1511 Handle COND_EXPR and COMPOUND_EXPR.
1512 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1513 Adjust c_strlen callers.
1514 (expand_builtin_strcpy, expand_builtin_strncpy,
1515 expand_builtin_strcmp, expand_builtin_strncmp,
1516 expand_builtin_fputs, expand_builtin_sprintf,
1517 fold_builtin): Adjust c_strlen callers.
1519 2003-06-28 Josef Zlomek <zlomekj@suse.cz>
1521 * bb-reorder.c (find_traces_1_round): Do not send basic block
1522 to next round when we are in the last round.
1524 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1526 * Makefile.in: Update.
1527 * opts.c: Include tm_p.h.
1528 (handle_options): Make static.
1529 (decode_options): Copied from toplev.c.
1530 * opts.h (decode_options): New.
1531 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1533 (general_init): ...here.
1534 (toplev_main): Use decode_options instead.
1535 * toplev.h (save_argc, save_argv): New.
1537 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1539 * explow.c (find_next_ref): Remove.
1540 * rtl.h: Remove the prototype for find_next_ref.
1542 2003-06-27 Roger Sayle <roger@eyesopen.com>
1544 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1545 call to match recent API change.
1547 2003-06-27 Zack Weinberg <zack@codesourcery.com>
1549 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1552 * c-format.c (check_format_string, get_constant)
1553 * cfgrtl.c (rtl_split_edge):
1554 Mark the definition static, matching the forward declaration.
1556 2003-06-27 Gunther Nikl <gni@gecko.de>
1558 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1561 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1562 syntax for MIT / MOTOROLA.
1565 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1566 * configure: Rebuilt.
1568 2003-06-27 Chris Demetriou <cgd@broadcom.com>
1570 * config/mips/mips.c (mips_build_va_list): Make padding in
1571 va_list structure explicit to avoid -Wpadded warnings.
1573 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1575 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1576 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
1577 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
1579 * config/s390/s390.md ("reload_outti", "reload_outdi",
1580 "reload_outdf"): New expanders.
1582 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1583 memory operands as source.
1584 ("movdi" + splitters): Likewise.
1585 ("movdf" + splitters): Likewise.
1586 * config/s390/s390.c (s390_split_ok_p): New function.
1587 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1589 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1591 * combine.c (force_to_mode): Replace the equality comparison
1592 of INTVALs with a pointer equality comparison.
1593 (simplify_comparison): Likewise.
1595 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1597 * jump.c (rtx_renumbered_equal_p): Replace an expression that
1598 is known to be 0 with 0.
1600 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1602 * gcse.c (expr_equiv_p): Replace expressions that are known to
1605 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1607 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1608 with a pointer equality comparison.
1610 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1612 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1613 are known to be not equivalent.
1615 2003-06-27 Richard Henderson <rth@redhat.com>
1617 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1618 in floating point registers. Validate that we don't receive complex
1619 values here. Use #elif.
1620 (return_in_memory, function_value): New.
1621 (alpha_va_arg): Handle complex values as two arguments.
1622 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1623 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1624 (SPLIT_COMPLEX_ARGS): New.
1625 * config/alpha/alpha-protos.h: Update.
1627 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1629 * ggc-page.c (inverse_table): Change type of mult to size_t.
1630 (compute_inverse): Compute inverse using size_t, not unsigned int.
1631 Compute inverse also for sizes larger than half a machine page.
1633 Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1635 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
1636 when called before cgraph_optimize.
1638 2003-06-27 Zack Weinberg <zack@codesourcery.com>
1640 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1641 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1642 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1644 Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
1646 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1649 2003-06-27 Hans-Peter Nilsson <hp@axis.com>
1651 * defaults.h (REGISTER_MOVE_COST): Define default here.
1652 * regclass.c: Don't define default REGISTER_MOVE_COST here.
1653 * reload.c, reload1.c: Ditto.
1655 2003-06-27 Richard Earnshaw <rearnsha@arm.com>
1657 * flags.h: Really install previous change.
1659 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1661 * rtl.h (emit_note): Remove FILE parameter.
1662 * emit-rtl.c (emit_line_note): Adjust emit_note call.
1663 (emit_note): Remove FILE parameter. Adjust.
1664 * builtins.c (expand_builtin_expect): Adjust emit_note call.
1665 * c-semantics.c (genrtl_scope_stmt): Likewise.
1666 (expand_stmt): Likewise.
1667 * cfglayout.c (reemit_insn_block_notes): Likewise.
1668 (duplicate_insn_chain): Likewise.
1669 * except.c (expand_eh_region_start, expand_eh_region_end,
1670 sjlj_emit_function_enter): Likewise.
1671 * explow.c (probe_stack_range): Likewise.
1672 * expr.c (emit_block_move_via_loop): Likewise.
1673 * function.c (init_function_start, expand_function_start,
1674 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1675 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1676 * reg-stack.c (compensate_edge): Likewise.
1677 * reload1.c (reload): Likewise.
1678 * rtlanal.c (hoist_insn_to_edge): Likewise.
1679 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1680 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1681 expand_exit_loop_top_cond, expand_value_return,
1682 expand_start_bindings_and_block, expand_end_bindings,
1683 expand_decl_cleanup, expand_start_case): Likewise.
1684 * unroll.c (copy_loop_body
1685 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1686 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1687 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1688 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1689 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1690 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1691 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1693 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1695 * c-tree.h (grokfield): Remove unused filename and line parameters.
1696 * c-decl.c (grokfield): Remove unused filename and line parameters.
1697 * c-parse.in (component_decl): Adjust field grokking rules, adjust
1699 (component_declarator): Likewise.
1700 (component_notype_declarator): Likewise.
1701 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1703 (build_protocol_template, build_method_prototype_list_template,
1704 build_method_prototype_template, build_category_template,
1705 build_selector_template, build_class_template,
1706 build_super_template, build_ivar_template,
1707 build_ivar_list_template, build_method_list_template,
1708 build_method_template, add_instance_variable): Likewise.
1710 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1712 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1713 OP2 are known to be not equivalent.
1715 2003-06-26 Devang Patel <dpatel@apple.com>
1717 * final.c (debug_flush_symbol_queue): New function.
1718 (debug_queue_symbol): New function.
1719 (debug_free_queue): New function.
1720 (debug_nesting): New variable.
1721 (symbol_queue): New variable.
1722 (symbol_queue_index): Same.
1723 (symbol_queue_size): Same.
1724 * debug.h (debug_flush_symbol_queue): New.
1725 (debug_queue_symbol): New.
1726 (debug_free_queue): New.
1727 (debug_nesting): New.
1728 (symbol_queue_index): New.
1729 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1730 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1731 (dbxout_init): Delay symbol output.
1732 (dbxout_global_decl): Save, set and reset TREE_USED bit around
1733 dbxout_symbol() call.
1734 (dbxout_begin_function): Same.
1735 (dbxout_finish): Free symbol queue.
1736 (dbxout_type): Put appropriate symbols in queue.
1737 (dbxout_symbol): Put info for symbol's type in queue.
1738 Decrement/Increment nesting counts flush symbol queue appropriately.
1739 (dbxout_parms): Increment dbxout nesting.
1740 (dbxout_reg_parms): Same.
1741 * flags.h (flag_debug_only_used_symbols): New.
1742 * toplev.c (flag_debug_only_used_symbols): New variable.
1743 (lang_independent_options): Add entries for new option
1744 -feliminate-unused-debug-symbols.
1745 * common.opt: Add entry for -feliminate-unused-debug-symbols.
1746 * opts.c (common_handle_options): Same.
1747 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1748 -feliminate-unused-debug-symbols.
1749 * doc/invoke.texi (Debugging Options): Document
1750 -feliminate-unused-debug-symbols.
1752 2003-06-26 Roger Sayle <roger@eyesopen.com>
1753 Jakub Jelinek <jakub@redhat.com>
1755 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1756 obtain the format string instead of using TREE_STRING_POINTER and
1757 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
1758 return value is unused or the length of src is a known constant.
1760 2003-06-26 Richard Henderson <rth@redhat.com>
1762 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1764 2003-06-26 Richard Henderson <rth@redhat.com>
1766 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1767 (ia64_split_call): Only load descriptor for GP register inputs.
1768 (ia64_expand_epilogue): Check current_frame_info.mask not
1769 current_function_is_leaf to restore ar.pfs.
1771 2003-06-26 Richard Henderson <rth@redhat.com>
1773 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1774 instead of replacing it.
1776 2003-06-26 Richard Henderson <rth@redhat.com>
1778 * flow.c (propagate_one_insn): Kill function return value
1779 registers across tail calls.
1781 * flow.c (propagate_one_insn): Preserve live-at-end registers
1784 2003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1786 * reload.c (can_reload_into): New function.
1787 (push_reload): Use it.
1789 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1791 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1792 references to the amount of a rotation.
1794 2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1796 * config/sh/coff.h: Don't include dbxcoff.h.
1797 * config.gcc: List it here.
1799 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1801 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1802 earlier. Don't check if SRC is a constant.
1804 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1806 * Makefile.in (OBJS): Add postreload.o.
1807 Remove cselib.h from the dependency list for reload1.o.
1808 Add a dependency list for postreload.o.
1809 * reload.h: Change the comment for the prototype of
1811 * reload1.c: Don't include cselib.h.
1812 (reload_cse_regs): Move to postreload.c
1813 (reload_cse_regs_1): Likewise.
1814 (reload_cse_noop_set_p): Likewise.
1815 (reload_cse_simplify_set): Likewise.
1816 (reload_cse_simplify_operands): Likewise.
1817 (RELOAD_COMBINE_MAX_USES): Likewise.
1818 (reload_combine_ruid): Likewise.
1819 (LABEL_LIVE): Likewise.
1820 (reload_combine): Likewise.
1821 (reload_combine_note_use): Likewise.
1822 (reload_combine_note_store): Likewise.
1823 (reg_set_luid): Likewise.
1824 (reg_offset): Likewise.
1825 (reg_base_reg): Likewise.
1826 (reg_mode): Likewise.
1827 (move2add_luid): Likewise.
1828 (move2add_last_label_luid): Likewise.
1829 (MODES_OK_FOR_MOVE2ADD): Likewise.
1830 (reload_cse_move2add): Likewise.
1831 (move2add_note_store): Likewise.
1832 (reload_cse_simplify): Likewise.
1833 * postreload.c: New.
1835 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1837 * config/avr/avr.c (final_prescan_insn): Remove support for
1839 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1840 (TARGET_RTL_DUMP): Likewise.
1841 (TARGET_SWITCHES): Remove -mrtl.
1843 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1845 * config/h8300/h8300-protos.h: Change emit_a_rotate to
1846 output_a_rotate. Add a prototype for compute_a_rotate_length.
1847 * config/h8300/h8300.c (emit_a_rotate): Change to
1849 (compute_a_rotate_length): New.
1850 (h8300_adjust_insn_length): Remove.
1851 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1852 * config/h8300/h8300.md (adjust_length): Remove.
1853 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1854 (*rotlhi3_1): Likewise.
1855 (*rotlsi3_1): Likewise.
1857 2003-06-26 Roger Sayle <roger@eyesopen.com>
1858 Richard Henderson <rth@redhat.com>
1860 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1861 list against re-evaluation. If expand_unop fails, call expand_call
1862 with the stabilized argument list rather than return NULL_RTX.
1863 (expand_builtin_mathfn2): Likewise, always stabilize the argument
1864 list, and call expand_call ourselves if expand_binop fails.
1866 2003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1868 PR optimization/11210
1869 * fold-const (decode_field_reference): Strip only NOPs that
1870 don't affect the sign.
1872 2003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1874 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1875 (pop_fpscr, fpu_switch): Likewise.
1877 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1879 * value-prof.c: New.
1880 * value-prof.h: New.
1881 * Makefile.in (value-prof.o): New.
1882 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1883 (profile.o): Add value-prof.h and tree.h dependency.
1884 * flags.h (flag_profile_values): Declare.
1885 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1887 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1888 GCOV_COUNTER_V_DELTA): New counter sections.
1889 (__gcov_merge_single, __gcov_merge_delta): Declare.
1890 * flow.c (mark_used_regs): Set subregs_of_mode only when the
1891 structure is initialized.
1892 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1893 * profile.c: Include value-prof.h and tree.h.
1894 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1895 gen_const_delta_profiler, instrument_values): New static functions.
1896 (get_exec_counts): Fix comment.
1897 (branch_prob): Invoke instrument_values.
1898 * toplev.c (flag_profile_values): New flag.
1899 * doc/invoke.texi (-fprofile-values): Document.
1901 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1903 * Makefile.in (cfgrtl.o): Add expr.h dependency.
1904 * cfgrtl.c: Include expr.h.
1905 (mark_killed_regs, safe_insert_insn_on_edge): New
1907 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1908 * basic-block.h (safe_insert_insn_on_edge): Declare.
1910 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
1912 * c-opts.c (missing_arg): Make non-static.
1913 (c_common_handle_option): Don't check for missing arguments.
1914 * opts.c (handle_option): Check for missing arguments.
1916 2003-06-26 David Edelsohn <edelsohn@gnu.org>
1918 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1920 2003-06-25 Loren James Rittle <ljrittle@acm.org>
1922 * configure.in (ld_vers): Portability [sed].
1923 * configure: Regenerate with autoconf213.
1925 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1927 * doc/extend.texi: Document new builtin functions for Intel
1928 Prescott New Intrunctions.
1930 * doc/invoke.texi: Document new command-line options, -mpni and
1931 -mno-pni, for Intel Prescott New Intrunctions.
1933 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1935 * config/i386/i386.c (override_options): Turn on MASK_SSE2
1936 for -mpni. Turn on MASK_SSE for -msse2.
1937 (bdesc_2arg): Add PNI builtins with 2 args.
1938 (bdesc_1arg): Add PNI builtins with 1 arg.
1939 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1940 (ix86_expand_builtin): Likewise.
1942 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1943 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1944 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1946 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1948 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1949 (ix86_builtins): Add PNI builtins.
1950 (config/i386/i386.md): Add PNI patterns.
1952 * config/i386/pmmintrin.h: New file.
1954 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1956 * config/h8300/h8300.md (call): Fix the insn lengths.
1957 (call_value): Likewise.
1959 Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
1961 * c-common.c (handle_used_attribute): Use mark_referenced.
1962 * varasm.c (mark_referenced): Break out from ...
1963 (assemble_name): ... here.
1964 * tree.h (mark_referenced): Declare.
1966 2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
1968 * gccbug.in: Add PCH to list of categories.
1970 2003-06-25 Martin Schaffner <schaffner@gmx.li>
1972 * cppfiles.c: Clarify comments.
1973 * cpphash.h: Likewise.
1974 * cpplib.h: Likewise.
1975 * cppmacro.c: Likewise.
1976 * mkdeps.h: Likewise.
1978 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
1980 * c-opts.c (complain_wrong_lang, write_langs): Remove.
1981 (c_common_handle_option): Complaints about wrong language are
1982 handled in opts.c now.
1983 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1984 (find_opt): Fix thinko.
1985 (handle_option): Update prototype. Complain about switches for
1986 a different front end.
1987 * opts.h (lang_names, handle_options): New.
1988 (handle_option): Remove.
1989 * opts.sh: Write out language names array.
1990 * toplev.c (parse_options_and_default_flags): Use handle_options.
1992 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1994 * config/i386/i386.c (MASK_SSE1): Removed.
1995 (MASK_SSE164): Removed.
1996 (MASK_SSE264): Removed.
1997 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1998 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1999 with MASK_SSE2 | MASK_64BIT.
2000 (bdesc_1arg): Likewise.
2001 (ix86_init_mmx_sse_builtins): Likewise.
2003 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
2004 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
2007 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2009 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
2010 (HOST_WIDE_INT_PRINT_DEC_SPACE,
2011 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
2012 HOST_WIDEST_INT_PRINT_DEC_SPACE,
2013 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
2014 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
2015 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
2016 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
2018 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
2019 * ra-debug.c (dump_static_insn_cost): Likewise.
2021 2003-06-26 Nick Clifton <nickc@redhat.com>
2023 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2024 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2025 Replace occurances of '???' with 'XXX' incase they are
2026 mistaken for trigraphs.
2027 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
2028 does not have a register for the first operand.
2030 2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2032 * config/sh/sh.c (sh_register_move_cost):
2033 Add case for moving between MAC_REGS.
2035 2003-06-25 Zack Weinberg <zack@codesourcery.com>
2038 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
2039 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
2040 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
2042 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
2045 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2047 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
2048 * bt-load.c: Include "tm_p.h".
2050 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
2052 * config/h8300/h8300.c (compute_mov_length): Adjust for the
2054 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
2055 an SImode constant whose upper and lower are the same.
2057 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
2059 * varasm.c (assemble_name): Mark needed variables even when
2060 global info is ready.
2062 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
2065 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
2066 -freorder-functions description.
2068 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
2070 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
2072 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
2074 * opts.c (common_handle_option): Add missing break;s.
2076 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2078 * config/h8300/h8300-protos.h: Add a prototype for
2080 * config/h8300/h8300.c (compute_mov_length): New.
2081 * config/h8300/h8300.md (*movqi_h8300): Use it.
2082 (*movqi_h8300hs): Likewise.
2083 (movstrictqi): Likewise.
2084 (*movhi_h8300): Likewise.
2085 (*movhi_h8300hs): Likewise.
2086 (movstricthi): Likewise.
2087 (*movsi_h8300): Likewise.
2088 (*movsf_h8300): Likewise.
2089 (*movsi_h8300hs): Likewise.
2090 (*movsf_h8300hs): Likewise.
2092 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2094 * jump.c (next_nondeleted_insn): Remove.
2095 * rtl.h: Remove the prototype for next_nondeleted_insn.
2097 2003-06-24 Roger Sayle <roger@eyesopen.com>
2099 PR optimization/11311
2100 * builtins.c (powi_cost): Fix typo. The number of multiplications
2101 required is the number to reduce the argument, result, plus the
2102 cost of calculating the residual, val [not n, the original value].
2104 2003-06-24 Roger Sayle <roger@eyesopen.com>
2106 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2108 2003-06-24 Richard Henderson <rth@redhat.com>
2109 (blame to: Loren James Rittle <ljrittle@acm.org>)
2111 * real.h (ieee_extended_intel_96_round_53_format): New.
2112 * real.c (ieee_extended_intel_96_round_53_format): New.
2113 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2114 for XFmode and TFmode.
2116 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2118 * config/h8300/h8300.md (4 anonymous patterns): Give internal
2120 (movsi_h8300): Change the name to *movsi_h8300.
2121 (movsi_h8300hs): Change the name to *movsi_h8300hs.
2122 (movsf_h8300): Change the name to *movsf_h8300.
2123 (movsf_h8300hs): Change the name to *movsf_h8300hs.
2125 2003-06-24 Jakub Jelinek <jakub@redhat.com>
2127 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2130 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
2132 Back out these patches:
2133 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
2134 * sh.h (OLD_ARG_MODE): New macro.
2135 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2136 (FUNCTION_ARG_1): Break out of:
2137 (FUNCTION_ARG). Use OLD_ARG_MODE.
2138 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2139 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2140 of the generated register.
2142 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2143 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2144 an even number of floating point regs are in use, use the same
2145 sequence of argument passing registers for SCmode as would be
2146 used for two SFmode values.
2147 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2148 swap real / imaginary parts in incoming SCmode values passed
2151 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2154 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
2156 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
2158 * Makefile.in (cgraph.o): Depend on output.h, not depend on
2160 * cgraph.c: Do not include tree-inline.h; include output.h
2161 (known_fns): Rename to ...
2162 (known_decls): ... this one; update all uses.
2163 (cgraph_varpool_hash): New static variable.
2164 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2166 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2167 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2168 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2170 * cgraph.h (cgraph_varpool_node): New structure.
2171 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2172 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2173 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2174 cgraph_varpool_asemble_pending_decls): Declare.
2175 * cgraphunit.c (record_call_1): Notice variable references.
2176 (cgraph_finalize_compilation_unit): Assemble pending variables.
2177 * toplev.c (wrapup_global_declarations): Use varpool.
2178 (compile_file): Assemble pending declarations.
2179 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2180 * varasm.c (assemble_name): Notice varpool references.
2182 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
2184 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2185 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2186 * varasm.c (assemble_variable): Call prepare_assemble_variable.
2188 2003-06-23 Roger Sayle <roger@eyesopen.com>
2190 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2191 calls for pow, powf, powl and their __builtin_ variants.
2192 (expand_builtin_pow): If the second argument is a constant
2193 integer and compiling with -ffast-math, use expand_powi to
2194 generate RTL if powi_cost is less than POWI_MAX_MULTS.
2195 (powi_cost): New function to return the number of multiplications
2196 necessary to evaluate an Nth power, for integer constant N.
2197 (expand_powi): New function to expand the RTL for evaluating
2198 the Nth power of a floating point value, for integer constant N.
2200 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2202 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2204 * cgraph.c (cgraph_nodes_queue): Declare.
2205 (eq_node): Take identifier as p2.
2206 (cgraph_node): Update htab_find_slot_with_hash call.
2207 (cgraph_node_for_identifier): New.
2208 (cgraph_mark_needed_node): Move here from cgraphunit.c.
2209 * cgraph.h (cgraph_nodes_queue): Declare.
2210 (cgraph_node_for_identifier): Declare.
2211 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2212 instead of in cgraph_finalize_compilation_unit; constructors and
2213 destructors are entry points.
2214 (cgraph_finalize_compilation_unit): Reorganize debug outout;
2215 examine nested functions after lowerng; call collect_functions hook.
2216 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2217 (cgraph_finalize_compilation_unit): Do not collect entry points.
2218 * varasm.c: Include cgraph.h
2219 (assemble_name): Mark referenced identifier as needed.
2221 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2223 2003-06-23 Jakub Jelinek <jakub@redhat.com>
2225 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2227 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2228 mode, as it requires pic register loaded.
2230 * varasm.c (resolve_unique_section): Remove prototype. No longer
2232 * tree.h (resolve_unique_section): New prototype.
2234 2003-06-23 Andreas Schwab <schwab@suse.de>
2237 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2238 recursing through first argument.
2240 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2242 * ChangeLog.1: Fix a typo.
2243 * cfgrtl.c: Fix comment typos.
2244 * dwarf2out.c: Likewise.
2245 * expmed.c: Likewise.
2246 * genrecog.c: Likewise.
2248 * rtlanal.c: Likewise.
2249 * ssa-dce.c: Likewise.
2250 * toplev.c: Likewise.
2252 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2254 * doc/extend.texi: Fix typos.
2255 * doc/md.texi: Likewise.
2256 * doc/tm.texi: Likewise.
2258 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2260 * basic-block.h: Fix comment formatting.
2261 * bt-load.c: Likewise.
2262 * builtins.c: Likewise.
2263 * c-common.c: Likewise.
2264 * c-common.h: Likewise.
2265 * c-format.c: Likewise.
2266 * coverage.c: Likewise.
2267 * cpplib.h: Likewise.
2268 * cpppch.c: Likewise.
2269 * dbxout.c: Likewise.
2270 * diagnostic.c: Likewise.
2271 * dwarf2out.c: Likewise.
2273 * fold-const.c: Likewise.
2274 * function.c: Likewise.
2276 * gcov-io.c: Likewise.
2277 * gcov-io.h: Likewise.
2279 * profile.c: Likewise.
2281 * sched-deps.c: Likewise.
2283 2003-06-23 Roger Sayle <roger@eyesopen.com>
2284 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2286 * doc/contrib.texi (Contributors): Add a note on testing and
2287 remove duplicates from testers list.
2289 2003-06-23 Nick Clifton <nickc@redhat.com>
2291 * read-rtl.c (read_braced_string): Check for EOF. If
2292 encountered issue an error message.
2294 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2296 * doc/invoke.texi: Document dump options, dT and dW.
2298 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2300 * genrecog.c (pred_table): Remove the entry for
2301 mode_independent_operand.
2302 * recog.c (next_insns_test_no_inequality): Remove.
2303 (mode_independent_operand): Likewise.
2304 * recog.h: Remove the prototype for mode_independent_operand.
2306 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2308 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2310 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2311 second alternative to set_znv.
2312 (*extzv_1_r_inv_h8300hs): Likewise.
2314 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
2316 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2317 set in_tree_gas_is_elf accordingly.
2318 (in_tree_ld): Find out whether LD emulation is ELF, set
2319 in_tree_ld_is_elf accordingly.
2320 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2321 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2322 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2323 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2324 grepping gas/Makefile.
2325 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2326 $in_tree_ld_is_elf instead of grepping ld/Makefile.
2327 * configure: Regenerate.
2329 2003-06-22 Roger Sayle <roger@eyesopen.com>
2331 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2332 up the stabilized argument list, not build_tree_list.
2333 (expand_builtin_strcpy): Construct new argument list manually
2334 instead of using chainon to modify the original argument list.
2335 (expand_builtin_stpcpy): Construct new argument list manually
2336 instead of using copy_list and chainon.
2337 (expand_builtin_sprintf): New function. Optimize calls to
2338 sprintf when the format is "%s" or doesn't contain a '%'.
2339 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2340 expand_builtin_sprintf.
2342 2003-06-22 Andreas Schwab <schwab@suse.de>
2344 * function.c (set_insn_locators): Mark as unused.
2346 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2348 * common.opt: Add -finline-limit.
2349 * opts.c (common_handle_options): Handle it.
2350 * opts.sh: Temporary kludge for -finline-limit.
2351 * toplev.c (decode_f_option, independent_decode_option): Die.
2352 (parse_options_and_default_flags): No independent_decode_option.
2354 2003-06-22 Andreas Jaeger <aj@suse.de>
2356 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2358 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2360 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2362 2003-06-22 Andreas Schwab <schwab@suse.de>
2364 * doc/invoke.texi: Remove leading `-' from options in index.
2366 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2368 * bt-load.c: Follow spelling conventions.
2370 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2372 * expr.c (emit_move_insn_1): Fix a comment typo.
2374 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2376 * doc/invoke.texi: Alphabetize dump options.
2378 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2380 * doc/invoke.texi: Remove a duplicate -dk.
2382 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2384 * doc/invoke.texi: Update dump file names.
2386 2003-06-22 Zack Weinberg <zack@codesourcery.com>
2388 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2389 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2391 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2393 * doc/rtl.texi: Fix the @findex for pre_modify.
2395 2003-06-22 Andreas Jaeger <aj@suse.de>
2397 * caller-save.c: Convert to ISO C90.
2398 * calls.c: Likewise.
2400 * cfganal.c: Likewise.
2401 * cfgbuild.c: Likewise.
2402 * cfgcleanup.c: Likewise.
2403 * cfghooks.c: Likewise.
2404 * cfglayout.c: Likewise.
2405 * cfglayout.h: Likewise.
2406 * cfgloop.c: Likewise.
2407 * cfgloop.h: Likewise.
2408 * cfgloopanal.c: Likewise.
2409 * cfgloopmainip.c: Likewise.
2410 * cfgrtl.c: Likewise.
2412 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2414 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2417 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2419 * arm.md (all call_value patterns): Remove register constraints on
2422 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2424 * common.opt: More -f switches.
2425 * opts.c (common_handle_options): Handle them.
2426 * toplev.c (time_report): Make extern.
2427 (f_options): USe flag_dummy.
2428 (decode_f_option): No need to use f_options now.
2429 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2430 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2432 2003-06-22 Andreas Jaeger <aj@suse.de>
2434 * c-lex.c: Convert to ISO C90.
2435 * c-objc-common.c: Likewise.
2436 * c-opts.c: Likewise.
2437 * c-pch.c: Likewise.
2438 * c-ppoutput.c: Likewise.
2439 * c-pragma.h: Likewise.
2440 * c-pretty-print.c: Likewise.
2441 * c-pretty-print.h: Likewise.
2442 * c-semantics.c: Likewise.
2443 * c-tree.h: Likewise.
2444 * c-typeck.c: Likewise.
2446 * c-lang.c: Convert to ISO C90.
2448 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2450 * opts.c (find_opt): Fix to always guarantee a find of a
2451 switch with joined parameter.
2452 * opts.h (struct cl_option): New member back_chain.
2453 * opts.sh: Update to calculate and add back_chain member.
2455 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2457 * diagnostic.h (output_host_wide_integer): Declare.
2458 * diagnostic.c (output_long_long_decicaml): New function.
2459 (output_host_wide_integer): Likewise.
2460 (output_format): Use them. Handle "%ll" and "%w".
2462 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2464 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2466 2003-06-21 Zack Weinberg <zack@codesourcery.com>
2468 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2469 * configure.in: Don't use gcc_AC_C_CHARSET.
2470 * configure, config.in: Regenerate.
2471 * config/i370/i370.c, config/i370/i370.h: Use
2472 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2473 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
2475 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
2477 * Makefile.in: Update.
2478 * common.opt: New switches.
2479 * opts.c: Include diagnostic.h.
2480 (common_handle_option): Handle new switches.
2481 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2482 flag_if_conversion2, flag_delete_null_pointer_checks,
2483 flag_rerun_cse_after_loop): Make extern.
2485 (f_options): Update to use flag_dummy for moved options.
2486 (decode_f_option): Some switches moved to opts.c.
2487 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2488 flag_if_conversion2, flag_delete_null_pointer_checks,
2489 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2490 flag_tracer, flag_thread_jumps, flag_unroll_loops,
2491 flag_unroll_all_loops, flag_unswitch_loops): New.
2493 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
2495 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2497 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
2499 * config/h8300/h8300-protos.h: Add a prototype for
2500 same_cmp_preceding_p.
2501 * config/h8300/h8300.c (same_cmp_preceding): New.
2502 * config/h8300/h8300.md: Extend peephole2's that transform
2503 compare:SI into shorter sequences so that they can deal with
2506 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2508 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2510 Update Andreas Jaeger's entry.
2512 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2515 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
2517 * mkconfig.sh: Add multiple inclusion guards to generated headers.
2519 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
2521 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2522 * common.opt: Add remaining -W options and -g.
2523 * diagnostic.c (warnings_are_errors): Remove.
2524 * flags.h: Make most warning flags boolean.
2525 * opts.c (common_handle_option): Handle remaining -W options, and -g.
2526 Move many warning flags from toplev.c, making them boolean.
2527 * toplev.c: Remove many warning flags.
2528 (decode_W_option): Remove.
2529 (decode_g_option): Make extern. Error on unknown switch.
2530 (lang_independent_W_options): Use warn_dummy.
2531 (independent_decode_option): Just handle -f switches now.
2532 * toplev.h (decode_g_option): New.
2534 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
2537 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2540 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
2542 * opts.sh: Tweak awk script for portability.
2544 2003-06-20 Mark Mitchell <mark@codesourcery.com>
2547 * tree-inline.c (expand_call_inline): Do not warn about failing to
2548 inline functions declared in system headers.
2549 * doc/invoke.texi (-Winline): Expand on documentation.
2551 2003-06-20 Richard Henderson <rth@redhat.com>
2553 * config/alpha/alpha.c (alpha_file_start): Disable
2554 file_start_file_directive for ELF and not MDEBUG.
2556 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
2558 * sh.h (ROUND_TYPE_ALIGN): Remove.
2560 2003-06-20 Richard Henderson <rth@redhat.com>
2562 * hooks.c (hook_int_void_no_regs): Rename from
2563 hook_reg_class_void_no_regs; change return type.
2565 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2566 * target.h (branch_target_register_class): Change return type to int.
2568 * config/sh/sh.c (sh_target_reg_class): Change return type.
2569 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2571 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
2573 * c-format.c: Change _Bool to bool reverting part of the last
2576 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2578 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2579 strip name encoding.
2581 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2583 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2584 * configure: Regenerate.
2585 Fixes PR driver/9362.
2587 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2589 * config/alpha/alpha.c (alpha_file_start): Fix typo.
2591 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2593 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2594 to ASM_OUTPUT_SOURCE_LINE.
2596 2003-06-20 Daniel Egger <degger@fhm.edu>
2597 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2599 * doc/install.texi (Building): Correct and improve statement
2600 about parallel builds.
2602 2003-06-20 Andreas Jaeger <aj@suse.de>
2604 * c-common.c: Change _Bool to bool reverting part of the last
2607 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
2609 * tree.h (expand_function_end): Remove all parameters.
2610 * function.c (expand_function_end): Remove all parameters.
2611 Use input_location. Never expand_end_bindings.
2612 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2613 * coverage.c (create_coverage): Likewise.
2615 2003-06-20 Nick Clifton <nickc@redhat.com>
2617 * doc/extend.texi (ARM Built-in Functions): New node. Document
2618 ARM builtin functions for iWMMXt support.
2620 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
2622 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2623 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2624 (--with-as): Add @anchor.
2625 (--with-gnu-ld): Fix typo.
2626 (--with-ld): Add @uref to --with-as.
2628 2003-06-19 Zack Weinberg <zack@codesourcery.com>
2630 * doc/tm.texi: Uniformly use @defmac for macros, rather than
2631 @table items. Minor formatting and editorial corrections.
2633 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
2635 * line-map.c, line-map.h: Convert to ISO prototypes.
2637 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2639 * gcse.c (store_killed_in_insn): Fix.
2641 2003-06-19 Zack Weinberg <zack@codesourcery.com>
2643 * target.h (asm_out.file_start, file_start_app_off,
2644 file_start_file_directive): New hooks.
2645 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2646 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2647 New hook-definition macros.
2648 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2649 * varasm.c (default_file_start): New.
2650 * output.h: Prototype it.
2651 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2652 * system.h: Poison ASM_FILE_START.
2654 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2655 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2656 (unicosmk_asm_file_start): Rename unicosmk_file_start,
2657 make static, take no arguments.
2658 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2659 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2660 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2661 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
2663 * config/arc/arc.c (arc_asm_file_start): Rename
2664 arc_file_start, take no arguments, make static.
2665 (TARGET_ASM_FILE_START): Set it.
2666 * config/arm/arm.c (aof_file_start): New static function.
2667 (TARGET_ASM_FILE_START): Set it, when appropriate.
2668 * config/arm/coff.h, config/arm/elf.h:
2669 Set TARGET_ASM_FILE_START_APP_OFF to true.
2670 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2671 take no arguments, make static.
2672 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2674 * config/c4x/c4x.c (c4x_file_start): New static function.
2675 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2677 * config/cris/cris.c (cris_file_start): New static function.
2678 (TARGET_ASM_FILE_START): Set it.
2679 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2680 dsp16xx_file_start, make static.
2681 (luxworks_dsp16xx_file_start): Delete.
2682 (TARGET_ASM_FILE_START): Set it.
2683 * config/h8300/h8300.c (asm_file_start): Rename
2684 h8300_file_start, make static, take no arguments.
2685 (TARGET_ASM_FILE_START): Set it.
2686 * config/i370/i370.c (i370_file_start): New static function.
2687 (TARGET_ASM_FILE_START): Set it.
2688 * config/i386/i386.c (x86_file_start): New static function.
2689 (TARGET_ASM_FILE_START): Set it.
2690 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2691 X86_FILE_START_FLTUSED): New macros, default to false.
2692 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2693 * config/i386/sysv4.h, config/i386/sco5.h: Override
2694 X86_FILE_START_VERSION_DIRECTIVE to true.
2695 * config/ia64/ia64.c (ia64_file_start): New static function.
2696 (TARGET_ASM_FILE_START): Set it.
2697 (emit_safe_across_calls): Take no arguments.
2698 * config/ia64/ia64.md: Update to match.
2699 * config/m32r/m32r.c (m32r_asm_file_start): Rename
2700 m32r_file_start, make static, take no arguments.
2701 (TARGET_ASM_FILE_START): Set it.
2702 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2703 m68hc11_file_start, make static, take no arguments.
2704 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2705 (print_options): Delete.
2706 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2707 (TARGET_ASM_FILE_START_APP_OFF): Set.
2708 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2709 m68k_hp320_file_start.
2710 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2711 Make static, take no arguments.
2712 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2713 * config/mmix/mmix.c (mmix_asm_file_start): Rename
2714 mmix_file_start, make static, take no arguments.
2715 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2716 * config/mn10300/mn10300.c (asm_file_start): Rename
2717 mn10300_file_start, make static, take no arguments.
2718 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2719 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2720 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2721 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2722 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2723 pa_hpux64_hpas_file_start): New static functions.
2724 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2725 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2726 pa_linux_file_start.
2727 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2728 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2730 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2731 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2732 (rs6000_file_start): Make static, take no arguments. Reset
2733 default_cpu under certain conditions.
2734 (rs6000_xcoff_file_start): New function.
2735 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2736 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2737 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2738 * config/sh/sh.c (output_file_start): Rename
2739 sh_file_start, make static, take no arguments. Merge in old
2740 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2741 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2742 * config/sh/sh.c (TARGET_ELF): Define to 0.
2743 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2744 * config/v850/v850.c (asm_file_start): Delete.
2745 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2746 * config/vax/vax.c (vax_file_start): New static function.
2747 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2749 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2750 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2751 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2752 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2753 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2754 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2756 * config/darwin.h, config/elfos.h, config/alpha/elf.h
2757 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2758 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2759 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2760 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2761 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2762 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2763 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2764 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2765 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2766 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2767 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2768 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2769 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2770 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2771 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2772 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2773 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2775 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2776 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2777 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2778 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2779 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2780 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2781 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2783 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2784 Remove reference to ASM_FILE_START in comment.
2785 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2786 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2787 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2789 2003-06-19 Graeme Peterson <gp@qnx.com>
2791 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2792 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2793 sysroot_hdrs_suffix_spec): New.
2794 (static_specs): Initialize new variables.
2795 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2796 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2799 2003-06-19 Andreas Jaeger <aj@suse.de>
2801 * c-aux-info.c: Convert to ISO C90.
2802 * c-pragma.c: Likewise.
2803 * c-common.c: Likewise.
2804 * c-common.h: Likewise.
2805 * c-convert.c: Likewise.
2806 * c-cppbuiltin.c: Likewise.
2807 * c-dump.c: Likewise.
2808 * c-decl.c: Likewise
2809 * c-format.c: Likewise.
2810 * c-incpath.c: Likewise.
2811 * c-incpath.h: Likewise.
2813 2003-06-19 Roger Sayle <roger@eyesopen.com>
2815 * builtins.c (expand_errno_check): Assume that flag_errno_math
2816 and HONOR_NANS have been tested before calling here. Only try
2817 to set errno ourselves if the decl can't throw an exception.
2818 (expand_builtin_mathfn): Move the code to stabilize the arg
2819 after the main switch, so that that its only done when needed.
2820 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2821 Don't modify the original expr when stabilizing the argument.
2822 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2823 the args after the main switch, and don't modify the orginal exp.
2825 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
2827 * expr.c (const_vector_from_tree): Initialize remaining elements
2830 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
2832 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2833 Change "fix" to "float".
2835 2003-06-19 Andreas Jaeger <aj@suse.de>
2837 * c-tree.h: Remove declaration of poplevel.
2839 * tree.h: Remove declaration of approx_sqrt.
2841 * c-lex.c: Remove redundant declaration of asm_out_file.
2843 * flags.h: Remove declaration of warn_unknown_pragma and
2844 main_input_filename.
2846 * rtl.h: Remove functions from fold-const.c since they're already
2849 * regs.h: Remove redundant declaration of reg_names.
2851 * bt-load.c (migrate_btr_defs): Correct printf arguments.
2853 * protoize.c: Fix breakage from last patch.
2855 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
2857 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2860 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2862 * config/sparc/sparc.c: Update copyright year.
2864 2003-06-19 David Edelsohn <edelsohn@gnu.org>
2866 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2869 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
2872 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2874 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
2876 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2877 to the end of the file. Remove unnecessary prototypes.
2879 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
2881 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2882 calls to insn_default_latency and result_ready_cost. Initialize
2885 2003-06-18 Richard Henderson <rth@redhat.com>
2887 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2888 (_Unwind_FindEnclosingFunction): Implement.
2890 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
2892 * toplev.c (rest_of_handle_sched): Hide the entire function if
2893 INSN_SCHEDULING is not defined.
2894 (rest_of_compilation): Call rest_of_handle_sched() only when
2895 INSN_SCHEDULING is defined.
2897 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
2898 J"orn Rennecke <joern.rennecke@superh.com>
2900 * bt-load.c: New file.
2901 * Makefile.in (OBJS): Include bt-load.o
2902 (bt-load.o): Add dependencies.
2903 * flags.h (flag_branch_target_load_optimize): Declare.
2904 (flag_branch_target_load_optimize2): Likewise.
2905 * hooks.c (hook_reg_class_void_no_regs): New function.
2906 (hook_bool_bool_false): Likewise.
2907 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2908 * rtl.h (branch_target_load_optimize): Declare.
2909 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2910 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2911 (TARGET_INITIALIZER): Include these.
2912 * target.h (struct gcc_target): Add branch_target_register_class
2913 and branch_target_register_callee_saved members.
2914 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2915 (dump_file) Add "tars" entry.
2916 (flag_branch_target_load_optimize): New variable.
2917 (flag_branch_target_load_optimize2): Likewise.
2918 (lang_independent_options): Add entries for new options.
2919 (rest_of_compilation): Call branch_target_load_optimize.
2920 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2921 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2922 * doc/invoke.texi: Document -fbranch-target-load-optimize and
2923 -fbranch-target-load-optimize2.
2924 * rtl.h (epilogue_completed): Declare.
2925 * recog.c (epilogue_completed): New variable.
2926 * toplev.c (rest_of_compilation): Set it.
2927 * flow.c (mark_regs_live_at_end): Use it.
2928 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2929 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2930 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2931 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2933 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2934 (sh_target_reg_class): New function.
2935 (sh_optimize_target_register_callee_saved): Likwise.
2936 (shmedia_target_regs_stack_space): Likewise.
2937 (shmedia_reserve_space_for_target_registers_p): Likewise.
2938 (shmedia_target_regs_stack_adjust): Likewise.
2939 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2940 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2941 (calc_live_regs): If flag_branch_target_load_optimize2 and
2942 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2943 for target registers, make sure that we save all target registers.
2944 (sh_expand_prologue, sh_expand_epilogue): Take target register
2945 optimizations into account. Collapse stack adjustments if that
2947 (initial_elimination_offset): Reserve space for target registers
2949 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2950 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2952 2003-06-18 Nick Clifton <nickc@redhat.com>
2954 * config.gcc: Add an extra_header for ARM targets.
2955 Support configuring with --with-cpu=iwmmxt.
2956 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
2957 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
2958 names. Fix formatting.
2959 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
2961 * config/arm/arm-protos.h (arm_emit_vector_const): New
2963 (arm_output_load_gr): New prototype.
2964 * config/arm/arm.c (extra_reg_names1): Delete.
2965 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
2966 * arch_is_iwmmxt): Define.
2967 (all_cores, all_architecture): Add entry for iwmmxt.
2968 (arm_override_options): Add support for iwmmxt.
2969 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2970 arm_print_value, arm_rtx_costs_1, output_move_double,
2971 arm_compute_save_reg_mask, arm_output_epilogue,
2972 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2973 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2975 (arm_init_cumulative_args): Count iwmmxt registers.
2976 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2978 (struct minipool_node): Add fix_size field.
2979 (add_minipool_forward_ref): Add support for 8-byte aligning of
2981 (add_minipool_backward_ref, add_minipool_offsets,
2982 dump_minipool, push_minipool_fix): Likewise.
2983 (struct builtin_description): New struct.
2984 (builtin_description): New array of iwmmxt builtin functions.
2985 (arm_init_iwmmxt_builtins): New function.
2986 (arm_init_builtins): New function.
2987 (safe_vector_operand): New function.
2988 (arm_expand_binop_builtin): New function.
2989 (arm_expand_unop_builtin): New function.
2990 (arm_expand_builtin): New function.
2991 (arm_emit_vector_const): New function.
2992 (arm_output_load_gr): New function.
2993 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
2994 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2995 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2996 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
2997 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2998 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2999 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3000 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3001 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
3002 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
3003 registers unless the iwmmxt target is selected.
3004 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
3005 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
3006 IS_IWMMXT_GR_REGNUM): Define.
3007 (FIRST_PSEUDO_REGISTER): Bump to 63.
3008 (struct machine_function): Add sibcall_blocked field.
3009 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
3011 (enum arm_builtins): New enum list.
3012 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
3013 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
3014 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
3015 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
3016 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
3017 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
3018 (movv2si, movv4hi, movv8qi): New expands for vector moves.
3020 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
3022 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
3023 * config/arm/mmintrin.h: New ARM specific header file.
3024 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
3026 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
3028 * toplev.c (Remaining -d letters summary): Update.
3030 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3032 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
3034 (function_arg): Handle CALL_LIBCALL flag.
3035 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
3037 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
3038 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3039 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
3040 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
3042 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
3044 * Makefile.in: Update.
3045 * common.opt: New options.
3046 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
3048 (common_handle_option): Handle new options.
3049 * toplev.c (set_target_switch): Export.
3050 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
3051 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
3052 (independent_decode_option): More options handled in opts.c now.
3054 * toplev.h (set_target_switch): New.
3056 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
3059 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
3061 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
3062 from static strings in dump_files.
3064 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3066 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
3067 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
3070 2003-06-17 Jason Merrill <jason@redhat.com>
3073 * tree-inline.c (expand_call_inline): Don't warn about failing to
3074 inline a function which was made inline by -finline-functions.
3076 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3078 * config/h8300/h8300-protos.h: Update to ISO C.
3079 * config/h8300/h8300.c: Likewise.
3080 * config/h8300/h8300.h: Likewise.
3081 * config/h8300/h8300.md: Likewise.
3083 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3085 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
3086 * configure: Regenerate.
3087 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
3089 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3091 * install.texi (Testing): Add information on how to run Java
3092 runtime tests separately.
3094 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3096 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
3098 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
3099 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3101 2003-06-17 Christopher Faylor <cgf@redhat.com>
3103 * doc/install.texi: Add msvc rebuild caveat.
3105 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3107 * config/sh/coff.h: Replace Hitachi with Renesas.
3108 * config/sh/elf.h: Likewise.
3109 * config/sh/embed-elf.h: Likewise.
3110 * config/sh/lib1funcs.asm: Likewise.
3111 * config/sh/sh-protos.h: Likewise.
3112 * config/sh/sh.c: Likewise.
3113 * config/sh/sh.h: Likewise.
3114 * config/sh/sh.md: Likewise.
3116 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3118 * ChangeLog.3: Fix comment typos.
3119 * ChangeLog.6: Likewise.
3120 * config/d30v/d30v.c: Likewise.
3121 * config/h8300/h8300.md: Likewise.
3122 * config/m32r/m32r.md: Likewise.
3123 * config/mips/mips.c: Likewise.
3124 * config/mips/mips.md: Likewise.
3125 * config/ns32k/NOTES: Likewise.
3127 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3128 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3130 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3131 to run Java runtime tests separately.
3133 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3135 * config/h8300/h8300-protos.h: Update a comment.
3137 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3139 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3140 are aligned like integral modes.
3141 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3143 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3144 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3145 * sh.md (*pt): Remove.
3147 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3149 * sh.md (return_media_rte): New pattern.
3150 (return_media): Use it.
3152 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3154 * doc/contrib.texi: Replace Hitachi with Renesas.
3155 * doc/install.texi: Likewise.
3156 * doc/invoke.texi: Likewise.
3158 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3160 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3163 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3165 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3167 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3168 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3170 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3171 -msdata=eabi usages.
3173 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3175 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3177 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3178 * fixinc/gnu-regex.c: Don't define `volatile'.
3179 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3180 * ggc-simple.c: Likewise.
3181 * system.h: Don't define `volatile'.
3183 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3184 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3186 * config.in, configure: Regenerated.
3188 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3190 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3191 Handle POINTERS_EXTEND_UNSIGNED.
3193 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3195 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3196 !TARGET_IRIX6]: Define as NULL.
3198 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3200 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3202 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3204 * dbxout.c (dbxout_source_line_counter): New global variable.
3205 Mark it with GTY(()).
3206 (dbxout_source_line): Increment dbxout_source_line_counter
3207 and pass it to ASM_OUTPUT_SOURCE_LINE.
3208 * sdbout.c (sdbout_source_line_counter): New global variable.
3209 Mark it with GTY(()).
3210 (unnamed_struct_number): Mark it with GTY(()).
3211 (sdbout_source_line): Increment sdbout_source_line_counter
3212 and pass it to ASM_OUTPUT_SOURCE_LINE.
3213 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3214 (xcoffout_source_line): Pass 0 as third argument to
3215 ASM_OUTPUT_SOURCE_LINE.
3216 (xcoffout_begin_prologue): Likewise.
3217 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3218 Use it instead of 'sym_lineno' but without incrementing it.
3219 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3220 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3221 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3222 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3223 argument to ASM_OUTPUT_SOURCE_LINE.
3224 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3225 * config/arm/aout.h: Remove useless comment.
3226 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3227 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3228 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3229 Use it instead of 'sym_lineno' but without incrementing it.
3230 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3231 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3232 parameter. Use it instead of 'sym_lineno' but without incrementing it.
3233 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3234 argument to ASM_OUTPUT_SOURCE_LINE.
3235 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3236 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3237 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3238 Use it instead of 'sym_lineno' but without incrementing it.
3239 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3240 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3241 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3242 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3243 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3245 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
3247 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
3248 (expand_block_move, output_block_move): Remove.
3249 * config/mips/mips.h (enum block_move_type): Remove.
3250 * config/mips/mips.c (block_move_call, output_block_move): Remove.
3251 (mips_block_move_straight, mips_adjust_block_mem): New function.
3252 (mips_block_move_loop): Renamed and reworked from block_move_loop.
3253 (mips_expand_block_move): Likewise expand_block_move. Return false
3254 to fall back on the target-independent code.
3255 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
3256 (movstrsi_internal*): Remove.
3258 2003-06-16 Zack Weinberg <zack@codesourcery.com>
3260 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
3261 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
3262 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
3263 ISO C: new-style function declarations, no need for PARAMS,
3264 no special punctuation on indirect function calls, use string
3265 constant concatenation where convenient.
3267 2003-06-17 Andreas Jaeger <aj@suse.de>
3269 * rtl.h: Remove declarations from coverage.h.
3270 * toplev.c: Include coverage.h.
3271 * Makefile.in (toplev.o): Depend on coverage.h.
3273 * toplev.h: Remove extra declaration of print_time.
3275 * gengtype.c (close_output_files): Remove duplicated declaration.
3277 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3279 * config/sparc/sysv4.h: Remove target-independent comment;
3280 replace "GNU CC" with "GCC".
3281 * config/vxworks.h: Replace "GNU compiler" with "GCC".
3282 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3283 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3284 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
3285 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
3286 config/sparc/rtemself.h, config/sparc/sol2-64.h,
3287 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3288 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
3289 config/sparc/sol2.h, config/sparc/sp64-aout.h,
3290 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3291 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3292 "GNU compiler", "GNU CC" with "GCC".
3293 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3294 config/sparc/sparc-modes.def, config/sparc/sparc.c,
3295 config/sparc/sparc.md, config/sparc/sparclet.md,
3296 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3297 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3298 "GNU C Compiler" with "GCC".
3299 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3301 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
3303 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3306 * testsuite/gcc.c-torture/execute/simd-4.c: New.
3308 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3310 * config/ip2k/ip2k.h: Remove target-independent comments.
3312 * config.gcc: Explicitly mention elfos.h in ip2k entry.
3313 * config/ip2k/ip2k.h: Don't #include it here.
3315 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3317 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3318 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3319 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3320 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3321 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3322 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3323 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3324 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3327 * gengtype.c: Don't use UNION_INIT_ZERO.
3328 * system.h (UNION_INIT_ZERO): Delete.
3330 2003-06-16 Richard Henderson <rth@redhat.com>
3332 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3333 GET_MODE_UNIT_SIZE when simplifying constant vectors.
3335 2003-06-16 Andreas Jaeger <aj@suse.de>
3337 * timevar.c (get_run_time): Remove function provided also by
3339 * timevar.h: Remove get_run_time declaration.
3341 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3343 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3346 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3348 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3349 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3350 use macros from "symcat.h", instead rely on ISO C.
3352 * system.h: Don't include "symcat.h".
3353 * configure.in (AC_C_STRINGIZE): Delete.
3354 * config.in, configure: Regenerate.
3356 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3358 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3360 * tree.h (STMT_CHECK): New macro.
3361 Also upper-case argument names on all checking macros and
3362 fix some whitespace problems; assume CODE argument does not
3365 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3367 * scan.h: Convert to ISO C.
3368 * system.h: Likewise.
3370 * c-format.c (dynamic_format_types): New pointer for dynamic data.
3371 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3372 New functions split out of...
3373 (handle_format_attribute): ...here.
3375 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3377 * sh.h (REG_CLASS_FROM_LETTER): Change to:
3378 (REG_CLASS_FROM_CONSTRAINT).
3379 (CONST_OK_FOR_I): Rename to:
3380 (CONST_OK_FOR_I08). Changed all users.
3381 (CONST_OK_FOR_J): Rename to:
3382 (CONST_OK_FOR_I16). Changed all users.
3383 (CONST_OK_FOR_K): Rename to:
3384 (CONST_OK_FOR_P27). Changed all users.
3385 (CONST_OK_FOR_L): Rename to:
3386 (CONST_OK_FOR_K08). Changed all users.
3387 (CONST_OK_FOR_O): Rename to:
3388 (CONST_OK_FOR_I06). Changed all users.
3389 (CONST_OK_FOR_P): Rename to:
3390 (CONST_OK_FOR_I10). Changed all users.
3391 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3392 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3393 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3394 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3395 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3396 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3397 (CONST_OK_FOR_LETTER_P): Replace with
3398 (CONST_OK_FOR_CONSTRAINT_P).
3399 (EXTRA_CONSTRAINT_S): Rename to:
3400 (EXTRA_CONSTRAINT_C16). Changed all users.
3401 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3402 (EXTRA_CONSTRAINT_T): Rename to:
3403 (EXTRA_CONSTRAINT_Csy). Changed all users.
3404 (EXTRA_CONSTRAINT_Z): Remove.
3405 (EXTRA_CONSTRAINT): Replace with:
3406 (EXTRA_CONSTRAINT_STR).
3407 (EXTRA_CONSTRAINT_U): Rename to:
3408 (EXTRA_CONSTRAINT_Z). Changed all users.
3409 * sh.c (and_operand): Use CONST_OK_FOR_J16.
3410 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3411 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3412 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3413 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3414 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3415 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3416 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3417 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3418 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3419 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3420 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3421 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3422 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3423 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3424 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3425 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3426 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3427 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3428 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3429 (sssubv4hi3): Likewise.
3430 (movsf_i): Change I[08]/r to G/r.
3431 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3433 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3435 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
3437 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3439 2003-06-16 Andreas Jaeger <aj@suse.de>
3441 * basic-block.h: Remove duplicate prototype of
3442 note_prediction_to_br_prob.
3444 * tree.h: Remove duplicate prototype of strip_float_extensions.
3446 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3448 * config/c4x/c4x.c: Don't include "c-tree.h".
3449 * config/pa/pa.c: Likewise.
3450 * langhooks.c: Likewise.
3451 * tree.h (poplevel): Declare.
3453 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3455 * config/h8300/h8300.c (const_costs): Move this to ...
3456 (h8300_rtx_costs): ... here.
3458 2003-06-16 Roger Sayle <roger@eyesopen.com>
3460 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3461 (tan_optab, atan_optab): Define corresponding macros.
3462 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3463 * genopinit.c (optabs): Implement tan_optab and atan_optab
3464 using tan?f2 and atan?f2 patterns.
3465 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3466 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3467 Change the default value of errno_set to false.
3468 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3469 using expand_builtin_mathfn.
3471 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3472 expander patterns implemented using existing atan2?f3 patterns.
3474 2003-06-16 Roger Sayle <roger@eyesopen.com>
3476 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3477 both operands of the addition equal, reuse the expanded RTL.
3478 (expand_expr <MULT_EXPR>): Likewise for multiplication.
3480 2003-06-16 Roger Sayle <roger@eyesopen.com>
3481 Jeff Law <law@redhat.com>
3483 * fold-const.c (operand_equal_p): Consider two calls to "const"
3484 functions with identical non-volatile arguments to be equal.
3485 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3486 built-in function to be equal to the "foo" form.
3488 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3490 * config/rs6000/sysv4le.h: Remove target-independent comment.
3491 Replace "GNU compiler" with "GCC" in comment.
3493 2003-06-16 Andreas Jaeger <aj@suse.de>
3495 * tracer.c: Remove duplicate declaration.
3497 * toplev.c: Remove extra declaration of decode_d_option.
3499 * ssa.c: Remove duplicate declaration.
3501 * sreal.c: Remove extra declaration of dump_sreal.
3503 * reload1.c: Remove duplicate declarations.
3505 * integrate.c: Remove extra declaration of
3506 set_decl_abstract_flags.
3508 * flow.c: Remove extra declaration of dump_flow_info.
3510 * alias.c: Remove extra declaration of get_addr.
3512 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3514 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3515 config/vxworks.h: GNU CC -> GCC.
3517 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3518 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3519 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3520 ssa.h, tree.def: Replace overly specific references to "GNU C"
3521 and "GNU C Compiler" with references to "GCC".
3523 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3525 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3526 memory reference. Fix test that checks if operand 1 is using r0.
3527 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3529 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3532 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
3534 * function.h (struct emit_status): Remove x_last_linenum,
3535 x_last_filename. Add x_last_location.
3536 * rtl.h: #include "input.h".
3538 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3540 * emit-rtl.c (last_linenum, last_filename): Remove.
3541 (last_location): New.
3542 (emit_line_note_after): LINE must always be >= 0.
3543 (emit_line_note): Likewise. Check not duplicate here...
3544 (emit_note): ... rather than here.
3545 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3546 * integrate.c (expand_inline_function): Use emit_line_note for
3548 (copy_insn_list): Likewise.
3549 * unroll.c (copy_loop_body): Likewise.
3550 * Makefile.in (RTL_H): Add input.h.
3552 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
3554 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3556 2003-06-16 Richard Henderson <rth@redhat.com>
3558 * config/alpha/alpha-protos.h, config/alpha/elf.h,
3559 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3560 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3561 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
3562 Remove unneeded static function decls.
3564 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
3566 * c-opts.c (c_common_handle_option): s/on/value/.
3567 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3568 directly rather than converting the argument.
3569 * c.opt: Update docs. Use UInteger where appropriate.
3570 * common.opt: Use UInteger where appropriate.
3571 * opts.c (integral_argument): New.
3572 (handle_argument): Handle integral arguments, and optional
3574 (common_handle_option): Update.
3575 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3576 * opts.sh: Handle JoinedOrMissing and UInteger flags.
3578 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
3580 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3581 unnecessary extern declaration.
3583 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3585 * config/gofast.h, config/interix.h, config/interix3.h,
3586 config/libgloss.h, config/linux-aout.h, config/linux.h,
3587 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3588 * config/kaos.h: "GNU compiler" -> GCC.
3589 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3591 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3592 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3595 * config/svr3.h: Remove #if 0 code, misleading comments.
3598 2003-06-15 Zack Weinberg <zack@codesourcery.com>
3600 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3601 main_input_filename to avoid conflict with input_filename macro.
3603 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3605 * config/mips/mips.h (asm_file_name, g_switch_set,
3606 g_switch_value): Remove.
3607 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3608 unnecessary extern declarations.
3610 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3612 * config/frv/frv.h: Remove declaration of g_switch_value.
3613 * config/m32r/m32r.h: Remove declaration of g_switch_value.
3614 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3616 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3618 * opts.sh: Quote '+' in regex.
3620 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
3622 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3623 * config/rs6000/rs6000.c: Include cfglayout.h.
3624 * config/alpha/alpha.c: Likewise.
3625 * config/ia64/ia64.c: Likewise.
3626 * config/sparc/sparc.c: Likewise.
3627 * config/sh/sh.c: Likewise.
3629 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3631 * opts.sh: Quote '+' in regex.
3633 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3635 * c-opts.c (lang_flags): Update for new spelling of flags.
3636 (write_langs): Similarly.
3637 * c.opt: Specify languages.
3638 * opts.h: Remove languages.
3639 * opts.sh: Recognise front-end defined languages.
3640 * doc/sourcebuild.texi: Update.
3642 2003-06-15 Andreas Jaeger <aj@suse.de>
3644 * alloc-pool.c: Convert to ISO C90 prototypes.
3645 * alloc-pool.h: Likewise.
3646 * alias.c: Likewise.
3647 * attribs.c: Likewise.
3648 * bb-reorder.c: Likewise.
3649 * bitmap.h: Likewise.
3650 * bitmap.c: Likewise.
3651 * builtins.c: Likewise.
3653 * tree.h: Convert prototypes of attribs.c to ISO C90.
3654 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3655 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3656 * expr.h: Convert prototypes of builtins.c to ISO C90.
3658 2003-06-15 Roger Sayle <roger@eyesopen.com>
3660 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3661 implement exp, expf and expl built-ins as inline x87 intrinsics.
3662 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3663 represent x87's fscale, frndint and f2xm1 insns respectively.
3664 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3665 to encode x87's "fscale" instruction followed by a pop.
3666 (*frndintxf2): New insn pattern for "frndint".
3667 (*f2xm1xf2): New insn pattern for "f2xm1".
3669 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3670 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3673 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3675 * gencheck.c (main): Avoid generating duplicate macros.
3677 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3678 knowing names of language subdirectories.
3680 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3682 * c-pch.c (asm_file_name): Remove.
3683 * common.opt: Add more switches.
3684 * flags.h (g_switch_set): Boolify.
3685 * opts.c (g_switch_value, g_switch_set, exit_after_options,
3686 version_flag): Move from toplev.c.
3687 (common_handle_option): Handle more switches from toplev.c.
3688 * toplev.c (display_help, display_target_options, decode_d_option,
3689 print_version): Make non-static, remove prototypes.
3690 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3691 (version_flag, g_switch_value, g_switch_set, exit_after_options):
3693 (independent_decode_option): Move some handlers to opts.c.
3694 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3695 exit_after_options, version_flag, display_help, display_target_options,
3696 print_version, decode_d_option): New.
3698 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3700 * config/alpha/alpha.md: Follow spelling conventions.
3701 * config/arm/arm.c: Likewise.
3702 * config/arm/arm.h: Likewise.
3703 * config/arm/arm.md: Likewise.
3704 * config/arm/crtn.asm: Likewise.
3705 * config/m32r/m32r.c: Likewise.
3706 * config/m32r/m32r.md: Likewise.
3707 * config/rs6000/rs6000.c: Likewise.
3709 2003-06-15 Richard Henderson <rth@redhat.com>
3711 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3712 insn_locators_initialize.
3713 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3714 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3715 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3716 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3718 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3720 * builtins.c (expand_builtin_expect_jump): Remove redundant
3721 tests that are also in any_condjump_p().
3723 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3725 * libgcc2.c: Delete sysV68 L_trampoline section.
3726 * config/m68k/mot3300-crt0.S: Delete file.
3727 * config/m68k/mot3300Mcrt0.S: Likewise.
3729 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3731 * config/aoutos.h: Remove.
3732 * config.gcc: Remove reference to aoutos.h.
3733 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3735 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
3737 * doc/install.texi: Follow spelling conventions.
3738 * doc/tm.texi: Likewise.
3739 * config/fp-bit.c: Likewise.
3740 * config/arm/arm.c: Likewise.
3741 * config/frv/frv.c: Likewise.
3742 * config/ns32k/NOTES: Likewise.
3743 * config/ns32k/STATUS: Likewise.
3745 2003-06-14 Roger Sayle <roger@eyesopen.com>
3746 Zack Weinberg <zack@codesourcery.com>
3748 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3749 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3750 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3752 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3753 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3754 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3755 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3756 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3757 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3758 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3759 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3760 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3761 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3762 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3763 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3764 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3765 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3766 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3767 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3768 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3769 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3770 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3771 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3773 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
3775 * opts.sh (POSIXLY_CORRECT): Unset it.
3777 * tree.h (init_function_start): Remove filename and line paramters.
3778 * function.c (init_function_start): Remove filename and line
3779 parameters. Use DECL_SOURCE_LOCATION.
3780 * c-decl.c (store_parm_decls): Adjust init_function_start call.
3781 (c_expand_body_1): Likewise.
3782 * coverage.c (create_coverage): Likewise.
3783 * objc/objc-act.c (build_tmp_function_decl): Set line number to
3785 (hack_method_prototype): Adjust init_function_start call.
3787 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3790 * arm/linux-elf.h (PROFILE_HOOK): Define.
3792 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3795 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3797 2003-06-14 Roger Sayle <roger@eyesopen.com>
3799 * opts.sh: Work around a mysterious feature in cygwin's gawk
3800 where specifying the input files explicitly has a different
3801 behavior to piping them via stdin.
3803 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
3805 * doc/sourcebuild.texi: Update.
3807 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3810 * arm.c (output_move_double): Pass SImode to adjust_address.
3812 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
3814 * Makefile.in: Update to use common.opt and lang_opt_files.
3815 (c-options.c, c-options.h): Remove.
3816 (options.c, options.h): Add.
3817 * c-opts.c: Include options.h not c-options.h.
3818 * common.opt: New file.
3819 * configure, configure.in: Add lang_opt_files.
3820 * opts.c: Include flags.h and diagnostic.h.
3821 (common_handle_option): New.
3822 (handle_option): Update to recognize common options and all
3823 language-dependent options.
3824 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3825 (struct cl_option): Make flags of type int.
3826 * opts.h: Flag option with front ends to which it applies.
3827 Handle duplicate options.
3828 * toplev.c (filename): Remove.
3829 (independent_decode_option): Don't handle filenames and -quiet.
3830 (process_options, do_compile): Update.
3832 2003-06-14 Nick Clifton <nickc@redhat.com>
3834 * doc/install.texi (Specific): Add description of different
3835 ARM supported file format targets.
3837 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
3839 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3842 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
3844 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3845 * unwind-pe.h (size_of_encoded_value): Do not define if
3846 NO_SIZE_OF_ENCODED_VALUE is defined.
3848 2003-06-13 Roger Sayle <roger@eyesopen.com>
3850 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3851 expanding a complex constant into a CONCAT target.
3853 2003-06-13 Zack Weinberg <zack@codesourcery.com>
3855 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3856 (ASM_FILE_START_1): Delete.
3857 * config/i386/att.h, config/i386/sco5.h,
3859 (ASM_FILE_START_1): Delete.
3861 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
3863 * config/i386/bsd.h: Remove ASM_FILE_START.
3864 * config/i386/djgpp.h: Likewise.
3865 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
3867 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3868 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3870 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
3873 * haifa-sched.c (max_lookahead_tries,
3874 cached_first_cycle_multipass_dfa_lookahead,
3875 cached_issue_rate): New variables.
3876 (max_issue): Check the number of tries.
3877 (choose_ready): Calculate max_lookahead_tries.
3878 (sched_init): Check cached_issue_rate.
3880 2003-06-13 Richard Henderson <rth@redhat.com>
3882 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3883 * cfgrtl.c (purge_dead_edges): Expect it too.
3885 2003-06-13 Jim Wilson <wilson@tuliptree.org>
3886 Eric Botcazou <ebotcazou@libertysurf.fr>
3889 * combine.c (make_extraction): Use gen_lowpart_for_combine
3890 when extracting from a REG and not in the destination of a SET.
3892 2003-06-13 Doug Evans <dje@sebabeach.org>
3894 * tsystem.h (abort): Declare in inhibit_libc case to remove build
3895 warnings for addvsi3, et.al.
3897 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
3899 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
3901 * simplify-rtx.c (simplify_subreg): Same.
3903 * emit-rtl.c (gen_lowpart_common): Same.
3905 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3907 * builtins.c: Fix comment typos.
3908 * fold-const.c: Likewise.
3910 2003-06-13 Doug Evans <dje@sebabeach.org>
3911 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3913 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3914 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3915 (m32r_va_arg): Use it.
3916 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3917 (RETURN_IN_MEMORY): Ditto.
3919 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3921 * c-typeck.c: Remove #if 0 clauses.
3924 * config/alpha/openbsd.h, config/i386/openbsd.h,
3925 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3926 residual reference to EGCS.
3928 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3930 * arm.c (output_call_mem): If the address references the link-register
3931 use an instruction sequence that avoids early-clobbering IP.
3932 (eliminate_lr2ip): Delete.
3934 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3936 * c-format.c (format_types_orig): Disallow '*' width/precision in
3937 asm_fprintf format checks.
3939 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3941 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
3942 non-integral types from integer register save area slots.
3944 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3946 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3948 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
3950 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3952 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
3954 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3955 to file_end_indicate_exec_stack.
3957 2003-06-12 Richard Henderson <rth@redhat.com>
3960 * config/i386/i386.md (sse_movaps): Use an expander to force
3961 one operand to be a register.
3962 (sse_movups): Likewise.
3964 2003-06-13 Doug Evans <dje@sebabeach.org>
3966 Remove some build warnings.
3967 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
3968 (__do_global_ctors,__do_global_dtors): Ditto.
3970 2003-06-12 Richard Henderson <rth@redhat.com>
3973 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3975 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3977 * config/m32r/m32r.md: Fix a comment typo.
3979 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3980 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3983 * config/sparc/sparc.c (function_arg_record_value_parms): Add
3985 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3986 integer slots for an integer field.
3987 (function_arg_record_value_3): Shift vector index.
3988 (function_arg_record_value_2): Likewise.
3989 (function_arg_record_value): Initialize 'stack' to 0.
3990 Set 'stack' to 1 if we run out of integer slots for an integer field.
3991 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3993 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3995 PR optimization/10955
3996 * unroll.c (unroll_loop): Fix off-by-one bug.
3998 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4000 * config/rs6000/rs6000.c (function_arg): Remove typo.
4002 2003-06-12 Richard Henderson <rth@redhat.com>
4004 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
4007 2003-06-12 Richard Henderson <rth@redhat.com>
4010 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
4011 for extracting sub-words.
4013 2003-06-12 Richard Henderson <rth@redhat.com>
4016 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
4017 (zero_extendqihi2, zero_extendqisi2): Likewise.
4019 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4021 * config/rs6000/rs6000.c (function_arg): Always split vectors for
4022 e500 if it's a stdarg function.
4023 (function_arg_advance): Advance 2 registers for vectors in a
4025 (init_cumulative_args): Initialize stdarg.
4026 (rs6000_spe_function_arg): New.
4028 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
4030 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4032 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4034 2003-06-12 Roger Sayle <roger@eyesopen.com>
4037 * fold-const.c (tree_expr_nonnegative_p): Handle addition
4038 and multiplication of zero extensions, floating point division,
4039 and integer<->fp, fp<->fp and zero extension conversions.
4040 The built-in ceil and floor functions preserve signedness.
4042 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4044 * ChangeLog: Follow spelling conventions.
4045 * ChangeLog.2: Likewise.
4046 * c-decl.c: Likewise.
4047 * cfgloop.h: Likewise.
4048 * cgraph.c: Likewise.
4049 * coverage.c: Likewise.
4050 * cppcharset.c: Likewise.
4051 * cpphash.h: Likewise.
4052 * cpplex.c: Likewise.
4053 * cpplib.c: Likewise.
4054 * dbxout.c: Likewise.
4056 * dwarf2out.c: Likewise.
4057 * dwarfout.c: Likewise.
4058 * emit-rtl.c: Likewise.
4059 * explow.c: Likewise.
4060 * gcov-io.c: Likewise.
4061 * gcov-io.h: Likewise.
4063 * gengtype.c: Likewise.
4067 * reload.c: Likewise.
4070 2003-06-12 Janis Johnson <janis187@us.ibm.com>
4072 * doc/install.texi (m32r-*-elf): Change company to Renesas.
4074 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
4076 * basic-block.h (flow_delete_block_noexpunge): Kill.
4077 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
4080 2003-06-10 Richard Henderson <rth@redhat.com>
4083 * reg-stack.c (any_malformed_asm): New.
4084 (check_asm_stack_operands): Set it.
4085 (convert_regs_1): Check it before aborting.
4087 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4089 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4091 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4093 * c-opts.c (complain_wrong_lang): Add on argument.
4094 Print no- switch if on is false.
4095 (c_common_decode_option): Adjust caller.
4097 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4099 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4100 to initialize GOT register.
4102 2003-06-12 Roger Sayle <roger@eyesopen.com>
4104 * fold-const.c (tree_expr_nonnegative_p): Add support for
4105 floating point constants, addition and multiplication.
4107 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
4109 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4110 constraint modifier for operand 0.
4112 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
4114 Don't warn on dollars in builtin macro definitions,
4115 e.g. __REGISTER_PREFIX__.
4116 * cpphash.h (struct cpp_reader): Move member warn_dollars...
4117 * cpplib.h (struct cpp_options): ...to here. Change type to
4119 * cppinit.c (cpp_create_reader): Set it to 1 here.
4120 (post_options): Don't set it here.
4121 * c-opts.c (c_common_init_options): Reset it to 0 here.
4122 (finish_options): Set it here.
4123 * cpplex.c (forms_identifier_p): Tweak for new location of
4126 * configure.in (assembler dwarf2 debug_line support): Define insn
4127 for cris-*-* and mmix-*-*.
4128 * configure: Regenerate.
4130 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
4132 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4133 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4134 (sh-*-elf*): Add sh*-*-kaos* support.
4135 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4136 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4137 config/sh/kaos-sh.h: New files.
4139 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4141 * gcse.c (fis_get_condition): Make it a global function.
4142 * reload1.c (reload_cse_move2add): Detect implicit sets.
4143 * rtl.h: Add a prototype for fis_get_condition.
4145 2003-06-11 Richard Henderson <rth@redhat.com>
4147 * stmt.c (expand_asm_operands): Don't warn for memories with
4150 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
4152 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4155 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
4157 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4158 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4159 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4160 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4161 * langhooks.c (lhd_decode_option): Remove.
4162 * langhooks.h (struct lang_hooks): Remove decode_option.
4163 * opts.c (handle_option): No longer use decode_option.
4165 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4167 * cfgloopanal.c (variable_initial_value): Update the set of altered
4168 registers correctly.
4170 2003-06-11 Roger Sayle <roger@eyesopen.com>
4171 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4173 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4174 * config/i386/netbsd-elf.h: Likewise.
4175 * config/m32r/m32r.h: Likewise.
4176 * config/mn10300/mn10300.h: Likewise.
4177 * config/stormy16/stormy16.h: Likewise.
4178 * config/v850/v850.h: Likewise.
4179 * config/vax/netbsd-elf.h: Likewise.
4180 * config/xtensa/elf.h: Likewise.
4181 * config/xtensa/linux.h: Likewise.
4183 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4185 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4188 * config/mips/dbxmdebug.h: New file.
4189 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4190 gas and --with-stabs.
4192 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4194 * expr.c (can_move_by_pieces): align argument may be unused.
4196 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
4198 * expr.c (convert_move): Handle moves between two CONCATs.
4200 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4202 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4205 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4207 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4208 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4209 (TARGET_RTL_DUMP): Likewise.
4210 (TARGET_SWITHCES): Remove -mrtl-dump.
4212 2003-06-10 Richard Henderson <rth@redhat.com>
4214 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4216 2003-06-10 Richard Henderson <rth@redhat.com>
4218 * config/ia64/ia64.md (call_gp): Fix memory mode.
4220 2003-06-10 James E Wilson <wilson@tuliptree.org>
4223 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4224 hard regs for reload_reg_used_at_all and reg_class_contents checks.
4226 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4228 * config/h8300/h8300.c (print_operand): Remove support for
4229 operand character 'b'.
4230 Add the AND case to operand character 'c'.
4231 * config/h8300/h8300.md (two anonymous patterns): Replace
4232 operand character 'b' with 'c'.
4234 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4236 * config/h8300/h8300.c (print_operand): Remove support for
4237 operand character 'u'.
4239 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
4241 * configure.in: Fix typo.
4242 * configure: Regenerate.
4244 2003-06-10 Loren James Rittle <ljrittle@acm.org>
4246 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
4249 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4251 * sh-protos.h (function_symbol): Declare.
4252 * sh.c (expand_block_move, expand_ashiftrt): Use it.
4253 (sh_expand_prologue, sh_expand_epilogue): Likewise.
4254 (sh_initialize_trampoline): Likewise.
4255 (function_symbol): New function.
4256 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
4257 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
4258 (call_value_pop, shcompact_return_tramp): Likewise.
4260 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
4262 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
4265 2003-06-10 DJ Delorie <dj@redhat.com>
4267 * doc/md.texi (Machine Constraints): Document stormy's Z
4270 2003-06-10 Geoffrey Keating <geoffk@apple.com>
4272 * except.c (call_site_base): Mark with GTY.
4274 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
4276 * arm-proto.h: Convert to ISO C90 prototypes.
4279 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4281 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4283 2003-06-10 Steve Ellcey <sje@cup.hp.com>
4285 * calls.c (expand_call): Convert structure_value_addr to Pmode if
4288 2003-06-10 Andrew Haley <aph@redhat.com>
4290 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4291 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4292 (lhd_decl_ok_for_sibcall): New.
4293 * langhooks.c (lhd_decl_ok_for_sibcall): New.
4294 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4295 * calls.c (expand_call): Check lang_hook before generating a
4298 2003-06-10 DJ Delorie <dj@redhat.com>
4300 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4301 which matches (const_int 0) for addhi3.
4302 * config/stormy16/stormy16.md: Document known constraints.
4303 (addhi3): Handle adding zero.
4305 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4307 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4308 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4309 * config/m32r/m32r-protos.h: Prototype it.
4311 2003-06-10 Janis Johnson <janis187@us.ibm.com>
4313 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4314 common to rs6000 sysv targets.
4315 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4316 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4318 2003-06-10 Nick Clifton <nickc@redhat.com>
4320 * config.gcc: Add arm-wince-pe target.
4321 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
4322 Add comment about default apcs26 support.
4323 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4325 (MULTILIB_DIRNAMES): Add 'apcs32'.
4326 * config/arm/t-wince-pe: New makefile fragment.
4327 * config/arm/wince-pe.h: New file. Overrides a few definitions
4330 2003-06-10 Roger Sayle <roger@eyesopen.com>
4332 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4333 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4334 when x is easily negated and f is sin, tan or atan.
4335 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4336 sin(x) with flag_unsafe_math_optimizations.
4337 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4338 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4340 2003-06-10 Roger Sayle <roger@eyesopen.com>
4342 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
4343 is a floating point type *and* we currently honor NaNs.
4344 (fold <NE_EXPR>): Likewise.
4346 2003-06-10 Mark Mitchell <mark@codesourcery.com>
4349 * tree-inline.c (inlinable_function_p): Call the language-specific
4352 2003-06-09 David Taylor <dtaylor@emc.com>
4354 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
4357 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
4359 * configure.in: Remove references to host_truncate_target.
4360 * configure: Regenerate.
4361 * config.gcc: Remove references to truncate_target,
4362 host_truncate_target.
4364 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4365 Replace "build_canonical" with build, "host_canonical" with host.
4366 * configure.in: Use GCC_TOPLEV_SUBDIRS.
4367 * aclocal.m4: Include ../config/acx.m4.
4368 * configure: Regenerate.
4370 2003-06-09 David Taylor <dtaylor@emc.com>
4372 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4373 bytes of padding in the __va_list_tag structure a name (reserved).
4375 2003-06-09 Jason Merrill <jason@redhat.com>
4377 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4379 2003-06-09 Osku Salerma <osku@iki.fi>
4381 * c-format.c (check_format_string, get_constant): New.
4382 (handle_format_attribute, handle_format_arg_attribute,
4383 decode_format_attr): Change to use above functions.
4385 2003-06-09 Richard Henderson <rth@redhat.com>
4387 * stmt.c (expand_asm_operands): Re-word warning.
4389 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
4392 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4395 2003-06-09 James E Wilson <wilson@tuliptree.org>
4397 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4398 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4399 Add libgcc exception.
4401 2003-06-09 David Edelsohn <edelsohn@gnu.org>
4402 Ayal Zaks <gcchaifa@us.ibm.com>
4404 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4405 (insvsi*): Add insert_word attribute.
4406 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4407 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4408 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4410 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
4412 * fold-const.c (fold): Fix a comment typo.
4414 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
4416 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4419 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
4421 * sh.c (gen_block_redirect): Use locators.
4423 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
4425 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4428 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4430 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4432 * configure: Regenerated.
4434 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4435 Alexandre Oliva <aoliva@redhat.com>
4437 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4438 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4439 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4441 (MUST_SAVE_REGISTERS): Delete.
4442 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4443 (machine_function): Add global_pointer field.
4444 (mips_classify_constant): Check for (const $gp) using pointer equality
4445 with pic_offset_table_rtx.
4446 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4447 (mips_restore_gp): Use current_function_outgoing_args_size.
4448 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4449 GP_REG_FIRST + 28. Handle relocation strings that have
4451 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4452 (mips_global_pointer): New function.
4453 (mips_save_reg_p): New function, mostly split out from...
4454 (compute_frame_size): ...here. Remove handling of extra_size.
4455 Reclaim args_size if no variables depend on it. Don't treat gp
4456 as a special case: handle it in the main GPR loop.
4457 (mips_initial_elimination_offset): Fix comment.
4458 (save_restore_insns): Save every register in the GPR mask,
4459 removing distinction between mask and real_mask.
4460 (mips_output_function_prologue): Update .frame psuedo-op after
4461 the removal of extra_size. Move the SVR4 PIC stack allocation
4462 and cprestore instructions to mips_expand_prologue.
4463 (mips_gp_insn): New function.
4464 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4465 the chosen global pointer. Handle SVR4 PIC stack allocation
4466 in the same way as other ABIs. Adjust varargs code accordingly.
4467 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
4468 to emit the loadgp sequence. Follow it with a loadgp_blockage
4469 if not using explicit relocs.
4470 (mips_output_function_epilogue): Reinstate the default gp register.
4471 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4472 (mips16_optimize_gp): Likewise.
4473 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4474 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4475 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4477 (loadgp_blockage, cprestore): New instructions.
4478 (builtin_setjmp_setup): Implement using emit_move_insn. Use
4479 pic_offset_table_rtx.
4480 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4481 (builtin_longjmp): Use gen_raw_REG to force use of $28.
4483 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4485 * config/mips/mips-protos.h (mips_output_division): Declare.
4486 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4487 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4488 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4489 (TARGET_CHECK_ZERO_DIV): New macro.
4490 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4491 * config/mips/mips.c (mips_output_division): New function.
4492 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4493 account when calculating the default length of a division.
4494 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4495 Enable regardless of optimization level. Use mips_output_division.
4496 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4497 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4498 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4499 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4500 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4501 umoddi3_internal): Remove.
4503 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4505 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4506 (mips_sw_reg_names): Likewise.
4507 (mips_regno_to_class): Change hilo entry to NO_REGS.
4508 (hilo_operand): Use MD_REG_P.
4509 (extend_operator): New predicate.
4510 (override_options): Remove 'a' constraint.
4511 (mips_secondary_reload_class): Remove hilo handling. Also remove
4512 handling of (plus sp reg) reloads for mips16.
4513 (mips_register_move_cost): Remove hilo handling.
4514 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4515 (MD_REG_LAST): Remove hilo from range.
4516 (HILO_REGNUM): Delete.
4517 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4518 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4519 (PREDICATE_CODES): Add entry for extend_operator.
4520 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4521 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4522 Remove constraints from multiplication define_expands. Remove
4523 clobbers from "decorative" define_expand patterns.
4524 (UNSPEC_HILO_DELAY): Delete.
4525 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4526 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4527 Adjust C code to just emit insns for !TARGET_64BIT.
4528 (mulsidi3_internal): Rename to mulsidi3_32bit.
4529 (mulsidi3_64bit): Use a "d" constraint for the destination.
4530 Use extend_operator so that the pattern can handle umulsidi3 as well.
4531 Split the instruction after reload.
4532 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4533 (umulsidi3_internal): Rename to umulsidi3_32bit.
4534 (umulsidi3_64bit): Remove.
4535 (*smsac_di, *umsac_di): Line-wrap fixes.
4536 (udivsi3_internal): Don't allow operand 2 to be constant.
4537 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4538 (movdi_internal2, movsi_internal): Remove hilo alternatives.
4539 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4541 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4544 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4545 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4546 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4547 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4548 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4549 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4550 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4551 asm_out_text_file with asm_out_file.
4552 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4553 * config/mips/elf.h (TEXT_SECTION): Undefine.
4554 * config/mips/elf64.h (TEXT_SECION): Undefine.
4555 * config/mips/openbsd.h (TEXT_SECION): Undefine.
4556 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4557 (override_options): Disable small-data optimizations unless using
4558 gas or explicit relocations.
4559 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4560 iris6_asm_named_section, iris6_asm_file_start): Remove code for
4561 handling TARGET_FILE_SWITCHING.
4562 (copy_file_data): Move into TARGET_IRIX6 block.
4564 2003-06-08 Richard Henderson <rth@redhat.com>
4566 * expr.h (EXPAND_MEMORY): New.
4567 * expr.c (expand_expr): Check it.
4568 * stmt.c (expand_asm_operands): Provide it when the constraint
4569 requires a memory. Warn for memory input constraints without
4572 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4574 * varasm.c: Don't include c-tree.h.
4576 2003-06-08 Andreas Jaeger <aj@suse.de>
4578 * predict.h: Convert to ISO C90 prototypes.
4579 * predict.c: Likewise.
4580 * tree-dump.h: Likewise.
4581 * tree-dump.c: Likewise.
4582 * diagnostic.h: Likewise.
4583 * diagnostic.c: Likewise.
4584 * combine.c: Likewise.
4586 * rtl.h: Convert prototypes of combine.c to ISO C90.
4588 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
4590 * cfglayout.c (insn_scope): New static function
4591 (block_locators_*, line_locators*, file_locators*): New static varrays.
4592 (scope_to_insns_initialize): Use them.
4593 (insn_line, insn_file): New functions.
4594 (scope_to_insns_finalize): Use insn_scope.
4595 (prologue_locator, epilogue_locator): New global variables.
4596 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4597 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4598 (emit_insn_after_scope, emit_insn_before_scope
4599 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4600 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4601 (emit_insn_after_setloc, emit_insn_before_setloc
4602 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4603 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4605 * final.c (notice_source_line): Use locators.
4606 (final_start_function): Set initial source file and line.
4607 (final_scan_insn): Use locators.
4608 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4609 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4610 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4611 noce_process_if_block, find_cond_trap): Likewise.
4612 * integrate.c (copy_insn_list): Likewise.
4613 * jump.c (duplicate_loop_exit_test): LIkewise.
4614 * print-rtl.c (print_rtx): Print locators.
4615 * recog.c (peephole2_optimize): Likewise.
4616 * rtl.h (INSN_SCOPE): Remove.
4617 (emit_insn_after_scope, emit_insn_before_scope
4618 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4619 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4620 (emit_insn_after_setloc, emit_insn_before_setloc
4621 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4622 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4623 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4624 * unroll.c (copy_loop_body): Use locators.
4625 * function.c (set_insn_locators): New function.
4626 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4628 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4630 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4631 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4632 _fixsfdi _fixunssfdi.
4633 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4635 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4636 * config/h8300/clzhi2.c: New.
4637 * config/h8300/ctzhi2.c: Likewise.
4638 * config/h8300/parityhi2.c: Likewise.
4639 * config/h8300/popcounthi2.c: Likewise.
4641 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
4643 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4644 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4646 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4647 (dump_bb): New based on old dump_bb in cfgrtl.c
4648 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4649 * cfghooks.h (cfgh_verify_flow_info): Return status.
4650 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4651 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4652 (dump_bb): Remove generic parts.
4653 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4654 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4656 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
4658 * Makefile.in: Rename options.c and options.h to c-options.c and
4660 (OBJS): Remove options.o.
4661 * c-opts.c: Don'tInclude c-options.h instead of options.h.
4662 * opts.c: Don't include options.h.
4663 (find_opt): Can't use enum opt_code or N_OPTS.
4664 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4665 * opts.sh: ... here.
4667 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4668 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4671 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4672 if HAVE_MINCORE is defined.
4673 (MAP_FAILED): Define if not defined.
4674 (gt_pch_save): Test against MAP_FAILED.
4675 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4676 the mapping address to the preferred base after checking it
4677 is possible to do so. Test against MAP_FAILED.
4678 * configure.in: Test for the presence of mincore in libc.
4679 * config.in: Regenerate.
4680 * configure: Regenerate.
4682 2003-06-07 Richard Henderson <rth@redhat.com>
4684 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4685 conditional compilation guard.
4687 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4689 * optabs.c (expand_abs): Set result_unsignedp to 1 if
4692 2003-06-07 Richard Henderson <rth@redhat.com>
4694 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
4696 2003-06-07 Richard Henderson <rth@redhat.com>
4698 * basic-block.h (EDGE_SIBCALL): New.
4699 (EDGE_ALL_FLAGS): Update.
4700 * cfg.c (dump_edge_info): Add sibcall name.
4701 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4702 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4704 2003-06-07 Andreas Jaeger <aj@suse.de>
4706 * mklibgcc.in (lib2funcs): Remove _exit.
4707 * libgcc2.c: Remove L_exit.
4708 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4710 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4712 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4714 * ggc.h: Convert to ISO C90 prototypes.
4715 * ggc-none.c: Likewise.
4716 * ggc-common.c: Likewise.
4717 * ggc-page.c: Likewise.
4718 * ggc-simple.c: Likewise.
4720 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4722 * system.h: Poison INIT_SECTION_PREAMBLE.
4724 2003-06-07 Zack Weinberg <zack@codesourcery.com>
4726 * config.gcc (with_cpu handling): Translate sparc64 in
4727 $machine to --with-cpu=v9.
4728 * config/alpha/alpha.c
4729 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4730 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4732 * target.h: New hook asm_out.file_end.
4733 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
4734 * toplev.c (compile_file): Use targetm.asm_out.file_end.
4735 * system.h: Poison ASM_FILE_END.
4736 * varasm.c (file_end_indicate_exec_stack): New.
4737 * output.h: Prototype it.
4738 * doc/tm.texi: Document TARGET_ASM_FILE_END and
4739 file_end_indicate_exec_stack. Delete references to attasm.h.
4741 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4742 (ASM_FILE_END): Delete; move code...
4743 * config/darwin.c (darwin_file_end): Here; new function.
4744 * config/darwin-protos.h: Prototype it.
4745 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4746 rename unicosmk_file_end.
4747 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4748 * config/arm/arm.c (aof_file_end): ... here; new static function.
4749 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4750 Make aof_dump_imports and aof_dump_pic_table static.
4751 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4752 Set TARGET_ASM_FILE_END to avr_file_end.
4753 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
4754 Set TARGET_ASM_FILE_END to c4x_file_end.
4755 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4756 make static. Take no arguments. Set TARGET_ASM_FILE_END to
4758 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4759 * config/i370/i370.c (i370_file_end): ... here; new static function.
4760 Set TARGET_ASM_FILE_END to i370_file_end.
4761 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4762 Take no arguments. Call file_end_indicate_exec_stack if
4763 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4764 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4765 Define NEED_INDICATE_EXEC_STACK to 0.
4766 * config/i386/linux.h, config/i386/linux64.h: Redefine
4767 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4768 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4769 i386_pe_file_end. Take no arguments. Use ix86_file_end.
4770 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4771 ia64_hpux_file_end, make static. Take no arguments.
4772 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4773 commands_in_prologues, commands_in_epilogues): Delete.
4774 (function_epilogue): Update to match.
4775 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4776 make static. Take no arguments.
4777 (iris6_asm_file_end): Rename iris6_file_end, make static, use
4778 mips_file_end, take no arguments.
4779 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4781 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4782 make static, take no arguments. Set TARGET_ASM_FILE_END to
4784 * config/pa/pa.c (output_deferred_plabels): Make static, take
4785 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
4786 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4787 (ASM_FILE_END): Delete; move code...
4788 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4789 new static function.
4791 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4792 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4793 Don't set ASM_FILE_END.
4794 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4795 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4796 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4797 file_end_indicate_exec_stack; don't set ASM_FILE_END.
4798 * config/alpha/unicosmk.h, config/i386/cygming.h
4799 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4800 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4801 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4802 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4803 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4804 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4806 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
4808 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4811 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4813 * Makefile.in (stageprofile_build): Kill redundant target.
4814 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4816 2003-06-07 Andreas Jaeger <aj@suse.de>
4818 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4820 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4821 * config/dsp16xx/dsp16xx.h: Likewise.
4822 * config/i386/i386.h: Likewise.
4823 * config/ip2k/ip2k.h: Likewise.
4825 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
4827 * Makefile.in (OJBS, c-opts.o): Update.
4828 (c-options.c, c-options.h): Rename options.h and options.c.
4829 (options.h): Rename options_.h.
4831 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4832 (c_common_init_options): Update prototype.
4833 * c-lang.c (c_init_options): Update prototype.
4834 (LANG_HOOKS_HANDLE_OPTION): Override.
4835 (LANG_HOOKS_DECODE_OPTION): Drop.
4836 * c-opts.c: Include opts.h and options.h instead of c-options.h
4838 (lang_flags): Move to file scope.
4839 (find_opt, c_common_decode_option): Remove.
4840 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4841 CL_REJECT_NEGATIVE): Move to opts.h.
4842 (missing_arg): Update prototype.
4843 (c_common_init_options): Update for new prototype.
4844 (c_common_handle_options): Filenames are passed as N_OPTS.
4845 * hooks.c (hook_int_void_0): New.
4846 * hooks.h (hook_int_void_0): New.
4847 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4848 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4849 (LANG_HOOKS_INITIALIZER): Update.
4850 * langhooks.h (init_options): Update.
4851 (handle_option): New.
4852 * opts.c, opts.h: New files.
4853 * opts.sh: Update c file to include opts.h and options.h.
4854 * toplev.c: Include opts.h; change options.h to options_.h.
4855 (parse_options_and_default_flags): Get lang_mask, use
4856 handle_option for language-specific handling.
4857 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4858 (LANG_HOOKS_HANDLE_OPTION): Override.
4859 (objc_init_options): Update.
4861 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
4862 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4865 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4868 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
4870 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4872 * configure: Regenerate.
4874 2003-06-07 Alan Modra <amodra@bigpond.net.au>
4876 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4878 2003-06-06 James E Wilson <wilson@tuliptree.org>
4881 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4882 different in fields.
4884 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
4886 * configure.in: Make $(target_subdir) correspond with top level usage.
4887 * Makefile.in: Likewise.
4888 * configure: Regenerate.
4890 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4892 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4893 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4894 unsigned HOST_WIDE_INT.
4895 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4897 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4900 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4902 * doc/install.texi (Prerequisites): New section documenting
4903 tools and packages necessary prior to building and/or
4905 * doc/install.texi2html: Also generate prerequisites.html.
4907 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
4910 * ifcvt.c (noce_process_if_block): Fail if the destination has
4913 2003-06-06 Jason Merrill <jason@redhat.com>
4915 * stmt.c (resolve_asm_operand_names): Rename from
4916 resolve_operand_names. No longer static. Avoid needless copying.
4917 Don't build array of constraints.
4918 (expand_asm_operands): Build it here.
4919 * tree.h: Declare resolve_asm_operand_names.
4921 * stmt.c (expand_decl): Put artificial vars into registers even
4922 when not optimizing, and don't mark the regs as user vars.
4924 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4926 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4927 of the generated register.
4929 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
4931 * config.gcc: Add a missing sparc64 case.
4933 2003-06-06 Jakub Jelinek <jakub@redhat.com>
4935 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4936 the .hidden assembly stubs.
4938 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
4940 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4943 * config/i386/mmintrin.h: Update version and add alternate
4945 * config/i386/xmmintrin.h: Likewise.
4947 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4949 * config/i386/emmintrin.h: Here. New file.
4951 2003-06-06 Roger Sayle <roger@eyesopen.com>
4953 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
4954 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
4955 when the ABS_EXPR (fabs or abs) is not required.
4956 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
4957 always nonnegative from fold to here. Additionally, cabs and fabs
4958 are always non-negative, and pow and atan are non-negative if
4959 their first argument is non-negative.
4961 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4962 Evaluate cabs of a constant at compile-time. Convert cabs of a
4963 non-complex argument into fabs. Convert cabs(z) into
4964 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4965 -funsafe-math-optimizations or -ffast-math.
4966 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4967 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4969 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
4971 * sourcebuild.texi (Front End Directory): Document new hooks.
4973 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
4975 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
4976 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4978 (pro_epilogue_adjust_stack_rex64_2): New pattern
4980 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
4982 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4984 * cfghooks.h, cfghooks.c: New files.
4985 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4986 (OBJS): Add cfghooks.o.
4987 (cfghooks.o): New rule.
4988 * basic-block.h (split_edge): Rename to rtl_split_edge.
4989 (verify_flow_info): Rename to rtl_verify_flow_info.
4990 (cfghooks.h): Included here.
4991 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4992 (verify_flow_info): Renamed rtl_verify_flow_info.
4993 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4995 * basic-block.h (split_block, split_edge, flow_delete_block,
4996 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4997 (flow_delete_block_noexpunge): Return void.
4998 * cfg.c (verify_flow_info): New function.
4999 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
5000 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
5002 * cfglayout.c (function_footer): Rename to...
5003 (cfg_layout_function_footer): ... this variable
5004 (unlink_insn_chain): Make global.
5005 (fixup_reorder_chain, record_effective_endpoints): Update.
5006 (cleanup_unconditional_jumps): Use delete_block.
5007 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
5008 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
5009 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
5010 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
5011 (cfg_layout_function_footer): Declare.
5012 * cfgloopmanip (split_loop_bb): Do not update RBI.
5013 (remove_bbs): Use delete_block.
5014 (loop_reidrect_edge, loop_delete_branch_edge): Use
5015 redirect_edge_and_branch.
5016 (create_preheader): Use split_block and redirect_edge_and_branch_force.
5017 (split_edge_with): Likewise.
5018 * cfgrtl.c: Include cfglayout.h
5019 (split_edge): Rename to ...
5020 (rtl_split_edge) ... this one; make local.
5021 (redirect_edge_and_branch): Rename to ...
5022 (rtl_redirect_edge_and_branch) ... this one; make local.
5023 (redirect_edge_and_branch_force): Rename to ...
5024 (rtl_redirect_edge_and_branch_force) ... this one; make local.
5025 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
5026 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
5027 cfglayout.c; update to directly call RTL counterparts.
5028 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
5029 * ifcvt.c (find_cond_trap): Use delete_block.
5030 (find_if_case_1): Use delete_block.
5031 (find_if_case_2): Use delete_block.
5032 * rtl.h (unlink_insn_chain): Declare.
5033 * toplev.c (rtl_reigster_cfg_hooks): New.
5035 2003-06-05 Richard Henderson <rth@redhat.com>
5037 * recog.c (peephole2_optimize): Revert last change.
5039 2003-06-05 Richard Henderson <rth@redhat.com>
5041 * recog.c (peephole2_optimize): Don't split block unless
5044 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
5046 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
5047 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
5049 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
5051 PR optimization/4490
5052 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
5053 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
5054 documentation to accurately reflect what these options do.
5056 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
5058 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
5059 (ENDFILE_SPEC): Redefine to handle -pie.
5061 2003-06-05 Phil Edwards <phil@jaj.com>
5063 * Makefile.in (qmtest-g++): Use target_alias, not target.
5065 2003-06-05 Per Bothner <pbothner@apple.com>
5067 * toplev.c (push_srcloc): Simplify behavior to save current location
5068 and set current location to parameters.
5069 (pop_srcloc): Simplify semantics.
5070 (lang_dependent_init): Remove now-useless initial push_srcloc.
5072 2003-05-06 Richard Henderson <rth@redhat.com>
5074 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
5075 language-specific tree codes.
5077 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5080 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
5081 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
5083 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
5085 * install.tex: Document profiledbootstrap.
5087 * configure.in: Add support for lang.stageprofile and
5089 * Makefile.in (clean, distclean): Kill new stages
5090 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
5091 (STAGE2_FLAGS_TO_PASS): ... this one.
5092 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
5093 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
5094 (stageprofile_build, stageprofile_copy, stagefeedback_build,
5095 stagefeedback_copy): New.
5096 (restageprofile, restagefeedback, stageprofile-start,
5097 stageprofile, stagefeedback-start): Likewise.
5099 2003-06-05 David Miller <davem@redhat.com>
5100 Richard Henderson <rth@redhat.com>
5102 * optabs.c (HAVE_conditional_trap): Provide default.
5103 (gen_conditional_trap): Likewise.
5104 (init_optabs): Merge init_traps.
5105 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
5107 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
5109 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
5110 is REG for nonzero_bits (REG) == 8.
5112 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5114 * i386.md (align): Fix warning; clarify what to do when no p2align
5117 2003-06-05 Nick Clifton <nickc@redhat.com>
5119 * config.gcc (m32r-elf): Revert previous delta.
5120 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5121 multilibs. Remove m32rx specific version.
5122 (crtfini.o): Likewise.
5123 (EXTRA_MULTILIB_PARTS): Define.
5125 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5127 * doc/md.texi (Machine Constraints): Correct the meaning of
5128 constraints related to floating-point registers on SPARC.
5130 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5131 Paolo Bonzini <bonzini@gnu.org>
5134 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5135 assembler and linker output to /dev/null.
5136 Use a 'sed' construct instead of 'grep -A1'.
5137 * configure: Regenerate.
5139 2003-06-04 Richard Henderson <rth@redhat.com>
5141 * config/i386/i386.c (struct ix86_address): Add seg.
5142 (no_seg_address_operand): New.
5143 (ix86_decompose_address): Restructure PLUS loop. Accept one
5144 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
5145 to test for a regnum, not stack_pointer_rtx.
5146 (ix86_address_cost): Reduce cost if non-default segment.
5147 (legitimate_address_p): Remove UNSPEC_TP check.
5148 (get_thread_pointer): Add to_reg argument. Don't represent
5149 the thread pointer as a memory load.
5150 (legitimize_tls_address): Split out of ...
5151 (legitimize_address): ... here.
5152 (print_operand_address): Handle parts.seg.
5153 (ix86_expand_move): Use legitimize_tls_address.
5154 (ix86_rtx_costs): Handle UNSPEC_TP.
5155 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5156 (TARGET_TLS_DIRECT_SEG_REFS): New.
5157 (TARGET_SWITCHES): Add tls-direct-seg-refs.
5158 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5159 (PREDICATE_CODES): Add no_seg_address_operand.
5160 * config/i386/i386.md (lea_1): Use it.
5161 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5162 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5163 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5164 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5165 * doc/invoke.texi: Add -mtls-direct-seg-refs.
5167 2003-06-04 Mark Mitchell <mark@codesourcery.com>
5169 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5170 (QMTEST_GPP_TESTS): Use "g++" by default.
5171 (stamp-qmtest): Tweak database creation.
5172 (QMTEST_DIR/context): Update context file format.
5173 (qmtest-g++): Tweak command-line.
5175 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5177 * Makefile.in (varasm.o): Don't set -Wno-error.
5178 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5180 2003-06-04 Zack Weinberg <zack@codesourcery.com>
5183 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5184 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5185 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5186 and AC_CHECK_FUNCS lists, respectively. Use
5187 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5189 * configure, config.in: Regenerate.
5191 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5193 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5194 * arm.c (arm_output_function_prologue): Fix format specifiers.
5195 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5196 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5197 HOST_WIDE_INT_PRINT_DEC.
5198 * vax.c (vax_output_function_prologue): Fix format specifiers.
5200 2003-06-04 Richard Henderson <rth@redhat.com>
5202 * cse.c (find_best_addr): Consider binary operators even if second
5203 argument is not CONST_INT.
5205 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5207 * doc/invoke.texi (max-cse-path-length): Document.
5209 2003-06-04 Richard Henderson <rth@redhat.com>
5211 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5213 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
5215 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5216 Remove semi-colon at the end of the expression.
5218 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5220 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
5221 * i370.h (mvs_function_name_length): Likewise.
5222 * i960.h (CONSTANT_ALIGNMENT): Likewise.
5223 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5224 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5225 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5226 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5229 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5231 * config.gcc: Reorganize --with-cpu logic. Set
5232 configure_default_options according to the default CPU, --with-cpu,
5233 --with-arch, --with-tune, --with-schedule, --with-abi, and
5234 --with-float. Check for legal values of various options.
5235 * configure.in: Define configure_default_options in configargs.h.
5236 * configure: Regenerated.
5237 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5238 (TARGET_DEFAULT_FLOAT_P): New macros.
5239 * gcc.c (do_option_spec): New function.
5240 (struct default_spec, option_default_specs): New.
5241 (main): Call do_option_spec.
5242 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5243 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5244 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5246 * doc/install.texi: Update --with-cpu documentation. Mention
5247 --with-arch, --with-schedule, --with-tune, --with-abi, and
5249 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
5251 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5253 * config.gcc: Only process --with-cpu logic in the third pass.
5255 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5257 * config.gcc: Reorganize --with-cpu section. Remove an
5258 obsolete comment about the default CPU for x86-64. Fix
5259 a typo for the ep9312. Update the list of supported PowerPC
5260 CPUs. Support a limited set of new --with-cpu options
5263 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
5265 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
5266 complex numbers <= 32 bits into two registers.
5268 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5270 * alpha.c (print_operand_address): Fix format specifier warnings.
5271 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5272 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5273 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5274 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
5275 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
5276 ASM_OUTPUT_SKIP): Likewise.
5277 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5278 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5279 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5281 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5282 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5283 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5284 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5285 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5286 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5287 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5288 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5289 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5290 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5292 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
5294 * c-decl.c (c_init_decl_processing): Clear input_file_name
5295 while building common nodes.
5296 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5297 Don't add working directory for strings like <built-in> .
5299 2003-06-04 David Edelsohn <edelsohn@gnu.org>
5301 * doc/install.texi (*-ibm-aix*): Native as and ld required
5302 to bootstrap on AIX 5L.
5304 2003-06-04 Richard Henderson <rth@redhat.com>
5306 * c-common.c (handle_cleanup_attribute): New.
5307 (c_common_attributes): Add it.
5308 * c-decl.c (finish_decl): Honor the cleanup attribute.
5309 * doc/extend.texi (Variable Attributes): Document it.
5311 * unwind-c.c: New file.
5312 * Makefile.in (LIB2ADDEH): Add it.
5313 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5314 config/ia64/t-ia64: Likewise.
5316 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5318 * function.c (trampolines_created): New variable.
5319 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5320 * function.h (trampolines_created): Add.
5321 * config/s390/linux.h (ASM_FILE_END): Define.
5322 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5323 * config/m68k/linux.h (ASM_FILE_END): Define.
5324 * config/rs6000/linux.h (ASM_FILE_END): Define.
5325 * config/rs6000/linux64.h (ASM_FILE_END): Define.
5326 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5327 * config/sparc/linux.h (ASM_FILE_END): Define.
5328 * config/sparc/linux64.h (ASM_FILE_END): Define.
5329 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5330 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5331 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5333 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
5335 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5336 (ix86_reorg): Use it.
5337 * i386.md (align): New insn pattern.
5339 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5341 * toplev.c (rest_of_type_compilation): Fix typo.
5343 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5344 Alan Modra <amodra@bigpond.net.au>
5346 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5347 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5348 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5349 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5350 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5351 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5352 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5353 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5355 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5356 Pass it to $gcc_cv_as.
5357 * configure: Rebuilt.
5359 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5360 (print_operand): Allow TARGET_AIX to be non-constant.
5361 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5362 Define unconditionally.
5363 (rs6000_elf_declare_function_name): New function.
5364 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5366 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5368 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5369 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5371 (TARGET_AIX): Define to 1 if TARGET_64BIT.
5372 (PROCESSOR_DEFAULT): Remove.
5373 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5374 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5375 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5376 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5378 (MULTILIB_DEFAULTS): Define.
5379 (SUBSUBTARGET_EXTRA_SPECS): Define.
5380 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5381 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5382 (TARGET_NO_TOC): Remove.
5383 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5384 TARGET_PROTOTYPE): Define to 0.
5385 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5386 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5387 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5389 (USER_LABEL_PREFIX): Remove.
5390 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5391 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5393 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5394 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5395 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5396 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5397 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5398 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5400 (RS6000_CALL_GLUE): Likewise.
5401 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5402 RESTORE_FP_SUFFIX): Likewise.
5403 (ASM_DECLARE_FUNCTION_NAME): Remove.
5404 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5405 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5406 name if TARGET_64BIT.
5407 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5409 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5410 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5411 (DRAFT_V4_STRUCT_RET): Define.
5412 (SIGNAL_FRAMESIZE): New enum value.
5413 (MD_FALLBACK_FRAME_STATE_FOR): Define.
5414 * config/rs6000/default64.h: New file.
5415 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5417 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5418 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
5420 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5421 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5423 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5424 (TARGET_OS_CPP_BUILTINS): Use it.
5425 (CPP_SYSV_SPEC): Remove.
5426 (CPP_SPEC): Remove cpp_sysv.
5427 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5428 Add SUBSUBTARGET_EXTRA_SPECS.
5429 (SUBSUBTARGET_EXTRA_SPECS): Define.
5430 * config/rs6000/biarch64.h: New file.
5431 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5433 * config/rs6000/x-linux64: New file.
5434 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5436 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5437 * config/rs6000/eabi-cn.asm: Likewise.
5438 * config/rs6000/tramp.asm: Likewise.
5439 * config/rs6000/sol-ci.asm: Likewise.
5440 * config/rs6000/sol-cn.asm: Likewise.
5441 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5442 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5443 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5444 _CALL_AIXDESC section.
5445 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5446 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5449 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5451 * config.gcc: Revert accidentally committed ARM changes.
5453 2003-06-04 Roger Sayle <roger@eyesopen.com>
5455 * builtins.c (dconstpi, dconste): New mathematical constants.
5456 (init_builtin_dconsts): New function to initialize dconstpi
5458 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
5459 compile time with -ffast-math when x is an integer constant.
5460 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
5461 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5463 2003-06-04 Roger Sayle <roger@eyesopen.com>
5465 * calls.c (expand_call): Avoid calling pure or const functions
5466 when the result is ignored (or void) and none of the arguments
5467 are volatile. Move warning diagnostic earlier in function.
5469 2003-06-04 Andreas Jaeger <aj@suse.de>
5471 * system.h: Do not poison TDESC_SECTION_ASM_OP,
5472 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5474 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5476 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5477 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5478 handle %ll, optimize regular character case.
5480 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5482 * Makefile.in (cse.o): Add params.h dependency.
5483 * cse.c: Include params.h.
5484 (PATHLENGTH): Removed.
5485 (struct cse_basic_block_data): Make path array dynamic.
5486 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5488 (cse_main, cse_basic_block): Allocate path array.
5489 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5491 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
5493 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5494 * i386.md (UNSPEC_REP): New constant.
5495 (return_internal_long): New pattern.
5497 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5499 PR optimization/11018
5500 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5501 consistently to decide whether the scratch register is really
5504 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5506 PR optimization/10876
5507 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5508 new 'O' constraint for constant 4096.
5509 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5510 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5511 Do not transform into MINUS insn for constant 4096.
5512 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5513 for constant 4096 as third operand.
5514 (addsi3 expander): Remove.
5515 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5516 new alternative for constant 4096 as third operand.
5517 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5518 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5520 (subsi3 expander): Remove.
5521 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5522 constant 4096 as third operand.
5523 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5526 2003-06-03 Chris Demetriou <cgd@broadcom.com>
5528 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5530 2003-06-04 Andreas Jaeger <aj@suse.de>
5532 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5534 * config/i386/i386.c (ix86_expand_prologue): Do not use
5537 * system.h: Poision SUBTARGET_PROLOGUE.
5539 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5541 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5544 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5546 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5547 INSN_CACHE_LINE_WIDTH.
5549 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5550 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5551 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5553 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5554 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5556 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5557 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5558 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5559 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5560 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5561 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5563 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5564 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5565 DBX_WORKING_DIRECTORY.
5567 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5568 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5570 * config/frv/frv-protos.h: Remove unused const_section
5572 * config/vax/vax-protos.h: Likewise.
5574 * output.h: Remove CONST_SECTION_ASM_OP usage.
5576 * system.h: Poison CONST_SECTION_ASM_OP.
5578 * crtstuff.c (__do_global_dtors_aux): Remove usage of
5580 (frame_dummy): Likewise.
5581 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5582 * system.h: Poison CRT_GET_RFIB_TEXT.
5584 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5586 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5587 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5588 (recognized_function): Likewise.
5589 (read_scan_file): Likewise.
5591 2003-06-03 Roger Sayle <roger@eyesopen.com>
5593 * optabs.c (expand_binop): Optimize complex multiplication for
5594 the case of squaring a complex argument.
5596 2003-06-03 Roger Sayle <roger@eyesopen.com>
5598 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5599 non-volatile operands of binary operations.
5600 (prepare_cmp_insn): Likewise.
5602 2003-06-03 Roger Sayle <roger@eyesopen.com>
5604 * varasm.c (force_const_mem): Handle alignment of constants not
5605 representable as a type in the front-end language.
5607 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5609 * flow.c (initialize_uninitialized_subregs): Use
5610 emit_move_insn instead of emitting a hardcoded move.
5612 2003-06-03 Richard Henderson <rth@redhat.com>
5614 * optabs.c (expand_abs_nojump): Split out from ...
5615 (expand_abs): ... here.
5616 * optabs.h (expand_abs_nojump): Declare.
5617 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5618 * Makefile.in (ifcvt.o): Depend on optabs.h.
5620 2003-06-03 Alan Modra <amodra@bigpond.net.au>
5622 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5624 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5626 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5627 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5629 * configure.in: Allow default_use_cxa_atexit to determine the
5630 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5632 * configure: Regenerate.
5634 2003-06-03 Douglas B Rupp <rupp@gnat.com>
5636 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5637 * doc/gcc.texi: Remove vms.texi section.
5638 * doc/vms.texi: Remove obsolete file.
5640 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
5642 * configure.in (inhibit_libc): Don't define when configuring
5643 with --with-newlib --with-headers.
5644 * configure: Regenerate.
5646 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5648 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5650 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5651 IRIX 6 without GNU ld.
5652 * configure: Regenerate.
5654 2003-06-03 Roger Sayle <roger@eyesopen.com>
5656 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5657 of a complex number rather than invoke mov_optab directly.
5659 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5661 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5662 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5664 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
5666 * config/i386/x86-64.h: Remove two target-independent comments;
5667 replace "GNU CC" with "GCC".
5669 2003-06-03 Anthony Green <green@redhat.com>
5671 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5673 2003-06-03 Roger Sayle <roger@eyesopen.com>
5675 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5676 New builtins representing ISO C99's cabs, cabsf and cabsl.
5677 * builtins.c (expand_builtin_fabs): New function.
5678 (expand_builtin_cabs): New function.
5679 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5680 using expand_builtin_fabs and expand_builtin_cabs respectively.
5682 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5684 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
5686 * function.c (assign_parms): Split complex arguments.
5688 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
5690 * expr.h (SPLIT_COMPLEX_ARGS): Define.
5691 (split_complex_types): Protoize.
5692 (split_complex_values): Protoize.
5694 * calls.c (expand_call): Split complex arguments on architectures
5696 (split_complex_values): New.
5697 (split_complex_types): New.
5699 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5700 (rs6000_function_value): Handle complex values on AIX.
5701 (rs6000_complex_function_value): New.
5703 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
5705 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5706 (SPLIT_COMPLEX_ARGS): New.
5708 2003-06-03 Jakub Jelinek <jakub@redhat.com>
5710 * configure.in (HAVE_LD_PIE): Check for ld -pie.
5711 * config.in: Rebuilt.
5712 * configure: Rebuilt.
5713 * toplev.c (flag_pie, flag_shlib): New variables.
5714 (f_options): Add -fpie and -fPIE.
5715 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5716 Set flag_shlib if flag_pic and not -fpie/-fPIE.
5717 * flags.h (flag_pic, flag_shlib): Add.
5718 * varasm.c (default_binds_local_p): Use flag_shlib instead of
5720 * gcc.c (LINK_PIE_SPEC): Define.
5721 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5722 (option_map): Add --pie -> -pie mapping.
5723 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5724 and -fPIE the same way as -fPIC.
5725 * config/openbsd.h (ASM_SPEC): Likewise.
5726 * config/frv/frv.h (ASM_SPEC): Likewise.
5727 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5728 * config/arm/semi.h (ASM_SPEC): Likewise.
5729 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5730 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5731 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5732 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5733 * config/m68k/linux.h (CPP_SPEC): Likewise.
5734 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5735 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5736 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5737 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5738 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5739 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5740 * config/netbsd-aout.h (ASM_SPEC): Likewise.
5741 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5742 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5743 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5744 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5745 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5746 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5747 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5748 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5749 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5750 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5751 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5753 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5754 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5755 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5756 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5757 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5758 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5759 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5760 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5762 2003-06-03 Jakub Jelinek <jakub@redhat.com>
5764 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5765 != 0 handling. Pass 0 to store_by_pieces.
5766 (expand_builtin_mempcpy): Add endp argument. Don't call
5767 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5768 directly. If ignoring result, only do expand_call.
5769 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
5771 (expand_builtin_strncpy, expand_builtin_memset): Adjust
5772 store_by_pices callers.
5773 (expand_builtin): Adjust expand_builtin_memcpy and
5774 expand_builtin_mempcpy callers.
5775 * expr.c (can_move_by_pieces): New function.
5776 (move_by_pieces): Add endp argument, return to resp. memory at end
5777 or one byte earlier depending on endp.
5778 (store_by_pieces): Likewise.
5779 (emit_block_move): Adjust call to move_by_pieces.
5780 (emit_push_insn): Adjust move_by_pieces caller.
5781 * expr.h (can_move_by_pieces): New prototype.
5782 (store_by_pieces): Adjust prototypes.
5783 * rtl.h (move_by_pieces): Adjust prototype.
5784 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5787 2003-06-03 Ben Elliston <bje@wasabisystems.com>
5789 * doc/md.texi (Processor pipeline description): Improve wording.
5791 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
5793 * c-opts.c (c_common_handle_option): New, pulled out of
5794 c_common_decode_option. Substitute uses of argv.
5795 (c_common_decode_option): Broken into two.
5797 2003-06-02 Roger Sayle <roger@eyesopen.com>
5798 Zack Weinberg <zack@codesourcery.com>
5800 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
5801 test of TREE_CONSTANT_POOL_ADDRESS_P.
5803 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5805 * mips.c: Don't include output.h twice.
5806 * stormy16.c: Likewise.
5807 * xtensa.c: Likewise.
5808 * output.h: Protect against multiple inclusion.
5810 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
5812 * sh.h (OLD_ARG_MODE): New macro.
5813 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5814 (FUNCTION_ARG_1): Break out of:
5815 (FUNCTION_ARG). Use OLD_ARG_MODE.
5817 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5819 * gcc/config.gcc Add support multilib parts for m32rx processor.
5821 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5823 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5824 (mostlyclean): Delete c-options.c and c-options.h.
5826 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
5828 * c-opts.c (CL_REJECT_NEGATIVE): New.
5829 (c_common_decode_option): Update to use it.
5830 * c.opt: Update documentation; use RejectNegative.
5831 * opts.sh: Handle RejectNegative.
5833 2003-06-01 Zack Weinberg <zack@codesourcery.com>
5835 * ggc-page.c (init_ggc): Give better diagnostics on failure to
5837 * toplev.c (crash_signal): Reset handling for received signal
5840 2003-06-02 Ben Elliston <bje@wasabisystems.com>
5842 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
5843 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
5844 (arm_use_dfa_pipeline_interface): Implement.
5845 * config/arm/arm.md (arm): New automaton.
5846 (write_buf): Remove function units; new cpu unit.
5847 (write_blockage): Remove function units; new cpu unit.
5848 (core): Remove function units; new cpu unit.
5849 (r_mem_f_wbuf): New instruction reservation.
5850 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5851 (store1_ldsched, store2, store3, store4): Likewise.
5852 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5853 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5854 (multi_cycle, single_cycle): Likewise.
5855 * config/arm/fpa.md (armfp): New automaton.
5856 (fpa): Remove function units; new cpu unit.
5857 (fpa_mem): Remove function unit; new cpu unit.
5858 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5859 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5861 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5863 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5864 * c-format.c (enum format_type): Add asm_fprintf_format_type.
5865 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5866 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5867 (format_types_orig): Renamed from format_types. Add new data.
5868 (format_types): Declare as pointer.
5869 (handle_format_attribute): Move later in file so we have all
5870 necessary declarations. Add section to capture HOST_WIDE_INT.
5871 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5872 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5874 2003-06-01 Andreas Jaeger <aj@suse.de>
5876 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5877 ROUND_TYPE_SIZE_UNIT.
5879 * stor-layout.c (finalize_record_size): Remove usages of
5880 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5881 (finalize_type_size): Likewise.
5882 (layout_type): Likewise.
5884 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5886 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5888 * config/d30v/d30v.h: Remove text copied from the manual.
5890 2003-06-01 Roger Sayle <roger@eyesopen.com>
5891 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5892 Geoffrey Keating <geoffk@apple.com>
5894 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5895 constants as condition code values.
5897 2003-06-01 DJ Delorie <dj@redhat.com>
5899 * cppmacro.c (warn_of_redefinition): Handle cases where the two
5900 definitions have different numbers of tokens.
5902 2003-06-01 Andreas Jaeger <aj@suse.de>
5904 * gen-protos.c (main): Readd unused attribute for argc.
5906 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
5908 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5909 * c.opt: End in blank line.
5910 * opts.sh: Take AWK from environment if available; use C locale.
5912 2003-06-01 Andreas Schwab <schwab@suse.de>
5914 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5916 2003-06-01 Andreas Jaeger <aj@suse.de>
5918 * gen-protos.c (main): Revert patch to check for argument.
5920 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5923 * config/i386/i386.md (length attribute): Set length to 4
5924 for instructions of type "fcmp".
5926 2003-06-01 Andreas Jaeger <aj@suse.de>
5928 * toplev.c: Use ISO C90 prototypes.
5930 * toplev.h: Use ISO C90 prototypes.
5932 * genrecog.c: Use ISO C90 prototypes.
5933 (nodes_identical): Correct declaration to match prototype.
5934 (maybe_both_true): Likewise.
5935 (merge_trees): Likewise.
5937 * genpeep.c (gen_peephole): Remove #if 0 code.
5938 Use ISO C90 prototypes.
5940 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5941 Remove #if 0'ed function simplify_by_alternatives.
5942 (optimize_attrs): Remove #if 0'ed code.
5944 Use ISO C90 prototypes.
5945 (make_canonical): Remove #if 0'ed code.
5946 (convert_const_symbol_ref): Remove #if 0'ed function.
5948 * gen-protos.c (main): Check for argument.
5950 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5952 * params.h: Use ISO C90 prototypes.
5953 * params.c: Likewise.
5956 * lists.c: Likewise.
5957 * errors.c: Likewise.
5958 * errors.h: Likewise.
5959 * gencodes.c: Likewise.
5960 * genpreds.c: Likewise.
5961 * genattr.c: Likewise.
5962 * gen-protos.c: Likewise.
5963 * genflags.c: Likewise
5964 * genconditions.c: Likewise.
5965 * genautomata.c: Likewise.
5966 * gencheck.c: Likewise.
5967 * genconfig.c: Likewise.
5968 * genconstants.c: Likewise.
5969 * genemit.c: Likewise.
5970 * genextract.c: Likewise.
5971 * gengenrtl.c: Likewise.
5972 * gengtype.c: Likewise.
5973 * gengtype.h: Likewise.
5974 * genopinit.c: Likewise.
5975 * genoutput.c: Likewise.
5976 * gensupport.c: Likewise.
5977 * gensupport.h: Likewise.
5979 * sdbout.h: Use ISO C90 prototypes.
5981 * sdbout.c (CONTIN): Removed empty macro.
5982 (sdbout_one_type): Remove CONTIN usages.
5984 (tag_of_ru_type): Remove #if 0'ed function.
5985 (sdbout_symbol): Remove #if 0'ed code.
5986 (sdbout_one_type): Remove a #if 1.
5987 (sdbout_one_type): Remove #if 0'ed code.
5988 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5989 Remove PARAMS, use ISO C90 prototypes for all functions.
5991 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
5993 * rtl.def (CONST_DOUBLE): Update comment.
5995 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
5997 * opts.sh: Remove path from sort.
5999 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
6002 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
6003 TARGET_SPE for SPE_VECTOR_MODE.
6005 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
6007 * toplev.c (botch): Remove.
6009 (set_Wunused): Comment.
6010 (set_Wextra): Comment.
6012 (rest_of_compilation): Factor out common code into functions.
6013 (rest_of_handle_inlining): New.
6014 (rest_of_handle_ssa): New.
6015 (rest_of_handle_cse): New.
6016 (rest_of_handle_gcse): New.
6017 (rest_of_handle_loop_optimize): New.
6018 (rest_of_handle_jump_bypass): New.
6019 (rest_of_handle_sibling_calls): New.
6020 (rest_of_handle_null_pointer): New.
6021 (rest_of_handle_addresof): New.
6022 (rest_of_handle_flow): New.
6023 (rest_of_handle_branch_prob): New.
6024 (rest_of_handle_if_conversion): New.
6025 (rest_of_handle_tracer): New.
6026 (rest_of_handle_loop2): New.
6027 (rest_of_handle_cse2): New.
6028 (rest_of_handle_life): New.
6029 (rest_of_handle_combine): New.
6030 (rest_of_handle_if_after_combine): New.
6031 (rest_of_handle_regmove): New.
6032 (rest_of_handle_sched): New.
6033 (rest_of_handle_old_regalloc): New.
6034 (rest_of_handle_new_regalloc): New.
6035 (rest_of_handle_regrename): New.
6036 (rest_of_handle_reorder_blocks): New.
6037 (rest_of_handle_sched2): New.
6038 (rest_of_handle_new_regalloc): New.
6039 (rest_of_handle_old_regalloc): New.
6040 (rest_of_handle_regrename): New.
6041 (rest_of_handle_reorder_blocks): New.
6042 (rest_of_handle_stack_regs): New.
6043 (rest_of_handle_machine_reorg): New.
6044 (rest_of_handle_delay_slots): New.
6045 (rest_of_handle_final): New.
6047 * toplev.h (botch): Remove prototype.
6050 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
6052 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
6053 * c-opts.c: Include c-options.h and c-options.c.
6054 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
6055 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
6056 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
6057 OPT, opt_comp): Remove.
6058 (missing_arg, c_common_init_options, c_common_decode_option,
6059 write_langs): Update for macro redefinitions and enumeration
6061 * c.opt, opts.sh: New files.
6062 * doc/passes.texi: Update.
6064 2003-05-31 Andreas Jaeger <aj@suse.de>
6066 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
6069 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
6071 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
6073 * system.h: Poison ALLOCATE_TRAMPOLINE.
6075 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
6076 * system.h: Poison HANDLE_PRAGMA.
6078 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
6080 * doc/invoke.texi: Update dump file names.
6082 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6084 * c-format.c (format_length_info, format_char_info,
6085 format_flag_spec, format_flag_pair, format_kind_info):
6086 De-const-ify structure members.
6088 2003-05-31 Roger Sayle <roger@eyesopen.com>
6090 * flags.h (flag_wrapv): New flag controlling overflow semantics.
6091 * toplev.c (flag_wrapv): Declare the variable with default false.
6092 (lang_independent_options): New option "-fwrapv" to set the above.
6094 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
6095 as x, when signed arithmetic overflow wraps around.
6096 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
6097 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
6098 overflow when flag_wrapv is true.
6100 * doc/invoke.texi: Document new -fwrapv command line option.
6101 * doc/c-tree.texi: Mention that the overflow semantics of
6102 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6103 upon both flag_wrapv and flag_trapv.
6105 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6107 * doc/install.texi (mips-sgi-irix5): Add missing
6110 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6112 * doc/md.texi (Machine Constraints): Document
6113 missing SPARC constraints.
6115 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6117 * doc/md.texi (Automaton pipeline description): Use
6118 "type" instead of "cpu" as the attribute in the examples.
6120 2003-05-30 Stan Shebs <shebs@apple.com>
6122 * system.h: Poison OBJC_PROLOGUE.
6124 2003-05-30 Roger Sayle <roger@eyesopen.com>
6126 * emit-rtl.c (gen_complex_constant_part): New function for getting
6127 the constant real or imaginary part of a complex constant.
6128 (gen_realpart): Use it.
6129 (gen_imagpart): Likewise.
6131 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
6133 * doc/invoke.texi: Fix typos.
6134 * doc/rtl.texi: Likewise.
6136 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6138 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6140 * config/h8300/crtn.asm: Likewise.
6141 * config/h8300/lib1funcs.asm: Likewise.
6142 * config/h8300/h8300.c (asm_file_start): Likewise.
6143 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6144 h8300snelf emulations for normal mode.
6145 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6146 emulations for normal mode.
6148 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6150 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6151 true if TARGET_NORMAL_MODE.
6153 2003-05-30 Roger Sayle <roger@eyesopen.com>
6155 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6156 making a substitution.
6157 (dead_libcall_p): If directly replacing a libcall with a
6158 constant value produces an invalid instruction, also try forcing
6159 the constant into the constant pool.
6160 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6161 obvious that the source is a constant.
6162 (compress_float_constant): Use set_unique_reg_note to place
6163 REG_EQUAL notes on instructions.
6165 2003-05-30 Eric Christopher <echristo@redhat.com>
6167 * config/mips/mips.c (extern_list): Add GTY marker.
6168 (extern_head): Separate out definition. Add marker.
6169 (mips_output_external): Use ggc_alloc for extern_list
6171 (mips_output_external_libcall): Ditto.
6173 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
6175 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6178 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6180 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6182 (PRINT_OPERAND): Likewise.
6184 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6186 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6187 -mdebug/-no-mdebug switches ...
6188 (MDEBUG_ASM_SPEC): ... here.
6190 (EXTRA_SPECS): Initialize mdebug_asm_spec.
6192 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
6194 * gthr-gnat.c: Remove #undef UNUSED.
6195 (__gnat_default_lock, __gnat_default_unlock): Prototype.
6196 (__gnat_task_lock, __gnat_task_unlock): Make declarations
6198 (__gnat_install_locks): Convert declaration to ISO C90, make
6199 parameter declarations prototypes, and remove blank line.
6200 * gthr-gnat.h (__gnat_install_locks): Make parameter
6201 declarations prototypes.
6203 2003-05-29 Jason Merrill <jason@redhat.com>
6205 * Makefile.in (unstrap): Remove stage_last after make unstage1.
6207 2003-05-29 Roger Sayle <roger@eyesopen.com>
6209 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6211 2003-05-29 Roger Sayle <roger@eyesopen.com>
6212 Kaveh Ghazi <ghazi@caip.rutgers.edu>
6215 * mips-tfile.c (main): Use getopt_long instead of getopt.
6216 Add new command line option --version to display version.
6217 Treat --verbose like -v to report a single line version.
6218 (options): New global variable for getopt_long.
6219 * mips-tdump.c (main): Use getopt_long instead of getopt.
6220 New command line options -v, --version and -verbose to display
6221 the program version number (to match mips-tfile's behavior).
6222 (options): New global variable for getopt_long.
6224 * gcov.c (options): Zero-terminate getopt_long array.
6225 * gcov-dump.c (options): Likewise.
6227 * Makefile.in (mips-tdump.o): Add dependency on version.h.
6229 2003-05-29 Stan Shebs <shebs@apple.com>
6231 Remove OBJC_PROLOGUE everywhere.
6232 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6233 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6234 * config/d30v/d30v.h: Similarly.
6235 * config/ip2k/ip2k.h: Similarly.
6236 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6238 2003-05-29 Roger Sayle <roger@eyesopen.com>
6240 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6241 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
6242 (expand_unreachable_stmt): Expand unreachable while statements
6243 using genrtl_do_stmt_1.
6245 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
6247 * config/mips/mips-protos.h (mips_output_load_label): Declare.
6248 * config/mips/mips.c (mips_output_load_label): New function.
6249 (mips_output_conditional_branch): Use it.
6250 * config/mips/mips.md (jump): And here.
6252 2003-05-28 Bob Wilson <bob.wilson@acm.org>
6254 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
6255 (xtensa_split_operand_pair): New proto.
6256 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
6257 (smalloffset_double_mem_p): Delete.
6258 (gen_float_relational, printx, print_operand, xtensa_va_arg):
6260 (xtensa_split_operand_pair): New.
6261 (xtensa_dbx_register_number): Fix formatting.
6262 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
6263 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
6264 instead of splitting them into single-word moves. Remove unnecessary
6265 checks for reload_in_progress and reload_completed.
6266 (movdi_internal, movdf_internal): Change to post-reload split patterns.
6267 Add constraints to allow constant operands.
6268 (movsf_internal): Allow CONST_INT operands.
6270 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
6272 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
6273 fragment i386/x-mingw32.
6274 * config/i386/x-mingw32: New file. Make local_includedir
6275 relative to EXEC_PREFIX.
6277 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
6279 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6280 (MD_STARTFILE_PREFIX): Define.
6282 2003-05-27 Denis Chertykov <denisc@overta.ru>
6284 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6286 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6287 call of cselib_invalidate_regno.
6289 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
6291 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6292 -lthread to -lpthread.
6294 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6295 Bruce Korb <bkorb@gnu.org>
6296 Arno Klaassen <arno@heho.snv.jussieu.fr>
6298 * fixinc/inclhack.def: Add missing declaration of getpagesize()
6299 to unistd.h on Solaris 2.5.1.
6300 Fix prototype of recv() and send() in sys/socket.h on
6301 Solaris 2.5.1 and 2.6.
6302 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6303 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6304 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6305 * fixinc/fixincl.x: Regenerate.
6307 2003-05-27 Jason Merrill <jason@redhat.com>
6309 * tree.c (expr_first, expr_length): New fns.
6310 * tree.h: Declare them.
6312 * tree.c (iterative_hash_expr): Hash commutative expressions
6315 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6317 * tree.h (contains_placeholder_p): Now returns bool.
6318 (CONTAINS_PLACEHOLDER_P): New macro.
6319 (type_contains_placeholder_p): New function.
6320 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6321 (contains_placeholder_p): Now returns bool.
6322 Rework to use CONTAINS_PLACEHOLDER_P macro.
6323 (type_contains_placeholder_p): New function.
6324 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6325 type_contains_placeholder_p.
6326 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
6327 Use CONTAINS_PLACEHOLDER_P macro.
6328 * builtins.c (fold_builtin): Likewise.
6329 * calls.c (initialize_argument_information): Likewise.
6330 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6331 * explow.c (expr_size): Likewise.
6332 * expr.c (store_constructor, get_inner_reference): Likewise.
6333 * function.c (assign_parms): Likewise.
6334 * stor-layout.c (variable_size): Likewise.
6336 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6338 * diagnostic.h (output_verbatim, verbatim): Remove printf
6341 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6343 * doc/contrib.texi (Contributors): Update Kean Johnston.
6345 2003-05-24 David Edelsohn <edelsohn@gnu.org>
6347 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6349 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
6351 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6352 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6353 Replace "GNU CC" with "GCC".
6355 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
6357 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6358 intermediate computation.
6360 2003-05-23 Eric Christopher <echristo@redhat.com>
6362 * config/mips/mips.md (clzsi, clzdi): New patterns.
6364 2003-05-23 Geoffrey Keating <geoffk@apple.com>
6366 * gcc.c (default_compilers): Use -o to specify preprocessor's output
6367 file. Make -no-integrated-cpp work when building PCH files.
6368 * objc/lang-specs.h: Likewise.
6370 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
6372 * fixinc/Makefile.in: Correct description.
6373 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6374 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6375 fixinc/genfixes: Replace "GNU CC" with "GCC".
6377 2003-05-23 Roger Sayle <roger@eyesopen.com>
6379 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
6380 builtin functions (and their __builtin_* variants).
6381 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6382 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6385 * doc/extend.texi: Document new tan and atan builtins, and
6386 their float and long double variants.
6388 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6390 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6391 __sparcv9 in the TARGET_ARCH64 case.
6393 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
6395 * i386.c (ix86_reorg): Calls are also jumps.
6397 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
6399 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6400 note containing an EXPR_LIST, process all the arguments.
6402 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
6403 Andreas Jaeger <aj@suse.de>
6405 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6406 do not use assertion.
6408 2003-05-23 Mike Stump <mrs@apple.com>
6410 * tlink.c (scan_linker_output): Add support for darwin linker, as it
6411 emits unresolved symbols one per line, consuming the entire line.
6413 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
6414 Zack Weinberg <zack@codesourcery.com>
6416 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6417 * config/m68k/m68k.c (m68k_output_function_prologue):
6418 Remove code under #if NEED_PROBE.
6419 * config/m68k/m68k.h: Don't define NEED_PROBE.
6420 * config/m68k/m68k.md: Remove "probe" insn.
6421 * doc/md.texi: Remove documentation of "probe" pattern.
6423 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
6425 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6427 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6429 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6430 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6432 2003-05-22 Roger Sayle <roger@eyesopen.com>
6434 * real.c (real_maxval): New function to return the largest finite
6435 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6436 * real.h (real_maxval): Prototype here.
6437 * fold-const.c (fold_inf_compare): Transform comparisons against
6438 +-Infinity into comparisons against DBL_MAX (or equivalent).
6440 2003-05-22 Mike Stump <mrs@apple.com>
6442 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6445 2003-05-22 DJ Delorie <dj@redhat.com>
6447 * calls.c (expand_call): If the arg block is going to grow
6448 downward, we need argblock to point to the top of the block,
6451 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6453 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6455 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6456 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6458 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6460 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6464 2003-05-22 Zack Weinberg <zack@codesourcery.com>
6467 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6468 expressions to prevent triggering on recent curses.h,
6469 linux/nls.h, or X11/Xlib.h.
6470 (stdio_va_list): Add _G_va_list to bypass pattern.
6471 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6472 * fixinc/fixincl.x: Regenerate.
6474 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6476 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
6477 switches when --target-help option is specified.
6479 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6482 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6483 failure with Sun assembler 5.0 Alpha 03/27/98.
6485 2003-05-21 Loren James Rittle <ljrittle@acm.org>
6487 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
6488 to match system compiler convention.
6490 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6492 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6493 value, not just if defined.
6494 Update copyright year.
6496 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6499 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6500 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
6501 option is used without `-static'.
6502 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6503 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6505 2003-05-21 Bob Wilson <bob.wilson@acm.org>
6507 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6508 TARGET_SERIALIZE_VOLATILE): Delete.
6509 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6510 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6511 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6512 "-mno-serialize-volatile".
6513 * config/xtensa/xtensa.c (print_operand): Remove checks of
6514 TARGET_SERIALIZE_VOLATILE.
6515 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6516 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6517 "-mserialize-volatile" and "-mno-serialize-volatile" options.
6519 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6521 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6522 (nested_function): Likewise.
6523 (notype_nested_function): Likewise.
6525 2003-05-21 Nick Clifton <nickc@redhat.com>
6527 * config/stormy16/stormy-abi: Update overflow type for
6528 R_XSTORMY16_16 reloc.
6530 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6532 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6533 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6534 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6535 * print-tree.c (print_node): Remove ambient-boundedness.
6536 * tree.h (tree_common): Remove bounded_flag.
6537 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6538 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6539 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6540 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6541 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6543 (TYPE_QUALS): Remove BOUNDED.
6544 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6545 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6546 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6547 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6548 VA_LIST_POINTER_DEPTH): Remove.
6549 (struct tree_type): Remove pointer_depth.
6551 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6553 * c-pretty-print.c (pp_c_integer_literal): Use
6554 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6556 2003-05-20 Roger Sayle <roger@eyesopen.com>
6557 Kazu Hirata <kazu@cs.umass.edu>
6558 Joern Rennecke <joern.rennecke@superh.com>
6560 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
6561 setcc and jump, if they exist. If substituted instruction
6562 fails to validate, store current effort in a REG_EQUAL note.
6563 (cprop_insn): Don't attempt further substitutions if the
6564 current instruction has been deleted.
6565 (local_cprop_pass): Likewise.
6567 * jump.c (redirect_jump): Also update REG_EQUAL note, if
6568 one is attached to the jump instruction.
6569 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6571 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6574 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6577 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6579 * genautomata.c (output_description, output_automaton_units,
6580 output_state_arcs): Add missing specifiers.
6582 2003-05-20 Bob Wilson <bob.wilson@acm.org>
6584 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6585 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6586 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
6587 (nsau): Rename to do_nsau. Provide alternate version for use when
6588 the NSAU instruction is available.
6589 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6590 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6591 * config/xtensa/xtensa-config.h: Update comments to match binutils.
6592 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6593 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6594 (TARGET_ABS, TARGET_ADDX): Define.
6595 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6596 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6597 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6598 *subx8): Set predicate condition to TARGET_ADDX.
6599 (abssi2): Set predicate condition to TARGET_ABS.
6600 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6601 "-maddx", and "-mno-addx" options.
6602 (Xtensa Options): Likewise. Also tag some opcode names with @code.
6604 2003-05-20 Kevin Ryde <user42@zip.com.au>
6605 Wolfgang Bangerth <bangerth@dealii.org>
6608 * doc/extend.texi: Put a warning into the documentation
6609 of attribute regparm.
6611 2003-05-20 Jason Merrill <jason@redhat.com>
6613 * tree.c (expr_last): New fn.
6614 * tree.h: Declare it.
6615 * objc/objc-act (expr_last): Rename to objc_expr_last.
6617 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
6619 * sh.c (sh_register_move_cost): Add clase for moving between
6620 FP registers and MAC registers.
6622 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
6624 * pa/milli64.S ($$mulI): Fix typo.
6626 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
6628 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6629 (nonlocal_set_p): Remove initial blank line.
6630 * dwarf2out.c (simple_type_size_in_bits): Likewise.
6631 * et-forest.c (et_forest_create): Likewise.
6632 * explow.c (stabilize): Likewise.
6633 * fix-header.c (write_lbrac): Likewise.
6634 * graph.c (start_fct, node_data): Likewise.
6635 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6636 * rtlanal.c (global_reg_mentioned_p): Likewise.
6637 * tree.c (bit_position): Likewise.
6639 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
6641 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6642 -lthread to -lpthread.
6644 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
6646 * c-opts.c (c_common_decode_option): Don't accept dollars
6647 as identifier characters in assembly.
6648 * doc/cpp.texi: Document this.
6650 2003-05-19 Seth Arnold <sarnold@wirex.com>
6651 Aldy Hernandez <aldyh@redhat.com>
6653 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6656 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
6658 * doc/tm.texi (function_arg): Fix typo.
6660 2003-05-19 Matt Austern <austern@apple.com>
6662 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6663 * c-common.h (warn_invalid_offsetof): Declare.
6664 * c-common.c (warn_invalid_offsetof): Define.
6665 * doc/invoke.texi: Document -Winvalid-offsetof.
6666 * testsuite/g++.dg/other/offsetof3.C: New.
6667 * testsuite/g++.dg/other/offsetof4.C: New.
6669 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6670 David Edelsohn <edelsohn@gnu.org>
6672 * config/rs6000/rs6000.c (rs6000_alignment_string,
6673 rs6000_alignment_flags): New variables.
6674 (rs6000_parse_alignment_option): New function.
6675 (rs6000_override_options): Call it.
6676 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6677 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6679 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6680 natural alignment if TARGET_NATURAL_ALIGNMENT
6681 (ROUND_TYPE_ALIGN): Always use default record alignment if
6682 TAGET_NATURAL_ALIGNMENT.
6683 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6684 (ROUND_TYPE_ALIGN): Same.
6685 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6686 (ROUND_TYPE_ALIGN): Same.
6687 * doc/invoke.texi (Option Summary, PowerPC Options): Document
6690 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
6692 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6693 of a function using ASMSPEC, prepend a star.
6695 2003-05-19 Jason Merrill <jason@redhat.com>
6697 * tree-inline.c (copy_body_r): Avoid generating &* during inline
6700 2003-05-19 Andrew Macleod <amacleod@redhat.com>
6702 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6703 not mark assignments to the hard frame pointer as being stack
6705 (xstormy16_expand_epilogue): Mark adjustments to the stack
6706 pointer as being stack frame related.
6708 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6710 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6711 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6712 (PREDICATE_CODES): Add hilo_operand.
6713 * config/mips/mips.c (hilo_operand): New predicate.
6714 (mips_adjust_insn_length): Account for the number nops that might
6715 be needed to avoid hardware hazards.
6716 * config/mips/mips.md (dslot): Remove attribute.
6717 (hazard): New attribute.
6718 (can_delay): Use it. Check for calls, branches & jumps.
6719 (muldi3): Use the standard dmult pattern for mips16 code.
6720 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6722 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6724 * config/mips/mips-protos.h (final_prescan_insn,
6725 mips_count_memory_refs, mips_fill_delay_slot): Remove.
6726 * config/mips/mips.h (delay_type, dslots_load_total,
6727 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6728 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6729 mips_load_reg3, mips_load_reg4): Remove.
6730 (MASK_STATS): Remove.
6731 (MASK_EXPLICIT_RELOCS): Reuse its value.
6732 (TARGET_STATS): Remove.
6733 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6734 Warn that -mstats is now ignored.
6735 (FINAL_PRESCAN_INSN): Undefine.
6736 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6737 (ASM_OUTPUT_REG_POP): Likewise.
6738 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6739 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6740 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6741 mips_fill_delay_slot, mips_count_memory_refs,
6742 final_prescan_insn): Remove.
6743 (output_block_move): Remove calls to mips_count_memory_refs.
6744 (print_operand): Remove printing of #nop for TARGET_STATS.
6745 (mips_output_function_epilogue): Remove TARGET_STATS code.
6746 Reorganize setting of fnnmae.
6747 * config/mips/mips.md: Remove handling of dslot statistics
6748 throughout file. Change all fcmp patterns into normal asm
6749 templates, removing calls to mips_fill_delay_slot.
6750 * doc/invoke.texi: Remove documentation of -mstats.
6752 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6754 * config/mips/mips.c (mips_class_max_nregs): Return the number of
6757 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6759 * config/mips/mips.c (override_options): Disable explicit
6760 relocs for old ABIs unless using gas.
6762 2003-05-18 Eric Christopher <echristo@redhat.com>
6764 * config/mips/mips.h: Remove definition of g_switch_value.
6766 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
6768 * flags.h (g_switch_value): Change to an unsigned
6770 * toplev.c (g_switch_value): Likewise.
6772 * config/alpha/alpha.c (small_symbolic_operand): Remove
6773 g_switch_value cast.
6774 (alpha_in_small_data_p): Cast size to an unsigned
6777 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6778 unsigned HOST_WIDE_INT.
6779 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6780 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6782 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6783 unsigned HOST_WIDE_INT.
6784 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6785 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6786 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6788 * config/rs6000/rs6000.c (rs6000_file_start): Use
6789 HOST_WIDE_INT_PRINT_UNSIGNED.
6790 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6791 (rs6000_elf_in_small_data_p): Cast size to unsigned
6793 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6795 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6797 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6798 g_switch_value cast.
6800 2003-05-18 Roger Sayle <roger@eyesopen.com>
6801 Zack Weinberg <zack@codesourcery.com>
6804 * builtins.c (expand_builtin_memcpy): Call force_operand on
6805 expressions and use simplify_gen_binary to create the addition.
6807 2003-05-18 Andreas Schwab <schwab@suse.de>
6809 * config/m68k/m68k.md: Use define_constants for unspec numbers.
6811 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
6813 * config/sparc/sparc.h: Define sparc for now.
6815 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
6817 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6819 * config/stormy16/stormy16.h: Remove about 3000 lines of
6820 target-independent comments. Update copyright notice.
6822 * doc/collect2.texi: GNU CC -> GCC.
6823 * doc/headerdirs.texi: GNU CC -> GCC.
6825 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
6827 * hashtable.h (struct ht_identifier): Add data member "hash_value".
6828 * hashtable.c (ht_lookup): Use it when searching, remember.
6829 (ht_expand): Do not recompute.
6830 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6832 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
6834 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6836 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
6838 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6840 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6841 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6842 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6843 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6844 config/arm/linux-elf.h, config/arm/rtems-elf.h,
6845 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6846 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6847 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6848 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6849 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6850 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6851 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6852 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6853 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6854 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6855 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6856 Don't define __ELF__.
6857 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6859 * doc/cpp.texi: Document __ELF__.
6860 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
6862 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6864 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6866 * c-errors.c (pedwarn_c99): Likewise.
6867 * c-format.c (status_warning): Likewise.
6868 * c-semantics.c (build_stmt): Likewise.
6869 * calls.c (emit_library_call, emit_library_call_value): Likewise.
6870 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6871 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6872 * diagnostic.c (build_message_string, output_printf,
6873 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6874 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6875 error_with_decl, fnotice): Likewise.
6876 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6877 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6878 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6879 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6880 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6881 dw2_asm_output_encoded_addr_rtx): Likewise.
6882 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6883 * errors.c (warning, error, fatal, internal_error): Likewise.
6884 * final.c (output_operand_lossage, asm_fprintf): Likewise.
6885 * fix-header.c (fatal): Likewise.
6886 * gcc.c (fatal, error, notice): Likewise.
6887 * gcov.c (fnotice): Likewise.
6888 * genattrtab.c (attr_rtx, attr_printf): Likewise.
6889 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6890 * gensupport.c (message_with_line): Likewise.
6891 * mips-tfile.c (fatal, error): Likewise.
6892 * protoize.c (notice): Likewise.
6893 * ra-debug.c (ra_debug_msg): Likewise.
6894 * read-rtl.c (fatal_with_file_and_line): Likewise.
6895 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6896 * tree.c (build, build_nt, build_function_type_list): Likewise.
6898 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6900 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6901 * gcc.c (cpp_predefines): Remove.
6902 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6903 (static_specs): Remove predefines.
6904 * system.h: Poison CPP_PREDEFINES.
6905 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6906 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6908 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6910 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6911 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6912 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6913 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6915 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6918 * c-common.c, c-common.h (dollars_in_ident): Remove.
6919 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6920 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6921 * cpphash.h (warned_dollar): Rename warn_dollars.
6922 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6923 Permit dollars regardless of -std=.
6924 (post_options): Set warn_dollars.
6925 * cpplex.c (forms_identifier_p): Use warn_dollars.
6926 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6927 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6928 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6929 Update documentation.
6931 2003-05-17 Andreas Schwab <schwab@suse.de>
6933 * config/m68k/m68k.c (m68k_output_function_prologue): Use
6934 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6935 formatting a HOST_WIDE_INT.
6936 (m68k_output_function_epilogue): Likewise.
6938 2003-05-17 Zack Weinberg <zack@codesourcery.com>
6940 * doc/install.texi: Remove information about desupported targets.
6942 2003-05-17 Andreas Schwab <schwab@suse.de>
6944 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6945 * config/m68k/linux.h: Likewise.
6946 * config/m68k/m68k-none.h: Likewise.
6947 * config/m68k/netbsd-elf.h: Likewise.
6948 * config/m68k/sgs.h: Likewise.
6949 * config/m68k/m68k.h: Likewise.
6950 * config/m68k/m68k.md: Likewise.
6951 * config/m68k/m68k.c: Likewise.
6952 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6954 * doc/invoke.texi (Option Summary): Remove -mfpa.
6955 (M680x0 Options): Likewise.
6957 2003-05-17 David Edelsohn <edelsohn@gnu.org>
6959 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6961 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6963 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6964 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6965 config/sparc/rtemself.h, config/sparc/sol2-64.h,
6966 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6967 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6969 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6971 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6972 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6974 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6976 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6977 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6978 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6979 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6980 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6981 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6983 * sparc/sysv4-only.h: New.
6985 2003-05-17 Alan Modra <amodra@bigpond.net.au>
6987 * function.c (assign_parms): Check for zero size args.
6989 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6991 * cfgloopanal.c (test_for_iteration): Use string concatentation on
6992 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6993 function calls into one.
6994 * dbxout.c (dbxout_symbol): Likewise.
6995 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6996 * dwarf2asm.c (dw2_asm_output_data_uleb128,
6997 dw2_asm_output_data_sleb128): Likewise.
6998 * genrecog.c (debug_decision_2): Likewise.
6999 * loop.c (emit_prefetch_instructions): Likewise.
7000 * print-rtl.c (print_rtx): Likewise.
7001 * print-tree.c (print_node_brief, print_node): Likewise.
7002 * ra-debug.c (dump_igraph, dump_graph_cost,
7003 dump_static_insn_cost): Likewise.
7004 * ra-rewrite.c (dump_cost): Likewise.
7005 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7006 * sreal.c (dump_sreal): Likewise.
7007 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
7008 * varasm.c (assemble_vtable_entry): Likewise.
7010 * avr.c (avr_output_function_prologue,
7011 avr_output_function_epilogue, print_operand): Fix format specifier
7013 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
7014 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
7016 2003-05-16 Geoffrey Keating <geoffk@apple.com>
7018 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
7019 and ! TARGET_STRING cases.
7021 * doc/cppopts.texi (-undef): Fix texinfo warning.
7023 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
7024 * cppfiles.c (validate_pch): When -H is used, print some information
7025 about PCH files found.
7027 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7029 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
7030 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
7031 * config/mips/t-sr71k: Likewise.
7033 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7035 * arc.c (arc_output_function_prologue,
7036 arc_output_function_epilogue): Fix format specifier warnings.
7037 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
7039 * v850.c (print_operand): Fix format specifier warnings.
7041 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
7044 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
7045 format specifier warnings.
7047 * ip2k.c (function_prologue, function_epilogue, print_operand):
7048 Fix format specifier warnings.
7049 * ip2k.md: Likewise.
7051 * i960.c (i960_output_function_prologue, i960_print_operand,
7052 i960_print_operand_addr): Fix format specifier warnings.
7054 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
7055 (i370_output_function_prologue): Fix format specifier warnings.
7056 * i370.h (PRINT_OPERAND): Likewise.
7058 * fr30.c (fr30_print_operand): Fix format specifier warnings.
7060 * dsp16xx.c (print_operand_address): Fix format specifier warning.
7061 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
7063 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
7066 * alpha.c (print_operand_address, alpha_start_function,
7067 unicosmk_output_ssib): Use string concatentation on
7068 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7069 function calls into one.
7070 * arm.c (arm_print_operand): Likewise.
7071 * cris.c (cris_asm_output_mi_thunk): Likewise.
7072 * frv.c (frv_asm_output_mi_thunk): Likewise.
7073 * ia64.c (ia64_print_operand, process_set): Likewise.
7074 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
7076 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
7077 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7078 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
7079 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
7080 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
7081 * s390.c (s390_assemble_integer): Likewise.
7082 * sparc.c (sparc_flat_function_prologue,
7083 sparc_flat_function_epilogue): Likewise.
7084 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
7085 * vax.c (vax_output_mi_thunk): Likewise.
7087 * frv.c (frv_print_operand_memory_reference): Fix format specifier
7089 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
7091 * m68k.c (m68k_output_function_epilogue): Fix format specifier
7094 * stormy16-protos.h (xs_hi_general_operand,
7095 xs_hi_nonmemory_operand): Prototype.
7096 * stormy16.c (xstormy16_output_shift): Fix format specifier
7099 * cris.c: Fix format specifier warnings.
7101 2003-05-16 Nick Clifton <nickc@redhat.com>
7103 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7105 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
7107 * doc/bugreport.texi: Remove most of the of the preface of the
7110 2003-05-16 Jakub Jelinek <jakub@redhat.com>
7112 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7115 2003-05-15 Roger Sayle <roger@eyesopen.com>
7117 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7119 2003-05-15 Eric Christopher <echristo@redhat.com>
7121 * cfgcleanup.c (merge_blocks): Fix return value.
7123 2003-05-15 Eric Christopher <echristo@redhat.com>
7125 * combine.c (expand_compound_operation): Make sure
7126 that zero_extend operation is profitable.
7128 2003-05-15 Richard Henderson <rth@redhat.com>
7130 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7131 code protected by USE_GNULIBC_1.
7133 2003-05-15 Zack Weinberg <zack@codesourcery.com>
7135 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
7136 remove hppa*-*-mpeix* which could not be built, and prune
7137 files from tmake_file= or tm_file= lists that don't exist.
7139 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7140 * config/alpha/t-interix, config/arm/conix-elf.h
7141 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7142 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7143 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7144 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7145 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7146 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7147 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7148 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7149 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7150 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7151 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7152 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7153 * config/m68k/tower-as.h, config/m68k/tower.h
7154 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7155 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7156 * config/m88k/m88k-protos.h, config/m88k/m88k.c
7157 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7158 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7159 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7160 * config/mips/rtems64.h, config/mips/sni-gas.h
7161 * config/mips/sni-svr4.h, config/mips/t-ecoff
7162 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7163 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7164 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7165 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7166 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7167 * config/romp/romp-protos.h, config/romp/romp.c
7168 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7169 * config/rs6000/aix3newas.h, config/rs6000/mach.h
7170 * config/sparc/bsd.h, config/sparc/hal.h
7171 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7172 * config/sparc/lynx.h, config/sparc/netbsd.h
7173 * config/sparc/sp86x-aout.h, config/sparc/splet.h
7174 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7175 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7176 * config/sparc/t-halos, config/sparc/t-sparcbare
7177 * config/sparc/t-splet, config/sparc/t-sunos41
7178 * config/v850/rtems.h: Delete file.
7180 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
7182 * config/rs6000/rs6000-protos.h (function_value): Protoize.
7184 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
7186 * config/rs6000/rs6000.c (rs6000_function_value): New.
7188 2003-05-15 Philip Blundell <philb@gnu.org>
7190 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7192 (arm_tune_xscale): New variable.
7193 (arm_override_options): Set it.
7194 (arm_adjust_cost): Use it in place of arm_arch_xscale.
7195 (arm_gen_load_multiple): Likewise.
7196 (arm_gen_store_multiple): Likewise.
7197 * config/arm/arm.md (is_xscale): Likewise.
7198 * config/arm/arm.h (arm_tune_xscale): Declare.
7200 2003-05-15 Philip Blundell <philb@gnu.org>
7203 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7204 involving invalid constants.
7206 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7208 * pa.c (hppa_expand_prologue): Remove blockage.
7210 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
7212 * doc/bugreport.texi: Remove most of the bug reporting
7213 instructions and merge them into bugs.html.
7215 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
7217 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7218 g_switch_value to unsigned HOST_WIDE_INT.
7220 2003-05-14 Eric Christopher <echristo@redhat.com>
7222 * combine.c: Fix header comments.
7223 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7224 to all calls and prototype.
7226 2003-05-14 Roger Sayle <roger@eyesopen.com>
7228 PR optimization/10764
7229 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7230 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7231 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
7232 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7233 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7234 the corresponding *fyl2x_?fxf3 instructions.
7236 2003-05-14 Bob Wilson <bob.wilson@acm.org>
7238 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7239 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7240 XCHAL_HAVE_L32R): New.
7241 * config/xtensa/xtensa-protos.h (non_const_move_operand,
7242 xtensa_load_constant, xtensa_function_prologue,
7243 xtensa_function_epilogue): Delete prototypes.
7244 (xtensa_expand_prologue): New.
7245 * config/xtensa/xtensa.c (frame_size_const,
7246 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
7247 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
7248 xtensa_function_prologue): Delete.
7249 (add_operand, xtensa_mem_offset): Formatting.
7250 (move_operand): If the const16 option is available, allow any SFmode
7251 and SImode constants.
7252 (xtensa_emit_move_sequence): Inline the former contents of
7253 xtensa_load_constant with modifications to handle the const16 option.
7254 (override_options): Add xtensa_char_to_class['W'] and set it to
7255 the general register class only if the const16 option is enabled.
7256 Fix formatting. Disallow PIC when using the const16 option.
7257 (print_operand): Reorganize to switch on "letter" instead of the
7258 RTL code. Add output_operand_lossage calls for invalid cases.
7259 Add support for 't' and 'b' letters.
7260 (xtensa_expand_prologue): New function to replace
7261 xtensa_function_prologue and xtensa_reorg.
7262 (xtensa_function_epilogue): Declare this as static. Delete code
7263 to print the retw.n or retw instruction.
7264 (xtensa_return_addr): Use A0_REG instead of 0.
7265 (xtensa_rtx_costs): Add costs for using the const16 option.
7266 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
7267 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
7268 (TARGET_SWITCHES): Add "const16" and "no-const16".
7269 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
7270 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
7271 using the const16 option.
7272 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
7273 (TRAMPOLINE_SIZE): Change from 49 to 59.
7274 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
7275 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
7276 when using the const16 option.
7277 (PREDICATE_CODES): Delete non_const_move_operand.
7278 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7280 (movdi, movdf): If the source is a constant, always expand to a
7281 sequence of movsi insns.
7282 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7283 (movsi_internal, movsf_internal): Add alternative using const16 insns.
7284 (movsf): Add const16 support.
7285 (entry, prologue, epilogue): New.
7286 (set_frame_ptr): Add missing mode for unspec_volatile operation.
7287 Likewise for subsequent split pattern.
7288 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7289 "-mconst16" and "-mno-const16" options.
7291 2003-05-14 Richard Henderson <rth@redhat.com>
7293 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7294 to be DImode register. Merge load_symptr.
7295 * config/ia64/ia64.md (load_symptr): Remove.
7297 2003-05-14 Richard Henderson <rth@redhat.com>
7299 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7300 DEFERRED_CONSTANT_P.
7301 * integrate.c (copy_rtx_and_substitute): Update use.
7302 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7303 to the copy generated.
7304 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7305 of the constant to see if we should emit.
7306 (mark_constant): Similarly.
7307 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7309 2003-05-14 David Edelsohn <edelsohn@gnu.org>
7311 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7312 move record condition.
7313 (movdi_internal2): Same.
7315 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
7317 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7318 (GCOV_TAG_*) Force type to gcov_unsigned_t.
7319 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7320 (struct gcov_var): Remove modified. Add start, length, offset,
7321 overread. Have buffer array for libgcov.
7322 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7323 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7324 * gcov-io.c (gcov_open): Set mode, do not read anything.
7325 (gcov_close): Write final block.
7326 (gcov_write_block, gcov_allocate): New.
7327 (gcov_write_bytes): Make static. Write or allocate buffer.
7328 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7330 (gcov_write_string): Adjust.
7332 (gcov_write_length): Adjust. Flush the block.
7333 (gcov_write_tag_length): Buffer can never be null.
7334 (gcov_read_bytes): Make static. Read in block.
7335 (gcov_sync): Moved here. Adjust.
7336 (gcov_seek): Moved here. Adjust.
7337 * coverage.c (read_counts_file): Adjust.
7338 * gcov-dump.c (print_prefix): Add position parameter.
7339 (flag_dump_positions): New flag.
7340 (options, main, print_usage): Add it.
7341 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7342 tag_summary): Adjust.
7343 * gcov.c (read_graph_file, read_count_file): Adjust.
7344 * libgcov.c (gcov_exit): Adjust.
7346 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7347 (libgcov.a): Depend on libgcc.a.
7348 (gcov.o, gcov-dump.o): Add gcov-io.c.
7349 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
7351 * loop.c (check_dbra_loop): Factor common test.
7353 2003-05-14 Ben Elliston <bje@wasabisystems.com>
7355 * doc/md.texi (Automaton pipeline description): Grammar fixes.
7357 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
7359 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7360 (TARGET_INITIALIZER): Include it.
7361 * target.h (struct gcc_target): Add machine_dependent_reorg field.
7362 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
7363 * system.h: Poison MACHINE_DEPENDENT_REORG.
7365 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7366 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7367 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7368 (alpha_handle_trap_shadows): Remove "first insn" parameter.
7369 (alpha_align_insns): Likewise.
7370 (alpha_reorg): Likewise. Make static. Update calls to above
7373 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7374 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7375 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7376 (arm_reorg): Remove parameter. Make static.
7378 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7379 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7380 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7381 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
7384 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7385 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7386 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7387 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
7390 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7391 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7392 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7394 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7395 * config/frv/frv.c: Remove orphaned comment.
7397 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7398 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7399 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7400 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
7403 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7404 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7405 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7406 (emit_insn_group_barriers): Remove "first insn" parameter.
7407 (emit_all_insn_group_barriers): Likewise.
7408 (ia64_reorg): Likewise. Make static. Update calls to above functions.
7409 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7411 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7412 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7413 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7414 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
7417 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7418 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7419 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7420 (m68hc11_reorg): Make static. Remove parameter.
7422 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7423 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7424 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7425 (conditionalize_optimization): Remove parameter.
7426 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
7427 Make static. Update call to conditionalize_optimization.
7429 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7430 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7431 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7432 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
7435 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7436 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7437 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7438 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
7441 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7442 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7443 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7444 (pa_combine_instructions): Remove "first insn" parameter.
7445 (remove_useless_addtr_insns): Likewise.
7446 (pa_reorg): Likewise. Make static. Update calls to above functions.
7448 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7449 commented-out definition.
7451 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7452 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7453 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7454 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
7457 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7458 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7459 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7460 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
7462 (sh_output_mi_thunk): Call sh_reorg directly.
7463 * config/sh/sh.md: Update comment.
7465 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7466 commented-out definition.
7468 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7469 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7470 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7471 (v850_reorg): Make static. Remove parameter.
7473 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7474 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7475 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7476 (xtensa_reorg): Make static. Remove parameter.
7478 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7479 (TARGET_MACHINE_DEPENDENT_REORG): Document.
7481 2003-05-13 Richard Henderson <rth@redhat.com>
7483 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7484 the old decl had instantiated DECL_RTL.
7486 2003-05-13 Mike Stump <mrs@apple.com>
7488 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7490 2003-05-13 Janis Johnson <janis187@us.ibm.com>
7492 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7493 HOST_WIDE_INT argument.
7495 2003-05-13 Jason Merrill <jason@redhat.com>
7497 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7499 * tree.c (iterative_hash_expr): New fn.
7501 * c-semantics.c (emit_local_var): Don't mess with temp slots if
7502 there's no initializer.
7504 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
7506 * final.c (final_scan_insn): Apply the effects of frame-related
7507 delay slot insns before emitting a delayed branch.
7509 2003-05-13 Nick Clifton <nickc@redhat.com>
7511 * config/mcore/mcore.md (jump): Use emit_jump_insn.
7513 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7515 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7516 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7518 2003-05-12 DJ Delorie <dj@redhat.com>
7520 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7521 (emit_push_insn): Don't use push when the source alignment is less
7522 than the stack's push rounding.
7524 2003-05-13 Zack Weinberg <zack@codesourcery.com>
7526 * diagnostic.c (output_format): Add support for %m.
7527 (output_printf, output_verbatim, diagnostic_set_info,
7528 verbatim): Set err_no field of the text_info structure being
7530 (fatal_io_error): Delete function.
7531 * diagnostic.h (text_info): Add err_no field.
7532 * toplev.h (fatal_io_error): Delete prototype.
7534 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7535 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7536 * objc/objc-act.c: Replace all calls to fatal_io_error with
7537 calls to fatal_error; add ": %m" to the end of all the affected
7540 2003-05-13 Zack Weinberg <zack@codesourcery.com>
7542 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7543 * rtl.h: Prototype it.
7544 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7547 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7549 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7550 ("*iorsi3_oi"): Likewise.
7552 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
7554 * arm.md (compare_scc): Use shorter sequence for EQ case.
7555 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7556 (and_scc_scc): Ensure split only applies when there is a dominance
7558 (and_scc_scc_nodom): New insn-and-split pattern.
7560 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
7562 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7563 to _Unwind_SetGRPtr().
7565 2003-05-13 Michael Eager <eager@mvista.com>
7567 * Makefile.in: Initialize program_transform_cross_name from
7568 @program_transform_name@ instead of target_alias.
7570 2003-05-12 Janis Johnson <janis187@us.ibm.com>
7571 Alan Modra <amodra@bigpond.net.au>
7572 Jakub Jelinek <jakub@redhat.com>
7574 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7575 * configure: Rebuild.
7576 * config/rs6000/rs6000-protos.h: Update.
7577 * config/rs6000/rs6000.c (rs6000_tls_size): New.
7578 (rs6000_tls_size_string): New.
7579 (rs6000_parse_tls_size_option): New.
7580 (rs6000_legitimize_tls_address): New.
7581 (rs6000_tls_get_addr): New.
7582 (rs6000_got_sym): New.
7583 (rs6000_tls_symbol_ref): New.
7584 (rs6000_tls_symbol_ref_1): New.
7585 (rs6000_get_some_local_dynamic_name): New.
7586 (rs6000_get_some_local_dynamic_name_1): New.
7587 (TARGET_HAVE_TLS): New.
7588 (TARGET_CANNOT_FORCE_CONST_MEM): New.
7589 (rs6000_override_options): Handle -mtls-size option.
7590 (constant_pool_expr_1): Handle TLS symbols.
7591 (rs6000_legitimize_address): Handle TLS symbols.
7592 (rs6000_tls_referenced_p): New.
7593 (rs6000_legitimate_address): Handle TLS symbols.
7594 (rs6000_emit_move): Handle TLS symbols.
7595 (print_operand): Handle TLS symbols.
7596 (uses_TOC): Handle TLS symbols.
7597 (rs6000_emit_prologue): Use symbol for unspec constant.
7598 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7599 (some_ld_name): New.
7600 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7601 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7602 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7603 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7605 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7606 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7607 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7608 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7609 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7611 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7613 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
7615 * Makefile.in (stage2_build, stage3_build, stage4_build):
7616 Set BUILD_CC to the same as CC.
7618 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
7620 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7622 2003-05-12 Andreas Schwab <schwab@suse.de>
7624 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7626 (bundling): Initialize 'pos'.
7627 (ia64_expand_builtin): Initialize 'rmode'.
7629 2003-05-12 David Edelsohn <edelsohn@gnu.org>
7631 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7632 (ASM_OUTPUT_ALIGNED_COMMON): Same.
7633 (ASM_OUTPUT_LOCAL): Same.
7635 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
7637 * varasm.c (output_constant): Fix underflow.
7639 2003-05-12 Mark Mitchell <mark@codesourcery.com>
7642 * configure.in: Correct detection of GNU ld version number.
7643 * configure: Regenerated.
7645 2003-05-12 Zack Weinberg <zack@codesourcery.com>
7647 * diagnostic.c (diagnostic_for_decl): Take a
7648 diagnostic_context argument. Restructure to be consistent
7649 with diagnostic_report_diagnostic.
7650 (diagnostic_count_diagnostic): Now static. Take a
7651 diagnostic_info argument, not just a diagnostic_t. Some code
7652 moved here from internal_error. Move a case label for
7654 (diagnostic_action_after_output): New function. Code moved
7655 here from internal_error and fatal_error.
7656 (bug_report_request): New #define so that this text appears in
7658 (diagnostic_report_diagnostic): Update to match changes to
7659 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
7660 (diagnostic_set_info): Call gettext here.
7662 (pedwarn): Update comment. Don't call gettext here.
7663 (sorry): Use report_diagnostic. Don't call gettext here.
7664 (fatal_error): Remove final fnotice and exit, but call
7665 real_abort to prevent warnings about noreturn function returning.
7666 (internal_error): Likewise. Don't do ICE suppression here nor
7667 call context->internal_error.
7668 (warning_with_decl): Suppress for decls in system headers.
7669 Adjust call to diagnostic_for_decl.
7670 (pedwarn_with_decl): Likewise.
7671 (error_with_decl): Adjust call to diagnostic_for_decl.
7672 (error_recursion): Use bug_report_request.
7674 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7675 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7676 diagnostic_count_diagnostic.
7678 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7680 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7682 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
7684 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
7685 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7686 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
7688 2003-05-12 Roger Sayle <roger@eyesopen.com>
7690 * doc/rtl.texi: Document zero_extract as a valid destination
7693 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
7695 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7696 '.'. Change all local symbol definitions and references to use LSYM.
7698 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
7700 * expr.h (assemble_static_space): Update prototype.
7701 * output.h (assemble_zeros, output_constant): Likewise.
7702 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7703 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7705 * elf.h (ASM_OTUPUT_SKIP): Likewise.
7706 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7707 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7708 Expect HOST_WIDE_INT operand.
7709 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7710 Expect HOST_WIDE_INT operand.
7711 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7712 Expect HOST_WIDE_INT operand.
7713 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7714 HOST_WIDE_INT operand.
7715 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7716 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7717 * aout.h (ASM_OTUPUT_SKIP): Likewise.
7718 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7719 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7720 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7721 * frv.h (ASM_OTUPUT_SKIP): Likewise.
7722 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7723 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7726 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7727 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7728 Make it 64bit clean.
7729 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7730 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7731 HOST_WIDE_INT operand
7732 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7733 Expect HOST_WIDE_INT operand
7734 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7735 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7736 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7737 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7739 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7740 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7742 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7743 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7744 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7745 ASM_OUTPUT_SKIP): Likewise.
7746 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7748 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7749 ASM_OUTPUT_SKIP): Likewise.
7750 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7751 ASM_OUTPUT_SKIP): Likewise.
7752 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7753 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7754 ASM_OUTPUT_SKIP): Likewise.
7755 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7756 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7757 ASM_OUTPUT_SKIP): Likewise.
7758 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7760 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7761 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7762 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7763 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7764 ASM_OUTPUT_SKIP): Make it 64bit clean.
7765 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7766 Make it 64bit clean.
7767 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7768 ASM_OUTPUT_SKIP): Make it 64bit clean.
7769 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7771 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7772 HOST_WIDE_INT argument
7773 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7774 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7775 HOST_WIDE_INT argument
7776 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7777 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7778 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7779 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7780 HOST_WIDE_INT argument
7781 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7782 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7783 * varasm.c (asm_output_bss, asm_output_aligned_bss,
7784 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7785 HOST_WIDE_INT argument
7787 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
7789 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7790 favor of walk_tree_without_duplicates. Add comments.
7792 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
7794 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
7795 (struct alloc_pool_def): New element 'id'.
7796 * alloc-pool.c (fancy_abort): Extern function prototype.
7797 (abort): Macro which uses fancy_abort.
7798 (struct allocation_object_def): New structure.
7799 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7800 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7801 (last_id): New variable.
7802 (create_alloc_pool): Add the offset of u.data to size of element,
7803 increase and use last_id.
7804 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7805 (pool_alloc): Likewise. Set ID for elements.
7806 (pool_free): Check whether the PTR was allocated from POOL.
7808 2003-05-11 Richard Henderson <rth@redhat.com>
7811 * c-decl.c: Include hashtab.h.
7812 (detect_field_duplicates): New.
7813 (finish_struct): Use it.
7814 * Makefile.in (c-decl.o): Update.
7815 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7816 (component_decl_list, component_decl_list2,
7817 components, components_notype): Build list in reverse order.
7818 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
7820 * tree.c (chainon): Special case op2 null as well.
7823 2003-05-11 Roger Sayle <roger@eyesopen.com>
7825 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7826 to implement log, logf and logl built-ins as inline x87 intrinsics.
7827 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7828 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7829 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7831 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7832 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7834 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7836 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
7838 * sparc.c (print_operand): Fix uninitialized warning.
7840 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7842 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7844 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7847 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7849 * doc/cpp.texi: Fix typos.
7851 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7853 * config/s390/s390.c (s390_function_arg_float): New function.
7854 (s390_function_arg_pass_by_reference): Use it.
7855 (s390_function_arg_advance): Likewise.
7856 (s390_function_arg): Likewise.
7857 (s390_va_arg): Likewise
7859 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
7861 * coverage.h (coverage_counter_alloc): New function.
7862 * function.h (struct function): Remove arc_profile flag.
7863 * coverage.c (fn_ident): Remove.
7864 (fn_b_ctrs, no_coverage): New.
7865 (get_coverage_counts): Use current_function_funcdef_no.
7866 (coverage_counter_alloc): New.
7867 (coverage_counter_ref): Adjust.
7868 (coverage_begin_output): Check no_coverage. Use
7869 current_function_funcdef_no.
7870 (coverage_end_function): Likewise.
7871 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7872 than clearing flag_inline_functions. Do not clear arc_profile
7874 * function.c (prepare_function_start): Do not set arc_profile
7876 * profile.c (instrument_edges): Return number of instrumented
7877 edges. Use a for loop.
7878 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7879 local to here and simplify. Use profile_arc_flag not arc_profile
7881 (find_spanning_tree): Reformat.
7882 * toplev.c (rest_of_compilation): Use profile_arc_flags and
7883 flag_test_coverage rather than arc_profile flag.
7885 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7887 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7889 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7891 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7893 2003-05-11 Bruno Haible <bruno@clisp.org>
7895 * cppfiles.c (find_or_create_entry): Preserve errno.
7897 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7899 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7900 cpplib as it's a Standard Predefined Macro.
7901 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7902 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
7903 __STDC_HOSTED__ appropriately.
7904 * cpplib.h (_cpp_init_builtins): Update.
7905 * fix-header.c (read_scan_file): Update.
7906 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7908 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7912 * c-opts.c (c_common_decode_option): Don't set
7913 warn_ctor_dtor_privacy wen -Wall.
7914 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7916 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
7918 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7921 2003-05-10 Zack Weinberg <zack@codesourcery.com>
7923 * diagnostic.c: Reorder functions for clarity, putting all the
7924 functions in the "error" family next to each other, and
7925 likewise all the functions in the "error_with_decl" family.
7926 Some other routines were moved too. Add comments.
7927 (vbuild_message_string): Fold into sole caller.
7930 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7932 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7933 (EH_RETURN_HANDLER_RTX): Likewise.
7934 (expand_builtin_eh_return): Do not copy stack adjustment
7935 if EH_RETURN_STACKADJ_RTX is not defined.
7936 (expand_eh_return): Likewise. Also, do not pass stack
7937 adjustment as argument to the eh_return pattern.
7938 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7939 because EH_RETURN_STACKADJ_RTX is not defined.
7940 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7941 is not defined, treat stack pointer like a regular register.
7942 (uw_init_context_1): Set up fake initial stack pointer register.
7943 (uw_install_context_1): Do not compute stack adjustment if
7944 EH_RETURN_STACKADJ_RTX is not defined.
7946 * config/i386/i386.md ("eh_return"): Remove first argument.
7947 * config/mips/mips.md ("eh_return"): Likewise.
7948 * config/rs6000/rs6000.md ("eh_return"): Likewise.
7949 * config/sh/sh.md ("eh_return"): Likewise.
7951 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7953 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
7955 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7957 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
7959 * defaults.h (GCOV_TYPE_SIZE): Remove.
7960 * gcov-io.h (gcov_type): Set to specific mode int on target.
7961 (gcov_unsigned_t, gcov_position_t): New.
7962 (GCOV_TYPE_NODE): New.
7963 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7964 (GCOV_COUNTERS_SUMMABLE): New.
7965 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7966 gcov_ctr_info, gcov_info): Adjust types.
7967 (gcov_var): Adjust types.
7968 (gcov_write_unsigned, gcov_write_tag,
7969 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7970 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7971 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7972 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7973 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7974 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7975 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7976 __gcov_init, __gcov_merge_add): Adjust gcov types.
7977 * coverage.c (ctr_merge_functions): Constify.
7979 (read_counts_file): Adjust gcov types. Only summarize & merge
7981 (coverage_counter_ref): Use GCOV_TYPE_NODE.
7982 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7983 build_ctr_info_value, build_gcov_info): Adjust types.
7984 * profile.c (branch_prob): Adjust gcov types.
7985 * gcov_dump (dump_file): Adjust gcov types.
7987 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
7989 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
7991 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
7992 * arm.c (arm_select_dominance_cc_mode): Renamed from
7993 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
7995 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7997 2003-05-09 Roger Sayle <roger@eyesopen.com>
7999 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
8000 as unsigned to avoid signed/unsigned comparison warnings.
8002 2003-05-09 Bob Wilson <bob.wilson@acm.org>
8004 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
8005 instruction if the Xtensa density option is enabled.
8007 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
8009 * mklibgcc.in: Remove extra quotes.
8011 2003-05-09 Mark Mitchell <mark@codesourcery.com>
8013 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
8016 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
8018 * reload1.c (reload_cse_move2add): Don't turn an implicit
8019 truncation into a self-set in the narrow mode.
8021 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
8023 * arm.md (clzsi2): The CLZ instruction is predicable.
8025 2003-05-09 Bob Wilson <bob.wilson@acm.org>
8027 * config/xtensa/xtensa.c: Formatting.
8029 2003-05-09 Diego Novillo <dnovillo@redhat.com>
8031 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
8032 instead of TREE_OPERAND to access the operand of a
8035 2003-05-09 Diego Novillo <dnovillo@redhat.com>
8037 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
8040 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8042 * toplev.h (warning_with_file_and_line): Don't declare.
8043 (error_with_file_and_line): Likewise.
8044 * diagnostic.c (error_with_file_and_line): Remove.
8045 (warning_with_file_and_line): Likewise.
8047 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8049 * c-parse.in (if_stmt_locus): New object.
8050 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
8051 (select_or_iter_stmt rule): Likewise.
8052 (if_stmt_file): Remove.
8053 (if_stmt_line): Likewise.
8054 * jump.c: include "diagnostic.h"
8055 (never_reached_warning): Don't use warning_with_file_and_line.
8056 * Makefile.in (jump.o): Add dependce on diagnostic.h
8058 2003-05-09 Alan Modra <amodra@bigpond.net.au>
8060 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
8061 Move code handling pieces not larger than a word to..
8062 * function.c (assign_parms): ..here, but use change_address instead
8063 of adjust_address and operand_subword, and expand_binop instead of
8064 expand_shift. Adjust calls to move_block_from_reg.
8065 * expr.h (move_block_from_reg): Update declaration.
8066 (copy_blkmode_from_reg): Formatting.
8067 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
8068 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
8069 move_block_from_reg calls.
8070 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8071 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
8072 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8073 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
8074 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8075 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8076 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
8077 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8078 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
8080 2003-05-08 DJ Delorie <dj@redhat.com>
8082 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
8083 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
8084 variable-sized types).
8085 (xstormy16_function_arg): New. Pass them that way too.
8086 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
8087 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
8089 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
8091 * mklibgcc.in: Use mkinstalldirs when installing multilib
8094 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
8096 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
8097 instead of CODE_FOR_jump
8099 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8101 * objc/objc-act.c (error_with_ivar): Don't use
8102 error_with_file_and_line.
8103 (warn_with_method): Don't use warning_with_file_and_line.
8105 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8107 * stmt.c (emit_locus): New macro.
8108 (emit_filename): Remove.
8109 (emit_lineno): Likewise.
8110 (struct stmt_status): Replace members x_emit_filename and
8111 x_emit_lineno with x_emit_locus.
8112 (set_file_and_line_for_stmt): Adjust.
8113 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
8114 (warn_if_unused_value): Likewise.
8115 (check_seenlabel): Likewise.
8117 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8119 * c-decl.c (define_label): Tidy. Don't use any of
8120 error_with_file_and_line or warning_with_file_and_file.
8121 (pending_xref_error): Likewise.
8122 (store_parm_decls): Likewise.
8123 (current_function_prototype_locus): New object. Package from
8124 current_function_prototype_file and current_function_prototype_line.
8125 (start_function): Use it.
8126 (current_function_prototype_file): Remove.
8127 (current_function_prototype_line): Remove;
8129 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8131 * builtins.c (readonly_data_expr): New function.
8132 (expand_builtin_memmove): Optimize any rodata source, not just
8135 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8137 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
8139 2003-05-07 Richard Henderson <rth@redhat.com>
8141 * config/i386/i386.c (ix86_split_long_move): Fix base register
8142 mode for XFmode splits for TARGET_64BIT.
8144 2003-05-07 Richard Henderson <rth@redhat.com>
8146 * sched-ebb.c (schedule_ebb): Supply the correct starting
8147 block number to save_line_notes.
8149 2003-05-07 Richard Henderson <rth@redhat.com>
8151 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8152 (dump_file): Likewise.
8154 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8156 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
8157 forget to preserve gp.
8158 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8160 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8161 .prologue directive.
8162 Use .skip instead of data8 for .bss section to make Intel
8163 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
8164 explicit in the .mib bundles and remove the unnecessary stop
8165 bits. Replace local labels with normal labels, to make ias
8166 happy. Don't register __do_global_ctors_aux here, do it in
8169 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8170 __do_global_ctors_aux in .init_array section instead of
8171 declaring it as a hidden global. Replace local labels with
8172 ordinary labels to make ias happy.
8174 2003-05-07 Richard Henderson <rth@redhat.com>
8177 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8178 * flags.h, toplev.c, doc/invoke.texi: Likewise.
8180 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8181 * unwind.inc (_Unwind_DeleteException): Check for null
8184 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8185 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8186 * unwind.h: Declare them.
8187 * libgcc-std.ver (GCC_3.3): Export them.
8189 2003-05-07 Richard Henderson <rth@redhat.com>
8191 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
8194 2003-05-07 Zack Weinberg <zack@codesourcery.com>
8196 * stmt.c (force_label_rtx): New function, based on logic
8197 formerly found in expand_expr.
8198 * expr.h: Prototype it.
8199 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8201 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8203 * print-tree.c (debug_tree): Free the table after we're done
8206 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
8208 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8209 Unreverse arguments for __ev_subw.
8211 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
8213 2003-05-07 Nick Clifton <nickc@redhat.com>
8215 * config/stormy16/stormy-abi: Update to include
8216 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8217 R_XSTORMY16_12 relocs.
8219 2003-05-07 Alan Modra <amodra@bigpond.net.au>
8221 * function.c (assign_parms): Correct reversed reg_parm_stack_space
8222 test. Add partial in-regs size to stack_args_size.
8224 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8226 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8229 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
8231 * gcov-io.h (GCOV_LOCKED): New #define.
8232 (GCOV_LINKAGE): Make sure it is #defined.
8233 (gcov_write_string, gcov_write_tag, gcov_write_length,
8234 gcov_read_string, gcov_time): Poison in libgcov.
8235 (gcov_seek_end): Remove.
8236 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8237 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8238 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8239 GCOV_TAG_SUMMARY_LENGTH): New #defines.
8240 (gcov_write_tag, gcov_write_length): Not in libgcov.
8241 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8242 (gcov_write_tag, gcov_write_length): Not in libgcov.
8243 (gcov_write_tag_length): New.
8244 (gcov_write_summary): Use gcov_write_tag_length.
8245 * libgcov.c: Always #include gcov-io.h.
8246 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
8247 (GCOV_LINKAGE): Define to nothing for L_gcov.
8248 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
8249 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
8250 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
8251 (read_count_file): Likewise.
8252 * gcov-dump.c (dump_file): Likewise.
8253 * coverag.c (read_counts_file): Likewise.
8255 2003-05-06 Mark Mitchell <mark@codesourcery.com>
8258 * gcc.c (process_command): Update copyright date.
8260 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
8262 * doc/install.texi (mips-*-*): Add note about libstdc++.
8264 2003-05-06 DJ Delorie <dj@redhat.com>
8266 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
8267 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
8268 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
8270 2003-05-06 <neil@cat.daikokuya.co.uk>
8272 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
8273 and -Wstrict-prototypes if C++.
8275 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
8277 * config/rs6000/linuxspe.h: New file.
8279 * config.gcc: Add powerpc-*-linux-gnuspe* target.
8281 2003-05-06 Richard Henderson <rth@redhat.com>
8283 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8284 previous frame didn't save sp. Clear sp for next frame.
8285 (uw_install_context_1): Honor saved sp from frame.
8287 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8289 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8290 (mips_move_1word, mips_move_2words): Remove declaration.
8291 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8292 (mips_restore_gp): Remove insn argument.
8293 * config/mips/mips.h (FP_REG_RTX_P): New macro.
8294 * config/mips/mips.c (volatile_buffer): Remove.
8295 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8296 (mips_move_1word, mips_move_2words): Remove, replacing with...
8297 (mips_output_move): ...this new function.
8298 (mips_restore_gp): Remove insn argument. Adjust for above changes.
8299 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
8300 handling of floating-point constants. Handle zero CONST_DOUBLE
8302 (mips_annotate_frame_insn): Replace with...
8303 (mips_set_frame_expr): ...this, which just takes one argument.
8304 (mips_frame_set): Change the register argument to an rtx.
8305 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8306 check whether moves should be split. Use mips_split_64bit_move
8307 to split them. Use mips_subword to generate the high and low
8308 parts of a paired FPR. Adjust calls to frame_set and
8309 mips_set_frame_expr.
8310 (mips_expand_prologue): Simplify due to above changes.
8311 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
8312 targets, replacing xisting register-only versions.
8313 (UNSPEC_STORE_DF_HIGH): New unspec.
8314 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8315 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8316 (*paradoxical_extendhidi2): Remove.
8317 (movdi_internal, movdi_internal2): Use mips_output_move.
8318 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8319 (movsf_internal1, movsf_internal2): Likewise.
8320 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
8321 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
8322 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
8323 Add m <- G alternative.
8324 (load_df_low, load_df_high, store_df_low): New patterns.
8325 (movhi_internal): Use @ template instead of calling a function.
8326 Remove unnecessary 'z' alternatives.
8327 (movqi_internal): Likewise.
8328 (exception_receiver): Update call to mips_restore_gp.
8330 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8332 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8333 (mips_delegitimize_address): Declare.
8334 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8335 (FIND_BASE_TERM): Define.
8336 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8337 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8338 Handle small-data addresses.
8340 2003-05-05 Roger Sayle <roger@eyesopen.com>
8342 * real.c (real_powi): New function to calculate the value of
8343 a real raised to an integer power, i.e. pow(x,n) for int n.
8344 (real_sqrt): Convert to using the faster do_add, do_multiply
8345 and do_divide API for consistency with the rest of real.c.
8346 * real.h (real_powi): Prototype here.
8347 * builtins.c (fold_builtin): Avoid local variable mode when
8348 evaluating sqrt at compile time. Attempt to evaluate pow at
8349 compile-time, by checking for an integral exponent.
8351 2003-05-05 Richard Henderson <rth@redhat.com>
8353 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8355 2003-05-05 David O'Brien <obrien@FreeBSD.org>
8357 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8358 other FreeBSD ports.
8359 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
8360 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
8362 2003-05-05 Janis Johnson <janis187@us.ibm.com>
8364 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8366 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8368 2003-05-05 Zack Weinberg <zack@codesourcery.com>
8370 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8371 * varasm.c (struct varasm_status): Add deferred_constants field.
8372 (n_deferred_strings): Delete variable.
8373 (n_deferred_constants): New #define.
8374 (struct constant_descriptor_tree): Kill next and label fields.
8375 (const_hash_table, MAX_HASH_TABLE): Delete.
8376 (const_desc_htab): New static variable.
8377 (const_hash): Rename const_desc_hash, and make it fit the
8378 hashtab.h interface.
8379 (const_desc_eq): New.
8380 (const_hash_1, compare_constant): Const-ify arguments.
8381 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8382 SYMBOL_REFs. Clarify comments. Don't set desc->label.
8383 (output_constant_def): Do the lookup/insert using the
8384 hashtab.h interface. Don't muck with n_deferred_constants or
8385 DEFERRED_CONSTANT_P here.
8386 Always call maybe_output_constant_def_contents.
8387 (maybe_output_constant_def_contents): Take a pointer to the
8388 descriptor, not the EXP and RTL separately. Return
8389 immediately if this constant is not deferred. Defer output of
8390 everything, except writable string constants. Update
8391 n_deferred_constants here.
8392 (output_constant_def_contents): Now takes just one argument,
8393 an rtx. Clear DEFERRED_CONSTANT_P here.
8394 (mark_constant_pool): Update for rename of n_deferred_strings.
8395 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8397 (init_varasm_status): Clear p->deferred_constants.
8398 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8400 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8402 * builtins.c (expand_builtin_stpcpy): Only expand when the length
8403 of the source string can be evaluated at compile-time.
8405 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8407 * testsuite/gcc.c-torture/compile/simd-6.c: New.
8409 * c-typeck.c (digest_init): Handle arrays of vector constants.
8411 2003-05-05 Jakub Jelinek <jakub@redhat.com>
8413 * builtins.c (expand_builtin_mempcpy): New function.
8414 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8415 ignored into strcpy no matter what arguments it has.
8416 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8417 expand_builtin_mempcpy.
8419 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8421 * testsuite/gcc.dg/20030505.c: New.
8423 * c-typeck.c (convert_for_assignment): Opaque pointers can
8426 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8427 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8428 (spe_init_builtins): Rename all pv2si_type_node to
8429 opaque_p_V2SI_type_node.
8430 Remove declaration of pv2si_type_node.
8431 (is_ev64_opaque_type): Accept opaque pointers.
8433 2003-05-05 Geoffrey Keating <geoffk@apple.com>
8435 * config/rs6000/rs6000.c (validate_condition_mode): Use
8436 flag_finite_math_only.
8437 (rs6000_reverse_condition): Never return UNKNOWN; use
8438 flag_finite_math_only.
8439 (rs6000_generate_compare): Use flag_finite_math_only.
8440 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
8441 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
8442 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
8444 * toplev.c (check_global_declarations): Suppress not-used warning
8445 for volatile variables.
8447 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
8449 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8450 usage of bitfield instructions for mode1 != BLKmode, only ignoring
8451 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8452 (store_field): Likewise.
8454 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8456 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8457 evsubifw to builtins accepting 5-bit unsigned constants.
8458 (easy_vector_constant): Return if V1DImode. Fix typo.
8460 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8462 * config/rs6000/spe.h: Revert licensing change from last patch.
8464 2003-05-05 DJ Delorie <dj@redhat.com>
8466 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8467 before reload, but defer the split until after.
8468 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8471 2003-05-05 David Edelsohn <edelsohn@gnu.org>
8473 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8474 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8476 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8478 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
8481 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8483 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8484 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8485 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8487 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8488 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8489 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8492 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8493 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8495 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8496 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8497 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8498 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8499 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8500 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8501 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8502 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8503 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8504 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8505 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8506 BUILT_IN_STRDUP): Add "nonnull" attribute.
8508 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8510 * expr.c (store_field): Don't clobber TEMP in shift: it might be
8512 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8513 whose purpose is to step up the alignment.
8514 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8516 * stor-layout.c (compute_record_mode): Relax restriction
8517 on fields crossing word boundaries forcing BLKmode.
8519 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
8521 * cppinit.c (cpp_create_reader, post_options): Warn about
8522 trigraphs unless explicity set or -trigraphs.
8523 * cpplex.c (warn_in_comment): New.
8524 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8525 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8526 * doc/cppopts.texi, doc/cpp.texi: Update.
8528 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8530 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8531 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8533 (GCOV_MERGE_FUNCTIONS): New.
8534 (gcov_merge_fn): Declare.
8535 (struct gcov_ctr_info): New field "merge".
8536 (__gcov_merge_add): Declare.
8537 * coverage.c (ctr_merge_functions): New.
8538 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8539 of gcov_ctr_info type.
8540 * libgcov.c (__gcov_merge_add): New.
8541 (gcov_exit): Call a hook to merge values of counters.
8543 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8545 * toplev.h (pedwarn_with_file_and_line): Don't declare.
8546 * diagnostic.c (pedwarn_with_file_and_line): Remove.
8548 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8550 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8552 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8554 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8555 expand_builtin_frame_address): Update prototypes.
8556 (expand_builtin_constant_p, expand_builtin_strlen,
8557 expand_builtin_strcpy, expand_builtin_memset,
8558 expand_builtin_bzero, expand_builtin_args_info,
8559 expand_builtin_frame_address): Pass in just the argument(s)
8560 needed, not the entire expression `exp'.
8561 (expand_builtin): Update all calls to these functions.
8563 2003-05-03 Richard Henderson <rth@redhat.com>
8565 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8566 <BUILT_IN_DWARF_SP_COLUMN>: New.
8567 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8568 (BUILT_IN_DWARF_SP_COLUMN): New.
8569 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8570 (expand_builtin_dwarf_sp_column): New.
8571 * except.h: Update to match.
8572 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8573 (execute_cfa_program): Record location expression address
8574 before extracting length.
8575 (uw_update_context_1): Install old CFA into stack pointer column.
8576 (uw_init_context_1): Set cfa_reg to stack pointer column.
8578 2003-05-03 Richard Henderson <rth@redhat.com>
8580 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8582 (toc_relative_expr_p): Likewise.
8583 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8584 (legitimate_constant_pool_address_p): Move from rs6000.h, change
8585 into a function, downcase all users.
8586 (legitimate_small_data_p): Likewise.
8587 (legitimate_offset_address_p): Likewise.
8588 (legitimate_indexed_address_p): Likewise.
8589 (legitimate_indirect_address_p): Likewise.
8590 (legitimate_lo_sum_address_p): Likewise.
8591 (rs6000_mode_dependent_address): Likewise.
8592 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8593 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8594 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8595 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8596 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8597 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8598 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8599 * config/rs6000/rs6000-protos.h: Update.
8601 2003-05-03 Geoffrey Keating <geoffk@apple.com>
8603 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8604 (REVERSE_CONDITION): Define.
8606 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8607 to branch_positive_comparison_operator.
8608 (ccr_bit): Check that sCOND conditions are actually a positive bit.
8609 (print_operand): Remove %D substitution.
8610 (rs6000_emit_sCOND): Generate complement operation to ensure that
8611 sCOND input is a positive bit.
8612 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8613 same order as bCOND, and add the missing ones. Remove the %D
8614 substitutions from the scc patterns.
8616 * simplify-rtx.c (simplify_relational_operation): Add case for
8619 2003-05-03 Bruce Korb <bkorb@gnu.org>
8621 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8623 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8625 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
8627 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
8629 2003-05-03 Zack Weinberg <zack@codesourcery.com>
8632 * c-common.c (warn_sign_compare): Initialize to -1.
8633 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8634 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8636 (c_common_post_options): Set warn_sign_compare from extra_warnings
8637 if it's still -1 at this point.
8639 * toplev.c (maybe_warn_unused_parameter): New static variable.
8640 (set_Wextra): New static function.
8641 (W_options): Remove "extra".
8642 (decode_W_option): Call set_Wextra.
8643 (independent_decode_option): Likewise.
8644 (set_Wunused): Cooperate with set_Wextra in setting
8645 warn_unused_parameter.
8646 (rest_of_compilation): No need to check extra_warnings as
8647 well as warn_uninitialized.
8649 * c-typeck.c (build_binary_op, build_conditional_expr):
8650 No need to check extra_warnings as well as warn_sign_compare.
8651 (internal_build_compound_expr): No need to check extra_warnings
8652 as well as warn_unused_value.
8653 * function.c (expand_function_end): No need to check extra_warnings
8654 as well as warn_unused_parameter.
8655 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8656 as well as warn_unused_value.
8658 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8660 * Makefile.in: Disable -Werror for gengtype-lex.o.
8662 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
8664 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8665 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8666 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8667 * calls.c (emit_call_1): Likewise.
8668 (expand_call): For calls initializing constant memory, replace
8669 emission of standalone mem /u clobber with function usage entry.
8670 * expr.c (emit_block_move_via_libcall): Likewise.
8671 * cse.c (count_reg_usage, case EXPR_LIST): New case.
8672 * flow.c (propagate_one_insn): Pass entire operand of
8673 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8674 * integrate.c (try_constants): For CALL_INSNs, substitute constants
8675 within the FUNCTION_USAGE also.
8676 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8677 FUNCTION_USAGE lists.
8678 * reload1.c (replace_pseudos_in): Renamed.
8679 (reload): Use it for clobbers surviving until the end of the reload.
8681 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8683 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8684 gen_lowpart on non-integer modes.
8686 * stor-layout.c (place_field): When adjusting offset_align, use
8687 desired_align, not DECL_ALIGN.
8689 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
8691 * c-decl.c (pending_invalid_xref_file): Remove.
8692 (pending_invalid_xref_line): Remove.
8693 (pending_invalid_xref_location): New.
8694 (lookup_label): Use location_t and input_location directly.
8695 (lookup_tag): Likewise.
8696 (pending_xref_error): Likewise.
8697 (c_expand_body_1): Likewise.
8698 * c-common.c (x_expand_start_cond): Likewise.
8699 * c-semantics.c (genrtl_for_stmt): Likewise.
8700 (find_reachable_label): Likewise.
8701 * expr.c (expand_expr): Likewise.
8702 * integrate.c (output_inline_function): Likewise.
8703 * tree-inline.c (find_alloca_call): Likewise.
8704 (find_builtin_longjmp_call): Likewise.
8705 * gcc.c (input_filename): Make static.
8707 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
8709 * config/mips/mips.md: Fix comment typo.
8711 * config/mips/mips.c (mips_integer_op): New structure.
8712 (MIPS_MAX_INTEGER_OPS): Define.
8713 (mips_const_insns): Use mips_build_integer to determine the number
8714 of instructions needed to load a CONST_INT.
8715 (move_operand): Reject compound CONST_INTs.
8716 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8717 (mips_move_integer): New fn.
8718 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8719 (mips_legitimize_move): Only legitimize constants when moving
8720 word or subword values.
8722 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
8724 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8726 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8728 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8731 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8732 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8734 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8735 Hernandez, and Kazu Hirata. Update Richard Henderson.
8737 2003-05-02 Geoffrey Keating <geoffk@apple.com>
8739 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8740 to tentative declaration.
8742 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8743 (SYMBOL_FLAG_SMALL_V4): Delete.
8744 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8745 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8746 (rs6000_elf_in_small_data_p): Add extra section names. Add
8747 comment about TREE_PUBLIC test.
8749 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8750 expand_stmt on result of expand_unreachable_stmt.
8752 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8754 * doc/contrib.texi (Contributors): Add Daniel Berlin.
8756 2003-05-02 David Edelsohn <edelsohn@gnu.org>
8758 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8761 * config/rs6000/rs6000.c (symbol_ref_operand): Check
8762 SYMBOL_REF_FUNCTION_P on AIX.
8763 (current_file_function_operand): Same.
8764 * config/rs6000/rs6000.md (call,call_value): Force non-function
8765 symbol_ref into register on AIX.
8767 2003-05-02 Alan Modra <amodra@bigpond.net.au>
8769 * calls.c (struct arg_data): Move offset, slot_offset, size and
8770 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
8771 (initialize_argument_information): Adjust call to locate_and_pad_parm.
8772 Delete alignment_pad var. Don't calculate slot_offset here.
8773 (emit_library_call_value_1): Delete alignment_pad, offset and size
8774 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
8775 Adjust call to locate_and_pad_parm. Don't tweak arg size for
8776 partial in-regs here. Formatting fixes.
8777 * expr.h (struct locate_and_pad_arg_data): New struct.
8778 (locate_and_pad_parm): Adjust declaration.
8779 * function.c (assign_parms): Localize vars. Use "locate" instead of
8780 other arg location vars. Don't invoke FUNCTION_ARG or
8781 FUNCTION_INCOMING_ARG unless pretend_named is different from
8782 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
8783 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
8784 Use slot_offset for stack home of reg parms. Correct test for
8785 parm passed in memory. Formatting fixes.
8786 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
8787 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
8788 Correct initial_offset_ptr handling. Localize vars. Always pad
8789 locate->offset even when in_regs.
8791 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
8793 * Makefile.in (TREE_H): Replace location.h with input.h.
8794 (GTFILES) Remove location.h
8795 (gt-lists.h): Replace gt-location.h with gt-input.h
8796 * input.h (input_filename, input_line): Remove variables.
8797 (location_s, location_t): Move from location.h.
8798 (input_location): New.
8799 (input_filename, input_line): New #defines.
8800 * location.h: Remove.
8801 * tree.h: Replace location.h with input.h.
8802 (input_filename, input_line): Remove.
8803 * diagnostic.h: Replace location.h with input.h.
8804 * gcc.h (input_filename, input_filename_length): Remove declarations.
8805 * toplev.c (input_filename, input_line): Remove.
8806 (input_location): Define.
8807 (push_srcloc, pop_srcloc): Adjust.
8808 * diagnostic.c (diagnostic_report_current_module): Adjust.
8810 2003-05-02 Nick Clifton <nickc@redhat.com>
8812 * configure.in: Add xstormy16 to list of targets that has a nop
8813 instruction and hence which can be tested to see if the
8814 assembler supports the --gdwarf2 switch.
8815 * configure: Regenerate.
8817 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8820 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8821 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8822 Avoid undefined shifts by making the shift operand unsigned.
8824 2003-05-01 DJ Delorie <dj@redhat.com>
8826 * reload.c (find_reloads): Also check that all of a multi-reg
8827 value is in the class.
8829 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8831 * scan.h (lineno): Revert the rename here.
8833 2003-05-01 Stan Shebs <shebs@apple.com>
8835 * config/darwin.c (darwin_encode_section_info): Call
8836 default_encode_section_info.
8838 2003-05-01 David Edelsohn <edelsohn@gnu.org>
8840 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8841 (movsi_internal1): Use new mfjmpr attribute.
8842 (movhi_internal): Same.
8843 (movqi_internal): Same.
8844 (movcc_internal1): Same.
8845 (movdi_internal64): Same.
8846 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8847 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8848 * config/rs6000/40x.md: Add fpu_405.
8849 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8850 into power4misc automata. Remove extraneous parentheses.
8851 * config/rs6000/440.md: New file.
8852 * config/rs6000/rs6000.c (processor_target_table): Add 440,
8853 440fp. Rename 405f to 405fp.
8854 (function_arg_padding): Correct formatting.
8855 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8857 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8859 * input.h (lineno): Rename to ...
8860 (input_line): ... here.
8861 * tree.h (lineno): Rename to ...
8862 (input_line): ... here.
8863 * scan.h (lineno): Rename to ...
8864 (input_line): ... here.
8865 * toplev.c (lineno): Rename to ...
8866 (input_line): ... here.
8867 (push_srcloc, pop_srcloc): Rename lineno to input_line.
8868 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8869 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8870 store_parm_decls, c_expand_body_1): Likewise.
8871 * c-errors.c (pedwarn_c99): Likewise.
8872 * c-format.c (status_warning): Likewise.
8873 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8874 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8875 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8876 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8877 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8878 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8879 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8880 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8881 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8882 * coverage.c (create_coverage): Likewise.
8883 * diagnostic.c (pedwarn, sorry, error, fatal_error,
8884 internal_error, warning, diagnostic_report_current_module,
8886 * expr.c (expand_expr): Likewise.
8887 * integrate.c (expand_inline_function,
8888 output_inline_function): Likewise.
8889 * rtl-error.c (file_and_line_for_asm): Likewise.
8890 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8891 walk_tree): Likewise.
8892 * tree.c (make_node): Likewise.
8893 * ada, cp, f, java, objc, treelang: Likewise.
8894 * objc/objc-act.c (objc_init): Rename lineno to input_line.
8895 (build_module_descriptor, build_selector_translation_table,
8896 build_protocol_template, build_method_prototype_list_template,
8897 build_category_template, build_selector_table,
8898 build_class_template, build_super_template, build_ivar_template,
8899 build_ivar_list_template, build_method_list_template,
8900 build_method_template, add_instance_variable): Likewise.
8902 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8903 name from input_filename.
8905 2003-04-30 Eric Christopher <echristo@redhat.com>
8906 Richard Sandiford <rsandifo@redhat.com>
8908 * configure: Regenerate from patches below.
8909 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8910 for all symbolic operands.
8911 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8913 * config/mips/linux.h: Fix typo.
8914 * Merge from mips-3_4-rewrite branch:
8916 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
8918 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8919 handling local labels when TARGET_ABICALLS.
8921 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
8923 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8925 (mips_expand_call): Likewise.
8926 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8927 (FIXED_REGISTERS): Clear $31 entry.
8928 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8929 (EPILOGUE_USES): Define.
8930 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8931 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8932 (override_options): Add a 'j' register class.
8933 (mips_expand_call): Handle sibcalls
8934 (mips_expand_epilogue): Handle epilogues for sibcalls.
8935 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8936 (sibcall_epilogue): New pattern.
8937 (call, call_value): Adjust calls to mips_expand_call.
8938 (sibcall, sibcall_value): New expanders.
8939 (sibcall_internal, sibcall_value_internal): New patterns.
8940 (sibcall_value_multiple_internal): New pattern.
8942 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
8944 * config/mips/mips.md (extended_mips16): New attribute.
8945 (define_attr length): Default to 8 if extended_mips16 == yes.
8946 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8947 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8948 (call_internal): Set extended_mips16 to yes for direct jumps.
8949 Remove redundant mode attribute.
8950 (call_value_internal, call_value_multiple_internal): Likewise.
8951 (call_split): Remove redundant mode attribute.
8952 (call_value_split, call_value_multiple_split): Likewise.
8954 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
8955 of unaligned offsets.
8957 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
8960 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8962 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8963 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8966 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8968 * config/mips/mips.h (ADDRESS_COST): Define.
8970 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
8972 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8973 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
8974 * config/mips/mips.md: Replace 'R' constraints with 'U'.
8976 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
8978 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
8979 of a two-instruction sequence. Add register->memory alternative.
8980 (truncdihi2, truncdiqi2): Likewise.
8981 Rework shift/truncate instructions so that they only handle right
8982 shifts of 32 (or more, in the case of arithmetic shifts).
8983 Add patterns for truncate/sign-extend.
8985 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8987 * configure.in (mips*-*-*): Check for explicit relocation support.
8988 * configure: Regenerate.
8990 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8992 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8993 and -mno-explicit-relocs.
8994 (MASK_EXPLICIT_RELOCS): Define.
8995 (TARGET_EXPLICIT_RELOCS): Use it.
8996 (mips_split_addresses): Remove declaration.
8997 * config/mips/mips.c (override_options): Update comment for
8998 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
9000 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9002 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
9003 a CONST as identity. Check the return value of gen_lowpart_common.
9005 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9007 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
9008 references for TARGET_EXPLICIT_RELOCS.
9009 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
9012 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9014 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
9015 (addsi3): Remove redundant constraints.
9016 (addsi3_internal): Use separate register & constant alternatives.
9017 Use a 'Q' constraint and "addiu" insn for the latter.
9018 (adddi3_internal_3, addsi3_internal_2): Likewise.
9020 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9022 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
9023 (mips_expand_unaligned_store): Declare.
9024 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
9025 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
9026 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
9027 (UNSPEC_ULD, UNSPEC_USD): Remove.
9028 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
9029 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
9030 (extv, extzv): Use mips_expand_unaligned_load.
9031 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
9032 predicate for operand 3.
9033 (movsi_ulw, movsi_usw): Replace with...
9034 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
9035 (movdi_uld, movdi_usd): Likewise replace with...
9036 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
9038 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
9040 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
9041 * config/mips/mips.h (LEA_REGS): New register class.
9042 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
9043 (GR_REG_CLASS_P): Include LEA_REGS.
9044 (DANGEROUS_FOR_LA25_P): New macro.
9045 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
9046 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
9047 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
9048 entries to LEA_REGS.
9049 (mips_global_pic_constant_p): New function.
9050 (override_options): Add 'e' register constraint.
9051 (mips_secondary_reload_class): Return LEA_REGS when reloading
9052 a dangerous constant into a class containing $25.
9053 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
9054 (movsi_internal): Likewise.
9056 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
9058 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
9059 * config/mips/mips.md (call_split): New insn.
9060 (call_value_split, call_value_multiple_split): New insns.
9061 (call_internal): Turn into a define_insn_and_split. Split the
9062 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
9063 (call_value_internal, call_value_multiple_internal): Likewise.
9065 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
9067 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
9068 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
9069 (mips_encode_section_info): Don't take symbol visibility into
9070 account if TARGET_ABICALLS. Add more commentary.
9071 * config/mips/mips.md: Add commentary above reloc constants.
9073 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
9075 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
9076 from mips_legitimize_move. Legitimize constant pool references.
9077 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
9078 a REG_EQUAL note to the last instruction.
9080 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
9082 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
9083 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
9084 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
9085 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
9086 * config/mips/mips.md (UNSPEC_HIGH): New constant.
9087 (UNSPEC_RELOC_GPREL16): Rename to...
9088 (RELOC_GPREL16): ...this.
9089 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
9090 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
9091 (macro_calls): New attribute.
9092 (length): Use it to set the default length of calls. Don't allow
9093 calls to have delay slots if macro_calls is "yes".
9094 (luisi, luidi): New patterns.
9095 (lowsi, lowdi): Use '%R' to print the relocation.
9096 (lowdi_extend): Remove.
9097 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
9098 (call_internal): Merge alternatives. Always use "jal".
9099 (call_value_internal, call_value_multiple_internal): Likewise.
9100 (reloc_gprel16): Remove.
9101 * config/mips/mips.c (mips_got_alias_set): New variable.
9102 (mips_classify_constant): Handle the new relocation constants.
9103 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9104 (mips_symbolic_address_p): Return false if generating explicit relocs.
9105 Otherwise allow local PIC symbols to have an offset.
9106 (mips_splittable_symbol_p): New function.
9107 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9108 (mips_const_insns): Always accept HIGH.
9109 (call_insn_operand): Don't accept global symbols if using explicit
9111 (move_operand): Don't accept HIGH when generating PIC.
9112 (mips_reloc, mips_lui_reloc): New functions.
9113 (mips_force_temporary): Remove MODE argument. Expect VALUE to
9114 be a valid right-hand-side for a SET pattern.
9115 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9116 (mips_emit_high): New function.
9117 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9118 case. Use mips_splittable_symbol_p to check whether a LO_SUM
9119 address should be used. Use mips_emit_high to generate the
9120 high part of such an address. Adjust the global symbol + offset
9121 case to match the change to mips_force_temprorary.
9122 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9123 If generating explicit-reloc PIC, load the address of global
9124 symbols from the GOT. Use mips_emit_high to emit the high part
9126 (mips_simplify_dwarf_addr): New function.
9127 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9128 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9129 (mips_expand_call): Load the addresses of global functions using
9130 %call* relocs if generating explicit-reloc PIC. Don't generate
9131 an exception_receiver pattern.
9132 (override_options): Initialize mips_got_alias_set.
9133 (print_relocation): Remove in favor of...
9134 (mips_reloc_string): ...this new function.
9135 (print_operand): Handle '%R'. Use mips_reloc_string.
9136 (print_operand_address): Use print_operand to print the symbolic
9137 part of a LO_SUM address.
9138 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9139 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
9140 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9143 2003-02-02 Eric Christopher <echristo@redhat.com>
9145 * config/mips/mips.c (mips_sign_extend): Remove.
9146 * config/mips/mips-protos.h: Ditto.
9147 * config/mips/mips.md (movdi_internal2_extend): Remove.
9148 (extendsidi2): Fix mode of convert_memory_address.
9150 2003-01-24 Eric Christopher <echristo@redhat.com>
9152 * config/mips/mips.md: Rewrite zero_extend* and extend*
9153 patterns. Use explicit instructions and split after reload
9154 for register extensions.
9155 (ashlsi3_internal1_extend): New combiner pattern for
9156 shift and extend combinations.
9157 * config/mips/mips.h: Change Pmode back to ptr_mode
9158 for performance enhancement.
9159 * combine.c (expand_compound_operation): Make sure
9160 that zero_extend operation is profitable.
9162 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
9164 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9165 addresses depend on ptr_mode rather than Pmode.
9166 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9167 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9168 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9169 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9170 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
9171 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9172 (tablejump_internal1): Remove condition.
9173 (tablejump_internal2): Change condition to TARGET_64BIT.
9174 (cpaddsi): Rename to...
9178 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
9180 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9181 mips_address_cost, mips_check_split, double_memory_operand,
9182 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9183 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9184 (mips_legitimate_address_p): Return bool.
9185 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9186 mips_legitimize_address, mips_legitimize_move,
9187 mips_expand_call): Declare.
9188 (mips_return_addr): Move outside #ifdef RTX_CODE.
9190 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9191 (PIC_FN_ADDR_REG): New reg_class.
9192 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9193 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9194 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9195 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9196 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9197 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9198 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9199 (LEGITIMATE_PIC_OPERAND): Undefine.
9200 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9201 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9202 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9203 (FUNCTION_MODE): Change to SImode.
9204 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9205 most constants. Treat const_artih_operands specially if they
9206 occur in a PLUS or MINUS.
9207 (CONSTANT_POOL_COST): New macro.
9208 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9209 Add LO_SUM handling.
9210 (ADDRESS_COST): Undefine.
9211 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9212 Add CONST to the list of codes for arith_operand. Add LABEL_REF
9213 to call_insn_operand and remove CONST_INT.
9215 * config/mips/mips.c: Include integrate.h.
9216 (SINGLE_WORD_MODE_P): New macro.
9217 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9218 (mips_constant_info, mips_address_info): New structs.
9219 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9220 (mips_classify_constant, mips_classify_symbol,
9221 mips_valid_base_register_p, mips_symbolic_address_p,
9222 mips_classify_address, mips_symbol_insns,
9223 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9224 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9225 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9226 mips_print_relocation): New functions.
9227 (const_arith_operand): New operand predicate.
9228 (arith_operand): Use it.
9229 (mips_const_double_ok, mips16_simple_memory_operand,
9230 simple_memory_operand, double_memory_operand, mips_check_split,
9231 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9232 mips16_gp_offset_p, mips16_output_gp_offset,
9233 mips16_constant_after_function_p, mips16_constant): Remove.
9234 (call_insn_operand): Be more fussy about symbolic constants.
9235 Use register_operand.
9236 (move_operand): Use mips_symbolic_address_p to check symbolic
9237 operands and general_operand to check the rest.
9238 (symbolic_operand): Use mips_classify_constant.
9239 (mips_legitimate_address_p): Use mips_classify_address.
9240 (mips_move_1word): Combine handling of symbolic addresses.
9241 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9242 (move_move_2words): Likewise. Assume addresses are offsettable
9243 if they need to refer to more than one word. Add HIGH handling.
9244 (mips_restore_gp): Use ptr_mode for the GP save slot.
9245 (mips_expand_call): New function, combining the old mips.md
9246 call and call_internal define_expands. If the address isn't
9247 a call_insn_operand, force it into a register. For SVR4 PIC,
9248 emit an exception_receiver instruction after the call.
9249 (override_options): Only override flag_pic for TARGET_ABICALLS
9250 if it is currently zero. Allow mips_split_addresses when
9251 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
9252 Add new register class letter, 'c'.
9253 (print_operand): Use mips_classify_constant for constant operands.
9254 (print_operand_address): Use mips_classify_address.
9255 (mips_output_function_prologue): Don't use .cprestore.
9256 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
9257 via the frame pointer if current_function_calls_eh_return.
9258 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
9259 to mark whether a symbol is local or global.
9260 (build_mips16_call_stub): Expect the address of the function rather
9261 than a MEM reference to it. Update call generation sequences.
9262 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
9263 small-data adjustments.
9265 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
9266 length for loads and stores.
9267 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
9268 (define_attr type): Add const and prefetch.
9269 (define_attr length): Use mips_const_insns for const instructions.
9270 Use mips_fetch_insns for load and store instructions.
9271 (define_attr single_insn): New.
9272 (define_attr can_delay): Use it.
9273 (define_attr abicalls): Remove.
9274 (define_delay): Use can_delay. Always allow calls to have delay slots.
9275 (addsi3_internal_2): Add 'Q' constraint.
9276 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
9278 (lowsi): Renamed from low.
9279 (lowdi): New pattern.
9280 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
9281 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9282 (loadgp): Change operand 0 to an immediate_operand.
9283 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9285 (cpaddsi, cpadddi): New patterns.
9286 (tablejump_internal3, tablejump_internal4): Remove define_expands
9287 and associated define_splits.
9288 (call, call_value): Use mips_expand_call.
9289 (call_internal): New, replacing all existing call_internal* insns.
9290 (call_value_internal): Likewise call_value_internal*.
9291 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9292 (untyped_call): Remove if (operands[0]) magic.
9293 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9294 (prefetch_di_address, prefetch_di): Likewise.
9295 (leasi, leadi): Remove.
9296 (reloc_gprel16): New.
9298 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9299 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9300 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
9302 2003-01-08 Eric Christopher <echristo@redhat.com>
9304 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9305 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9306 configure check for libgloss.
9307 * config/mips/elf64.h: Ditto.
9308 * config/mips/mips.c: Remove ABI_MEABI.
9309 * config/mips/mips.h: Ditto.
9311 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
9314 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9315 (muldi3_internal): Remove outdated comment.
9316 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9317 (*smsac_di, *umsac_di): Likewise. Reformat.
9318 (umulsi3_highpart): Minor formatting tweaks.
9319 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
9320 redundant scratch operand. Minor formatting tweak.
9321 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9322 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
9323 (smulsi3_highpart): As for the unsigned version.
9324 (smulsi3_highpart_internal): Likewise.
9325 (smulsi3_highpart_mulhi_internal): Likewise.
9326 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9327 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9328 (*smul_acc_di): Remove duplicated pattern.
9329 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9330 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9331 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
9333 2002-10-22 Eric Christopher <echristo@redhat.com>
9335 * config/mips/mips-protos.h (mips_return_addr): New.
9336 * config/mips/mips.c (mips_return_addr): New.
9337 (movdi_operand): Remove.
9338 (se_register_operand): Ditto.
9339 (se_reg_or_0_operand): Ditto.
9340 (se_uns_arith_operand): Ditto.
9341 (se_arith_operand): Ditto.
9342 (se_nonmemory_operand): Ditto.
9343 (extend_operator): Ditto.
9344 (highpart_shift_operator): Ditto.
9345 (mips_initial_elimination_offset): Remove return address pointer
9347 (mips_reg_names): Remove $ra.
9348 (mips_regno_to_class): Ditto.
9349 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9351 (POINTER_BOUNDARY): Remove.
9352 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9353 (PROMOTE_MODE): Promote to Pmode.
9354 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9355 (Pmode): Define to TARGET_64BIT.
9356 (FUNCTION_MODE): Define as Pmode.
9357 (mips_args): Remove deleted functions.
9358 (SIZE_TYPE): Depend on POINTER_SIZE.
9359 (PTRDIFF_TYPE): Ditto.
9360 (FIXED_REGISTERS): Fix extra registers.
9361 (CALL_USED_REGISTERS): Ditto.
9362 (CALL_REALLY_USED_REGISTERS): Ditto.
9363 (RAP_REG_NUM): Remove.
9364 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9365 (RETURN_ADDR_RTX): Define to mips_return_addr.
9366 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9367 (CAN_ELIMINATE): Ditto.
9368 * config/mips/mips.md: For DImode patterns, take into account
9369 deletions above. Split mulsidi patterns into sign_extend and
9372 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
9373 Michael Meissner <meissner@redhat.com>
9375 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9376 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9377 mop up unnecessarly moves through LO.
9378 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9379 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
9380 change mtlo/macc sequences into mul/add sequences when a three-
9381 address mul is available.
9382 (*macc2): New pattern. Add a define_peephole2 to generate it.
9383 (*mul_sub_si): Fix contraint for operand 5.
9384 (*muls): Use in 32-bit code as well.
9385 (*msac): Likewise. Use msub instead of msac in vr5500 code
9386 if the destination is LO. Remove duplicate define_split.
9387 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
9388 (*msac_di): Likewise. Fix formatting.
9389 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9390 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9391 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9392 (*xmulsi3_neg_highpart_mulhi): Likewise.
9393 (*mul_acc_64bit_di): Remove.
9394 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
9396 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9398 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9399 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9400 (MULTILIB_DIRNAMES): Remove long32.
9401 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9402 (MULTILIB_REDUNDANT_DIRS): Remove.
9404 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9406 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9407 * gcc.c (driver_self_specs): New variable.
9408 (do_self_spec): New function.
9409 (main): Use it to process driver_self_specs.
9411 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
9413 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9414 Remove DImode define_split for !TARGET_64BIT.
9415 (anddi3): Remove !TARGET_64BIT support from here as well.
9416 Change operand 2's predicate to se_uns_arith_operand.
9417 Add constant alternatives to define_insn.
9418 (iordi3, xordi3, *nordi3): Likewise.
9419 (anddi3_internal1, xordi3_immed): Remove.
9421 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9423 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9424 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9425 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9426 * config/mips/mips.md: Apply same renaming here.
9428 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9430 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9431 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9432 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9433 * config/mips/mips.md (define_attr cpu): Remove r4320.
9434 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
9436 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9438 * config/mips/mips.c (mips16_strings): New variable.
9439 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9440 symbol in mips16_strings. Free the list.
9441 (mips_encode_section_info): Keep track of local strings.
9443 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9445 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9446 (sordered_df, sordered_sf): Remove.
9447 * config/mips/mips.c (get_float_compare_codes): New fn.
9448 (gen_int_relational, gen_conditional_move): Use it.
9450 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9452 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9453 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9454 * config/mips/mips.c (fcc_register_operand): New function.
9455 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9456 (override_options): Allow TFmode values in float registers
9458 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9459 to fcc_register_operand. Remove misleading source constraint.
9460 Use mips_emit_fcc_reload.
9461 (reload_outcc): Duplicate reload_incc.
9464 2003-04-30 Diego Novillo <dnovillo@redhat.com>
9466 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9468 2003-04-30 Geoffrey Keating <geoffk@apple.com>
9470 * tree-inline.c (inlinable_function_p): Back out last change, it's
9473 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
9475 * ggc-page.c (TREE_EXP_SIZE): Define.
9476 (extra_order_size_table): New entry for expr trees with
9479 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9481 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9482 (c_expand_start_cond): Adjust.
9483 (c_expand_end_cond): Don't use warning_with_file_and_file.
9484 (shadow_warning): Likewise.
9486 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
9488 * tree.h (DECL_POINTER_DEPTH): Remove.
9489 (struct tree_decl): Remove pointer_depth.
9491 2003-04-30 Janis Johnson <janis187@us.ibm.com>
9493 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9494 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9495 (rs6000_xcoff_encode_section_info): Remove.
9496 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9497 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9498 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9499 Use SYMBOL_REF_FLAGS.
9500 (rs6000_elf_encode_section_info): Call default_encode_section_info for
9501 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9502 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9503 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9504 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9505 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9507 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9509 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9511 2003-04-30 Andreas Schwab <schwab@suse.de>
9513 * doc/extend.texi (Other Builtins): Enclose multiple word data
9514 type in braces for @deftypefn.
9516 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9518 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9520 * doc/install.texi (--enable-threads): Document "gnat" option.
9522 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9524 * diagnostic.h (output_formatted_scalar): Tweak.
9525 * diagnostic.c (output_long_decimal): Likewise.
9526 (output_unsigned_decimal): Likewise.
9527 (output_long_unsigned_decimal): Likewise.
9528 (output_octal): Likewise.
9529 (output_long_octal): Likewise.
9530 (output_hexadecimal): Likewise.
9531 (output_long_hexadecimal): Likewise.
9532 (output_pointer): New function.
9533 (output_format): Use it. Recognize "%p" format specifier.
9535 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9537 * function.c (purge_addressof_1): Postpone insn in fewer cases.
9539 2003-04-29 Geoffrey Keating <geoffk@apple.com>
9541 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9542 call abort() after running out of stack space.
9544 * c-typeck.c (function_types_compatible_p): Ignore incompatible
9545 'volatile' qualifiers on a function's return type in GNU mode.
9547 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
9549 * expr.c (emit_group_load): Dump parallels of simd types to
9552 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
9554 * genautomata.c (add_vect): Check undefined value for range type
9557 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
9559 * configure.in: More general test for cmp --ignore-initial.
9560 * configure: Regenerate.
9562 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9564 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9565 (layout_decl, place_field): Likewise.
9566 Also make minor type and whitespace changes.
9568 * tree.c (save_expr): Don't fold a COMPONENT_REF.
9570 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
9572 * calls.c (expand_call): When modes of target and valreg match, force
9573 sibcall failure when target is a MEM.
9575 2003-04-29 Geoffrey Keating <geoffk@apple.com>
9577 * tree-inline.c (inlinable_function_p): Don't support inlining
9578 functions using varargs.
9580 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9582 * dwarf2out.c (output_call_frame_info): No need to output EH
9583 unwind information if all_throwers_are_sibcalls.
9585 * c-semantics.c (expand_unreachable_stmt): Return a tree.
9586 (expand_stmt): Update for change to expand_unreachable_stmt.
9587 (expand_unreachable_if_stmt): Likewise.
9589 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9591 2003-04-29 Jason Merrill <jason@redhat.com>
9594 * jump.c (never_reached_warning): Really stop looking if we reach
9595 the beginning of the function.
9597 2003-04-29 Bob Wilson <bob.wilson@acm.org>
9599 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9600 Remove redundant macros.
9601 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9602 (LOCAL_LABEL_PREFIX): Define unconditionally.
9603 (NO_DOT_IN_LABEL): Clarify comment.
9604 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9605 definition to "long int".
9607 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
9610 * gengtype-yacc.y: Improve portability.
9612 2003-04-29 Zack Weinberg <zack@codesourcery.com>
9614 * config.gcc: Install obsolete target list for GCC 3.3.
9615 * doc/install.texi: Mention in specific-target instructions
9616 that certain configurations are deprecated.
9618 2003-04-29 Zack Weinberg <zack@codesourcery.com>
9620 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9622 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9624 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9625 * gcc.c (display_help): Likewise.
9626 * toplev.c (f_options): Likewise.
9627 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9628 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9629 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9630 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9631 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9633 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
9635 * varasm.c (default_assemble_visibility): Use assemble_name.
9637 2003-04-29 David O'Brien <obrien@FreeBSD.org>
9639 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
9640 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9641 (SIZE_TYPE): New macro.
9642 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9643 (SET_ASM_OP): New macro.
9644 (HANDLE_SYSV_PRAGMA): New macro.
9645 (ASM_WEAKEN_LABEL): New macro.
9647 2003-04-28 Mark Mitchell <mark@codesourcery.com>
9650 * tree-inline.c (expand_call_inline): Call push_srcloc when
9651 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
9653 2003-04-28 Mike Stump <mrs@apple.com>
9655 * gdbinit.in: Update to reflect new identifier structure.
9657 2003-04-28 Zack Weinberg <zack@codesourcery.com>
9659 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9660 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9661 struct tree_complex, struct tree_vector): Remove RTL field.
9662 (CONSTRUCTOR_ELTS): Use elt 0.
9663 * tree.def (CONSTRUCTOR): Delete first of its two operands.
9664 * varasm.c (output_constant_def): Remove early exit if
9665 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
9666 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9667 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9668 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9670 2003-04-28 Jakub Jelinek <jakub@redhat.com>
9672 * c-decl.c (finish_decl): When prototype with asmspec is found
9673 for built-in, adjust built_in_decls as well as expr.c decls.
9674 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9675 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9676 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9678 2003-04-28 Richard Henderson <rth@redhat.com>
9680 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9681 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9682 integral constant mult operand.
9683 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9684 (const_smulsi3_highpart_v8plus): Likewise.
9685 (const_smulsi3_highpart): Likewise.
9686 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9687 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9688 (const_umulsi3_highpart_v8plus): Likewise.
9689 (const_umulsi3_highpart): Likewise.
9691 2003-04-28 David O'Brien <obrien@FreeBSD.org>
9693 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9696 2003-04-28 David O'Brien <obrien@FreeBSD.org>
9698 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9700 2003-04-28 Jakub Jelinek <jakub@redhat.com>
9702 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9703 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9704 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9706 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9708 2003-04-28 Nick Clifton <nickc@redhat.com>
9710 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9712 2003-04-27 Zack Weinberg <zack@codesourcery.com>
9714 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9715 output_constant_def, use its result instead of TREE_CST_RTL (exp).
9716 Can assume it has the form (mem (symbol_ref ".LCxxx")).
9717 (expand_expr <COMPONENT_REF>): Can always just extract the
9718 relevant field of a CONSTRUCTOR.
9719 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9720 ARRAY_RANGE_REF>): Make control flow explicit.
9721 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9724 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
9726 * reload1.c (reg_set_luid): Fix a comment typo.
9728 2003-04-27 Zack Weinberg <zack@codesourcery.com>
9730 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9731 struct deferred_string, const_str_htab): Kill.
9732 (n_deferred_strings): New static variable.
9733 (build_constant_desc): Set SYMBOL_REF_DECL of the new
9734 symbol_ref to point to the constant.
9735 (output_constant_def): When a deferred string is forced out,
9736 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9737 (mark_constant): Likewise.
9738 (maybe_output_constant_def_contents): When deferring a string
9739 constant, just set STRING_POOL_ADDRESS_P and increment
9741 (mark_constant_pool): Check n_deferred_strings, not the size
9743 (init_varasm_once): No need to create const_str_htab.
9745 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9746 SYMBOL_REF_DECL points to a constant.
9748 2003-04-26 Zack Weinberg <zack@codesourcery.com>
9750 * varasm.c (output_constant_def): Split out two new static
9751 functions, build_constant_desc and maybe_output_constant_def_contents.
9752 Restructure for comprehensibility. Don't call
9753 output_addressed_constants. Treat defstr being non-NULL for
9754 STRING_POOL_ADDRESS_P constants as an invariant.
9755 (struct deferred_string): Remove labelno field.
9756 (output_constant_def_contents): Kill labelno argument. Call
9757 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
9758 asm_out.internal_label.
9759 (mark_constant): Update call to output_constant_def_contents.
9760 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9761 constants as an invariant.
9763 2003-04-26 Richard Henderson <rth@redhat.com>
9765 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9766 (ix86_expand_call, ix86_rtx_consts): Likewise.
9768 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9770 * doc/md.texi (cmpstr): Document additional restrictions.
9772 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
9774 * flags.h (time_report): Remove.
9775 * timevar.c (timevar_enable): New.
9776 (TIMEVAR_ENABLE): Remove, use timevar_enable.
9777 (timevar_init): Rename from init_timevar.
9778 * timevar.h (timevar_init): Rename from init_timevar.
9779 * toplev.c (time_report): Make static.
9780 (do_compile): Conditionally call init_timevar first.
9781 (preprocess_options): Move some code to do_compile.
9783 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9785 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9787 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
9789 * _cpp_lex_direct: Remove pointless code.
9791 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9793 * doc/extend.texi (Function Attributes): Document "near" and "far"
9794 for 68HC11 and 68HC12.
9796 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9798 * expr.c (store_field): When making temporary for store, don't
9799 make it TYPE_QUAL_CONST.
9801 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
9803 * toplev.c (read_integral_parameter): Use "argument" in error
9804 message to distinguish it from actual invalid options.
9806 2003-04-25 Bob Wilson <bob.wilson@acm.org>
9808 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9809 addition of __PIC__ and __pic__ macros.
9810 * config/xtensa/xtensa.h: Clean up indentation.
9812 2003-04-25 Bob Wilson <bob.wilson@acm.org>
9814 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9815 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
9816 (SUBTARGET_CPP_SPEC): Define.
9818 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9819 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9820 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9822 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9823 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9825 2003-04-25 H.J. Lu <hjl@gnu.org>
9827 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9829 (ia64_expand_builtin): Set rmode to SImode for
9830 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9831 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9832 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9833 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9835 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
9837 * configure.in (make_compare_target): Test for GNU cmp and set this
9838 variable appropriately.
9839 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9840 compare4-lean): Rename actual targets to slowcompare*. New compare*
9841 targets depend on names based on make_compare_target.
9842 * configure: Regenerated.
9844 2003-04-25 Richard Henderson <rth@redhat.com>
9846 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9847 to clobber ar.pfs and ar.unat.
9848 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9849 fix test for spilling ar.pfs to the stack.
9851 2003-04-25 Richard Henderson <rth@redhat.com>
9854 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9855 checks during reload; use validize_mem instead of adjust_address.
9857 2003-04-26 Ben Elliston <bje@wasabisystems.com>
9859 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9860 return values from recog_memoized().
9862 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9865 * gcse.c (try_replace_reg): On a successful substitution of a constant
9866 into a single set, try to simplify the source of the set.
9867 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9870 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
9872 * cpplex.c (cpp_token_len): Tighten up.
9873 (cpp_token_as_text): Need extra byte now.
9874 * cpplib.c (glue_header_name): Need extra 2 bytes.
9875 * cppmacro.c (cpp_macro_definition): Need extra byte.
9877 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
9879 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
9880 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
9881 where they might be not present. Use their _sp64 equivalent
9884 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
9886 * i386.md (cvtsi2sdq): Fix typo in previous patch.
9888 2003-04-24 Krister Walfridsson <cato@df.lth.se>
9890 * configure.in: Check whether mbstowcs works.
9891 * configure, config.in: Regenerate.
9892 * intl.c: Use HAVE_WORKING_MBSTOWCS.
9894 2003-04-24 H.J. Lu <hjl@gnu.org>
9896 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9897 for __sync_bool_compare_and_swap_di for int return type.
9899 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9900 Change return type to int.
9901 (__sync_bool_compare_and_swap): Likewise.
9903 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
9905 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
9906 looking for fallthru edge.
9908 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9910 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9911 athlon-fvector): New.
9912 (athlon_*): Revisit to match new optimization guide.
9913 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
9914 * i386.md (cvt??2?? patterns): Fix modes.
9915 (fistp patterns): Set modes.
9917 Accidentaly commited with my earlier reload patch:
9919 * reload.c (find_reloads_address_1): Reload plus at the place of
9922 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
9924 New GCOV_TAG_FUNCTION layout
9925 * coverage.c (struct function_list): Replace name with ident.
9926 (struct counts_entry): Likewise.
9928 (htab_counts_entry_hash, htab_counts_entry_eq,
9929 htab_counts_entry_del): Adjust.
9930 (reads_count_file, get_coverage_counts,
9931 coverage_begin_output, coverage_end_function): Adjust.
9932 (build_fn_info_type, build_fn_info_value): Likewise.
9933 * gcov-dump.c (tag_function): Adjust.
9934 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9935 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9936 * gcov.c (struct function_info): Add ident.
9937 (read_graph_file, read_count_file): Adjust.
9938 * libgcov.c (gcov_exit): Adjust.
9940 2003-04-23 Richard Henderson <rth@redhat.com>
9943 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9944 after initialize_uninitialized_subregs; update reg info assuming
9945 new pseudos were created.
9947 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
9949 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9950 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9951 (lex_string): Take cpp_string with full spelling.
9953 (c_lex): Update diagnostics.
9954 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9955 (create_literal): New.
9956 (lex_string): Unterminated literals have type CPP_OTHER.
9957 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
9959 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9960 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9961 * cpplib.c (parse_include, do_line, do_linemarker,
9962 destringize_and_run): Update for token storing full spelling.
9963 * cpplib.h: Update token spelling types.
9964 * cppmacro.c (stringify_arg, check_trad_stringification):
9965 Update for token storing full spelling.
9967 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
9969 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9971 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
9973 * arm.h (TARGET_OPTIONS): Add value field.
9975 2003-04-23 Mark Mitchell <mark@codesourcery.com>
9977 * doc/extend.texi: Remove duplicate 2003 copyright date.
9979 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
9981 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9982 (libgcov.a): Depends on LIBGCC_DEPS.
9983 * basic-block.h (profile_info): Moved here from coverage.h. Made
9985 * coverage.c (struct function_list): Fixed array of counter types.
9986 (struct counts_entry): Keyed by counter type, contains summary.
9987 (profile_info): Moved to profile.c.
9988 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9990 (profiler_label): Remove.
9992 (set_purpose, label_for_tag, build_counter_section_fields,
9993 build_counter_section_value, build_counter_section_data_fields,
9994 build_counter_section_data_values, build_function_info_fields,
9995 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9996 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9997 build_ctr_info_value, build_gcov_info): New.
9998 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9999 (reads_counts_file): Adjust.
10000 (get_coverage_counts): Takes counter number. Add summary
10002 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
10003 create counter array labels.
10004 (coverage_end_function): Adjust.
10005 (create_coverage): Adjust.
10006 (find_counters_section): Remove.
10007 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
10008 (struct section_info, struct profile_info): Remove.
10009 (profile_info): Moved to basic-block.h.
10010 (coverage_counter_ref): Takes a counter number.
10011 (get_coverage_counts): Takes a counter number. Added summary
10013 (find_counters_section): Remove.
10014 * gcov-dump.c (tag_arc_counts): Rename to ...
10015 (tag_counters): ... here. Adjust.
10016 (tag_table): Move tag_counters to 3rd entry. Remove
10017 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
10018 (dump_file): Check for counter tag values here.
10019 (tag_summary): Adjust.
10020 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
10021 * gcov-io.h (GCOV_LOCKED): New.
10022 (GCOV_TAG_ARC_COUNTS): Rename to ...
10023 (GCOV_TAG_COUNTS_BASE): ... here.
10024 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
10026 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
10027 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
10028 GCOV_TAG_IS_COUNTER): New.
10029 (struct gcov_ctr_summary): New.
10030 (struct gcov_summary): Adjust.
10031 (struct gcov_counter_section): Remove.
10032 struct gcov_counter_section_data): Remove.
10033 (struct gcov_function_info): Rename to ...
10034 (struct gcov_fn_info): ... here. Adjust.
10035 (struct gcov_ctr_info): New.
10036 (struct gcov_info): Adjust.
10037 * gcov.c (read_count_file): Adjust.
10038 (output_lines): Adjust.
10039 * libgcov.c (gcov_exit): Adjust.
10040 (__gcov_flush): Adjust.
10041 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
10042 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
10043 probably_never_executed_bb_p, compute_frequency_function): Adjust
10045 * profile.c (struct counts_entry): Remove.
10046 (profile_info): Define here.
10047 (get_exec_counts): Adjust get_coverage_counts call.
10048 (compute_branch_probablilities): Remove find_counters_section
10050 (gen_edge_profiler): Adjust coverage_counter_ref call.
10051 * tracer.c (tail_duplicate): Adjust profile_info use.
10053 2003-04-23 Roger Sayle <roger@eyesopen.com>
10055 PR optimization/10339
10056 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
10057 directly instead of unsafely transforming call into a memcmp.
10058 (expand_builtin_strncmp): Likewise.
10060 2003-04-22 Roger Sayle <roger@eyesopen.com>
10062 * alias.c (mark_constant_function): Check for constancy and
10063 purity even of void functions. Update both the function decl
10064 and the cgraph RTL info with the results.
10066 2003-04-22 Roger Sayle <roger@eyesopen.com>
10068 * real.c (do_add): Change to return a bool indicating that the
10069 result of the operation may be inexact due to loss of precision.
10070 (do_multiply): Likewise.
10071 (do_divide): Likewise.
10073 2003-04-22 Geoffrey Keating <geoffk@apple.com>
10074 Loren James Rittle <ljrittle@acm.org>
10076 * dwarf2out.c (fde_table_allocated): Mark with GTY.
10077 (decl_die_table_allocated): Likewise.
10078 (abbrev_die_table_allocated): Likewise.
10079 (line_info_table_allocated): Likewise.
10080 (separate_line_info_table_allocated): Likewise.
10081 (pubname_table_allocated): Likewise.
10082 (arange_table_allocated): Likewise.
10083 (ranges_table_allocated): Likewise.
10084 (decl_die_table_in_use): Unconditionalize; mark with GTY.
10085 (abbrev_die_table_in_use): Likewise.
10086 (line_info_table_in_use): Likewise.
10087 (separate_line_info_table_in_use): Likewise.
10088 (pubname_table_in_use): Likewise.
10089 (arange_table_in_use): Likewise.
10090 (ranges_table_in_use): Likewise.
10091 (have_location_lists): Likewise.
10092 (emitcount): New GTY-marked static, moved...
10093 (maybe_emit_file): ...from here.
10094 (label_num): New GTY-marked static, moved...
10095 (gen_internal_sym): ...from here.
10097 2003-04-22 Richard Henderson <rth@redhat.com>
10100 * rtl.h (MEM_NOTRAP_P): New.
10101 (MEM_COPY_ATTRIBUTES): Copy it.
10102 * rtlanal.c (may_trap_p): Check it.
10103 * expr.c (do_tablejump): Set it.
10104 * doc/rtl.texi (Flags): Document it.
10106 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
10108 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
10110 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10111 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10113 2003-04-22 Vincent Celier <celier@gnat.com>
10115 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10116 --enable-threads=gnat.
10117 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10118 * configure.in: Add gnat to the list of thread packages
10119 * configure: Rebuild.
10120 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
10122 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10124 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
10126 2003-04-22 Devang Patel <dpatel@apple.com>
10128 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10130 (_cpp_copy_replacement_text): Same.
10132 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10134 * c-lex.c (c_lex): Handle CPP_OTHER differently.
10135 * cppexp.c (_cpp_parse_expr): Similarly.
10136 * cpplex.c (SPELL_CHAR): Remove.
10137 (_cpp_lex_direct): Stray chars are saved as byte strings.
10138 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10140 (cpp_avoid_paste): Update handling of CPP_OTHER.
10141 * cpplib.h: Spell CPP_OTHER like a number.
10142 (struct cpp_token): Remove member c.
10143 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10145 2003-04-22 David Turner <novalis@gnu.org>
10147 * gbl-ctors.h: Add special license exception.
10148 * libgcc2.h: Likewise.
10149 * tsystem.h: Likewise.
10150 * gcov-io.h: Likewise.
10152 2003-04-22 David Edelsohn <edelsohn@gnu.org>
10154 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10155 macro defaulting to original BRANCH_COST heuristic.
10156 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10158 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10160 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
10162 * config/rs6000/t-spe: Merge in t-fprules into file.
10164 * config.gcc: Add t-spe to powerpc-eabispe.
10166 2003-04-22 Kean Johnston <jkj@sco.com>
10168 * tlink.c (recompile_files): Add missing '=' to putenv calls
10170 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
10172 * ginclude/stddef.h: Provide C++ safe offsetof.
10174 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
10176 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10177 for reg notes, if there are no substitutions, just use a SUBREG.
10179 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10181 * Makefile.in (calls.o): Depend on except.h.
10182 * calls.c: Include except.h.
10183 (emit_call_1): Call note_eh_region_may_contain_throw if
10185 * except.c (eh_region): Add may_contain_throw.
10186 (expand_eh_region_end_cleanup): Do not include handler code when
10187 it cannot be reached.
10188 (note_eh_region_may_contain_throw): New function.
10189 * except.h (note_eh_region_may_contain_throw): New function.
10191 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10193 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10196 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
10198 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10199 64-bit long doubles.
10201 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
10203 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10204 a number of conversions required for type consistency and previously
10205 stripped off by STRIP_NOPS.
10207 * calls.c (expand_call): Prevent sibcall optimization for calls to
10208 nested subprograms.
10210 * expmed.c (extract_bit_field): Reverse operands of && condition to
10211 prevent a potential division by zero in the previously first branch.
10212 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10214 2003-04-21 Joel Brobecker <brobecker@gnat.com>
10216 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10217 (subrange_type_die): Likewise.
10218 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10219 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10221 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
10223 Break out coverage routines to new file.
10224 * Makefile.in (COVERAGE_H): New variable
10225 (C_OBJS): Add coverage.o
10226 (coverage.o): New target.
10227 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10230 (gt-coverage.h): New target.
10231 (gt-profile.h): Remove.
10232 * profile.h: Remove. Move to ...
10233 * coverage.h: ... here. New. #include gcov-io.h.
10234 * gcov-io.h: Move function definitions to ...
10235 * gcov-io.c: ... here. New.
10236 * profile.c: Move coverage routines to coverage.c.
10237 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10238 end_branch_prob): Adjust.
10239 * coverage.c: New. Coverage routines from profile.c
10240 (coverage_counter_ref, coverage_init, coverage_finish,
10241 coverage_end_function, coverage_begin_output,
10242 coverage_counter_ref, get_coverage_counts): Define.
10243 * gcov-dump.c, gcov.c: #include gcov-io.c.
10244 * libgcov.c: Likewise. Adjust.
10245 * loop-init.c: Don't #include profile.h
10246 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
10247 * rtl.h: Add coverage prototypes.
10248 * toplev.c (compile_file): Init coverage, not branch_prob.
10249 Always call coverage_finish.
10250 (rest_of_compilation): Call coverage_end_function.
10252 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
10254 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
10256 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
10258 * c-ppoutput.c (cb_include): Don't take a cpp_token.
10259 * cppfiles.c: Don't undef strcmp.
10260 (find_include_file): Don't take a cpp_token. Check for empty
10262 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
10263 (cpp_push_include): Simplify.
10264 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
10265 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
10266 (parse_include): Similary. Don't check for zero-length filenames.
10267 (do_include_common, do_pragma_dependency): Update accordingly.
10268 * cpplib.h (struct cpp_callbacks): Change prototype of include.
10270 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10272 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
10273 details of conflict handling.
10275 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
10276 when conversion overflows.
10278 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10280 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10283 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10285 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10286 have the same form as the old RTL.
10288 2003-04-21 Andreas Jaeger <aj@suse.de>
10290 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
10292 2003-04-20 Chris Lattner <sabre@nondot.org>
10293 Zack Weinberg <zack@codesourcery.com>
10295 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10296 genrtl_cleanup_stmt. Correct comment at head of
10297 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10299 * stmt.c (struct nesting): Kill n_function_calls.
10300 (expand_start_bindings): Don't set
10301 thisblock->data.block.n_function_calls.
10302 (expand_end_bindings): Compare function_call_count against 0.
10303 (expand_cleanups): Kill DONT_DO argument; all callers passed
10304 NULL_TREE. All callers updated to match.
10306 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10308 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10309 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10310 (output_constant_def): Remove code predicated on
10311 defer_addressed_constants_flag.
10313 * output.h: Remove prototypes of deleted functions.
10314 * c-typeck.c (constructor_subconstants_deferred): Kill.
10315 (struct initializer_stack): Remove 'deferred' field.
10316 (start_init): Remove all references to the above.
10317 (finish_init): Likewise. Also remove never-executed call to
10318 output_deferred_addressed_constants. Pull assignment to
10319 defstr out of if expression.
10321 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10323 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10324 NOTE_NEWLINE): Remove.
10325 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10326 to handle new form of line note type.
10328 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10330 * target.h (encode_section_info): Add new argument carrying
10331 the RTL to be modified by the hook.
10333 * varasm.c (make_decl_rtl, output_constant_def): Update calls
10334 to encode_section_info.
10335 (default_encode_section_info): Take and use RTL argument,
10336 don't use TREE_CST_RTL or DECL_RTL.
10337 * output.h: Update prototype of default_encode_section_info.
10338 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10339 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10340 Update calls to encode_section_info.
10342 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10343 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10344 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10345 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10346 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10347 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10348 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10349 except for PE dllimport/dllexport. Update calls to
10350 default_encode_section_info.
10352 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10355 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10357 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10360 * pa.md (movccfp): New expander.
10361 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10362 Reverse fcmp conditions.
10364 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
10366 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10367 of operand 1 correctly.
10369 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
10371 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10372 * gcov.c (output_lines): Don't be so fussy about going past EOF.
10374 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10376 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10377 (cppcharset.o): New target.
10378 * c-lex.c (is_extended_char): Move to cppcharset.c.
10379 (utf8_extend_token): Delete.
10380 * cppcharset.c: New file.
10381 * cpphash.h (_cpp_valid_ucn): New.
10382 * cpplex.c (lex_identifier): Update prototype.
10383 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
10385 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
10387 (lex_number, lex_identifier, cpp_parse_escape): Update.
10388 (_cpp_lex_direct): Update to handle UCNs.
10389 (cpp_avoid_paste): Don't paste to form a UCN.
10391 2003-04-19 Roger Sayle <roger@eyesopen.com>
10393 * builtins.c (expand_builtin): Don't expand a pure or const
10394 built-in function if the result will be ignored and none of
10395 its arguments are volatile.
10397 2003-04-19 Kean Johnston <jkj@sco.com>
10399 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10400 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10401 target fragment now: t-sco5; dont compile crti.o.
10402 * config/i386/sco5.h: major overhaul to remove all COFF remnants
10403 and to use elfos.h for most definitions.
10404 (BSS_SECTION_ASM_OP): set correct segment attributes.
10405 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10406 (DWARF2_UNWIND_INFO): Always set to 1.
10407 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10408 (MD_STARTFILE_PREFIX_1): Define.
10409 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10410 (DEFAULT_LINKER): Define if not specified to configure.
10411 (CTORS_SECTION_ASM_OP): Remove COFF crud.
10412 (DTORS_SECTION_ASM_OP): Remove COFF crud.
10413 (WINT_TYPE): Define.
10414 (SDB_DEBUGGING_INFO): Remove.
10415 (EXTRA_SECTIONS): Likewise.
10416 (EXTRA_SECTION_FUNCTIONS): Likewise.
10417 (CTOR_LIST_BEGIN): Likewise.
10418 (CTOR_LIST_END): Likewise.
10419 (INIT_SECTION_FUNCTION): Likewise.
10420 (FINI_SECTION_FUNCTION): Likewise.
10421 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10422 (LOCAL_LABEL_PREFIX): Likewise.
10423 (NON_SAVING_SETJMP): Likewise.
10424 (RETURN_POPS_ARGS): Likewise.
10425 (ASM_OUTPUT_SKIP): Likewise.
10426 (TARGET_ASM_NAMED_SECTION): Likewise.
10427 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10428 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10429 (ASM_OUTPUT_IDENT): Likewise.
10430 (ASM_OUTPUT_CASE_LABEL): Likewise.
10431 (ASM_OUTPUT_ASCII): Likewise.
10432 (ASM_OUTPUT_LIMITED_STRING): Likewise.
10433 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10434 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10435 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10436 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10437 (ASM_DECLARE_OBJECT_NAME): Likewise.
10438 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10439 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10440 (ASM_DECLARE_RESULT): Likewise.
10441 (ASM_WEAKEN_LABEL): Likewise.
10442 (SUPPORTS_WEAK): Likewise.
10443 (APPLY_RESULT_SIZE): Likewise.
10444 (LPREFIX): Likewise.
10445 (ALIGN_ASM_OP): Likewise.
10446 (ASCII_DATA_ASM_OP): Likewise.
10447 (IDENT_ASM_OP): Likewise.
10448 (ASM_SHORT): Likewise.
10449 (ASM_LONG): Likewise.
10450 (TYPE_ASM_OP): Likewise.
10451 (SIZE_ASM_OP): Likewise.
10452 (STRING_ASM_OP): Likewise.
10453 (SKIP_ASM_OP): Likewise.
10454 (EH_FRAME_SECTION_ASM_OP): Likewise.
10455 (READONLY_DATA_SECTION_ASM_OP): Likewise.
10456 (INIT_SECTION_ASM_OP): Likewise.
10457 (FINI_SECTION_ASM_OP): Likewise.
10458 (TEXT_SECTION_ASM_OP): Likewise.
10459 (DATA_SECTION_ASM_OP): Likewise.
10460 (TYPE_OPERANT_FORMAT): Likewise.
10461 (ASM_SPEC): Remove COFF code.
10462 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10463 cause -pg to emit an error; use pcrt1elf.o with -pp
10464 (ENDFILE_SPEC): Likewise.
10465 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10466 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10467 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10468 add -z alt_resolve to support weak symbols the way GCC wants them.
10469 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10470 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10471 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10472 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10473 (CRTSTUFF_T_CFLAGS_S): Define.
10474 (MULTILIB_OPTIONS): Likewise.
10475 (MULTILIB_DIRNAMES): Likewise.
10476 (MULTILIB_MATCHES): Likewise.
10477 (MULTILIB_EXTRA_OPTS): Likewise.
10478 (LIBGCC): Likewise.
10479 (INSTALL_LIBGCC): Likewise.
10481 * config/i386/t-sco5gas: Remove.
10482 * doc/install.texi: Updated for new OpenServer instructions.
10483 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10485 2003-04-19 Kean Johnston <jkj@sco.com>
10487 * fixinc/check.tpl: Allow user to over-ride diff program.
10488 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10489 (sco_math): Added test for SCO math header files.
10490 (sco_regset): Added check for conflicts with ieeefp.h.
10491 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10492 * fixinc/fixincl.x: Regenerated
10493 * fixinc/tests/base/math.h: Added sco_math tests.
10494 * fixinc/tests/base/string.h: New file.
10495 * fixinc/tests/base/sys/regset.h: New file.
10497 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10499 * cpphash.h (struct cpp_buffer): Remove backup_to.
10500 * cpplex.c (BACKUP, get_effective_char): Die.
10501 (_cpp_skip_block_comment): Assume '*' is location on entry.
10502 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10503 (IF_NEXT_IS): Update.
10504 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10506 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
10508 * README.Portability: Move to a new section and obsolete K+R
10509 portability issues.
10511 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
10513 * rtlanal.c (subreg_offset_representable_p): Fix call of
10516 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10518 * cpphash.h (struct cpp_reader): New member warned_dollar.
10519 * cpplex.c (continues_identifier_p): New function.
10520 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10521 lex_number and lex_string, and simplify.
10522 (parse_slow, unescaped_terminator_p): Die.
10523 (_cpp_lex_direct): Update.
10525 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10527 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10529 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
10531 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
10534 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10536 * cppexp.c (eval_token): Permit true and false even if pedantic.
10538 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10540 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10542 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10544 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10545 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10546 (struct include_file): Remove fefcnt, mapped members.
10547 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10548 (read_include_file): Don't use mmap, terminate buffers in '\r'.
10549 (purge_cache): Don't use munmap.
10550 * cpphash.h (CPP_BUF_COLUMN): Update.
10551 (lexer_state): Remove lexing_comment.
10552 (struct _cpp_line_note): New.
10553 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10554 next_line and need_line. Remove col_adjust and saved_flags.
10555 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10556 _cpp_skip_block_comment, scan_out_logical_line): New.
10557 (_cpp_init_mbchar): Remove.
10558 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10559 (cpp_read_main_file): Set line to 1 earlier.
10560 (post_options): -traditional-cpp doesn't want trigraphs.
10561 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10562 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10563 _cpp_get_fresh_line): New.
10564 (handle_newline, skip_escaped_newlines, trigraph_p,
10565 continue_after_nul, _cpp_init_mbchar): Remove.
10566 (get_effective_char): Update.
10567 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10568 (skip_line_comment): Simplify.
10569 (skip_whitespace, parse_identifier, parse_slow, parse_number,
10570 parse_string): Update.
10571 (cpp_lex_direct): Use clean lines and process line notes. Update.
10572 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10573 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10575 (_cpp_handle_directive): Don't set saved_flags.
10576 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10577 cpp_undef, handle_assertion, cpp_push_buffer): Update.
10578 (_cpp_pop_buffer): Free notes.
10579 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10580 * cpppch.c (cpp_read_state): \n terminate buffer.
10581 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10582 (copy_comment): Use _cpp_skip_block_comment.
10583 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10585 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10586 save_replacement_text): Update.
10587 (scan_out_logical_line): Update to use clean lines and process
10589 * fix-header.c (read_scan_file): Update.
10591 2003-04-18 Douglas B Rupp <rupp@gnat.com>
10593 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10594 null begin parameter (as well as pointer to null).
10595 (__deregister_frame_info_bases): Likewise.
10597 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10599 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10600 hard or virtual register and copy into pseudo if replacement fails.
10602 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
10604 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10606 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
10608 * calls.c (expand_call): Move special case for constructor calls
10609 to right place. Ensures constructor calls used to initialize
10610 arguments get a clean outgoing argument block for themselves.
10611 Move check for stack deallocation completeness until after last
10612 deallocation. Add stack_pointer_delta to set of state
10613 variables saved and restored along with current stack_level.
10615 * integrate.c (expand_inline_function): Ensure non-const actuals
10616 don't end up const in the caller's flow after conversion to possibly
10619 2003-04-18 Vincent Celier <celier@gnat.com>
10621 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10622 and *_DIV_EXPR as TRUNC_*_EXPR.
10624 2003-04-18 Mark Mitchell <mark@codesourcery.com>
10626 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10627 for orphaned jump tables.
10629 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
10631 * reload1.c: Revert my previous patch on 2002-04-17.
10633 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10635 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10636 Add Segher Boessenkool.
10638 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
10641 * c-decl.c (c_expand_body): Don't garbage collect the function
10642 body if we are going to dump it later.
10644 2003-04-18 Richard Henderson <rth@redhat.com>
10646 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10647 (alpha_end_function): Don't set them.
10648 (decl_in_text_section): Remove.
10649 (alpha_encode_section_info): Remove.
10650 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10651 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10652 sections, rather than decl_in_text_section results.
10654 2003-04-18 Roger Sayle <roger@eyesopen.com>
10656 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10659 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
10661 PR optimization/7675
10662 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10663 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10664 nested functions if they refer to declarations from parent functions.
10665 * stmt.c (expand_decl): Don't put automatic variables in registers
10666 if the DECL_NONLOCAL flag is set.
10668 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10670 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10671 consider those to be movable where the source matches
10673 (update_ld_motion_stores): In comment, refer to
10674 compute_ld_motion_mems for validity of replacement.
10676 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
10678 * gcov-dump.c (tag_summary): Remove max_sum
10679 * gcov-io.h (gcov_summary, gcov_write_summary,
10680 gcov_read_summary): Kill max_sum.
10681 * libgcov.c (gcov_exit): Do one pass over the data. Make error
10682 message more verbose.
10684 * emit-rtl.c (subreg_hard_regno): Check that register is
10687 * reload.c (reload_inner_reg_of_subreg): When register is not
10688 representable, reload the whole thing.
10689 (find_reloads): Likewsie.
10690 * rtlanal.c (subreg_representable_p): New function.
10692 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
10693 allow negative probabilities for edges from the call to exit.
10694 (branch_prob): Do not add fake edges for functions that may return
10697 2003-04-17 DJ Delorie <dj@redhat.com>
10699 * toplev.c (target_options): Add value field.
10700 (set_target_switch): Handle target options with values.
10701 * doc/tm.texi: Document how fixed vs variable target
10703 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10704 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10705 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10706 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10707 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10708 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10709 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10710 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10711 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10712 Add value initializer to target options.
10714 2003-04-07 Loren James Rittle <ljrittle@acm.org>
10716 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10718 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
10720 * reload1.c (move2add_last_cc0): New.
10721 (reload_cse_move2add): Detect implicit sets.
10722 (move2add_note_store): Notice a store into cc0.
10724 2003-04-17 Roger Sayle <roger@eyesopen.com>
10727 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10728 function attributes.
10730 2003-04-17 Janis Johnson <janis187@us.ibm.com>
10732 * doc/sourcebuild.texi (Test Suites): Document support for testing
10733 binary compatibility (moved from testsuite/README.compat).
10735 2003-04-17 Richard Henderson <rth@redhat.com>
10737 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10739 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
10741 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10742 the one provided by the FSF.
10744 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10746 * doc/install.texi (Binaries): Update URL and list of platforms
10747 provided by ftp.thewrittenword.com.
10749 2003-04-17 Richard Henderson <rth@redhat.com>
10751 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10752 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10753 * config/xtensa/xtensa.md (call, call_value): Likewise.
10755 2003-04-17 Richard Henderson <rth@redhat.com>
10757 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10758 (print_operand_address): Likewise.
10759 (ep_memory_operand): Likewise.
10760 (special_symbolref_operand): Likewise.
10761 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10762 (v850_encode_section_info): Call default_encode_section_info.
10763 (v850_strip_name_encoding): Remove.
10764 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10765 (ASM_OUTPUT_LABELREF): Remove.
10766 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10767 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10768 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10769 (ENCODED_NAME_P): Remove.
10770 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10771 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10772 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10774 2003-04-17 Richard Henderson <rth@redhat.com>
10776 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10777 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10778 SYMBOL_REF_FUNCTION_P.
10780 2003-04-17 Richard Henderson <rth@redhat.com>
10782 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10783 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10784 (text_segment_operand): Likewise.
10786 2003-04-17 Richard Henderson <rth@redhat.com>
10788 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10789 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10790 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10791 (sh_encode_section_info): Remove.
10792 (sh_strip_name_encoding): Remove.
10793 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10794 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10795 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10796 (ASM_OUTPUT_LABELREF): Remove.
10797 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10798 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10800 2003-04-17 Richard Henderson <rth@redhat.com>
10802 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10803 (tls_model_chars): Remove.
10804 (larl_operand): Use SYMBOL_REF_FLAGS.
10805 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10806 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10807 (s390_output_mi_thunk): Likewise.
10808 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10809 (s390_function_profiler): Likewise.
10810 (s390_encode_section_info): Use default_encode_section_info
10811 and SYMBOL_FLAG_ALIGN1.
10812 (s390_strip_name_encoding): Remove.
10813 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10814 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10815 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10817 2003-04-17 Richard Henderson <rth@redhat.com>
10819 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10820 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10821 (print_operand_address): Likewise.
10823 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10824 * config/ns32k/ns32k.c (expand_block_move): Don't check
10827 2003-04-17 Richard Henderson <rth@redhat.com>
10829 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10832 2003-04-17 Richard Henderson <rth@redhat.com>
10834 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10836 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10837 (SYMBOL_REF_MODEL): New.
10838 (LIT_NAME_P): Move from m32r.h.
10839 (m32r_select_section): Remove.
10840 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10841 (m32r_strip_name_encoding): Remove.
10842 (m32r_in_small_data_p): New.
10843 (small_data_operand): Use SYMBOL_REF_SMALL_P.
10844 (addr24_operand): Use SYMBOL_REF_MODEL.
10845 (call26_operand): Likewise.
10846 (addr32_operand): Tidy.
10847 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10848 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10849 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10850 (READONLY_DATA_SECTION_ASM_OP): Remove.
10851 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10852 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10853 (TARGET_ASM_SELECT_SECTION): Remove.
10854 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10855 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10856 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10857 (ASM_OUTPUT_LABELREF): Remove.
10859 2003-04-17 Richard Henderson <rth@redhat.com>
10861 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10862 (encode_section_info): Remove.
10863 * config/ip2k/ip2k-protos.h: Update.
10865 2003-04-17 Richard Henderson <rth@redhat.com>
10867 * varasm.c (default_encode_section_info): Don't set
10868 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10869 * config/i370/i370.c (i370_encode_section_info): Remove.
10870 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10871 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10872 * config/i370/i370.md (movsi): Likewise.
10874 * config/i370/t-i370: Add missing backslash.
10876 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10878 * doc/invoke.texi (inline-limit): Fix pasto.
10880 2003-04-17 Richard Henderson <rth@redhat.com>
10882 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10883 (small_call_insn_operand): Use it.
10884 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10885 (h8300_eightbit_constant_address_p): Use it.
10886 (SYMBOL_FLAG_TINY_DATA): New.
10887 (h8300_tiny_constant_address_p): Use it.
10888 (h8300_encode_label, h8300_strip_name_encoding): Remove.
10889 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10890 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10891 (ASM_OUTPUT_LABELREF): Remove.
10893 2003-04-16 Richard Henderson <rth@redhat.com>
10895 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
10896 all users with SYMBOL_REF_SMALL_P.
10897 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10898 (frv_encode_section_info): Remove.
10899 (frv_strip_name_encoding): Remove.
10900 (frv_in_small_data_p): Merge tests from encode_section_info.
10901 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10902 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10903 (SDATA_NAME_P): Remove.
10904 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10905 (ASM_OUTPUT_LABELREF): Remove.
10906 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10908 * config/frv/frv.c (frv_asm_out_constructor): New.
10909 (frv_asm_out_destructor): New.
10910 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10911 (DTORS_SECTION_ASM_OP): New.
10912 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10913 (ASM_OUTPUT_DESTRUCTOR): Remove.
10915 2003-04-16 Richard Henderson <rth@redhat.com>
10917 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10918 SYMBOL_REF_LOCAL_P; abort if not pic.
10919 (cris_encode_section_info): Remove.
10921 2003-04-16 Richard Henderson <rth@redhat.com>
10923 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10924 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10926 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10929 2003-04-16 Richard Henderson <rth@redhat.com>
10931 * config/avr/avr.c (avr_encode_section_info): Remove.
10932 (avr_insert_attributes): New.
10933 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10934 (avr_assemble_integer): Likewise.
10936 2003-04-16 Richard Henderson <rth@redhat.com>
10938 * arc.c (arc_encode_section_info): Remove.
10939 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
10940 (arc_print_operand, arc_print_operand_address): Likewise.
10941 * arc.h (EXTRA_CONSTRAINT): Likewise.
10943 2003-04-16 Roger Sayle <roger@eyesopen.com>
10945 * c-semantics.c (find_reachable_label): New function to find a
10946 potentially reachable label in an expression.
10947 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10948 assumes the start of the IF_STMT is unreachable (dead) code.
10949 (expand_unreachable_stmt): Similar to expand_stmt but assumes
10950 the start of the statement list is unreachable (dead) code.
10951 (genrtl_if_stmt): If the controlling expression of the IF
10952 is constant, use expand_unreachable_stmt for the THEN or ELSE
10953 clause as appropriate.
10954 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
10955 the body of a SWITCH statement.
10956 (expand_stmt): The code immediately following a "return",
10957 "break", "continue" or "goto" is unreachable.
10958 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10960 2003-04-16 Richard Henderson <rth@redhat.com>
10962 * rtl.h (MEM_ALIAS_SET): Update documentation.
10963 * doc/rtl.texi (Special Accessors): New node.
10964 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10966 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
10968 * reload1.c (reload_cse_noop_set_p): Return false if mode of
10969 SET_DEST is not the same as that returned by...
10970 * cselib.h (cselib_reg_set_mode): ... new function.
10971 * cselib.c (cselib_reg_set_mode): Define it.
10972 (REG_VALUES): Document semantics of first element as set mode.
10973 (cselib_subst_to_values): Skip first element if ELT is NULL.
10974 (cselib_lookup): Likewise. Insert past the first element.
10975 (cselib_invalidate_regno): NULLify first element.
10976 (cselib_record_set): Set first element.
10978 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
10980 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10981 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10982 * tree.h: Add prototypes for the two new functions.
10983 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10984 updates introduced in the previous revision by call to saved_expr_p.
10985 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
10987 * expr.c (store_field): Force usage of bitfield instructions when
10988 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10989 (expand_expr, case BIT_FIELD_REF): likewise.
10991 2003-04-16 Mark Mitchell <mark@codesourcery.com>
10994 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10997 2003-04-16 Richard Henderson <rth@redhat.com>
10999 * config/ia64/ia64.c (sdata_symbolic_operand): Use
11000 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
11001 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11002 (function_operand): Use SYMBOL_REF_FUNCTION_P.
11003 (ia64_expand_load_address): Likewise.
11004 (ia64_assemble_integer): Likewise.
11005 (ia64_encode_section_info): Remove.
11006 (ia64_strip_name_encoding): Remove.
11007 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
11008 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
11010 2003-04-16 Richard Henderson <rth@redhat.com>
11012 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
11013 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
11014 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
11015 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11016 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
11017 (global_symbolic_operand): Similarly.
11018 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
11019 (tls_symbolic_operand_type): Likewise.
11020 (alpha_encode_section_info): Use default_encode_section_info.
11021 (alpha_strip_name_encoding): Remove.
11022 (get_tls_get_addr): Split out from ...
11023 (alpha_legitimize_address): ... here.
11024 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
11025 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
11026 (alpha_initialize_trampoline): Use init_one_libfunc.
11027 (alpha_setup_incoming_varargs): Mark unused parameters.
11028 (alpha_initial_elimination_offset): Likewise.
11029 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
11030 (unicosmk_unique_section): Use default_strip_name_encoding.
11031 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
11033 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
11035 * config.gcc: Add t-spe for eabispe.
11037 * config/rs6000/t-spe: New.
11039 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
11041 Re-apply this patch:
11043 2002-05-16 Dale Johannesen <dalej@apple.com>
11044 * combine.c (cant_combine_insn_p): Reenable combinations
11045 involving hard regs unless CLASS_LIKELY_SPILLED_P.
11047 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11050 * pa-protos.h (function_arg): Remove last argument.
11051 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
11052 * pa.h (struct hppa_args): Add member incoming.
11053 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
11055 (FUNCTION_ARG): Revise call to function_arg.
11056 (FUNCTION_INCOMING_ARG): Delete.
11058 2003-04-15 Zack Weinberg <zack@codesourcery.com>
11060 * configure.in: Unify the code which creates symlinks to a
11061 just-built as, ld, objdump, and nm with the code that detects
11062 their presence for purposes of feature tests.
11063 * configure: Regenerate.
11065 2003-04-15 Zack Weinberg <zack@codesourcery.com>
11067 * varasm.c (output_constant_def): Do not consult
11068 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
11069 (after_function_constants, output_after_function_constants): Delete.
11070 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
11071 * config/mips/mips-protos.h, config/mips/mips.c
11072 (mips16_constant_after_function_p): Delete.
11073 * config/mips/mips.h: Delete #if-0-ed definition of
11074 CONSTANT_AFTER_FUNCTION_P.
11075 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
11076 mention of CONSTANT_AFTER_FUNCTION_P in comment.
11078 2003-04-15 Geoffrey Keating <geoffk@apple.com>
11080 * tree.c (next_decl_uid): Mark with GTY.
11081 (next_type_uid): Likewise.
11083 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11086 * sh.c (barrier_align): Also recognize stuff_delay_slot as
11087 an indicator that a barrier was created by branch splitting.
11089 2003-04-15 Mark Mitchell <mark@codesourcery.com>
11091 * c-decl.c (implicitly_declare): Copy declarations that are going
11092 to be placed in a local scope.
11094 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
11096 * invoke.texi (Spec Files): Wrap if-exists-else example.
11097 (MCore): Remove duplicate @itemx entries and @opindex entries.
11099 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
11101 * unwind.inc (_Unwind_Backtrace): New function.
11102 * unwind.h (_Unwind_Backtrace): Declare it.
11103 * libgcc-std.ver (_Unwind_Backtrace): Export it.
11105 2003-04-14 Jason Merrill <jason@redhat.com>
11107 PR middle-end/10336, c++/10401
11108 * jump.c (never_reached_warning): Also stop looking if we reach the
11109 beginning of the function.
11111 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11116 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11118 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11120 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11122 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11124 * optabs.c (expand_binop): In multi-word add cases, ensure
11125 XTARGET is copied to TARGET if they are different.
11127 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
11129 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11130 to region, possible after integration of function with unreachable
11131 regions that were optimized away.
11133 2003-04-15 Jakub Jelinek <jakub@redhat.com>
11135 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11136 instead of TOC_REGISTER in epilogue in
11137 current_function_calls_eh_return functions.
11139 2003-04-14 Mark Mitchell <mark@codesourcery.com>
11141 * doc/extend.texi (Empty Structures): Correct description of G++'s
11142 handling of these structures.
11144 * c-decl.c (grokdeclarator): Reject extern redeclarations of
11147 2003-04-14 Janis Johnson <janis287@us.ibm.com>
11149 * config/rs6000/rs6000.md (define_constants): Define constants for
11150 all UNSPEC usage, including new values for TLS support.
11151 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11152 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11153 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11154 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11155 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11156 eh_set_lr_di): Use them.
11157 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11158 rs6000_emit_epilogue) Use them.
11160 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11162 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
11164 * Makefile.in (c-opts.o): Use custom action.
11166 2003-04-14 Douglas B Rupp <rupp@gnat.com>
11168 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11170 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11172 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11173 handle "superflat arrays" in Ada.
11175 * integrate.c (expand_inline_function): Don't inline if would
11176 lose /u on a BLKmode TARGET.
11178 2003-04-14 Joel Brobecker <brobecker@gnat.com>
11180 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11181 extracted from dbxout_type.
11182 (dbxout_range_type): print large bounds in octal format.
11183 (dbxout_type): Replace extracted code by call to
11184 print_int_cst_bounds_in_octal_p.
11186 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11187 of DW_LANG_Ada83 for Ada units.
11189 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
11191 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11192 temporary used to round CONST_INT sizes.
11194 * tree.c (int_fits_type_p): Extract generic checks from the case
11195 of constant type bounds. Refine the checks against constant type
11196 bounds to allow for possible decisions against each of these bounds
11197 without requiring both bounds to be constant.
11198 (tree_int_cst_msb): Put back.
11199 * tree.h (tree_int_cst_msb): Likewise.
11201 * global.c (global_conflicts): Prevent allocation of call clobbered
11202 hard regs to pseudos live across abnormal edges, as later passes are
11203 not ready to handle them.
11205 * fold-const.c (fold): Reorder tests for conditional expressions.
11207 * expr.c (highest_pow2_factor): Return unsigned.
11208 * expr.h (offset_address): Likewise.
11209 * emit-rtl.c (offset_address): POW2 argument now unsigned.
11211 2003-04-14 Roger Sayle <roger@eyesopen.com>
11213 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
11214 string literals at compile-time.
11216 2003-04-14 Roger Sayle <roger@eyesopen.com>
11218 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
11219 comparison operation and c1/c2 are floating point constants into
11220 x swap(cmp) (c1 - c2).
11222 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
11224 * genautomata.c (output_translate_vect): Fix a typo in loop
11227 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
11230 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11231 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11232 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11233 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11234 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11235 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11236 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11237 ("*extopqihi_swap_side", "*extopqisi_swap_side")
11238 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11239 When next to constraint R, replace constraint i with n.
11241 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
11244 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11246 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
11248 * doc/contrib.texi (Contributors): Correct my entry.
11250 2003-04-13 Roger Sayle <roger@eyesopen.com>
11252 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
11253 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
11254 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
11255 implies DECL_BUILT_IN to simplify logic.
11256 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
11258 2003-04-13 Roger Sayle <roger@eyesopen.com>
11260 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
11261 (BT_FN_PTR_SIZE_SIZE): Likewise.
11262 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
11263 New built-in functions for malloc, calloc and strdup respectively.
11264 * calls.c (special_function_p): No need to handle malloc-like
11265 functions any longer. ECF_MALLOC is set via built-in attributes.
11267 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
11269 * doc/extend.texi: Document these new built-in functions.
11271 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11273 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
11274 (expand_builtin_stpcpy): New.
11275 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
11276 * builtins.def: Add mempcpy & stpcpy support.
11277 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
11279 2003-04-13 Nick Clifton <nickc@redhat.com>
11281 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11283 * config/rs6000/40x.md, config/rs6000/603.md,
11284 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11285 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11286 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11287 config/rs6000/aix43.h, config/rs6000/aix51.h,
11288 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11289 config/rs6000/altivec.h, config/rs6000/altivec.md,
11290 config/rs6000/beos.h, config/rs6000/darwin.h,
11291 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11292 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11293 config/rs6000/freebsd.h, config/rs6000/gnu.h,
11294 config/rs6000/host-darwin.c, config/rs6000/linux.h,
11295 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11296 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11297 config/rs6000/netbsd.h, config/rs6000/power4.md,
11298 config/rs6000/rios1.md, config/rs6000/rios2.md,
11299 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11300 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11301 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11302 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11303 config/rs6000/spe.md, config/rs6000/sysv4.h,
11304 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
11305 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
11307 2003-04-13 Nick Clifton <nickc@redhat.com>
11309 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11310 support for -mcall-aix switch.
11311 * config/rs6000/eabiaix.h: Delete.
11312 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11313 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11314 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11315 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11316 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11317 debug_stack_info, output_function_profiler,
11318 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11319 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11320 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11321 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11322 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11323 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11325 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11326 (MULTILIB_EXCEPTIONS): Delete.
11327 (MULTILIB_MATCHES): Remove mcall-aix matches.
11329 * doc/fragments.texi: Replace -mcall-aix example with an ARM
11331 * doc/install.texi: Delete powerpc-*-eabiaix target.
11332 * doc/invoke.texi: Remove documentation of mcall-aix switch.
11333 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11334 * config.gcc: Delete powerpc-*-eabiaix target.
11336 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
11338 * doc/invoke.texi: Fix typos.
11339 * doc/tm.texi: Likewise.
11341 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11343 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11345 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11347 * tree.c (build_constructor): New function.
11348 * tree.h: Prototype it.
11350 * c-typeck.c (build_c_cast, pop_init_level)
11351 * profile.c (build_function_info_value, build_gcov_info_value)
11353 Use build_constructor.
11355 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11357 * objc/objc-act.c (build_constructor):
11358 Rename objc_build_constructor. Use build_constructor.
11359 (build_objc_string_object, objc_add_static_instance)
11360 (init_def_list, init_objc_symtab, init_module_descriptor)
11361 (generate_static_references, build_selector_translation_table)
11362 (build_descriptor_table_initializer, generate_descriptor_table)
11363 (build_protocol_initializer, build_ivar_list_initializer)
11364 (generate_ivars_list, build_dispatch_table_initializer)
11365 (generate_dispatch_table, generate_protocol_list)
11366 (build_category_initializer, build_shared_structure_initializer):
11369 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11371 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11373 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11375 * config/m68hc11/m68hc11-protos.h
11376 (m68hc11_eq_compare_operator): Declare
11377 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11378 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11379 (d_register_operand): Check the operand mode.
11380 (hard_addr_reg_operand): Likewise.
11382 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11384 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11385 pattern for dbcc/ibcc generation for 68HC12.
11386 ("doloop_end"): New pattern.
11387 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11388 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11389 ("m68hc12_dbcc_dec_qi"): New pattern.
11390 ("m68hc12_dbcc_inc_qi"): New pattern.
11391 (split): Add split for the above when we can't use dbcc/ibcc due to
11393 (peephole2): Add peephole2 to generate the above when possible.
11395 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11397 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11399 (peephole2 optimize const load): Likewise for operand 2.
11400 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11401 clobbers CC_REGNUM.
11402 ("*rotrhi3_with_carry"): Likewise.
11403 (ashift:DI 1 split): Update pattern to create the above rotate.
11404 (lshiftrt:DI 1 split): Likewise.
11406 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11408 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11409 ("tstqi_z_used" split): Use it.
11410 ("cmphi_z_used"): Likewise.
11411 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11412 ("cmpqi_z_used"): Likewise.
11414 2003-04-12 Mark Mitchell <mark@codesourcery.com>
11417 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11419 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11421 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11422 * configure, config.in: Regenerate.
11423 * intl.c (gcc_gettext_width): New function.
11424 * intl.h: Prototype it.
11426 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11428 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11429 recognize -mnorelax.
11430 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11431 (REG_CLASS_NAMES): Add its name.
11432 (REG_CLASS_CONTENTS): Define its content.
11434 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11436 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11437 parameters so that offsets are valid for far definition.
11438 (__mulsi3): Likewise and use ret to return.
11439 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11441 2003-04-12 David Edelsohn <edelsohn@gnu.org>
11443 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11445 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
11447 * mklibgcc.in (libgcc-stage-start): For every multilib directory
11448 containing a libgcc.a, move lib* to the corresponding stage dir.
11450 * Makefile.in (stage1-start, stage2-start, stage3-start,
11451 stage4-start): Move $(SPECS) to specs in stage dir.
11452 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11455 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11456 object files from the non-libgcc/ multilib directories as well.
11458 2003-04-11 Geoffrey Keating <geoffk@apple.com>
11460 * profile.c (read_counts_file): Initialise 'checksum'.
11462 * emit-rtl.c (gen_rtx): Really correct typo.
11465 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11466 * configure.in: Check for gettimeofday.
11467 * tree.c (flag_random_seed): Define.
11468 (default_flag_random_seed): New.
11469 (append_random_chars): Use flag_random_seed rather than trying
11470 to acquire randomness here.
11471 * tree.h (default_flag_random_seed): Declare.
11472 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11474 (decode_f_option): Handle -frandom-seed.
11475 (print_switch_values): Call default_flag_random_seed.
11476 * flags.h (flag_random_seed): Declare.
11477 * configure: Regenerate.
11478 * config.in: Regenerate.
11479 * config/alpha/t-crtfm: Use -frandom-seed.
11481 * doc/extend.texi (Empty Structures): New.
11483 * c-pch.c: Include flags.h. Add comments to routines.
11484 (struct c_pch_validity): New.
11485 (get_ident): Update PCH file version number.
11486 (pch_init): Output current debugging type.
11487 (c_common_valid_pch): Check debugging type.
11488 * Makefile.in (c-pch.o): Update dependencies.
11489 * flags.h (debug_type_names): Declare.
11490 * toplev.c (debug_type_names): Move out of decode_g_option.
11492 2003-04-11 Eric Christopher <echristo@redhat.com>
11494 * emit-rtl.c (gen_rtx): Fix typos.
11496 2003-04-11 Richard Henderson <rth@redhat.com>
11498 * emit-rtl.c (gen_rtx): Zero '0' fields.
11500 2003-04-11 Richard Henderson <rth@redhat.com>
11503 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11504 not COMPLETE_TYPE_P for re-invoking layout_decl.
11506 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
11508 * doc/bugreport.texi: Fix paragraph breaking between sections
11509 in preparation for TeXinfo's paragraph indentation fixes.
11510 * doc/extend.texi: Ditto.
11511 * doc/invoke.texi: Ditto.
11512 * doc/objc.texi: Ditto.
11513 * doc/gcov.texi: Wrap 'gcov' in @command{}.
11514 * doc/invoke.texi (Darwin Options): Add a preamble.
11516 2003-04-11 Richard Henderson <rth@redhat.com>
11518 * config/i386/i386.c (tls_model_chars): Remove.
11519 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11520 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11521 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11522 (tls_symbolic_operand_1): Likewise.
11523 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11524 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11525 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11526 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11527 bits "copied from i386.h" with default_encode_section_info.
11529 2003-04-11 Richard Henderson <rth@redhat.com>
11531 * rtl.def (SYMBOL_REF): Add two 0 fields.
11532 * gengtype.c (adjust_field_rtx_def): Handle them.
11533 * print-rtl.c (print_rtx): Print them.
11534 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11535 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11536 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11537 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11538 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11539 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11540 (SYMBOL_FLAG_MACH_DEP): New.
11541 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11542 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11543 (assemble_static_space): Set SYMBOL_REF_FLAGS.
11544 (assemble_trampoline_template): Likewise.
11545 (output_constant_def, force_const_mem): Likewise.
11546 (default_encode_section_info): New.
11547 * output.h: Declare it.
11548 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11550 2003-04-11 Richard Henderson <rth@redhat.com>
11552 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11553 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11554 * optabs.c (init_optabs): Initialize them.
11555 (init_libfuncs): Use init_one_libfunc.
11556 * calls.c (expand_call): Use gcov_flush_libfunc.
11557 * expr.c (store_constructor): Use setbits_libfunc.
11558 * function.c (expand_main_function): Use init_one_libfunc.
11559 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11561 2003-04-11 Mark Mitchell <mark@codesourcery.com>
11563 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11564 documentation; add DECL_FRIEND_CONTEXT.
11566 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11568 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
11569 notes on linker selection and configuration for 64-bit HP-UX port.
11570 * doc/invoke.texi (hppa): Remove hppa text from description for
11571 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
11572 and -threads options.
11574 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11575 libc.a on libdld.sl when -static is specified and -nolibdld is not
11577 * pa64-hpux.h (LIB_SPEC): Likewise.
11578 * pa-hpux11.h (LIB_SPEC): Likewise.
11579 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11582 2003-04-11 Zack Weinberg <zack@codesourcery.com>
11584 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11585 not IDENTIFIER_LOCAL_VALUE.
11587 2003-04-11 Richard Henderson <rth@redhat.com>
11590 * expr.c (expand_expr): Move DECL_RTL frobbing ...
11591 * stor-layout.c (layout_decl): ... here.
11593 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
11595 * doc/invoke.texi: Eliminate extra white-space caused by
11596 @gccoptlist{ on its own line.
11597 * doc/invoke.texi: Ensured there are two spaces between each option.
11598 * doc/invoke.texi: Re-wrapped option lines that were too wide.
11599 Added @gol to options that didn't have them.
11601 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
11603 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11606 Simplify interface to gcov reading and writing.
11607 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11608 gcov_alloc, gcov_modified, gcov_errored): Move into ...
11609 (struct gcov_var gcov_var): ... this static structure.
11610 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11612 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11614 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11615 (gcov_reserve_length): Remove.
11616 (gcov_write_tag): New.
11617 (gcov_write_length): Adjust.
11618 (gcov_read_summary, gcov_write_summary): Adjust.
11619 (gcov_eof, gcov_ok): Rename to ...
11620 (gcov_is_eof, gcov_is_error): ... here. Return error code.
11621 (gcov_save_position, gcov_resync): Rename to ...
11622 (gcov_position, gcov_seek): ... here.
11623 (gcov_skip, gcov_skip_string): Remove.
11624 (gcov_error): Remove.
11625 (gcov_open, gcov_close): Adjust.
11626 * gcov.c (find_source): Take const char *, copy it on allocation.
11627 (read_graph_file): Adjust.
11628 (read_count_file): Adjust.
11629 * libgcov.c (gcov_exit): Adjust.
11630 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11631 tag_arc_counts, tag_summary): Return void. Adjust.
11632 (struct tag_format): Adjust proc member.
11633 (dump_file): Adjust gcov calls.
11635 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
11637 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11639 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11640 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11641 build != host sysrooted builds.
11642 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11643 TARGET_SYSTEM_ROOT even on sysrooted natives.
11644 * configure: Rebuilt.
11646 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11648 * c-decl.c (struct binding_level): Add shadowed_tags and
11649 function_body; remove this_block, tag_transparent, and
11650 subblocks_tag_transparent; update comments.
11651 (clear_binding_level, lookup_tag_reverse): Kill.
11652 (make_binding_level): Use ggc_alloc_cleared or memset.
11653 (lookup_tag): Remove struct binding_level* parameter. All
11654 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11655 current_binding_level->tags if asked for thislevel_only or if
11656 we might have to diagnose "struct foo; union foo;"
11657 (pushlevel): Ignore argument. Do not push another binding
11658 level on the transition from the parameters to the top level
11659 of the function body; just tweak the flags and proceed.
11660 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
11661 a function body, separate the parameter list from the
11662 top-level local variables.
11663 (set_block): Do nothing.
11664 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11665 shadowed_tags if necessary.
11666 (warn_if_shadowing): Nuke the special case for local shadowing
11668 (pushdecl): Do not create a shadow entry if we are replacing
11669 an older decl in the same binding level.
11670 (pushdecl_function_level): Tweak for new way of indicating
11672 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11673 (start_function): Don't set subblocks_tag_transparent.
11674 (finish_function): Fix up the binding_level stack for totally
11675 empty functions. Otherwise, don't call poplevel.
11677 * c-common.c (shadow_warning): MANDATORY argument is no longer
11678 necessary. Always use plain warning.
11679 * c-common.h: Update to match.
11681 * cfglayout.c (scope_to_insns_initialize): Clear block when we
11682 hit the FUNCTION_DECL.
11683 * function.c: Do not create cyclic tree structure.
11685 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11687 * c-tree.h (struct lang_identifier): Replace global_value,
11688 local_value members with symbol_value, tag_value. Kill
11689 implicit_decl and limbo_value.
11690 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11691 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11692 C_MISSING_PROTOTYPE_WARNED): Kill.
11693 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11694 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11695 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11696 (implicit_decl_warning, lookup_name_current_level,
11697 record_function_scope_shadow): Don't prototype.
11698 (pushdecl_function_level): Prototype.
11700 * c-decl.c (truly_local_externals): New variable.
11701 (struct binding_level): Adjust commentary.
11702 (get_function_binding_level, clear_limbo_values,
11703 record_function_scope_shadow): Kill.
11704 (lookup_name_current_level, implicit_decl_warning): Are now static.
11705 (any_external_decl, record_external_decl): New static functions.
11706 (clone_underlying type): Split out of pushdecl.
11707 (c_print_identifier): Update to match changes to struct
11709 (poplevel): Delete #if 0 block. Make externals invisible
11710 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
11711 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
11712 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11713 (duplicate-decls): For real parm decl after a forward decl,
11714 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
11715 foo(...) { } with only a warning. Say whether a previous
11716 declaration was implicit.
11717 (warn_if_shadowing): Now handles all shadowing, not just
11718 local-over-local. Clarify comments.
11719 (pushdecl): Rewritten. There is no longer a distinction
11720 between global and local symbol values; they're all
11721 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
11722 DECL_EXTERNAL decls, and use any_external_decl to check
11723 against previous externals. Kill #if 0 blocks. Don't
11724 tolerate error_mark_node being NULL.
11725 (pushdecl_top_level): Handle only those cases which
11726 Objective C (the only user) needs.
11727 (pushdecl_function_level): New function.
11728 (implicitly_declare): Create ordinary decls with
11729 C_DECL_IMPLICIT set. Recycle old decls, however they got
11731 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11732 for C_DECL_INVISIBLE symbols.
11733 (lookup_name_current_level): Likewise. Use chain_member.
11734 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11735 Use pushdecl_function_level.
11736 (builtin_function): Use C_DECL_INVISIBLE.
11737 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11738 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11739 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11740 (identifier_global_value): Same. Must scan
11741 global_binding_level in extremis.
11743 * c-typeck.c (undeclared_variable): New static function, split
11744 from build_external_ref.
11745 (build_external_ref): Use DECL_CONTEXT, not
11746 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11747 an instance variable. Restructure for clarity.
11748 * objc/objc-act.c: Use identifier_global_value, not
11749 IDENTIFIER_GLOBAL_VALUE.
11751 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
11753 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11755 * doc/invoke.texi (C++ Dialect Options): Same.
11757 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11759 * tree.c (tree_operand_check_failed): New function.
11760 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11761 TREE_RTL_OPERAND_CHECK): New checking macros.
11762 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11763 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11764 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11765 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11766 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11767 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11770 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
11773 * function.c (instantate_virtual_regs): Verify that all ASM statements
11774 match after the virutal regs instantiation.
11776 2003-04-10 Steve Ellcey <sje@cup.hp.com>
11778 * ia64-protos.h (addp4_optimize_ok): New.
11779 * ia64.c (addp4_optimize_ok): New.
11780 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11781 (*ptr_extend_plus_2): Ditto.
11783 2003-04-10 Steve Ellcey <sje@cup.hp.com>
11785 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11786 not with convert_memory_address.
11787 (store_constructor): Ditto, and same for copy_size_rtx.
11788 (expand_expr): Ditto.
11790 2003-04-10 Douglas B Rupp <rupp@gnat.com>
11792 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11794 2003-04-10 Bob Wilson <bob.wilson@acm.org>
11796 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11797 even if it is configured to be write-through.
11799 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11801 * config/s390/s390.c (larl_operand): Do not allow symbols
11803 (s390_encode_section_info): Mark symbols with forced 1-byte
11804 alignment with '@'.
11805 (s390_strip_name_encoding): Strip '@'.
11806 (legitimize_pic_address): Handle symbols that are not valid
11807 LARL operands in 64-bit mode.
11809 2003-04-10 Andrew Haley <aph@redhat.com>
11811 * tree-inline.c (inlinable_function_p): Disable inlining for
11812 synchronized methods.
11814 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
11816 * c-common.h (lang_statement_code_p): Remove declaration.
11817 (statement_code_p): Ditto.
11818 (c_common_stmt_codes): Define; list of c-common statement codes.
11819 (statement_code_p): New extern declaration.
11820 (STATEMENT_CODE_P): Define.
11821 (INIT_STATEMENT_CODES): Define.
11822 * c-common.c (statement_code_p): Kill the function, declare
11823 as an array of bools instead.
11824 (lang_statement_code_p): Remove.
11825 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11826 (c_safe_from_p): Ditto.
11827 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11828 to initialize the statement_code_p array.
11829 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11831 (copy_tree_r): Ditto.
11832 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11833 statement tree codes.
11834 * cp/lex.c (cxx_init): Add missing print line break. Use
11835 INIT_STATEMENT_CODES to initialize the statement_code_p array.
11836 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11837 instead of statement_code_p.
11838 * cp/pt.c (tsubst_expr): Ditto.
11839 * cp/tree.c (verify_stmt_tree_r): Ditto.
11840 (cp_statement_code_p): Remove.
11841 (init_tree): Don't set lang_statement_code_p, it's gone.
11843 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
11844 Zack Weinberg <zack@codesourcery.com>
11846 * regrename.c (struct du_chain): Use a bitfield for reg_class.
11847 * cse.c (struct qty_table_elem, struct table_elt, struct set):
11848 Use bitfields for fields holding enum rtx_code or
11849 enum machine_mode values. Add comments explaining size choices.
11851 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
11853 * config/fp-bit.c (unpack_d): Handle pair of doubles with
11854 different signs correctly.
11856 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11858 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11859 (reg_pending_barrier): Make it of the enumeration type.
11860 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11862 (sched_analyze): Ditto.
11863 (sched_analyze_insn): Ditto. Use anti-dependencies for
11864 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11865 (init_deps_global): Initialize the barrier as NO_BARRIER.
11867 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11869 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11870 Check that asm insn starts on a new cycle. Add nops after asm
11871 insn to end bundle.
11872 (bundling): Move insn type evaluation from the loop. Call
11873 issue_nops_and_insn with the new parameter. Ignore changing
11874 position for nops after asm insn.
11876 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
11878 * optabs.c: Comment that gen_add2_insn and others may actually
11879 return emitted insns, if the gen functions turn out to return
11881 * reload1.c (reload_cse_move2add): Cope with emitted insns from
11884 2003-04-09 Richard Henderson <rth@redhat.com>
11886 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11887 but not tls_symbolic_operand.
11888 (ia64_expand_load_address): Remove scratch operand.
11889 (ia64_expand_tls_address): Split out from ia64_expand_move.
11890 (ia64_expand_move): Split symbolics only after reload.
11891 (ia64_emit_cond_move): New.
11892 * config/ia64/ia64-protos.h: Update.
11893 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11894 (symbolic splitter): Accept SImode operands too.
11895 (cmove splitter): Use ia64_emit_cond_move.
11897 2003-04-09 Nick Clifton <nickc@redhat.com>
11899 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11901 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11902 instead of -mno-fpu.
11903 * config/arm/semi.h (ASM_SPEC): Likewise.
11904 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11905 but only if -msoft-float is specified pass. Otherwise pass
11908 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11910 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11911 free_EXPR_LIST_node.
11913 2003-04-08 Roger Sayle <roger@eyesopen.com>
11915 * fold-const.c (fold): Use "fold" following build in more places.
11916 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11917 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11919 2003-04-08 Roger Sayle <roger@eyesopen.com>
11921 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
11922 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11923 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11924 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11925 Delete function scope "fcode" variable to avoid shadowing.
11927 2003-04-08 Kevin Buettner <kevinb@redhat.com>
11929 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11930 Take into account DWARF_INITIAL_LENGTH_SIZE.
11932 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
11934 * reorg.c (fill_slots_from_thread): When considering changing the
11935 insn following a reg-to-reg copy insn to use the source reg of the
11936 copy, bail out if there's overlap between the registers.
11938 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11940 * function.c (postponed_insns): New.
11941 (purge_addressof_1): Postpone processing of insns if addressofs
11942 are not put into stack.
11943 (purge_addressof): Process postponed insns.
11945 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11947 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11948 this is FP_MODE_DOUBLE .
11949 * sh.c (ra.h): #include.
11950 (push_regs): Add second parameter. Changed all callers.
11951 If necessary, set fpscr before saving floating point registers.
11952 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11953 do saves / restores with SZ == 1.
11954 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11955 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
11956 registers are being restored, restore FPSCR only after restoring them.
11958 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
11960 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11961 regardless of architecture.
11962 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
11964 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11966 * sh.c (push_regs, calc_live_regs): Return int. Take single
11967 HARD_REG_SET * parameter. Changed all callers.
11969 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
11971 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11973 (legitimize_pic_address): Move plus outside the unspec.
11974 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
11977 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
11979 * gcov-io.h (gcov_save_position): Remove __inline__ from
11982 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
11984 * doc/install.texi: Use @command and @samp for single- and
11985 multi-word commands respectively.
11986 * doc/makefile.texi: Likewise.
11987 * doc/sourcebuild.texi: Likewise.
11989 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11990 Richard Henderson <rth@redhat.com>
11993 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
11994 favor of looping and tail recursion for TREE_LIST and binops.
11996 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11998 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11999 for insns without luid.
12001 2003-04-07 Glen Nakamura <glen@imodulo.com>
12004 * explow.c (maybe_set_unchanging): Don't flag non-static const
12005 aggregate type initializers with RTX_UNCHANGING_P.
12007 2003-04-07 Richard Henderson <rth@redhat.com>
12010 * function.c (purge_addressof_1): Don't try arithmetics for
12011 unchanging memories.
12013 2003-04-07 Janis Johnson <janis187@us.ibm.com>
12015 * doc/sourcebuild.texi (Test Suites): Document testing support for
12016 gcov and profile-directed optimizations; describe gcc.misc-tests.
12018 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
12021 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
12023 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12025 * doc/rtl.texi (Comparison operations): Update to
12026 record the allowed comparison modes.
12028 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
12030 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
12031 V2SI_type_node to opaque_V2SI_type_node. Rename all
12032 V2SF_type_node to opaque_V2SF_type_node.
12033 (rs6000_init_builtins): Define opaque_V2SI_type_node and
12034 opaque_V2SF_type_node.
12035 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
12036 opaque_V2SF_type_node are opaque types.
12038 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12040 * gcse.c (replace_store_insn): Use single_set.
12042 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
12044 Change gcov file interface to single file at a time.
12045 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
12046 Convert to C89 prototypes.
12047 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
12048 gcov_error, gcov_modified): New static variables.
12049 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
12051 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12052 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12053 (gcov_read_summary, gcov_write_summary): Adjust.
12054 (gcov_save_position, gcov_reserve_length, gcov_write_length):
12056 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
12057 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
12058 (da_file_position, da_file_seek, da_file_write, da_file_read):
12060 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
12061 * gcov.c (gcov_type): Don't typedef here.
12063 (read_graph_file, read_count_file): Adjust.
12064 * gcov-dump.c (gcov_type): Don't typedef here.
12065 (IN_GCOV): #define.
12066 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
12067 Remove FILE parameter, adjust.
12068 (struct tag_format): Adjust proc member.
12069 (dump_file): Adjust.
12070 * libgcov.c (IN_LIBGCOV): #define.
12071 (gcov_exit): Adjust.
12072 * loop-init.c: Don't #include gcov-io.h
12073 * profile.c (struct counts_entry): New structure to hold counter
12075 (struct section_reference, struct da_index_entry): Remove.
12076 (bbg_file, da_file): Remove.
12077 (htab_counts_index_hash, htab_counts_index_eq,
12078 htab_counts_index_del): Replace with ...
12079 (htab_counts_entry_hash, htab_counts_entry_eq,
12080 htab_counts_entry_del): ... these.
12081 (cleanup_counts_index, index_counts_file): Remove.
12082 (read_counts_file): New function.
12083 (get_exec_counts): Adjust.
12084 (compute_branch_probabilities): Don't free the exec counts here.
12085 (branch_prob): Adjust.
12086 (init_branch_prob): Adjust.
12087 (end_branch_prob): Adjust.
12089 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
12091 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12094 * config/rs6000/rs6000.c: Delete rs6000_fprs.
12095 Declare rs6000_float_gprs.
12096 Declare rs6000_float_gprs_string.
12097 (rs6000_parse_float_gprs_option): New.
12098 (rs6000_override_options): Genericize rs6000_parse_* calls to use
12099 rs6000_parse_yes_no_option.
12100 Change check for cpu=8540, to use TARGET_E500.
12101 (rs6000_parse_isel_option): Delete.
12102 (rs6000_parse_spe_option): Delete.
12103 (rs6000_parse_vrsave_option): Delete.
12105 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12106 Define rs6000_float_gprs_string.
12107 (TARGET_OPTIONS): Add rs6000_float_gprs option.
12109 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
12111 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
12113 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
12116 * cfglayout.c (cfg_layout_redirect_edge):
12117 Redirect any branch edges unified with the fallthru one.
12118 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
12119 case fallthru edges when called via cfglayout.c
12121 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12123 * c-typeck.c (output_init_element): Check for type == error_mark_node.
12125 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
12127 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12129 (a splitter): Do zero-extension via HImode.
12131 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
12133 * doc/invoke.texi: Eliminate extra white-space caused by
12134 @gccoptlist{ on its own line.
12135 * doc/invoke.texi: Ensured there are two spaces between each option.
12136 * doc/invoke.texi: Re-wrapped option lines that were too wide.
12137 Added @gol to options that didn't have them.
12139 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
12141 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12143 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12145 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12146 at the sizes of the relevant structures, rather than relying
12147 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
12148 sizes of any such we don't know about. Use
12149 lang_hooks.identifier_size for IDENTIFIER_NODE.
12151 (initializer_zerop): Use CONSTRUCTOR_ELTS.
12152 * tree.def: Update commentary. Make fourth element of
12153 the definition for all 'c' and 'x' nodes zero.
12155 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12156 * langhooks-def.h: Update to match.
12157 * langhooks.c: New default, lhd_tree_size.
12159 * c-common.def (SRCLOC): Kill.
12160 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12161 Remove entirely - was already #if-ed out.
12164 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12166 * mklibgcc.in: Use a here document to avoid running afoul of
12167 shells that generate control-A from "echo \1".
12169 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
12171 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12174 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12177 * config/rs6000/eabi.h (TARGET_E500): Define.
12179 * config/rs6000/rs6000.h (TARGET_E500): Define.
12180 (TARGET_OPTIONS): Add spe= option.
12181 Declare rs6000_spe and rs6000_spe_string extern.
12183 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12184 Change TARGET_SPE to TARGET_E500.
12185 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
12187 (print_operand): Same.
12188 (rs6000_generate_compare): Same.
12189 (output_cbranch): Same.
12190 (rs6000_spe): Declare.
12191 (rs6000_spe_string): Declare.
12192 (rs6000_override_options): Call rs6000_parse_spe_option.
12193 (rs6000_parse_spe_option): New.
12195 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
12197 * hashtable.c (gcc_obstack_init): Delete this function
12198 and everything related to it.
12199 * hashtable.h: Remove prototype.
12200 * bitmap.c (bitmap_element_allocate): Cleanup redundant
12201 defines. Cleanup some unnecessary whitespace.
12202 * defaults.h (obstack_chunk_alloc): Redefine with
12203 appropriate casts for libiberty obstacks.
12204 (obstack_chunk_free): Ditto.
12205 (OBSTACK_CHUNK_SIZE): Define, default to 0.
12206 (gcc_obstack_init): Define as a call to _obstack_begin.
12207 * tree.c (print_obstack_statistics): Delete this unused
12209 * tree.h (obstack): Don't forward-declare.
12210 (print_obstack_statistics): Delete prototype.
12211 (print_obstack_name): Ditto.
12212 (gcc_obstack_init): Ditto.
12213 * rtl.h (gcc_obstack_init): Ditto.
12214 * java/jv-scan.c (gcc_obstack_init): Delete this
12215 function, its prototype and related defines.
12216 * java/jvgenmain.c (gcc_obstack_init): Delete this
12217 function, and related defines.
12218 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12219 (obstack_chunk_free): Ditto
12221 2003-04-06 Geoffrey Keating <geoffk@apple.com>
12223 * dbxout.c (dbxout_handle_pch): Move prototype out from
12224 #if defined DBX_DEBUGGING_INFO.
12226 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
12228 * gcov.c (struct arc_info): Replace local_span with cycle.
12229 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12230 (solve_flow_graph): Set is_call_return.
12231 (add_line_counts): Adjust. In block mode, blocks attach to last line.
12232 (accumulate_line_counts): Find graph cycles, not spanning tree.
12233 (output_branch_count): Adjust.
12234 (output_lines): Adjust.
12235 * doc/gcov.texi: Update.
12237 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
12239 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12240 the second alternative to "#".
12242 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12244 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12245 (single_zero_operand): Likewise.
12247 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
12249 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
12250 * df.c: Include alloc-pool.h, not obstack.h.
12251 (df_ref_obstack): Remove.
12252 (df_ref_pool, df_link_pool): Add pools.
12253 (df_alloc): Init the new pools.
12254 (df_free): And free them.
12255 (df_link_create): Use the pools.
12256 (df_ref_create): Ditto.
12258 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12260 * simplify-rtx.c: Fix formatting.
12262 2003-04-05 Andrew Pinski <apinski@apple.com>
12264 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
12265 reg with reg1 == reg2 and offset1 = -8.
12267 2003-04-05 David Edelsohn <edelsohn@gnu.org>
12269 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
12270 multiply costs. Correct Power4 divide costs.
12271 * config/rs6000/power4.md: Restore multiply and FP latency.
12273 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12275 * alias.c (find_base_term): Export.
12276 * rtl.h (find_base_term): Declare.
12277 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
12278 instead of flag_exceptions. Move test for parameter passing ...
12279 (store_killed_in_insn): ... here.
12281 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12284 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12287 2003-04-04 Geoffrey Keating <geoffk@apple.com>
12289 * dbxout.c (scope_labelno): Add GTY.
12290 (have_used_extensions): Add GTY.
12291 (source_label_number): Add GTY.
12292 (lastfile): Add GTY.
12293 (lastfile_is_base): New.
12294 (base_input_file): New.
12295 (dbxout_handle_pch): New.
12296 (dbx_debug_hooks): Add handle_pch.
12297 (xcoff_debug_hooks): Likewise.
12298 (dbxout_function_end): Remove scope_labelno.
12299 (dbxout_init): Set base_input_file.
12300 (dbxout_handle_pch): New.
12301 (dbxout_source_file): Honour lastfile_is_base.
12302 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12303 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12304 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12305 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12306 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12307 * debug.h (struct gcc_debug_hooks): Add handle_pch.
12308 * c-pch.c (pch_init): Don't call start_source_file, but do call
12310 (c_common_write_pch): Call handle_pch.
12311 (c_common_read_pch): Don't call start_source_file,
12312 or end_source_file.
12314 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
12316 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12317 use of default attributes to agree MEM_ALIGN macro.
12319 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
12321 * dbxout.c (dbxout_type): When printing type index of range type
12322 whose bounds are printed in octal format, print type of parent type if
12323 it exists so enumerated type descriptions are not transformed
12324 into unsigned types.
12326 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
12328 * config/h8300/h8300-protos.h: Add a prototype for
12329 compute_a_shift_cc.
12330 * config/h8300/h8300.c (shift_one): Update the CC status.
12331 (shift_two): Likewise.
12332 (output_a_shift_cc): Set cc_inline and cc_special.
12333 (compute_a_shift_cc): New.
12334 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12336 2003-04-04 Richard Henderson <rth@redhat.com>
12338 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12340 2003-04-04 Loren James Rittle <ljrittle@acm.org>
12342 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12343 * fixinc/fixincl.x: Rebuilt.
12344 * fixinc/tests/base/stdio.h: Regenerated.
12346 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
12348 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12350 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
12352 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12354 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12356 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12358 * doc/contrib.texi (Contributors): Add entries for Wolfgang
12359 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12360 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12361 Danny Smith, and Ulrich Weigand.
12362 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12365 2003-04-04 Nick Clifton <nickc@redhat.com>
12367 * config/sparc/sol2-bi.h: Revert previous delta.
12368 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12370 2003-04-04 Nick Clifton <nickc@redhat.com>
12372 * config/v850/v850.c (expand_prologue): Only use register save
12373 helper functions if long calls are not being used.
12374 Add a clobber of r11 id using long calls.
12375 (pattern_is_ok_for_prologue): Account for the extra clobber.
12376 (construct_save_jarl): Likewise.
12377 * config/v850/v850.md (prolog pattern): Do not use this pattern
12380 2003-04-04 Andreas Schwab <schwab@suse.de>
12382 * stor-layout.c (layout_decl): Avoid syntax error in last change
12383 when PCC_BITFIELD_TYPE_MATTERS is defined but not
12384 EMPTY_FIELD_BOUNDARY.
12386 2003-04-03 Jason Merrill <jason@redhat.com>
12389 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12390 Look backwards for a line note.
12392 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
12394 * fix-header.c (read_scan_file): Defer switch processing.
12396 2003-04-03 Matt Austern <austern@apple.com>
12398 * cpppch.c (reset_ht): Remove.
12399 (cpp_read_state): Remove loop to reset hashtable identifiers.
12400 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12401 after pch file is written.
12402 * ggc.h (gt_pch_fixup_stringpool): Declare.
12403 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
12404 hashnode's value to another hashtable, then clear the original.
12405 (saved_ident_hash): Define.
12406 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12407 store definitions in ident_hash, and clear ident_hash.
12408 (gt_pch_fixup_stringpool): Define. Restore definitions from
12409 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12411 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12413 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12415 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12417 PR optimization/10157
12418 * gcse.c (can_copy_p): Rename it to can_copy.
12419 (can_copy_init_p): Remove.
12420 (compute_can_copy): Use can_copy instead of can_copy_p.
12421 (can_copy_p): New exported function. Call compute_can_copy.
12422 (hash_scan_set): Use it.
12423 (gcse_main): Don't call compute_can_copy.
12424 (bypass_jumps): Don't call compute_can_copy.
12425 * rtl.h (can_copy_p): Declare.
12426 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12427 copy if the mode doesn't support copy operations.
12429 2003-04-03 Jason Merrill <jason@redhat.com>
12431 * Makefile.in (unstrap): Also remove stage_last.
12433 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12434 (dwarf2out_source_line): Don't do anything if line==0.
12436 * stor-layout.c (do_type_align): New fn, split out from...
12437 (layout_decl): ...here. Do all alignment calculations for
12439 (update_alignment_for_field): Not here.
12440 (start_record_layout, debug_rli): Remove unpadded_align.
12441 * tree.h (struct record_layout_info_s): Remove unpadded_align.
12442 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12443 or DECL_MODE on the CONST_DECLs.
12444 (finish_struct): Don't mess with DECL_ALIGN.
12446 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
12448 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12450 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
12452 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12453 function is an interrupt handler.
12455 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12456 restoring target registers with EH_RETURN_STACKADJ_RTX; use
12457 multiple registers in round-robin fashion.
12459 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12461 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12462 * system.h (CHAR_BITFIELD): New.
12464 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
12466 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12468 (another peephole2): Likewise.
12470 2003-04-03 Nick Clifton <nickc@redhat.com>
12472 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
12473 (DEF_ARCH64_SPEC): Likewise.
12475 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12477 * i386.c (constant_address_p): Use legitimate_constant_p.
12478 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12480 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12482 * config/h8300/h8300-protos.h: Add a prototype for
12484 * config/h8300/h8300.c (gtle_operator): New.
12485 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12487 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12490 2003-04-02 Richard Henderson <rth@redhat.com>
12492 * libgcc-std.ver (_Unwind_GetCFA): New.
12493 * unwind-dw2.c (_Unwind_GetCFA): New.
12494 * unwind-libunwind.c (_Unwind_GetCFA): New.
12495 * unwind-sjlj.c (_Unwind_GetCFA): New.
12496 * unwind.h: Declare it.
12498 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
12501 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
12502 when MMX/SSE is not available.
12504 2003-04-02 Mike Stump <mrs@apple.com>
12506 * doc/install.texi (Specific): Update pointers to apple.com.
12508 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
12510 * i386.c (override_options): Disable red zone by default on i386.
12511 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12512 Do not test TARGET_64BIT together with TARGET_RED_ZONE
12514 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12516 * config/h8300/h8300.md (a peephole2): Tighten the condition.
12518 2003-04-02 Richard Henderson <rth@redhat.com>
12520 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12522 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12524 * config/h8300/h8300.md (a peephole2): New.
12526 2003-04-02 Richard Henderson <rth@redhat.com>
12528 * except.c (sjlj_find_directly_reachable_regions): Recognize when
12529 must-not-throw region has been deleted.
12531 2003-04-02 Richard Henderson <rth@redhat.com>
12533 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12534 optimization when flag_exceptions not enabled.
12536 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
12538 * config/rs6000/rs6000.c
12539 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12541 (rs6000_issue_rate): Add case for 8540.
12542 (rs6000_use_sched_lookahead): New function.
12544 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12545 units into MU ones.
12546 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12547 reservation before retirement.
12548 (ppc8540_multiply, ppc8540_load, ppc8540_store,
12549 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12550 Remove additional cycle in the reservation before retirement.
12551 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12552 reservation of ppc8540_issue.
12554 2003-04-02 Andreas Schwab <schwab@suse.de>
12556 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12558 2003-04-01 Richard Henderson <rth@redhat.com>
12560 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12561 notes for nothrow calls if flag_forced_unwind_exceptions.
12562 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12563 (sjlj_find_directly_reachable_regions): Likewise.
12564 (reachable_handlers): Likewise.
12565 (can_throw_external): Likewise.
12566 (collect_one_action_chain): Record cleanups after catch-all and
12567 must-not-throw if flag_forced_unwind_exceptions.
12568 * flags.h (flag_forced_unwind_exceptions): Declare.
12569 * toplev.c (flag_forced_unwind_exceptions): New.
12570 (lang_independent_options): Add it.
12571 * doc/invoke.text: Add it.
12573 2003-04-01 David Mosberger <davidm@hpl.hp.com>
12575 * config/ia64/crti.asm: Clean up trailing whitespace.
12576 Remove trailing hashes (#) from identifiers.
12578 * config/ia64/crtn.asm: Ditto.
12580 * config/ia64/crtend.asm: Remove trailing hashes (#) from
12582 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
12583 directives. Drop explicit bundling---it just makes the code
12584 harder to read. Don't save/restore gp needlessly.
12586 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12587 identifiers (they're only needed if the identifier would clash
12588 with a register name otherwise).
12589 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12590 directives. Drop explicit bundling---it just makes the code
12592 (__do_jv_register_classes): Ditto.
12593 (.fini_array): Remove "progbits" (newer
12594 assemblers don't like wrong section-types).
12595 (.init_array): Ditto.
12597 2003-04-01 Roger Sayle <roger@eyesopen.com>
12600 * gcse.c (reg_killed_on_edge): New function to test whether the
12601 given reg is overwritten by any instruction queued on an edge.
12602 (bypass_block): Ignore substitutions killed on incoming edges.
12603 Don't bypass outgoing edges that have queued instructions.
12605 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
12607 * real.h (EXP_BITS): Make room for...
12608 (struct real_value): ... added canonical bit.
12609 (struct real_format): Added pnan.
12610 (mips_single_format, mips_double_format, mips_extended_format,
12611 mips_quad_format): New.
12612 * real.c: Copy p to pnan in all formats.
12613 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12614 (real_nan): Use pnan to compute significand's shift.
12615 (real_identical): Disregard significand in canonical
12617 (real_hash): Likewise. Take signalling into account.
12618 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12619 Disregard significand bits in canonical NaNs. Set all bits of
12620 canonical NaN if !qnan_msb_set.
12621 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
12622 qnan_msb_set to tell the base double format.
12623 (ibm_extended_format): Use 53 as pnan.
12624 (mips_single_format, mips_double_format, mips_extended_format,
12625 mips_quad_format): Copied from the corresponding ieee/ibm
12626 formats, with qnan_msb_set false.
12627 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12628 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12629 * config/mips/mips.c (override_options): Use mips_single_format
12630 and mips_double_format. Default TFmode to mips_quad_format.
12631 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12632 * config/mips/t-irix6: Likewise.
12633 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12634 * config/fp-bit.c (pack_d, unpack_d): Obey it.
12636 2003-04-01 Geoffrey Keating <geoffk@apple.com>
12638 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12639 (live_image_destructor): Reset image to initial state.
12640 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12642 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
12644 * config/sparc/sparc.c (input_operand): Accept bare
12645 CONSTANT_P_RTX operands.
12647 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12649 * gcse.c (struct ls_expr): Added pattern_regs field.
12650 (ldst_entry): Initialize it.
12651 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12652 (store_ops_ok): Use regs precomputed by them.
12653 (find_loads, store_killed_in_insn, load_kills_store): Change return
12655 (store_killed_before, store_killed_after): Take position of register
12657 (reg_set_info): Store position of the setter.
12658 (gcse_main): Enable store motion.
12659 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12660 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12662 (simple_mem): Enable store motion of non-symbol mems.
12663 (regvec): Type changed.
12664 (LAST_AVAIL_CHECK_FAILURE): New.
12665 (compute_store_table_current_insn): New.
12666 (build_store_vectors): Computation of availability and anticipatability
12668 (compute_store_table, find_moveable_store): ... here.
12669 (delete_store): Remove senseless comment.
12670 (store_motion): Reorganize.
12672 2003-04-01 Kevin Buettner <kevinb@redhat.com>
12674 * config/mips/mips.c (override_options): Provide mappings for
12675 HI_REGNUM and LO_REGNUM.
12676 * config/mips/mips.h (MD_DBX_FIRST): Define.
12678 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12680 * combine.c (merge_outer_ops): Fix typo.
12682 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12684 2003-04-01 David Edelsohn <edelsohn@gnu.org>
12686 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12687 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12688 imul_compare. Add lmul_compare.
12689 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
12690 in second pair of dispatch slots. Model stores more accurately.
12691 Tweak multiply model. Add bypasses for CR instructions dependent
12692 on complicated compares.
12693 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12694 (muldi3): Add lmul_compare patterns.
12695 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12696 and FPSTORE_UX to split instructions and add COMPARE,
12697 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12698 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12699 (rs6000_rtx_costs): Separate POWER4 multiply case.
12701 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
12703 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12704 Do nothing if __builtin_return_address was not used.
12706 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
12708 * i386.md (test patterns): Allow memory operand in operand1.
12710 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
12712 * testsuite/gcc.c-torture/execute/simd-3.c: New.
12714 * expr.c (expand_expr): Handle VECTOR_CST.
12715 (const_vector_from_tree): New.
12717 * varasm.c (output_constant): Handle VECTOR_CST.
12719 * c-typeck.c (digest_init): Build a vector constant from a
12722 * config/rs6000/rs6000.c: Remove prototype for
12723 easy_vector_constant.
12724 (easy_vector_constant): Add mode parameter. Rewrite to handle
12725 more easy constants.
12726 (rs6000_emit_move): Pass mode to easy_vector_constant.
12727 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12728 (emit_easy_vector_insn): New.
12729 (easy_vector_same): New.
12730 (EASY_VECTOR_15): New macro.
12731 (EASY_VECTOR_15_ADD_SELF): New macro.
12732 (bdesc_2arg): Rename to xorv2si3.
12733 (easy_vector_constant_add_self): New.
12734 (input_operand): Allow vector constants.
12736 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12737 easy_vector_constant, easy_vector_constant_add_self.
12738 (EXTRA_CONSTRAINT): Add 'W'.
12740 * config/rs6000/rs6000-protos.h: Add prototype for
12741 easy_vector_constant, emit_easy_vector_insn.
12743 * config/rs6000/altivec.md (xorv8hi3): New.
12745 Remove all _const0 patterns.
12746 (movv4si_internal): Rewrite to use code. Add vector constant to
12747 vector alternative. Add splitter.
12748 (movv8hi_internal): Same.
12749 (movv16qi_internal): Same.
12750 (movv4sf_internal): Same.
12751 Change the unspecs for vspltis* to use constants.
12753 * config/rs6000/spe.md ("xorv4hi3"): New.
12754 ("spe_evxor"): Rename to xorv2si3.
12756 Remove all _const0 patterns.
12757 (movv2si_internal): Rewrite to use code. Add vector constant to
12758 alternatives. Add splitter.
12759 (movv4hi_internal): Add vector constant to alternatives.
12760 (movv1di_internal): Same.
12761 (movv2sf_internal): Same.
12763 2003-03-31 Mark Mitchell <mark@codesourcery.com>
12766 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12767 variably-sized arrays in parameters.
12768 (set_save_expr_context): New function.
12769 (c_expand_body): Use it, via walk_tree.
12771 2003-03-31 Eric Christopher <echristo@redhat.com>
12773 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12774 (combinable_i3pat): Remove call to expand_field_assignment and
12777 2003-03-31 Mark Mitchell <mark@codesourcery.com>
12780 * c-common.c (finish_label_address_expr): Handle the
12783 2003-03-31 Richard Henderson <rth@redhat.com>
12785 * real.c (real_identical): Reorg so as to not compare
12786 signalling for normals.
12788 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12790 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12792 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12794 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12795 notes as they are boggus.
12796 (m68hc11_gen_movqi): Likewise.
12798 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12800 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12801 save the soft registers after the frame pointer so that gdb can unwind
12802 the frame more easily.
12803 (expand_epilogue): Likewise in opposite order; allow to use X register
12804 as scratch if the return value is by reference.
12806 2003-03-31 Jason Merrill <jason@redhat.com>
12809 * stor-layout.c (update_alignment_for_field): Respect
12810 DECL_USER_ALIGN for zero-length bitfields, too.
12811 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12814 2003-03-31 Matt Austern <austern@apple.com>
12816 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12817 (count_defs): Keep track of number of defs as well as total size.
12818 (write_defs): Put every definition in cpp_savedstate's defs array.
12819 (comp_hashnode): Define. Comparison function for qsort.
12820 (cpp_write_pch_deps): Sort definitions before writing them.
12821 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12822 (collect_ht_nodes): Define.
12823 (cpp_valid_state): When verifying that undefined identifiers in
12824 the pch file are still undefined, read a sorted list of undefined
12825 identifiers, collect all defined identifiers into a sorted list,
12826 and walk through both lists to make sure there's no match.
12828 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12830 * config/h8300/h8300.md (a peephole2): New.
12832 2003-03-31 Michael Matz <matz@suse.de>
12834 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12836 2003-03-31 Segher Boessenkool <segher@koffie.nl>
12839 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12840 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12841 all call-clobbered registers as used.
12843 2003-03-31 Michael Matz <matz@suse.de>
12845 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12846 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12848 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
12850 * gcov.c: Add -a & -u options.
12851 (struct arc_info): Add local_span, is_call_non_return,
12852 is_nonlocal_return, is_unconditional flags, remove is_call flag.
12853 (struct block_info): Add flags, is_call_site, is_nonlocal_return
12854 members. Make encodings a union with span member.
12855 (struct function_info): Add blocks_executed, line, src, line_next
12857 (struct coverage_info): Make branches a union with blocks member.
12858 (struct source_info): Add functions member.
12859 (object_summary, program_count): New global variables.
12860 (flag_all_blocks, flag_unconditional): New flags.
12861 (find_source, output_branch_count): New functions.
12862 (print_usage): Adjust.
12864 (process_args): Adjust.
12865 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12866 <GCOV_TAG_BLOCKS>: Read flags.
12867 <GCOV_TAG_LINES>: Adjust.
12868 (read_count_file): Process SUMMARY tags.
12869 (solve_flow_graph): Set is_unconditional and clear is_call_site
12871 (add_branch_counts): Adjust. Don't count unconditional branches.
12872 (add_line_counts): Deal with all-blocks mode, accumulate block
12874 (accumulate_line_counts): Adjust, generate local spanning tree for
12876 (output_lines): Adjust.
12877 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12878 * doc/gcov.texi: Document.
12880 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12882 * config/h8300/h8300.md: Organize peephole2's that transform
12883 (compare (reg:HI) (const_int)).
12885 2003-03-31 Roger Sayle <roger@eyesopen.com>
12887 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12888 (init_emit_once): Initialize dconstm2 and dconsthalf here.
12889 * real.h (dconstm2, dconsthalf): Add prototypes here.
12890 * real.c (real_sqrt): Use dconsthalf rather than local copy.
12891 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12892 exp(x/2.0) remember to fold the division if possible.
12893 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12894 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12895 1.0/(x*x) and pow(x,0.5) as sqrt(x).
12897 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12899 * config/h8300/h8300.md (a new peephole2): New.
12901 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
12903 * gcse.c (simple_mem): Return false for floating-point accesses
12904 if flag_float_store is true.
12906 2003-03-30 Roger Sayle <roger@eyesopen.com>
12908 * gcse.c (gcse_constant_p): New function to identify constants
12909 suitable for constant propagation, including COMPARE with two
12910 integer constant arguments.
12911 (hash_scan_set): Use gcse_constant_p.
12912 (find_avail_set): Likewise.
12913 (cprop_insn): Likewise.
12914 (do_local_cprop): Likewise.
12915 (find_implicit_sets): Likewise.
12916 (find_bypass_set): Likewise.
12918 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
12920 * except.h: Remove definition of varray_type.
12922 2003-03-30 Richard Henderson <rth@redhat.com>
12924 PR opt/10011, opt/10252:
12925 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12926 before post-gcse cse pass.
12928 2003-03-30 Roger Sayle <roger@eyesopen.com>
12930 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12932 2003-03-30 DJ Delorie <dj@redhat.com>
12934 * profile.c (instrument_edges): Make sure any newly created
12935 jump insns have correct jump label info.
12937 2003-03-30 Richard Henderson <rth@redhat.com>
12939 * cfgbuild.c (make_edges): Use tablejump_p.
12940 * cfgcleanup.c (label_is_jump_target_p): Likewise.
12941 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12942 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12943 (try_redirect_by_replacing_jump): Likewise.
12944 (redirect_edge_and_branch): Likewise.
12945 * cse.c (fold_rtx): Likewise.
12946 * jump.c (delete_related_insns): Likewise.
12947 * rtlanal.c (get_jump_table_offset): Likewise.
12948 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12950 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
12952 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12953 (STRICT2_WARN): Likewise.
12955 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12958 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12959 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12961 2003-03-30 Richard Henderson <rth@redhat.com>
12964 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12965 don't zero_extend const inputs.
12967 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12969 * reload1.c (reload_cse_move2add): Fix a comment typo.
12971 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12973 * config/h8300/h8300.md (a peephole2): Remove useless code.
12975 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12977 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12978 (*iorsi3_and_lshiftrt): Likewise.
12979 (*iorsi3_zero_extract): Likewise.
12981 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12983 * config/h8300/h8300.md (*insv_si_8_8): New.
12984 (*insv_si_8_8_lshiftrt_8): Likewise.
12985 (a peephole2): Likewise.
12987 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12989 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
12990 Uniformly use bugfix instead of bug fix.
12992 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12995 * ONEWS: Remove those items that already appear in the EGCS
12996 release notes on our web pages.
12998 2003-03-29 Alan Modra <amodra@bigpond.net.au>
13000 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
13001 TARGET_HARD_FLOAT. Reformat.
13002 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
13004 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
13006 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
13007 work on Solaris 2.5.1.
13009 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
13011 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
13012 section of h8300.md
13013 (*addsi3_and_nor_r_1): Likewise.
13015 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
13017 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
13018 set up before any trapping memory access if flag_non_call_exceptions.
13020 2003-03-29 Alan Modra <amodra@bigpond.net.au>
13022 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
13024 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
13026 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
13028 * configure.in: Clarify comments.
13029 * configure: Regenerate.
13031 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
13033 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
13034 label even if pool empty when generating PIC.
13035 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
13037 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
13038 Dhananjay Deshpande <dhananjayd@kpit.com>
13041 * config/h8300/h8300.c (h8300_initial_elimination_offset):
13042 Correct the offset computation when TARGET_NORMAL.
13044 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13047 * config/sparc/sparc.md (jump pattern): Correct order
13048 when issuing the annuling marker.
13050 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13053 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
13054 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13056 2003-03-28 Alan Modra <amodra@bigpond.net.au>
13058 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13060 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13061 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13062 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13063 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13064 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13065 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13066 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13068 2003-03-28 Alan Modra <amodra@bigpond.net.au>
13070 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
13071 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
13072 notes after hoisting.
13073 (load_mems): Adjust replace_loop_mems call.
13075 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13076 Richard Henderson <rth@redhat.com>
13078 PR target/10114 and PR target/10084
13079 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
13081 2003-03-27 Richard Henderson <rth@redhat.com>
13083 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
13085 2003-03-27 Roger Sayle <roger@eyesopen.com>
13087 * fold-const.c (fold_inf_compare): New function to simplify FP
13088 comparisons against +Infinity or -Infinity.
13089 (fold): Optimize floating point comparisons against Infs and NaNs.
13091 2003-03-27 Janis Johnson <janis187@us.ibm.com>
13093 * libgcov.c: Provide only dummy functions if libc is not available.
13095 2003-03-27 Richard Henderson <rth@redhat.com>
13097 * real.h (struct real_value): Add signalling.
13098 (EXP_BITS): Decrement.
13099 * real.c (get_canonical_qnan): Don't set MSB-1.
13100 (get_canonical_snan): Likewise. Set signalling.
13101 (real_identical): Compare signalling.
13102 (round_for_format): Remove force-one-bit on code.
13103 (real_nan): Likewise. Set signalling.
13104 (encode_ieee_single): Add force-one-bit code; honor signalling.
13105 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13106 (decode_ieee_single): Set signalling.
13107 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13109 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
13112 * ada/Makefile.in (gnatlib configuration for HPUX): Split
13113 the general section for HPUX into specific sections for
13114 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13117 2003-03-27 Glen Nakamura <glen@imodulo.com>
13120 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13121 while incrementing giv.
13122 (record_biv): Check for duplicate biv locations and
13123 set (struct induction *) v->same if found.
13125 2003-03-27 David Mosberger <davidm@hpl.hp.com>
13127 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13128 v0.9 API change: replace read of UNW_REG_HANDLER with
13129 unw_get_proc_info().
13130 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13131 with unw_get_proc_info().
13132 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13133 unw_get_proc_info().
13135 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
13137 * config/rs6000/8540.md: Use presence_set instead of absence_set.
13139 2003-03-26 Richard Henderson <rth@redhat.com>
13141 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13143 2003-03-26 Roger Sayle <roger@eyesopen.com>
13145 PR bootstrap/10051, PR bootstrap/10169.
13146 * mips-tfile.c (init_file): Don't provide a static initializer.
13147 (initialize_init_file): Initialize the contents of init_file.
13148 (add_file): Call initialize_init_file if not already initialized.
13150 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
13152 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13153 registers used for global asm variables.
13154 (s390_frame_info, s390_arg_frame_offset): Likewise.
13155 (s390_emit_prologue, s390_emit_epilogue): Likewise.
13157 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
13159 * config/rs6000/8540.md: New file.
13161 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13162 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13163 reservations for imul.
13165 * config/rs6000/rs6000.md: Include 8540.md. Change
13166 delayed_compare onto mult_compare for insns generating
13168 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13169 New type attribute values.
13171 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13172 fpsimple instead of fp.
13173 (*divsf3_gpr): Use type vecfdiv instead of fp.
13174 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13175 instead of vecfloat.
13176 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13177 (spe_brinc): Use type brinc instead of veccomplex.
13178 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13180 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13181 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13182 *movv2sf_internal): Define type attribute values for all
13184 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13186 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13187 instead of fpcompare.
13189 2003-03-26 David Edelsohn <edelsohn@gnu.org>
13191 * config/rs6000/power4.md: Allow delay between dispatch and
13192 function units for simple instructions. Correct store units.
13193 Allow branch to occupy as many dispatch slots as necessary.
13195 2003-03-26 Jakub Jelinek <jakub@redhat.com>
13197 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13198 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13199 zero extend old to it.
13200 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13203 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
13206 * reload.c (find_reloads_address): Handle
13207 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13208 all base registers.
13210 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
13213 * version.c: Reference the GCC web site in the URL.
13215 2003-03-26 Alan Modra <amodra@bigpond.net.au>
13217 * c-incpath.c (add_standard_paths): Add both "translated" and
13218 non-translated header paths.
13220 2003-03-25 Loren James Rittle <ljrittle@acm.org>
13222 * doc/install.texi (*-*-freebsd*): Update with known status.
13224 2003-03-21 Jason Merrill <jason@redhat.com>
13226 PR optimization/10171
13227 * unroll.c (unroll_loop): Don't delete the jump at the end unless
13228 we also delete a jump at the beginning.
13230 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
13232 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13235 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
13237 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13238 constants are not expensive.
13240 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
13243 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
13244 jump jumping to the next instruction.
13245 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13247 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13249 * doc/passes.texi (Passes): Properly document that we do not
13250 perform jump2 any longer; remove command-line option -dJ.
13252 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
13254 PR optimization/8746
13255 * config/i386/i386.md (and promoting splitters): Disable HImode to
13256 SImode promoting when the sign bit matters and is not preserved, or
13257 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
13260 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13262 * config/h8300/h8300.md (a peephole2): Extend to support loads
13263 in QImode and HImode.
13265 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
13267 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
13269 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
13270 (MULTILIB_EXCEPTIONS): Likewise.
13271 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
13272 by calling some board support routine.
13273 ("call_value"): Likewise.
13274 ("*return_void"): Likewise for return.
13275 ("*return_16bit"): Likewise.
13276 ("*return_32bit"): Likewise.
13277 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
13279 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
13280 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13281 -mlong-calls for 68HC11.
13282 * config/m68hc11/larith.asm (declare_near): New macro.
13283 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13284 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13285 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13286 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13287 (__mulhi32): Likewise.
13288 (ret): Update macro for 68HC11.
13289 (__far_trampoline): Implement for 68HC11.
13290 (__call_a16, __call_a32, __return_void, __return_16): New support
13291 routines for 68HC11 memory bank switching calling support.
13292 (__return_32): Likewise.
13294 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
13296 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13298 2003-03-24 Janis Johnson <janis187@us.ibm.com>
13300 * doc/install.texi (Testing): Mention test result links from build
13303 2003-03-24 Mark Mitchell <mark@codesourcery.com>
13305 * function.c (put_var_into_stack): Change bool parameter to int.
13306 (gen_mem_addressof): Likewise.
13307 * rtl.h (gen_mem_addressof): Likewise.
13308 * tree.h (put_var_into_stack): Likewise.
13309 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13310 gen_mem_addressof or put_var_into_stack.
13311 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13312 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13314 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13316 * config/h8300/h8300.md (a peephole2): New.
13318 2003-03-24 Jakub Jelinek <jakub@redhat.com>
13320 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13322 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13324 * doc/contrib.texi (Contributors): Update Janis Johnson.
13326 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13329 * combine.c (simplify_if_then_else): Check that the mode
13330 has MODE_INT class before applying the (OP Z (mult COND C2))
13333 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13335 PR optimization/9414
13336 * config/sparc/sparc.md (widening peepholes): Use
13337 widen_memory_access instead of change_address.
13339 2003-03-23 Mark Mitchell <mark@codesourcery.com>
13342 * c-typeck.c (c_mark_addressable): Adjust calls to
13343 put_var_into_stack.
13344 * expr.c (expand_expr): Likewise.
13345 * function.c (put_var_into_stack): Add rescan parameter. Do not
13346 call fixup_var_refs when rescan is false.
13347 (gen_mem_addressof): Likewise.
13348 (assign_parms): Adjust calls to put_var_into_stack.
13349 (setjmp_protect): Likewise.
13350 (setjmp_protect_args): Likewise.
13351 * rtl.h (gen_mem_addressof): Change prototype.
13352 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13353 * tree.h (put_var_into_stack): Change prototype.
13355 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
13358 * builtins.c (expand_builtin_fputs): When optimizing for size,
13359 don't transform fputs into fwrite.
13361 2003-03-23 Glen Nakamura <glen@imodulo.com>
13364 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13365 when signedness changes for division or modulus.
13367 2003-03-24 Alan Modra <amodra@bigpond.net.au>
13369 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13372 2003-03-23 Roger Sayle <roger@eyesopen.com>
13375 * stmt.c (expand_end_case_type): Check for overflow in range when
13376 determining whether to use a bit-test implementation.
13378 2003-03-23 Richard Henderson <rth@redhat.com>
13380 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13382 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13384 2003-03-23 Richard Henderson <rth@redhat.com>
13387 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13388 from then_bb or else_bb after flow2.
13390 2003-03-23 Zack Weinberg <zack@codesourcery.com>
13392 * configure.in: Check whether it is necessary to link against
13394 * configure: Regenerate.
13395 * Makefile.in: Add LDEXP_LIB substitution variable.
13397 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
13399 * config/h8300/h8300.md: Fix comment typos.
13401 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13403 * pa.c (output_cbranch): Fix typo in comment.
13405 2003-03-22 Richard Henderson <rth@redhat.com>
13407 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13410 2003-03-22 DJ Delorie <dj at redhat dot com>,
13411 Bruce Korb <bkorb at gnu dot org>
13413 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13414 buggy Solaris 2.6 mutex/cond initializers.
13415 (solaris_mutex_init): Rename to solaris_mutex_init_2.
13416 * fixinc/fixincl.x: Regenerate.
13417 * fixinc/tests/base/pthread.h: Update.
13418 * fixinc/fixincl.c(initialize): be explicit about the default case
13419 and indicate verbose level when being very, very verbose.
13420 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
13422 2003-03-22 Andreas Jaeger <aj@suse.de>
13424 * config/i386/i386.c (ix86_init_machine_status): Return value.
13426 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13428 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13429 conditional branch to the following instruction. Use next_real_insn
13430 instead of next_active_insn.
13431 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13432 instead of next_active_insn.
13434 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
13436 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13437 instead of 'm' constraint in forced-split alternatives.
13438 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
13439 VALIDATE_ADDRESS parameter to operand_subword.
13441 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
13443 * config/h8300/h8300.c (notice_update_cc): Correctly handle
13444 the case where the set destination is STRICT_LOW_PART.
13446 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
13448 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13449 c30 instead of a c40 processor.
13451 2003-03-22 Alan Modra <amodra@bigpond.net.au>
13453 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
13455 2003-03-21 Zack Weinberg <zack@codesourcery.com>
13457 * c-common.c: Include intl.h.
13458 (shadow_warning): Rewrite to allow better diagnostic translations.
13459 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
13460 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13462 * Makefile.in (c-common.o): Add intl.h.
13464 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
13466 * config.gcc: Remove 'float_format'.
13468 * fixproto: Define NULL and size_t in generated stdlib.h and
13469 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
13470 Rearrange file generation loop for readability. Generate time.h,
13471 string.h if missing.
13472 * tsystem.h: Include <string.h>, <time.h> unconditionally.
13473 * config.gcc: Blow away POSIX defines.
13475 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13477 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13479 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13481 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13482 writing .interrupt command.
13483 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13484 if it's a far or near function.
13485 ("call_value"): Likewise.
13486 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13488 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13489 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13490 (m68hc11_initial_elimination_offset): Set current_function_far
13491 according to attributes.
13492 (expand_prologue): Likewise.
13493 (trap_handler_symbol): New global to keep track of trap handlers.
13494 (m68hc11_encode_section_info): Mark symbol as far if needed; set
13496 (m68hc11_is_far_symbol): New function.
13497 (m68hc11_is_trap_symbol): New function.
13498 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13499 (m68hc11_is_trap_symbol): Declare.
13501 2003-03-21 Jan Hubicka <jh@suse.cz>
13503 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13504 only when amount of saved regs changed.
13505 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13506 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13508 2003-03-21 Jan Hubicka <jh@suse.cz>
13511 * function.c (instantiate_virtual_regs_lossage): New function.
13512 (instantiate_virtual_regs_1): Use it.
13513 (instantiate_virtual_regs): Do not continue in substition when insn has
13516 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13518 * combine.c (make_field_assignment): Fix a warning.
13520 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13522 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13524 2003-03-21 Dale Johannesen <dalej@apple.com>
13526 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
13527 priority for R2 on Darwin.
13528 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
13530 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13532 * combine.c (make_field_assignment): Remove unnecessary AND
13533 when storing into zero_extract.
13535 2003-03-21 Zack Weinberg <zack@codesourcery.com>
13537 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13538 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13539 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13542 2003-03-21 DJ Delorie <dj@redhat.com>
13544 * optabs.c (init_integral_libfuncs): Make sure we init at least up
13545 to "long long" size words.
13547 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
13549 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13550 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13551 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13553 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13556 * doc/extend.texi: Move misplaced paragraph about underscores in
13557 variables in macros.
13559 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
13560 Richard Henderson <rth@redhat.com>
13562 PR optimization/8366
13563 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13564 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13565 PIC+SYMBOLIC_CONST in other modes than Pmode.
13566 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13567 the form PIC+SYMBOLIC_CONST as mode dependent.
13569 2003-03-21 DJ Delorie <dj@redhat.com>
13571 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13572 sure we always emit at least one insn.
13574 2003-03-21 Christopher Faylor <cgf@redhat.com>
13576 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13577 stub t-cygming. Use common target header cygming.h. Add extra
13578 c_target_obj and cxx_target_obj file. Default cygwin to posix
13579 threading. Enforce i386 as float format.
13580 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13581 Remove cygwin.h as target header. Use common target header
13582 cygming.h Enforce i386 as float format. Correct typo.
13583 * config/i386/cygming.h: New file, containing definitions
13584 common to mingw32 and cygwin.
13585 * config/i386/cygwin.h: Remove definitions common to cygwin and
13586 mingw. Simplify special spec logic. Define "wrappers" around
13587 certain include path defines to accommodate -mno-cygwin.
13588 Remove some #if 0'ed code.
13589 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
13590 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13591 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13592 * config/i386/mingw32.h: Remove definitions common to cygwin and
13594 (EXTRA_OS_CPP_BUILTINS): Adjust.
13595 (TARGET_VERSION): Define.
13596 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13597 mingw32.h definitions.
13598 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13599 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13600 Add compilation rules for cygwin1.o cygwin2.o.
13601 * config/i386/cygwin1.c: New file.
13602 * config/i386/cygwin2.c: New file.
13603 * config/i386/t-cygming: New makefile stub.
13605 2003-03-20 Richard Henderson <rth@redhat.com>
13607 * fold-const.c (extract_muldiv_1): Revert changing order of
13608 operands in case MULT_EXPR of 2003-02-16 patch.
13610 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
13611 Merge changes from new-regalloc-branch
13613 From Michael Matz <matz@suse.de>
13614 * df.c (df_ref_record_1): Move init of loc to safe point.
13615 Only recurse on interesting things in parallels.
13616 Handle CLASS_CANNOT_CHANGE_MODE smarter.
13617 (df_uses_record): Ditto.
13619 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13620 it's already okay to use memory operands in (IE doesn't require
13621 adding another insn or anything).
13623 2003-03-20 Richard Henderson <rth@redhat.com>
13626 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13627 different from word_mode.
13629 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13631 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13632 source operand to those that can be extracted with bld.
13634 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
13637 * arm.md (UNSPEC_PIC_BASE): New constant.
13638 (pic_add_dot_plus_four): Wrap with unspec.
13639 (pic_add_dot_plus_eight): Likewise.
13641 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13643 * config/h8300/h8300.md (*insv_si_1_n): New.
13644 (*insv_si_1_n_lshiftrt): Likewise.
13646 2003-03-20 Roger Sayle <roger@eyesopen.com>
13648 * fold-const.c (fold_mathfn_compare): New function to simplify
13649 comparisons against built-in math functions. Fold comparisons
13650 of sqrt against constants.
13651 (fold): Call fold_mathfn_compare when appropriate.
13653 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
13655 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13658 2003-03-20 Per Bothner <pbothner@apple.com>
13660 Various cleanups to help compile server.
13662 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
13663 and pass that to _cpp_init_hashtable.
13664 (cpp_read_main_file): Drop hash_table* argument; don't call
13665 _cpp_init_hashtable.
13666 * cpplib.h: Update declarations to match.
13667 * c-opts.c (c_common_init_options): Pass ident_hash to
13669 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
13670 * fix-header.c (read_scan_file): Likewise pass NULL table to
13671 cpp_create_reader rather than cpp_read_main_file.
13673 * cppfiles.c (cpp_rename_file): Generalized and renamed
13674 to cpp_change_file.
13675 * cpplib.h: Update declaration to match.
13676 * c-opts.c (push_command_line_line, finish_options): Change
13677 cpp_rename_file calls to cpp_change_file.
13679 * line-map.c (add_line_map): Allow leaving the outermost file.
13680 Allowing entering an outermost-file after the initial time.
13682 * toplev.c (pop_srcloc): Allow popping from initial file.
13684 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
13686 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13688 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13690 * config/h8300/h8300.md (a peephole2): New.
13692 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13694 * config/h8300/h8300.md (*addsi3_and_r_1): New.
13695 (*addsi3_and_not_r_1): Likewise.
13697 2003-03-19 Loren James Rittle <ljrittle@acm.org>
13699 * Makefile.in (STRICT2_WARN): Add @WERROR@.
13700 (GCC_WARN_CFLAGS): Remove $(WERROR).
13701 (fixinc.sh-warn): New.
13702 * ada/Make-lang.in (ada-warn): Add $(WERROR).
13703 * cp/Make-lang.in (cp-warn): Add $(WERROR).
13704 * f/Make-lang.in (f-warn): Add $(WERROR).
13705 * java/Make-lang.in (java-warn): Add $(WERROR).
13706 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13708 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
13710 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13711 langhooks-def.h (lhd_tree_dump_dump_tree),
13712 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13713 Change return type from 'int' to 'bool'. Replace 0 and 1 with
13714 true and false in return statements.
13716 2003-03-19 Kevin Buettner <kevinb@redhat.com>
13718 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13719 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13720 DWARF_INITIAL_LENGTH_SIZE.
13721 (output_compilation_unit_header, output_pubnames, output_aranges)
13722 (output_line_info): Output 0xffffffff escape value for 64-bit
13724 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13726 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
13728 * config/s390/s390.c (s390_preferred_reload_class): Do not
13729 force constants to the pool unless necessary.
13730 (s390_decompose_address): Prefer to use pointer as base,
13731 not index register.
13732 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13734 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
13735 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13736 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13737 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13738 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13740 2003-03-19 Jan Hubicka <jh@suse.cz>
13742 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13743 * i386.c (use_fast_prologue_epilogue): Remove.
13744 (ix86_frame): New field save_regs-using_mov;
13745 (ix86_compute_frame_layout): Decide on fast prologues;
13746 allocate saved registers in red zone.
13747 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13749 2003-03-19 Nick Clifton <nickc@redhat.com>
13751 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13753 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13756 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13757 * pa-protos.h (output_lbranch): New prototype.
13758 * pa.c (compute_frame_size): Change size of the frame marker on the
13759 64-bit ports to 48 bytes.
13760 (pa_output_function_prologue): Document why SAVE_SP is set.
13761 (hppa_expand_prologue): Save previous stack pointer into frame marker
13762 on targets which use the hpux unwind library.
13763 (output_cbranch): Use output_lbranch.
13764 (output_lbranch): New function to output long unconditional branches.
13765 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13766 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13768 * pa.md (jump): Use output_lbranch.
13769 (allocate_stack): New expander for dynamic stack allocation.
13771 2003-03-19 Alan Modra <amodra@bigpond.net.au>
13773 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13774 when debugging on XCOFF targets. Delete "abi" temp.
13777 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13779 2003-03-18 Jakub Jelinek <jakub@redhat.com>
13781 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13782 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13783 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13785 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13786 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13787 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13789 2003-03-18 Geoffrey Keating <geoffk@apple.com>
13791 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13792 the result of machopic_function_base_name.
13793 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13794 string rather than a static array.
13796 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13798 * gengtype.c: Include rtl.h.
13799 (enum rtx_code): Don't define.
13800 (rtx_format): Make declaration match rtl.h.
13801 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
13803 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13804 * Makefile.in (gengtype.o): Update dependencies.
13806 2003-03-18 Andreas Schwab <schwab@suse.de>
13808 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
13811 2003-03-18 Geoffrey Keating <geoffk@apple.com>
13813 * function.c (next_block_index): Mark with GTY.
13815 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13817 2003-03-18 Richard Henderson <rth@redhat.com>
13819 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13820 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13821 until after reload.
13823 2003-03-18 Richard Henderson <rth@redhat.com>
13825 * builtins.c (expand_builtin_unop): New target_mode operand;
13826 use it to convert the result to the correct mode.
13827 (expand_builtin): Update all callers.
13829 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
13831 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13833 2003-03-18 Jan Hubicka <jh@suse.cz>
13835 * i386.md: Fix previous commit that mistakely applied the patch
13838 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13840 (memrefs_conflict_p): Likewise.
13841 (addr_side_effect_eval): Canonicalize the constructed address.
13843 2003-03-18 Jan Hubicka <jh@suse.cz>
13845 * i386.md (cvtts?2si peep2): New.
13847 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
13849 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13851 2003-03-18 Andreas Schwab <schwab@suse.de>
13853 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13856 2003-03-17 Jason Merrill <jason@redhat.com>
13859 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13860 an unaligned member of TREE_ADDRESSABLE type.
13862 2003-03-18 Alan Modra <amodra@bigpond.net.au>
13864 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13865 (TARGET_PROFILE_KERNEL): Define.
13866 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13867 (PROFILE_BEFORE_PROLOGUE): Don't define.
13868 (PROFILE_KERNEL): Remove hacks.
13869 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13870 (rs6000_stack_info): No need to save lr if just for profiling when
13871 TARGET_PROFILE_KERNEL.
13872 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
13873 (output_function_profiler): Localize label generation. Emit code
13874 for kernel profiling.
13876 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
13878 * config/h8300/h8300-protos.h: Add a prototype for
13879 byte_accesses_mergeable_p.
13880 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13881 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13882 (a splitter): Likewise.
13883 (*iorsi3_ashift_16_ashift_24): Likewise.
13884 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13886 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13888 * dwarf2asm.h: Delete obsolete comment.
13889 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13890 dw2_asm_output_pcrel, dw2_asm_output_addr,
13891 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13892 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13893 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13894 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13896 2003-03-17 Zack Weinberg <zack@codesourcery.com>
13898 * c-tree.h (struct lang_identifier): Remove error_locus field.
13899 (IDENTIFIER_ERROR_LOCUS): Kill.
13900 (record_function_scope_shadow): New prototype.
13901 * c-typeck.c (build_external_ref): Don't complain if
13902 decl is error_mark_node. When not at file scope, bind the
13903 decl's local value to error_mark_node to suppress further
13904 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13906 * c-decl.c (get_function_binding_level): New static function.
13907 (record_function_scope_shadow): New exported function.
13908 (c_make_fname_decl): Use get_function_binding_level.
13910 2003-03-17 Steve Ellcey <sje@cup.hp.com>
13912 * stmt.c (tail_recursion_args): Call promote_mode to set
13913 unsignedp flag correctly before calling convert_move.
13915 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13917 * loop-unroll.c (decide_peel_completely,
13918 decide_unroll_constant_iterations, decide_unroll_stupid,
13919 decide_unroll_runtime_iterations, decide_peel_simple): Set
13922 2003-03-17 Jan Hubicka <jh@suse.cz>
13924 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13926 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
13928 * function.c (assign_parms): For a struct value address passed as
13929 first argument, delay the function's result RTL setup code until
13930 after the emission of parameter conversions.
13932 2003-03-17 Dave Love <fx@gnu.org>
13933 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13935 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13936 __arch64__ to match Compaq cc.
13938 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
13940 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13941 (c_common_init): Set EBCDIC in cpp options.
13942 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13943 not conditional compilation.
13944 * cpplib.h (struct cpp_options): New entry EBCDIC.
13946 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
13948 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13950 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13952 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13953 argument to 0 for redirect_jump.
13955 2003-03-16 Mark Mitchell <mark@codesourcery.com>
13958 * except.c (eh_region_u_cleanup): Add prev_try.
13959 (expand_eh_region_end_cleanup): Set it.
13960 (reachable_handlers): Use it to skip over cleanup blocks.
13962 2003-03-17 Andreas Jaeger <aj@suse.de>
13964 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13966 2003-03-17 Alan Modra <amodra@bigpond.net.au>
13968 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13969 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13970 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13971 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13973 2003-03-16 Richard Henderson <rth@redhat.com>
13975 * simplify-rtx (simplify_binary_operation): Don't abort for
13976 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
13978 2003-03-16 Richard Henderson <rth@redhat.com>
13980 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13981 optimize_size as well.
13983 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
13985 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13986 for D register to specify the low part of it, aka B.
13987 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13988 the register if we are loading 1 or -1 to it; avoid using temp
13989 register when moving X/Y to Y/X.
13990 (m68hc11_gen_movqi): Likewise.
13991 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13993 2003-03-14 Mark Mitchell <mark@codesourcery.com>
13995 PR optimization/9016
13996 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13997 into the constant pool.
13999 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
14002 * tree.c (get_narrower): For extensions with unchanged bit number,
14003 return the unsignedness of the outer mode.
14005 2003-03-16 Roger Sayle <roger@eyesopen.com>
14007 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
14008 to avoid "may be used uninitialized" warning on ia64-hpux.
14009 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
14011 2003-03-16 Andreas Jaeger <aj@suse.de>
14013 * configure.in: Improve check for memcheck.h.
14014 * configure: Regenerated.
14016 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
14018 * doc/cppopts.texi: Remove documentation of -A-.
14020 2003-03-15 Zack Weinberg <zack@codesourcery.com>
14022 * doc/libgcc.texi: Remove @tie.
14024 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
14026 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
14027 (rtx_pair): Added new element update_label_nuses, renamed to
14028 replace_label_data.
14029 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
14030 replace_label_data instead of rtx_pair.
14031 * loop.c (load_mems): Likewise.
14032 * rtlanal.c (replace_label): Replace label in pool constants and in
14033 INSN_LIST (in REG_LABEL note).
14034 (subrtx_p): Renamed to rtx_referenced_p.
14035 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
14036 LABEL_REF with CODE_LABEL, traverse constants from pool.
14038 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
14039 Zack Weinberg <zack@codesourcery.com>
14041 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
14042 * doc/libgcc.texi: New file.
14043 * doc/interface.texi: Delete paragraph about libgcc interface.
14044 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
14046 2003-03-15 Jason Merrill <jason@redhat.com>
14049 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
14052 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
14053 function DIEs at toplevel.
14054 (decls_for_scope): At -g1, don't descend into subblocks.
14056 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
14058 * varasm.c (struct rtx_const): Change type of un.addr member
14059 to struct holding an additional 'symbol' member.
14060 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
14061 with equal string addresses as equal.
14062 (simplify_subtraction): Adapt to struct rtx_const change.
14064 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14066 * fix-header.c (read_scan_file): Read main file before handling -D.
14068 2003-03-15 Roger Sayle <roger@eyesopen.com>
14070 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
14071 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
14072 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
14073 (find_sub_basic_blocks): Likewise.
14074 * cgraphunit.c (cgraph_expand_functions): Likewise.
14075 * dwarf2out.c (prune_unused_types): Likewise.
14076 * expr.c (store_field): Likewise.
14077 * genextract.c (print_path): Likewise.
14078 * haifa-sched.c (schedule_insn): Likewise.
14079 * lcm.c (compute_antinout_edge): Likewise.
14080 * loop-unroll.c (decide_peel_once_rolling): Likewise.
14081 * ra-colorize.c (ra_colorize_free_all): Likewise.
14082 * ra-debug.c (dump_igraph): Likewise.
14083 (debug_hard_reg_set): Likewise.
14084 * reg-stack.c (reg_to_stack): Likewise.
14085 * rtlanal.c (refers_to_regno_p): Likewise.
14086 * tracer.c (layout_superblocks): Likewise.
14088 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14090 * fix-header.c (read_scan_file): Fix thinko.
14092 2003-03-15 Glen Nakamura <glen@imodulo.com>
14094 * reload1.c (choose_reload_regs): Use && instead of ||
14095 with REG_CANNOT_CHANGE_MODE_P condition.
14097 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14099 * Makefile.in: Update.
14100 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14101 * c-lex.c (init_c_lex): Register builtins hook is dead.
14102 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14103 (c_common_decode_option): Don't call cpp_handle_option.
14104 Handle -A, -D and -U.
14105 (handle_deferred_opts): Simplify.
14106 (finish_options): Define builtins and command line macros.
14107 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14108 * cppinit.c: Don't include intl.h.
14109 (init_builtins): Rename cpp_init_builtins. No hook to call.
14110 (init_library): Don't need to sort options.
14111 (cpp_create_reader): Don't set pending.
14112 (cpp_destroy): Don't free pending.
14113 (struct pending_option, cl_directive_handler, struct cpp_pending,
14114 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14115 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14116 cl_options, cpp_handle_option): Remove.
14117 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14118 cpp_finish_options): Remove.
14119 (cpp_init_builtins): New.
14120 * fix-header.c (read_scan_file): Update to handle -D. Fix
14121 handling of -I. Replace call to cpp_finish_options.
14123 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14125 PR optimization/9387
14126 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14127 for conditional returns.
14129 2003-03-14 Jason Merrill <jason@redhat.com>
14131 PR optimization/6871
14132 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14134 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14136 * c-opts.c (finish_options): New.
14137 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14138 (missing_arg): Handle OPT_include and OPT_imacros.
14139 (c_common_init, c_common_parse_file): Use finish_options.
14140 (handle_deferred_opts): Update.
14141 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14142 (cpp_finish_options): Don't handle -imacros here.
14144 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14146 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14148 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14149 rs6000_maybe_dead if !fromprolog.
14151 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14153 * Makefile.in: Update.
14154 * c-common.h (fe_file_change, pp_file_change): New.
14155 * c-lex.c (init_c_lex): Don't set cb_file_change.
14156 (c_common_parse_file): Move to c-opts.c.
14157 (cb_file_change): Rename fe_file_change.
14158 * c-opts.c: Include debug.h.
14159 (warn_unused_macros, include_cursor): New.
14160 (push_command_line_include, cb_file_change): New.
14161 (COMMAND_LINE_OPTIONS): Handle -include.
14162 (c_common_decode_option): Use local warn_unused_macros.
14163 Handle OPT_include.
14164 (c_common_post_options): Set file change callback.
14165 (handle_deferred_opts): Skip -include. Don't free the array.
14166 (c_common_init): Call cpp_finish_options here, and push an
14167 initial -include file.
14168 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14169 (preprocess_file): Don't call cpp_finish_options.
14170 (init_pp_output): Don't set the file change callback.
14171 (pp_file_change): Return if no line commands or no output.
14172 * cpphash.h (next_include_file, first_unused_line): Remove.
14173 * cppinit.c (include_head, include_tail): Remove.
14174 (cpp_destroy): Don't free -include chain.
14175 (cpp_finish_options): Don't handle -include, or worry about
14177 (_cpp_maybe_push_include_file): Remove.
14178 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14179 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14180 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14181 Used flag is set based upon the state of the warn_unused_macros
14182 flag, and so use of first_unused_line is unnecessary.
14184 2003-03-13 Jan Hubicka <jh@suse.cz>
14186 * cselib.c (clear_table): Do not take argument; always clear just
14188 (cselib_process_insn): Update call of clear_table
14189 (cselib_init): Do not call clear_table.
14190 (cselib_finish): Clear table.
14192 * cse.c (count_reg_usage): Do not check side_effects_p.
14193 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14195 (find_reg_equal_equiv_note): Do not use find_reg_note.
14197 2003-03-14 Richard Henderson <rth@redhat.com>
14200 * config/alpha/alpha.c (alpha_va_start): Account for
14201 current_function_pretend_args_size in the AP offset.
14203 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14204 (INITIAL_ELIMINATION_OFFSET): Move out of line.
14205 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14206 (alpha_initial_elimination_offset) New.
14207 * config/alpha/alpha-protos.h: Update.
14209 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14211 * stmt.c (expand_start_case): Call emit_queue ().
14213 2003-03-14 Chris Demetriou <cgd@broadcom.com>
14214 Alexandre Oliva <aoliva@redhat.com>
14216 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14219 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
14221 PR optimization/8396
14222 * tree-inline.c (initialize_inlined_parameters): Make sure the value
14223 of read-only constant arguments is passed with the right type.
14225 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
14227 * doc/extend.texi (Function Names): Make the example compilable.
14229 2003-03-13 David Edelsohn <edelsohn@gnu.org>
14231 * config/rs6000/rs6000.c (processor_target_table): Really allow
14232 GP optional instructions on Power4.
14234 2003-03-13 Roger Sayle <roger@eyesopen.com>
14236 * calls.c (flags_from_decl_or_type): Factor and remove redundant
14239 2003-03-13 Mike Stump <mrs@apple.com>
14241 * ggc-page.c (struct page_entry): Remove varray.h header.
14242 Add index_by_depth field.
14243 Remove save_in_use_p field.
14244 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14245 by_depth_max, by_depth, and save_in_use fields.
14246 (INITIAL_PTE_COUNT): Add.
14247 (save_in_use_p_i): Add.
14248 (save_in_use_p): Add.
14249 (adjust_depth): Add.
14250 (move_ptes_to_front): Add.
14252 (push_by_depth): Add.
14254 (free_page): Add support for and use faster data structures.
14255 (ggc_alloc): Likewise.
14256 (init_ggc): Likewise.
14257 (ggc_recalculate_in_use_p): Likewise.
14258 (ggc_pop_context): Likewise.
14259 (clear_marks): Likewise.
14260 (ggc_pch_read): Likewise.
14261 * Makefile.in (ggc-page.o): Remove varray.h.
14263 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
14265 * ChangeLog: Rotated last year's entries to...
14266 * ChangeLog.8: New.
14268 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
14269 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
14270 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
14271 config/ia64/ia64-protos.h, config/ia64/ia64.c,
14272 config/ia64/ia64.h, config/ia64/ia64.md,
14273 config/ia64/itanium1.md, config/ia64/itanium2.md,
14274 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
14275 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
14277 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
14279 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14280 Differentiate endianness.
14281 (s6000_override_options): Use cpu type instead of TARGET_SPE.
14283 2003-03-13 Nick Clifton <nickc@redhat.com>
14285 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
14286 LDM instructions with writeback enabled.
14287 (output_return_instruction): Likewise.
14289 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14290 (CALL_USED_REGISTERS): Remove definition.
14291 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14293 2003-03-13 Alan Modra <amodra@bigpond.net.au>
14295 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14296 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14297 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14298 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14299 (rs6000_legitimize_address): Formatting.
14300 (rs6000_emit_move): Likewise.
14301 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14302 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14303 (rs6000_elf_select_section): Comment reason for shlib being
14305 (rs6000_elf_unique_section): Likewise.
14306 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14307 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14308 as well as flag_pic.
14309 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14310 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14311 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14313 2003-03-13 Richard Henderson <rth@redhat.com>
14315 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14317 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14318 (ia64_gp_save_reg): Remove.
14319 (struct ia64_frame_info): Move to the beginning of the file;
14321 (ia64_expand_call): Rearrange for new call patterns.
14322 (ia64_reload_gp): New.
14323 (ia64_split_call): New.
14324 (ia64_compute_frame_size): Allocate reg_save_gp.
14325 (ia64_expand_prologue): Save reg_save_gp.
14326 (ia64_expand_epilogue): Don't restore gp.
14327 (ia64_hard_regno_rename_ok): Remove R4 hack.
14328 (ia64_function_ok_for_sibcall): New.
14329 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
14330 call try_split on sibcall pattern.
14331 * config/ia64/ia64-protos.h: Update.
14332 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14333 Rename from nopic versions. Confiscate 2nd argument to call as
14335 (call_pic, call_value_pic, sibcall_pic): Remove.
14336 (call_gp, call_value_gp, sibcall_gp): New.
14337 (builtin_setjmp_setup): Remove.
14338 (builtin_setjmp_receiver): Call ia64_reload_gp.
14340 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14342 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14343 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14344 "GNU CC" with "GCC".
14346 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14347 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14348 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14351 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14352 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14354 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14355 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14356 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14357 "GNU CC" with "GCC".
14359 * config/v850/lib1funcs.asm, config/v850/rtems.h,
14360 config/v850/v850-c.c, config/v850/v850-protos.h,
14361 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14364 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14365 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14366 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14367 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14370 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
14372 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14374 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14376 * fixinc/fixinc.interix: Remove dead code (most of it).
14377 * fixinc/fixinc.dgux: Remove.
14379 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14380 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14382 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14384 * pa.c (pa_init_builtins): Fix warning.
14386 2003-03-12 Steve Ellcey <sje@cup.hp.com>
14388 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14389 (ASM_OUTPUT_XDATA_SHORT): Remove.
14390 (ASM_OUTPUT_XDATA_INT): Remove.
14391 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14392 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14393 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14394 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14396 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
14399 * expr.c (store_expr): Don't attempt to store void-typed trees,
14400 just evaluate them for side effects.
14402 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14404 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14405 * cppinit.c (push_include): Move with changes to cppfiles.c.
14406 (cpp_read_main_file): Mark named operators here...
14407 (cpp_finish_options): ...not here. Update.
14408 (_cpp_maybe_push_include_file): Update.
14409 * cpplib.h (cpp_push_include, cpp_rename_file): New.
14411 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14413 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14414 _gcc_COMPUTE_GAS_VERSION.
14415 * configure.in: Use them.
14416 * configure: Regenerate.
14418 2003-03-12 Bob Wilson <bob.wilson@acm.org>
14420 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
14422 (subdi3): Reorder emitted instructions.
14424 2003-03-12 Andreas Jaeger <aj@suse.de>
14426 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14427 NETBSD_OS_CPP_BUILTINS_LP64.
14429 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14431 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
14432 Rearrange. Reorganize.
14433 * configure.in: Rearrange.
14434 * configure: Regenerate.
14436 2003-03-12 Andreas Jaeger <aj@suse.de>
14438 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14441 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14444 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14446 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14448 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14449 NETBSD_OS_CPP_BUILTINS_LP64.
14450 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14451 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14453 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
14455 2003-03-12 Jan Hubicka <jh@suse.cz>
14457 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14459 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
14461 Fix PR target/9797 and PR c/9853.
14462 * stmt.c (expand_decl_init): Call push_temp_slots () and
14465 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
14467 * sh.c: Include basic-block.h.
14468 (sh_output_mi_thunk, emit_load_ptr): New functions.
14469 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14471 2003-03-12 Nick Clifton <nickc@redhat.com>
14473 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14474 (CALL_USED_REGISTERS): Likewise.
14475 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14476 describing how this value is calculated.
14478 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
14480 * configure.in (rlim_t): Define to long if no valid definition
14481 found in sys/resource.h.
14482 * config.in, configure: Regenerate.
14484 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14486 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14487 TARGET_OS_CPP_BUILTINS.
14488 * config/mcore/mcore-pe.h: Similarly.
14489 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14490 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14492 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14495 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14496 only if it is a VAR_DECL.
14498 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14500 PR optimization/9888
14501 * config/i386/i386.md (jcc_1): Fix range.
14504 (doloop_end_internal): Likewise.
14506 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
14508 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14509 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14510 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14511 DLL_IMPORT_EXPORT_PREFIX and "i."
14512 (i386_pe_dllexport_name_p): Here.
14513 (i386_pe_dllimport_name_p): Here.
14514 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14515 not 9 chars when getting identifier name.
14516 (i386_pe_mark_dllimport): Here.
14517 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14518 not 9 chars when getting identifier name. Correct comment.
14519 (i386_pe_strip_name_encoding): Here. Add comments for different
14521 (gen_fastcall_suffix): Break down xmalloc() argument to
14523 (gen_stdcall_suffix): Likewise.
14524 Update copyright year.
14526 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14528 PR optimization/9888
14529 * config/i386/i386.md (movsi_1): Remove special alternatives
14531 (movsi_1_nointernunit): Likewise.
14532 (movhi_1): Likewise.
14533 * config/i386/i386.c (memory_address_length): Do not use
14534 short displacement when there is no base.
14535 (ix86_attr_length_address_default): Handle LEA instructions.
14537 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14539 * c-cppbuiltin.c (builtin_define_std): Make non-static.
14541 2003-03-11 Loren James Rittle <ljrittle@acm.org>
14543 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14544 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14545 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14546 * config/freebsd.h (CPP_PREDEFINES): Remove.
14547 (TARGET_OS_CPP_BUILTINS): New.
14548 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14549 instead of TARGET_OS_CPP_BUILTINS.
14550 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14552 2003-03-11 Geoffrey Keating <geoffk@apple.com>
14554 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14556 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14558 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14559 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
14561 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
14563 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
14565 * toplev.c (independent_decode_option): Return success for --help,
14566 --target-help and --version.
14568 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
14570 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14571 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
14573 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14575 (LINK_SPEC): Let endian options affect the linker emulation name.
14577 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
14579 * sh.md (reload_inqi): Fix mode for source in second set.
14581 2003-03-11 Jan Hubicka <jh@suse.cz>
14583 * cselib.c (cselib_invalidate_mem_1): Move too ...
14584 (cselib_invalidate_mem): ... here; use new list
14585 (dummy_val, first_containing_mem): New static variables.
14586 (clear_table): Initialize first_containing_mem.
14587 (discard_useless_values): Compact the containing_mem list.
14588 (add_mem_for_addr): Add to the list.
14589 * cselib.h (cselib_val): Add next_containing_mem.
14591 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14593 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14594 instructions for e500.
14596 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
14598 * Makefile.in: Update.
14599 * c-cppbuiltin.c: Include tm_p.h.
14601 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14603 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
14605 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14606 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14607 (_Unwind_SetGR): Same.
14608 (_Unwind_GetGRPtr): New.
14609 (_Unwind_SetGRPtr): New.
14610 (uw_update_context_1): Use accesor functions instead of accessing
14611 context->reg[] directly.
14612 (uw_install_context_1): Same.
14613 (execute_cfa_program): Same.
14614 (__frame_state_for): Same.
14616 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14617 the synthetic register offset.
14619 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
14621 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
14623 * config/cris/cris.md: Remove lingering EGCS reference.
14624 ("*extopqihi_side_biap"): For HI operation, match
14625 cris_additive_operand_extend_operator, not
14626 cris_operand_extend_operator. Adjust condition.
14627 ("*extopqihi_side", "*extopqihi"): Ditto.
14628 ("*extopqisi_side_biap"): Correct operand numbers in condition.
14629 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14630 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14631 ("*extophisi_swap"): Ditto.
14632 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14633 PLUS, not cris_operand_extend_operator. Adjust condition and
14635 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14636 * config/cris/cris.h (PREDICATE_CODES): Add
14637 cris_additive_operand_extend_operator.
14638 * config/cris/cris.c (cris_additive_operand_extend_operator):
14641 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
14643 * df.c (read_modify_subreg_p): Change from static to global.
14644 * df.h (read_modify_subreg_p): Add prototype.
14645 * sched-deps.c (sched_analyze_1): Generate true dependency for
14646 strict_low_part, certain subregs and zero/sign_extract.
14648 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
14650 * Makefile.in: Update.
14651 * c-common.c: Don't include real.h or except.h.
14652 (REGISTER_PREFIX): Remove.
14653 (builtin_define_std, builtin_define_with_value,
14654 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14655 builtin_define_type_max, builtin_define_type_precision,
14656 builtin_define_float_constants): Move to c-cppbuiltin.c.
14657 (c_stddef_cpp_builtins): New.
14658 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14659 * c-cppbuiltin.c: New, extracted from c-common.c.
14660 (define__GNUC__): New.
14661 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14662 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14663 (cpp_unique_options): Don't support no-gcc.
14664 (do_spec_1): Remove support of version specs.
14665 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14666 * doc/passes.texi: Update.
14667 * doc/tm.texi: Update.
14669 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14671 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
14673 2003-03-10 Andrew Pinski <apinski@apple.com>
14675 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14676 is on should not get here.
14677 (machopic_indirect_data_reference): If dynamic-no-pic is on just
14678 generate high/low parts of the address.
14679 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14680 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14681 symbol and labels with a new reg. Dynamic-no-pic does not have a
14682 pic_offset_table_rtx.
14683 (machopic_select_section): Change references of flag_pic to
14685 (machopic_asm_out_destructor): Likewise.
14686 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14687 reference of flag_pic to MACHOPIC_INDIRECT.
14688 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14689 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14690 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14691 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14692 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14693 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14694 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14695 (TARGET_DYNAMIC_NO_PIC): Define.
14696 (SUBTARGET_SWITCHES): Define, have sub-target switches for
14698 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14699 rs6000_override_options to here. Dynamic-no-pic overrides
14701 (CC1_SPEC): Change from not static then pic to not static and not
14702 dynamic-no-pic then pic.
14703 * config/rs6000/rs6000.c (rs6000_override_options): Move the
14704 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14705 (rs6000_legitimize_reload_address): Add case for loading floating in
14707 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
14708 of flag_pic to MACHOPIC_INDIRECT.
14709 (secondary_reload_class): Conditional change the reference of
14710 flag_pic to MACHOPIC_INDIRECT.
14711 (rs6000_output_mi_thunk): Change reference of flag_pic to
14713 (output_profile_hook): Likewise.
14714 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14715 * config/rs6000/rs6000.md (movdf_low): Add the case for
14716 MACHO_DYNAMIC_NO_PIC_P.
14717 (call): Change references for flag_pic in TARGET_MACHO to
14719 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14720 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
14721 * doc/invoke.texi (-mdynamic-no-pic): Document.
14723 2003-03-10 Devang Patel <dpatel@apple.com>
14726 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14727 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14728 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14729 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14730 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14731 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14733 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
14735 PR optimization/7189
14736 * toplev.c (rest_of_compilation): Move
14737 check_function_return_warnings up to just after
14738 delete_unreachable_blocks.
14740 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14742 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14743 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14745 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14746 for reg rename optimization to avoid using Z and Y registers.
14748 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14750 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14751 when adding to X and Y since leax/leay are fast.
14752 ("*addhi3"): Accept 'I' constraint when adding to address register.
14753 ("rotlhi3"): Operand 1 must be a register_operand.
14754 (peephole2): New peephole to optimize some adds.
14755 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14756 to represent -2 .. 2 small integer range.
14758 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14760 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14761 each 16-bit rotation.
14763 2003-03-10 Zack Weinberg <zack@codesourcery.com>
14765 * c-opts.c (add_prefixed_path): Don't use concat. When
14766 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14767 cpp_GCC_INCLUDE_DIR_len characters.
14769 2003-03-10 Segher Boessenkool <segher@koffie.nl>
14771 * testsuite/gcc.dg/altivec-9.c: New file.
14773 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14774 (rs6000_emit_prologue): Use rs6000_frame_related instead.
14776 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14778 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14780 (__ev_convert_u64): Remove macro. Define as inline.
14781 (__ev_convert_s64): Same.
14783 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14785 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14786 (rs6000_stack_t): Add spe_64bit_regs_used.
14788 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14789 spe_64bit_regs_used, and use it to determine the size of the
14791 (spe_func_has_64bit_regs_p): New.
14792 (spe_synthesize_frame_save): New.
14793 (rs6000_frame_related): Handle SPE synthetic registers.
14794 (rs6000_emit_prologue): Only save in 64-bits if the function used
14795 any registers in 64-bit mode.
14796 (rs6000_emit_epilogue): Same, but for restore.
14798 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
14800 * arm.h (enum floating_point_type): Delete. Replace with...
14801 (enum fputype): ... new.
14802 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
14803 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14804 * arm.md (attr fpu): Reworked for new underlying enum values.
14805 * arm.c (arm_fpu_arch): Now enum fputype.
14806 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
14807 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14808 Update uses of arm_fpu_arch and arm_fpu_tune.
14810 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
14812 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
14813 (try_crossjump_to_edge): Replace refereces to one jump table by
14814 references to identical jump table.
14815 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14816 (replace_label): Moved to rtlanal.c.
14817 (struct rtx_pair): Moved to rtl.h.
14818 * rtl.h (struct rtx_pair): Moved from loop.c.
14819 (replace_label): New extern function.
14820 (subrtx_p): New extern function.
14821 (tablejump_p): New extern function.
14822 * rtlanal.c (replace_label): Moved from loop.c.
14823 (subrtx_p_1): New static function.
14824 (subrtx_p): New function.
14825 (tablejump_p): New function.
14827 2003-03-10 Jan Hubicka <jh@suse.cz>
14829 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14831 * cfgcleanup.c (merge_blocks): Return where to iterate next.
14832 (try_optimize_cfg): Use return value of merge_blocks
14834 2003-03-10 Michael Matz <matz@suse.de>
14836 * cfg.c (unchecked_make_edge): New.
14837 (cached_make_edge): Use it.
14838 * basic-block.h (unchecked_make_edge): Declare.
14839 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14841 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
14843 * fpa.md: New file. Move all patterns relating to FPA co-processor
14845 * arm.md: ... from here.
14846 (cirrus.md, fpa.md): Include at end of description.
14847 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14848 (pic_load_addr_based): Remove register constraint from expander.
14849 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14850 (sordered, sungt, sunle, sunge, sunlt): Likewise.
14851 (eh_epilogue, tablejump): Likewise.
14853 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14855 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14856 on operands if it has a PLACEHOLDER_EXPR.
14858 2003-03-09 David Edelsohn <edelsohn@gnu.org>
14861 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14864 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
14866 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14867 * config/ip2k/ip2k.h: Similarly.
14868 * config/m32r/m32r.h: Similarly.
14869 * config/m68hc11/m68hc11.h: Similarly.
14870 * config/mn10200/mn10200.h: Similarly.
14871 * config/mn10300/mn10300.h: Similarly.
14872 * config/pdp11/pdp11.h: Similarly.
14873 * config/v850/v850.h: Similarly.
14874 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14875 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14876 * config/mips/iris3.h: Remove #if 0 block.
14878 2003-03-09 Roger Sayle <roger@eyesopen.com>
14879 Joern Rennecke <joern.rennecke@superh.com>
14881 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14882 pending argument upon return from handle_braces here.
14883 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14885 2003-03-09 Roger Sayle <roger@eyesopen.com>
14886 Joern Rennecke <joern.rennecke@superh.com>
14888 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14889 pending argument upon return from handle_braces here.
14890 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14892 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14894 * varasm.c (make_decl_one_only): Use declare_weak().
14896 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14899 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14900 after the common builtins.
14901 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14902 * pa.c (TARGET_INIT_BUILTINS): Define.
14903 (pa_init_builtins): New function.
14905 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14906 space has been allocated for the outgoing arguments, set the arg
14907 pointer for a call emitted after virtuals have been instantiated
14908 using the stack pointer offset, otherwise abort.
14910 2003-03-09 DJ Delorie <dj@redhat.com>
14912 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14914 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
14916 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14917 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14918 conversion to integer.
14919 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14921 2003-03-09 Roger Sayle <roger@eyesopen.com>
14923 * builtins.def: Fix typo and improve grammar.
14924 * loop-unroll.c (decide_peel_completely): Tidy log message.
14926 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
14928 * config/h8300/h8300.md (*tstsi_upper_bit): New.
14929 (*iorsi3_e2f): Likewise.
14931 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14933 * config/h8300/h8300.c (h8300_and_costs): Return the number of
14934 assembly instructions needed.
14935 (h8300_shift_costs): Likewise.
14937 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
14939 * config/cris/aout.h (ENDFILE_SPEC): Undef.
14941 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14942 moves from here ...
14943 * expr.c (emit_move_insn_1): ... to here.
14945 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14946 (TARGET_OS_CPP_BUILTINS): New macro.
14947 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14948 (TARGET_OS_CPP_BUILTINS): New macro.
14949 (CPP_PREDEFINES): Don't define. Move old definitions and...
14950 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14951 (TARGET_CPU_CPP_BUILTINS): New macro.
14952 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14953 definitions and the optional __PIC__, __pic__ and
14954 __NO_UNDERSCORES__ definitions to...
14955 (TARGET_OS_CPP_BUILTINS): New macro.
14957 * flags.h (flag_leading_underscore): Declare.
14959 * c-opts.c (c_common_post_options): On fopen failure, return
14962 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14964 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14966 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14967 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14969 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14971 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14973 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14976 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14978 * c-common.h (c_common_init, c_common_post_options): Update.
14979 * c-objc-common.c (c_objc_common_init): Update for new prototype.
14980 * c-opts.c (saved_lineno): New.
14981 (c_common_post_options, c_common_init): Update prototypes,
14982 move call to cpp_read_main_file from latter to former.
14983 * c-tree.h (c_ojbc_common_init): Update.
14984 * langhooks-def.h (lhd_post_options): New.
14985 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14986 * langhooks.c (lhd_post_options): New.
14987 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14988 * toplev.c (no_backend): New.
14989 (process_options): Call post_options hook and set main_input_filename
14990 and input_filename here.
14991 (lang_dependent_init, do_compile): post_options hook moved to
14993 * objc/objc-act.c (objc_init): Update prototype.
14994 * objc/objc-act.h (objc_init): Update prototype.
14996 2003-03-08 Roger Sayle <roger@eyesopen.com>
14998 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14999 a complex or vector type, using a load in the original mode.
15001 2003-03-08 Jan Hubicka <jh@suse.cz>
15003 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
15004 * gt-cgraph.h: New GC file.
15005 * cgraph.c (known_fns): New static variable.
15006 (cgraph_node): Add the decl into varray.
15008 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
15010 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
15012 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
15014 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
15015 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
15016 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
15017 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
15018 All callers changed.
15019 * arm.md, arm.h, arm-protos.h: Updated.
15021 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
15022 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
15023 * arm.c (arm_regno_class, f_register_operand): Updated.
15025 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
15027 * config/cris/cris.h: Remove EGCS references.
15028 (CPP_SPEC): Remove "-$".
15029 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
15031 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15033 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
15034 preference to CPP_PREDEFINES.
15036 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15038 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
15040 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
15042 * config/h8300/h8300.md (*extzv_16_8): New.
15044 2003-03-08 Jan Hubicka <jh@suse.cz>
15046 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
15047 * cgraph.h: (cgraph_local_info): Add can_inline_once
15048 (cgraph_global_info): Add inline_once.
15049 (cgraph_node): Add previous.
15050 (cgraph_remove_node): New.
15051 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
15053 (cgraph_optimize): Call it.
15054 (cgraph_finalize_function): Set inlinable flags.
15055 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
15056 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
15057 (cgraph_expand_function): Likewise.
15059 (cgraph_node): Put nodes into doubly linked chain.
15060 (cgraph_remove_node): New function.
15061 * flags.h (flag_inline_functions_called_once): Declare.
15062 * tree-inline.c: Include cgraph.h
15063 (inlinable_functions_p): Add extra argument to bypass limits.
15064 (expand_call_inline): Obey cgraph flag.
15065 * tree-inline.h (tree_inlinable_function_p): Update prototype.
15067 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15069 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
15072 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
15073 loops info correctly.
15075 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
15078 * unroll.c (calculate_giv_inc): Handle constants being
15079 loaded with LSHIFTRT.
15081 2003-03-07 David Edelsohn <edelsohn@gnu.org>
15083 * config/rs6000/rs6000.c (processor_target_table): Do not disable
15084 GP optional instructions on Power3, Power4, 620, and 630.
15086 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
15088 * calls.c: Fix comment formatting.
15089 * cfgloopanal.c: Likewise.
15090 * cfgloopmanip.c: Likewise.
15091 * combine.c: Likewise.
15092 * dwarf2out.c: Likewise.
15093 * ggc-common.c: Likewise.
15094 * langhooks.c: Likewise.
15095 * loop-unroll.c: Likewise.
15096 * loop.c: Likewise.
15097 * ra-build.c: Likewise.
15098 * sbitmap.c: Likewise.
15099 * toplev.c: Likewise.
15101 2003-03-07 James E Wilson <wilson@tuliptree.org>
15103 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
15105 2003-03-07 Geoffrey Keating <geoffk@apple.com>
15107 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15108 support -no-integrated-cpp.
15110 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15111 than langhooks.name.
15113 2003-03-07 Michael Matz <matz@suse.de>
15115 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15116 (DF_FOR_REGALLOC): New.
15117 * df.c (df_ref_record): Set DF_REF_STRIPPED.
15118 (read_modify_subreg_p): Simplify.
15119 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15120 Use DF_FOR_REGALLOC.
15121 * ra.h (struct web): New member subreg_stripped.
15122 (invalid_mode_change_regs): Declare.
15123 * ra.c (invalid_mode_change_regs): New.
15124 (init_ra): Initialize it.
15125 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15126 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15127 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15128 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15129 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15131 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
15133 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15134 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15135 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15136 machine description file from ...
15137 * cirrus.md: ... here.
15139 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15141 * config/h8300/h8300.md (a peephole2): Don't use
15142 reg_overlap_mentioned_p.
15144 2003-03-06 Geoffrey Keating <geoffk@apple.com>
15146 * c-pch.c: Include langhooks.h.
15147 (IDENT_LENGTH): New.
15149 (pch_ident): Delete.
15150 (pch_init): Use get_ident, IDENT_LENGTH.
15151 (c_common_valid_pch): Likewise. Also, use actual language
15152 in warning message.
15153 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15155 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
15157 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15158 gt-objc-objc-act.h.
15159 (gt-objc-objc-act.h): New rule.
15160 * objc/lang-specs.h: Support PCH.
15161 * objc/objc-act.c: Include gt-objc-objc-act.h.
15162 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15163 (build_selector_reference_decl): Move idx out, mark for PCH.
15164 (build_class_reference_decl): Likewise.
15165 (build_objc_string_decl): Move *_idx out, mark for PCH.
15166 (build_tmp_function_decl): Move xxx out, mark for PCH.
15168 2003-03-06 Dale Johannesen <dalej@apple.com>
15170 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
15171 global functions for inlining on Darwin.
15173 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
15175 * haifa-sched.c (schedule_block): Don't call reorder when sorting
15178 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
15180 * Makefile.in (c-ppoutput.o): Update.
15181 * c-common.h (init_pp_output): New.
15182 (preprocess_file): Update.
15183 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15185 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15186 Make call to cpp_read_main_file common to whether preprocessing
15187 or not. Don't register builtins.
15188 * c-ppoutput.c: Include c-pragma.h.
15189 (setup_callbacks): Rename init_pp_output.
15190 (preprocess_file): No longer setup callbacks or call
15191 cpp_read_main_file.
15192 * cpphash.h (_cpp_init_mbchar): New.
15193 * cppinit.c (init_library): Call _cpp_init_mbchar.
15194 * cpplex.c (_cpp_init_mbchar): New.
15196 2003-03-06 Roger Sayle <roger@eyesopen.com>
15198 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15199 MEM, try loading the MEM into a register and taking the low-part
15200 of that, to help CSE see the use of the MEM in its true mode.
15202 2003-03-05 Tom Tromey <tromey@redhat.com>
15204 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15207 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
15209 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15211 ("*ineqbranchsi"): Likewise.
15213 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
15215 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15216 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
15217 register store followed by a stack increment.
15219 2003-03-05 Chris Moller <cmoller@redhat.com>
15221 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15222 to inhibit saving CARRY_REGS.
15224 * config/stormy16/stormy16.c (xs_hi_general_operand):
15225 added predicate to detect and error-out on out-of-range
15226 const_ints for movhi.
15227 * config/stormy16/stormy16.md (movhi): use
15228 xs_hi_general_operand.
15230 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15231 added a check for local vbl size overflow.
15232 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15233 added predicate to detect and error-out on out-of-range
15234 const_ints for addhi and subhi.
15235 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
15236 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15238 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15239 add a term to accept PRE_MODIFY addresses.
15240 * config/stormy16/stormy16.c (xstormy16_expand_move):
15241 add code to expand PRE_MODIFY addresses to an add followed
15244 2003-03-06 Jason Merrill <jason@redhat.com>
15246 * tree-inline.c (inlinable_function_p): Revert earlier change
15247 pending investigation.
15249 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15251 * config/h8300/h8300.md (a new peephole2): New.
15253 2003-03-06 Jan Hubicka <jh@suse.cz>
15255 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
15257 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15259 * dwarf2out.c (size_of_die): Compute size of external reference to
15262 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
15264 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
15265 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
15268 2003-03-05 Roger Sayle <roger@eyesopen.com>
15270 * expr.h (lang_expand_expr): Delete obsolete prototype.
15272 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15274 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
15276 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15278 * config/h8300/h8300.md (a peephole2): Generalize to
15279 accept a memory operand.
15281 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
15283 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15284 * config/alpha/alpha.c (print_operand, case '+'): New.
15285 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15286 (call_value_osf_1_noreturn): Likewise.
15288 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15290 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15291 (expand_end_bindings): Likewise.
15293 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15295 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15296 (epilogue): Don't generate return_external_pic when emitting PA 2.0
15299 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
15301 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
15303 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
15305 * hooks.c (hook_rtx_rtx_null): New.
15307 * hooks.h (hook_rtx_rtx_null): Protoize.
15309 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15310 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
15312 * target.h (struct gcc_target): Add dwarf_register_span.
15314 * dwarf2out.c (multiple_reg_loc_descriptor): New.
15315 (one_reg_loc_descriptor): New.
15316 (reg_loc_descriptor): Add support for values that span more than
15319 2003-03-05 Jan Hubicka <jh@suse.cz>
15321 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15322 * alias.c: Include cgraph.h
15323 (mark_constant_function): Use cgraph_rtl_info.
15324 * calls.c: Include cgraph.h
15325 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15327 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15328 * cgraph.c (cgraph_rtl_info): New function.
15329 * cgraph.h (cgraph_rtl_info): Declare
15330 (cgraph_rtl_info): Likewise.
15331 * function.h (struct function): Add recursive_call_emit.
15332 * toplev.c: Include cgraph.h.
15333 (rest_of_compilation): Set preferred_incoming_stack_boundary.
15335 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15337 * config/h8300/h8300.c (output_simode_bld): Clear the
15338 destination first if possible.
15339 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15341 (extzv_1_r_inv_h8300hs): Likewise.
15343 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15345 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15346 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15347 * cfgloop.c (flow_loop_free): Made global.
15348 (establish_preds): New static function.
15349 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15350 (get_loop_exit_edges): New.
15351 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15352 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15353 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15355 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15356 removability of an edge.
15357 (fix_irreducible_loops): New static function.
15358 (find_path, remove_path): Add ability to remove enclosing loops.
15360 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15362 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15363 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15365 (decide_peel_completely, peel_loops_completely): Allow complete peeling
15366 of non-duplicable once rolling loops.
15367 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15369 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
15371 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15372 for align_jumps is 4.
15374 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15377 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
15379 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15380 according to va_arg type.
15381 (EXPAND_BUILTIN_VA_ARG): Remove.
15382 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15383 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15385 2003-03-05 David Edelsohn <edelsohn@gnu.org>
15387 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15390 2003-03-05 Michael Matz <matz@suse.de>
15392 * i386/i386.c (ix86_save_reg): Also test
15393 current_function_uses_const_pool.
15395 2003-03-05 Michael Matz <matz@suse.de>
15397 * unwind.h: Add the GPL exception.
15398 * Makefile.in (USER_H): Add unwind.h.
15400 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
15403 * c-typeck.c (push_init_level): Add sanity check.
15405 2003-03-05 Jan Hubicka <jh@suse.cz>
15407 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
15408 RTL inlining is done.
15410 * cgraphunit.c (cgraph_mark_local_functions): New local function.
15411 (cgraph_optimize): Mark local functions.
15412 * i386-protos.h (init_cumulative_args): Update prototype.
15413 * i386.c (init_cumulative_args): Use register passing convention for
15416 * cgraph.c (cgraph_global_info_ready): New global variable
15417 (cgraph_local_info, cgraph_global_info): New functions.
15418 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15420 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15422 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15423 (cgraph_mark_functions_to_output): Use inline_many.
15424 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15425 (cgraph_expand_functions): Expand inline functions last.
15426 (cgraph_optimize): Do not emit uneeded functions.
15428 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15430 * expr.c (convert_modes): Check for legal hard register.
15432 2003-03-04 Tom Tromey <tromey@redhat.com>
15434 * doc/sourcebuild.texi (Front End Directory): Document tags.
15435 * configure: Rebuilt.
15436 * configure.in (target_list): Added tags.
15437 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
15438 TAGS files by reference.
15439 * objc/Make-lang.in (objc.tags): New target.
15441 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15443 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15444 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15445 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15446 gcov_read_string, gcov_write_length): Modified to enable reading/
15447 writing of whole .da file just once.
15448 (da_file_open, da_file_close, da_file_eof, da_file_error,
15449 da_file_position, da_file_seek, da_file_write, da_file_read): New
15451 (actual_da_file, actual_da_file_position, actual_da_file_length,
15452 actual_da_file_buffer, actual_da_file_buffer_size): New static
15454 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15458 2003-03-04 Andreas Schwab <schwab@suse.de>
15460 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15461 offset without frame pointer.
15463 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15465 * expr.c (expand_expr): Call promote_mode to set unsignedp.
15467 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
15469 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15470 * configure: Regenerated.
15471 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15473 2003-03-04 Andreas Jaeger <aj@suse.de>
15475 * configure.in: Check for <memcheck.h>.
15476 * configure: Regenerated.
15478 * config.in: Define HAVE_MEMCHECK_H.
15480 * ggc-common.c: Use <memcheck.h> if available instead of
15482 * ggc-page.c: Likewise.
15483 * cppfiles.c: Likewise.
15485 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
15487 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15489 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15492 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15493 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15495 2003-03-04 Jan Hubicka <jh@suse.cz>
15497 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
15498 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15501 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
15503 * configure.in: Delete three unused variables. Move a variable
15504 definition closer to its use. Simplify use_collect2 logic. Start to
15505 organize. Simplify tests for in-tree gas and ld.
15506 * configure: Regenerate.
15508 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
15510 * Makefile.in: Update.
15511 * c-common.c (flag_no_line_commands, flag_no_output,
15512 flag_dump_macros, flag_dump_includes): New.
15513 * c-common.h (flag_no_line_commands, flag_no_output,
15514 flag_dump_macros, flag_dump_includes, preprocess_file): New.
15515 (init_c_lex): Update prototype.
15516 * c-lex.c (init_c_lex): Update prototype; move some code to
15518 * c-opts.c (preprocess_file): Subsume into c_common_init.
15519 (c_common_decode_option): Update flags.
15520 (c_common_init): Move code from preprocess_file and init_c_lex.
15521 (sanitize_cpp_opts): Update.
15522 * c-ppoutput.c: New, cppmain.c almost verbatim.
15523 * cpphash.h (struct printer): Remove.
15524 (struct cpp_reader): Remove print.
15525 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15526 cpp_preprocess_file): Remove.
15527 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15529 * cppmain.c: Remove.
15530 * doc/passes.texi: Update.
15532 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15534 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
15535 (assign_stack_local_1): Perform overall stack alignment only when
15536 STACK_ALIGNMENT_NEEDED is nonzero.
15537 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15539 * pa.c (compute_frame_size): Rename fsize to size. Account for
15540 alignment to a word boundary before general register save block. Only
15541 account for double-word alignment before floating point register save
15542 block if one or more are saved. Don't allocate space for %r3 when
15543 frame pointer is needed.
15544 (hppa_expand_prologue): Include alignment to word boundary in local
15546 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15547 (STACK_ALIGNMENT_NEEDED): Define.
15549 2003-03-04 Kevin Buettner <kevinb@redhat.com>
15551 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15552 global register variables.
15554 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
15556 * reload.c (reload_adjust_reg_for_mode): New function.
15557 (subst_reloads): Call it.
15558 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15559 * reload.h (reload_adjust_reg_for_mode): Declare.
15560 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15563 2003-03-03 James E Wilson <wilson@tuliptree.org>
15565 * optabs.c (add_equal_note): Delete SUBREG_REG use.
15568 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15570 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15571 (*ixorsi3_lshiftrt_16): New.
15572 (*iorsi3_ashift_16): Remove.
15574 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15576 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15579 2003-03-03 Geoffrey Keating <geoffk@apple.com>
15581 * doc/install.texi (Specific): Update entry for powerpc-darwin.
15583 2003-03-03 Richard Henderson <rth@redhat.com>
15585 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15587 2003-03-03 David Edelsohn <edelsohn@gnu.org>
15589 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15590 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15591 (rs6000_variable_issue): Do not return negative value.
15592 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15595 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15597 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15598 prune_unused_types calls.
15600 2003-03-03 Jason Merrill <jason@redhat.com>
15602 * tree-inline.c (find_builtin_longjmp_call): Save and restore
15603 lineno and input_filename.
15604 (find_alloca_call): Likewise.
15605 (inlinable_function_p): Run the langhook earlier.
15607 * calls.c (compute_argument_addresses): Give the new MEMs a
15608 minimum alignment of PARM_BOUNDARY.
15610 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
15612 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15613 subtarget_asm_isa_spec.
15614 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15615 (ASM_SPEC): Define as SH_ASM_SPEC.
15616 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15617 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15618 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15619 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
15621 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15622 and align_jumps if not set.
15623 Force align_jumps to be at least 2.
15624 When relaxing, force align_functions to be at least the maximum of
15625 align_loops, align_jumps and 4.
15626 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15627 (sh_loop_align): Honour align_loops_log.
15629 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15630 to check for indirect_jump_scratch.
15631 (indirect_jump_scratch): Add second set.
15632 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15633 when looking for indirect_jump_scratch.
15634 Extract scratch register taking new structure of indirect_jump_scratch
15636 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15638 2003-03-03 Jan Hubicka <jh@suse.cz>
15640 * calls.c (rtx_for_function_call): Take the address as an argument
15641 (expand_call): Do not modify the expression.
15643 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
15646 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15648 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15649 TARGET_H8300H and TARGET_H8300S.
15651 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15653 * config/h8300/h8300.md (a peephole2): New.
15655 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15657 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15658 operands[0] and operands[1] are different.
15660 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15662 * reload1.c (reload_cse_move2add): Remove variable success.
15664 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15666 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15669 2003-03-02 Richard Henderson <rth@redhat.com>
15671 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15672 * config.in, configure: Rebuild.
15673 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
15674 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
15675 paired ldtoffx and ldxmov annotations.
15676 (load_symptr_internal1): Remove.
15677 (load_symptr_high, load_symptr_low): New.
15679 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15681 * c-incpath.c (add_path): Fix sysp assignment.
15683 2003-03-02 Kurt Garloff <garloff@suse.de>
15685 * params.def: Introduce parameter max-inline-insns-rtl for
15686 a separate limit for the RTL inliner.
15687 * params.h: Likewise.
15688 * integrate.c (function_cannot_inline_p): Use it.
15689 * toplev.c (decode_f_option): Set multiple parameters
15690 controlling inlining with -finline-limit.
15691 * params.def: Fix orthographic and typographic errors.
15692 * doc/invoke.texi: Document parameters controlling inlining
15693 and the way -finline-limit sets multiple of them.
15695 * tree.h (struct tree_decl): Introduce inlined_function_flag,
15696 recording whether the function became eligible for inlining
15697 by a compiler flag rather than the declaration.
15698 Provide DID_INLINE_FUNC macro to access it.
15699 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15700 * cp/decl.c (grokfndecl): Likewise.
15701 * toplev.c (rest_of_compilation): Likewise.
15702 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15703 * print-tree.c (print_node): Report it.
15704 * params.def: Introduce new max-inline-insns-auto limit.
15705 * params.h: Likewise.
15706 * tree-inline.c (inlinable_function_p): Apply it to functions
15707 with DID_INLINE_FUNC set.
15708 * toplev.c (decode_f_option): Initialize it from -finline-limit
15710 * doc/invoke.texi: Document new parameter.
15712 2003-03-02 Geoffrey Keating <geoffk@apple.com>
15714 * fix-header.c (read_scan_file): Don't reference simplify_path.
15716 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15718 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15719 min/max instructions by default as may result in reload errors.
15721 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15723 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15724 avoid reload problems; define split for it.
15726 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15728 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15729 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15730 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
15731 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
15732 rotatert and rotate.
15733 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15734 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15735 ("*rotrhi3_addr"): New split for shift insns on address register.
15736 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15737 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15738 (___rotrhi3): Likewise.
15739 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15741 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15743 * toplev.c (aux_base_name): Moved from toplev.h.
15744 (filename): Constify.
15745 (lang_dependent_init): Don't duplicate name.
15746 (process_options): Set aux_base_name here, not...
15747 (do_compile): ...here. Change protoype.
15748 (toplev_main): Move some code from do_compile.
15749 * toplev.h: Remove aux_base_name.
15751 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15753 * config/h8300/h8300-protos.h: Add a prototype for
15755 * config/h8300/h8300.c (print_operand): Handle 'c'.
15756 (iorxor_operator): New.
15757 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15758 * config/h8300/h8300.md (*iorhi3_zext): Remove.
15759 (*iorsi3_zexthi): Likewise.
15760 (*iorsi3_zextsi): Likewise.
15761 (*xorhi3_zextqi): Likewise.
15762 (*xorsi3_zexthi): Likewise.
15763 (*xorsi3_zextsi): Likewise.
15764 (*ixorhi3_zext): New.
15765 (*ixorsi3_zext_qi): Likewise.
15766 (*ixorsi3_zext_hi): Likewise.
15768 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15770 * c-incpath.c (remove_component_p, simplify_path): Move back to
15772 (remove_duplicates): Use cpp_simplify_path.
15773 * c-incpath.h (simplify_path): Remove.
15774 * c-lex.c: Don't include c-incpath.h.
15775 (init_c_lex): Remove simplify_path.
15776 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15777 (find_or_create_entry, validate_pch): Revert.
15779 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
15781 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15782 an external cpp during compilation.
15783 (option_map): Likewise.
15784 * objc/lang-specs.h (default_compilers): Similarly.
15785 * doc/invoke.texi: Document -no-integrated-cpp flag.
15787 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15789 * config/h8300/h8300.md (zero_extendqisi2): Change to an
15791 (*zero_extendqisi2_h8300): New.
15792 (*zero_extendqisi2_h8300hs): New.
15793 (two splitters): New.
15795 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15797 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15799 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15801 * config/h8300/h8300.md (a peephole2): Remove dead code.
15803 2003-03-01 Roger Sayle <roger@eyesopen.com>
15806 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15807 (BT_FN_INT_CONST_STRING_VALIST_ARG,
15808 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15809 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15810 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15811 BT_FN_INT_STRING_CONST_STRING_VAR,
15812 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15813 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15814 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15815 ATTR_NONNULL_3): Also include the nothrow attribute.
15816 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15817 vsnprintf, vscanf, vsscanf): Don't define attributes here.
15818 * builtins.def (putchar, puts): Make full C89 built-ins.
15819 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15820 vsscanf, vsnprintf, vsprintf): New built-ins.
15821 * c-common.c (c_common_nodes_and_builtins): Handle new macro
15822 DEF_FUNCTION_TYPE_VAR_3.
15824 * doc/extend.texi: Document these new built-in functions.
15826 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15828 * config/h8300/h8300.md (a peephole2): New.
15830 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
15832 * predict.c (estimate_bb_frequencies): Correctly set
15833 real_values_initialized after initialization.
15835 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
15837 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15838 cppinit.o, cppdefault.o, fix-header): Update.
15839 * c-incpath.c: New file.
15840 * c-incpath.h: New file.
15841 * c-lex.c: Include c-incpath.h.
15842 (init_c_lex): Register path simplifier.
15843 * c-opts.c: Include cppdefault.h and c-incpath.h.
15844 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15845 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15846 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15847 (missing_arg, c_common_decode_option): Handle them.
15848 (c_common_post_options): Register include chains.
15849 (print_help): Update.
15850 * cppdefault.h (struct default include): Update.
15851 Move some macros to ...
15852 * cppdefault.c: ... here.
15853 (cpp_include_defaults): Add extra field add_sysroot.
15854 * cppfiles.c (include_file, search_from, find_or_create_entry,
15855 cpp_included, find_include_file, remap_filename): Update for
15856 renaming of search_path to cpp_path, and of the chain headers.
15857 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15858 * cpphash.h (struct search_path): Move to cpplib.h.
15859 (struct cpp_buffer, struct cpp_reader): Update.
15860 (_cpp_simplify_pathname): Remove.
15861 * cppinit.c: Don't include prefix.h and cppdefault.h.
15862 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15863 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15864 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15865 no_pth, cpp_handle_options): Remove.
15866 (struct pending_option): Remove chain members.
15867 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15868 cpp_handle_option): Update.
15869 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15870 (struct cpp_options): Remove quote_include, bracket_include,
15871 include_prefix, include_prefix_len, verbose, ignore_srcdir,
15872 no_standard_includes, no_standard_cplusplus_includes.
15873 (struct cpp_callbacks): Add simplify_path.
15874 (cpp_handle_options): Remove.
15875 * fix-header.c: Include c-incpath.h.
15876 (read_scan_file): Update to use c-incpath functionality.
15877 * doc/passes.texi: Update.
15879 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15881 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15882 satisfies EXTRA_CONSTRAINT 'U'.
15884 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15886 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15888 (*tst_extzv_memqi_1_n): Change to a splitter.
15889 (a peephole2): Update.
15891 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
15893 * predict.c (estimate_bb_frequencies): Initialize the sreal
15894 constants once per compilation.
15896 2003-02-28 Richard Henderson <rth@redhat.com>
15898 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15900 2003-02-28 scott snyder <snyder@fnal.gov>
15902 * flags.h: Add flag_eliminate_unused_debug_types.
15903 * toplev.c: Add flag_eliminate_unused_debug_types.
15904 (f_options): Add -feliminate-unused-debug-types.
15905 * dwarf2out.c (struct file_table): Add emitted member.
15906 (splice_child_die): Fix the parent pointer for the child being
15908 (lookup_filename): Maintain file_table.emitted array. Don't
15909 output .file directive here.
15910 (maybe_emit_file): (new)
15911 (init_file_table): Set up file_table.emitted.
15912 (dwarf2out_source_line): Use maybe_emit_file.
15913 (dwarf2out_start_source_file): Use maybe_emit_file.
15914 (dwarf2out_init): Use maybe_emit_file.
15915 (prune_unused_types_walk_attribs): (new)
15916 (prune_unused_types_mark): (new)
15917 (prune_unused_types_walk): (new)
15918 (prune_unused_types_prune): (new)
15919 (prune_unused_types): (new)
15920 (dwarf2out_finish): Call prune_unused_types if
15921 flag_eliminate_unused_debug_types is set.
15922 * doc/invoke.texi (Option Summary): Add
15923 -feliminate-unused-debug-types.
15924 (Debugging Options): Likewise.
15926 2003-02-28 Geoffrey Keating <geoffk@apple.com>
15928 * doc/invoke.texi: Change .pch to .gch.
15929 * cppfiles.c (open_file_pch): Likewise.
15930 * gcc.c (default_compilers): Likewise.
15932 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
15934 * floatlib.c: Remove.
15936 2003-02-28 Jason Merrill <jason@redhat.com>
15938 * stor-layout.c (variable_size): Leave a "minus 1" outside the
15941 2003-02-28 David Edelsohn <edelsohn@gnu.org>
15943 * config/rs6000/power4.md: Add compare bypass.
15945 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
15947 * config/netbsd.h: Update copyright years.
15948 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15949 -pthread is specified on the command line.
15951 2003-02-28 Dale Johannesen <dalej@apple.com>
15953 * loop.c (struct movable): Add insert_temp, shrink savemode.
15954 (scan_loop): Accept invariants that require copying; mark as
15956 (combine_movables): Don't combine insert_temp movables.
15957 (move_movables): Insert copies for insert_temp movables.
15958 Don't record the info based on regno for insert_temp's.
15960 2003-02-28 Joel Sherrill <joel@OARcorp.com>
15963 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
15964 this constant defaults to 1.
15966 2003-02-28 Bob Wilson <bob.wilson@acm.org>
15968 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15970 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
15972 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
15973 ARMv5e processor, not just for XScale. Instructions are predicable.
15974 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15976 2003-02-28 Nick Clifton <nickc@redhat.com>
15978 * config/arm/arm.c (note_invalid_constants): Change parameter type
15981 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
15983 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15985 (*tst_extzv_memqi_1_n): Likewise.
15986 (a peephole2): New.
15988 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
15990 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15993 2003-02-28 Jan Hubicka <jh@suse.cz>
15995 * combine.c (gen_lowpart_for_combine): Update handling of
15997 * flow.c (life_analysis, mark_used_regs): Likewise.
15998 * regclass.c (subregs_of_mode): Turn into single bitmap.
15999 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
16000 dealing with subregs_of_mode
16001 * regs.h (subregs_of_mode): Update prototype.
16003 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
16005 * emit-rtl.c (set_reg_attrs_for_parm): New function.
16006 * rtl.h (set_reg_attrs_for_parm): New exported function.
16007 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
16008 set_reg_attrs_from_mem.
16010 2003-02-27 Roger Sayle <roger@eyesopen.com>
16011 Zack Weinberg <zack@codesourcery.com>
16013 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
16015 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
16017 * reload1.c (sext_for_mode): Remove.
16018 (reload_cse_move2add): Use trunc_int_for_mode instead of
16020 (move2add_note_store): Likewise.
16021 Reset register information if we see a set in non-integer
16024 2003-02-27 David Edelsohn <edelsohn@gnu.org>
16026 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
16028 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
16029 * config/rs6000/aix51.h: Same.
16030 * config/rs6000/aix52.h: Same.
16031 * config/rs6000/power4.md: Additional VMX bypasses.
16033 2003-02-27 Geert Bosch <bosch@gnat.com>
16035 * toplev.c (print_version): Add indentation for GGC heuristics and
16036 output after printing version information.
16038 2003-02-27 James E Wilson <wilson@tuliptree.org>
16040 * combine.c (simplify_comparison): Require integral mode when
16041 permuting SUBREG with AND.
16043 2003-02-27 Steve Ellcey <sje@cup.hp.com>
16045 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
16047 2003-02-27 Nick Clifton <nickc@redhat.com>
16049 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
16050 deleted when cirrus instructions were added.
16052 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
16054 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
16055 POSIX thread support by default.
16057 2003-02-27 Roger Sayle <roger@eyesopen.com>
16059 * config/i386/cygwin.h: Don't include any other files directly.
16060 * config/i386/mingw32.h: Don't include cygwin.h directly.
16061 * config.gcc (cygwin, mingw32, uwin): Instead make these files
16062 explicit in the tm_files variable.
16064 2003-02-27 Alan Modra <amodra@bigpond.net.au>
16066 * config/rs6000/rs6000.md: Add TI constant splitter.
16068 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
16070 * builtins.c (purge_builtin_constant_p): Handle subreg of
16071 constant_p_rtx too.
16073 * function.c (assign_stack_local_1): Truncate constant added to
16074 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
16076 2003-02-26 David Edelsohn <edelsohn@gnu.org>
16078 * config.gcc: Add power4 to PowerPC with_cpu list.
16080 2003-02-26 Jan Hubicka <jh@suse.cz>
16082 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
16084 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16086 * gcov-dump.c (print_prefix): Fix signedness warning.
16087 * gcov-io.h (struct counter_section, struct counter_section_data): New.
16088 (struct function_info): n_arc_counts field removed, n_counter_sections,
16089 counter_sections fields added.
16090 (struct gcov_info): arc_counts, n_arc_counts fields removed,
16091 n_counter_sections, counter_sections fields added.
16092 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
16094 * profile.h (MAX_COUNTER_SECTIONS): New.
16095 (struct section_info): New.
16096 (struct profile_info): count_instrumented_edges,
16097 count_edges_instrumented_now fields removed, n_sections, section_info
16099 (find_counters_section): Declare.
16100 * profile.c (struct function_list): count_edges field removed,
16101 n_counter_sections, counter_sections fields added.
16102 (set_purpose, label_for_tag, build_counter_section_fields,
16103 build_counter_section_value, build_counter_section_data_fields,
16104 build_counter_section_data_value, build_function_info_fields,
16105 build_function_info_value, build_gcov_info_fields,
16106 build_gcov_info_value): New static functions.
16107 (find_counters_section): New function.
16108 (instrument_edges, get_exec_counts, compute_branch_probabilities,
16109 branch_prob, create_profiler): Modified to support multiple profile
16112 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16114 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16115 is 8 * STACK_BOUNDARY.
16116 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16118 2003-02-26 Michael Matz <matz@suse.de>
16120 * ra-colorize.c (merge_moves): Fix list handling.
16122 2003-02-26 Nick Clifton <nickc@redhat.com>
16124 * config/arm/arm.c (is_load_address): Rename to...
16125 (arm_memory_load_p) ... this and make it check for SUBREGs and
16126 constant loads that will be converted into loads from the
16128 (is_cirrus_insn): Rename to ...
16129 (arm_cirrus_insn_p): ... this, for consistency. Replace test
16130 of CIRRUS_NO with CIRRUS_NOT.
16131 (cirrus_reorg): Use renamed functions.
16132 (note_invalid_constants): Change from a void function to bool.
16133 Add an extra parameter, saying whether the fixups should be
16134 pushed. Return true if fixups are needed.
16135 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
16136 of CIRRUS_NO with CIRRUS_NOT.
16137 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16138 other floating point co-processors can also affect this.
16139 * config/arm/arm.md ("type" attribute): Add mav_farith and
16140 mav_dmult. Replace references to "cirrus_type" attribute with
16142 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16143 ("cirrus_type" attribute): Delete - use "type" instead.
16144 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16147 2003-02-25 Jan Hubicka <jh@suse.cz>
16149 * objc-act.c: Include cgraph.h
16150 (mark_referenced_methods): New function.
16151 (objc_init): Call it.
16152 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16154 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16157 * optabs.c (expand_fix): Do not widen the input operand.
16159 * expr.c (emit_group_store): Fix crash when converting single
16160 register into complex register.
16162 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16163 * alias.c: Include timevar.h
16164 (init_alias_analysis): Set timevar
16165 * jump.c: Include timevar.h
16166 (rebuild_jump_labels): Set timevar
16167 * regcalss.c: Include timevar.h
16168 (reg_scan): Set timevar
16169 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16171 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16173 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16175 * Makefile.in (loop-unroll.o): New.
16176 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16177 (unroll_and_peel_loops): Declare.
16178 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16179 flag_old_unroll_loops.
16180 * loop.c (loop_invariant_p): Ditto.
16181 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16182 flag_old_unroll_all_loops.
16183 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16184 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16185 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16186 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16187 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16188 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16189 PARAM_MAX_ONCE_PEELED_INSNS): New.
16190 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16191 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16192 instead of old one.
16193 (flag_peel_loops): New.
16194 (lang_independent_options): The new flags added.
16195 (rest_of_compilation): Call new unroller.
16196 (process_options): Setup flags for coexistence of old and new unroller.
16197 * doc/invoke.texi: Document new options.
16198 * doc/passes.texi: Document new unroller pass.
16200 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
16202 * fixinc/fixincl.x: Regenerate
16204 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
16206 * function.c (assign_parms): Set reg_attrs for parameters passed in
16209 2003-02-26 Alan Modra <amodra@bigpond.net.au>
16212 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16214 2003-02-25 David Edelsohn <edelsohn@gnu.org>
16216 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16219 2003-02-25 Roger Sayle <roger@eyesopen.com>
16221 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
16222 * cse.c (invalidate_skipped_set): Likewise.
16223 * integrate.c (subst_constants): Likewise.
16224 * jump.c (reversed_comparison_code_parts): Likewise.
16225 * loop.c (canonicalize_condition): Likewise.
16226 * simplify-rtx.c (simplify_relational_operation): Likewise.
16228 2003-02-25 Roger Sayle <roger@eyesopen.com>
16230 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16231 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
16232 the appropriate macro to define built-in function.
16233 (fmod,fmodf,fmodl): New built-in functions.
16235 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16237 2003-02-25 Richard Henderson <rth@redhat.com>
16239 * config/i386/i386.c (function_arg): Pass variable sized
16240 structures correctly on the stack.
16242 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16244 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16245 does not reduce the cost of SET.
16247 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16250 * config/rs6000/rs6000.c (first_reg_to_save): Handle
16251 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
16252 (rs6000_emit_prologue): Likewise.
16253 (rs6000_emit_epilogue): Likewise.
16254 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
16255 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
16257 2003-02-25 Richard Henderson <rth@redhat.com>
16259 * real.c (real_to_integer2): Force overflow result only for
16262 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16264 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
16266 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16267 Richard Henderson <rth@redhat.com>
16269 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
16270 there is no similar load.
16272 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
16273 Richard Henderson <rth@redhat.com>
16275 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
16277 (add_forward_dependence): New function prototype.
16279 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16281 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16282 them to haifa-sched.c.
16284 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16285 haifa_classify_insn): Move them from sched-rgn.c.
16287 * sched-deps.c (add_dependence): Return flag of creating a new
16289 (add_forward_dependence): New function.
16290 (compute_forward_dependences): Use the function.
16292 * sched-ebb.c (earliest_block_with_similiar_load): New function.
16293 (add_deps_for_risky_insns): New function.
16294 (schedule_ebb): Call the function.
16296 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
16298 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16299 TARGET_VECTOR_OPAQUE_P. Document accordingly.
16301 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16304 * c-typeck.c (comptypes): Change call to vector_types_compatible
16305 to vector_opaque_p.
16306 (convert_for_assignment): Call vector_opaque_p instead of
16307 vector_types_compatible.
16308 (really_start_incremental_init): Disallow initialization of opaque
16311 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16312 Define TARGET_VECTOR_OPAQUE_P.
16313 (TARGET_INITIALIZER): Same.
16315 * target.h (struct gcc_target): Remove vector_types_compatible.
16316 Add vector_opaque_p.
16318 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16320 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16321 a vector type. Change return type to bool.
16322 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16323 (TARGET_VECTOR_OPAQUE_P): Define.
16325 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16328 (cp_parser_init_declarator): Fix typo in function comments.
16330 2003-02-25 Jan Hubicka <jh@suse.cz>
16332 * Makefile.in (lcm.o): Add dependency on function.h
16333 * lcm.c (function.h): Include.
16334 * i386.c (machine_function, ix86_stack_locals,
16335 * ix86_save_varrargs_registers) : Move to
16337 * i386.h (machine_function, ix86_stack_locals,
16338 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16339 (ix86_optimize_mode_switching): New.
16340 * i386.md (fix patterns): Set ix86_optimize_mode_switching
16342 2003-02-25 Nick Clifton <nickc@redhat.com>
16344 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
16345 of fourth arg is 'fndecl' not 'indirect'. Update comment
16346 describing the function's parameters.
16348 2003-02-24 Jan Hubicka <jh@suse.cz>
16350 * combine.c (simplify_shift_const): Fix previous patch.
16352 2003-02-24 Jeff Law <law@redhat.com>
16354 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16356 (testsi_1, testhi_1, testqi_1): Likewise.
16358 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16360 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16361 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16362 * doc/extend.texi (Tru64 Pragmas): Reflect this.
16364 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
16365 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
16366 * fixinc/fixincl.x: Regenerate.
16367 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16369 Fixes PR c/5059, c/6126, other/9671.
16371 2003-02-24 Roger Sayle <roger@eyesopen.com>
16373 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
16374 from handle_braces in "%{...}".
16376 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
16378 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16379 (prepare_move_operands): Handle TLS operands.
16380 (tls_symbolic_operand): New.
16381 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16382 (legitimize_pic_address): Do nothing for the TLS symbol.
16383 (sh_encode_section_info): Handle TLS case.
16384 (sh_strip_name_encoding): Drop TLS encoding.
16385 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16386 * config/sh/sh.h (SH_TLS_ENCODING): Define.
16387 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16388 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16389 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16390 * config/sh/sh.md: Define TLS UNSPEC constants.
16391 (type): Add tls_load.
16392 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16393 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16394 ("tls_initial_exec"): New insn.
16395 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16396 ("load_gbr"): New insn.
16398 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
16399 * configure: Regenerate.
16401 2003-02-24 Alan Modra <amodra@bigpond.net.au>
16404 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
16405 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
16406 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16407 (enum block_op_methods): Reorder for better store_expr optimization.
16408 * expr.c (store_expr): Test bit 1 of "want_value" for call param
16409 stores, test bit 0 for original want_value meaning. Pass
16410 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
16411 recursive calls, and calls to expand_param.
16412 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
16413 expected, set target to 0 rather than to subtarget. Formatting.
16415 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
16417 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16419 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16421 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16422 new default behavior.
16423 * ggc-common.c: Include sys/resource.h.
16424 (ggc_rlimit_bound): New function.
16425 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16426 defaults to account for rlimits.
16428 2003-02-22 Richard Henderson <rth@redhat.com>
16430 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16432 2003-02-22 Kelley Cook <kelley@dwhoops.info>
16434 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
16435 (ix86_tune_string): Rename from ix86_cpu_string.
16437 2003-02-22 Kelley Cook <kelleycook@comcast.net>
16439 * config/i386/i386.c: Replace "mcpu" with "mtune".
16440 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16441 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16442 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16443 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
16445 2003-02-23 Andreas Schwab <schwab@suse.de>
16447 * config.gcc: Delete references to m68k/t-linux and
16449 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16451 2003-02-22 Jan Hubicka <jh@suse.cz>
16453 * toplev.c (rest_of_compilation): Apply fotgotten hunk
16454 of track scheduling patch.
16456 2003-02-22 Jan Hubicka <jh@suse.cz>
16458 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16459 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16461 2003-02-22 Jan Hubicka <jh@suse.cz>
16463 * c-decl.c (c_expand_body_1): Fix.
16465 2003-02-22 Jan Hubicka <jh@suse.cz>
16467 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16469 * cfgcleanup.c (try_forward_edges): Don't check loop structures
16470 when not optimizing.
16471 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16472 when not expensive.
16473 * toplev.c (rest_of_compilation): Duplicate loop headers only when
16474 optimizing; Delete trivially dead insns early; fix optimize check.
16476 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16477 dependency on cgraph.h
16478 * c-decl.c: Include cgraph.h
16479 (finish_function): Update call of tree_inlinable_function_p.
16480 * c-objc-common.c: Include cgraph.h
16481 * cgraph.h: New file.
16482 * cgraphunit.c: New file.
16483 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16484 (cgraph_nodes, cgraph_n_nodes): Globalize.
16485 (cgraph_finalize_function, cgraph_finalize_compilation_unit
16486 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16487 Move into cgraphunit.c
16488 * tree-inline.c: Include cgraph.h
16489 * tree-inline.c: Include cgraph.h
16491 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
16493 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16494 for copying a register.
16496 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
16499 * toplev.c (process_options): If flag_detailed_statistics is set,
16500 then set time_report as well.
16503 * jump.c (never_reached_warning): Don't fall through BARRRIER
16504 insns. Update comments to reflect what the function really does.
16506 2003-02-21 Roger Sayle <roger@eyesopen.com>
16508 * fold-const.c (omit_one_operand): No longer static.
16509 * tree.h (omit_one_operand): Prototype here.
16510 (div_and_round_double): Keep fold-const.c prototypes together.
16511 * builtins.c (builtin_mathfn_code): Handle binary built-in
16512 funtions, such as "pow" and "atan2".
16513 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16514 Simplify optimizations using "type" the builtin's return type.
16516 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
16518 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16519 Fix functionalization typo.
16521 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16524 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16526 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16527 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16529 * ggc-common.c: Include params.h
16530 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16531 init_ggc_heuristics): New functions.
16532 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16533 init_ggc_heuristics): Prototype.
16534 * toplev.c (print_version): Output GGC heuristics.
16535 (parse_options_and_default_flags): Call init_ggc_heuristics.
16537 2003-02-22 Jan Hubicka <jh@suse.cz>
16539 * i386.c (def_builtin): Special case 64bit builtins.
16540 (MASK_SSE164, MASK_SSE264): New constants.
16541 (builtin_description): Add 64bit builtins.
16542 (ix86_init_mmx_sse_builtins): Likewise.
16543 * i386.h (enum ix86_builtins): Likewise.
16544 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16545 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16546 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16547 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16548 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16549 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16550 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16552 2003-02-22 Jan Hubicka <jh@suse.cz>
16554 * i386.c (builtin_description): Add __builtin_ia32_paddq and
16555 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16556 and __builtin_ia32_psubq128.
16557 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16558 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16559 (mmx_adddi3, mmx_subdi3): New.
16560 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16561 * xmmintrin.h (_mm_movepi64_pi64): New.
16562 (_mm_add_epi64, _mm_sub_epi64): fix.
16563 (_mm_mul_pu16): Rename to...
16564 (_mm_mul_su32): ... this one.
16566 * builtins.c (expand_builtin_expect): Do not predict
16567 flag_guess_branch_prob is not set.
16568 * c-semantics.c (expand_stmt): Likewise.
16569 * predict.c (predict_insn): Likewise.
16570 * stmt.c (expand_continue_loop): Likewise.
16571 * toplev.c (rest_of_compilation): Do not call
16572 note_prediction_to_br_prob and note_prediction_to_br_prob
16573 when not optimizing.
16575 2003-02-21 Jan Hubicka <jh@suse.cz>
16577 * cfgrtl.c (commit_edge_insertions): Call
16578 find_many_sub_basic_block only when some code has been emitted.
16579 (commit_edge_insertions_watch_calls): Bring into sync with
16580 commit_edge_insertions
16582 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
16584 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16586 * sh.md (binary_sf_op): Use extra constant operand instead of
16587 negating constant operand 4.
16588 * sh.c (sh_expand_binop_v2sf): Supply it.
16590 2003-02-21 Zack Weinberg <zack@codesourcery.com>
16592 * cpphash.h (struct lexer_state): Add directive_wants_padding.
16593 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16594 for directives of type INCL.
16595 (glue_header_name, parse_include): Use get_token_no_padding.
16596 * cppmacro.c (replace_args): If directive_wants_padding,
16597 provide padding tokens.
16599 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
16601 * config/h8300/h8300.md (a peephole2): New.
16603 2003-02-21 Jan Hubicka <jh@suse.cz>
16605 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16606 (commit_edge_insertions): Call find_many_sub_basic_blocks
16608 * reg-stack.c (convert_regs): Cleax aux for blocks.
16610 2003-02-21 Jan Hubicka <jh@suse.cz>
16612 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16614 2003-02-21 Glen Nakamura <glen@imodulo.com>
16616 PR optimization/8613
16617 * builtins.c (expand_builtin): Emit postincrements before expanding
16620 2003-02-21 Ben Elliston <bje@redhat.com>
16623 * doc/install.texi (Configuration): Explain using $HOME instead of
16624 the ~ metacharacter when referring to home directories.
16626 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
16628 * configure.in (TARGET_SYSTEM_ROOT): Set default to
16629 ${exec_prefix}/${target_alias}/sys-root. Match explicit
16630 '${exec_prefix}' (in addition to the expansion thereof) as
16632 * configure: Rebuilt.
16634 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16636 * config/h8300/h8300.md (addhi3_incdec): Change the name to
16638 (addsi3_incdec): Change the name to *addsi3_incdec.
16640 2003-02-20 Roger Sayle <roger@eyesopen.com>
16642 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16644 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
16647 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16648 options to be ignored.
16649 (c_common_decode_option): Ignore them when preprocessing.
16651 2003-02-20 Jan Hubicka <jh@suse.cz>
16653 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16655 (lang_independent_options): Add -fsched2-use-superblocks
16656 -fsced2-use-traces.
16657 (rest_of_compilation): Deal with it.
16658 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
16659 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16661 * rtl.h (reg_to_stack): Update prototype.
16662 * reg-stack.c (reg_to_stack): Return when something has changed;
16663 update liveness when executing after superblock scheduling.
16665 * combine.c (simplify_shift_const): Simplify few special cases
16668 2003-02-20 David Edelsohn <edelsohn@gnu.org>
16670 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16671 (add.,subf.,neg.): Change attribute to fast_compare.
16672 All DFA descriptions updated.
16674 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
16676 Change base class access representation.
16677 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16678 TREE_VIA_PRIVATE): Remove.
16679 (BINFO_BASEACCESSES): New binfo elt.
16680 (BINFO_BASEACCESS): New accessor.
16681 (BINFO_ELTS): Increase.
16682 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16683 (access_public_node, access_protected_node,
16684 access_private_node): New global nodes.
16685 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16686 * dbxout.c (dbxout_type): Adjust.
16687 * dwarf2out.c (gen_inheritance_die): Add access parameter.
16688 (gen_member_die): Adjust.
16689 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16690 (output_type): Adjust.
16691 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16693 Change base class access representation. Share virtual base
16695 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16697 * cp/class.c (build_base_path): Likewise.
16698 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16699 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16700 (make_new_vtable): Adjust.
16701 (force_canonical_binfo_r): Delete.
16702 (force_canonical_binfo): Delete.
16703 (mark_primary_virtual_base): Delete.
16704 (dfs_unshared_virtual_bases): Delete.
16705 (mark_primary_bases): Adjust.
16706 (maybe_warn_about_overly_private_class): Adjust.
16707 (dfs_base_derived_from): Delete.
16708 (base_derived_from): Follow the inheritance chain.
16709 (struct find_final_overrider_data): Add vpath member.
16710 (dfs_find_final_overrider): Adjust.
16711 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16712 (find_final_overrider): Adjust.
16713 (update_vtable_entry_for_fn): Adjust.
16714 (modify_all_vtables): Adjust.
16715 (walk_subobject_offsets): Adjust.
16716 (layout_nonempty_base_or_field): Adjust.
16717 (layout_empty_base): Remove last parameter. Adjust.
16718 (build_base_field): Adjust.
16719 (build_base_fields): Adjust.
16720 (propagate_binfo_offsets): Remove last parameter. Adjust.
16721 (dfs_set_offset_for_unshared_vbases): Delete.
16722 (layout_virtual_bases): Adjust.
16723 (finish_struct_1): Adjust.
16724 (init_class_processing): Don't init access nodes.
16725 (dfs_get_primary_binfo): Delete.
16726 (get_primary_binfo): Adjust.
16727 (dump_class_hierarchy_r): Remove most derived arg, add IGO
16729 (dump_class_hierarchy): Adjust.
16730 (finish_vtbls): Adjust.
16731 (get_original_base): Delete.
16732 (build_vtt_inits): Adjust.
16733 (dfs_build_secondary_vptr_vtt_inits): Adjust.
16734 (dfs_ctor_vtable_bases_queue_p): Adjust.
16735 (build_ctor_vtbl_group): Adjust.
16736 (dfs_accumulate_vtbl_inits): Adjust.
16737 (build_vtbl_initializer): Adjust.
16738 (build_vbase_offset_vtbl_entries): Adjust.
16739 (add_vcall_offset_vtbl_entries_1): Adjust.
16740 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16741 (access_*_node): Remove.
16742 (CANONICAL_BINFO): Delete.
16743 (BINFO_UNSHARED_MARKED): Remove.
16744 (BINFO_MARKED): Set LANG_FLAG_0 directly.
16745 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16746 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16747 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16749 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16750 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16751 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16753 (BINFO_DEPENDENT_BASE_P): New.
16754 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16756 (markedp, unmarkedp): Adjust.
16757 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16758 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16759 find_vbase_instance, binfo_for_vbase): Delete.
16760 (copied_binfo, original_binfo): Declare.
16761 (finish_base_specifier): Add virtual_p arg.
16762 (unshare_base_binfos): Delete.
16763 (copy_base_binfos): Declare.
16764 (reverse_path): Delete.
16765 * cp/decl.c (xref_basetypes): Access and virtuality passed
16766 differently. Don't copy direct base binfos here. Call
16768 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16769 (initialize_vtbl_ptrs): Adjust.
16770 (expand_member_init): Adjust.
16771 * cp/parser.c (cp_parser_base_specifier): Adjust.
16772 * cp/pt.c (instantiate_class_template): Adjust.
16773 (get_template_base_recursive): Adjust.
16774 * cp/rtti.c (get_pseudo_ti_init): Adjust.
16775 (get_pseudo_ti_desc): Adjust.
16776 * cp/tree.c (unshare_base_binfos): Rename to ...
16777 (copy_base_binfos): ... here, reimplement.
16778 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16779 (reverse_path): Remove.
16780 * cp/typeck.c (get_delta_difference): Adjust error messages.
16781 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16782 * cp/search.c (lookup_base_r): Adjust.
16783 (dynamic_cast_base_recurse): Adjust.
16784 (canonical_binfo): Remove.
16785 (dfs_canonical_queue): Remove.
16786 (dfs_assert_unmarked_p): Remove.
16787 (assert_canonical_unmarked): Remove.
16788 (shared_marked_p, shared_unmarked_p): Remove.
16789 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16790 (dfs_access_in_type): Adjust.
16791 (access_in_type): Adjust.
16792 (dfs_accessible_queue_p): Adjust.
16793 (dfs_accessible_p): Adjust.
16794 (is_subobject_of_p_1, is_subobject_of_p): Remove.
16795 (struct lookup_field_info): Remove from_dep_base_p field.
16796 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16797 (lookup_field_r): Remove dependent base code.
16798 (lookup_member): Likewise.
16799 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16800 (dfs_unmarked_real_bases_queue_p): Remove.
16801 (dfs_marked_real_bases_queue_p): Remove.
16802 (dfs_skip_vbases): Remove.
16803 (dfs_get_pure_virtuals): Adjust.
16804 (markedp, unmarkedp): Adjust.
16805 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16806 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16807 (dfs_unmark): Adjust.
16808 (dfs_get_vbase_types):Remove.
16809 (dfs_build_inheritance_graph_order): Remove.
16810 (get_vbase_types): Remove
16811 (dfs_find_vbase_instance): Remove.
16812 (find_vbase_instance): Remove.
16813 (dfs_debug_unmarkedp): Adjust.
16814 (dependent_base_p): Remove.
16815 (dfs_push_type_decls): Adjust.
16816 (dfs_push_decls): Adjust.
16817 (dfs_no_overlap_yet): Adjust.
16818 (copied_binfo): New function.
16819 (original_binfo): New function.
16820 (binfo_for_vbase): Remove.
16822 Change base class access representation.
16823 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16824 (add_interface_do): Likewise.
16826 2003-02-20 David Edelsohn <edelsohn@gnu.org>
16828 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16829 * config/rs6000/power4.md (power4-store,power4-vecstore): New
16831 (power4-fpstore): Compact.
16833 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16835 * config/h8300/h8300.md (*iorsi3_w): New.
16837 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
16839 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16840 * rtl.c (reg_note_name): Likewise.
16841 * rtl.h (enum reg_note): Likewise.
16842 * doc/invoke.texi: Likewise.
16843 * doc/rtl.texi: Likewise.
16845 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
16847 * bb-reorder.c (find_traces_1_round): Fix comment typo.
16849 2003-02-19 Roger Sayle <roger@eyesopen.com>
16851 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16852 addition in the presence of signaling NaNs.
16854 2003-02-19 Krister Walfridsson <cato@df.lth.se>
16856 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16858 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16860 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16861 ORing with 0xffff??00 with the highest bit of the ?? part set.
16862 (compute_logical_op_length): Update.
16863 (compute_logical_op_cc): Likewise.
16865 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
16867 * bb-reorder.c (find_traces_1_round): Fixed condition for small
16868 destination block with multiple predecessors.
16869 (connect_traces): Check whether the block is a start of trace.
16871 2003-02-19 Jan Hubicka <jh@suse.cz>
16873 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16874 * function.c (assign_params): Likewise.
16875 * arm-protos.h (arm_init_cumulative_args): Update prototype.
16876 * arm.c (arm_init_cumulative_args): Update function.
16877 * arm.h (INIT_CUMULATIVE_ARGS): Update.
16878 * avr-protos.h (init_cumulative_args): Update prototype.
16879 * avr.c (init_cumulative_args): Update function.
16880 * avr.h (INIT_CUMULATIVE_ARGS): Update.
16881 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16882 * d30v.c (d30v_init_cumulative_args): Update function.
16883 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16884 * frv-protos.h (frv_init_cumulative_args): Update prototype.
16885 * frv.c (frv_init_cumulative_args): Update function.
16886 * frv.h (INIT_CUMULATIVE_ARGS): Update.
16887 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16888 * pa.h (INIT_CUMULATIVE_ARGS): Update.
16889 * sparc-protos.h (init_cumulative_args): Update prototype.
16890 * sparc.c (init_cumulative_args): Update function.
16891 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16892 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16894 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16896 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16897 (*ashiftsi_sextqi_7): Likewise.
16899 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16901 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16904 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16905 for C++ on IRIX 6.5.1[89].
16906 * fixinc/tests/base/internal/sgimacros.h: New file.
16908 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16909 * fixinc/tests/base/internal/wchar_core.h: New file.
16911 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16912 socklen_t definition.
16913 * fixinc/fixincl.x: Regenerate.
16914 * fixinc/tests/base/sys/socket.h: New file.
16915 Fixes PR libgcj/9652.
16917 2003-02-19 Jan Hubicka <jh@suse.cz>
16919 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16921 2003-02-19 David Edelsohn <edelsohn@gnu.org>
16923 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16924 align_jumps_max_skip and align_loops_max_skip.
16926 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
16928 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16929 test size if named section.
16931 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
16933 * expr.c (expand_expr): Use gen_int_mode for the argument
16936 2003-02-19 Jan Hubicka <jh@suse.cz>
16938 * i386.md (cosxf2): Fix conditional.
16940 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16942 * config/h8300/h8300.md (extendqisi2): Change to an expander.
16943 (*extendqisi2_h8300): New.
16944 (*extendqisi2_h8300hs): Likewise.
16946 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16948 * config/h8300/h8300-protos.h: Update the prototype for
16949 split_adds_subs. Remove the prototypes for
16950 const_int_le_2_operand and const_int_le_6_operand.
16951 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16952 (const_int_le_2_operand): Remove.
16953 (const_int_le_6_operand): Likewise.
16954 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16955 for const_int_le_2_operand and const_int_le_6_operand.
16956 * config/h8300/h8300.md: Update all uses of split_adds_subs.
16957 (a peephole2): New.
16959 2003-02-18 Jan Hubicka <jh@suse.cz>
16961 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16962 (cgraph_expand_function): Rewrite.
16964 2003-02-18 Matt Austern <austern@apple.com>
16966 * toplev.c, langhooks.c, langhooks-def.h: Move
16967 write_global_declarations from toplev.c to langhooks.c.
16969 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16971 * config/h8300/h8300.c (general_operand_src): Always check
16973 (general_operand_dst): Likewise.
16975 2003-02-18 Roger Sayle <roger@eyesopen.com>
16977 * convert.c (convert_to_real): Also optimize (float)log(x) into
16978 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16980 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
16982 * config/sh/sh.c (unspec_caller_rtx_p): New.
16983 (sh_cannot_copy_insn_p): New.
16984 (TARGET_CANNOT_COPY_INSN_P): New.
16986 2003-02-18 Richard Henderson <rth@redhat.com>
16988 * c-common.c (handle_used_attribute): Accept static data too.
16990 2003-02-18 Nick Clifton <nickc@redhat.com>
16991 Aldy Hernandez <aldyh@redhat.com>
16993 * testsuite/gcc.dg/20030218-1.c: New.
16995 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
16997 * target-def.h (TARGET_INITIALIZER): Add
16998 TARGET_VECTOR_TYPES_COMPATIBLE.
16999 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
17001 * target.h (struct gcc_target): Add field vector_types_compatible.
17003 * c-typeck.c (comptypes): Take into account
17004 TARGET_VECTOR_TYPES_COMPATIBLE.
17005 (convert_for_assignment): Same.
17007 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
17008 (rs6000_spe_vector_types_compatible): New.
17009 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
17011 2003-02-19 Andreas Schwab <schwab@suse.de>
17013 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
17014 * toplev.c: Include langhooks-def.h.
17016 2003-02-18 Chris Demetriou <cgd@broadcom.com>
17018 * config/mips/mips.h (enum processor_type): Sort entries
17020 * config/mips/mips.md (define_attr cpu): Sync with processor_type
17021 enum values, including adding entries that were missing.
17023 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
17025 * sh.c (calc_live_regs): Also check GET_CODE when checking if
17026 initial value for PR_REG is still the PR_REG register.
17028 2003-02-18 Jim Wilson <wilson@redhat.com>
17030 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
17031 instruction in output template.
17032 (bsp_value): Change output template from string to C code, add %,
17033 before actual instruction.
17034 (flushrs): Mark as not predicable.
17036 2003-02-18 Krister Walfridsson <cato@df.lth.se>
17038 * inclhack.def (netbsd_bogus_semicolon): New fix.
17039 * fixincl.x: Rebuilt.
17040 * tests/base/ctype.h: Update.
17042 2003-02-18 Roger Sayle <roger@eyesopen.com>
17044 * fold-const.c (negate_expr_p): New function to determine whether
17045 an expression can be negated cheaply.
17046 (fold) [MINUS_EXPR]: Use it to determine whether to transform
17047 -A - B into -B - A for floating point types.
17049 2003-02-18 Roger Sayle <roger@eyesopen.com>
17051 * sbitmap.c (sbitmap_resize): New function.
17052 * sbitmap.h (sbitmap_resize): Prototype here.
17053 * recog.c (split_all_insns): Use sbitmap_resize.
17055 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
17057 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
17059 (extendqisi2): Likewise.
17060 (*extendhisi2_h8300): Likewise.
17062 2003-02-18 Matt Austern <austern@apple.com>
17064 * langhooks.h, langhooks-def.h: introduce new langhook,
17065 final_write_globals, with write_global_declarations as default.
17066 * toplev.c: Move invocation of wrapup_global_declarations from
17067 compile_file to new function, write_global_declarations. Change
17068 compile_file to use final_write_globals hook. Change
17069 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
17072 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17074 * pa.md: Correct and enhance comment.
17076 2003-02-18 Geoffrey Keating <geoffk@apple.com>
17078 * gcc.c (validate_switches): Don't scan past closing '}'.
17080 2003-02-18 Ben Elliston <bje@redhat.com>
17083 * doc/extend.texi (Function Attributes): Document the effect of
17084 the C++ "this" parameter on the counting of arguments for the
17085 "format" and "format_arg" attributes.
17087 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
17089 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
17093 2003-02-17 Jan Hubicka <jh@suse.cz>
17095 * recog.c (split_all_insns): Fix memory overflow.
17097 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
17099 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17101 (*cmphi_h8300): Likewise.
17102 (*cmphi_h8300hs): Likewise.
17104 (7 peephole2): Likewise.
17106 2003-02-16 Jan Hubicka <jh@suse.cz>
17108 * c-typeck.c (build_c_cast): Fold constant variables into
17111 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17113 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17114 (Binaries): Ditto for Sinix/Reliant Unix.
17116 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
17118 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17119 not overlap the final result register.
17121 2003-02-16 Arend Bayer <arend.bayer@web.de>
17122 Richard Henderson <rth@redhat.com>
17125 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17126 rearrange mult arguments for less recursion.
17127 (extract_muldiv): New. Prevent runaway recursion.
17129 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
17131 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17134 2003-02-15 Roger Sayle <roger@eyesopen.com>
17136 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17137 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17138 (ext_80387_constants_table): Global table of 80387 special constants
17139 guarded by ext_80387_constants_init flag when not initialized.
17140 (init_ext_80387_constants): New function to initialize this table.
17141 (standard_80387_constant_p): Extend to recognize extra 80387
17142 constants, in XFmode, on processors where this is a win.
17143 (standard_80387_constant_opcode): New function to return the
17144 opcode associated with standard_80387_constant_p.
17145 (standard_80387_constant_rtx): New function to return the XFmode
17146 CONST_DOUBLE associated with standard_80387_constant_p.
17147 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17149 * config/i386/i386-protos.h (standard_80387_constant_opcode):
17151 (standard_80387_constant_rtx): Likewise.
17153 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17154 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17155 *movtf_integer): Simplify using new standard_80387_constant_opcode.
17157 2003-02-15 Geoffrey Keating <geoffk@apple.com>
17159 * doc/invoke.texi (Optimize Options): Correct @option syntax.
17161 2003-02-15 Richard Henderson <rth@redhat.com>
17163 * Makefile.in (cfglayout.o): Depend on TARGET_H.
17164 * cfglayout.c: Include target.h.
17165 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17166 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17167 * target.h (struct gcc_target): Add cannot_copy_insn_p.
17169 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17170 (TARGET_CANNOT_COPY_INSN_P): New.
17171 (override_options): Revert 2003-02-08 hack.
17173 2003-02-15 Richard Henderson <rth@redhat.com>
17175 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17176 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17178 2003-02-15 David Edelsohn <edelsohn@gnu.org>
17180 * config/rs6000/rs6000.h (processor_type): Add PPC440.
17181 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17182 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17183 TARGET_SCHED_VARIABLE_ISSUE): Define.
17184 (rs6000_use_dfa_pipeline_interface): New function.
17185 (rs6000_multipass_dfa_lookahead): New Function.
17186 (rs6000_variable_issue): New function.
17187 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17188 (rs6000_issue_rate): Add PPC440.
17189 * config/rs6000/rs6000.md (unspec list): Correct typo.
17190 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17191 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17192 cmp, delayed_cr, mfcr, mtcr.
17193 (automata_option): Set "ndfa".
17194 (extendMMNN2): Update attributes.
17195 (movcc_internal1): Discourage move to non-cr0. Update
17197 (movMM_update): Update attributes.
17198 (cmpMM_internal): Update attributes.
17199 (sCC CR materialization): Update attributes.
17200 (branch patterns): Do not discourage non-cr0.
17201 (cr logical patterns): Prefer destructive register allocation.
17203 (movesi_from_cr): Update attribute.
17204 (mtcrf_operation): Update attribute.
17205 (mtcrfsi): Update attribute.
17206 * config/rs6000/40x.md: New file.
17207 * config/rs6000/603.md: New file.
17208 * config/rs6000/6xx.md: New file.
17209 * config/rs6000/7450.md: New file.
17210 * config/rs6000/7xx.md: New file.
17211 * config/rs6000/mpc.md: New file.
17212 * config/rs6000/power4.md: New file.
17213 * config/rs6000/rios1.md: New file.
17214 * config/rs6000/rios2.md: New file.
17215 * config/rs6000/rs64.md: New file.
17216 [Some DFA descriptions based on work by Michael Hayes]
17218 2003-02-15 Richard Henderson <rth@redhat.com>
17220 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17221 successors with multiple predecessors.
17222 (connect_traces): Try harder to copy traces of length 1.
17224 * function.h (struct function): Add computed_goto_common_label,
17225 computed_goto_common_reg.
17226 * function.c (free_after_compilation): Zap them.
17227 * stmt.c (expand_computed_goto): Use them to produce one
17228 indirect branch per function.
17230 2003-02-15 Richard Henderson <rth@redhat.com>
17232 * cfgcleanup.c: Include params.h.
17233 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
17234 too many outgoing edges from a block.
17235 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17236 * params.def (max-crossjump-edges): New.
17237 * doc/invoke.texi: Document it.
17239 2003-02-15 Richard Henderson <rth@redhat.com>
17241 * recog.c (split_all_insns): Include new blocks in life update;
17242 do a global life update.
17244 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
17246 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
17248 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
17251 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17253 PR optimization/7702
17254 * reload1.c (reload_cse_simplify_set): Honor
17255 CANNOT_CHANGE_MODE_CLASS.
17257 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
17259 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
17261 * config/mn10300/mn10300-protos.h: Declare it.
17262 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
17263 attribute cc of instructions that may use clr.
17265 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17267 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
17268 (x - (x & y)) is found.
17270 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17272 * configure.in: Fix typo.
17273 * configure: Regenerate.
17275 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17277 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
17279 2003-02-13 Adam Nemet <anemet@lnxw.com>
17282 * combine.c: Fix spelling in comment.
17283 (cached_nonzero_bits): New function.
17284 (cached_num_sign_bit_copies): New function.
17285 (nonzero_bits_with_known): New macro.
17286 (num_sign_bit_copies_with_known): New macro.
17287 (nonzero_bits1): Rename from nonzero_bits. Add three new
17288 arguments. Change calls from nonzero_bits to
17289 nonzero_bits_with_known.
17290 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
17291 three new arguments. Change calls from num_sign_bit_copies to
17292 num_sign_bit_copies_with_known.
17293 (nonzero_bits): New macro.
17294 (num_sign_bit_copies): New macro.
17295 (update_table_tick): Don't traverse identical subexpression more
17297 (get_last_value_validate): Likewise.
17299 2003-02-13 Zack Weinberg <zack@codesourcery.com>
17301 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17302 * function.h (struct emit_status): Length of regno_pointer_align
17303 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17304 not regno_pointer_align_length (i.e. length actually used, not
17305 length as allocated)
17307 * config/i386/i386.c (struct stack_local_entry): New.
17308 (struct machine_function): Replace huge array with alist.
17309 (assign_386_stack_local): Change to match.
17311 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
17313 * inclhack.def (hpux_long_double): Tighten select and add bypass
17315 * fixincl.x: Rebuilt.
17317 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
17319 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17320 edge and block ends with a jump insn it must be simple jump.
17322 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
17324 * Makefile.in (PREPROCESSOR_DEFINES): Add
17325 @TARGET_SYSTEM_ROOT_DEFINE@.
17326 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17327 is specified or if building a cross compiler.
17328 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17329 if the sysroot is under $exec_prefix.
17330 * configure: Regenerated.
17331 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17333 (struct default_include): Add add_sysroot field.
17334 (cpp_SYSROOT): Declare.
17335 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17337 (cpp_SYSROOT): New variable.
17338 * cppinit.c (cpp_create_reader): Initialize
17339 CPP_OPTION (pfile, sysroot).
17340 (init_standard_includes): Handle add_sysroot. Do not
17341 add unrelocated copies of relocated directories.
17342 (COMMAND_LINE_OPTIONS): Add -isysroot.
17343 (cpp_handle_option): Handle -isysroot.
17344 * cpplib.h (struct cpp_options): Add sysroot member.
17345 * gcc.c (The Specs Language): Update description of %I.
17346 (target_system_root_changed): New variable.
17347 (process_command): Conditionalize make_relative_prefix call
17348 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
17349 target_system_root_changed.
17350 (do_spec_1): Add -isysroot to %I.
17351 * doc/invoke.texi (Spec Files): Update description of %I.
17352 * doc/install.texi (--with-sysroot): Update comment about
17355 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
17357 * config/h8300/h8300.md (a peephole2): New.
17359 2003-02-13 Robert Lipe <robertlipe@usa.net>
17360 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17362 * doc/install.texi (Specific): Update three SCO-related URLs.
17364 2003-02-13 Andreas Schwab <schwab@suse.de>
17366 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17367 Parenthesize properly.
17368 (NPREDECESORS): Parenthesize properly.
17370 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
17372 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17374 2003-02-12 Roger Sayle <roger@eyesopen.com>
17376 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17377 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17379 * reg-stack.c (subst_stack_regs_pat): Add support for binary
17380 UNSPEC instructions (e.g. "fpatan").
17382 2003-02-12 Mike Stump <mrs@apple.com>
17384 * varray.c (element_size): Remove.
17385 (uses_ggc): Remove.
17387 (varray_init): Use new interface.
17388 (varray_grow): Use new interface.
17389 (varray_clear): Use new interface.
17391 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17393 * config/rs6000/spe.h: Add casts to the arguments of the following
17394 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17395 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17396 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17397 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17398 __ev_get_u16, __ev_get_s16.
17400 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17402 * config/h8300/h8300.md (a peephole2): New.
17404 2003-02-12 Jan Hubicka <jh@suse.cz>
17406 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17407 (OBJS): Add callgraph.o
17408 (callgraph.o): New.
17409 * c-decl.c (expand_body_1): Break out from ...
17410 (expand_body): This one; change calling convention
17411 (finish_function): Move some of expand_body logic here.
17412 (c_expand_deferred_function): Update call of expand_body
17413 (c_expand_stmt): Use c_expand_body_1.
17414 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17415 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17416 * c-tree.h (c_expand_body): Declare.
17417 * callgraph.c: New file.
17418 * flags.h (flag_unit_at_a_time): Declare.
17419 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17420 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17421 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17422 * langhooks.h (struct lang_hooks_for_callgraph): New.
17423 (struct lang_hooks): Add callgraph field.
17424 * toplev.c (flag_unit_at_a_time): New.
17425 (lang_independent_options): Add flag_unit_at_a_time.
17426 (process_options): Disable unit-at-a-time mode for frontends not
17427 supporting callgraph.
17428 * tree-inline.c (typedef struct inline_data): Add "decl"
17429 (expand_call_inline): Update callgraph.
17430 (optimize_inline_calls): Set id.decl.
17431 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17432 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17433 cgraph_calls_p): Declare.
17434 * invoke.texi (-funit-at-a-time): Document
17436 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17438 * config/rs6000/spe.h: Fix misc formatting.
17439 (__ev_create_ufix32_fs): Cast ev argument.
17440 (__ev_create_sfix32_fs): Same.
17441 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17442 (__ev_get_ufix32_fs_internal): Same.
17444 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
17446 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17447 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17449 2003-02-12 Zack Weinberg <zack@codesourcery.com>
17451 * cpplib.c (do_include_common): Move warnings for
17452 #include_next and #import out to callers. Use early-return
17453 instead of nested ifs. Don't do check_eol here.
17454 (parse_include): Do check_eol here with the rest of the
17456 (do_include_next, do_import): Now handle warnings.
17458 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17460 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17462 2003-02-12 Jan Hubicka <jh@suse.cz>
17464 * predict.c (estimate_probability): Fix roundoff error.
17466 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17468 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17469 (two peephole2): New.
17471 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17473 * config/h8300/h8300.md (several peephole2): Replace
17474 find_regno_note with peep2_reg_dead_p.
17476 2003-02-11 Richard Henderson <rth@redhat.com>
17478 * gcse.c (lookup_set): Remove unused argument PAT. Update
17481 2003-02-11 Geoffrey Keating <geoffk@apple.com>
17483 * diagnostic.c (real_abort): New.
17484 (diagnostic_report_diagnostic): Call real_abort on error.
17485 * diagnostic.h (diagnostic_abort_on_error): New.
17486 (struct diagnostic_context): Add abort_on_error field.
17487 * toplev.c (setup_core_dumping): New.
17488 (decode_d_option): Handle 'H' case.
17489 * doc/invoke.texi (Debugging Options): Document -dH.
17491 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
17493 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17494 which refers to obsolete directories.
17496 2003-02-11 Richard Henderson <rth@redhat.com>
17498 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17500 2002-10-21 Jan Hubicka <jh@suse.cz>
17502 * i386.c (contains_128bit_aligned_vector_p): New function.
17503 (ix86_function_arg_boundary): Properly align vector modes.
17505 2003-02-11 Bob Wilson <bob.wilson@acm.org>
17507 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17508 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17511 2003-02-11 Roger Sayle <roger@eyesopen.com>
17513 * builtins.c: Fix failure caused by commiting wrong patch.
17515 2003-02-11 Dale Johannesen <dalej@apple.com>
17516 * ra-build.c (compare_and_free_webs): Relax checking.
17517 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
17518 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
17520 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17522 PR optimization/9651
17523 * rtlanal.c (may_trap_p): Handle FIX.
17525 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
17527 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17528 * doc/invoke.texi: Extra alias.
17530 2003-02-11 Geoffrey Keating <geoffk@apple.com>
17532 * config/rs6000/host-darwin.c: Fix comment.
17534 2003-02-11 David Edelsohn <edelsohn@gnu.org>
17536 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17537 predicate for mod result.
17539 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17541 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17542 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17543 * fixincl.x: Rebuilt.
17544 * tests/base/stdlib.h: Update.
17545 * tests/base/ctype.h: New file.
17547 2003-02-11 Jan Hubicka <jh@suse.cz>
17549 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17551 2003-02-11 Richard Henderson <rth@redhat.com>
17553 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17554 appropriated as globals.
17555 (ix86_expand_clrstr): Similarly.
17556 * config/i386/i386.md (cmpstrsi): Similarly.
17558 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17560 * config/h8300/h8300.md (a peephole2): Add a case of 255.
17562 2003-02-11 Roger Sayle <roger@eyesopen.com>
17564 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17565 (pow_optab, atan2_optab): Define corresponding macros.
17566 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17567 * genopinit.c (optabs): Implement pow_optab and atan2_optab
17568 using pow?f3 and atan2?f3 patterns.
17569 * builtins.c (expand_errno_check): New function to update errno
17570 if necessary, split out from expand_builtin_mathfn.
17571 (expand_builtin_mathfn): Use expand_errno_check.
17572 (expand_builtin_mathfn_2): New function to handle expanding binary
17573 math functions, reusing the code in expand_errno_check.
17574 (expand_builtin): Handle the pow and atan2 math built-ins,
17575 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17576 expand_builtin_mathfn_2.
17578 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17580 2003-02-11 Jan Hubicka <jh@suse.cz>
17582 * combine.c (combine_simplify_rtx): Fix folding of
17583 nested float_truncates.
17585 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17587 * config/h8300/h8300.md (a peephole2): Fix a typo.
17589 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
17591 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17594 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17596 * config/h8300/h8300-protos.h: Add a prototype for
17598 * config/h8300/h8300.c (gtuleu_operator): New.
17599 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17600 * config/h8300/h8300.md (a peephole2): New.
17602 2003-02-11 Jan Hubicka <jh@suse.cz>
17604 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17606 2003-02-11 Jan Hubicka <jh@suse.cz>
17608 * predict.c (choose_function_section): Choose sections correctly.
17610 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17612 * reload1.c (first_label_num): New.
17613 (reload): Index offsets_known_at and offsets_at using difference of
17614 label number and first label number. Don't use offset pointers.
17615 (set_label_offsets, set_initial_label_offsets): Likewise.
17617 2003-02-10 Roger Sayle <roger@eyesopen.com>
17619 * mips-tfile.c (init_file): Add missing initializers in the
17620 "#ifdef __alpha" case.
17621 (file_offset, max_file_offset): Declare as unsigned long.
17622 (write_varray): Cast to "unsigned long" in comparisons against
17623 either file_offset or max_file_offset.
17624 (write_object): Likewise.
17625 (read_seek): Likewise.
17626 (copy_object): Likewise. Declare "ifd" as int to match its use
17627 in add_ext_symbol, and avoid signed/unsigned conditional warning.
17629 2003-02-10 Nick Clifton <nickc@redhat.com>
17630 Aldy Hernandez <aldyh@redhat.com>
17632 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17633 override options which have been specified on the command line.
17635 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17637 * config/h8300/h8300.md (abssf2): New.
17638 (*abssf2_h8300): Likewise.
17639 (*abssf2_h8300hs): Likewise.
17641 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
17643 * tree.c (build_tree_list): Fix parameter names in comment.
17645 2003-02-10 Janis Johnson <janis187@us.ibm.com>
17647 * config/rs6000/ppc64-fp.c: New file.
17648 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17650 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
17652 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
17653 * bb-reorder.c (make_reorder_chain): Deleted.
17654 (make_reorder_chain_1): Deleted.
17655 (find_traces): New function.
17656 (rotate_loop): New function.
17657 (mark_bb_visited): New function.
17658 (find_traces_1_round): New function.
17659 (copy_bb): New function.
17660 (bb_to_key): New function.
17661 (better_edge_p): New function.
17662 (connect_traces): New function.
17663 (copy_bb_p): New function.
17664 (get_uncond_jump_length): New function.
17665 (reorder_basic_blocks): Use new functions (Software Trace Cache).
17666 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17669 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
17671 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17673 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17675 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
17676 (DECL_LIVE_RANGE_RTL): Remove.
17678 2003-02-10 Nick Clifton <nickc@redhat.com>
17680 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17681 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17682 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17683 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17684 config/arm/freebsd.h, config/arm/linux-elf.h,
17685 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17686 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17687 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17688 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17689 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17690 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17691 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17692 and reformat as appropriate.
17694 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17696 * config/h8300/clzsi2.c: Remove.
17697 * config/h8300/ctzsi2.c: Likewise.
17698 * config/h8300/paritysi2.c: Likewise.
17699 * config/h8300/popcountsi2.c: Likewise.
17700 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17701 ctzsi2, paritysi2, and popcountsi2.
17703 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
17704 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
17707 * c-decl.c (duplicate_decls): Discard the initializer of the
17708 new decl when the types are conflicting.
17710 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
17712 * Makefile.in (sreal.o): Added.
17713 (predict.o): Depends on sreal.h instead of real.h.
17714 * sreal.c: New file.
17715 * sreal.h: New file.
17716 * predict.c: Use sreal.c instead of real.c.
17718 2003-02-10 Nick Clifton <nickc@redhat.com>
17720 * Contributed support for the Cirrus EP9312 "Maverick"
17721 floating point co-processor. Written by Aldy Hernandez
17722 <aldyh@redhat.com>.
17723 (config/arm/arm.c): Add Cirrus support.
17724 (config/arm/arm.h): Likewise.
17725 (config/arm/aout.h): Likewise.
17726 (config/arm/arm.md): Likewise.
17727 (config/arm/arm-protos.h): Likewise.
17728 (config.gcc): Likewise.
17729 (doc/invoke.texi): Describe new -mcpu value and new
17730 -mcirrus-fix-invalid-insns switch,
17731 (cirrus.md): New file.
17733 2003-02-10 Jan Hubicka <jh@suse.cz>
17735 * combine.c (combine_simplify_rtx): Simplify using
17736 (float_truncate (float x)) is (float x)
17737 (float_extend (float_extend x)) is (float_extend x).
17739 2003-02-10 Alan Modra <amodra@bigpond.net.au>
17741 * calls.c (try_to_integrate): Tidy stack_usage_map access.
17742 (emit_library_call_value_1): Likewise. Formatting.
17743 (store_one_arg): Likewise.
17745 2003-02-09 Nick Clifton <nickc@redhat.com>
17746 Aldy Hernandez <aldyh@redhat.com>
17748 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17749 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17750 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17751 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17752 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17753 docs. Add range test for immediate value.
17755 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
17757 Rename spe_evxor to xorv2si3.
17761 2003-02-10 Glen Nakamura <glen@imodulo.com>
17763 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17766 2003-02-10 Jan Hubicka <jh@suse.cz>
17768 * i386.c (vector_move_operand): New predicate.
17769 (ix86_expand_vector_move): Be happy about 0.
17770 * i386.h (PREDICATE_CODES): Add sse-move_operand.
17771 * i386.md (mov*_internal): Add 'C' alternative.
17773 2003-02-09 Jan Hubicka <jh@suse.cz>
17775 * i386.md (floathi*): Deal with SSE.
17777 2003-02-09 Jan Hubicka <jh@suse.cz>
17779 * simplify-rtx.c (simplify_unary_operation,
17780 simplify_binary_operation): Deal with vector modes
17781 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
17783 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
17785 * toplev.c (rest_of_compilation): Recompute register usage after
17788 2003-02-09 Richard Henderson <rth@redhat.com>
17790 * libgcc-std.ver (__clztf2): New.
17791 (__ctztf2, __popcounttf2, __paritytf2): New.
17792 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17793 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17794 adjust code to match the different type sizes.
17795 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17796 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17798 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17799 TImode; select word_mode and twice that.
17800 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17801 select the modes from float, double, and long double.
17802 (init_optabs): Remove duplicate initializations.
17804 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17806 * doc/install.texi: Squeeze and streamline section on
17807 testing and regression checking.
17809 2003-02-09 Jan Hubicka <jh@suse.cz>
17811 * i386.md (ahi?v*3): Set third operand type to TImode.
17812 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17814 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17817 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17818 Change code so they are arithmetic expressions now.
17819 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17820 simplify_ternary_operation): Deal with VEC_* expressions.
17822 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
17824 2003-02-08 Jan Hubicka <jh@suse.cz>
17826 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
17827 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
17828 possibly got duplicated.
17830 2003-02-08 Richard Henderson <rth@redhat.com>
17832 * config/alpha/alpha.c (override_options): Turn off explicit
17833 relocs until post-peep2 code duplication resolved.
17835 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17837 * optabs.c (expand_unop): Widen clz properly when clz is done
17840 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17842 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17843 * config/h8300/crti.asm: Likewise.
17844 * config/h8300/crtn.asm: Likewise.
17845 * config/h8300/ctzsi2.c: Likewise.
17846 * config/h8300/fixunssfsi.c: Likewise.
17847 * config/h8300/h8300-protos.h: Likewise.
17848 * config/h8300/h8300.c: Likewise.
17849 * config/h8300/h8300.h: Likewise.
17850 * config/h8300/h8300.md: Likewise.
17851 * config/h8300/paritysi2.c: Likewise.
17852 * config/h8300/popcountsi2.c: Likewise.
17853 * config/h8300/rtems.h: Likewise.
17855 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17857 * doc/invoke.texi: Documentation for my previous commit.
17858 * doc/passes.texi: Ditto.
17860 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17862 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17863 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17865 (DLTHE_FLAG_UPDATE_FREQ): New.
17866 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17867 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17868 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17869 fix_bb_placement, fix_bb_placements, place_new_loop,
17870 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17871 New static functions.
17872 (fix_loop_placement, can_duplicate_loop_p,
17873 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17876 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17877 unswitch_loops): Declare.
17878 * loop-init.c: New file.
17879 * loop-unswitch.c: New file.
17880 * Makefile.in (loop-init.o, loop-unswitch.o): New.
17881 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17882 * toplev.c (DFI_loop2): New dump.
17883 (flag_unswitch_loops): New.
17884 (lang_independent_options): Add it.
17885 (rest_of_compilation): Call new loop optimizer.
17886 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17888 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17890 * config/h8300/clzsi2.c: New.
17891 * config/h8300/ctzsi2.c: Likewise.
17892 * config/h8300/paritysi2.c: Likewise.
17893 * config/h8300/popcountsi2.c: Likewise.
17894 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17896 2003-02-07 David Edelsohn <edelsohn@gnu.org>
17898 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17899 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
17900 (ctzsi2): New pattern.
17901 (ffssi2): Use clz instead of unspec.
17902 (clzdi2): Rename from cntlzd2.
17903 (ctzdi2): New pattern.
17904 (ffsdi2): Use clz instead of unspec.
17906 2003-02-07 Loren James Rittle <ljrittle@acm.org>
17908 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17909 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17910 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17911 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17913 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17915 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17917 2003-02-07 Richard Henderson <rth@redhat.com>
17920 * gcse.c (local_cprop_find_used_regs): New.
17921 (local_cprop_pass): Use it.
17923 2003-02-07 Fred Fish <fnf@intrinsity.com>
17925 * mips-tfile.c (parse_def): Parenthesize assignments to fix
17928 2003-02-07 Segher Boessenkool <segher@koffie.nl>
17930 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
17932 2003-02-07 Roger Sayle <roger@eyesopen.com>
17934 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17935 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17936 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17937 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17938 builtin functions (and their __builtin_* variants).
17939 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17940 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17941 when not optimizing.
17943 * doc/extend.texi: Document new pow and atan2 builtins, and
17944 their float and long double variants. Realphabetize builtins.
17946 2003-02-07 Jan Hubicka <jh@suse.cz>
17948 * i386.md (sse2_nandv2di3): Fix.
17950 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
17952 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17953 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17955 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17956 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17958 2003-02-07 Jan Hubicka <jh@suse.cz>
17960 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17962 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
17964 * cfg.c (dump_flow_info): Add back accidently deleted line.
17966 2003-02-07 Andrey Petrov <petrov@netbsd.org>
17968 * optabs.c (expand_float): Search wider integer modes first.
17970 2003-02-07 Bob Wilson <bob.wilson@acm.org>
17972 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17973 based on preprocessor flag.
17975 2003-02-07 Roger Sayle <roger@eyesopen.com>
17976 Richard Henderson <rth@redhat.com>
17978 * gcse.c (implicit_sets): New.
17979 (compute_hash_table_work): Include them in hash table.
17980 (find_implicit_sets, fis_get_condition): New.
17981 (one_cprop_pass): Allocate and free implicit_sets; call
17982 find_implicit_sets before building hash table.
17984 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
17986 * config/t-netbsd (USER_H): Revert previous change.
17988 2003-02-07 Gabor Greif <ggreif@lucent.com>
17990 * doc/c-tree.texi (Namespaces): Fix typo.
17992 2003-02-07 Jan Hubicka <jh@suse.cz>
17994 * regrename.c (do_replace, find_oldest_value_reg,
17995 copyprop_hardreg_forward_1): Update register attributes.
17997 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
17999 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
18000 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
18001 variables starting with underscore.
18002 (struct unit_usage): New structure.
18003 (unit_usages, cycle_alt_unit_usages): New global variables.
18004 (check_unit_distribution_in_reserv): Remove it.
18005 (store_alt_unit_usage): New function.
18006 (check_regexp_units_distribution): Rewrite it.
18008 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18010 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
18011 target_cpu_default.
18012 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
18013 if not MASK_NO_SPACE_REGS.
18014 (output_call): Adjust return pointer, don't load new space register
18015 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
18016 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
18017 TARGET_NO_SPACE_REGS is true.
18018 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
18020 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
18021 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
18022 true. Use bve when TARGET_64BIT is true.
18024 2003-02-06 Richard Henderson <rth@redhat.com>
18026 * combine.c (nonzero_bits): Fix double break.
18028 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
18029 Richard Henderson <rth@redhat.com>
18032 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
18033 from functions that return a float to functions that don't.
18035 2003-02-06 Jan Hubicka <jh@suse.cz>
18037 * i386.c (x86_inter_unit_moves): New variable.
18038 (ix86_secondary_memory_needed): Fix 64bit case, honor
18039 TARGET_INTER_UNIT_MOVES
18040 * i386.h (x86_inter_unit_moves): Declare.
18041 (TARGET_INTER_UNIT_MOVES): New macro.
18042 * i386.md (movsi_1): Cleanup constraints; disable
18043 when not doing inter-unit moves.
18044 (movsi_1_nointernunit): New.
18045 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
18046 (movdi_1_rex64_nointerunit): New.
18047 (mivsf_1): disable when not doing inter-unit moves.
18048 (movsf_1_nointerunit): New.
18050 * basic-block.h (inside_basic_block_p): Declare.
18051 * cfgbuild.c (inside_basic_block_p): Make global.
18052 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
18053 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
18055 (fix_basic_block_boundaries, add_missing_bbs): New.
18056 (rank): Use profile.
18057 (scheudle_ebbs): Rely on CFG; update coments.
18059 2003-02-05 Geoffrey Keating <geoffk@apple.com>
18061 * Makefile.in (host_hook_obj): New.
18062 (OBJS): Add $(host_hook_obj).
18063 (host_default.o): New rule.
18064 * config.gcc (host_hook_obj): New, default to host-default.o.
18065 (powerpc-*-darwin*): Use host-darwin.o.
18066 (out_host_hook_obj): New.
18067 * configure: Regenerate.
18068 * configure.in: Print information about out_host_hook_obj, substitute
18070 * host-default.c: New file.
18071 * hosthooks.h: New file.
18072 * toplev.c (general_init): Call host_hooks.extra_signals.
18073 * config/rs6000/host-darwin.c: New file.
18074 * config/rs6000/x-darwin: New file.
18075 * doc/hostconfig.texi: Add documentation for new host hook.
18076 Rearrange existing documentation.
18078 2003-02-05 Roger Sayle <roger@eyesopen.com>
18080 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
18081 with *targetm.delegitimize_address.
18082 (rtl_for_decl_location): Likewise.
18083 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
18084 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
18086 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18087 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
18089 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
18090 i386_simplify_dwarf_addr. Made static. Prototyped.
18091 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
18092 i386_simplify_dwarf_addr to ix86_delegitimize_address.
18093 (ix86_find_base_term): Likewise.
18094 (maybe_get_pool_constant): Likewise.
18096 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18097 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
18099 * config/s390/s390.c (s390_delegitimize_address): Renamed from
18100 s390_simplify_dwarf_addr. Made static. Prototyped.
18101 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18103 2003-02-05 Richard Henderson <rth@redhat.com>
18106 * integrate.c (output_inline_function): Reset input_filename
18107 and lineno from the decl before rest_of_compilation.
18109 2003-02-05 Richard Henderson <rth@redhat.com>
18111 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18112 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18113 * doc/rtl.texi, doc/tm.texi: Document them.
18115 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18116 of the value at zero properly.
18117 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18118 * simplify-rtx.c (simplify_unary_operation): Likewise.
18120 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18121 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18123 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18124 (TARGET_EXPAND_BUILTIN): Remove.
18125 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18126 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18127 (enum arm_builtins): Remove.
18128 * config/arm/arm.md (UNSPEC_CLZ): Remove.
18129 (clzsi2): Rename from clz; use clz instead of unspec.
18131 * config/arm/arm-protos.h: Update.
18133 2003-02-05 Jan Hubicka <jh@suse.cz>
18135 * i386-protos.h (x86_emit_floatuns): Declare.
18136 * i386.c (x86_emit_floatuns): New global function.
18137 * i386.md (floatunssisf2, floatunsdisf2,
18138 floatunsdidf2): New patterns.
18140 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18142 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18144 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
18146 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18147 config/ia64/linux.h
18149 2003-02-05 Roger Sayle <roger@eyesopen.com>
18151 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18153 2003-02-05 Jakub Jelinek <jakub@redhat.com>
18155 PR optimization/8555
18156 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18157 instead of aborting.
18159 2003-02-04 Richard Henderson <rth@redhat.com>
18161 * config/i386/i386.md (UNSPEC_BSF): Remove.
18162 (ffssi2): Split into cmove and no_cmove insns and splitters;
18163 lose pentium float trick for now.
18164 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18165 (ctzsi2, clzsi2, bsr): New.
18167 2003-02-04 Richard Henderson <rth@redhat.com>
18169 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18170 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18171 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18172 (ffsdi2): Use popcount instead of unspec.
18173 (popcountdi2): Rename from *popcnt.
18174 (ctzdi2, clzdi2, getf_exp_tf): New.
18176 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
18178 * genconfig.c (main): Generate CC0_P.
18179 * rtl.h (CC0_P): Remove.
18181 2003-02-04 Richard Henderson <rth@redhat.com>
18183 * libgcc2.h, libgcc2.c (__ffsSI2): New.
18184 (__ffsDI2): Rename from __ffsdi2.
18185 * mklibgcc.in (lib2funcs): Add _ffssi2.
18187 2003-02-04 Richard Henderson <rth@redhat.com>
18189 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18190 rounds with a "bit table" lookup.
18192 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18194 * reload.c (find_reloads): Do not use the mode specified in the insn
18195 pattern as reload mode for address operands. Do not generate optional
18196 reloads for operands where a mandatory reload was already pushed.
18198 2003-02-04 Richard Henderson <rth@redhat.com>
18200 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18201 builtins instead of inline assembly.
18203 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18206 * libgcc2.c (__subvdi3): Fix typo.
18208 2003-02-04 Jan Hubicka <jh@suse.cz>
18210 * i386.md (movti_rex64): Fix constraint.
18212 2003-02-04 Jan Hubicka <jh@suse.cz>
18214 * i386.md (vector push splitters): Fix typo in resolving conflict.
18216 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
18218 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18220 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
18222 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
18223 for recent libstdc++. Remove formatting cruft.
18225 2003-02-04 Jakub Jelinek <jakub@redhat.com>
18227 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18228 attribute even if input file name is absolute, but one of the
18229 includes is relative.
18231 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
18233 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18234 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18235 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
18237 2003-02-03 Richard Henderson <rth@redhat.com>
18239 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18240 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18241 return type to "int". Shuffle declarations and undef int trap.
18242 * libgcc2.h: Remove their declarations.
18243 * optabs.c (expand_unop): Force outmode to int for bitops.
18245 2003-02-03 Bob Wilson <bob.wilson@acm.org>
18247 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
18248 coprocessor registers before floating-point registers.
18249 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
18250 to account for a previously removed register.
18251 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
18252 Delete unused macros.
18254 2003-02-03 Jan Hubicka <jh@suse.cz>
18256 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
18257 (mov*_internal): Fix predicates; require one of operands to not be
18259 (SSE?MMX move expanders): Fix predicates; force one of operands to
18261 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
18262 (movups/movupd/movdqu patterns): Force one of operands to not be
18265 2003-02-03 Roger Sayle <roger@eyesopen.com>
18267 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
18268 takes a single rtx and returns it unmodified.
18269 * hooks.h (hook_rtx_rtx_identity): Prototype here.
18270 * target.h (struct gcc_target): Add "delegitimize_address"
18271 field to target structure.
18272 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
18273 for delegitimize_address target using hook_rtx_rtx_identity.
18274 (TARGET_INITIALIZER): Initialize delegitimize_address field
18275 using TARGET_DELEGITIMIZE_ADDRESS macro.
18276 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
18277 extensions of constant pool references. Use delegitimize_address
18278 to undo the obfuscation of "-fpic".
18279 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18281 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18282 i386_simplify_dwarf_addr.
18283 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
18284 (maybe_get_pool_constant): Likewise.
18286 2003-02-03 Jan Hubicka <jh@suse.cz>
18288 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
18290 2003-02-03 Jan Hubicka <jh@suse.cz>
18292 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18294 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18296 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
18297 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
18299 2003-02-02 Andreas Schwab <schwab@suse.de>
18301 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18303 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
18305 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18306 (epilogue_insns): Likewise.
18308 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18310 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18312 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18314 * pa-protos.h (attr_length_millicode_call): Remove second argument.
18315 (attr_length_indirect_call, attr_length_indirect_call,
18316 attr_length_save_restore_dltp): New prototypes.
18317 * pa.c (attr_length_millicode_call): Remove second argument. Check
18318 INSN_ADDRESSES_SET_P in distance calculation.
18319 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18321 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18322 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18323 Call attr_length_call directly.
18324 (attr_length_indirect_call, output_indirect_call,
18325 attr_length_save_restore_dltp): New functions.
18326 * pa.md (attr_length_millicode_call): Drop second argument from all
18328 (return_internal_pic): Delete.
18329 (return_external_pic): Remove use of PIC register and pic operand and
18331 (epilogue): Use return_internal for both normal and pic code.
18332 (call, call_value): Emit new 32-bit pic patterns for symref and
18333 indirect calls. Remove uses for arg pointer and pic register.
18334 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18335 call_reg_pic_post_reload, call_val_symref_pic,
18336 call_val_symref_pic_post_reload, call_val_reg_pic,
18337 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18338 Implement define_split and define_peephole2 patterns for pre reload
18340 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18341 call_value_internal_reg_64bit): Shorten names.
18342 (all call patterns): Explicitly indicate registers used and clobbered.
18343 Use attr_length_indirect_call and attr_length_save_restore_dltp for
18344 attribute length calculation. Move code generation for indirect calls
18345 to output_indirect_call.
18346 (sibcall, sibcall_value): Don't restore PIC register.
18347 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18350 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18352 * doc/install.texi (Testing): Simplify and compress instructions
18353 concerning Dejagnu.
18355 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18357 * collect2.c (pexecute_pid): Rename to pid.
18358 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18361 2003-02-01 Geoffrey Keating <geoffk@apple.com>
18363 * doc/extend.texi (Function Attributes): Remove documentation
18364 for PowerPC Windows NT function attributes..
18366 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
18368 * dwarf2out.c (gen_type_die): Check for typedefs before calling
18369 for TYPE_MAIN_VARIANT.
18371 2003-02-01 Richard Henderson <rth@redhat.com>
18373 * libgcc2.c: Include auto-host.h.
18374 (ATTRIBUTE_HIDDEN): New.
18375 (__clz_tab): Don't declare here for clz and ctz.
18376 (__clzsi2, __clzdi2): Use count_leading_zeros.
18377 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18378 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18379 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18380 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18382 2003-02-01 Richard Henderson <rth@redhat.com>
18384 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18385 to the conditional.
18386 (ashlsi3_1_zext splitter): Likewise.
18388 2003-02-01 Richard Henderson <rth@redhat.com>
18390 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18391 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18392 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18393 return type to Wtype.
18395 * libgcc-std.ver (GCC_3.4): Fix inheritance.
18397 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18398 expander input constraint.
18400 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18402 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18404 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18405 * optabs.c (widen_clz, expand_parity): New.
18406 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
18407 for libcalls to clz, ctz, popcount, and parity.
18408 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18409 parity_optab, and set up libfunc handlers.
18410 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18411 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18412 __popcount_tab): New.
18413 * libgcc2.h: Declare them.
18414 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18415 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18417 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18418 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18419 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18420 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18421 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18422 BUILT_IN_PARITYLL): New.
18423 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18424 and add optab argument.
18425 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18426 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18427 * expr.c (expand_expr): Handle them.
18428 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18429 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18430 * reload1.c (eliminate_regs): Handle them.
18431 (elimination_effects): Likewise.
18432 * function.c (instantiate_virtual_regs_1): Likewise
18433 * genattrtab.c (check_attr_value): Likewise.
18434 * simplify-rtx.c (simplify_unary_operation): Likewise.
18435 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18436 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18437 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18438 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18439 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18441 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18442 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
18443 * doc/extend.texi (Other Builtins): Add new builtins.
18444 * doc/md.texi (Standard Names): Add new patterns.
18446 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
18448 * reload.c: Revert 2003-01-31 change.
18450 2003-02-01 Jan Hubicka <jh@suse.cz>
18452 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
18454 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
18456 * flags.h (flag_volatile): Remove declaration.
18457 (flag_volatile_global, flag_volatile_static): Likewise.
18458 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18459 * toplev.c (flag_volatile): Remove definition.
18460 (flag_volatile_global, flag_volatile_static): Likewise.
18461 (f_options): Remove corresponding entries here.
18462 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18463 or flag_volatile_static.
18464 * doc/invoke.texi: Remove documentation of -fvolatile,
18465 -fvolatile-global and -fvolatile-static.
18467 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18469 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18470 updating of total_code_bytes from prologue to epilogue.
18472 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
18474 * reload.c (find_reloads): Do not use the mode specified in the insn
18475 pattern as reload mode for address operands. Do not generate optional
18476 reloads for operands where a mandatory reload was already pushed.
18477 Generate optional reloads only in the final pass though find_reloads.
18478 (have_replacement_p): New function.
18480 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18482 * doc/install.texi (Testing): Remove a reference to our obsolete
18483 /testresults web pages and strip redundant information concerning
18485 (Binaries): Refer to Microsoft Windows instead of listing all
18488 2003-02-01 Jan Hubicka <jh@suse.cz>
18490 * loop.c (emit_prefetch_instructions): Do conversion at right place in
18493 * combine.c (simplify_set): Reverse order of ragumetns to
18494 REG_CANNOT_CHANGE_MODE_P
18495 * df.c (df_def_record_1): Likewise.
18496 * recog.c (register_operand): Likewise.
18497 * simplify-rtx.c (simplify_subreg): Likewise.
18498 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18499 CANNOT_CHANGE_MODE_CLASS.
18500 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18502 * reload.c (push_reload): Likewise.
18503 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18504 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18505 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18506 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18507 * mips.c (mips_cannot_change_mode_class): Update.
18508 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18509 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18510 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18511 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18512 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18513 * sh.c (sh_cannot_change_mode_class): Update.
18514 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18515 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18517 2003-01-31 Geoffrey Keating <geoffk@apple.com>
18519 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18520 change to LINK_COMMAND_SPEC in gcc.c.
18522 2003-01-31 Jan Hubicka <jh@suse.cz>
18525 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18527 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18529 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18532 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
18534 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18535 (BINFO_ELTS): New #define.
18536 * stor-layout.c (finalize_record_size): Don't set them.
18537 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18538 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18539 (BINFO_LANG_ELTS): New #define.
18540 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18541 * java/class.c (make_class): Use BINFO_ELTS.
18542 (set_super_info): Likewse.
18543 (add_interface_do): Likewise.
18544 * objc/objc-act.c (start_class): Use BINFO_ELTS.
18546 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18548 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18549 (times): Don't ever declare if not HAVE_TIMES.
18550 (clock): Don't ever declare if not HAVE_CLOCK.
18552 2003-01-30 Richard Henderson <rth@redhat.com>
18554 * flow.c (update_life_info): Zap life info after cleanup_cfg.
18555 (regno_uninitialized): Use correct live at function entry set.
18556 (regno_clobbered_at_setjmp): Likewise.
18558 * expr.c (store_expr): Promote all MEM intermediates to regs.
18560 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18562 * config/arm/arm.c: Fix comment typos.
18563 * config/arm/arm.h: Likewise.
18564 * config/arm/netbsd-elf.h: Likewise.
18565 * config/arm/netbsd.h: Likewise.
18567 2003-01-30 Geoffrey Keating <geoffk@apple.com>
18569 * gengtype.c (struct walk_type_data): Add needs_cast_p.
18570 (walk_type): Set needs_cast_p in walk_type_data.
18571 (write_types_process_field): Supply casts when required to suppress
18573 (write_root): Cast gt_pch_n_S to suppress warning.
18574 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
18575 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18576 when they might exist.
18577 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18578 insn-conditions.o, and rs6000.o.
18580 2003-01-30 Richard Henderson <rth@redhat.com>
18582 * ggc-page.c (G.context_depth_allocations): New.
18583 (G.context_depth_collections): New.
18584 (alloc_page): Set G.context_depth_allocations.
18585 (ggc_collect): Set G.context_depth_collections.
18586 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18587 (ggc_pop_context): Early exit for no allocations or collections.
18589 2003-01-30 Richard Henderson <rth@redhat.com>
18591 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18593 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
18595 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18596 size, the link register is always saved if any other register is
18599 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18601 * config/h8300/h8300-protos.h: Update the prototype for
18603 (cpp_reader): Declare before it is used.
18604 * config/h8300/h8300.c (compute_plussi_cc): Change the return
18606 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18607 see an unknown H8 variant.
18609 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
18612 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18613 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18614 * config/rs6000/t-rtems: New file. multilib variants to match OS.
18615 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18616 rs6000/t-ppcgas so we get the desired multilibs.
18618 2003-01-30 Nick Clifton <nickc@redhat.com>
18620 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18621 when popping saved IP register off the stack.
18623 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18625 * config/rs6000/aix43.h: Fix comment typos.
18626 * config/rs6000/aix51.h: Likewise.
18627 * config/rs6000/aix52.h: Likewise.
18628 * config/rs6000/altivec.h: Likewise.
18629 * config/rs6000/rs6000.c: Likewise.
18630 * config/rs6000/rs6000.h: Likewise.
18631 * config/rs6000/rs6000.md: Likewise.
18632 * config/rs6000/spe.md: Likewise.
18634 2003-01-29 Mark Mitchell <mark@codesourcery.com>
18636 * c-common.c (builtin_define_float_constants): Define
18637 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18639 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18641 * config/sh/lib1funcs.asm: Fix comment typos.
18642 * config/sh/linux.h: Likewise.
18643 * config/sh/sh.c: Likewise.
18644 * config/sh/sh.md: Likewise.
18646 2003-01-30 Loren James Rittle <ljrittle@acm.org>
18648 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18650 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
18652 * config/fp-bit.h (__make_dp): Declare if TMODES.
18654 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
18656 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18657 general_operand_src and general_operand_dst.
18659 2003-01-29 David Edelsohn <edelsohn@gnu.org>
18661 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18662 Return true for variable sized types.
18663 (rs6000_va_arg): Handle variable sized types passed by reference
18666 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
18668 * arm.c (arm_legtimize_address): New function.
18669 * arm-protos.h (arm_legtimize_address): Add prototype.
18670 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18671 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18674 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18677 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
18678 depended on it being defined until now.
18680 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18683 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18684 RTEMS code knows which C++ initialization style the toolset
18685 configuration is using.
18687 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18690 * config/m68k/t-crtstuff: Replace spaces with tabs, add
18691 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
18693 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18696 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
18698 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
18700 2003-01-29 Nick Clifton <nickc@redhat.com>
18702 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18705 2003-01-29 Andrew Haley <aph@redhat.com>
18707 * tree-inline.c (walk_tree): Add CHAR_TYPE.
18709 2003-01-29 Jan Hubicka <jh@suse.cz>
18711 * i386.md (subdi3_carry_rex64): Fix typo.
18713 2003-01-28 Stan Shebs <shebs@apple.com>
18715 * coretypes.h (cpp_reader): Forward declare struct.
18716 * c-pragma.h (cpp_reader): Remove forward declaration.
18717 * hashtable.h (cpp_reader): Likewise.
18718 * scan.h (cpp_reader): Likewise.
18719 * tree.h (cpp_reader): Likewise.
18720 * config/darwin-protos.h (cpp_reader): Likewise.
18721 * config/arm/arm-protos.h (cpp_reader): Likewise.
18722 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18723 struct cpp_reader in prototypes.
18725 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18727 * doc/install.texi: Add documentation for installation into
18728 tooldirs and with DESTDIR.
18730 2003-01-28 Richard Henderson <rth@redhat.com>
18732 * config.gcc (ia64*-*-aix*): Remove.
18733 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18734 * config/ia64/unwind-aix.c: Remove file.
18736 2003-01-28 Andreas Schwab <schwab@suse.de>
18738 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18740 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18741 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18742 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18743 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18744 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18745 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18746 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
18748 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
18750 * combine.c (nonzero_bits): Fix check for negative divide operands.
18752 2003-01-28 Richard Henderson <rth@redhat.com>
18754 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18755 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18757 2003-01-28 Richard Henderson <rth@redhat.com>
18759 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18761 * config/cris/cris.c (cris_address_cost): Make static.
18762 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18763 * config/cris/cris.h (ADDRESS_COST): Remove.
18764 * config/cris/cris-protos.h: Update.
18766 2003-01-23 Mike Stump <mrs@apple.com>
18768 * regclass.c (init_reg_autoinc): New function.
18769 (regclass): Move initialization of forbidden_inc_dec_class from
18771 (init_regs): to here. Avoids reinitialization for each function,
18772 saving compilation time.
18774 2003-01-28 Jason Merrill <jason@redhat.com>
18776 * cpplib.h (struct cpp_options): Add warn_deprecated field.
18777 * cppinit.c (cpp_create_reader): Turn it on by default.
18778 * c-opts.c (c_common_decode_option): Set it.
18779 * cpplib.c (do_pragma_once): Only complain about #pragma once
18780 if warn_deprecated is set.
18782 2003-01-28 Dale Johannesen <dalej@apple.com>
18784 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
18785 * loop.c (scan_loop): Move movables on -Os rich-register targets.
18786 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
18788 2003-01-28 Richard Henderson <rth@redhat.com>
18790 * target.h (targetm.address_cost): New.
18791 * target-def.h (TARGET_ADDRESS_COST): New.
18792 (TARGET_RTX_COSTS): Uncomment. Oops.
18793 * cse.c (address_cost): Use new target hook.
18794 (default_address_cost): New.
18795 * output.h (default_address_cost): Declare.
18796 * hooks.c (hook_int_rtx_0): New.
18797 * hooks.h (hook_int_rtx_0): Declare.
18798 * loop.c (combine_givs_p): Remove if 0 code.
18799 * system.h (ADDRESS_COST): Poison.
18801 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18802 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18803 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18804 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18805 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18806 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18807 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18808 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18809 (ADDRESS_COST): Remove.
18811 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18812 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18813 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18814 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18815 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18816 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18817 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18818 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
18819 config/mips/mips.c, config/mips/mips.h,
18820 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18821 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
18822 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18823 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18824 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18825 config/vax/vax.c, config/vax/vax.h
18826 (foo_address_cost): Make static.
18827 (TARGET_ADDRESS_COST): New.
18828 (ADDRESS_COST): Remove.
18830 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18831 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18832 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18833 config/stormy16/stormy16.h
18834 (ADDRESS_COST): Move code ...
18835 (foo_address_cost): ... here.
18836 (TARGET_ADDRESS_COST): New.
18838 * config/m32r/m32r.c (m32r_address_cost): Remove.
18839 * config/m32r/m32r-protos.h: Update.
18841 * config/mmix/mmix.c (mmix_address_cost): Remove.
18842 * config/mmix/mmix-protos.h: Update.
18844 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18845 mn10300_address_cost; move unsig allocation ...
18846 (mn10300_address_cost): ... here.
18847 (TARGET_ADDRESS_COST): New.
18848 * config/mn10300/mn10300-protos.h: Update.
18849 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18851 * doc/tm.texi: Update.
18853 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18855 * haifa-sched.c (schedule_insn): Return necessary cycle advance
18856 after issuing the insn.
18857 (rank_for_schedule): Make a insn with /S the highest priority
18859 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
18860 (choose_ready): Check SCHED_GROUP_P.
18861 (schedule_block): Advance cycle after issuing insn if it is
18862 necessary. Don't reorder insns if there is an insn with /S.
18863 (set_priorities): Ignore schedule groups.
18865 * sched-deps.c (remove_dependence, group_leader): Remove the
18867 (add_dependence): Ignore schedule groups.
18868 (set_sched_group_p): Don't make copy of dependencies from previous
18869 insn of the schedule group. Add anti-dependency to the previous
18870 insn of the schedule group.
18871 (compute_forward_dependences): Ignore schedule groups.
18873 * sched-ebb.c (init_ready_list): Ignore schedule groups.
18875 * sched-rgn.c (init_ready_list): Ditto.
18876 (can_schedule_ready_p): Ditto.
18878 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18880 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18881 register to another one.
18883 2003-01-28 Richard Henderson <rth@redhat.com>
18885 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18887 2003-01-28 Roger Sayle <roger@eyesopen.com>
18889 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18891 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
18893 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18894 class contains a floating-point register, return the size of the
18895 mode in half words.
18897 2003-01-28 Jan Hubicka <jh@suse.cz>
18899 * i386.c (ix86_carry_flag_operator): New predicate.
18900 (fcmov_operator): Fix whitespace.
18901 (ix86_expand_carry_flag_compare): Deal with floating point.
18902 (ix86_expand_int_movcc): Deal with fp; update insn expansion
18903 (ix86_expand_int_addcc): Likewise.
18904 (ix86_expand_strlensi_unroll_1): likewsie.
18905 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18906 * i386.md (add?i_carry_rex64): Use new predicate.
18907 (sub?i3_carry_rex64): Likewise.
18908 (x86_mov?icc_0_m1*): Likewise.
18910 2003-01-28 Andreas Schwab <schwab@suse.de>
18912 * cfgloopmanip.c (create_preheader): Initialize src to avoid
18915 * expmed.c (emit_store_flag): Fix cast to avoid sign
18916 comparison warning.
18918 * combine.c (force_to_mode): Add cast to fix warning when
18919 STORE_FLAG_VALUE is negative.
18921 2003-01-27 Richard Henderson <rth@redhat.com>
18923 * Makefile.in (cse.o): Depend on TARGET_H.
18924 * cse.c (rtx_cost): Use targetm.rtx_costs.
18925 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18926 * doc/tm.texi: Update.
18928 * target.h (targetm.rtx_costs): New.
18929 * target-def.h (TARGET_RTX_COSTS): New.
18930 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18933 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18934 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18935 * config/alpha/alpha.h (PROCESSOR_MAX): New.
18936 (CONST_COSTS, RTX_COSTS): Remove.
18938 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18939 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18940 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18941 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18942 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18943 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18944 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18945 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18946 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18947 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18948 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18949 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18950 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18951 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18952 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18953 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18954 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18955 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18956 config/v850/v850.c, config/v850/v850.h,
18957 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18958 (CONST_COSTS, RTX_COSTS): Move code ...
18959 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18961 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18962 (arm_rtx_costs, TARGET_RTX_COSTS): New.
18963 * config/arm/arm-protos.h: Update.
18964 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18966 * config/avr/avr.h (CONST_COSTS): Move code ...
18967 * config/avr/avr.c (avr_rtx_costs): ... here.
18968 (default_rtx_costs): Make static.
18969 * config/avr/avr-protos.h: Update.
18971 * config/h8300/h8300.c (const_costs): Make static.
18972 (h8300_and_costs, h8300_shift_costs): Likewise.
18973 * config/h8300/h8300-protos.h: Update.
18975 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18976 (CONST_COSTS): Move code ...
18977 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
18978 default_rtx_costs; update for signature change.
18979 * config/ip2k/ip2k-protos.h: Update.
18981 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18982 (CONST_COSTS): Move code ...
18983 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18984 (TARGET_RTX_COSTS): New.
18985 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18986 * config/m68hc11/m68hc11-protos.h: Update.
18988 * config/m68k/m68k.c (const_int_cost): Make static.
18989 * config/m68k/m68k-protos.h: Update.
18991 * config/mcore/mcore.c (mcore_const_costs): Make static.
18992 (mcore_and_cost, mcore_ior_cost): Likewise.
18993 * config/mcore/mcore-protos.h: Update.
18995 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18996 (mmix_rtx_cost_recalculated): Remove.
18997 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18998 * config/mmix/mmix-protos.h: Update.
19000 * config/sh/sh.c (shiftcosts): Make static.
19001 (addsubcosts, andcosts, multcosts): Likewise.
19002 * config/sh/sh-protos.h: Update.
19004 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
19005 (sparc_rtx_costs): Make static; update for change in signature.
19006 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
19007 * config/sparc/sparc-protos.h: Update.
19009 * config/v850/v850.c (const_costs): Make static.
19010 * config/v850/v850-protos.h: Update.
19012 * config/vax/vax.h (RTX_COSTS): Remove.
19013 (CONST_COSTS): Move code ...
19014 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
19016 (vax_rtx_costs, TARGET_RTX_COSTS): New.
19018 2003-01-27 Richard Henderson <rth@redhat.com>
19020 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
19021 * config/vax/vax-protos.h: Update. Really.
19023 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
19025 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
19026 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
19027 zero if no hardware floating point.
19028 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
19029 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
19030 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19031 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
19032 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
19033 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
19034 even FP registers on N32 and N64.
19035 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
19036 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
19037 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
19038 even-register-like alignment to 128-bit arguments.
19039 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
19040 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
19042 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
19043 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
19044 (TPBIT): Set to tp-bit.c.
19045 (tp-bit.c): Create out of fp-bit.c.
19047 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
19049 * c-parse.in: Remove '%expect 32' directive in objc mode.
19051 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
19053 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
19054 (LIBGCOV): New variable.
19055 (libgcc.mk): Add LIBGCOV.
19056 (LIBGCC_DEPS): Add libgcov.c.
19057 (libgcov.a): New target.
19058 (clean): Remove libgcov.a.
19059 (install-libgcc): Do libgcov too.
19060 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
19062 * libgcc2.c (L_gcov): Move into ...
19063 * libgcov.c: ... here. New file.
19064 * mklibgcc.in: Add libgcov rules.
19065 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
19067 * doc/invoke.texi (profile-arcs, test-coverage): Update and
19070 * profile.c (index_counts_file): Remove duplicate check for open file.
19072 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
19074 * gcc/doc/invoke.texi (Optimization Options): Group together
19075 optional and experimental flags. Move trapv and bounds-check
19076 out of this section. Group floating point flags together.
19077 (Code Gen Options): Move trapv and bounds-check to here.
19079 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
19081 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
19083 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
19085 PR optimization/9090
19086 * function.c (purge_addressof_1): After pushing an addressed register
19087 onto the stack, simplify the result.
19089 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19091 * doc/extend.texi: Fix typo.
19093 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19095 * doc/cppopts.texi: Fix typo.
19096 * doc/objc.texi: Likewise.
19097 * doc/passes.texi: Likewise.
19099 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
19101 * real.c (ibm_extended_format): Add 53 to minimum exponent.
19102 (encode_ibm_extended): Adjust.
19104 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
19106 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19107 timevar_id enumerations.
19109 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19111 * combine.c: Fix formatting.
19113 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19115 * doc/gccint.texi: Update the copyright.
19117 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19119 * doc/cpp.texi: Fix typos.
19120 * doc/extend.texi: Likewise.
19121 * doc/gty.texi: Likewise.
19122 * doc/install.texi: Likewise.
19123 * doc/passes.texi: Likewise.
19124 * doc/rtl.texi: Likewise.
19125 * doc/tm.texi: Likewise.
19127 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19129 * config/ia64/fde-glibc.c: Fix comment typos.
19130 * config/ia64/hpux.h: Likewise.
19131 * config/ia64/ia64.c: Likewise.
19132 * config/ia64/ia64.h: Likewise.
19133 * config/ia64/unwind-ia64.c: Likewise.
19135 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19137 * config/i386/i386-modes.def: Fix comment typos.
19138 * config/i386/i386.c: Likewise.
19139 * config/i386/i386.md: Likewise.
19141 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
19143 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19144 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19145 ASM_FINISH_DECLARE_OBJECT before defining it.
19146 * toplev.c (rest_of_decl_compilation): Don't define
19147 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
19148 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19149 parameters for DWARF2 targets because they _are_ used.
19151 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19153 * fp-bit.h: Define macros for TFmode floating-point constants
19154 in IBM-extended TFmode types.
19155 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19157 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19160 * config/fp-bit.h: Define macros for TFmode floating-point
19161 constants in IEEE quad TFmode type. Declare functions according
19163 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19164 (TFtype, TItype, UTItype): Define if TMODES is defined.
19165 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19166 (F_T_BITOFF, D_T_BITOFF): Define.
19167 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19168 guaranteed to be wide enough.
19169 * config/fp-bit.c: Check for L_ macros for tf functions.
19170 (__thenan_tf): New.
19172 (pack_d, unpack_d): Support IEEE 854 quad type.
19173 (_fpmul_parts): Support TFmode. Compute exponent adjustment
19174 from FRAC_NBITS, FRAC_BITS and NGARDS.
19175 (usi_to_float): Cast constants to be shifted to fractype
19176 instead of assuming long long is wide enough.
19177 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19179 2003-01-26 Andreas Jaeger <aj@suse.de>
19181 * df.c: Remove prototype of unused function df_regno_rtl_debug.
19183 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19185 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19186 (DBBIT_FUNCS): Added _df_to_tf.
19187 (TPBIT_FUNCS): New.
19188 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19189 (LIBGCC_DEPS): Added TPBIT.
19190 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19192 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19193 been able to move the result to target.
19195 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19196 for the appropriate mode.
19198 * calls.c (emit_library_call_value_1): Handle return values
19201 * rtl.c (get_mode_alignment): Moved to...
19202 * stor-layout.c: ... here.
19204 * print-rtl.c (print_rtx): Don't print MEM details in
19207 2003-01-26 Michael Hayes <mph@paradise.net.nz>
19209 * df.h: Update comments, tidy formatting.
19210 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19211 REVERSE, UNION, INTERSECTION. All uses updated.
19212 (OLD_DF_INTERFACE): Remove.
19213 (struct insn_info): Remove commented out insn field.
19214 * df.c: Update comments, tidy formatting.
19215 (df_def_table_realloc): Remove.
19218 2003-01-26 Alan Modra <amodra@bigpond.net.au>
19220 * calls.c (save_fixed_argument_area): Tidy.
19221 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
19222 (expand_call): Comment typo fixes. Don't init low_to_save. Start
19223 call chain loop at 1 if !try_tail_call. Formatting.
19224 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19225 Use save_fixed_argument_area and restore_fixed_argument_area.
19227 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19229 * df.c (df_uses_record): Handle CC0.
19231 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19233 * reload.c (maybe_memory_address_p): New function.
19234 (find_reloads_address): Use it instead of memory_address_p.
19236 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
19238 * final.c (shorten_branches): Align the address of code label
19239 when computing initial lengths and addresses.
19241 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19243 * config/m68hc11/m68hc11.md: Fix a comment typo.
19245 2003-01-25 Andreas Jaeger <aj@suse.de>
19247 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
19250 2003-01-25 Roger Sayle <roger@eyesopen.com>
19252 * gcse.c (bypass_last_basic_block): New global variable.
19253 (bypass_block): Use redirect_edge_and_branch_force to redirect
19254 fall-through edges. Use bypass_last_basic_block to determine
19255 which blocks have valid PRE information.
19256 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
19258 2003-01-25 Jan Hubicka <jh@suse.cz>
19260 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
19262 2003-01-25 Jan Hubicka <jh@suse.cz>
19263 Eric Botcazou <ebotcazou@libertysurf.fr>
19265 * gcse.c (one_cprop_pass): Delete unreachable blocks.
19267 2003-01-25 Richard Henderson <rth@redhat.com>
19269 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
19270 from ia64_aix_select_rtx_section.
19271 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
19272 instead of saving and restoring flag_pic.
19273 (ia64_rwreloc_unique_section): Similarly.
19274 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
19275 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
19276 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19277 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
19279 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19281 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19284 2003-01-25 Richard Henderson <rth@redhat.com>
19286 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19288 2003-01-25 Kelley Cook <kelleycook@comcast.net>
19290 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19292 2003-01-25 Segher Boessenkool <segher@koffie.nl>
19294 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19295 type for bitmaps. Use unsigned long.
19296 (nBITMAP_WORD_BITS): New macro.
19297 (BITMAP_WORD_BITS): New macro.
19298 (rest of file): Use it.
19299 * bitmap.c: Use it.
19301 2003-01-25 Richard Henderson <rth@redhat.com>
19303 2002-02-19 Robert Lipe <robertlipe@usa.net>
19304 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19306 2003-01-25 Roger Sayle <roger@eyesopen.com>
19308 * builtins.c (purge_builtin_constant_p): Scan insn stream
19309 sequentially rather than by basic block.
19310 * function.c (purge_addressof): Simplify test with INSN_P.
19312 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19314 * combine.c (simplify_comparison, case AND): Remove a redundant test.
19316 2003-01-25 Roger Sayle <roger@eyesopen.com>
19318 * function.h (struct function): New field calls_constant_p.
19319 (current_function_calls_constant_p): New macro for above.
19320 * function.c (prepare_function_start): Initialize calls_eh_return
19321 and calls_constant_p.
19322 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19323 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19324 when the current_function_calls_constant_p.
19325 * integrate.c (expand_inline_function): Set calls_constant_p if
19326 the function being inlined has calls_constant_p set.
19328 2003-01-25 Roger Sayle <roger@eyesopen.com>
19330 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19331 optimizing, even if flag_gcse is true.
19332 * toplev.c (rest_of_compilation): purge_builtin_constant_p
19333 only needs to be called when "optimize > 0 && flag_gcse".
19335 2003-01-25 Roger Sayle <roger@eyesopen.com>
19337 * stmt.c (emit_case_bit_tests): New routine to implement suitable
19338 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19339 (case_bit_test_cmp): New comparison function for "qsort" to order
19340 case_bit_tests by decreasing number of destination nodes.
19341 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19342 (expand_end_case_type): Use emit_case_bit_tests to implement
19343 suitable switch statments.
19344 (CASE_USE_BIT_TESTS): New target macro to disable the above.
19345 * Makefile.in (stmt.o): Add dependency on optab.h.
19346 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19348 2003-01-23 Andreas Schwab <schwab@suse.de>
19350 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19351 __do_global_ctors_aux hidden global and don't put it in
19353 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19354 instead so that it comes first.
19356 2003-01-25 Jan Hubicka <jh@suse.cz>
19358 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
19359 subreg is read/modify.
19361 2003-01-25 Jan Hubicka <jh@suse.cz>
19363 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19364 do libcall for large blocks.
19365 * i386.md (comi patterns): Set type to ssecomi.
19366 (sse2_unpck?pd): Fix mode of vec_select.
19368 * cse.c: Include except.h
19369 (cse_set_around_loop): Do not create new basic blocks.
19370 * Makefile.in (cse.o): Add dependnecy on except.h
19372 2003-01-25 Jan Hubicka <jh@suse.cz>
19374 * builtins.c (fold_trunc_transparent_mathfn): New function.
19375 (fold_builtin): Use it.
19376 * convert.c (convert_to_real): Re-enable code to convert
19377 math functions; add support for floor familly functions.
19379 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19381 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19382 dependencies on coretypes.h and $(TM_H).
19384 2003-01-25 Jan Hubicka <jh@suse.cz>
19386 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
19388 2003-01-24 Stuart Hastings <stuart@apple.com>
19390 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
19392 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19394 * config/c4x/c4x.md (UNSPEC_BU): New constants.
19395 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19396 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19397 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19398 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
19399 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
19400 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
19401 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
19403 2003-01-24 Jan Hubicka <jh@suse.cz>
19405 * emit-rtl.c (reg_attrs_htab): New static variable.
19406 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19408 (reg_rtx): Do not maintain regno_decl.
19409 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19410 set_mem_attrs_from_reg): New global function.
19411 (init_emit): Do not initialize regno_decl.
19412 (init_emit_once): initialize reg_attrs_htab.
19413 * final.c (alter_subreg): Do not replace REG by SUBREG.
19414 (gen_mem_expr_from_op): Improve output.
19415 (output_asm_operands): Likewise.
19416 * function.c (assign_params): Do not set REGNO_DECL.
19417 * function.h (struct function): Kill regno_decl.
19418 (REGNO_DECL): Kill.
19419 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19420 * print_rtl.c (print_rtx): Output REG information.
19421 * regclass.c (reg_scan_mark_refs): Update attrs.
19422 * reload1.c (alter_reg): Likewise.
19423 * simplify_rtx.c (simplify_subreg): Likewise.
19424 * stmt.c (expand_decl): Likewise.
19425 * rtl.def (REG): Add new field.
19426 * rtl.h (struct reg_attrs): New.
19427 (rtunion_def): At rtreg.
19428 (X0MEMATTR): Add checking.
19429 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19430 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19432 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19434 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19436 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19437 (xtensa_emit_call, print_operand): Fix printf format strings
19438 to avoid compile warnings.
19439 (xtensa_function_prologue, xtensa_function_epilogue): Change type
19440 of "size" argument to HOST_WIDE_INT to fix compile warnings.
19441 * config/xtensa/xtensa-protos.h
19442 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19444 2003-01-24 Jan Hubicka <jh@suse.cz>
19446 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19447 (implicit_built_in_decls): New global array.
19448 (mathfn_built_in): New global function.
19449 (fold_trunc_transparent_mathfn): New static function
19450 (expand_builtin_strstr, expand_bultin_strchr,
19451 expand_builtin_strpbrk, expand_builtin_strcpy,
19452 expand_builtin_strncpy, expand_bultin_strcmp,
19453 expand_bultin_strncat, expand_builtin_fputs): Use
19454 implicint_built_in_decls.
19455 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19456 * builtins.def: Fix comments.
19457 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19458 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19459 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19460 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19461 (DEF_C99_C90RES_BULTIN): New.
19462 (*f, *l builtins): Update.
19463 * c-common.c (DEF_BUILTIN): Initialize implicit array.
19464 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19465 * convert.c (strip_float_extensions): New global function.
19466 * tree.h (DEF_BUILTIN): Accept 10 arguments.
19467 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19469 * java/builtins.c (define_builtin): Handle implicit.
19470 (DEF_BUILTIN): Update.
19471 * tm.texi (TARGET_C99_FUNCTIONS): Document.
19472 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19473 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19476 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19478 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19479 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
19480 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19481 * config/xtensa/crti.asm: New file.
19482 * config/xtensa/crtn.asm: New file.
19483 * config/xtensa/t-elf: New file.
19484 * config/xtensa/t-linux: New file.
19485 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19486 Move various CFLAGS settings to new t-elf file.
19488 2003-01-24 Richard Henderson <rth@redhat.com>
19490 PR optimization/4382
19491 * tree-inline.c (find_builtin_longjmp_call_1): New.
19492 (find_builtin_longjmp_call): New.
19493 (inlinable_function_p): Use it.
19495 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19497 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19498 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19499 * config/i386/i386.c (function_arg_pass_by_reference): New.
19500 (ix86_va_arg): Support arguments passed by reference.
19502 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19504 * cfgloopanal.c: New file.
19505 * cfgloopmanip.c: New file.
19506 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19507 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19508 cfglayout.o): Add dependency on cfgloop.h.
19509 (cfgloop.o): Add flags.h dependency.
19510 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19511 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19512 (struct loop, struct loops, flow_loops_find, flow_loops_update,
19513 flow_loops_free, flow_loops_dump, flow_loop_dump,
19514 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19515 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19516 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19517 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19518 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19519 find_common_loop, verify_loop_structure): Declarations moved to ...
19520 * cfgloop.h: New file.
19521 * bb-reorder.c (reorder_basic_blocks): Modified.
19522 * cfglayout.c: Include cfgloop.h.
19523 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19524 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19525 (break_superblocks): New static function.
19526 (cfg_layout_finalize): Use it.
19527 (cfg_layout_split_block): New function.
19528 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19530 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19532 (cfg_layout_split_block): Declare.
19533 * cfgloop.c: Include cfgloop.h and flags.h.
19534 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19535 get_loop_body): Avoid signed versus unsigned comparison warnings.
19536 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19537 loop_latch_edge): Modified.
19538 (verify_loop_structure): Modified to use flags stored in loop structure;
19539 check irreducible loops.
19540 (cancel_loop, cancel_loop_tree): New functions.
19541 (estimate_probability): Use loop analysis code for predictions.
19542 (estimate_loops_at_level): Avoid signed versus unsigned comparison
19544 * doloop.c: Include cfgloop.h.
19545 * loop.c: Include cfgloop.h.
19546 * predict.c: Include cfgloop.h.
19547 * toplev.c: Include cfgloop.h.
19548 * unroll.c: Include cfgloop.h.
19549 * tracer.c (tracer): Modified.
19551 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19553 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19555 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
19557 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19558 * configure: Regenerate.
19560 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19561 (tls_symbolic_reference_mentioned_p): Add prototype.
19562 (s390_tls_get_offset): Add prototype.
19563 (emit_pic_move): Remove prototype, replace by ...
19564 (emit_symbolic_move): .. this new prototype.
19566 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19567 (tls_model_chars): New global variable.
19568 (s390_encode_section_info): Encode TLS model.
19569 Use targetm.binds_local_p to check for local symbols.
19570 (s390_strip_name_encoding): New function.
19571 (TARGET_STRIP_NAME_ENCODING): Define.
19573 (get_thread_pointer): New function.
19574 (legitimize_tls_address): New function.
19575 (legitimize_address): Call it.
19576 (emit_pic_move): Remove, replace by ...
19577 (emit_symbolic_move): ... this new function.
19579 (larl_operand): Handle TLS operands.
19580 (legitimate_constant_p): Likewise.
19581 (s390_decompose_address): Likewise.
19582 (s390_cannot_force_const_mem): New function.
19583 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19585 (s390_output_symbolic_const): Handle TLS unspecs.
19586 (print_operand): New code 'J'.
19587 (machine_function): Add struct member 'some_ld_name'.
19588 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19590 (enum s390_builtin): New type.
19591 (code_for_builtin_64, code_for_builtin_31): New global variables.
19592 (s390_init_builtins, s390_expand_builtin): New functions.
19593 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19595 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19596 (ASM_OUTPUT_LABELREF): Define.
19597 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19599 * config/s390/s390.md: Define TLS UNSPEC constants.
19600 ("movdi", "movsi"): Handle TLS operands.
19601 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19602 ("*tls_load_64", "*tls_load_31"): New insns.
19603 ("call_value_tls", "call_value_tls_exp"): New expanders.
19604 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
19605 "bas_tls_64", "bas_tls_31"): New insns.
19607 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
19609 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19610 spe ABI is configured, if requested.
19612 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19614 * doc/passes.texi: Fix typo.
19616 2003-01-24 Andreas Schwab <schwab@suse.de>
19618 * stor-layout.c (excess_unit_span): Only define if used.
19620 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
19622 * gcc/doc/invoke.texi (Optimization Options): List -O levels
19623 for each optimization flag.
19625 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19627 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19629 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19631 * doc/bugreport.texi: Use @command instead of @code for commands.
19632 * doc/collect2.texi: Likewise.
19633 * doc/headerdirs.texi: Likewise.
19634 * doc/invoke.texi: Likewise.
19635 * doc/standards.texi: Likewise.
19636 * doc/tm.texi: Likewise.
19637 * doc/trouble.texi: Likewise.
19639 2003-01-24 Nick Clifton <nickc@redhat.com>
19641 * config/arm/arm.c (use_return_insn): Do not use a single return
19642 instruction for interrupt handelrs which have to create a stack
19644 (arm_expand_prologue): Do not pre-bias the return address of
19645 interrupt handlers which create a stack frame.
19647 2003-01-24 Nick Clifton <nickc@redhat.com>
19649 * Add sh2e support:
19651 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
19653 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19654 med_cbranches. Fix logic in short_cbranches.
19656 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
19658 * config/sh/sh.md (delay for cbranch): Don't annul delay
19660 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19661 cbranch with unfilled delay slot on SH2e.
19662 (output_branch): Fill with a nop the delay slot of a
19663 branch that required a delay slot but didn't get one.
19665 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
19667 * doc/invoke.texi (SH options): Document -m2e.
19668 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19669 * config/sh/lib1funcs.asm: Likewise.
19670 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19671 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19673 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19675 (SH3E_BIT): Renamed to...
19676 (SH_E_BIT): ... this. Replace all uses.
19677 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19678 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19679 (TARGET_SWITCHES): Added 2e.
19680 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19681 (processor_type): Added PROCESSOR_SH2E.
19682 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19683 TARGET_SH2E, except in sqrtsf2_i.
19684 (attribute cpu): Added sh2e.
19685 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19686 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19687 * config.gcc: Add sh2e target support.
19689 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
19691 Rename -W to -Wextra.
19692 * c-decl.c: Update comments.
19693 * c-typeck.c: Likewise.
19694 * flags.h: Likewise.
19695 * function.c: Likewise.
19696 * stmt.c: Likewise.
19697 * toplev.c: Update comments.
19698 (W_options): Add 'extra'.
19699 (display_help): Remove '-W'.
19700 (decode_W_option): Special warn_uninitialized treatment in the case
19702 * doc/invoke.texi: Update with new entries.
19704 2003-01-23 Richard Henderson <rth@redhat.com>
19706 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19707 in no-else-block case. Add commentary.
19709 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19711 * configure.in: Revert last change.
19713 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19715 * configure.in: Don't include ansidecl.h in tconfig.h.
19716 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
19717 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19720 * configure: Regenerate.
19722 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19725 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19726 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19729 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19731 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19733 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
19735 * genattrtab.c (write_attr_get): Mark 'insn' paramter
19736 as ATTRIBUTE_UNUSED.
19738 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
19740 * arm.c (thumb_base_register_rtx_p): New function.
19741 (thumb_index_register_rtx_p): New function.
19742 (thumb_legitimate_address_p): New function.
19743 (thumb_legitimate_offset_p): New function.
19744 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
19745 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
19747 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19748 (THUMB_LEGITIMATE_OFFSET): Delte.
19749 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19750 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19751 (thumb_legitimate_offset_p): Likewise.
19753 2003-01-23 Andreas Schwab <schwab@suse.de>
19755 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19757 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19759 * fixinc/Makefile.in (FL_LIST): Revert last change.
19761 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19764 * invoke.texi (ftest-coverage): Fix broken cross-reference.
19765 Change @code to @command for gcov command.
19767 * gcc.texi: Adjust title of gcov section.
19769 * gcov.texi: Likewise.
19771 2003-01-22 Roger Sayle <roger@eyesopen.com>
19773 PR optimization/8423
19774 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19775 its argument is constant, or 0 if !flag_gcse.
19776 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19777 if it's argument is constant.
19778 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19779 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19780 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19781 * builtins.c (purge_builtin_constant_p): New function to force
19782 instantiation of any remaining CONSTANT_P_RTX nodes.
19783 * rtl.h (purge_builtin_constant_p): Prototype here.
19784 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19785 pass after GCSE and before loop.
19786 (flag_gcse): No longer static.
19787 * flags.h (flag_gcse): Prototype here.
19789 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19791 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19792 introduced by last change.
19794 2003-01-22 Andreas Schwab <schwab@suse.de>
19796 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19798 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
19800 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19801 request a scratch reg on H8S when the shift count is 8.
19803 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19805 * config/s390/s390-protos.h (preferred_la_operand_p):
19806 Remove second parameter.
19807 * config/s390/s390.c (preferred_la_operand_p): Likewise.
19808 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19809 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19810 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19811 Add peepholes to transform ADD to LOAD ADDRESS.
19813 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
19815 * arm.c (arm_address_register_rtx_p): New function.
19816 (arm_legitimate_address_p): New function.
19817 (arm_legitimate_index_p): New function.
19818 (legitimize_pic_address): Use arm_legitimate_index_p.
19819 * arm-protos.h (arm_legtimate_address_p): Add prototype.
19820 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19821 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19823 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
19825 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19826 * config/s390/2064.md (define_bypass): Correct 'Load' and
19827 'Load-address' bypass values.
19829 2003-01-22 Andreas Schwab <schwab@suse.de>
19831 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19833 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19835 * genautomata.c (output_internal_insn_latency_func,
19836 output_print_reservation_func): Short circuit when there is no
19837 automaton to generate code for.
19839 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19841 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19842 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19844 2003-01-21 Geoffrey Keating <geoffk@apple.com>
19846 * config/rs6000/rs6000.md: Remove warning.
19847 (builtin_setjmp_receiver): Likewise.
19848 * config/darwin.c (update_stubs): Slightly improve terrible hack
19849 with identifiers. Add comment pointing out problems with it.
19850 (update_non_lazy_ptrs): Likewise.
19852 2003-01-21 Richard Henderson <rth@redhat.com>
19854 * dwarf2out.c (lookup_filename): Fix printf format warning.
19855 * system.h (fread_unlocked, fwrite_unlocked): Undef.
19857 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19858 (fixincl.o-warn, gnu-regex.o-warn): New.
19859 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19860 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19861 * fixinc/fixincl.c (process): Fix printf format warning.
19863 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19865 * dwarf2out (output_file_names): Don't crash if called
19866 with empty file_table.
19868 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19870 * genautomata.c (output_internal_insn_latency_func): Add
19871 missing break statement to generated code.
19873 2003-01-21 Roger Sayle <roger@eyesopen.com>
19875 * stmt.c (same_case_target_p): New function to determine whether
19876 two case labels branch to the same target. Split out from...
19877 (group_case_nodes): ... here. Use same_case_target_p instead.
19878 (strip_default_case_nodes): Remove explicit case nodes
19879 that branch to the default destination.
19880 (expand_end_case_type): Call strip_default_case_nodes after
19881 group_case_nodes, to simplify the case-list before we count it.
19882 Only generate table_label RTX when actually needed. Try to share
19883 thiscase->exit_label and thiscase->data.case_stmt.default_label
19884 when a switch has no explicit default case. Simplify test for
19887 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19889 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19891 (*negsf2_h8300hs): Likewise.
19892 (*addsi3_lshiftrt_16_zexthi): Likewise.
19893 (*iorhi3_lshiftrt_8): Likewise.
19895 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19897 * dwarf2out.c (fde_table_in_use): Mark GTY.
19898 (dwarf2out_cfi_label_num): New variable, marked GTY.
19899 (dwarf2out_cfi_label): Use it instead of static label_num.
19900 * emit-rtl.c (label_num): Mark GTY.
19902 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19904 * config/h8300/h8300.c (output_plussi): Support H8/300.
19905 (compute_plussi_length): Likewise.
19906 (compute_plussi_cc): Likewise.
19907 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19908 output assembly instructions.
19910 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19912 * calls.c (fix_unsafe_tree): Prototype.
19914 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19915 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19916 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19917 c-parse.o-warn): Add -Wno-error.
19918 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19920 * configure.in (--enable-werror): Add new flag.
19921 * doc/install.texi (--enable-werror): Document.
19922 * configure: Regenerate.
19924 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19926 2003-01-21 Andreas Schwab <schwab@suse.de>
19928 * genautomata.c (output_internal_insn_latency_func): Fix missing
19929 close paren in output.
19931 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19933 * genautomata.c: Space savings in generated code:
19934 (output_dfa_insn_code_func): Split out the table-enlargement
19935 path to an out-of-line static function, dfa_insn_code_enlarge.
19936 (output_internal_insn_latency_func): Use a lookup table for the
19938 (output_print_reservation_func): Use a lookup table for the
19941 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
19944 * calls.c (fix_unsafe_tree): Split out from ...
19945 (expand_call): ... here. Use it on the function address too.
19947 2003-01-20 Richard Henderson <rth@redhat.com>
19949 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19951 2003-01-20 Richard Henderson <rth@redhat.com>
19954 * stmt.c (expand_asm_operands): Validize memory operands.
19956 2003-01-20 Richard Henderson <rth@redhat.com>
19959 * ifcvt.c (noce_process_if_block): Correct arguments to
19960 modified_between_p for no-else-block case.
19962 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19964 * config/h8300/h8300.c (const_costs): Remove a warning.
19965 (output_plussi): Likewise.
19966 (compute_plussi_length): Likewise.
19967 (compute_plussi_cc): Likewise.
19969 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19971 * config/h8300/h8300.md (addsi_h8300): Remove the last
19974 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19976 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19978 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19980 * system.h (__NO_STRING_INLINES): Define.
19982 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19984 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19985 is not a scalar int mode.
19987 2003-01-20 Roger Sayle <roger@eyesopen.com>
19989 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19990 insn's notes following a substitution inside a libcall.
19992 2003-01-20 Zack Weinberg <zack@codesourcery.com>
19994 * configure.in: Check for system-provided 'uchar' type.
19995 * configure, config.in: Regenerate.
19996 * cpphash.h: Only typedef 'uchar' if the system doesn't.
19998 2003-01-20 Richard Henderson <rth@redhat.com>
20000 * expr.h (MUST_PASS_IN_STACK): Move implementation...
20001 * calls.c (default_must_pass_in_stack): ... here.
20003 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
20005 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
20007 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
20009 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
20010 Wrap up definition of `insn_alts'.
20012 * genattrtab.c (main): Wrap up `insn_alts'.
20014 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20016 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
20018 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
20020 * config.in, configure: Regenerate.
20022 2003-01-20 Nick Clifton <nickc@redhat.com>
20024 * config/arm/arm.md (sibcall_epilogue): Add an
20025 UNSPEC_PROLOGUE_USE to prevent the link register from being
20028 2003-01-20 Jan Hubicka <jh@suse.cz>
20030 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
20032 2003-01-20 Andreas Schwab <schwab@suse.de>
20034 * system.h: Don't declare strsignal if the decl test hasn't been
20037 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
20039 * config/h8300/h8300.c (notice_update_cc): Don't assume that
20040 recog_data.operands[0] is always associated with cc0.
20042 2003-01-19 David Edelsohn <edelsohn@gnu.org>
20044 * collect2.c (ldgetname): Expand declaration to prototype.
20045 * read-rtl.c (atoll): Add prototype.
20046 * system.h (strsignal): Also declare if no declaration found.
20048 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
20050 * config.gcc (mips64*-*-linux*): Added.
20051 * config/mips/linux64.h, config/mips/t-linux64: New file.
20052 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
20053 * config/mips/mips.c (override_options): Use it.
20054 * config/mips/mips.h (TARGET_SWITCHES): Added...
20055 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
20056 * Makefile.in (SPECS): New.
20057 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
20058 * gcc.c (process_command): Move self-spec processing past spec
20060 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
20061 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
20064 * doc/invoke.texi (-mabi-fake-default): Document.
20066 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
20068 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
20069 z_reg, z_reg_qi): Declare static and GTY().
20071 (create_regs_rtx): Don't create da_reg.
20072 ("gt-m68hc11.h"): Include for GTY roots.
20073 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
20075 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
20076 (m68hc11_soft_tmp_reg): Likewise.
20077 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
20079 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
20081 * basic-block.h: Fix comment formatting.
20082 * calls.c: Likewise.
20083 * combine.c: Likewise.
20084 * convert.c: Likewise.
20085 * gcov.c: Likewise.
20086 * haifa-sched.c: Likewise.
20087 * libgcc2.c: Likewise.
20088 * loop.c: Likewise.
20089 * profile.c: Likewise.
20090 * system.h: Likewise.
20092 2003-01-18 Roger Sayle <roger@eyesopen.com>
20094 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
20096 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20098 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
20100 2003-01-17 Dale Johannesen <dalej@apple.com>
20102 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
20103 (*floatunssidf2_internal): Ditto.
20105 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20107 * alias.c: Fix comment typos.
20108 * basic-block.h: Likewise.
20109 * c-common.c: Likewise.
20110 * c-common.h: Likewise.
20111 * c-decl.c: Likewise.
20112 * c-opts.c: Likewise.
20113 * c-pragma.c: Likewise.
20114 * c-pretty-print.h: Likewise.
20116 * cfganal.c: Likewise.
20117 * cfgbuild.c: Likewise.
20118 * cfgcleanup.c: Likewise.
20119 * cfglayout.c: Likewise.
20120 * cfgrtl.c: Likewise.
20121 * convert.c: Likewise.
20122 * cpphash.h: Likewise.
20123 * cpplex.c: Likewise.
20124 * cpplib.h: Likewise.
20126 * diagnostic.c: Likewise.
20127 * diagnostic.h: Likewise.
20128 * dwarf2.h: Likewise.
20130 2003-01-17 Stan Shebs <shebs@apple.com>
20132 * config/darwin-protos.h: Forward-declare struct cpp_reader.
20134 2003-01-17 Douglas B Rupp <rupp@gnat.com>
20136 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20137 mistake in last checkin.
20139 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20141 * et-forest.c: Fix comment typos.
20142 * et-forest.h: Likewise.
20143 * except.c: Likewise.
20144 * expr.c: Likewise.
20145 * flags.h: Likewise.
20146 * flow.c: Likewise.
20148 * gcse.c: Likewise.
20149 * genattrtab.c: Likewise.
20150 * genautomata.c: Likewise.
20151 * gengtype.c: Likewise.
20152 * genrecog.c: Likewise.
20153 * global.c: Likewise.
20154 * gthr-rtems.h: Likewise.
20156 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20158 * i386.c (x86_function_profiler): Fix format specifier.
20160 2003-01-17 Richard Henderson <rth@redhat.com>
20162 * gengtype.c (walk_type): Allow paramN_is.
20164 2003-01-17 Nick Clifton <nickc@redhat.com>
20166 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20168 2003-01-16 Richard Henderson <rth@redhat.com>
20170 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20172 2003-01-16 Richard Henderson <rth@redhat.com>
20174 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20175 (alpha_next_sequence_number): Likewise.
20176 (alpha_this_literal_sequence_number): Likewise.
20177 (alpha_this_gpdisp_sequence_number): Likewise.
20178 (struct alpha_funcs, alpha_funcs_num): Likewise.
20179 (struct alpha_links): Fix branch merge error.
20180 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20182 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
20184 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
20187 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
20189 * ifcvt.c: Fix comment typos.
20191 * libgcc2.c: Likewise.
20192 * local-alloc.c: Likewise.
20193 * loop.c: Likewise.
20194 * predict.c: Likewise.
20195 * ra-build.c: Likewise.
20197 * ra-colorize.c: Likewise.
20199 * ra-rewrite.c: Likewise.
20200 * regmove.c: Likewise.
20201 * reload.h: Likewise.
20202 * rtlanal.c: Likewise.
20203 * toplev.c: Likewise.
20204 * tree.h: Likewise.
20205 * unwind-dw2-fde-glibc.c: Likewise.
20206 * vmsdbgout.c: Likewise.
20208 2003-01-16 Richard Henderson <rth@redhat.com>
20210 * dwarf2out.c (struct file_table): Remove.
20211 (FILE_TABLE_INCREMENT): Remove.
20212 (file_table): Make a varray; mark for GC. Update all users.
20213 (file_table_last_lookup_index): Extract from struct file_table.
20214 (output_file_names): Fix unsigned compare warnings.
20215 (add_name_attribute): Remove inline marker.
20216 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20217 (lookup_filename): Don't manage size of file_table.
20218 (init_file_table): Allocate file_table with GC.
20219 (dwarf2out_init): Don't record main_input_filename here.
20220 (dwarf2out_finish): Do it here instead.
20222 2003-01-16 Bruce Korb <bkorb@gnu.org>
20224 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20226 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
20228 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20229 instead of rotldi3_mextr.
20231 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
20233 * haifa-sched.c (move_insn): Restore moving all schedule group.
20234 (set_priorities): Restore taking SCHED_GROUP_P into account.
20236 * sched-deps.c (add_dependence): Restore processing the last group
20238 (remove_dependence, group_leader): Restore the functions.
20239 (set_sched_group_p): Restore adding dependencies from previous insn
20241 (compute_forward_dependences): Restore usage of group_leader.
20243 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20246 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
20248 (can_schedule_ready_p): Ditto.
20249 (add_branch_dependences): Restore skipping over the group insns.
20251 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20253 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
20254 68HC12 pre/post inc/dec side effects.
20256 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20258 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
20260 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
20262 * sh.md (mshflo_w_x): Fix description of operation.
20264 2003-01-16 Zack Weinberg <zack@codesourcery.com>
20266 * config/rs6000/rs6000.h: Mention Altivec registers in
20267 commentary. Fix typo.
20269 2003-01-16 David Edelsohn <edelsohn@gnu.org>
20271 * config/rs6000/rs6000.md (movti_string): Remove clobber.
20272 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
20273 generate PARALLEL with clobber for TARGET_POWER.
20275 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20277 * ra-colorize.c (colorize_one_web): Initialize variable.
20278 * regmove.c (fixup_match_1): Likewise.
20279 * reload1.c (reload_as_needed): Likewise.
20280 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20282 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20284 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20286 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20288 * dbxout.c (lastfile, cwd): Fix `unused' warning.
20289 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20290 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20291 is_main_source, file_table, decl_die_table_in_use,
20292 abbrev_die_table_in_use, line_info_table_in_use,
20293 separate_line_info_table_in_use, pubname_table_in_use,
20294 arange_table_in_use, ranges_table_in_use,
20295 current_function_has_inlines): Likewise.
20296 * flow.c (life_analysis): Likewise.
20297 * genemit.c (gen_insn): Likewise.
20298 * protoize.c (cplus_suffix): Likewise.
20300 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20301 * arm.h (ROUND_UP_WORD): Likewise.
20303 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20305 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20306 init_emit_once): Likewise.
20307 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20309 * function.c (assign_stack_temp_for_type): Likewise.
20310 * loop.c (loop_invariant_p): Likewise.
20311 * recog.c (push_operand): Likewise.
20312 * regclass.c (init_reg_sets_1): Likewise.
20313 * reload.c (update_auto_inc_notes): Likewise.
20314 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20315 * stmt.c (expand_asm_operands): Likewise.
20316 * stor-layout.c (start_record_layout): Likewise.
20318 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20320 * config/c4x/c4x.md (epilogue): Correct last patch.
20322 2003-01-15 Richard Henderson <rth@redhat.com>
20324 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20325 also check that GP is being used.
20326 (alpha_find_lo_sum_using_gp): New.
20327 (alpha_does_function_need_gp): Use get_attr_usegp.
20328 * config/alpha/alpha-protos.h: Update.
20329 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
20332 2003-01-15 Roger Sayle <roger@eyesopen.com>
20334 * gcse.c (one_cprop_pass): Change function arguments to take both
20335 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20336 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20337 (bypass_jumps): New function to perform separate jump bypassing pass.
20338 * rtl.h (bypass_jumps): Add function prototype.
20339 * timevar.def (TV_BYPASS): New timing variable.
20340 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20341 (dump_file): New entry for the bypass RTL dump file.
20342 (rest_of_compilation): Insert new jump bypassing optimization
20344 * doc/passes.texi: Document new pass.
20346 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20348 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20349 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20350 * pa.h (TARGET_SOM_SDEF): Define.
20351 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20353 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20355 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
20356 allocate 4-bytes of locals on 68HC11.
20357 (expand_epilogue): Likewise.
20358 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20360 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20362 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20363 and -mshort-double to the assembler to specify the ABI.
20364 (LINK_SPEC): Likewise.
20365 (CPP_SPEC): Pass HCS12 specific define.
20366 (MASK_M68S12): New define.
20367 (TARGET_M68S12): Likewise.
20368 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20369 (TARGET_VERSION): Update.
20370 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20371 (LINK_SPEC): Update.
20372 (ASM_SPEC): Update.
20373 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20374 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20376 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20378 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20381 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20383 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20384 flag before setting it.
20386 2003-01-15 Roger Sayle <roger@eyesopen.com>
20388 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
20389 when loop condition is known true, i.e. "while (1) { ... }".
20390 (genrtl_for_stmt): Similarly for "for" statements.
20392 2003-01-15 Roger Sayle <roger@eyesopen.com>
20394 * real.c (real_sqrt): Return a bool result indicating whether
20395 a floating point exception or trap should be raised.
20396 * real.h (real_sqrt): Update function prototype.
20397 * builtins.c (fold_builtin): Only fold non-trapping square
20398 roots unless we're ignoring errno and trapping math.
20400 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
20402 * expr.h (emit_conditional_add): Add PARAMS to declaration.
20403 * gengtype-lex.l (malloc, realloc): Move defines after include of
20404 system.h. Remove duplicate include of system.h.
20406 2003-01-15 Roger Sayle <roger@eyesopen.com>
20409 * optabs.c (expand_unop): When manipulating the FP sign bit
20410 using integer operations, account for targets with different
20411 integer and FP word orders.
20412 (expand_abs): Likewise.
20414 2003-01-15 David Edelsohn <edelsohn@gnu.org>
20416 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20417 file extension in section name.
20419 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20421 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20424 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20426 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20427 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20428 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20429 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20431 2003-01-15 Jan Hubicka <jh@suse.cz>
20434 * global.c (struct allocno): Add no_stack_reg.
20435 (global_conflicts): Set no_stack_reg.
20436 (find_reg): Use it.
20438 * convert.c (convert_to_real): Fold - and abs only when profitable.
20439 * fold-const.c (fold): Fold truncates in - and abs.
20441 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20443 Segher Boessenkool <segher@koffie.nl>
20445 * predict.c (real_inv_br_prob_base): New variable.
20446 (propagate_freq): Use multiply by reciprocal instead of
20447 division. Don't divide by 1.0 at all.
20448 (estimate_bb_frequencies): Similar.
20450 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20452 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20453 * configure: Rebuilt.
20455 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
20457 * config/s390/s390.c (s390_safe_attr_type): New function.
20458 (s390_use_dfa_pipeline_interface): New function, return true for z900.
20459 (s390_issue_rate): New function.
20460 (s390_agen_dep_p): New function.
20461 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20462 (s390_adjust_cost): Return 'cost' if new DFA is used.
20463 (s390_adjust_priority): Delete function.
20464 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20465 * config/s390/s390.md (atype attribute): Attribute 'atype' default
20466 determined by 'op_type'.
20467 (type attribute): Added more type attributes.
20468 * config/s390/2064.md: New DFA description for z900 pipeline.
20470 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20472 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20473 forced to memory. Fixes PR bootstrap/9036.
20475 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20476 to set $gp before the call.
20478 2003-01-14 Richard Henderson <rth@redhat.com>
20480 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20481 for force_const_mem.
20483 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20485 * genattr.c (main): Rearrange output to avoid prototype warning.
20486 * genautomata.c (transform_3): Fix ambiguous-else warning.
20487 * local-alloc.c (requires_inout): Add parentheses around
20488 assignment used as truth-value.
20489 * timevar.c: Move system includes above local includes. Include
20491 * Makefile.in (timevar.o): Depend on toplev.h.
20493 2003-01-14 Denis Chertykov <denisc@overta.ru>
20495 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20496 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20498 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20500 (TARGET_ATTRIBUTE_TABLE): New macro.
20501 (valid_machine_type_attribute): Remove.
20502 (valid_machine_decl_attribute): Remove.
20503 (ip2k_handle_progmem_attribute): New function.
20504 (ip2k_handle_fndecl_attribute): New function.
20506 2003-01-10 Andrew Haley <aph@redhat.com>
20508 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20509 registers to be in correct order. Add rip.
20511 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
20513 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20514 (*iorsi3_and_lshiftrt_9_sb): Likewise.
20516 2003-01-14 Jan Hubicka <jh@suse.cz>
20518 * convert.c (strip_float_extensions): Look for narrowest type handling
20521 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
20523 * convert.c (strip_float_extensions): Make global.
20524 * tree.h (strip_float_extensions): Declare.
20526 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
20528 * timevar.def: define TV_NAME_LOOKUP.
20529 * timevar.c (timevar_pop): Be verbose when aborting.
20531 2003-01-13 Andreas Schwab <schwab@suse.de>
20533 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20534 $(parsedir), just move the temporary file at the end.
20535 ($(parsedir)/gengtype-yacc.c): Likewise.
20537 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
20539 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20540 ${ac_tool_prefix} to ADAC or CC. Protect them from word
20542 * configure: Rebuilt.
20544 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20546 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20547 internal_mcount): Don't use PARAMS.
20548 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20550 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20552 2003-01-13 Andreas Schwab <schwab@suse.de>
20554 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20557 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
20559 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20560 (*iorsi3_and_lshiftrt_n_sb): Likewise.
20562 2003-01-12 Mark Mitchell <mark@codesourcery.com>
20565 * c-lex.c (c_lex): Set the token value to error_mark_node for
20566 invalid numeric constants.
20568 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20570 * c-pch.c (asm_file_startpos): Change to `long'.
20571 (pch_init): Use ftell, not ftello.
20572 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20573 Use `long' instead of `off_t'.
20574 (c_common_read_pch): Likewise.
20575 * ggc-common.c (gt_pch_save): Use long/ftell instead of
20578 2003-01-12 Alan Modra <amodra@bigpond.net.au>
20580 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20582 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
20584 * arm-protos.h (struct cpp_reader): Add declaration.
20586 2003-01-11 Jan Hubicka <jh@suse.cz>
20589 * i386.c (output_fp_compare): Fix typo.
20591 2003-01-10 David Edelsohn <edelsohn@gnu.org>
20593 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20595 2003-01-10 Geoffrey Keating <geoffk@apple.com>
20597 * Makefile.in (parsedir): New variable.
20598 (docobjdir): New variable.
20599 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
20600 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20601 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20602 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
20603 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
20605 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20606 objc.maintainer-clean): Use parsedir.
20608 * varasm.c (struct constant_descriptor_rtx): Remove unused
20611 * toplev.c (documented_lang_options): Document -Winvalid-pch.
20613 2003-01-10 Richard Henderson <rth@redhat.com>
20615 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20616 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20618 2003-01-10 Richard Henderson <rth@redhat.com>
20620 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20621 not INTEGRAL_MODE_P when widening extensions.
20623 2003-01-10 Richard Henderson <rth@redhat.com>
20625 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20627 2003-01-10 Geoffrey Keating <geoffk@apple.com>
20629 * ggc-page.c (ggc_collect): Avoid overflow computing
20632 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20633 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
20635 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20637 2003-01-10 Jan Hubicka <jh@suse.cz>
20639 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20640 with weird operands.
20642 2003-01-10 Dale Johannesen <dalej@apple.com>
20644 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
20645 parameters. Call check_sibcall_argument_overlap if indicated.
20646 (check_sibcall_argument_overlap): Add mark_stored_args_map
20647 parameter. Don't mark parameter area as clobbered if not set.
20648 (expand_call): Adjust calls to above.
20650 2003-01-10 Kelley Cook <kelleycook@comcast.net>
20652 * configure.in (linker read-only and read-write section mixing):
20653 Squelch some assembler warnings.
20654 * configure: Likewise.
20656 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
20658 * doc/invoke.texi: Document -mtune, delete -mcpu
20659 option for S/390 and zSeries.
20660 * config/s390/s390.c (s390_tune_string) New variable.
20661 (s390_cpu_string) Delete variable.
20662 (override_options): Use s390_tune_string instead of
20664 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20666 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
20668 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20670 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
20672 * jump.c (next_nonnote_insn_in_loop): New function.
20673 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20675 (duplicate_loop_exit_test). Likewise.
20677 2003-01-09 Geoffrey Keating <geoffk@apple.com>
20679 Merge from pch-branch:
20681 2003-01-06 Geoffrey Keating <geoffk@apple.com>
20683 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20686 2002-12-24 Geoffrey Keating <geoffk@apple.com>
20688 * cpplib.c (count_registered_pragmas): New function.
20689 (save_registered_pragmas): New function.
20690 (_cpp_save_pragma_names): New function.
20691 (restore_registered_pragmas): New function.
20692 (_cpp_restore_pragma_names): New function.
20693 * cpphash.h (_cpp_save_pragma_names): Prototype.
20694 (_cpp_restore_pragma_names): Likewise.
20695 * cpppch.c (struct save_macro_item): Split from save_macro_data.
20696 (struct save_macro_data): New field 'saved_pragmas'.
20697 (save_macros): Update for changes to struct save_macro_data.
20698 (cpp_prepare_state): Call _cpp_save_pragma_names, update
20699 for changes to struct save_macro_data.
20700 (cpp_read_state): Call _cpp_restore_pragma_names, update
20701 for changes to struct save_macro_data.
20703 * cpppch.c (cpp_read_state): Restore the hashtable references
20706 * tree.h (built_in_decls): Mark for PCH.
20708 * dbxout.c (lastfile): Don't mark for PCH.
20710 * ggc.h: Document PCH calls into memory managers.
20712 2002-12-18 Geoffrey Keating <geoffk@apple.com>
20714 * doc/invoke.texi (Precompiled Headers): Document the
20715 directory form of PCH.
20716 * cppfiles.c (validate_pch): New function.
20717 (open_file_pch): Search suitably-named directories for PCH files.
20719 2002-12-14 Geoffrey Keating <geoffk@apple.com>
20721 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20723 (Type Information): Mention that the information is also
20724 used to implement PCH.
20725 * doc/passes.texi (Passes): Improve documentation of
20726 language-specific files.
20728 2002-12-11 Geoffrey Keating <geoffk@apple.com>
20730 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20731 (struct walk_type_data): Add reorder_fn field.
20732 (walk_type): Process 'reorder' option.
20733 (write_types_process_field): Reorder parameters to gt_pch_note_object,
20734 call reorder_note_routine.
20735 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20736 (ggc_wtd): Update for change to struct write_types_data.
20737 (pch_wtd): Likewise.
20738 * ggc.h (gt_pch_note_object): Reorder parameters.
20739 (gt_handle_reorder): New definition.
20740 (gt_pch_note_reorder): New prototype.
20741 * ggc-common.c (struct ptr_data): Add reorder_fn.
20742 (gt_pch_note_object): Reorder parameters.
20743 (gt_pch_note_reorder): New.
20744 (gt_pch_save): Call reorder_fn.
20745 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20747 * dbxout.c (cwd): Don't mark for PCH.
20749 2002-12-09 Geoffrey Keating <geoffk@apple.com>
20751 * gengtype.c (finish_root_table): Fix some warnings.
20752 (write_root): Handle TYPE_STRING.
20753 * ggc.h (gt_ggc_m_S): Add prototype.
20754 * stringpool.c (gt_ggc_m_S): New function.
20756 2002-11-30 Geoffrey Keating <geoffk@apple.com>
20758 * dwarf2out.c (dw2_string_counter): New.
20759 (AT_string_form): Use it.
20760 (same_dw_val_p): Update for removal of hashtable.h hash tables.
20762 2002-11-22 Geoffrey Keating <geoffk@apple.com>
20764 * dbxout.c: Include gt-dbxout.h.
20765 (lastfile): Mark for PCH/GGC.
20767 (struct typeinfo): Likewise.
20768 (typevec): Likewise.
20769 (typevec_len): Likewise.
20770 (next_type_number): Likewise.
20771 (struct dbx_file): Likewise.
20772 (current_file): Likewise.
20773 (next_file_number): Likewise.
20774 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20775 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20776 (dbxout_end_source_file): Don't free struct dbx_file.
20777 (dbxout_type): Use GGC to allocate typevec.
20778 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20779 (GTFILES): Add dbxout.c.
20780 (gt-dbxout.h): New rule.
20782 * Makefile.in (c-pch.o): Add debug.h as dependency.
20783 * c-pch.c: Include debug.h.
20784 (pch_init): Call start_source_file to keep nesting right.
20785 (c_common_read_pch): Add orig_name parameter. Call
20786 start_source_file debug hook. Call end_source_file debug hook.
20787 * c-common.h (c_common_read_pch): Update prototype.
20788 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20790 * cppfiles.c (struct include_file): Add new field `header_name'.
20791 (find_or_create_entry): Default it to `name'.
20792 (open_file_pch): Set it to the original header file searched for.
20793 (stack_include_file): Don't stack an empty buffer, just handle
20794 PCH files immediately. Pass header_name field to read_pch callback.
20796 2002-11-19 Geoffrey Keating <geoffk@apple.com>
20798 * function.c (funcdef_no): Mark to be saved in a PCH.
20800 2002-11-15 Geoffrey Keating <geoffk@apple.com>
20802 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20804 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20806 2002-11-14 Geoffrey Keating <geoffk@apple.com>
20808 * optabs.h (code_to_optab): Add GTY marker.
20810 2002-11-13 Geoffrey Keating <geoffk@apple.com>
20812 * Makefile.in (GTFILES): Add cpplib.h.
20813 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20814 * c-decl.c (build_compound_literal): Don't use var_labelno.
20815 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20816 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20817 * varasm.c (const_labelno): Use gengtype to mark.
20818 (var_labelno): Likewise.
20819 (in_section): Likewise.
20820 (in_named_name): Likewise.
20821 (struct in_named_entry): Likewise.
20822 (in_named_htab): Likewise.
20823 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20824 (init_varasm_once): Use GGC to allocate in_named_htab.
20825 * config/darwin.c (current_pic_label_num): Mark for PCH.
20827 2002-11-11 Geoffrey Keating <geoffk@apple.com>
20829 * ggc-simple.c (init_ggc_pch): New stub procedure.
20830 (ggc_pch_count_object): Likewise.
20831 (ggc_pch_total_size): Likewise.
20832 (ggc_pch_this_base): Likewise.
20833 (ggc_pch_alloc_object): Likewise.
20834 (ggc_pch_prepare_write): Likewise.
20835 (ggc_pch_write_object): Likewise
20836 (ggc_pch_finish): Likewise.
20837 (ggc_pch_read): Likewise.
20839 2002-11-08 Geoffrey Keating <geoffk@apple.com>
20841 * c-pch.c (c_common_write_pch): Write the macro definitions after
20843 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
20844 definitions after the GCed data.
20845 * cpplib.c (save_macros): New.
20847 (cpp_write_pch_deps): Split out of cpp_write_pch.
20848 (cpp_write_pch_state): Split out of cpp_write_pch.
20849 (cpp_write_pch): Delete.
20850 (struct save_macro_data): Delete.
20851 (cpp_prepare_state): New.
20852 (cpp_read_state): Erase and restore initial macro definitions.
20853 * cpplib.h (struct save_macro_data): Forward-declare.
20854 (cpp_write_pch_deps): Prototype.
20855 (cpp_write_pch_state): Prototype.
20856 (cpp_write_pch): Delete prototype.
20857 (cpp_prepare_state): Prototype.
20858 (cpp_read_state): Add fourth argument.
20860 2002-11-04 Geoffrey Keating <geoffk@apple.com>
20862 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20863 (write_array): Remove warning.
20865 * gengtype.c (contains_scalar_p): New.
20866 (finish_root_table): Add the table to all languages, even if it's
20868 (write_roots): Output gt_pch_scalar_rtab.
20869 * ggc-common.c (gt_pch_save): Write out scalars.
20870 (gt_pch_restore): Read scalars back.
20872 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20873 (struct page_entry): Delete pch_page field.
20874 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20875 (clear_marks): Likewise.
20876 (sweep_pages): Likewise.
20877 (poison_pages): Likewise.
20878 (ggc_print_statistics): Likewise.
20879 (ggc_pch_read): Don't free objects read from a PCH.
20880 Properly set up in_use_p and page_tails.
20882 2002-10-25 Geoffrey Keating <geoffk@apple.com>
20884 * gengtype.c (struct write_types_data): New.
20885 (struct walk_type_data): Make `cookie' const; add extra
20886 prev_val item; add `orig_s' field.
20887 (walk_type): Update prev_val[3].
20888 (write_types_process_field): New.
20889 (write_func_for_structure): Take write_types_data structure.
20890 (write_types): New.
20893 (write_types_local_process_field): New.
20894 (gc_mark_process_field): Delete.
20895 (write_local_func_for_structure): New.
20896 (gc_mark_func_name): Delete.
20897 (write_gc_types): Delete.
20898 (write_local): New.
20899 (finish_root_table): Don't include 'ggc_' in PFX.
20900 (write_root): Rename from write_root. Fill pchw field of structures.
20901 (write_array): New.
20902 (write_roots): Rename from write_gc_roots. Split out to write_array.
20903 Update to changes to other routines. Write gt_pch_cache_rtab table.
20904 (main): Write PCH walking routines.
20905 * ggc-common.c: Include toplev.h, sys/mman.h.
20906 (ggc_mark_roots): For cache hashtables, also mark the hash table
20907 and the array of entries.
20908 (saving_htab): New.
20909 (struct ptr_data): New.
20910 (POINTER_HASH): New.
20911 (gt_pch_note_object): New.
20912 (saving_htab_hash): New.
20913 (saving_htab_eq): New.
20914 (struct traversal_state): New.
20917 (compare_ptr_data): New.
20918 (relocate_ptrs): New.
20919 (write_pch_globals): New.
20920 (struct mmap_info): New.
20921 (gt_pch_save): New.
20922 (gt_pch_restore): New.
20923 * ggc-page.c (ROUND_UP_VALUE): New.
20925 (struct page_entry): Add field `pch_page'.
20926 (init_ggc): Use ROUND_UP.
20927 (struct ggc_pch_data): Declare.
20928 (init_ggc_pch): New.
20929 (ggc_pch_count_object): New.
20930 (ggc_pch_total_size): New.
20931 (ggc_pch_this_base): New.
20932 (ggc_pch_alloc_object): New.
20933 (ggc_pch_prepare_write): New.
20934 (ggc_pch_write_object): New.
20935 (ggc_pch_finish): New.
20936 (ggc_pch_read): New.
20937 * ggc.h (gt_pointer_operator): New.
20938 (gt_note_pointers): New.
20939 (gt_pch_note_object): New prototype.
20940 (gt_pointer_walker): New.
20941 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20942 (LAST_GGC_ROOT_TAB): Update.
20943 (gt_pch_cache_rtab): Declare.
20944 (gt_pch_scalar_rtab): Declare.
20945 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20946 (LAST_GGC_CACHE_TAB): Update.
20947 (gt_pch_save_stringpool): Declare.
20948 (gt_pch_restore_stringpool): Declare.
20949 (gt_pch_p_S): Declare.
20950 (gt_pch_n_S): Declare.
20951 (struct ggc_pch_data): Forward-declare.
20952 (init_ggc_pch): Declare.
20953 (ggc_pch_count_object): Declare.
20954 (ggc_pch_total_size): Declare.
20955 (ggc_pch_this_base): Declare.
20956 (ggc_pch_alloc_object): Declare.
20957 (ggc_pch_prepare_write): Declare.
20958 (ggc_pch_write_object): Declare.
20959 (ggc_pch_finish): Declare.
20960 (ggc_pch_read): Declare.
20961 (gt_pch_save): Declare.
20962 (gt_pch_restore): Declare.
20963 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20964 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20965 const_double_htab, mem_attrs_htab using GGC.
20966 * c-pch.c: Include ggc.h.
20967 (pch_init): Allow reading PCH file back.
20968 (c_common_write_pch): Call gt_pch_save.
20969 (c_common_read_pch): Call gt_pch_restore.
20970 * c-parse.in (init_reswords): Delete now-untrue comment.
20971 Allocate ridpointers using GGC.
20972 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20973 calling expand_deferred_fns.
20974 * c-common.h (ridpointers): Mark for GTY machinery.
20975 * Makefile.in (stringpool.o): Update dependencies.
20976 (c-pch.o): Update dependencies.
20977 (ggc-common.o): Update dependencies.
20978 * stringpool.c: Include gt-stringpool.h.
20981 (struct string_pool_data): New.
20983 (gt_pch_save_stringpool): New.
20984 (gt_pch_restore_stringpool): New.
20985 * tree.c (init_ttree): Make type_hash_table allocated using GC.
20987 2002-10-04 Geoffrey Keating <geoffk@apple.com>
20989 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20990 (output_mangled_typename): Don't pass size_t to printf.
20992 * tree.h (union tree_type_symtab): Add tag to `address' field.
20993 (union tree_decl_u2): Add tag to 'i' field.
20994 * varasm.c (union rtx_const_un): Add tags to all fields.
20995 * gengtype.c (struct walk_type_data): New.
20996 (output_escaped_param): Take struct walk_type_data parameter.
20997 (write_gc_structure_fields): Delete.
20999 (write_gc_marker_routine_for_structure): Delete.
21000 (write_func_for_structure): New.
21001 (gc_mark_process_field): New.
21002 (gc_mark_func_name): New.
21003 (gc_counter): Delete.
21004 (write_gc_types): Use write_func_for_structure.
21005 (write_gc_roots): Use walk_type.
21007 2002-10-02 Geoffrey Keating <geoffk@apple.com>
21009 * ggc-common.c (ggc_mark_roots): Delete 'x'.
21010 (ggc_splay_dont_free): Fix warning about unused 'x'.
21011 (ggc_print_common_statistics): Remove warnings.
21013 2002-10-01 Mike Stump <mrs@apple.com>
21015 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
21016 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
21018 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
21019 Catherine Moore <clm@redhat.com>
21021 * Makefile (c-pch.o): Update dependencies.
21022 (LIBCPP_OBJS): Add cpppch.o.
21024 * c-common.c (c_common_init): Don't call pch_init here.
21025 * c-common.h (c_common_read_pch): Update prototype.
21026 * c-lex.c (c_common_parse_file): Call pch_init here.
21027 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
21028 (c_common_decode_option): Handle them.
21029 * c-pch.c: Include c-pragma.h.
21030 (save_asm_offset): Delete.
21031 (pch_init): Move contents of save_asm_offset into here, call
21033 (c_common_write_pch): Call cpp_write_pch.
21034 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
21036 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
21037 * cppfiles.c (stack_include_file): Update for change to
21038 parameters of cb.read_pch.
21039 * cpphash.h (struct cpp_reader): Add `savedstate' field.
21040 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
21041 `restore_pch_deps' fields.
21042 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
21043 (cpp_save_state): Prototype.
21044 (cpp_write_pch): Prototype.
21045 (cpp_valid_state): Prototype.
21046 (cpp_read_state): Prototype.
21047 * cpppch.c: New file.
21048 * flags.h (version_flag): Remove prototype.
21049 * mkdeps.c (deps_save): New.
21050 (deps_restore): New.
21051 * mkdeps.h (deps_save): Prototype.
21052 (deps_restore): Prototype.
21053 * toplev.c (late_init_hook): Delete.
21054 (version_flag): Make static again.
21055 (compile_file): Don't call late_init_hook.
21056 * toplev.h (late_init_hook): Delete.
21057 * doc/cppopts.texi: Document -fpch-deps.
21058 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
21060 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
21062 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
21064 (c_common_valid_pch): Rename from c_valid_pch, change callers.
21065 (c_common_read_pch): Rename from c_read_pch, change callers.
21067 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
21068 a space between it and its argument.
21070 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
21072 * c-pch.c: New file.
21073 * toplev.h (late_init_hook): Declare.
21074 * toplev.c (late_init_hook): Define.
21075 (version_flag): Make globally visible.
21076 (compile_file): Call late_init_hook.
21077 (init_asm_output): Make output file seekable.
21078 * gcc.c (default_compilers): Update c-header rule.
21079 * flags.h (version_flag): Declare.
21080 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
21082 * cppfiles.c (struct include_file): Add 'pch' field.
21083 (INCLUDE_PCH_P): New.
21084 (open_file_pch): New.
21085 (stack_include_file): Handle PCH files specially.
21086 (find_include_file): Call open_file_pch instead of open_file.
21087 (_cpp_read_file): Explain why open_file is used instead of
21089 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
21090 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
21091 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
21092 in cpplib callbacks.
21093 * c-common.c (pch_file): Correct comment.
21094 (allow_pch): Define.
21095 (c_common_init): Call pch_init.
21096 * c-common.h (allow_pch): Declare.
21097 (pch_init): Declare.
21098 (c_valid_pch): Declare.
21099 (c_read_pch): Declare.
21100 (c_write_pch): Declare.
21101 * Makefile.in (c-pch.o): New.
21102 (C_AND_OBJC_OBJS): Add c-pch.o.
21103 * doc/invoke.texi (Precompiled Headers): Add index entries,
21104 complete truncated paragraph.
21106 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
21108 * c-common.c: (pch_file): Define.
21109 * c-common.h (pch_file): Declare.
21110 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21111 (missing_arg): Require --output-pch= to have an argument.
21112 (c_common_decode_option): Handle --output-pch=.
21113 * gcc.c: Document new %V.
21114 (default_compilers): Handle compiling C header files.
21115 (do_spec_1): Implement %V.
21116 (main): Handle "gcc foo.h" without trying to run linker.
21117 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21118 (Overall Options): Document what the driver does with header files,
21119 document new -x option possibilities.
21120 (Invoking G++): More documentation for PCH.
21121 (Precompiled Headers): New.
21123 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
21125 * ggc.h: Don't include varray.h. Rearrange functions to be more
21127 (ggc_add_root): Delete.
21128 (ggc_mark_rtx): Delete.
21129 (ggc_mark_tree): Delete.
21130 (struct ggc_statistics): Remove contents.
21131 * ggc-common.c: Remove unneeded includes.
21132 (struct ggc_root): Delete.
21134 (ggc_add_root): Delete.
21135 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
21136 (ggc_print_common_statistics): Remove most of the contents.
21137 * Makefile.in (GGC_H): No longer uses varray.h.
21138 (ggc-common.o): Update dependencies.
21139 (c-parse.o): Add varray.h to dependencies.
21140 (c-common.o): Add varray.h.
21141 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21142 (mark_ident_hash): Rename to ggc_mark_stringpool.
21143 (init_stringpool): Don't use ggc_add_root.
21144 * c-parse.in: Include varray.h.
21145 * c-common.c: Include varray.h.
21146 * objc/Make-lang.in (objc-act.o): Add varray.h.
21147 * objc/objc-act.c: Include varray.h.
21149 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
21151 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21152 (dw_cfi_oprnd1_desc): Likewise.
21154 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
21156 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21158 (alpha_links): Use gengtype to mark; move out of ifdef.
21159 (mark_alpha_links_node): Delete.
21160 (mark_alpha_links): Delete.
21161 (alpha_need_linkage): Use GGC to allocate splay tree, struct
21162 alpha_links, strings. Don't use ggc_add_root.
21163 * ggc-common.c (ggc_splay_alloc): New.
21164 (ggc_splay_dont_free): New.
21165 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21166 (ggc_mark_tree): Likewise.
21167 (splay_tree_new_ggc): New.
21168 (ggc_splay_alloc): Declare.
21169 (ggc_splay_dont_free): Declare.
21170 * dwarf2asm.c: Include gt-dwarf2asm.h.
21171 (mark_indirect_pool_entry): Delete.
21172 (mark_indirect_pool): Delete.
21173 (indirect_pool): Use gengtype to mark.
21174 (dw2_force_const_mem): Don't use ggc_add_root.
21175 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21176 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21177 (gt-dwarf2asm.h): Depend on s-gtype.
21179 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
21181 * tree.h (union tree_type_symtab): Mark `die' field.
21182 * Makefile.in (dwarf2out.o): Update dependencies.
21183 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
21185 (dw_cfi_oprnd1_desc): New function.
21186 (dw_cfi_oprnd2_desc): New function.
21187 (indirect_string_alloc): Delete.
21188 (debug_str_do_hash): New function.
21189 (debug_str_eq): New function.
21190 (mark_limbo_die_list): Delete.
21191 (dwarf2out_init): Don't call ggc_add_root.
21193 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
21195 The following changes are merged from itanium-sched-branch:
21197 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21199 * doc/md.texi: Clarify assignment of units to automata description.
21201 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
21203 * genautomata.c (unit_decl): Remove members
21204 `the_same_automaton_unit' and
21205 `the_same_automaton_message_reported_p'.
21206 (process_unit_to_form_the_same_automaton_unit_lists,
21207 form_the_same_automaton_unit_lists_from_regexp,
21208 form_the_same_automaton_unit_lists, the_same_automaton_lists):
21210 (annotation_message_reported_p): New global variable.
21211 (check_unit_distribution_in_reserv,
21212 check_regexp_units_distribution): New functions.
21213 (check_unit_distributions_to_automata): Rewrite it.
21215 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
21217 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21218 Use continue instead of break if cycle is too big.
21220 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
21222 * genautomata.c (check_unit_distributions_to_automata): Output at
21223 most one message for a unit.
21224 (process_unit_to_form_the_same_automaton_unit_lists): Check
21225 automaton of units instead of units themself.
21227 * doc/md.texi: Describe the constraint about assigning unit to
21230 2002-12-20 Jan Hubicka <jH@suse.cz>
21231 Vladimir Makarov <vmakarov@redhat.com>
21233 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21235 (gen_cpu_unit): Initialize the new members.
21236 (process_regexp_cycles): Calculate minimal finish cycle too. Set
21237 up `min_occ_cycle_num'.
21238 (evaluate_max_reserv_cycles): Change the function call.
21239 (CLEAR_BIT): New macro.
21240 (states_union, state_shift): Use the mask.
21241 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21242 (form_reservs_matter): New function.
21243 (make_automaton): Call the function and use the mask.
21244 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21247 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21249 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
21251 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21253 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
21256 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21258 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
21261 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21262 2002-10-31 Dale Johannesen <dalej@apple.com>
21264 * haifa-sched.c (find_set_reg_weight): New function.
21265 (find_insn_reg_weight): Use the new function.
21266 (schedule_block): Do sorting ready queue always
21269 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
21271 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
21273 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
21275 * haifa-sched.c (choice_entry): New structure.
21276 (choice_stack, cycle_issued_insns): New variables.
21277 (max_issue): Rewrite it.
21278 (choose_ready): Set up ready_try for unknown insns too.
21279 (schedule_block): Allocate and free choice_stack. Set up
21280 and modify cycle_issued_insns.
21282 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21283 with and without filling the bundle.
21284 (bundling): Combine calls of issue_nops_and_insn.
21286 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
21288 * config/ia64/itanium1.md: New file.
21290 * config/ia64/itanium2.md: New file.
21292 * config/ia64/ia64.md: Move DFA descriptions into the new files.
21293 Remove the old pipeline description.
21295 * config/ia64/ia64.c (ia64_override_options): Add aliases of
21296 itanium processor names.
21298 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
21300 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21301 (ia64_reorg): Set up queried unit codes for Itanium2 too.
21303 * config/ia64/ia64.md: Add descriptions for Itanium2.
21305 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21307 * config/ia64/ia64.h (processor_type): New enumeration.
21308 (ia64_tune, ia64_tune_string): New external declarations.
21309 (TARGET_OPTIONS): Add option `tune='.
21311 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21313 (ia64_override_options): Set up `ia64_tune'.
21314 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21315 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21316 (bundling): Add nops for MM-insns only for Itanium.
21317 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21320 * config/ia64/ia64.md (cpu): New attribute.
21321 (DFA description): Enable it only for Itanium.
21323 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21324 Richard Henderson <rth@redhat.com>
21326 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21327 MASK_EARLY_STOP_BITS.
21328 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21329 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21332 * config/ia64/ia64.c (ia64_dfa_new_cycle,
21333 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21334 instead of TARGET_TUNE_STOP_BITS.
21336 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21337 `-mearly-stop-bits'.
21339 * config/ia64/ia64.c (automata_option "v"): Comment it.
21341 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
21343 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
21345 (TARGET_SWITCHES): Add entries for the new option.
21347 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21348 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21349 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21351 (ia64_sched_reorder2): Set up `clocks'.
21352 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21353 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
21354 queue when TARGET_TUNE_STOP_BITS.
21355 (bundling): Insert additional nops for MM-insns.
21356 (final_emit_insn_group_barriers): Add insertion of stop bits
21357 according `stops_p'.
21358 (ia64_reorg): Initiate the new varibales.
21360 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
21362 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
21364 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21365 insns at the end of block insn scheduling.
21367 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
21369 * sched-deps.c (remove_dependence, group_leader): Remove it.
21370 (add_dependence): Add dependence to group leader to.
21371 (set_sched_group_p): Add dependence to the first insn of the
21372 schedule group too.
21373 (sched_analyze_insn): Make dependence to jump as anti-dependence.
21374 Change true dependence by anti-dependence when
21375 `reg_pending_barrier'.
21377 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21378 add_branch_dependences): Ignore schedule groups.
21380 * sched-ebb.c (init_ready_list): Ditto.
21382 * (move_insn, set_priorities): Ditto.
21384 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21385 flag is clear after reload.
21386 (adjust_cost): Change cost only for output dependencies.
21388 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
21390 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
21392 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21394 * target.h (gcc_target): Add member
21395 `dependencies_evaluation_hook'.
21397 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21399 (TARGET_SCHED): Add initiatialization of the new member.
21401 * sched-ebb.c: Include `target.h'.
21402 (schedule_ebb): Call `dependencies_evaluation_hook'.
21404 * sched-rgn.c (schedule_region): Call
21405 `dependencies_evaluation_hook'.
21407 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21409 (ia64_dependencies_evaluation_hook): New function.
21411 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21412 Describe the new hook.
21414 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
21416 * target.h (gcc_target): Add members
21417 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21419 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21420 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21422 (TARGET_SCHED): Add initiatialization of the new members.
21424 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21425 insn scheduling too.
21426 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21427 initialize `ready_try'.
21428 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
21429 `dfa_new_cycle' says not to do it.
21431 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21434 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21436 * config/ia64/ia64.c: Include `hashtab.h'.
21437 (ia64_first_cycle_multipass_dfa_lookahead_guard,
21438 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21439 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21440 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21441 bundle_state_eq_p, insert_bundle_state,
21442 initiate_bundle_state_table, finish_bundle_state_table,
21443 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21444 get_template, get_next_important_insn, bundling): New functions.
21445 (ia64_internal_sched_reorder): Remove it.
21446 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21447 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21448 (ia64_safe_itanium_requires_unit0): Remove it.
21449 (group_barrier_needed_p): Place group barrier right before a real
21451 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21453 (bundle_name): New variable.
21454 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21455 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21456 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21457 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21458 temp_dfa_state, prev_cycle_state): New global variables.
21459 (insn_matches_slot, maybe_rotate, finish_last_head,
21460 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21461 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21462 find_best_packet, itanium_reorder, dump_current_packet,
21463 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21464 (sched_data, sched_ready, sched_types): Remove them.
21465 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21466 `init_insn_group_barriers'.
21467 (ia64_sched_reorder, ia64_sched_reorder2): Call
21468 ia64_dfa_sched_reorder.
21469 (ia64_variable_issue): Rewrite it.
21470 (bundle_state): New structure.
21471 (index_to_bundle_states, bundle_states_num,
21472 allocated_bundle_states_chain, free_bundle_state_chain): New
21474 (ia64_sched_finish): Add stop bits and call `bundling' after the
21475 2nd insn scheduling.
21476 (ia64_use_dfa_pipeline_interface): Return zero always.
21477 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21479 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21480 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21481 (ia64_reorg): Add bundling insns.
21484 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21485 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
21487 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
21489 * config/ia64/ia64.md: Add Itanium1 DFA description.
21490 (itanium_class): Add `nop' and `pre_cycle'. Add
21491 define_function_unit for `nop'.
21492 (nop): Change attribute `itanium_class'.
21493 (pre_cycle): New define_insn.
21495 * config/ia64/ia64-protos.h (bundling_p): New external variable.
21496 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21497 ia64_produce_address_p): New function prototypes.
21499 * config/ia64/ia64.c (bundling_p): New global variable.
21500 (ia64_use_dfa_pipeline_interface,
21501 ia64_first_cycle_multipass_dfa_lookahead,
21502 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21504 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21505 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21506 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21507 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21508 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21509 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21510 (dfa_pre_cycle_insn): New variable.
21512 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21514 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21517 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21518 New function prototypes.
21520 * genattrtab.c (main): Process the new constructions.
21522 * genautomata.c (gen_presence_absence_set,
21523 process_presence_absence_names, process_presence_absence_patterns,
21524 add_presence_absence, check_absence_pattern_sets): Add parameter
21526 (unit_decl): Add new members `final_presence_list' and
21527 `final_absence_list'.
21528 (unit_pattern_rel_decl): Add new member `final_p'.
21529 (gen_final_presence_set, gen_final_absence_set): New functions.
21530 (process_decls): Use member `final_p'.
21531 (temp_reserv): New global variable.
21532 (reserv_sets_are_intersected): Add processing `final_presence_set'
21533 and `final_absence_set'.
21534 (initiate_states): Allocate `temp_reserv'.
21535 (unit_final_presence_set_table, unit_final_absence_set_table): New
21537 (initiate_presence_absence_pattern_sets): Initiate them.
21538 (NDFA_to_DFA): Fix typo.
21539 (output_description): Output `final_presence_set' and
21540 `final_absence_set'.
21542 * doc/md.texi (final_presence_set, final_absence_set): Describe
21545 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21547 * genautomata.c (transform_3): Process a missing case (nothing on
21550 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21552 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21553 comments about queried units and the minimization.
21555 * doc/md.texi: Ditto.
21557 * genautomata.c (create_composed_state): Return nonzero if the new
21558 state has been created.
21559 (first_cycle_unit_presence): New function.
21560 (state_is_differed): Add new parameter. Use the new function.
21561 Take queried units into account.
21562 (partition_equiv_class): Pass additional parameter to
21563 `state_is_differed'.
21564 (merge_states): Process composed states too.
21565 (build_automaton, create_automata, output_min_issue_delay_table,
21566 output_tables, output_statistics): Output more information.
21567 (output_reserved_units_table): Use function
21568 `first_cycle_unit_presence'.
21569 (output_tables): Output table of queried units even if the
21570 minimization is switched on.
21571 (write_automata): Output code for querying units even if the
21572 minimization is switched on.
21574 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
21576 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21577 syntax of the constructions.
21579 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21580 extended syntax of the constructions.
21582 * genautomata.c (unit_rel_decl): Rename it to
21583 `unit_pattern_rel_decl'.
21584 (pattern_set_el, pattern_reserv): New structures.
21585 (pattern_set_el_t, pattern_reserv_t): New types.
21586 (gen_presence_absence_set): New function.
21587 (process_presence_absence): Remove it.
21588 (process_presence_absence_names,
21589 process_presence_absence_patterns): New functions.
21590 (get_presence_absence_set): Remove it.
21591 (initiate_presence_absence_sets): Rename it on
21592 `initiate_presence_absence_pattern_sets'. Use new function
21593 `form_reserv_sets_list'.
21594 (form_reserv_sets_list, check_presence_pattern_sets,
21595 check_absence_pattern_sets, output_pattern_set_el_list): New
21597 (unit_decl): Change types of members `presence_list' and
21599 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21600 (decl): Change types of members `excl', `presence', and `absence'.
21601 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
21602 at the end of the vector.
21603 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21604 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21605 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21606 (gen_presence_set, gen_absence_set): Use new function
21607 `gen_presence_absence_set'.
21608 (add_presence_absence): Process `pattern_list' instead of
21610 (process_decls): USe new functions
21611 `process_presence_absence_names' and
21612 `process_presence_absence_patterns'.
21613 (reserv_sets_are_intersected): Use new function
21614 `check_presence_pattern_sets'.
21615 (presence_set, absence_set): Remove them.
21616 (unit_presence_set_table, unit_absence_set_table): New global
21618 (output_description): Use new function
21619 `output_pattern_set_el_list'.
21620 (generate): Use `initiate_presence_absence_pattern_sets'.
21622 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
21624 * genattr.c (main): Add output of prototype of new interface
21625 function `dfa_clean_insn_cache'.
21627 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21628 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21629 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21630 the generated code.
21631 (write_automata): Call the new function.
21633 2003-01-09 Jan Hubicka <jh@suse.cz>
21635 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21638 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
21640 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21642 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
21644 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21645 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21646 (CONSTRAINT_LEN): Provide default definition.
21647 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21648 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21649 (EXTRA_CONSTRAINT_STR): Likewise.
21650 (REG_CLASS_FROM_CONSTRAINT): Define.
21651 * genoutput.c (check_constraint_len, constraint_len): New functions.
21652 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21653 constraint / modifier.
21654 (gen_insn): Call check_constraint_len.
21655 * local-alloc.c (block_alloc): Update to use new macros / pass
21656 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21657 * ra-build.c (handle_asm_insn): Likewise.
21658 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21659 (constrain_operands, peep2_find_free_register): Likewise.
21660 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21661 * regmove.c (find_matches): Likewise.
21662 * reload.c (push_secondary_reload, find_reloads): Likewise.
21663 (alternative_allows_memconst): Likewise.
21664 * reload1.c (maybe_fix_stack_asms): Likewise.
21665 (reload_cse_simplify_operands): Likewise.
21666 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21667 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21668 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21669 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21670 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21671 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
21673 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21675 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21677 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21679 (*extzv_1_r_h8300hs): Likewise.
21680 (*extzv_1_r_inv_h8300): Likewise.
21681 (*extzv_1_r_inv_h8300hs): Likewise.
21683 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21685 * config/h8300/h8300.h (PREDICATE_CODES): New.
21687 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21689 * config/h8300/h8300.md (*addsi3_upper): New.
21690 (*iorsi3_shift): Likewise.
21691 (two splitters): Likewise.
21692 (*addsi3_shift): Likewise.
21693 (two splitters): Likewise.
21695 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21697 * Makefile.in (optabs.o): Add dependency on basic-block.h.
21698 * basic-block.h (control_flow_insn_p): Fuction was exported.
21699 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21700 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21701 notes only when the region is contained in a single basic block.
21703 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21706 * tree.h (expand_asm): New prototype.
21707 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21709 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21710 down to expand_asm.
21711 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21712 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21713 (volatile_refs_p) [ASM_INPUT]: Likewise.
21714 (side_effects_p) [ASM_INPUT]: Likewise.
21716 2003-01-09 Jan Hubicka <jh@suse.cz>
21718 * i386.md (*mul*): FIx constraints; remove confused comment; fix
21719 athlon_decode attributes
21720 (imul/k8 optimization peep2s): New.
21722 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21723 * i386.md (type attribute): Add ssecomi.
21724 (unit, memory, prefix attributes): Handle ssecomi.
21725 (cvt?2? patterns): Fix athlon_decode attribute
21726 (comi patterns): Set attribute to ssecomi.
21729 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21731 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
21733 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21734 that match register_operands.
21735 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21736 register_operand the default case.
21738 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21741 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21742 an empty element, do not advance the pointer to unfilled
21743 fields if there are pending initializers.
21745 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21747 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21748 (install-gcc-tooldir, install-cpp, installdirs,
21749 install-common, install-driver, install-info, install-man,
21750 install-headers, install-include-dir, install-headers-tar,
21751 install-headers-cpio, install-headers-cp, install-mkheaders,
21752 install-collect2, uninstall): Prepend $(DESTDIR) to
21753 destination paths in all (un)installation commands.
21754 (install-driver): Rewrite $(LN) commands to support DESTDIR
21755 with "ln" as well as with "ln -s".
21756 (installdirs): Simply use mkinstalldirs.
21757 (install-libgcc, install-multilib): Also pass DESTDIR.
21758 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21759 installation destination variable ldir.
21760 * config/alpha/t-osf4, config/arm/t-netbsd,
21761 config/ia64/t-hpux, config/mips/t-iris5-6,
21762 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21763 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21764 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21765 in the definition of SHLIB_INSTALL.
21766 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21767 $(libsubdir) in the installation commands.
21769 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
21771 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21772 non-optimizing compile.
21773 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21776 2003-01-08 Douglas B Rupp <rupp@gnat.com>
21778 * config/i386/i386.c (ix86_attribute_table): Add new attributes
21779 ms_struct and gcc_struct.
21780 (ix86_handle_struct_attribute): New function.
21781 (ix86_ms_bitfield_layout_p): Update to take new attributes
21783 * doc/extend.texi: Document new attributes.
21784 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21786 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
21788 PR optimization/8750
21789 * config/i386/i386.c (ix86_expand_prologue): Don't allow
21790 scheduling pass to move insns across __alloca call.
21792 2003-01-08 Dale Johannesen <dalej@apple.com>
21794 * config/rs6000/rs6000.md: Replace *store_multiple_string
21797 2003-01-08 Jeff Sturm <jsturm@one-point.com>
21800 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21801 Set SYMBOL_REF_FLAG on local data sym_ref.
21803 2003-01-08 Dale Johannesen <dalej@apple.com>
21805 * function.c (assign_parms): Don't set pretend_args_size if
21806 REG_PARM_STACK_SPACE.
21807 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
21810 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
21814 2003-01-09 Jan Hubicka <jh@suse.cz>
21816 * i386.c (ix86_expand_int_addcc): Fix thinko.
21818 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21820 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21821 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21822 as hook_bool_tree_hwi_hwi_tree_true.
21823 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21824 (rs6000_emit_epilogue): Same.
21825 (rs6000_output_mi_thunk): Re-implement as RTL.
21826 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21827 xcoffout_declare_function if any debugging enabled.
21829 2003-01-08 Chris Demetriou <cgd@broadcom.com>
21831 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21832 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21833 * config/mips/mips.h (enum processor_type): Rename
21834 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21835 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21837 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21838 (ISA_MIPS32R2): New define.
21839 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21840 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21841 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21842 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
21843 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
21844 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21845 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21846 compiling MIPS16 code.
21847 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21849 (ISA_HAS_SEB_SEH): New define.
21850 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21851 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21852 processor_type value renaming. Add support for MIPS32R2.
21853 Clean up comments, and move "sb1" entry with other MIPS64 CPU
21855 (override_options): Reimplement -mipsN option handling so that
21856 it will work correctly for -mips32r2. Avoid branch-likely
21857 instructions on MIPS32R2.
21858 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21859 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21860 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21861 (extendhisi2_hw, extendqisi2_hw): New.
21862 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21863 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
21864 MIPS32R2, and MIPS64.
21865 (LINK_SPEC): Pass -mips32r2 to linker.
21866 * config/mips/t-isa3264: Built -mips32r2 multilibs.
21867 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21868 for mips32r2 in the -march description. Alphabetically sort
21869 CPU names in the -march description. Add long-missed -mips32
21870 and -mips64 to MIPS option summary.
21872 * config.gcc: Update copyright years to include 2003.
21873 * config/mips/mips.c: Likewise.
21874 * config/mips/mips.h: Likewise.
21875 * config/mips/mips.md: Likewise.
21876 * config/mips/netbsd.h: Likewise.
21877 * doc/invoke.texi: Likewise.
21879 2003-01-08 Andreas Schwab <schwab@suse.de>
21881 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21883 * configure: Regenerated.
21885 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21887 * config/h8300/h8300.c (output_logical_op): Replace byte/word
21888 extraction of det with b0, b1, w0, w2, etc.
21889 (compute_logical_op_length): Likewise.
21890 (compute_logical_op_cc): Likewise.
21892 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21894 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21895 HIGH on all variants.
21897 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21899 * Makefile.in (PARTITION_H): New.
21900 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21901 * basic-block.h: Include hard-reg-set.h.
21903 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
21905 * arm.h (ENABLE_XF_PATTERNS): Delete.
21906 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21907 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21908 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21909 (cmpxf_trap): Delete.
21910 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21912 2003-01-08 Jan Hubicka <jh@suse.cz>
21914 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21915 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21916 (add??cc): New expanders.
21917 * i386.c (expand_int_addcc): New function.
21918 * i386-protos.h (expand_int_addcc): Declare.
21920 * alias.c (memory_modified_1): New static function.
21921 (memory_modified): New static varaible.
21922 (memory_modified_in_insn_p): New global function.
21923 * rtl.h (memory_modified_in_insn_p): Declare.
21924 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21927 * expr.h (emit_conditional_add): Declare.
21929 2003-01-07 Janis Johnson <janis187@us.ibm.com>
21932 * doc/invoke.texi (-malign-double): Explain that the option breaks
21933 binary compatibility.
21935 2003-01-08 Andreas Schwab <schwab@suse.de>
21937 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21938 should come from the generic *-*-linux* entry.
21940 2003-01-07 Jan Hubicka <jh@suse.cz>
21942 * cselib.c (cselib_current_insn_in_libcall): New static variable.
21943 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21944 we are inside libcall.
21945 * cselib.h (elt_loc_list): Add in_libcall.
21946 * gcse.c (do_local_cprop): Do not copy propagate using insns
21949 2003-01-07 David Edelsohn <edelsohn@gnu.org>
21951 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21952 not normally affect to issue rate.
21954 2003-01-07 Jan Hubicka <jh@suse.cz>
21956 * genopinit.c (optabs): Add addc_optab.
21957 * ifcvt.c (noce_try_store_flag): Rename to ...
21958 (noce_try_addcc): ... this one; handle generic conditional increment.
21959 (noce_process_if_block): Update noce_try_addcc call.
21960 * optabs.c (emit_conditional_add): New.
21961 (init_obtabs): Initialize addc_optab.
21962 * optabs.h (optab_index): Add OTI_addcc.
21963 (addcc_optab): New macro.
21964 * md.texi: Document addMcc
21967 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21968 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21969 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21971 * reload1.c (delete_output_reload): Avoid repeated attempts
21974 2003-01-07 Andreas Schwab <schwab@suse.de>
21976 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21977 Move --enable-initfini-array check ...
21978 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
21979 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21980 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
21981 * configure: Rebuild.
21983 2003-01-07 Richard Henderson <rth@redhat.com>
21985 * alias.c (find_base_value): Only use new_reg_base_value shortcut
21986 if the register is set once.
21988 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
21990 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21991 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21992 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21994 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
21995 Sunil Davasam <sunil.k.davasam@intel.com>
21998 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21999 DW_CFA_same_value, read next and ignore.
22001 2003-01-07 Richard Henderson <rth@redhat.com>
22003 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
22005 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
22007 * cfg.c: Include alloc-pool.h
22008 (edge_pool): New pool.
22009 (bb_pool): New pool.
22010 (first_deleted_edge): Remove.
22011 (first_deleted_block): Remove.
22012 (init_flow): Alloc/free the pools.
22013 (free_edge): Use pools.
22014 (alloc_block): Ditto.
22015 (expunge_block): Ditto.
22016 (cached_make_edge): Ditto.
22018 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
22020 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
22022 * et-forest.c: Include alloc-pool.h.
22023 (struct et_forest): Add node_pool and occur_pool.
22024 (et_forest_create): Create the new pools.
22025 (et_forest_delete): Delete them.
22026 (et_forest_add_node): Allocate and free using pools.
22027 (et_forest_add_edge): Ditto.
22028 (et_forest_remove_node): Ditto.
22029 (et_forest_remove_edge): Ditto.
22031 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
22033 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
22035 * config/h8300/h8300.c (output_logical_op): Simplify and
22036 optimize the handling of SImode.
22037 * config/h8300/h8300.c (compute_logical_op_length): Update
22039 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
22041 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
22043 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
22044 big-endian correction to indirect arguments too.
22046 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
22048 Segher Boessenkool <segher@koffie.nl>
22050 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
22051 (alt_reg_names): Ditto, fix formatting.
22052 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
22054 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22056 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
22057 (output_logical_op): Constify intval and det.
22058 (compute_logical_length): Likewise.
22059 (compute_logical_cc): Likewise.
22060 (output_a_shift): Constify mask.
22061 (h8300_encode_label): Constify len.
22063 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22065 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
22066 (h8300_expand_epilogue): Likewise.
22068 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
22070 Segher Boessenkool <segher@koffie.nl>
22072 * config/rs6000/altivec.md: Remove spaces from assembler
22073 instruction argument lists.
22075 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22077 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
22078 c4x_assembler_function_p.
22079 (c4x_null_epilogue_p): Complement return value, all uses updated.
22080 (c4x_insert_attributes): Add naked.
22081 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
22082 * doc/extend.texi: Update C4x function attributes.
22084 2003-01-06 Richard Henderson <rth@redhat.com>
22086 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
22087 properly when changing "local-ness".
22088 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
22090 2003-01-06 Dale Johannesen <dalej@apple.com>
22092 * config/darwin-protos.h: Add prototypes for new section functions.
22094 2003-01-06 Chris Demetriou <cgd@broadcom.com>
22096 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
22099 2003-01-06 Zack Weinberg <zack@codesourcery.com>
22101 * hwint.h: If the current compiler has no 64-bit type at all,
22102 make HOST_WIDEST_INT 32 bits.
22104 2003-01-06 Eric Christopher <echristo@redhat.com>
22106 * config/mips/mips.md (movdf_internal2): Fix constraints.
22108 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22110 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22112 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
22114 * config/mips/mips.md (leadi): Use dla rather than la.
22116 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
22118 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
22119 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
22121 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
22123 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
22126 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22128 * config/h8300/h8300.md (*extzv_8_23): New.
22130 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
22132 * pa64-hpux.h (JCR_SECTION_NAME): Define.
22133 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22134 USE_EH_FRAME_REGISTRY when defining.
22136 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22138 * config/h8300/h8300.c (output_a_shift): Do not output a
22140 * config/h8300/h8300.md (two splitters): New.
22142 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
22144 * config/mips/mips.md: Disable the movstrsi define_split.
22146 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22148 * alloc-pool.c: Don't include "libiberty.h".
22149 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22150 * convert.c (convert_to_real): Hide unused variable.
22152 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22154 * Makefile.in (gtyp-gen.h): Const-ify.
22155 * gcov-dump.c (tag_table): Likewise.
22157 2003-01-04 Bruce Korb <bkorb@gnu.org>
22159 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22160 of *both* the file name and the fix name.
22162 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
22164 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
22166 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22167 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22168 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22169 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22170 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22171 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22173 (EH_FRAME_IN_DATA_SECTION): Delete define.
22174 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22175 (STARTFILE_SPEC): Use crtbegin.o.
22176 (ENDFILE_SPEC): Use crtend.o.
22177 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22178 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22179 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22180 DTOR_LIST_BEGIN): Define.
22181 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22182 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22183 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22185 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
22187 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22188 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22189 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
22190 Cleanup handling of replacement text.
22191 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22193 2003-01-04 Bruce Korb <bkorb@gnu.org>
22195 * fixinc/tests/base/math.h: removed obsolete results
22196 * fixinc/tests/base/stdlib.h: ditto
22197 * fixinc/tests/base/sys/param.h: ditto
22198 * fixinc/tests/base/sys/stat.h: ditto
22199 * fixinc/tests/base/time.h: ditto
22200 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22201 * fixinc/tests/base/sys/byteorder.h: ditto
22202 * fixinc/inclhack.def: Remove superfluous backslashes
22204 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
22206 * config/h8300/h8300-protos.h: Add prototypes for
22207 the new functions defined below.
22208 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22210 (dosize): Emit RTL instead of assembly code.
22213 (h8300_output_function_prologue): Remove.
22214 (h8300_expand_prologue): New.
22215 (h8300_expand_epilogue): New.
22216 (h8300_output_function_epilogue): Do only the reset of
22218 * config/h8300/h8300.md (push_h8300): New.
22219 (push_h8300hs): Likewise.
22220 (pop_h8300): Likewise.
22221 (pop_h8300hs): Likewise.
22222 (*stm_h8300s_2): Change the name to stm_h8300s_2.
22223 (*stm_h8300s_3): Change the name to stm_h8300s_3.
22224 (*stm_h8300s_4): Change the name to stm_h8300s_4.
22225 (*ldm_h8300s_2): New.
22226 (*ldm_h8300s_3): Likewise.
22227 (*ldm_h8300s_4): Likewise.
22228 (return): Likewise.
22229 (*return_1): Likewise.
22230 (prologue): Likewise.
22231 (epilogue): Likewise.
22232 (monitor_prologue): Likewise.
22234 2003-01-03 Dale Johannesen <dalej@apple.com>
22236 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
22237 machopic_picsymbol_stub1.
22238 (EXTRA_SECTION_FUNCTIONS): Ditto.
22239 * rs6000/rs6000.c: Update copyright.
22240 (machopic_output_stub): Use them. Remove an insn from stub code.
22242 2003-01-02 Jason Merrill <jason@redhat.com>
22244 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22246 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
22247 static/external decls.
22249 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
22251 * c-decl.c (c_make_fname_decl): Push the decls there, too.
22253 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
22255 * config/h8300/h8300-protos.h: Add a prototype for
22256 h8300_current_function_interrupt_function_p.
22257 * config/h8300/h8300.c (interrupt_handler): Remove.
22258 (os_task): Likewise.
22259 (monitor): Likewise.
22260 (pragma_interrupt): New.
22261 (WORD_REG_USED): Use
22262 h8300_current_function_interrupt_function_p.
22263 (dosize): Likewise.
22264 (h8300_output_function_prologue): Likewise.
22265 Do not set interrupt_handler, os_task, monitor.
22266 (h8300_output_function_prologue): Use
22267 h8300_current_function_interrupt_function_p.
22268 Do not set interrupt_handler, os_task, monitor.
22269 (h8300_current_function_interrupt_function_p): New.
22270 (h8300_pr_interrupt): Set pragma_interrupt.
22271 (h8300_insert_attributes): Reset pragma_interrupt.
22273 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22275 * doc/install.texi (Configuration): Fix markup for reference to
22278 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22280 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22281 (*iorhi3_two_qi): Likewise.
22282 (*iorsi3_zexthi): Likewise.
22283 (*xorhi3_zextqi): Likewise.
22284 (*xorsi3_zexthi): Likewise.
22285 (*xorsi3_zextqi): Likewise.
22287 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22289 * config/h8300/h8300.c (stack_pointer_operand): New.
22290 (const_int_gt_2_operand): Likewise.
22291 (const_int_ge_8_operand): Likewise.
22292 * config/h8300/h8300.md (a splitter): Likewise.
22293 (a peephole2): Likewise.
22294 * config/h8300/h8300-protos.h: Add prototypes for the new
22297 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22299 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22300 objc/objc-act.h: Fix copyright years.
22302 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22304 * doc/passes.texi: Fix documentation for -fssa-ccp
22306 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
22308 * gccbug.in: Update for new categories.
22310 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22312 * config/h8300/h8300.md: Reorder some patterns.
22314 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22316 * config/h8300/h8300.c (output_logical_op): Fix a warning.
22318 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22320 * config/darwin-protos.h, config/c4x/c4x-protos.h,
22321 config/cris/cris-protos.h, config/i370/i370-protos.h,
22322 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22323 config/v850/v850-protos.h: Use struct, and don't conditionally
22324 compile on GCC_C_PRAGMA_H.
22326 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22328 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22329 * config/h8300/h8300-protos.h: Likewise.
22330 * config/sh/sh-protos.h: Likewise.
22332 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22334 * config/arm/arm-protos.h: Use struct cpp_reader instead of
22336 * config/h8300/h8300-protos.h: Likewise.
22337 * config/sh/sh-protos.h: Likewise.
22339 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22341 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22342 arm_pr_long_calls_off): Use struct.
22343 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22345 Don't include cpplib.h.
22346 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22347 sh_pr_nosave_low_regs): Similarly.
22349 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22351 * config/h8300/h8300.c: Include cpplib.h.
22353 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
22355 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22356 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22357 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22358 "GCC" in the copyright header.
22360 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22362 * c-pragma.c (c_register_pragma): New.
22363 (init_pragma): Use it.
22364 * c-pragma.h (cpp_register_pragma): Don't declare.
22365 (c_register_pragma): New.
22366 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22367 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22368 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22369 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22370 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22371 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22372 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22373 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22374 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22375 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22376 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22377 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22379 See ChangeLog.8 for earlier changes.