]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
aclocal.m4: check for libart-config binary under the name libart2-config as well.
[gcc.git] / gcc / ChangeLog
CommitLineData
ed8395a0
JZ
12003-08-05 Josef Zlomek <zlomekj@suse.cz>
2
3 * gcse.c (try_replace_reg): Fix updating of note.
4
02a1994c
RS
52003-08-04 Roger Sayle <roger@eyesopen.com>
6
7 PR middle-end/11771
8 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
9 logic in negate_expr, i.e. we don't invert (A-B) for floating
10 point types unless flag_unsafe_math_optimizations.
11
f2593a66
RS
122003-08-04 Roger Sayle <roger@eyesopen.com>
13
14 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
15 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
16 for floating point expressions with -ffast-math.
17 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
18 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
19
03aa99d4
RS
202003-08-04 Roger Sayle <roger@eyesopen.com>
21
22 * c-common.c (flag_noniso_default_format_attributes): Delete.
23 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
24 (c_attrs_initialized): Delete.
25 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
26 always call c_init_attributes.
27 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
28 set c_attrs_initialized when done.
29 (c_common_insert_default_attributes): Delete.
30 * c-common.h (flag_noniso_default_format_attributes): Delete.
31 (c_coomon_insert_default_attributes): Delete prototype.
32 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
33 flag_noniso_default_format_attributes.
34
35 * c-decl.c (c_insert_default_attributes): Delete.
36 * c-tree.h (c_insert_default_attributes): Delete prototype.
37
38 * attribs.c (decl_attributes): Don't call insert_default_attributes
39 langhook. Update function description comment.
40 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
41 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
42 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
43 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
44
45 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
46 define.
47
38e596df
RS
482003-08-04 Richard Sandiford <rsandif@redhat.com>
49
50 * config/mips/mips.c (override_options): Disable -G on targets that
51 have no .section support.
52 (mips_select_section): Use default_select_section for such targets.
53
76d2e2c5
NN
542003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
55
56 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
57 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
58 * fixinc/fixincl.x: Rebuild.
59 * fixinc/tests/base/regexp.h: New test.
60
b2734c68
AO
612003-08-04 Alexandre Oliva <aoliva@redhat.com>
62
63 * c-ppoutput.c (cb_line_change): Don't skip line changing while
64 parsing macro arguments in the top-level context.
65
4e87a651
NB
662003-08-04 Neil Booth <neil@daikokuya.co.uk>
67
68 * config.in: Remove HAVE_LSTAT.
69 * configure, configure.in: Don't test for lstat.
70
21ecc5a7
GDR
712003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
72
73 * opts.c (decode_options): Do language-specific initialization for
74 the global diagnostic context.
75 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
76 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
77 (LANG_HOOKS_INITIALIZER): Adjust.
78 * langhooks.h (struct lang_hooks): Add new field
79 initialize_diagnostics.
80 * langhooks.c (lhd_initialize_diagnostics): Define.
81
822003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
83
84 * pretty-print.h: Adjust macro definitions.
85 * pretty-print.c (pp_newline): Rename to pp_base_newline.
86 (pp_character): Rename to pp_base_character.
87 (pp_string): Rename to pp_base_string.
88 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
89 (pp_newline): Likewise. Adjust.
90 (pp_c_char): Adjust.
91
d82f81dd
KG
922003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
93
94 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
95 BUILT_IN_LLABS): Move to miscellaneous section.
96
335d03ec
NB
972003-08-03 Neil Booth <neil@daikokuya.co.uk>
98
cb6eb88a 99 PR preprocessor/11534
335d03ec
NB
100 * cppexp.c (parse_defined): Warn only if -pedantic.
101
76bf2c97
NB
1022003-08-03 Neil Booth <neil@daikokuya.co.uk>
103
104 * cppfiles.c (stack_file): Use file path.
105
178b2b9f
RS
1062003-08-02 Roger Sayle <roger@eyesopen.com>
107
108 * builtin-types.def (BT_SSIZE): New primitive type.
109 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
110 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
111 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
112 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
113 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
114 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
115 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
116 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
117 few functions that define default attributes using it.
118 * c-common.c (c_common_insert_default_attributes): Do nothing.
119
120 * doc/extend.texi: Document these "new" builtins.
121
469146c1
KK
1222003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
123
124 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
125 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
126 when -mieee-fp set and -shared not set.
127 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
128
49634b3a
NB
1292003-08-02 Neil Booth <neil@daikokuya.co.uk>
130
131 * cppfiles.c (struct _cpp_file): Rename once_only_next to
132 next_file. Remove import and pragma_once, add once_only.
133 (find_file): Add new file structures to the all_files list.
134 (should_stack_file): Mark #import-ed files once-only, and
135 don't stack them if the file has already been stacked.
136 (_cp_mark_file_once_only): Simplify.
137 * cpphash.h (struct cpp_reader): Rename once_only_files
138 to all_files. Rename saw_pragma_once to seen_once_only.
139 (_cpp_mark_file_once_only): Update prototype.
140 * cpplib.c (do_pragma_once): Update.
141
cf1ee30c
NB
1422003-08-02 Neil Booth <neil@daikokuya.co.uk>
143
144 * cppfiles.c (ENOTDIR): Remove.
145 (open_file_in_dir): Rename find_file_in_dir. Handle errors
146 other than ENOENT here.
147 (once_only_file_p): Rename should_stack_file.
148 (find_file, open_file_failed, read_file_guts): Report errors
149 with full path name.
150 (read_file): Move pch handling to should_stack_file.
151 (should_stack_file): Handle PCH and once-only issues, and
152 reading the file.
153 (stack_file): Don't do file reads.
154
50612a04
ZD
1552003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
156
157 * libgcov.c (gcov_exit): Cleanup and fix.
158 * profile.c (compute_value_histograms): Don't try to read profiles
159 that are not present.
160
f6a46818
KG
1612003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
162
f53b62e1
KG
163 * builtins.def: Categorize.
164
f6a46818
KG
165 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
166 Mind fp rounding.
167 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
168
12550591
AT
1692003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
170
171 * config.gcc: Enable posix threads by default on darwin.
172
5f77fbd4
JJ
1732003-08-01 Jakub Jelinek <jakub@redhat.com>
174
175 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
176 even if nehedges1 is 0.
177
f4dbf936
NN
1782003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
179
180 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
181 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
182 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
183 and defintions.
184
185 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
186 * fixinc/fixincl.x: Regenerate.
187 * fixinc/tests/base/math.h: Regenerate to match test_text change.
188
c76becbd
RO
1892003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
190
191 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
192
f920765d
RK
1932003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
194
195 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
196 for accesses to exc_ptr.
197
8e5f33ff
GK
1982003-08-01 Geoffrey Keating <geoffk@apple.com>
199
200 * doc/sourcebuild.texi (Front End Directory): Don't make references
201 to libsubdir, it's not part of the interface to frontends.
202 * doc/install.texi (Configuration): Help users read faster by saying
203 that GCC's configure options are the standard autoconf ones.
204 Mention --libdir. Update the default rules for finding the
205 assembler. Don't use libsubdir since we haven't said what it means.
206 (Specific): In the Solaris 7 notes, update the place to put the
207 assembler.
208 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
209 * doc/cpp.texi (Search Path): Actually, the search path
210 depends on libdir, which can relocate with cpp.
211 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
212 now a private interface between the Makefile and the driver.
213
75c20980
RH
2142003-08-01 Richard Henderson <rth@redhat.com>
215
216 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
217
218 * varasm.c (lookup_constant_def): New function.
219 * rtl.h (lookup_constant_def): Declare it.
220 * dwarf2out.c (loc_descriptor_from_tree): Use it.
221 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
222
f91f41b2
ZW
2232003-08-01 Zack Weinberg <zack@codesourcery.com>
224
225 * c-decl.c (gettags, pushdecl_function_level): Delete.
226 (last_function_parm_vars): Rename last_function_parm_others.
227 (current_function_parm_vars): Rename current_function_parm_others.
228 (struct c_scope): Rewrite comment explaining this data structure.
229 Add names_last, blocks_last, parms_last fields. Rename
230 incomplete_list to incomplete.
231 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
232 (poplevel): Ignore second argument. No need to nreverse
233 anything. Restructure such that each list is processed
234 exactly once. Use 'const location_t *locus' syntactic sugar
235 variable where useful. Issue unused variable warnings
236 ourselves, do not rely on function.c.
237 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
238 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
239 (implicitly_declare): decl cannot be error_mark_node.
240 (undeclared_variable): Manipulate scope structure directly.
241 (c_make_fname_decl): Likewise.
242 (getdecls, c_init_decl_processing): Fix comment.
243 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
244 for 'last' variable.
245 (grokparms): No need to nreverse parms list.
246 (store_parm_decls_newstyle): Set up the parms_last and
247 names_last fields of the new scope too.
248 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
249 on parms to begin with; check this under ENABLE_CHECKING. Set
250 up parms_last.
251 (check_for_loop_decls): Refer directly to current_scope->tags.
252 Use consistent quote style in diagnostics.
253 (c_write_global_declarations): The names list is not backward.
254
255 * c-common.h: Don't prototype gettags.
256 * c-parse.in: Call poplevel with second argument 0 always.
257
a8eb1db5
KG
2582003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259
260 * builtins.def: Resort builtins.
261
da7cfe13
KG
2622003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
263
264 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
265 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
266 Prepend "__builtin_" onto NAME with string concatenation. Remove
267 explicit "__builtin_" from each macro call.
268
269 Reformat entire file.
270
ea8eb0b9
KG
2712003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
272
273 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
274 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
275
61152e48 2762003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3ef093a8
AK
277
278 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
279 CCL1, or CCL2 modes with floating point operations.
280
281 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
282 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
283 "*subdf3_cconly"): New insns.
284 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
285
bf42e45b
NB
2862003-08-01 Neil Booth <neil@daikokuya.co.uk>
287
288 * Makefile.in: Refine dependencies.
289 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
290 * c.opt: Update help for -Wimport.
291 * cppfiles.c: Include hashtab.h. Update comments.
292 (stack_file): Read the file before updating dependencies.
293 (once_only_file_p): Be smarter about marking once-only files.
294 (_cpp_mark_file_once_only): Correct the check for existence on
295 the list.
296 (open_file_failed): Use name not path, which is NULL.
297 * cpphash.h: Don't include hashtab.h.
298 (struct _cpp_file): Remove.
299 (struct cpp_reader): Update.
300 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
301 * cpplib.h (struct cpp_options): Remove warn_import.
302 (cpp_simplify_path): Remove.
303
a5bcc582
NS
3042003-08-01 Nathan Sidwell <nathan@codesourcery.com>
305
306 PR c++/11295
307 * doc/extend.texi (Statement Expressions): Document C++ semantics.
308
2fdd01a0
ST
3092003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
310
311 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
312
3c260e1d
KG
3132003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
314
315 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
316 throughout.
317 * builtins.def: Likewise.
318
40209195
JM
3192003-07-31 Jason Merrill <jason@redhat.com>
320
321 * Makefile.in (bubblestrap): Don't require a previous full
322 bootstrap.
323
324 * expr.c (mostly_zeros_p): No longer static.
325 * tree.h: Declare it.
326 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
327 unless we need to do substitutions.
328
2598550f
RS
3292003-07-31 Roger Sayle <roger@eyesopen.com>
330
331 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
332 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
333 as pow(x,2.0) when the latter will be expanded back into x*x.
334 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
335 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
336 pow can never set errno when used with an integer exponent.
337 Always use expand_powi when exponent is -1, 0, 1 or 2.
338 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
339 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
340 the pow forms of these expressions.
341
a8ee6e2d
GK
3422003-07-31 Geoffrey Keating <geoffk@apple.com>
343
344 * Makefile.in (libexecdir): New.
345 (libsubdir): Use gcc instead of gcc-lib.
346 (libexecsubdir): New.
347 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
348 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
349 gcc-lib.
350 (installdirs): Make libexecsubdir.
351 (install-common): Put executables in libexecsubdir.
352 (itoolsdir): Use libexecsubdir.
353 (itoolsdatadir): New.
354 (install-mkheaders): Separate data files and executables.
355 (install-collect2): Put executables in libexecsubdir.
356 (uninstall): Remove libexecsubdir.
357 * mkheaders.in: Update for new arrangement of files.
358 (libexecdir): New.
359 (libexecsubdir): New.
360 (itoolsdir): Use libexecsubdir.
361 (itoolsdatadir): New.
362 * gcc.c (gcc_libexec_prefix): New.
363 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
364 (standard_exec_prefix_1): Use libexec.
365 (standard_exec_prefix_2): New.
366 (standard_libexec_prefix): New.
367 (process_command): Update for new arrangement of files. Compute
368 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
369
631099c9
NN
3702003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
371
372 * inclhack.def (stdio_va_list): Avoid bogus replacement which
373 triggers on Interix.
374 * fixincl.x: Regenerate.
375
a132b6a8
JJ
3762003-07-31 Jakub Jelinek <jakub@redhat.com>
377
378 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
379 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
380
c67b2a58
RK
3812003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
382
383 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
384
40e941af
PB
3852003-07-31 Per Bothner <pbothner@apple.com>
386
387 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
388 (add_input_filename): New function.
389 (handle_options): Call add_input_filename directly instead of
390 with a lang hook.
391 * opts.h (in_fnames, num_in_fnames): Moved here.
392 (add_input_filename): Declare.
393 * c-decl.c: Need to #include opts.h.
394 * Makefile.in (c-decl.o): Also depends on opts.h.
395 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
396 (c_common_handle_filename): Replaced by add_input_filename.
397 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
398 Remove.
399 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
400 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
401 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
402 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
403
9143c6b7
ZD
4042003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
405
406 * combine.c (try_combine): Set JUMP_LABEL for newly created
407 unconditional jump.
408
b7de5864
ZD
4092003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
410
411 * fold-const.c (fold): Fold some comparisons of bit operations.
412
fdacb904
JH
413Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
414
415 * cgraph.c (create_edge): Fix typo.
416 * i386.c (pic_symbolic_operand): Reorder tests.
417
8100063e
NS
4182003-07-31 Nathan Sidwell <nathan@codesourcery.com>
419
420 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
421 more fully.
422 (Gcov Data Files): Update.
423
2a4e8ebc
RO
4242003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
425
426 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
427 default.
428
429 * gthr-posix.c: New file.
430 * gthr-posix.h: Define _REENTRANT if missing.
431 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
432
433 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
434 by gthr-posix.o.
435 * config/alpha/t-osf-pthread: New file.
436
437 * fixinc/inclhack.def (alpha_pthread): New fix.
438 * fixinc/fixincl.x: Regenerate.
439 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
440
441 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
442 warning.
443 Fixes PR bootstrap/9330.
444
689a714d
RO
4452003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
446
447 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
448 without GNU ld.
449 Update comment.
450 * configure: Regenerate.
451
caf819ae
VM
4522003-07-31 Vladimir Makarov <vmakarov@redhat.com>
453
f91f41b2
ZW
454 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
455 setter.
caf819ae 456
1aa0a5f6
RS
4572003-07-30 Roger Sayle <roger@eyesopen.com>
458
459 * builtins.def: Alphabetize.
460
4bd0bee9
MK
4612003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
462
463 * doc/c-tree.texi: Normalize spellings of "lowercase" and
464 "uppercase".
465 * doc/cpp.texi: Likewise.
466 * doc/md.texi: Likewise.
467 * doc/rtl.texi: Likewise.
468 * doc/tm.texi: Likewise.
469
7f02cb5c
MK
4702003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
471
472 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
473 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
474 of cc1obj.
475
498887c8
CD
4762003-07-30 Chris Demetriou <cgd@broadcom.com>
477
478 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
479 macros before defining them.
480
10bbf137
UW
4812003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
482
f91f41b2 483 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10bbf137
UW
484 UNSPECV_BLOCKAGE): New constants.
485 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
486 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
487 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
488 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
489
490 (all insns and expanders): Write output control string as brace block
491 where appropriate. Remove \-escapes for doublequote characters.
492
3f2eae23
JH
493Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
494
495 * gcse.c (insert_store): Fix typo in previous patch.
496
f0babc9a
NB
4972003-07-30 Neil Booth <neil@daikokuya.co.uk>
498
499 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
500
edeac5de
AK
5012003-07-30 Andi Kleen <ak@muc.de>
502
503 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
504
6e885ee3
ZD
5052003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
506
507 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
508 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
509 GCOV_N_VALUE_COUNTERS): New.
510 * profile.c (compute_value_histograms): New static function.
511 (branch_prob): Read back the value histograms.
512 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
513 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
514 * value-prof.c: Add comment on reading the profile.
515 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
516 * doc/invoke.texi (-fprofile-values): Document behavior with
517 -fbranch-probabilities.
518
0e6cb2cb
DE
5192003-07-30 David Edelsohn <edelsohn@gnu.org>
520
521 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
522
656ec3b1
UW
5232003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
524
525 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
526 symbolically.
527
a0c8285b
JH
528Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
529
530 * gcse.c (insert_store): Ignore fake edges.
531
532 * c-common.c (flag_vtable_gc): Kill.
533 * c-common.g (flag_vtable_gc): Kill.
534 * c-opts (c_common_handle_option): Kill.
535 * c.opt (fvtable-gc): Kill.
536 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
537 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
538 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
539
540 * invoke.texi (-ftable-gc): Kill documentation.
541
542 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
543 just because function body is missing.
544
545 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
546
b2e863b8
RM
5472003-07-30 Ranjit Mathew <rmathew@hotmail.com>
548
549 * unwind-sjlj.c: Fix typo in file description.
550
9206d736
AM
5512003-07-30 Alan Modra <amodra@bigpond.net.au>
552
553 * calls.c (load_register_parameters): When shifting reg sized values
554 to the msb, move the value to a reg first.
555
9074464c
GK
5562003-07-29 Geoffrey Keating <geoffk@apple.com>
557
558 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
559 * line-map.h (linemap_add): Update comments.
560 * line-map.c (linemap_add): Update comments, interpret zero-length
561 filename as "<stdin>".
562
e55e4f68
NN
5632003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
564
565 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
566
55d54003
ZW
5672003-07-29 Zack Weinberg <zack@codesourcery.com>
568
569 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
570 New static variables.
571 (struct c_scope): Add parms and warned_forward_parm_decls
572 fields; remove parm_order.
573 (storedecls, storetags): Delete.
574 (poplevel): Also clear bindings on the parms chain.
575 (pushdecl): Handle forward declarations of parameters, and
576 chain PARM_DECLs on the parms list, not the names list.
577 (lookup_name_current_level): Check for PARM_DECLs on the parms
578 list too.
579 (push_parm_decl): Don't update parm_order.
580 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
581 warning, only once per parameter list, and set TREE_ASM_WRITTEN
582 on the decls here. Then move the forward decls to the names list.
583 (grokparms): Set last_function_parm_vars.
584 (get_parm_info): Don't use gettags or getdecls. No need to
585 extract non-parms from the parms list, or reorganize the parms
586 list. Feed nonparms back in the TREE_TYPE of the list node
587 returned. Issue only one error per parameter list for "void"
588 appearing more than once in said parameter list. Collapse
589 parmlist_tags_warning into this function to avoid double scan
590 of tags list.
591 (start_function): Set current_function_parm_vars.
592 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
593 directly. Get non-parms from current_function_parm_vars; no
594 need to extract them from the parms chain. Properly bind tags
595 in the new scope.
596 (store_parm_decls_oldstyle): No need to extract non-parameters
597 from the parms chain, nor to store them back afterward. Move
598 declaration to top of function, restructure code reordering
599 DECL_ARGUMENTS.
600 (store_parm_decls): No need to save and restore warn_shadow.
601 * c-parse.in: Don't call parmlist_tags_warning nor
602 clear_parm_order. Call mark_forward_parm_decls when forward
603 parm decls are encountered.
604 * c-tree.h: Prototype mark_forward_parm_decls; not
605 clear_parm_order or parmlist_tags_warning.
606
18c81520
GK
6072003-07-29 Geoffrey Keating <geoffk@apple.com>
608
609 * c-common.c (allow_pch): Remove.
610 * c-common.h (allow_pch): Remove.
611 (c_common_no_more_pch): Declare.
612 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
613 * c-pch.c: Include hosthooks.h.
614 (c_common_valid_pch): Don't check allow_pch.
615 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
616 (c_common_no_more_pch): New.
617 * ggc-common.c: Include hosthooks.h.
618 (gt_pch_save): Call gt_pch_get_address.
619 (gt_pch_restore): Call gt_pch_use_address.
620 * hooks.c (hook_voidp_size_t_null): New.
621 (hook_bool_voidp_size_t_false): New.
622 * hooks.h (hook_voidp_size_t_null): New.
623 (hook_bool_voidp_size_t_false): New.
624 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
625 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
626 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
627 HOST_HOOKS_GT_PCH_USE_ADDRESS.
628 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
629 gt_pch_use_address.
630 * doc/hostconfig.texi (Host Common): Document
631 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
632 * Makefile.in (c-pch.o): Depend on hosthooks.h.
633 (ggc-common.o): Likewise.
634
635 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
636 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
637 (pch_address_space): New.
638 (darwin_rs6000_gt_pch_get_address): New.
639 (darwin_rs6000_gt_pch_use_address): New.
640
8f9b4009
NB
6412003-07-29 Neil Booth <neil@daikokuya.co.uk>
642
cb6eb88a
NB
643 PR preprocessor/11569
644 PR preprocessor/11649
8f9b4009
NB
645 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
646 * cppfiles.c: Completely rewritten.
647 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
648 struct cpp_path is now struct cpp_dir.
649 (remove_duplicates): Don't simplify path names.
650 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
651 cpp_stack_file.
652 * cpphash.h: Include hashtab.h.
653 (_cpp_file): Declare.
654 (struct cpp_buffer): struct include_file is now struct _cpp_file,
655 and struct cpp_path is now struct cpp_dir. Rename members.
656 (struct cpp_reader): Similarly. New members once_only_files,
657 file_hash, file_hash_entries, quote_ignores_source_dir,
658 no_search_path, saw_pragma_once. Remove all_include_files and
659 max_include_len. Make some members bool.
660 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
661 (_cpp_stack_file): Renamed from _cpp_read_file.
662 (_cpp_stack_include): Renamed from _cpp_execute_include.
663 (_cpp_init_files): Renamed from _cpp_init_includes.
664 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
665 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
666 (cpp_read_next_file): Rename and move to cppfiles.c.
667 (cpp_read_main_file): Update.
668 * cpplib.c (run_directive): Update for renamed members.
669 (do_include_common, _cpp_pop_buffer): Update.
670 (do_import): Undeprecate #import.
671 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
672 * cpplib.h: Remove file_name_map_list.
673 (cpp_options): Remove map_list.
674 (cpp_dir): Rename from cpp_path. New datatype for name_map.
675 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
676
a6400add
PE
6772003-07-29 Phil Edwards <pme@gcc.gnu.org>
678
679 * Makefile.in: Make stamp-objdir safe for parallel builds.
680
b2790407
PE
6812003-07-29 Phil Edwards <pme@gcc.gnu.org>
682
683 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
684 (info): Depend on stmp-docobjdir.
685
8e3940b2
RO
6862003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
687
688 * configure: Regenerate.
689
987bf56f
JH
690Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
691
692 PR C++/11131
693 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
694 in !unit-at-a-time mode.
695
5f0eabcc
GK
6962003-07-28 Geoffrey Keating <geoffk@apple.com>
697
698 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
699 main function.
700
7b6d72fc
MM
7012003-07-28 Mark Mitchell <mark@codesourcery.com>
702
703 PR c++/11667
704 * c-common.c (shorten_compare): Take into account differences
705 between C and C++ representation for enumeration types.
706 * tree.h (set_min_and_max_values_for_integral_type): Declare.
707 * stor-layout.c (set_min_and_max_values_for_integral_type): New
708 function, broken out from ...
709 (fixup_signed_type): ... here and ...
710 (fixup_unsigned_type): ... here.
711
14077d68
ZW
7122003-07-28 Zack Weinberg <zack@codesourcery.com>
713
714 * c-decl.c: Update commentary, adjust blank lines throughout.
715 (struct c_scope): Fix indentation. Reorder members so
716 outer-context pointers come first, booleans last.
717 (duplicate_decls, define_label): Use a 'locus' variable for
718 diagnostic locations in a few more places.
719 (warn_if_shadowing): Un-split a conditional that fits on one line.
720 (c_init_decl_processing): No need to clear current_scope and
721 current_function_scope.
722 (start_decl): Merge if/else if statements with same action.
723 (push_parm_decl): Rename old_immediate_size_expand to use
724 save_foo convention; save/restore around entire function.
725 (grokdeclarator): Remove unnecessary braces.
726
85617eba
HPN
7272003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
728 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
729
730 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
731 when warn_declaration_after_statement. Call pedwarn_c90, not
732 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
733 * c-common.c (warn_declaration_after_statement): Define.
734 * c-common.h (warn_declaration_after_statement): Declare.
735 * c.opt (Wdeclaration-after-statement): New.
736 * c-errors.c (pedwarn_c90): New function.
737 * c-opts.c (c_common_handle_option) <case
738 OPT_Wdeclaration_after_statement>: New.
739 * c-tree.h (pedwarn_c90): Declare.
740 * doc/invoke.texi (Option Summary): Document
741 -Wdeclaration-after-statement.
742 (Warning Options): Ditto.
743
f527d196
JH
744Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
745
746 * i386.md (memory attribute) Avoid accessing uninitialized memory
747 for ishift1 type instructions.
748
5dfa45d0
JJ
7492003-07-28 Jakub Jelinek <jakub@redhat.com>
750
751 * configure.in (--enable-checking): Add fold category.
752 (ENABLE_FOLD_CHECKING): Define if requested.
753 * configure: Rebuilt.
754 * config.in: Rebuilt.
755 * doc/install.texi: Document it.
756 * fold-const.c: Include md5.h.
757 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
758 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
759 print_fold_checksum): New functions.
760
761 * fold-const.c (fold): Never modify argument passed to fold, instead
762 change a copy and return it.
763 * convert.c (convert_to_integer): Likewise.
764
447673de
NN
7652003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
766
14077d68 767 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
768 cleanup of junk after #else and #endif directives. Collapse repeated
769 clauses into for statment.
770
771 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
772
66db6b62
ZW
7732003-07-27 Zack Weinberg <zack@codesourcery.com>
774
a8ccdffe
ZW
775 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
776 (keep_next_if_subblocks): Rename next_is_function_body.
777 (pushlevel): Adjust commentary. Always set ->keep on the
778 outermost level of a function. Don't set ->keep_if_subblocks.
779 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
780 (store_parm_decls): Adjust to match.
781 (finish_function): Adjust to match.
782 Call poplevel with all three arguments zero.
783
66db6b62
ZW
784 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
785 New functions split out of store_parm_decls.
786 Avoid unnecessary work. Use local variables consistently.
787 (store_parm_decls): Likewise.
788
789 (finish_function): No need to set functionbody flag on call to
790 poplevel.
791 (struct language_function): Remove scope field.
792 (c_push_function_context, c_pop_function_context): No need to
793 save and restore current_scope.
794
90ea7324
NS
7952003-07-27 Nathan Sidwell <nathan@codesourcery.com>
796
797 * doc/extend.texi (Deprecated Features): Implicit typename is
798 gone. Default args on types is going.
799
11a004ef
R
8002003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
801
802 * Makefile.in (ifcvt.o): Depend on target.h
803 * ifcvt.c (target.h): Include.
804 (if_convert): Don't call mark_loop_exit_edges if we can't
805 modify jumps.
806
6cbf57c9
GP
8072003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
808
809 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
810
a6c14a64
RH
8112003-07-26 Richard Henderson <rth@redhat.com>
812
813 PR inline-asm/11676
814 * cse.c (count_reg_usage): Handle asm_operands properly.
815
cc42f5f5
RS
8162003-07-26 Roger Sayle <roger@eyesopen.com>
817
818 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
819 (DEF_EXT_FALLBACK_BUILTIN): Delete.
820 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
821 the regular DEF_EXT_LIB_BUILTIN macro.
822 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
823 the regular DEF_LIB_BUILTIN macro.
824 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
825 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
826 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
827 DEF_EXT_LIB_BUILTIN macro.
828
829 * c-decl.c (duplicate_decls): Remove code to handle builtin
830 functions prototyped without an argument list.
831
92e7a6ef
DS
8322003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
833
834 * config/i386/winnt.c: Revert 2003-07-08 change.
835 (i386_pe_section_type_flags): Remove error_with_decl here too.
836
ba9cfcb5
GDR
8372003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
838
839 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
840 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
841 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
842 (v850_handle_data_area_attribute): Likewise.
843
0e5da0be
GK
8442003-07-26 Geoffrey Keating <geoffk@apple.com>
845
66db6b62 846 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
847 ASM_DECLARE_CONSTANT_NAME if defined.
848 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
849 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
850 objects get at least one byte to prevent assembler problems.
851 (ASM_DECLARE_CONSTANT_NAME): New.
852
d2908a50
GK
853 * Makefile.in (libbackend.o): Remove options_.h.
854 (mostlyclean): Likewise.
855
0e5da0be
GK
856 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
857 insert a label at the end of an function under Mach-O.
863d3dfb
GK
858
859 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
860
36252949
AH
8612003-07-25 Aldy Hernandez <aldyh@redhat.com>
862
863 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
864 equality.
865 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
866
867 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
868
0fe37f68
GDR
8692003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
870
871 * doc/passes.texi (Passes): Mention pretty-printing and
872 diagnostic files.
873
50fc59e7
NS
8742003-07-25 Nathan Sidwell <nathan@codesourcery.com>
875
876 * doc/extend.texi (Function Attributes): GNU C++ does now allow
877 unused parameter decls.
878 (Attribute Syntax): GNU C++ does not allow label attributes to be
879 after the ':'.
880
cd475805
GDR
8812003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
882
883 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
884 (objc_declare_class): Likewise.
885 (error_with_ivar): Likewise.
886 (start_class): Likewise.
887 (warn_with_method): Likewise.
888
b6fe0bb8
GDR
8892003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
890
891 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 892 from GCC.
b6fe0bb8
GDR
893 * calls.c (try_to_integrate): Don't use xxx_with_decl.
894 (expand_call): Likewise.
895 * dwarfout.c (output_reg_number): Likewise.
896 * expr.c (expand_expr): Likewise.
897 * function.c (assign_temp): Likewise.
898 (uninitialized_vars_warning): Likewise.
899 (setjmp_args_warning): Likewise.
900 (expand_function_end): Likewise.
901 * stmt.c (fixup_gotos): Likewise.
902 (warn_about_unused_variables): Likewise.
903 (expand_end_bindings): Likewise.
904 * stor-layout.c (layout_decl): Likewise.
905 (place_field): Likewise.
906 * toplev.c (check_global_declarations): Likewise.
907 (rest_of_handle_inlining): Likewise.
908 (default_tree_printer): New function.
909 (general_init): Initialize diagnostic machinery before routing
910 signals to the ICE machinery. Set default tree printer.
911 * toplev.h (pedwarn_with_decl): Remove declaration.
912 (warning_with_decl): Likewise.
913 (error_with_decl): Likewise.
66db6b62 914 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
915 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
916 * varasm.c (named_section): Likewise.
917 (make_decl_rtl): Likewise.
918 (assemble_variable): Likewise.
919 (merge_weak): Likewise.
920 (declare_weak): Likewise.
921
922 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
923 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
924 (format_with_decl): Remove.
925 (diagnostic_for_decl): Likewise.
926 (pedwarn_with_decl): Likewise.
927 (warning_with_decl): Likewise.
928 (error_with_decl): Likewise.
929 (diagnostic_initialize): Adjust.
930 (diagnostic_count_diagnostic): Likewise.
931 (announce_function): Likewise.
932 (lhd_print_error_function): Likewise.
933 (diagnostic_report_current_module): Likewise.
934 (default_diagnostic_starter): Likewise.
935 (diagnostic_report_diagnostic): Likewise.
936 (default_diagnostic_finalizer): Likewise.
937 (verbatim): Likewise.
938 (error): Likewise.
939 (warning): Likewise.
940 * opts.c (common_handle_option): Likewise.
941 * pretty-print.c: New file.
942 * c-pretty-print.h (pp_base): Override.
943 * c-pretty-print.c: Adjust use of macros throughout.
944 (pp_buffer): New macro.
945 (pp_newline): Likewise.
946 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
947 * Makefile.in (DIAGNOSTIC_H): New variable.
948 (c-errors.o): Use it.
949 (c-objc-common.o): Likewise.
950 (c-common.o): Likewise.
951 (c-opts.o): Likewise.
952 (c-format.o): Likewise.
953 (diagnostic.o): Likewise.
954 (opts.o): Likewise.
955 (toplev.o): Likewise.
956 (rtl-error.o): Likewise.
957 (dwarf2out.o): Likewise.
958 (jump.o): Likewise.
959 (pretty-print.o): New rule.
960
868b8cda
RS
9612003-07-24 Roger Sayle <roger@eyesopen.com>
962
963 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
964 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
965 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
966 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
967 (DEF_FRONT_END_LIB_BUILTIN): Delete.
968 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
969 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
970
971 * builtins.c (build_string_literal): New function to construct
972 a char* pointer to a string literal.
973 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
974 "rtx target" to be consistent with other expand_builtin_* functions.
975 Change 3rd argument from "int unlocked" to "bool unlocked".
976 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
977 c-common.c to avoid front-end dependencies. Optimize printf("")
978 as a no-op when the result isn't required. Handle embedded NULs
979 in format string.
980 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
981 from c-common.c to avoid front-end dependencies. Likewise, optimize
982 fprintf(fp,"") as a no-op when the result isn't required, evaluating
983 fp for side-effects. Handle embedded NULs in format string.
984 (expand_builtin_sprintf): Fix typo.
985 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
986 optimizing. Adjust calls of expand_builtin_fputs to match the API
987 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
988 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
989 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
990
991 * c-common.c (is_valid_printf_arglist): Delete.
992 (c_expand_builtin): Delete.
993 (c_expand_builtin_printf): Moved to builtins.c. Delete.
994 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
995 (c_expand_expr): No longer treat CALL_EXPRs specially.
996 (CALLED_AS_BUILT_IN): Delete.
997
2a868ea4
ZD
9982003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
999
1000 PR optimization/11631
1001 * gcse.c (store_motion): Connect infinite loops to exit.
1002
de7df9eb
JM
10032003-07-24 Jason Merrill <jason@redhat.com>
1004
1005 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1006 (boolean_true_node, boolean_false_node): Likewise.
1007 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1008 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1009 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1010 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1011 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1012 (truthvalue_true_node): Renamed from boolean_true_node.
1013 (truthvalue_false_node): Renamed from boolean_false_node.
1014 * c-decl.c: Just set truthvalue_* to integer_*.
1015 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1016
6907ddd3
RS
10172003-07-24 Roger Sayle <roger@eyesopen.com>
1018
1019 * c-decl.c (match_builtin_function_types): New subroutine of
1020 duplicate_decls to test whether a redeclaration of a builtin
1021 function is suitably close, i.e. the return type and all of
1022 the argument types have the same modes as the builtin expects.
1023 (duplicate_decls): Fuzzy type matching for builtin functions
1024 moved to match_builtin_function_types.
1025
84d45ad1
ZD
10262003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1027
1028 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1029 flag correctly.
1030
f8521984
ZW
10312003-07-24 Zack Weinberg <zack@codesourcery.com>
1032
1033 * c-decl.c: Search-and-replace change 'binding level' to
1034 'scope' in commentary.
1035 (struct binding_level): Now struct c_scope.
1036 (current_binding_level): Now current_scope.
1037 (free_binding_level): Now scope_freelist.
1038 (current_function_level): Now current_function_scope.
1039 (global_binding_level): Now global_scope.
1040 (make_binding_level): Now make_scope.
1041 (pop_binding_level): Now pop_scope.
1042
0f31374d
RO
10432003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1044
1045 * configure.in (libgcc_visibility): Add missing whitespace.
1046
270606ac
RH
10472003-07-24 Richard Henderson <rth@redhat.com>
1048
1049 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1050 __gcc_personality_v0.
f8521984 1051
5f08e44f
RO
10522003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1053
1054 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1055
a4878735
NS
10562003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1057
1058 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1059 documentation missed from my 2003-07-09 patch.
1060
5aaaf0e8
NN
10612003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
1062
1063 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1064 it's not provided.
1065 * configure: Rebuild.
1066
8f5b6d29
SB
10672003-07-24 Steven Bosscher <steven@gcc.gnu.org>
1068
1069 PR c/10602
1070 * c-typeck.c (type_lists_compatible_p): Do not compare
1071 arguments if one of them is an error_mark_node
1072
acd0b319
AM
10732003-07-24 Alan Modra <amodra@bigpond.net.au>
1074
1075 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1076 if current_function_calls_eh_return.
1077
28b619b2
MM
10782003-07-23 Mark Mitchell <mark@codesourcery.com>
1079
1080 * doc/c-tree.texi (OFFSET_TYPE): Update description.
1081
07154156
BW
10822003-07-23 Bob Wilson <bob.wilson@acm.org>
1083
1084 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1085 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1086 __umodsi3, __modsi3): Increase frame size to 32.
1087
5f5bfdd0
GK
10882003-07-23 Geoffrey Keating <geoffk@apple.com>
1089
1090 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1091 prototype.
1092
11b8e71c
MM
10932003-07-23 Mark Mitchell <mark@codesourcery.com>
1094
28b619b2
MM
1095 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1096
11b8e71c
MM
1097 PR optimization/10679
1098 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1099
9d6b7c09
JDA
11002003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1101
1102 PR target/11607 and PR target/11516
1103 * pa.md (extzv, extv, insv): Revert latter half of last patch.
1104
a5ac359a
MM
11052003-07-22 Mark Mitchell <mark@codesourcery.com>
1106
1107 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1108 * varasam.c (output_constant): Likewise.
1109
938d968e
KH
11102003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1111
1112 * alias.c: Fix comment formatting.
1113 * c-common.c: Likewise.
1114 * c-decl.c: Likewise.
1115 * c-opts.c: Likewise.
1116 * combine.c: Likewise.
1117 * cpplib.c: Likewise.
1118 * diagnostic.c: Likewise.
1119 * dojump.c: Likewise.
1120 * final.c: Likewise.
1121 * fold-const.c: Likewise.
1122 * gcc.c: Likewise.
1123 * gcse.c: Likewise.
1124 * ggc-page.c: Likewise.
1125 * jump.c: Likewise.
1126 * loop.c: Likewise.
1127 * mips-tfile.c: Likewise.
1128 * recog.c: Likewise.
1129 * regclass.c: Likewise.
1130 * regmove.c: Likewise.
1131 * tree.c: Likewise.
1132 * tree.h: Likewise.
1133
b3147029
PB
11342003-07-22 Per Bothner <pbothner@apple.com>
1135
1136 * line-map.c (add_line_map): Handle invalid LEAVE request.
1137 Fixes PR preprocessor/11361.
1138
53f72d60
PB
11392003-07-22 Per Bothner <pbothner@apple.com>
1140
1141 * diagnostic.c.(diagnostic_report_current_module): Update to match
1142 2003-06-05 changes to push_srcloc and pop_srcloc.
1143
5cf0212f
WB
11442003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
1145
1146 * doc/trouble.texi: Better document two-stage name lookup.
1147
c7453384
EC
11482003-07-22 Eric Christopher <echristo@redhat.com>
1149
1150 * config/s390.c (s390_valid_pointer_mode): New.
1151 (TARGET_VALID_POINTER_MODE): Use.
1152 (s390_emit_prologue): Add tpf profiling hooks.
1153 (s390_emit_epilogue): Ditto.
1154 * config/s390.h (MASK_TPF): New.
1155 (TARGET_TPF): Use.
1156 (POINTERS_EXTEND_UNSIGNED): Define.
1157 * config/s390.md (ptr_extend): New pattern.
1158
a2f7be91
ZW
11592003-07-22 Zack Weinberg <zack@codesourcery.com>
1160
1161 * hashtable.c (approx_sqrt): Make static.
1162 * hashtable.h: Don't prototype approx_sqrt.
1163 * line-map.c (init_line_maps): Rename linemap_init.
1164 (free_line_maps): Rename linemap_free.
1165 (add_line_map): Rename linemap_add.
1166 (lookup_line): Rename linemap_lookup.
1167 (print_containing_files): Rename linemap_print_containing_files.
1168 * linemap.h: Update to match.
1169
1170 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1171 linemap routines to use new names.
1172
c6e4cc53
NS
11732003-07-16 Nathan Sidwell <nathan@codesourcery.com>
1174
1175 * c-common.c (handle_packed_attribute): Don't pack a struct via a
1176 typedef. Propagate packedness from a main variant.
1177
55de4f08
NN
11782003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
1179
1180 * Makefile.in (install-common): Add dependency on installdirs.
1181
fb5d2a87
AO
11822003-07-21 Alexandre Oliva <aoliva@redhat.com>
1183
1184 * c-common.c (c_common_type_for_mode): Return integer types for
1185 pointer modes.
1186
905bd7b5
GK
11872003-07-22 Geoffrey Keating <geoffk@apple.com>
1188
d05cc98e
GK
1189 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1190 (finish_decl): Call maybe_apply_pragma_weak here.
1191 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1192 TREE_PUBLIC and TREE_STATIC are decided.
1193 (start_function): Move call to maybe_apply_pragma_weak. Check that
1194 DECL_ASSEMBLER_NAME isn't set too early.
1195
905bd7b5
GK
1196 * cpplex.c (_cpp_process_line_notes): Mention option name in
1197 trigraphs warning.
1198
87d9741e
KH
11992003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1200
1201 * combine.c (if_then_else_cond): Simplify the comparison of
1202 rtx against -1, 0, and 1.
1203 * loop.c (check_dbra_loop): Likewise.
1204 * optabs.c (emit_conditional_move): Likewise.
1205 (emit_conditional_add): Likewise.
1206 * config/i386/i386.md (*movsi_or): Likewise.
1207 (*movdi_or_rex6): Likewise.
1208
b67d7f4a
JH
1209Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1210
1211 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1212
8d973a83
NB
12132003-07-21 Neil Booth <neil@daikokuya.co.uk>
1214
1215 * cppfiles.c (open_file_pch): Don't put unused entries in the
1216 splay tree. Remove dead code.
1217
49a64b24
GK
12182003-07-21 Geoffrey Keating <geoffk@apple.com>
1219
48873ed2
GK
1220 * c-common.h (num_in_fnames): Declare.
1221 (c_static_assembler_name): Move from here...
1222 * c-tree.h (c_static_assembler_name): ... to here.
1223 * c-opts.c: Don't include langhooks-def.h.
1224 (c_static_assembler_name): Move to c-decl.c.
1225 (num_in_fnames): Make externally visible.
1226 * c-decl.c: Include langhooks-def.h.
1227 (c_static_assembler_name): Move from c-opts.c.
1228 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1229 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1230
49a64b24
GK
1231 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1232 when it's not needed.
1233
8c29550d
JJ
12342003-07-21 Jakub Jelinek <jakub@redhat.com>
1235
1236 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1237 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1238 (rs6000_emit_prologue): Save FPRs inline if set.
1239
92cbea22
L
12402003-07-21 H.J. Lu <hongjiu.lu@intel.com>
1241
1242 * config/ia64/ia64.md (prefetch): Support predicate.
1243
ee735eef
JZ
12442003-07-21 Josef Zlomek <zlomekj@suse.cz>
1245
1246 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1247 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1248 table.
1249
bbda30a4
EB
12502003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1251
a2f7be91 1252 PR optimization/11536
bbda30a4
EB
1253 * unroll.c (loop_iterations): Do not replace a register holding
1254 the final value by its equivalent before the loop if it is not
1255 invariant.
1256
64c18e57
DF
12572003-07-21 Dave Fluri <dave.fluri@onlink.net>
1258
1259 * doc/extend.texi: Fixes to spelling, grammar, and diction.
1260
b222f49a
BE
12612003-07-21 Ben Elliston <bje@wasabisystems.com>
1262
1263 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1264 (V850 Options): Spelling fixes.
1265
9eff22bc
LG
12662003-07-20 Lisa M. Goldstein <opus@gnu.org>
1267
a2f7be91 1268 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 1269
6a6c0154
RS
12702003-07-20 Roger Sayle <roger@eyesopen.com>
1271
1272 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1273 * system.h (SMALL_STACK): Poison obsolete target macro.
1274 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1275
d38b3a8d
PE
12762003-07-20 Phil Edwards <pme@gcc.gnu.org>
1277
1278 * configure.in: Cache the results of testing for cmp's capabilities.
1279 * configure: Regenerate.
1280
35dc2bd8
MM
12812003-07-20 Mark Mitchell <mark@codesourcery.com>
1282
1283 PR debug/11279
1284 * dwarf2out.c (gen_enumeration_type_die): Remember that
1285 enumerators can be unsigned.
1286
14e33ee8
ZW
12872003-07-19 Zack Weinberg <zack@codesourcery.com>
1288
1289 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1290 (push_label_level, pop_label_level): Kill.
1291 (struct binding_level): Rename level_chain to outer.
1292 Add outer_function field. Change parm_flag, function_body,
1293 keep, keep_if_subblocks to 1-bit bitfields of type bool.
1294 (current_function_level): New variable.
1295 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1296 (keep_next_level, declare_parm_level, warn_if_shadowing):
1297 Update to match.
1298 (struct language_function): Kill named_labels, shadowed_labels fields.
1299 (c_init_decl_processing, start_function, c_push__function_context)
1300 (c_pop_function_context): No need to muck with named_labels nor
1301 shadowed_labels.
1302
1303 (make_binding_level): No need to clear the structure here.
1304 (pop_binding_level): Always operate on current_binding_level.
1305 Update current_function_level if necessary.
1306 (pushlevel): Don't clear named_labels. Update current_function_level
1307 if necessary. Use "true" and "false" where appropriate.
1308 (poplevel): Diagnose labels defined but not used, or vice
1309 versa, and clear out label-meanings leaving scope, while
1310 walking down the decls list, for all binding levels.
1311 Handle LABEL_DECLs appearing in the shadowed list.
1312 pop_binding_level takes no arguments.
1313 (pushdecl_function_level): Use current_function_level.
1314
1315 (make_label, bind_label): New static functions.
1316 (declare_label): New exported function.
1317 (lookup_label, define_label): Rewritten for new data structure.
1318 (shadow_label): Kill.
1319
1320 * c-tree.h: Prototype declare_label; don't prototype
1321 push_label_level, pop_label_level, nor shadow_label.
1322 * c-parse.in: Remove all calls to push_label_level and
1323 pop_label_level. Use declare_label for __label__ decls.
1324
1325 * doc/extend.texi: Clarify that __label__ can be used to
1326 declare labels with local scope in any nested block, not
1327 just statement expressions. Cross-reference nested functions
1328 section from local labels section.
1329
8a6b9b7f
ZD
13302003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1331
1332 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1333
026fe6c8
PE
13342003-07-19 Phil Edwards <pme@gcc.gnu.org>
1335
1336 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
1337
c68b0a84
KG
13382003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1339
1340 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
1341 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
1342
fd7643fb
UW
13432003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
1344
14e33ee8 1345 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
1346 relative to the GOT instead of relative to the literal pool base.
1347 (s390_output_symbolic_const): Handle new GOT-relative accesses.
1348 * config/s390/s390.md ("call"): Access local functions and PLT stubs
1349 relative to the GOT instead of relative to the literal pool base.
1350 ("call_value"): Likewise.
1351 ("call_value_tls"): Likewise.
1352
14e33ee8 1353 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
1354 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
1355 (s390_chunkify_finish): Likewise.
1356 (s390_chunkify_cancel): Likewise.
1357 (s390_reorg): Adapt caller.
1358 (find_base_register_in_addr,
1359 find_base_register_ref, replace_base_register_ref): Delete.
1360 (find_ltrel_base, replace_ltrel_base): New functions.
1361 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
1362 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
1363 base vs. index register usage.
1364 (struct constant_pool): Remove 'anchor'.
1365 (s390_add_anchor): Delete.
1366 (s390_dump_pool): Remove anchor handling.
1367 * config/s390/s390.md ("reload_anchor"): Remove.
1368
1369 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
1370 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
1371 (s390_emit_prologue): Use it.
14e33ee8
ZW
1372 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
1373 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
1374 hard-code register 14.
1375 * config/s390/s390-protos.h (s390_load_got): Declare.
1376
14e33ee8 1377 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
1378 Support TImode constants.
1379 * config/s390/s390.md ("consttable_ti"): New.
1380 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
1381
1382 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
1383 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
1384 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
1385 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
1386 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
1387 New symbolic constants.
1388 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1389 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
1390 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
1391 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
1392 symbolic UNSPEC values.
14e33ee8 1393 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
1394 bras_sym_operand, s390_cannot_force_const_mem,
1395 s390_delegitimize_address, s390_decompose_address,
1396 legitimize_pic_address, s390_output_symbolic_const,
1397 s390_function_profiler): Use symbolic UNSPEC values.
1398
703ad42b
KG
13992003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1400
1401 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
1402 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
1403 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
1404 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
1405 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
1406 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
1407 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
1408 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
1409 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
1410 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
1411 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
1412 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
1413 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
1414 postreload.c prefix.c print-tree.c protoize.c ra-build.c
1415 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
1416 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
1417 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
1418 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
1419 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
1420 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
1421 casts.
1422
308ca868
GDR
14232003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1424
1425 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
1426 * toplev.h (warning): Remove attribute.
1427
435ab236
GDR
14282003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1429
1430 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
1431 (pop_label_level): Likewise.
1432 (duplicate_decls): Likewise.
1433 (implicitly_declare): Likewise.
1434 (shadow_label): Likewise.
1435 (start_decl): Likewise.
1436 (finish_decl): Likewise.
1437 (grokdeclarator): Likewise.
1438 (get_parm_info): Likewise.
1439 (detect_field_duplicates): Likewise.
1440 (finish_struct): Likewise.
1441 (start_function): Likewise.
1442 (store_parm_decls): Likewise.
1443 (finish_function): Likewise.
1444 (c_expand_body_1): Likewise.
1445 (check_for_loop_decls): Likewise.
1446 (merge_translation_unit_decls): Likewise.
1447
2cc98056
NB
14482003-07-19 Neil Booth <neil@daikokuya.co.uk>
1449
1450 * common.opt: Document --param.
1451 * opts.c (columns, undocumented_msg): New.
1452 (print_help): Get number of columns from environment. Print
1453 --param help. Tweak newline handling.
1454 (print_param_help): New.
1455 (print_filtered_help): Better handling of duplicates. Complain
1456 about undocumented switches.
1457 (print_switch): New.
1458 (wrap_help): Improve wrapping, use COLUMNS.
1459 * opts.sh: Ignore comments in records.
1460 * params.def: Fix typos and remove trailing periods.
1461 * toplev.c (display_help): Don't dump --param help.
1462 * doc/sourcebuild.texi: Update.
1463
d893ccde
RH
14642003-07-18 Richard Henderson <rth@redhat.com>
1465
0e38b30b 1466 PR target/11556
d893ccde
RH
1467 * optabs.c (prepare_operand): Fail gracefully instead of abort
1468 if the predicate doesn't satisfy.
1469 (gen_cond_trap): Allow prepare_operand to fail.
1470
eb8221ea
GDR
14712003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1472
1473 * c-common.c: Don't undefine GCC_DIAG_STYLE.
1474 (fname_decl): Don't use xxx_with_decl.
1475 (c_add_case_label): Likewise.
1476 (handle_section_attribute): Likewise.
1477 (handle_alias_attribute): Likewise.
1478 (handle_no_instrument_function_attribute): Likewise.
1479 (handle_no_limit_stack_attribute): Likewise.
1480 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
1481 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
1482
65f43cdf
ZD
14832003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1484
1485 * Makefile.in (ifcvt.o): Add cfgloop.h.
1486 * basic-block.h (EDGE_LOOP_EXIT): New flag.
1487 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
1488 * ifcvt.c: Include cfgloop.h.
1489 (mark_loop_exit_edges): New static function.
1490 (if_convert): Call it.
1491 (find_if_header): Ignore branches out of loops.
1492
e5686da7
KH
14932003-07-18 Kazu Hirata <kazu@cs.umass.edu>
1494
14e33ee8 1495 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
1496 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
1497
8d05ebaa
DE
14982003-07-18 David Edelsohn <edelsohn@gnu.org>
1499
1500 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
1501 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1502 (MUST_PASS_IN_STACK): Define.
1503 (BLOCK_REG_PADDING): Define.
1504
79019985
RH
15052003-07-18 Richard Henderson <rth@redhat.com>
1506
1507 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
1508 to skip the addr_vec.
1509
0595d388
AO
1510Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
1511
1512 * combine.c (combinable_i3pat): Don't forbid occurrences of
1513 i2dest or i1dest in inner_dest if inner_dest is a mem.
1514
2ee1067b
JH
1515Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
1516
1517 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
1518
16f6812f
JJ
15192003-07-17 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR target/11087
1522 * loop.c (basic_induction_var): Check if convert_modes emitted any
1523 instructions. Remove them and return 0 if so.
1524
f129791c
EB
15252003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1526
1527 PR optimization/11083
1528 * toplev.c (rest_of_handle_addresof): Rename into
1529 rest_of_handle_addressof. Delete unreachable blocks
1530 if dead edges were purged after the addressof pass.
1531
b2e608ca
NB
15322003-07-18 Neil Booth <neil@daikokuya.co.uk>
1533
1534 * Makefile.in, configure, configure.in: Remove handling of
1535 lang-options.h and options_.h.
1536 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1537 (display_help): Don't use documented_lang_options.
1538
9cd51ef6
ZW
15392003-07-17 Zack Weinberg <zack@codesourcery.com>
1540
1541 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1542 (kept_level_p): Fold into poplevel.
1543 (undeclared_variable): Moved here from c-typeck.c. Export.
1544 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1545 (undeclared_variable): Prototype here. Don't prototype
1546 kept_level_p nor pushdecl_function_level.
1547 * c-parse.in: Change first argument to poplevel from
1548 "kept_level_p()" to "KEEP_MAYBE".
1549 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1550
cf6bcbd0
RS
15512003-07-17 Roger Sayle <roger@eyesopen.com>
1552
1553 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1554 commutative operands instead of modifying the RTL in-place.
1555
2b187c63
MM
15562003-07-17 Mark Mitchell <mark@codesourcery.com>
1557
1558 PR optimization/11557
1559 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1560 unless we know which function is being called.
1561
c715abdd
RS
15622003-07-17 Roger Sayle <roger@eyesopen.com>
1563
1564 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1565 whether to reorder the operands of a commutative binary operator.
1566
3e4093b6
RS
15672003-07-17 Roger Sayle <roger@eyesopen.com>
1568
1569 * fold-const.c (const_binop): Avoid performing the FP operation at
1570 compile-time, if either operand is NaN and we honor signaling NaNs,
1571 or if we're dividing by zero and either flag_trapping_math is set
1572 or the desired mode doesn't support infinities.
1573 (fold_initializer): New function to fold an expression ignoring any
1574 potential run-time exceptions or traps.
1575 * tree.h (fold_initializer): Prototype here.
1576 * c-typeck.c (build_binary_op): Move to the end of the file so
1577 that intializer_stack is in scope. If constructing an initializer,
1578 i.e. when initializer_stack is not NULL, use fold_initializer to
1579 fold expressions.
1580 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1581 performing FP operations at compile-time, if they would raise an
1582 exception at run-time.
1583
89e9faee
GK
15842003-07-17 Geoffrey Keating <geoffk@apple.com>
1585
26e0dcb3
GK
1586 PR 11498
1587 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1588 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1589 (GTFILES): Add langhooks.c.
1590 (gt-langhooks.h): New.
1591 * c-common.h (c_static_assembler_name): Prototype.
1592 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1593 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1594 * c-opts.c: Include langhooks-def.h.
1595 (c_static_assembler_name): New.
1596 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1597 (var_labelno): New.
1598 (lhd_set_decl_assembler_name): Give static objects with context
1599 unique names.
1600 * varasm.c (var_labelno): Delete.
1601 (make_decl_rtl): Don't change the assembler name once it's set.
1602
89e9faee
GK
1603 * c-opts.c (this_input_filename): New.
1604 (finish_options): Take new parameter, name of file being compiled.
1605 Update callers. Set this_input_filename.
1606 (push_command_line_include): Use this_input_filename not
1607 main_input_filename.
1608
6ec3f553
NB
16092003-07-17 Neil Booth <neil@daikokuya.co.uk>
1610
1611 * Makefile.in: Depend .pot generation on options.c.
1612 * po/exgettext: Add an extra_files variable containing additional
1613 files to scan.
1614
78ff95dc
ZW
16152003-07-17 Zack Weinberg <zack@codesourcery.com>
1616
36c6d174
ZW
1617 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1618 c_write_global_declarations.
1619
eb1dfbb2
ZW
1620 * c-decl.c: Fix typos in several comments. Remove all
1621 #if 0 blocks; reindent as needed. Remove unused argument
1622 to declare_parm_level; all callers changed.
1623 * c-parse.in: Update calls to declare_parm_level. Avoid
1624 issuing a double warning in some circumstances.
1625 * c-typeck.c: Update calls to declare_parm_level.
1626 * c-tree.h: Update prototype of declare_parm_level.
1627
1628 * c-pragma.c (apply_pragma_weak): Don't complain about a
1629 redundant #pragma weak.
1630
1631 * objc/objc-act.c (forward_declare_categories,
1632 build_selector_reference_decl, build_class_reference_decl,
1633 build_objc_string_decl, synth_forward_declarations,
1634 build_protocol_reference): Set TREE_PUBLIC on synthetic
1635 forward decl to 0, consistent with eventual definition.
1636 Correct comments to match.
1637
78ff95dc
ZW
1638 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1639 in regexp that don't form a range expression.
1640 * fixinc/fixincl.def: Regenerate.
1641
b23ba0b8
RH
16422003-07-17 Richard Henderson <rth@redhat.com>
1643
78ff95dc
ZW
1644 PR target/10907
1645 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1646 even with !TARGET_CONST_GP.
1647 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 1648
d944c82d
SB
16492003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1650
1651 * c-common.c (c_estimate_num_insns_1): Don't handle
1652 METHOD_CALL_EXPR.
1653 * expr.c (safe_from_p): Likewise.
1654 * gengtype.c (adjust_field_tree_exp): Likewise.
1655 * stmt.c (warn_if_unused_value): Likewise
1656 * tree.c (first_rtl_op): Likewise.
1657 * tree.def: Don't define METHOD_CALL_EXPR.
1658 * java/lang.c (java_estimate_num_insns_1): Don't handle
1659 METHOD_CALL_EXPR.
1660
54284728
EB
16612003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1662
1663 PR other/11466
1664 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1665 and its restrictions for the SPARC64 port.
1666 Move the entry of "-mimpure-text" before that of "-mv8".
1667
bc890961 16682003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 1669 Phil Edwards <phil@jaj.com>
bc890961
EB
1670
1671 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1672 procedure to bootstrap and install.
1673 Document the preference for the legacy Sun tools in /usr/bin
1674 over the POSIX tools in /usr/xpg4/bin for the build process.
1675
f2ac9964
NB
16762003-07-17 Neil Booth <neil@daikokuya.co.uk>
1677
1678 * c.opt: Document Uncodumented; use it. Document ObjC options.
1679 * opts.c (print_filtered_help): Skip undocumented switches.
1680 * opts.h (CL_UNDOCUMENTED): New.
1681 * opts.sh: Handle Undocumented.
1682 * toplev.c (documented_lang_options): Prevent its becoming empty.
1683objc:
1684 * lang-options.h: Remove.
1685
03988cac
UW
16862003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1687
1688 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1689 instead of struct loop_info * as argument. Accept BIVs with
1690 increment +/- 1 provided there is a friendly exit test against
1691 a loop-invariant value.
1692 (strength_reduce): Adapt call to check_ext_dependent_givs.
1693
fada1961
R
16942003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1695 Con Bradley <con.bradley@superh.com>
1696
1697 * sh-protos.h (sh_get_pr_initial_val): Declare.
1698 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1699 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1700 and live_regs_mask arguments. Changed all callers.
1701 (save_schedule_s): New structure.
1702 (save_schedule): New typedef.
1703 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1704 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1705 In interrupts handlers, also save registers that are usually
1706 partially saved, and make sure there is at least one general purpose
1707 register saved if a target register needs saving.
1708 Add casts in comparisons to avoid warnings.
1709 (sh_media_register_for_return): return -1 for interrupt handlers.
1710 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1711 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1712 registers used are available.
1713 Set RTX_FRAME_RELATED_P where appropriate.
1714 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1715 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1716 (initial_elimination_offset): Likewise.
1717 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1718 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1719 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1720 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1721 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1722 and for target registers.
1723 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1724 (regno_reg_class): Make its elements type enum reg_class.
1725 (CONSTRAINT_LEN): Don't use isdigit.
1726 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1727 (FUNCTION_ARG): Add parentheses to avoid warnings.
1728 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1729 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1730 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1731 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1732 * sh.md (xordi3+1): Remove unused variable regno.
1733 (return_media): Check that tr0 is available before using it.
1734
bae92bf3
NB
17352003-07-16 Neil Booth <neil@daikokuya.co.uk>
1736
1737 * c.opt: Document more options.
1738
cc8c96fd
RS
17392003-07-16 Roger Sayle <roger@eyesopen.com>
1740
1741 * combine.c (subst): Also handle (subreg (const_double ...)) case
1742 if created by a substitution, by using the original inner mode.
1743
d41ba56f
RS
17442003-07-16 Roger Sayle <roger@eyesopen.com>
1745
1746 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1747 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1748 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1749
264d65c1 17502003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 1751
264d65c1 1752 * doc/install.texi (--without-headers): New.
1622229c
AP
1753
1754 Partial Fix PR/10129
1755 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1756 (machopic_output_function_base_name): New; print the true pic label.
1757 (machopic_classify_ident): Pic Base is always a defined data.
1758 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1759 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1760
db2f435b
AP
1761 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1762 if they are not floating point registers.
1763
d07605f5
AP
1764 PR c/10962
1765 * ggc.h: Add header guards.
1766 * c-decl.c (finish_struct): Sort fields if
1767 number greater than 15 and there are no
1768 anonymous structs/unions.
1769 * c-common.h: Include ggc.h.
1770 (sorted_fields_type): New struct.
1771 (field_decl_cmp): New prototype.
1772 (resort_sorted_fields): New prototype.
1773 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1774 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1775 as s, removing other fields.
1776 * c-typeck.c (lookup_field): Use s in lang_type.
1777 These were mostly moved from cp/class.c:
1778 * c-common.c (field_decl_cmp): New static function.
1779 (field_decl_cmp): New function.
1780 (resort_sorted_fields): New function.
1781
3d7964d5
GK
17822003-07-16 Geoffrey Keating <geoffk@apple.com>
1783
1784 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1785 to do most of the work.
1786
4e58524e
HPN
17872003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1788
1789 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1790 * config/mmix/mmix.c: Convert functions to ISO C90.
1791 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1792 formatting.
1793 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1794
1e0343dd
R
17952003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1796
1797 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1798
fc4767bb
JJ
17992003-07-16 Jakub Jelinek <jakub@redhat.com>
1800
1801 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1802 (uw_update_context_1): Use it.
1803 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1804 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1805 in parent frame if _Unwind_* called directly instead of through
1806 .plt.
1807 (rs6000_emit_eh_toc_restore): Remove.
1808 (rs6000_emit_prologue): Update stack pointer before doing any saving
1809 if current_function_calls_eh_return. Generate unwind info for $r2.
1810 (rs6000_emit_epilogue): Restore stack pointer after doing all
1811 restoring if current_function_calls_eh_return. Restore $r2.
1812 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1813 * config/rs6000/rs6000.md (eh_return): Remove call to
1814 rs6000_emit_eh_toc_restore.
1815 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1816 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1817
6972c506
JJ
18182003-07-15 Jakub Jelinek <jakub@redhat.com>
1819
1820 * expr.c (emit_block_move): Don't move anything if size is const 0.
1821 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1822 against 0.
1823
ac59ed37
DM
18242003-07-15 David S. Miller <davem@redhat.com>
1825
1826 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1827 emit nop if the last real insn is CALL_INSN.
1828
b828d124
DS
18292003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1830
1831 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1832 as "nul".
1833 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1834
d5648e12
DS
18352003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1836
1837 * config/i386/winnt.c (associated_type): Artificial methods are not
1838 affected by the import/export status of their class unless they are
1839 COMDAT.
1840 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1841
1842 * config/i386/winnt.c: Fix GCC copyright comment.
1843
b0e3f7ec
GDR
18442003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1845
1846 PR c++/11531
1847 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1848 not recursing on hard error.
1849 (diagnostic_for_decl): Likewise.
1850 * diagnostic.def: Rearrange.
1851
71628aa0
R
18522003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1853
1854 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1855 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1856
18572003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1858 Richard Henderson <rth@redhat.com>
1859
1860 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1861 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1862 (_Unwind_SetGR): Likewise.
1863 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1864 (Unwind_SpTmp): New typedef.
1865 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1866 (uw_update_context): Use _Unwind_GetPtr.
1867 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1868 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1869 Use _Unwind_SetSpColumn.
1870 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1871 Use _Unwind_GetPtr.
1872
5a170a05
NB
18732003-07-15 Neil Booth <neil@daikokuya.co.uk>
1874
1875 * c.opt: Document more options.
1876 * toplev.c (documented_lang_options): Remove all local help strings.
1877
b0afa2fc
MM
18782003-07-15 Mark Mitchell <mark@codesourcery.com>
1879
1880 PR debug/11473
1881 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1882 base classes.
1883
5df90541
KH
18842003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1885
1886 PR target/10795
1887 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1888 swap comparison operands if doing so would generate an
1889 unrecognizable insn.
1890
5a257872
EB
18912003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1892
1893 PR optimization/11320
1894 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1895 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1896 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1897 current_sched_info->compute_jump_reg_dependencies. Record which
1898 registers are used and which registers are set by the jump.
1899 Clear deps->reg_conditional_sets after a barrier.
1900 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1901 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1902 (init_deps): Initialize reg_conditional_sets.
1903 (free_deps): Clear reg_conditional_sets.
1904 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1905 Mark registers live on entry of the fallthrough block and conditionally
1906 set as set by the jump. Mark registers live on entry of non-fallthrough
1907 blocks as used by the jump.
1908 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1909 Mark new parameters as unused.
1910
3cec3f83
RS
19112003-07-15 Richard Sandiford <rsandifo@redhat.com>
1912
1913 * doc/invoke.texi: Resync MIPS -march documentation.
1914
98450f0d
RS
19152003-07-15 Richard Sandiford <rsandifo@redhat.com>
1916
1917 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1918 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1919 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1920 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1921 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1922 (mips_issue_rate): Handle PROCESSOR_R9000.
1923 (mips_use_dfa_pipeline_interface): Likewise.
1924 * config/mips/9000.md: New file.
1925 * config/mips/mips.md: Include it.
1926 (define_attr cpu): Add r9000.
1927 (mulsi3_mult3): Use "mul" for rm9000 code.
1928
5fe25f47
SC
19292003-07-15 Stan Cox <scox@redhat.com>
1930
1931 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1932 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1933 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1934 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1935 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1936 (mips_issue_rate): Handle PROCESSOR_R7000.
1937 (mips_use_dfa_pipeline_interface): Likewise.
1938 * config/mips/7000.md: New file.
1939 * config/mips/mips.md: Include it.
1940 (define_attr cpu): Add r7000.
1941 (mulsi3_mult3): Use "mul" for rm7000 code.
1942
5a2515e6
RS
19432003-07-15 Richard Sandiford <rsandifo@redhat.com>
1944
1945 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1946 the conditional move patterns.
1947 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1948 Check for condmove type.
1949 (ir_vr54_arith): Add move type.
1950 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1951 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1952
72de27ea
NB
19532003-07-15 Neil Booth <neil@daikokuya.co.uk>
1954
1955 * c-opts.c (print_help): Remove.
1956 (c_common_handle_option): Don't handle --help.
1957 * c.opt: Document some options.
1958 (--help): Remove.
1959 * opts.c (print_filtered_help): New.
1960 (print_help): Use it.
1961
e6ebd07b
GK
19622003-07-14 Geoffrey Keating <geoffk@apple.com>
1963
2d799c09
GK
1964 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1965 * tree.c: (build_common_tree_nodes_2): Likewise.
1966 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1967 (V4DF_type_node): New.
1968
e6ebd07b
GK
1969 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1970 we'll need it.
1971 (finish_options): Reset init_cursor.
1972
b90f141a
KH
19732003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1974
1975 * expr.c (expand_assignment): Remove an unused argument
1976 SUGGEST_REG.
1977 * expr.h: Update the prototype.
1978 * function.c: Update the callers.
1979 * stmt.c: Likewise.
1980
1e7ee6ad
MM
19812003-07-14 Mark Mitchell <mark@codesourcery.com>
1982
1983 PR debug/11098
1984 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1985 as DECL_ABSTRACT.
1986
bf66f7b0
NN
19872003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1988
1989 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1990 with __cplusplus, not "we must use the C++ compiler's type"
1991 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1992 * fixinc/fixincl.x: Regenerate.
1993
18009d03
GK
19942003-07-14 Geoffrey Keating <geoffk@apple.com>
1995
ea00486e
GK
1996 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1997 and unseen_objects from the global data before calling
1998 __deregister_frame_info_bases.
1999 (examine_objects): Insert objects into the seen_objects list,
2000 not unseen_objects.
2001 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2002 we couldn't allocate a data structure to put in it.
2003
18009d03
GK
2004 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2005 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2006 (SET_TYPE_PROTOCOL_LIST): New.
2007 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2008 (get_object_reference): Likewise.
2009
9ae130f8
JH
2010Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2011
2012 * cfglayout.c (locator_file): Break out from ....
2013 (insn_file): ... here.
2014 (locator_line): Break out from ....
2015 (insn_line): ... here.
2016 * rtl.h (locator_file, locator_line): Declare.
2017 (final_start_function): Set proper line/file info.
2018
e07d4821
GDR
20192003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2020
2021 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2022 handled by pp_c_cast_expression.
2023
121d69e6
RS
20242003-07-14 Richard Sandiford <rsandifo@redhat.com>
2025
2026 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2027 allocate 32768 bytes of stack. Use addition rather than subtraction
2028 when a single insn is enough.
2029 * config/mips/mips.md: Remove insns and splitters for subtracting
2030 constants.
2031 (subsi3): Only accept register operands.
2032 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2033 (subdi3_internal_3, subsi3_internal_2): Likewise.
2034 (casesi): Use expand_binop to subtract the lower bound.
2035
3485245e
RS
20362003-07-14 Richard Sandiford <rsandifo@redhat.com>
2037
2038 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2039 TARGET_MIPS16 specially.
2040
6627b7f9
RS
20412003-07-14 Richard Sandiford <rsandifo@redhat.com>
2042
6d0b50a4
RS
2043 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2044 mips_output_aligned_bss.
2045 * config/mips/linux.h: Likewise.
2046 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2047 * config/mips/mips.c (mips_output_aligned_bss): New function.
2048
8d50bd19
RS
2049 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2050 * config/mips/elf64.h: Likewise.
2051
c1115ccd
RS
2052 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2053 mips_declare_object_name.
2054 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2055 * config/mips/elf64.h: As for elf.h.
2056 * config/mips/iris6.h: Likewise.
2057 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2058 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2059 do...while (0) block.
2060 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2061 (mips_finish_declare_object): Declare.
2062 * config/mips/mips.c (mips_declare_object_name): New function.
2063 (mips_finish_declare_object): New function.
2064
060ff934
RS
2065 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2066 * config/mips/linux.h: Likewise.
2067
d82783b6
RS
2068 * config/mips/mips.c (inside_function): Delete.
2069 (file_in_function_warning, ignore_line_number): Delete.
2070 (mips_output_filename): Don't warn about changing filenames within
2071 a function.
2072 (mips_output_lineno): Update accordingly.
2073 (mips_output_function_prologue): Don't reset the deleted variables.
2074 * config/mips/mips.h (inside_function): Delete.
2075 (file_in_function_warning, ignore_line_number): Delete.
2076
373f8df7
RS
2077 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2078 * config/mips/elf64.h: Likewise.
2079 * config/mips/openbsd.h: Likewise.
2080 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2081 * config/mips/linux.h: Likewise.
2082 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2083 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2084
6627b7f9
RS
2085 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2086 to the list of include files when using gas.
2087 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2088 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2089 * config/mips/elf64.h: Likewise.
2090 * config/mips/iris5.h: Likewise.
2091 * config/mips/linux.h: Likewise.
2092 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2093 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2094 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2095 * config/mips/sdb.h: ...this new file.
2096
c18b00c0
NN
20972003-07-14 Douglas Rupp <rupp@gnat.com>
2098
2099 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2100 argument to getcwd; use fixed buffer instead.
2101
21022003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2103
2104 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2105 * fixinc/fixinc.wrap: Delete.
2106
adc4adcd
GP
21072003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2108
2109 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2110 don't have 2.
2111
21122003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2113
2114 * ggc-page.c (struct globals): Add new fields to keep track of the
2115 total allocated memory and overhead.
2116 (ggc_print_statistics): Print them.
2117 (ggc_alloc): Keep track of the total allocated memory and the
2118 overhead.
2119
2120 * tree.c (dump_tree_statistics): Increase spacing.
2121 (enum tree_node_kind): Move to ...
2122 * tree.h (enum tree_node_kind): ... here.
2123 (tree_node_counts, tree_node_sizes): Declare.
2124
21252003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
2126
2127 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2128
bbd288a4
FS
21292003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2130
2131 PR optimization/11440
2132 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2133 SIGN_EXTRACT SETs.
2134
6e985040
AM
21352003-07-14 Alan Modra <amodra@bigpond.net.au>
2136
2137 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2138 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2139 (emit_group_load, emit_group_store): Adjust declarations.
2140 Remove most occurrences of #ifdef TREE_CODE.
2141 * expr.c (emit_group_load): Add "type" param, and use
2142 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
2143 aligned accesses if !SLOW_UNALIGNED_ACCESS.
2144 (emit_group_store): Likewise.
2145 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2146 emit_group_load and emit_group_store calls.
2147 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
2148 BLOCK_REG_PADDING to determine whether we need endian_correction.
2149 (load_register_parameters): Localize vars. Handle shifting of
2150 small values to the correct end of regs. Adjust emit_group_load
2151 call.
2152 (expand_call, emit_library_call_value_1): Adjust emit_group_load
2153 and emit_group_store calls.
2154 * function.c (assign_parms): Set mem alignment for stack slots.
2155 Adjust emit_group_store call. Store values at the "wrong" end
2156 of regs to the stack. Use BLOCK_REG_PADDING.
2157 (locate_and_pad_parm): Save where_pad.
2158 (expand_function_end): Adjust emit_group_load call.
2159 * stmt.c (expand_value_return): Adjust emit_group_load call.
2160 * Makefile.in (calls.o): Depend on $(OPTABS_H).
2161 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2162 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2163 (MUST_PASS_IN_STACK): Define.
2164 (BLOCK_REG_PADDING): Define.
2165 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2166 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2167 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2168 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2169 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2170
4fab535e
AL
21712003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
2172
2173 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2174
8d2e5f72
RK
21752003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2176
2177 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2178 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2179
7eaab492
NN
21802003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2181
2182 PR other/11123
2183 * toplev.c: Don't cut off option names.
2184
9d4a30f2
AJ
21852003-07-13 Andreas Jaeger <aj@suse.de>
2186
2187 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2188 to integer of different size.
2189
34ed3bb0
KH
21902003-07-13 Kazu Hirata <kazu@cs.umass.edu>
2191
2192 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2193 to (eq (and X 1) 0).
2194
1a7d0840
AJ
21952003-07-13 Andreas Jaeger <aj@suse.de>
2196
2197 * config.gcc: Add pmmintrin.h for x86_64-*-*.
2198
43839642
ZW
21992003-07-13 Zack Weinberg <zack@codesourcery.com>
2200
2201 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2202 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2203 list. Move these all together down by cpplib.
2204
2205 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2206 definition of CPPCHAR_SIGNED_T.
2207
2208 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2209 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2210 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2211
2212 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2213 * cppinit.c (cpp_create_reader): Likewise.
2214
2215 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2216 * cpptrad.c: Likewise. All callers changed.
2217 * cpplib.c: All callers changed.
2218 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2219 * hashtable.h: Define GTY(x) to nothing here too.
2220
0acf4f88
RK
22212003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2222
2223 * stor-layout.c (compute_record_mode): Remove very obsolete test
2224 that forces BLKmode for records with fields crossing word boundary.
2225
46db61e7
ZW
22262003-07-13 Zack Weinberg <zack@codesourcery.com>
2227
2228 * Makefile.in: Remove orphan reference to acconfig.h.
2229
db0e878d
AJ
22302003-07-13 Andreas Jaeger <aj@suse.de>
2231
2232 * cgraphunit.c: Convert prototypes to ISO C90.
2233
4146d8d0
NN
22342003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2235
2236 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2237 (for OpenBSD).
2238 * fixinc/fixincl.x: Rebuild.
2239
6f3ca281
ZW
22402003-07-12 Zack Weinberg <zack@codesourcery.com>
2241
2242 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2243 i?86-*-*. Use correct name of cache variable.
2244 * configure: Regenerate.
2245
9a9f7594
KH
22462003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2247
2248 * config/alpha/alpha.c: Fix comment typos.
2249 * config/alpha/alpha.md: Likewise.
2250 * config/arm/arm.c: Likewise.
2251 * config/arm/arm.md: Likewise.
2252 * config/arm/lib1funcs.asm: Likewise.
2253 * config/avr/avr.md: Likewise.
2254 * config/arm/README-interworking: Fix typos.
2255
4ed43216
KH
22562003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2257
2258 * c-format.c: Fix comment formatting.
2259 * c-typeck.c: Likewise.
2260 * coverage.c: Likewise.
2261 * cppcharset.c: Likewise.
2262 * cpplib.c: Likewise.
2263 * dbxout.c: Likewise.
2264 * gcov-io.h: Likewise.
2265 * toplev.c: Likewise.
2266
c3a5b1e9
NN
22672003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2268
6f3ca281 2269 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
2270 fix.
2271
8ada417f
ZW
22722003-07-12 Zack Weinberg <zack@codesourcery.com>
2273
2274 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2275 uses three-argument AC_DEFINE so no acconfig.h entries are
2276 needed.
2277 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2278 which contains the GAS version number as a scaled integer.
2279 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
2280 ability to check for ELF assembler.
2281 (gcc_GAS_CHECK_FEATURE): New macro.
2282 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
2283 assembler feature checks using gcc_GAS_CHECK_FEATURE.
2284 Use three-argument AC_DEFINE everywhere.
2285 * acconfig.h: Deleted.
2286 * config.in, configure: Regenerate.
2287
d5d16b5f
NN
22882003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2289
3b57c563
NN
2290 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2291 (on OpenBSD).
d33fb69b 2292 * fixinc/fixincl.x: Regenerate.
3b57c563 2293
d5d16b5f
NN
2294 * fixinc/inclhack.def (gnu_types): Improve comment.
2295
439f7bc3
AJ
22962003-07-12 Andreas Jaeger <aj@suse.de>
2297
2298 * fp-test.c (main): Use ISO C90 prototype.
2299
2300 * version.c: Remove unneded include of ansidecl.h.
2301
2302 * cgraph.h: Convert prototypes to ISO C90.
2303 * cgraph.c: Likewise.
2304 * fix-header.c: Likewise.
2305 * ra.h: Likewise.
2306 * protoize.c: Likewise.
2307
1a5c5701
JH
2308Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
2309
2310 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2311 warning.
2312
b58b1157
JH
2313Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
2314 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2315
2316 * cgraph.c (cgraph_max_uid): New global variable.
2317 (cgraph_node): Set uid field.
2318 (create_edge): Keep inline flags consistent.
2319 (dump_cgraph): Dump more info.
2320 * cgraph.h (struct cgraph_local_info): Remove inline_many and
2321 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2322 (struct cgraph_global_info): Add insns, calls, cloned_times,
2323 will_be_output.
2324 (struct cgraph_node): Add uid.
2325 (struct cgraph_edge): Add inline_call.
2326 (cgraph_max_uid, cgraph_inline_p): Declare.
2327 * cgraph.c: Include params.h and fibheap.h
2328 (cgraph_mark_functions_to_inline_once): Kill.
2329 (INSNS_PER_CALL): New constant.
2330 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2331 static variables.
2332 (cgraph_finalize_function): Do not analyze inlining.
2333 (cgraph_finalize_compilation_unit): Set inlining attributes.
2334 (cgraph_mark_functions_to_output): More consistency checks.
2335 (cgraph_optimize_function): Set current_function_decl to NULL.
2336 (cgraph_expand_function): Use new inline flags.
2337 (cgraph_postorder): Expand from cgraph_expand_functions.
2338 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2339 (cgraph_inlined_into, cgraph_inlined_callees,
2340 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2341 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 2342 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
2343 cgraph_decide_inlining, cgraph_inline_p): New functions.
2344 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
2345 PARAM_INLINE_UNIT_GROWTH): New parameters.
2346 * tree-inline.c (struct inline_data): New field current_decl.
2347 (expand_call_inline): Avoid forward declarations; use
2348 inlinable_function_p.
2349 (optimize_inline_calls): Set id.current_decl.
2350
27b8e366
AP
23512003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2352
2353 * configure.in: Remove wrongly added definition of
2354 local_prefix.
2355 * configure: Regenerate.
2356
80fa0b4c
DN
23572003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2358
2359 * rtl.def (NOTE): Do not use padding.
2360
1ea6f4c8
DH
23612003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
2362
2363 * doc/install.tex: Update required binutils for i?86-*-linux*
2364
ed2d8944
RH
23652003-07-11 Richard Henderson <rth@redhat.com>
2366
2367 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
2368
a44cea75
MM
23692003-07-11 Mark Mitchell <mark@codesourcery.com>
2370
2371 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
2372 TRANSLATION_UNIT_DECL as top_level.
2373
358b8f01
JJ
23742003-07-11 Jakub Jelinek <jakub@redhat.com>
2375
2376 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
2377 then fall back to cmpstrM.
2378 * builtins.c (expand_builtin_memcmp): Likewise.
2379 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
2380 (s390_expand_cmpmem): ... this.
2381 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
2382 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
2383 from cmpstr* patterns. Rename call to s390_expand_cmpstr
2384 to s390_expand_cmpmem.
2385 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
2386 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
2387 to cmpmem*.
2388 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
2389 cmpstr* patterns.
2390 * doc/md.texi (cmpstrM): Describe as String compare insn, not
2391 Block compare insn.
2392 (cmpmemM): Add.
2393
8634e925
LR
23942003-07-11 Loren James Rittle <ljrittle@acm.org>
2395
2396 * config/i386/freebsd.h (SET_ASM_OP): Remove.
2397 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
2398 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
2399 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
2400
48144cd4
RH
24012003-07-11 Richard Henderson <rth@redhat.com>
2402
2403 * function.c (assign_parms): Don't recombine complex args if
2404 fnargs is unchanged from orig_fnargs.
2405 (split_complex_args): Return args without complex before copying.
2406 Re-layout the modified parameters.
2407
fee226d2
R
24082003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
2409
2410 * regclass.c (choose_hard_reg_mode): Add third argument.
2411 Changed all callers.
2412 * rtl.h (choose_hard_reg_mode): Update declaration.
2413 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2414 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
2415
d1bd0ded
GK
24162003-07-11 Geoffrey Keating <geoffk@apple.com>
2417
2418 * c-decl.c (finish_decl): Handle 'used' here...
2419 * cgraphunit.c (cgraph_finalize_function): ... and here ...
2420 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 2421
d1bd0ded
GK
2422 * configure.in (onstep): Support --enable-intermodule.
2423 * Makefile.in (OBJS-common): New.
2424 (OBJS-md): New.
2425 (OBJS-archive): New.
2426 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
2427 (OBJS-onestep): New.
2428 (libbackend.a): Support @onestep@.
2429 (libbackend.o): New.
2430 * configure: Regenerate.
439f7bc3 2431
d1bd0ded
GK
2432 * c-common.h (c_reset_state): New prototype.
2433 (c_parse_file): New prototype.
2434 (finish_file): Move prototype from c-tree.h.
2435 * c-decl.c: Include <hashtab.h>.
2436 (builtin_decls): New.
2437 (current_file_decl): New.
2438 (duplicate_decls): Add extra parameter. Change all callers. Don't
2439 output duplicate common symbols.
2440 (link_hash_hash): New.
2441 (link_hash_eq): New.
2442 (poplevel): Handle popping of the top level.
2443 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
2444 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
2445 (pushdecl_top_level): Likewise.
2446 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
2447 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
2448 (finish_decl): Handle TRANSLATION_UNIT_DECL.
2449 (merge_translation_unit_decls): New.
2450 (c_write_global_declarations): New.
2451 (c_reset_state): New.
2452 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
2453 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
2454 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
2455 TRANSLATION_UNIT_DECL.
2456 (c_objc_common_finish_file): Call merge_translation_unit_decls.
2457 * c-opts.c (in_fnames): Rename from in_fname.
2458 (c_common_decode_option): Handle multiple input filenames.
2459 (c_common_post_options): Likewise.
2460 (c_common_parse_file): Likewise; also, call c_parse_file rather than
2461 yyparse.
2462 * c-parse.in: Move cleanup code to c_parse_file.
2463 (free_parser_stacks): Move contents to c_parse_file.
2464 (c_parse_file): New.
2465 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
2466 for integer types.
2467 (C_DECL_FILE_SCOPE): New.
2468 (finish_file): Move prototype to c-common.h.
2469 (merge_translation_unit_decls): New prototype.
2470 (comptypes): Add extra parameter to prototype.
2471 (c_write_global_declarations): New prototype.
2472 * c-typeck.c (tagged_types_tu_compatible_p): New.
2473 (function_types_compatible_p): Add extra parameter, change all callers.
2474 (type_lists_compatible_p): Likewise.
2475 (comptypes): Likewise.
2476 (struct tagged_tu_seen): New.
2477 (tagged_tu_seen_base): New.
2478 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
2479 (c_mark_addressable): Remove #if 0 code.
2480 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
2481 comment explaining why it shouldn't have to.
2482 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
2483 options.
2484 * cppinit.c (cpp_read_next_file): New.
2485 (cpp_read_main_file): Use it.
2486 * cpplib.c (undefine_macros): New.
2487 (cpp_undef_all): New.
2488 * cpplib.h (cpp_read_next_file): Prototype.
2489 (cpp_undef_all): Prototype.
2490 * langhooks-def.h (write_global_declarations): Remove prototype.
2491 * toplev.h (write_global_declarations): Add prototype.
2492 * tree.c (decl_type_context): Use switch statement, handle
2493 TRANSLATION_UNIT_DECL.
2494 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
2495 (TRANSLATION_UNIT_DECL): New kind of tree.
2496 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
2497 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
2498 * doc/invoke.texi: Make attempt to document new functionality.
2499
2500 2003-05-19 Per Bothner <bothner@apple.com>
2501
2502 * gcc.c (combine_inputs): New.
2503 (process_command): Set combine_inputs.
2504 (do_spec_1): Handle combine_inputs.
2505 (main): Likewise.
2506
ac8354b1
JW
25072003-07-10 James E Wilson <wilson@tuliptree.org>
2508
2509 PR optimization/9745
2510 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
2511 loop_insn_emit_before.
2512 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 2513
dea55da5
ZW
25142003-07-10 Zack Weinberg <zack@codesourcery.com>
2515
2516 * cppcharset.c: Fix comment.
2517 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
2518 (EILSEQ): #define to EINVAL if not already defined.
2519 (convert_using_iconv): #if out when !HAVE_ICONV.
2520 (init_iconv_desc): Handle !HAVE_ICONV here...
2521 (cpp_init_iconv): ...not here.
2522
f3fdaec4
NB
25232003-07-11 Neil Booth <neil@daikokuya.co.uk>
2524
2525 * common.opt: More --help messages.
2526 * opts.c (print_help): Use puts().
2527 * toplev.c (f_options): Remove help text.
2528 (display_help): Don't dump f_options.
2529
7ebbf1ea
NN
25302003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2531
2532 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2533 Move i?86-*-interix* to the don't-fix list.
2534 * fixinc/fixinc.interix: Delete with extreme prejudice.
2535
959a73a4
DH
25362003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2537
2538 PR bootstrap/10758
2539 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2540
9959901c
RS
25412003-07-10 Roger Sayle <roger@eyesopen.com>
2542
2543 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2544
6b88314c
ZW
25452003-07-10 Zack Weinberg <zack@codesourcery.com>
2546
2547 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2548 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2549 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2550 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2551 convert_no_conversion, convert_using_iconv): New functions.
2552 (APPLY_CONVERSION): New macro.
2553 (struct conversion, conversion_tab): New data structure.
2554 (init_iconv_desc): Check conversion_tab for a custom conversion
2555 primitive before trying to use iconv.
2556 (convert_cset): Deleted.
2557 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2558 (_cpp_destroy_iconv): Update to match.
2559 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2560 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2561 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2562 (_cpp_interpret_string_notranslate): New function, moved here
2563 from cpplib.c.
2564
2565 * cpphash.h (convert_f, struct cset_converter): New types.
2566 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2567 are now struct cset_converter, not bare iconv_t.
2568 Update prototypes.
2569 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2570 all callers changed.
2571
38f4680f 25722003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 2573
38f4680f
KC
2574 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2575 to opts.sh command line.
2576 * opts.sh: Write to temporary files with a move-if-change at the end.
2577
2a868fac 25782003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 2579 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
2580
2581 * combine.c (gen_binary): Handle the CLOBBER rtx and
2582 don't build a binary operation with it.
2583
3b14e3af
ZD
25842003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2585
2586 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2587 store_killed_after, store_killed_before): Keep track of the correct
2588 dependency function to use.
2589
a9189cc0
SB
25902003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2591 * toplev.c (do_compile): Don't try to open dump files before
2592 lang_dependent_init initializes dump_base_name.
2593
e97a46ce
KG
25942003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2595
2596 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2597 Use ARRAY_SIZE.
2598 * config/frv/frv.c (frv_expand_builtin): Likewise.
2599 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2600
4a386498
MM
26012003-07-09 Mark Mitchell <mark@codesourcery.com>
2602
2603 PR c++/10032
2604 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2605 -fpermissive.
2606
1e60c057
R
26072003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2608
2609 * tm.texi (RETURN_ADDR_OFFSET): Document.
2610
330d2e2a
NS
26112003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2612
2613 * gcov-io.h: Update documentation.
2614 (GCOV_UNSIGNED2STRING): New.
2615 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2616 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2617 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2618 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2619 GCOV_TAG_COUNTER_NUM): New.
2620 (GCOV_BLOCK_SIZE): Number of words.
2621 (gcov_var): Adjust buffer type.
2622 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2623 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2624 count, not byte count.
2625 (gcov_open): Adjust overread init.
2626 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2627 gcov_write_string, gcov_write_tag, gcov_write_length,
2628 gcov_write_tag_length): Adjust.
2629 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2630 (gcov_sync, gcov_seek): Adjust.
2631 * gcov-dump.c (print_usage): Show gcc version only.
2632 (dump_file): Use GCOV_UNSIGNED2STRING.
2633 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2634 * gcov.c (print_version): Show gcc version only.
2635 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2636 GCOV_TAG_*_NUM macros.
2637 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2638 GCOV_TAG_COUNTER_LENGTH.
2639 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2640 Use GCOV_TAG_COUNTER_NUM.
2641 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2642 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2643
3dbb446e
AS
26442003-07-10 Andreas Schwab <schwab@suse.de>
2645
2646 * gcov-dump.c (dump_file): Fix missing address operator.
2647
11791dbc
KH
26482003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2649
2650 PR c/11449
2651 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2652 of HOST_WIDE_INT.
2653 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2654 bit being tested is not a sign bit.
2655
ae12c666
KH
26562003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2657
2658 * config/h8300/h8300.md (a peephole2): New.
2659
2beef00e
AO
26602003-07-10 Alexandre Oliva <aoliva@redhat.com>
2661
2662 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2663 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2664 from ld-linux.so.2 to ld.so.1.
2665 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2666 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2667 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2668 nor -Wl,-rpath-link.
2669 (LIB_SPEC): Add -rpath-link if !static.
2670 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2671 * config/mn10300/mn10300.c (mn10300_protect_label): New
2672 variable.
2673 * config/mn10300/linux.h (PRINT_OPERAND,
2674 PRINT_OPERAND_ADDRESS): Set it during their execution.
2675 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2676 mn10300_protect_label is set.
2677 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2678 -Wl,-rpath-link.
2679 (LIB_SPEC, STARTFILE_SPEC): Define.
2680 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2681 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2682 FLOAT_BIT_ORDER_MISMATCH.
2683 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2684 * config.gcc (am33_2.0-*-linux*): Added.
2685 * config/mn10300/linux.h: New.
2686 * config/mn10300/t-linux: New.
2687
75040a04
AJ
26882003-07-10 Andreas Jaeger <aj@suse.de>
2689
2690 * fold-const.c: Properly wrap prototypes.
2691
d1776069
AO
26922003-07-09 Alexandre Oliva <aoliva@redhat.com>
2693
2694 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2695 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2696 Moved from...
2697 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2698 * config/mn10300/mn10300.h: GTY-declare it.
2699 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2700 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2701 prototype. Use incoming RTL argument.
2702 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2703 * config/mn10300/mn10300.md (int_label): Move C statements...
2704 (GOTaddr2picreg): ... here.
2705 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2706 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2707 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2708 ... here. New function.
2709 (TARGET_ENCODE_SECTION_INFO): Define to it.
2710 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2711 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2712 pattern name.
2713 (mn10300_loadPC): Define as insn splittable after reload.
2714 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2715 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2716 be defined in .rodata even in PIC, now that the assembler
2717 supports that.
2718 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2719 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2720 symbol take an underscore prefix.
2721 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2722 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2723 legitimize_pic_address): Declare.
2724 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2725 the PIC register as fixed.
2726 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2727 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2728 PIC.
2729 (LEGITIMATE_PIC_OPERAND_P): Define.
2730 (PIC_OFFSET_TABLE_REGNUM): Define.
2731 (GOT_SYMBOL_NAME): Define.
2732 (SYMBOLIC_CONST_P): Define.
2733 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2734 symbols.
2735 (MN10300_GLOBAL_P): Test it.
2736 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2737 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2738 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2739 (expand_prologue): Set PIC register.
2740 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2741 (legitimize_address): Call legitimize_pic_address.
2742 (legitimize_pic_address): New fn.
2743 (legitimate_pic_operand_p): New fn.
2744 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2745 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2746 UNSPEC_PLT): New constants.
2747 (pop_pic_reg): New insn.
2748 (movsi): Adjust non-PIC addresses.
2749 (builtin_setjmp_receiver): Restore the PIC register.
2750 (casesi): New insn.
2751 (call): Adjust non-PIC addresses.
2752 (int_label, GOTaddr2picreg): New expands.
2753 (am33_loadPC): New insn.
2754 (mn10300_loadPC): New expand.
2755 (call_next_insn): New insn.
2756 (add_GOT_to_pic_reg): New expand.
2757 (symGOT2reg, symGOT2reg_i): New expands.
2758 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2759 (sym2PIC, sym2PLT): New expands.
2760
18e9d2f9
AO
27612003-07-09 Alexandre Oliva <aoliva@redhat.com>
2762
2763 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2764 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2765 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2766 to flag_unsafe_math_optimizations.
2767 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2768 * config/mn10300/mn10300.c (expand_prologue): Mark
2769 FP-register-saving insns as frame-related.
2770 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2771 * config/mn10300/mn10300.c
2772 (mn10300_get_live_callee_saved_regs): Don't search past
2773 LAST_EXTENDED_REGNUM.
2774 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2775 * config/mn10300/mn10300.md: Remove excessive line breaks from
2776 `@' output patterns that were accounted as additional
2777 alternatives.
2778 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2779 Re-introduce changes accidentally removed in Richard Sandiford's
2780 2000-12-05's patch.
2781 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2782 Re-instate am33-2 lost in merge from net GCC.
2783 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2784 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2785 floating-point registers.
2786 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2787 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2788 pessimizations that had gone in on 2000-05-08.
2789 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2790 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2791 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2792 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2793 operand 0.
2794 * (movhi): Likewise.
2795 * (movsi): Likewise.
2796 * (movsf): Likewise.
2797 * (movdi): Likewise.
2798 * (movdf): Likewise.
2799 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2800 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2801 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2802 (expand_prologue, expand_epilogue): Save and restore FP regs.
2803 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2804 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2805 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2806 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2807 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2808 Do not clobber cc0.
2809 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2810 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2811 Discourage the two-argument, longer opcodes.
2812 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2813 ones.
2814 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2815 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2816 * config/mn10300/mn10300.md (cmpsf): New pattern.
2817 (branch): Test mdep.fpCC and output fbCC.
2818 * config/mn10300/mn10300.c (print_operand): Output conditions.
2819 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2820 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2821 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2822 mulsf3, divsf3): Use the `F' constraint for FP values.
2823 * config/mn10300/mn10300.c (const_1f_operand): New function.
2824 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2825 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2826 (rsqrtsf2): New insn.
2827 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2828 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2829 previous check-in.
2830 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2831 * config/mn10300/mn10300.md (abssf2, negdf2): On
2832 TARGET_AM33_2, expand to...
2833 (abssf2_am33_2, negdf2_am33_2): New insns.
2834 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2835 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2836 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2837 movdi, movdf): Added FP regs.
2838 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2839 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2840 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2841 New macros.
2842 (REGNO_AM33_2_FP_P): Renamed to...
2843 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2844 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2845 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2846 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2847 regs from GENERAL_REGS.
2848 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2849 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2850 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2851 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2852 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2853 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2854 as FP_REGS.
2855 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2856 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2857 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2858 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2859 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2860 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2861 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2862 AM33/2.0 floating-point registers.
2863 (CONDITIONAL_REGISTER_USAGE): Adjust.
2864 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2865 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2866 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2867 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2868 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2869 (MULTILIB_DIRNAMES): Likewise.
2870 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2871 `__AM33_2__' when `-mam33-2' is given.
2872 (TARGET_AM33_2): Define.
2873 (TARGET_SWITCHES): Adjust.
2874 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2875 when appropriate.
2876
2ff16718
MK
28772003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2878
2879 * doc/install.texi: Add missing @.
2880
a7bda3d5
BW
28812003-07-09 Bob Wilson <bob.wilson@acm.org>
2882
2883 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2884
bb498ea3
AH
28852003-07-09 Aldy Hernandez <aldyh@redhat.com>
2886
2887 PR/11144
2888 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2889
a401fd60
NN
28902003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2891
21f3dbfc 2892 PR bootstrap/11043
6b88314c 2893 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
2894 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2895
15e4ea18
NN
2896 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2897 * fixinc/fixincl.x: Rebuild.
2898
a401fd60
NN
2899 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2900 * fixinc/fixincl.x: Rebuild.
2901
c2f82a84
HPN
29022003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2903
2904 * doc/install.texi (Configuration): Document the valgrind option
2905 to --enable-checking.
2906
1f66e2a0
JH
2907Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2908
2909 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2910
d0974745
RO
29112003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2912
2913 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2914
160e2e4f
NS
29152003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2916
2917 * gcov-io.h: Update documentation.
2918 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2919 GCOV_NOTE_MAGIC.
2920 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2921 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2922 (struct gcov_var): Change buffer's type. Add endian flag.
2923 (gcov_open): Remove mode in libgcov.
2924 (gcov_magic): Prototype.
2925 * gcov-io.c (from_file): New.
2926 (gcov_open): Clear endian flag.
2927 (gcov_magic): New.
2928 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2929 pointers.
2930 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2931 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2932 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2933 * gcov-iov.c (main): Correct cast.
2934 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2935 conversion.
2936 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2937 (coverage_init): Use GCOV_NOTE_SUFFIX.
2938 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2939 Rename to gcov_version, and return flag.
2940 (gcov_exit): Use gcov_version.
2941 (__gcov_init): Use gcov_version.
2942 * Makefile.in (coverageexts): Update.
2943 * gcov.c (print_version): Remove endianness conversion.
2944 (create_file_names): Use GCOV_NOTE_SUFFIX.
2945 (read_graph_file): Use gcov_magic.
2946 (read_count_file): Likewise.
2947 * gcov-dump.c (dump_file): Remove endianness conversion, use
2948 gcov_magic.
2949
83599948
NS
29502003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2951
2952 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2953 coverage is on.
2954 * configure: Regenerated.
2955 * Makefile.in (ALL_CFLAGS): Correct its comment.
2956
d17811fd
MM
29572003-07-08 Mark Mitchell <mark@codesourcery.com>
2958
2959 * fold-const.c (make_range): Do not access operand 1 for a
2960 zero-operand operator.
2961
28786366
NB
29622003-07-09 Neil Booth <neil@daikokuya.co.uk>
2963
2964 * toplev.c (warn_dummy, W_options): Die.
2965 (display_help): Don't print W_options.
2966 * common.opt: Add W_options help from toplev.c.
2967
fbdb0453
AJ
29682003-07-09 Andreas Jaeger <aj@suse.de>
2969
2970 * opts.c (wrap_help): Only pass int arguments as arguments to
2971 printf's '*' modifier. Change argument of function.
2972
c80e4c17
MK
29732003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2974
2975 * doc/invoke.texi: Fix misspelling of "@item".
2976
2c5a64c6
KH
29772003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2978
2979 * config/i386/i386.md: Remove an old comment about
2980 NOTICE_UPDATE_CC.
2981
a194aa56
JH
2982Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2983
2984 * cgraph.c (cgraph_node_name): New function.
2985 (dump_cgraph): Use it.
2986 * cgraph.h (cgraph_dump_file): Declare.
2987 (cgraph_node_name): Declare.
2988 * cgraphunit.c: Include timevar.h
2989 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2990 (cgraph_optimize_function): Use TV_INTEGRATION.
2991 (cgraph_mark_local_functions): reorganize dumps.
2992 (cgraph_mark_functions_to_inline_once): Likewise.
2993 (cgraph_optimize): Likewise; use timevar.
2994 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2995 * toplev.c (dump_file_index): Add DFI_cgraph.
2996 (dump_file_info): Likewise.
2997 (cgraph_dump_file): New global variable.
2998 (do_compile): Open and close cgraph dump.
2999 * invoke.texi (-d): Document new flag; renumber.
3000
8af61113
RS
30012003-07-08 Roger Sayle <roger@eyesopen.com>
3002
3003 PR c/11370
3004 * calls.c (emit_call_1): Don't bother popping the arguments off of
3005 the stack after a noreturn function call; The adjustment is dead.
3006 (expand_call): Likewise.
3007
436bcda1
GK
30082003-07-08 Geoffrey Keating <geoffk@apple.com>
3009
3010 * expr.c (MOVE_MAX_PIECES): Move from here...
3011 * defaults.h (MOVE_MAX_PIECES): ... to here.
3012
6f3fcc0b
MK
30132003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3014
3015 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3016
ec049fdb
KG
30172003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3018
3019 * genattr.c (internal_dfa_insn_code): Don't prototype.
3020 * genattrtab.c (attr_desc): Add `static_p' field.
3021 (expand_units): Make blockage range and ready cost functions
3022 static.
3023 (write_attr_get): Don't add extern prototypes in C file. Mark
3024 static functions as appropriate.
3025 (find_attr, make_internal_attr): Initialize static_p.
3026 * genattrtab.h (ATTR_STATIC): New macro.
3027 * genautomata.c (output_internal_reset_func): Mark output function
3028 as inline.
3029 (make_internal_dfa_insn_code_attr): Mark output function as static.
3030
11597bc9
KG
30312003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3032
3033 * genattrtab.h: Add new macros for attr `special' flags.
3034 * genattrtab.c (attr_desc): Reorder/resize fields better.
3035 Use attr `special' macros in all calls to make_internal_attr.
3036 * genautomata.c: Likewise.
3037
084c1779
JH
3038Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
3039
3040 * c-common.c (c_estimate_num_insns_1): New static function.
3041 (c_estimate_num_insns): New global function.
3042 * c-common.h (DECL_NUM_STMTS): Rename to...
3043 (DECL_ESTIMATED_INSNS): ... this.
3044 (c_estimate_num_insns): Declare.
3045 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3046 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3047 * c-semantics.c (add_stmt): Do not account statements.
3048 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3049 New.
3050 * langhooks.h (lang_hooks_for_tree_inlining): Add
3051 estimate_num_insns
3052 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3053 to 100.
3054 (max-inline-insns): set to 300.
3055 (min-inline-insns): set to 10.
3056 * tree-inline.c (struct inline_data): Rename inlined_stmts to
3057 inlined-insns.
3058 (INSNS_PER_STMT): Kill.
3059 (inlinable_function_p): Compute and store body size.
3060 (expand_call_inline): Likewise.
3061 (optimize_inline_calls): Likewise.
3062
1b1838b6
JW
30632003-07-08 James E Wilson <wilson@tuliptree.org>
3064
3065 PR target/10021
3066 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3067 loop over new variable t2 instead of t.
3068
81a6341d
DS
30692003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3070
3071 PR bootstrap/11455
3072 * config/i386/winnt.c: Replace use of error(), warning() with
3073 error_with_decl(), warning_with_decl(), throughout.
3074
21789816
NB
30752003-07-08 Neil Booth <neil@daikokuya.co.uk>
3076
3077 * opts.c (wrap_help): Use unsigned int, not size_t.
3078
f6423302
SC
30792003-07-08 Stephane Carrez <stcarrez@nerim.fr>
3080
3081 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3082 as .file/.loc directives are incompatible with linker relaxation.
3083
ab747408
ZW
30842003-07-08 Zack Weinberg <zack@codesourcery.com>
3085
3086 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3087 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3088 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3089 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3090 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3091 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3092 Escape { and } characters which are not part of range expressions.
3093 * fixinc/fixincl.x: Regenerate.
a27531fb 3094 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 3095
51657442
SB
30962003-07-08 Steven Bosscher <steven@gcc.gnu.org>
3097
3098 PR c/1687
3099 * tree-inline.c (find_alloca_call): Use
3100 walk_tree_without_duplicates, instead of walk_tree.
3101 (find_builtin_longjmp_call): Likewise.
3102 * c-objc-common.c (c_cannot_inline_fn): Likewise.
3103 * c-semantics.c (find_reachable_label): Likewise.
3104
7e6dc358
JJ
31052003-07-08 Jakub Jelinek <jakub@redhat.com>
3106
3107 PR c/11420
3108 * config/i386/i386.c (ix86_check_movabs): New function.
3109 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3110 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3111 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3112
318b7749
CD
31132003-07-08 Chris Demetriou <cgd@broadcom.com>
3114
3115 * Makefile.in (install-po): Cope with empty CATALOGS.
3116
b8898790
RS
31172003-07-08 Richard Sandiford <rsandifo@redhat.com>
3118
3119 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3120 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3121 (SECTION_FUNCTION_TEMPLATE): Delete.
3122 * config/mips/elf.h: As for elf64.h.
3123 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3124 * config/mips/linux.h: As for elf.h
3125 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3126 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3127 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
3128 of in_sdata from current_section_name and current_section_flags.
3129 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3130 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3131 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3132 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3133 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3134 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3135 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3136 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3137 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3138 (override_options): Remove setting of MASK_GPOPT.
3139 (mips_output_external): Use mips_in_small_data_p to check whether a
3140 symbol needs an .extern directive. Don't emit such directives for
3141 TARGET_EXPLICIT_RELOCS.
3142 (mips_declare_object): Update accordingly.
3143 (mips_select_rtx_section): Call named_section rather than
3144 SMALL_DATA_SECTION.
3145 (mips_select_section): Use default_elf_section_section for everything
3146 except .text string constants.
3147 (mips_in_small_data_p): New function.
3148 (mips_encode_section_info): Remove small data handling.
3149 (mips_unique_section): Delete.
3150 (iris6_section_type_flags): New function.
3151 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3152
f5d1c3de
JDA
31532003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3154
3155 PR Target/11453
3156 * pa.md: Disparage all mtsar constraints.
3157 (extzv, extv, insv): Don't fail on length of {32|64}.
3158
ce1bb65b
ZW
31592003-07-08 Zack Weinberg <zack@codesourcery.com>
3160
3161 * system.h: Poison MAP_CHARACTER.
3162 * config/i370/i370-protos.h (mvs_map_char): Delete.
3163 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3164 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3165 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3166
c163ddca
DS
31672003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3168
3169 * toplev.c (randomize): Correct call to time().
3170
8df63efa
JJ
31712003-07-08 Jakub Jelinek <jakub@redhat.com>
3172
3173 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3174 REG_EQUIV notes as well.
3175
4b5cc2b3
KH
31762003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3177
3178 * doc/md.texi: Fix the description of addmodecc.
3179
56694dd9
ZW
31802003-07-07 Zack Weinberg <zack@codesourcery.com>
3181
3182 * Makefile.in (top_builddir): Set to "..", not ".".
3183 (INTLLIBS, INTLDEPS): Delete.
3184 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3185 (LIBDEPS): Add $(LIBICONV_DEP).
3186 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3187 (INCLUDES): Replace -I../intl with @INCINTL@.
3188 ($(top_builddir)/intl/libintl.a): Delete rule.
3189 (stage2-start, stage3-start, stage4-start, stageprofile-start,
3190 stagefeedback-start): Use $$ for variable to be evaluated by
3191 shell, not make.
3192 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3193 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3194 * aclocal.m4: sinclude ../config/progtest.m4. Add
3195 contents of lcmessage.m4 from gettext distro.
3196 * configure.in: Check for wchar.h and setlocale. Set
3197 LIBICONV_DEP to the empty string and substitute it.
3198 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
3199 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
3200 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
3201 in $LIBINTL, to avoid linking it twice.
3202 * configure, config.in: Regenerate.
3203
a294c4cf
NN
32042003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
3205
3206 * fixinc/mkfixinc.sh: Remove winnt support.
3207 * fixinc/fixinc.winnt: Delete with extreme prejudice.
3208
979312a4
NB
32092003-07-08 Neil Booth <neil@daikokuya.co.uk>
3210
3211 * Makefile.in: Update.
3212 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3213 * c.opt: Update documentation.
3214 * common.opt: Add some help text.
3215 * opts.c: Include intl.h.
3216 (wrap_help, print_help): New.
3217 (find_opt, handle_option, common_handle_option): opt_text now
3218 contains the '-'. Use print_help to output help.
3219 * opts.h (struct cl_option): New member "help".
3220 * opts.sh: Update to handle help text output and to prepend
3221 options with '-'.
3222 * toplev.c (display_help): Remove some help text.
3223
2c4a9cff
DE
32242003-07-07 David Edelsohn <edelsohn@gnu.org>
3225 Fariborz Jahanian <fjahanian@apple.com>
3226
3227 * configure.in: Test for PowerPC mfcr field support in assembler.
3228 * config.in, configure: Regenderated.
3229
3230 * config/rs6000/power4.md: Add mfcrf reservation.
3231 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3232 * config/rs6000/rs6000.c (mfcr_operation): Define.
3233 (print_operand): Add 'Q' case for mfcrf.
3234 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3235 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3236 (movcc_internal1): Emit optional field operand for mfcr and set
3237 "type" attribute appropriately.
3238 (mfcr SCC): Likewise.
3239 (movesi_from_cr_one): New.
3240
923c4cf2
RS
32412003-07-07 Roger Sayle <roger@eyesopen.com>
3242
3243 * config/i386/i386.md: Correct check-in of incorrect version.
3244
75b6f3fd
KG
32452003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246
3247 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3248 adjacent stdio calls.
3249 * c-decl.c (c_print_identifier): Likewise.
3250 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3251 * print-rtl.c (print_rtx): Likewise.
3252 * print-tree.c (print_node_brief, print_node): Likewise.
3253 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 3254
75b6f3fd
KG
3255 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3256 * config.in, configure: Regenerated.
3257
afeeac3f
RS
32582003-07-07 Roger Sayle <roger@eyesopen.com>
3259
3260 PR target/10979
3261 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3262 Changed to define_expand patterns that copy operand[1] to prevent
3263 it from being clobbered before emitting an atan2?f3_1 insn.
3264 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3265 patterns that actually specify the behaviour of x87's FPATAN.
3266
eeff9307
JJ
32672003-07-07 Jakub Jelinek <jakub@redhat.com>
3268
3269 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3270 clearing of SYMBOL_FLAG_LOCAL bit.
3271 If vcall_offset fits into signed 16-bit immediate, use
3272 one instruction for both addition and load.
3273
0fcd5dda
NB
32742003-07-07 Neil Booth <neil@daikokuya.co.uk>
3275
3276 * opts.c (common_handle_option): Correct handling of the
3277 -falign- switches that do and don't take an argument.
3278
b275810a
KH
32792003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3280
3281 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3282 today.
3283 (pushhi1_h8300hs): Likewise.
3284
5671bf27
AJ
32852003-07-07 Andreas Jaeger <aj@suse.de>
3286
3287 * genextract.c: Convert remaining prototypes to ISO C90.
3288
3289 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3290 * fold-const.c (fold_single_bit_test): Likewise.
3291 * diagnostic.c (default_diagnostic_finalizer): Likewise.
3292 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3293
3294 * gengtype.c (write_array): Generate ISO C90 prototypes.
3295
3296 * genflags.c (gen_proto): Generate ISO C90 prototypes.
3297
2c430630
RS
32982003-07-07 Roger Sayle <roger@eyesopen.com>
3299
3300 PR optimization/11059
3301 * expr.c (can_store_by_pieces): Return true if length is zero.
3302 (store_by_pieces): If length is zero and endp is two, abort,
3303 othwerise, if length is zero and endp is not two, return "to".
3304 (clear_by_pieces): Do nothing if length is zero.
3305 (clear_storage): Do nothing if length is zero.
3306 (store_constructor): Simplify code when size is zero, or the
3307 target has already been cleared. This avoids emitting a
3308 blockage instruction when initializing empty structures.
3309
cf633f5b
AJ
33102003-07-07 Andreas Jaeger <aj@suse.de>
3311
3312 * mips-tfile.c: Convert prototypes to ISO C90.
3313 * mips-tdump.c: Convert prototypes to ISO C90.
3314
0cea056b
NS
33152003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3316
3317 * rtl.h (emit_line_note): Take a location_t.
3318 (emit_line_note_force): Remove.
3319 (set_file_and_line_for_statement): Take a location_t.
3320 * tree.g (emit_line_note): Take a location_t.
3321 * emit-rtl.c (emit_line_note): Take a location_t.
3322 (emit_line_note_force): Remove.
3323 * function.c (init_function_start): Adjust emit_line_note call.
3324 (expand_function_end): Use force_next_line_note, not
3325 emit_line_note_force.
3326 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3327 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3328 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3329 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3330 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3331 genrtl_continue_stmt, genrtl_switch_stmt,
3332 genrtl_asm_stmt): Likewise.
3333 * expr.c (expand_expr): Likewise.
3334 * integrate.c (expand_inline_function): Likewise.
3335 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3336 (expand_decl_init): Adjust emit_line_note call.
3337
8eb910fc
DJ
33382003-07-07 Dale Johannesen <dalej@apple.com>
3339
56694dd9 3340 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 3341
b96a374d
AJ
33422003-07-07 Andreas Jaeger <aj@suse.de>
3343
3344 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
3345 * config/i386/i386.c: Likewise.
3346
273fc01e
KH
33472003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3348
3349 * config/h8300/h8300.md: Use gen_int_mode instead of
3350 GEN_INT (trunc_int_for_mode (...)).
3351
fb7d7712
KH
33522003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3353
3354 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
3355 2 bytes and then subtract 2 from the stack pointer.
3356 (pushhi1_h8300hs): Likewise.
3357
e61a2eb7
NS
33582003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3359
3360 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
3361 -frandom-seed.
3362 * configure: Regenerated.
3363 * Makefile.in: Remove extraneous comment.
3364 * toplev.c (randomize): Protect against potential multiple calls.
3365 * doc/invoke.texi (-frandom-seed): Document use for in coverage
3366 files.
3367
82d610ec 33682003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 3369 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
3370
3371 PR optimization/11198
3372 * alias.c (objects_must_conflict_p): Return 1 if the types have
3373 the same alias set, not if the alias sets only conflict.
3374
5beadb33
AP
33752003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
3376
3377 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
3378 (convert_cset): Change inbuf to type ICONV_CONST char.
3379 * Makefile.in (LIBS): Add LIBICONV.
3380
9bb34f3c
AJ
3381 * doc/invoke.texi (-falign-functions): Document that
3382 when n is zero then a machine-dependent default is used.
3383 (-falign-labels): Document that when n is zero then a
3384 machine-dependent default is used and that -falign-labels =1
3385 is equivalent to -fno-align-labels.
3386 (-falign-loops): Likewise.
3387 (-falign-jumps): Likewise.
3388
1dbb6ce8
AH
33892003-07-06 Art Haas <ahaas@airmail.net>
3390
3391 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
3392 initializer syntax.
3393
8338d44d
JW
33942003-07-06 James E Wilson <wilson@tuliptree.org>
3395
3396 PR optimization/9812
3397 * rtl.h (mem_for_const_double): Delete prototype.
3398 * varasm.c (mem_for_const_double): Delete function.
3399 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
3400 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
3401 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
3402 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
3403 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
3404 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
3405 comment about confused support for XFmode constants.
3406
9efd34a5
JH
3407Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
3408
3409 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
3410
2a43945f
KH
34112003-07-06 Kazu Hirata <kazu@cs.umass.edu>
3412
3413 * config/h8300/h8300.c: Fix comment typos.
3414 * config/h8300/h8300.md: Likewise.
3415 * config/i386/athlon.md: Likewise.
3416 * config/i386/i386.c: Likewise.
3417 * config/i386/pentium.md: Likewise.
3418 * config/ia64/ia64.c: Likewise.
3419 * config/ia64/itanium1.md: Likewise.
3420 * config/ia64/itanium2.md: Likewise.
3421 * config/m32r/m32r.md: Likewise.
3422 * config/m68hc11/m68hc11.c: Likewise.
3423 * config/mcore/mcore.c: Likewise.
3424 * config/mips/sr71k.md: Likewise.
3425 * config/mips/t-iris5-as: Likewise.
3426 * config/mmix/mmix.h: Likewise.
3427 * config/ns32k/ns32k.h: Likewise.
3428 * config/ns32k/NOTES: Fix a typo.
3429
ceee09f7
AJ
34302003-07-06 Andreas Jaeger <aj@suse.de>
3431
7e51717c
AJ
3432 * stmt.c: Convert remaining prototypes to ISO C90.
3433 * cfglayout.c: Likewise.
3434 * dbxout.c: Likewise.
3435 * gcc.c: Likewise.
3436 * genemit.c: Likewise.
3437
ceee09f7
AJ
3438 * basic-block.h: Convert prototypes to ISO C90.
3439 * c-parse.in: Likewise.
3440 * c-pragma.h: Likewise.
3441 * c-typeck.c: Likewise.
3442 * cfghooks.h: Likewise.
3443 * cfgloopanal.c: Likewise.
3444 * dbxout.h: Likewise.
3445 * debug.h: Likewise.
3446 * dwarf2asm.h: Likewise.
3447 * gcov.c: Likewise.
3448 * gengtype-lex.l: Likewise.
3449 * sched-int.h: Likewise.
3450 * timevar.c: Likewise.
3451
cb66e385
NB
34522003-07-06 Neil Booth <neil@daikokuya.co.uk>
3453
3454 * c-common.h (c_comon_handle_filename,
3455 c_common_missing_arguement): New.
3456 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3457 LANG_HOOKS_MISSING_ARGUMENT): New.
3458 * c-opts.c (missing_arg): Rename c_common_missing_argument,
3459 update to be an appropriate langhook.
3460 (c_common_handle_option): Don't handle filenames.
3461 (c_common_handle_filename): New.
3462 * hooks.c (hook_void_constcharptr,
3463 hook_bool_constcharptr_size_t_false): New.
3464 * hooks.h (hook_void_constcharptr,
3465 hook_bool_constcharptr_size_t_false): New.
3466 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
3467 LANG_HOOKS_MISSING_ARGUMENT): New.
3468 (LANG_HOOKS_INITIALIZER): Update.
3469 * langhooks.h (struct lang_hooks): Add handle_filename and
3470 missing_argument.
3471 * opts.c (handle_option): Don't handle filenames here, but ...
3472 (handle_options): ... here.
3473 (common_handle_option): Don't handle missing arguments here.
3474 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3475 LANG_HOOKS_MISSING_ARGUMENT): New.
3476
ade4289c
NB
34772003-07-06 Neil Booth <neil@daikokuya.co.uk>
3478
3479 * Makfile.in: Remove traces of mbchar.
3480 * c-parse.in (MULTIBYTE_CHARS): Remove.
3481 * config.in (MULTIBYTE_CHARS): Remove.
3482 * configure: Remove --enable-mbchar.
3483 * configure.in: Remove --enable-mbchar.
3484 * mbchar.c, mbchar.h: Remove.
3485 * system.h: Poison MULTIBYTE_CHARS.
3486 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
3487 * config/linux.h (MULTIBYTE_CHARS): Remove.
3488 * config/svr4.h (MULTIBYTE_CHARS): Remove.
3489 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
3490
2e1eedd6
AJ
34912003-07-06 Andreas Jaeger <aj@suse.de>
3492
11dc5cc6
AJ
3493 * varray.c (varray_check_failed): Fix typo.
3494
3495 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
3496 * varasm.c: Likewise.
3497 * varray.c: Likewise.
3498 * varray.h: Likewise.
3499 * vmsdbgout.c: Likewise.
3500 * xcoffout.c: Likewise.
3501 * xcoffout.h: Likewise.
3502
dd486eb2
NS
35032003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3504
3505 * gcov-io.h: Add a local time stamp.
3506 (struct gcov_info): Add stamp field.
3507 (gcov_truncate): New.
3508 * coverage.c (read_counts_file): Skip the stamp.
3509 (coverage_begin_output): Write the stamp.
3510 (build_gcov_info): Declare and init the stamp.
3511 (coverage_finish): Only unlink data file, if stamp is zero.
3512 * gcov-dump.c (dump_file): Dump the stamp.
3513 * gcov.c (bbg_stamp): New.
3514 (release_structures): Clear bbg_stamp.
3515 (read_graph_file): Read stamp.
3516 (read_count_file): Check stamp.
3517 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
3518
c07e5477
NS
35192003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3520
3521 * tree.h (default_flag_random_seed): Remove.
3522 * toplev.h (local_tick): Declare.
3523 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3524 toplev.c.
3525 (append_random_chars): Don't call default_flag_random_seed.
3526 * toplev.c (flag_random_seed): Define here. Set local_tick.
3527 (local_tick): Define.
3528 (randomize): New, moved from tree.c.
3529 (print_switch_values): Adjust.
3530 (toplev_main): Call randomize.
3531
2aab7ceb
NS
35322003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3533
3534 * tree.h (crc32_string): Declare.
3535 * tree.c (append_random_chars): Remove.
3536 (crc32_string): New.
3537 (get_file_function_name_long): Use crc32_string here.
3538
1d088dee
AJ
35392003-07-06 Andreas Jaeger <aj@suse.de>
3540
3541 * gcc.c: Convert prototypes to ISO C90.
3542 * gcc.h: Likewise.
3543 * gcov-dump.c: Likewise.
3544 * gcov-iov.c: Likewise.
3545 * gcse.c: Likewise.
3546 * genattrtab.h: Likewise.
3547 * ggc.h: Likewise.
3548 * global.c: Likewise.
3549 * graph.c: Likewise.
3550 * graph.h: Likewise.
3551 * hosthooks.h: Likewise.
3552 * hooks.h: Likewise.
3553 * hooks.c: Likewise.
3554 * hashtable.h: Likewise.
3555 * hashtable.c: Likewise.
3556 * haifa-sched.c: Likewise.
3557 * integrate.h: Likewise.
3558 * integrate.c: Likewise.
3559 * input.h: Likewise.
3560 * ifcvt.c: Likewise.
f8ec47c7 3561 * jump.c: Likewise.
0c20a65f
AJ
3562 * langhooks-def.h: Likewise. Add extern to prototypes.
3563 * langhooks.c: Likewise.
3564 * langhooks.h: Likewise.
3565 * lcm.c: Likewise.
3566 * local-alloc.c: Likewise.
3567 * loop-init.c: Likewise.
3568 * loop-unroll.c: Likewise.
3569 * loop-unswitch.c: Likewise.
3570 * loop.c: Likewise.
3571 * loop.h: Likewise. Add extern to prototypes.
3572 * machmode.h: Likewise.
3573 * main.c: Likewise.
3574 * mbchar.c: Likewise.
3575 * mbchar.h: Likewise.
3576 * mkdeps.c: Likewise.
3577 * mkdeps.h: Likewise.
3578 * optabs.c: Likewise.
3579 * optabs.h: Likewise.
3580 * output.h: Likewise.
3581 * gccspec.c: Likwise.
3582 * postreload.c: Likewise.
3583 * prefix.c: Likewise.
3584 * prefix.h: Likewise.
3585 * print-rtl.c: Likewise.
3586 * print-tree.c: Likewise.
3587 * profile.c: Likewise.
3588 * read-rtl.c: Likewise.
3589 * real.c: Likewise.
3590 * real.h: Likewise.
3591 * recog.c: Likewise.
3592 * recog.h: Likewise.
3593 * reg-stack.c: Likewise.
3594 * regclass.c: Likewise.
3595 * regmove.c: Likewise.
3596 * regrename.c: Likewise.
3597 * regs.h: Likewise.
3598 * reload.c: Likewise.
3599 * reload.h: Likewise.
3600 * reload1.c: Likewise.
3601 * reorg.c: Likewise.
3602 * resource.c: Likewise.
3603 * resource.h: Likewise.
3604 * rtl-error.c: Likewise.
3605 * rtl.c: Likewise.
3606 * rtl.h: Likewise.
3607 * rtlanal.c: Likewise.
46c5ad27
AJ
3608 * sbitmap.c: Likewise.
3609 * sbitmap.h: Likewise.
3610 * scan-decls.c: Likewise.
3611 * scan.c: Likewise.
3612 * sched-deps.c: Likewise.
3613 * sched-ebb.c: Likewise.
3614 * sched-int.h: Likewise.
3615 * sched-rgn.c: Likewise.
3616 * sched-vis.c: Likewise.
3617 * sibcall.c: Likewise.
3618 * simplify-rtx.c: Likewise.
3619 * sreal.c: Likewise.
3620 * sreal.h: Likewise.
3621 * ssa-ccp.c: Likewise.
3622 * ssa-dce.c: Likewise.
3623 * ssa.c: Likewise.
3624 * ssa.h: Likewise.
3625 * stack.h: Likewise.
3626 * stmt.c: Likewise.
3627 * stor-layout.c: Likewise.
3628 * stringpool.c: Likewise.
3629 * target.h: Likewise.
3630 * timevar.c: Likewise.
3631 * timevar.h: Likewise.
3632 * tlink.c: Likewise.
3633 * tracer.c: Likewise.
3634 * tree-inline.c: Likewise.
3635 * tree-inline.h: Likewise.
3636 * tree.c: Likewise.
3637 * tree.h: Likewise.
1d088dee 3638
4f649bc1
KH
36392003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3640
3641 * combine.c (nonzero_bits1): Fix a warning.
3642
36432003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
3644
3645 * config/h8300/h8300.c (compute_mov_length): Correct the
3646 length of loading CONST0_RTX (SFmode).
3647
f5924ac1
NS
36482003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3649
3650 * toplev.c (output_clean_symbol_name): Remove.
3651 * toplev.h (output_clean_symbol_name): Remove.
3652 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3653 lbasename & clean_symbol_name.
3654
39e3f58c
KH
36552003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3656
3657 * ggc.h: Follow spelling conventions.
3658 * config/i386/i386.c: Likewise.
3659 * config/i386/winnt.c: Likewise.
3660 * config/rs6000/rs6000.c: Likewise.
3661
4d6922ee
KH
36622003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3663
3664 * bt-load.c: Fix comment typos.
3665 * c-incpath.c: Likewise.
3666 * cfg.c: Likewise.
3667 * cfgcleanup.c: Likewise.
3668 * cfgloop.h: Likewise.
3669 * cfgloopmanip.c: Likewise.
3670 * cfgrtl.c: Likewise.
3671 * diagnostic.h: Likewise.
3672 * dwarfout.c: Likewise.
3673 * emit-rtl.c: Likewise.
3674 * et-forest.c: Likewise.
3675 * et-forest.h: Likewise.
3676 * expr.c: Likewise.
3677 * gcse.c: Likewise.
3678 * genattr.c: Likewise.
3679 * jump.c: Likewise.
3680 * langhooks.h: Likewise.
3681 * local-alloc.c: Likewise.
3682 * loop-unroll.c: Likewise.
3683 * loop-unswitch.c: Likewise.
3684 * ra-build.c: Likewise.
3685 * regclass.c: Likewise.
3686 * regmove.c: Likewise.
3687 * rtl.def: Likewise.
3688 * rtlanal.c: Likewise.
3689 * sched-ebb.c: Likewise.
3690 * sched-rgn.c: Likewise.
3691 * simplify-rtx.c: Likewise.
3692 * ssa.c: Likewise.
3693 * tracer.c: Likewise.
3694 * tree.c: Likewise.
3695
f1c4bc4f
ZW
36962003-07-05 Zack Weinberg <zack@codesourcery.com>
3697
3698 * cppcharset.c: Use the correct return type for the fallback iconv
3699 macro.
3700
65c6f1b4
ZD
3701Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3702
3703 Blame to Jan Hubicka <jh@suse.cz>
3704 * cfglayout.c (record_effective_endpoints): Split insns before
3705 first basic block correctly.
3706
a8f3bf52
RK
37072003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3708
f1c4bc4f 3709 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
3710 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3711 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3712
0641776c
AJ
37132003-07-05 Andreas Jaeger <aj@suse.de>
3714
3715 * genattrtab.c (write_attr_get): Revert part of last patch to
3716 always write out a prototype.
3717
3718 * genemit.c (gen_split): Readd lost unused attributes in last
3719 patch.
3720
977129f6
ZD
37212003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3722
3723 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3724 different from header.
3725
5ee084df
AS
37262003-07-05 Andreas Schwab <schwab@suse.de>
3727
3728 * config/m68k/m68k.c: Remove code protected by CRDS.
3729 * config/m68k/m68k.md: Likewise.
3730
33de9573
NB
37312003-07-05 Neil Booth <neil@daikokuya.co.uk>
3732
3733 PR driver/11417
3734 * c-opts.c (permit_fortran_options): New.
3735 (c_common_init_options): Accept fortran front end options if
3736 it looks like we might be preprocessing Fortran.
3737 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3738
6906ba40
KG
37392003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3740
3741 * genattr.c (internal_dfa_insn_code): Output prototype.
3742 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3743 * genautomata.c: Likewise.
3744 * genconditions.c: Likewise.
3745 * genemit.c: Likewise.
3746 * genextract.c: Likewise.
3747 * gengenrtl.c: Likewise.
3748 * gengtype.c: Likewise.
3749 * genopinit.c: Likewise.
3750 * genoutput.c: Likewise.
3751 * genpeep.c: Likewise.
3752 * genrecog.c: Likewise.
3753
e6cc3a24
ZW
37542003-07-04 Zack Weinberg <zack@codesourcery.com>
3755
3756 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3757 (struct cpp_options): Add narrow_charset, wide_charset,
3758 bytes_big_endian fields. Remove EBCDIC field.
3759 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3760
3761 * cpphash.h: Include <iconv.h> if we have it, otherwise
3762 provide a dummy definition of iconv_t.
3763 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3764 (_cpp_valid_ucn): Update prototype.
3765 (_cpp_destroy_iconv): New prototype.
3766
3767 * doc/cpp.texi: Document character set handling.
3768 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3769 * doc/extend.texi: Delete entire section on multiline strings.
3770 Rewrite section on __FUNCTION__ etc now that these are
3771 variables in C.
3772
3773 * cppucnid.tab, cppucnid.pl: New files.
3774 * cppucnid.h: New generated file.
3775 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3776 (iconv_open, iconv, iconv_close): Provide dummy definitions
3777 if !HAVE_ICONV.
3778 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3779 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3780 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3781 cpp_interpret_string, narrow_str_to_charconst,
3782 wide_str_to_charconst): New.
3783 (ucn_valid_in_identifier): Use a binary search through the
3784 ucnranges table defined in cppucnid.h, not a long chain of if
3785 statements.
3786 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3787 character names are only valid in C++ and C99" to a warning.
3788 Issue the "meaning of \[uU] is different in traditional C"
3789 warning here. Take care not to let iconv see an invalid UCS
3790 value if we get a malformed UCN. Issue an error if we don't
3791 have iconv.
3792 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3793 cpp_interpret_string to do the heavy lifting.
3794
3795 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3796 narrow_charset, wide_charset fields of options structure.
3797 (cpp_destroy): Call _cpp_destroy_iconv.
3798 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3799 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3800 (cpp_interpret_charconst): Moved to cppcharset.c.
3801 * cpplib.c (dequote_string): Delete.
3802 (interpret_string_notranslate): New.
3803 (do_line, do_linemarker): Use interpret_string_notranslate.
3804
3805 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3806
3807 * c-common.c (fname_string, combine_strings): Delete.
3808 * c-common.h (fname_string, combine_strings): Delete prototypes.
3809 * c-lex.c (ignore_escape_flag): Delete.
3810 (cb_ident): Use cpp_interpret_string, not lex_string.
3811 (get_nonpadding_token): New function.
3812 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3813 Adjust calls to lex_string. Don't write *value twice.
3814 (lex_string): Now handles string constant concatenation.
3815 Most of the work handed off to cpp_interpret_string.
3816 Call fix_string_type here.
3817 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3818 FUNC_NAME, throughout.
3819 (OBJC_STRING): New token type.
3820 (primary:STRING): No need to call fix_string_type here.
3821 (primary:objc_string): Make that OBJC_STRING.
3822 (objc_string nonterminal): Delete.
3823 (yylexname): Delete code to handle fake string constants.
3824 (yylexstring): Delete entirely.
3825 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3826 to handle CPP_ATSIGN.
3827
3828 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3829 * c-opts.c (missing_arg, c_common_handle_option): Handle
3830 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3831 (c_common_init): Set cpp_opts->bytes_big_endian, not
3832 cpp_opts->EBCDIC. Call cpp_init_iconv.
3833 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3834 (TARGET_EBCDIC): Delete default definition.
3835
3836 * objc/objc-act.c (build_objc_string_object): No need to
3837 handle string constant concatenation.
3838
61aeb06f
KH
38392003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3840
3841 * doc/install.texi: Fix typos.
3842 * doc/invoke.texi: Likewise.
3843 * doc/tm.texi: Likewise.
3844
c1207243
KH
38452003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3846
3847 * config/pa/fptr.c: Fix comment typos.
3848 * config/pa/pa-64.h: Likewise.
3849 * config/pa/pa.c: Likewise.
3850 * config/pa/pa.h: Likewise.
3851 * config/rs6000/603.md: Likewise.
3852 * config/rs6000/7xx.md: Likewise.
3853 * config/rs6000/darwin.h: Likewise.
3854 * config/rs6000/freebsd.h: Likewise.
3855 * config/rs6000/rs6000.c: Likewise.
3856 * config/rs6000/rs6000.md: Likewise.
3857 * config/rs6000/spe.h: Likewise.
3858
58add37a
UW
38592003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3860
3861 * config/s390/2064.md: Change GNU CC to GCC.
3862 * config/s390/2084.md: Likewise.
3863 * config/s390/fixdfdi.h: Likewise.
3864 * config/s390/linux.h: Likewise.
3865 * config/s390/s390-modes.def: Likewise.
3866 * config/s390/s390-protos.h: Likewise.
3867 * config/s390/s390.c: Likewise.
3868 * config/s390/s390.h: Likewise.
3869 * config/s390/s390.md: Likewise.
3870 * config/s390/s390x.h: Likewise.
3871
60cd4dae
JL
38722003-07-04 Jeff Law <law@redhat.com>
3873
a38825d2 3874 PR c/11428
60cd4dae
JL
3875 * expr.c (do_store_flag): Pass in the correct result type
3876 when calling fold_single_bit_test.
3877 * fold-const.c (fold_single_bit_test): Use result_type for the
3878 result when folding a sign bit test.
3879
5e14ae7e
NB
38802003-07-04 Neil Booth <neil@daikokuya.co.uk>
3881
3882 * opts.c (common_handle_options): Negate sense of -falign- switches.
3883
8c90b13a
L
38842003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3885
c3b3975a 3886 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 3887
72d4a2ad
ZD
38882003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3889
3890 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3891 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3892 Handle strange loops.
3893
8e9a4a45
TM
38942003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3895
3896 * install.texi: Even the g77 manpage is derived from
3897 the full g77 manual.
3898
6eb95e99
ZW
38992003-07-04 Zack Weinberg <zack@codesourcery.com>
3900
3901 * ABOUT-NLS: Delete.
3902 * intl: Delete entire directory.
3903 * aclocal.m4: Include ../config/gettext.m4. Delete
3904 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3905 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3906 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3907 Remove intl/Makefile from all_outputs.
3908 * configure, config.in: Regenerate.
3909 * Makefile.in: Expunge all references to intl subdirectory.
3910 Add -I../intl to INCLUDES.
3911 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3912
bcd5d841
RS
39132003-07-04 Roger Sayle <roger@eyesopen.com>
3914
3915 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3916 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3917
6b6cb52e
DS
39182003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3919
3920 PR c++/5287, PR c++/7910, PR c++/11021
3921 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3922 dllimport attribute if function is defined at declaration, but
3923 report error instead. Likewise for dllimport'd variable
3924 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3925 declared within functions, Report error if dllimport or dllexport
3926 symbol is not global.
3927 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3928 if defined after declaration or if inlined. Don't allow definition
3929 of static data members of C++ classes. Don't dllimport virtual
3930 methods.
3931 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3932 (i386_pe_mark_dllimport): Remove unnecessary checks.
3933 (i386_pe_encode_section_info): Warn if the dllimport attribute
3934 and symbol prefix have been instantiated and then overridden.
3935
3936 * doc/extend.texi: Document dllimport and dllexport attributes.
3937
3938 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3939
cc2f5d34
US
39402003-07-03 Uwe Stieber <uwe@kaos-group.de>
3941
3942 * config/kaos.h (CPP_PREDEFINES): Delete.
3943 (TARGET_OS_CPP_BUILTINS): New.
3944
5f1989e6
KG
39452003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3946
3947 * c-aux-info.c: Include toplev.h after c-tree.h.
3948 * c-common.c: Likewise.
3949 (GCC_DIAG_STYLE): Undef.
3950 * c-semantics.c (GCC_DIAG_STYLE): Define.
3951 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3952 * diagnostic.h (inform): Move prototype to toplev.h.
3953 * jump.c: Include diagnostic.h before toplev.h.
3954 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3955 (warning, error, fatal_error, pedwarn, sorry, inform,
3956 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3957
8d28e87d
ZD
39582003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3959
3960 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3961 at all if edge is not specified.
3962 (can_copy_bbs_p, copy_bbs): New.
3963 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3964 * cfgloop.c (get_loop_body): Comment more precisely.
3965 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3966 (scale_bbs_frequencies): Fix comment typo.
3967 (can_duplicate_loop_p): Use can_copy_bbs_p.
3968 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3969
694abeb6
DP
39702003-07-03 Devang Patel <dpatel@apple.com>
3971
3972 * c-opts.c (c_common_parse_file): Remove extra
3973 debug_hooks->start_source_file call.
6eb95e99 3974
0a9530a9
RS
39752003-07-03 Roger Sayle <roger@eyesopen.com>
3976
3977 * real.c (real_trunc, real_floor, real_ceil): New functions
3978 to implement trunc, floor and ceil respectively.
3979 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3980 * builtins.c (integer_valued_real_p): New function to test if
3981 a floating point expression has an integer valued result.
3982 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3983 foo(x) where foo is an integer rounding function. Similarly,
3984 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3985 (double)(int)x when both foo and bar are integer rounding
3986 functions and we don't need to honor errno.
3987 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3988 New functions to fold trunc, floor and ceil.
3989 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3990 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3991 to fold BUILT_IN_CEIL*.
3992 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3993 the remaining integer rounding functions.
3994
c3427c7d
EB
39952003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3996
3997 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3998 SPARC_INT_ARG_MAX to determine where to split unnamed
3999 complex FP arguments.
4000
bc35512f
JH
4001Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
4002
4003 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4004 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4005 (merge_blocks_move_predecessor_nojumps,
4006 merge_blocks_move_successor_nojumps): Use merge_blocks.
4007 (try_optimize_cfg): Use merge_blocks_move.
4008 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4009 (merge_blocks_nomove): Rename to rtl_merge_blocks.
4010 (cfg_layout_create_basic_block): New.
4011 (rtl_can_merge_blocks): New.
4012 (cfg_layout_split_block): Do not alloc aux by hand.
4013 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4014 merge_blocks.
4015 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4016 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4017 * cfgloopmanip.c (loop_split_edge_with): Likewise.
4018 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4019
4020 * basic-block.h (basic_block_def): Add field 'rbi'.
4021 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4022 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4023 * cfg.c (entry_exit_blocks): Add new field.
4024 * cfglayout.c: Include alloc-pool.h;
4025 (cfg_layout_pool): New.
4026 (record_effective_endpoints, fixup_reorder_chain,
4027 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4028 of rbi.
4029 (cfg_layout_initialize_rbi): New function.
4030 (cfg_layout_initialize): Use it.
4031 (cfg_layout_finalize): Clear rbi fields.
4032 * cfglayout.h (RBI): Kill.
4033 (cfg_layout_initialize_rbi): Declare.
4034 * cfgloopmanip.c (copy_bbs): Use rbi.
4035 (record_exit_edges): Likewise.
4036 (duplicate_loop_to_header_edge): Likewise.
4037 * cfgrtl.c (cfg_layout_create_basic_block): Use
4038 cfg_layout_initialize_rbi.
4039 (cfg_layout_split_block): Use rbi.
4040 (cfg_layout_delete_block): Likewise.
4041 * loop-init.c (loop_optimizer_finalize): Likewise.
4042 * loop-unswitch.c (unswitch_loop): Likewise.
4043 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4044
4045 * cfgrtl.c: Update comments.
4046 (try_redirect_by_replacing_jump): New argument.
4047 (redirect_branch_edge): Break out from ...
4048 (rtl_redirect_edge_and_branch): ... this one.
4049 (update_cfg_after_block_merging): Break out from ...
4050 (rtl_merge_blocks): ... this one.
4051 (cfg_layout_split_edge): New.
4052 (cfg_layout_merge_blocks): New.
4053 (cfg_layout_can_merge_blocks_p): New.
4054 (cfg_layout_redirect_edge_and_branch): Reorganize.
4055 (cfg_layout_rtl_cfg_hooks): Fill in.
4056 (cfg_layout_delete_block): Kill barriers.
4057 * cfganal.c (can_fallthru): Deal with exit blocks
4058 * cfglayout.c (cfg_layout_function_header): New function
4059 (record_effective_endpoints): Record function header.
4060 (fixup_reorder_chain): Fixup dead jumptables; place header
4061
4062 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4063 * bb-reorder.c (cfg_layout_initialize): Update call.
4064 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4065 edges in cfglayout mode.
4066 * cfglayout.c (cleanup_unconditional_jumps): Kill.
4067 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4068 * cfglayout.h (cfg_layout_initialize): Update prototype.
4069 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4070 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4071 * flow.c (propagate_block): Do not crash when basic block ends
4072 by first insn in the chain.
4073 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
4074 do loop discovery.
4075 * tracer.c (tracer): Update call of cfg_layout_initialize.
4076
dd220c49
KG
40772003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4078
4079 * Makefile.in: Use dependency variables in lieu of explicit
4080 files throughout.
4081
fa5b060f
SB
40822003-07-03 Steven Bosscher <steven@gcc.gnu.org>
4083
4084 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4085 * tree.h: ...to here.
4086
fae778eb
KH
40872003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4088
4089 * config/s390/2064.md: Fix comment typos.
4090 * config/s390/2084.md: Likewise.
4091 * config/s390/s390.c: Likewise.
4092 * config/s390/s390.md: Likewise.
4093 * config/sh/sh.c: Likewise.
4094 * config/sh/sh.h: Likewise.
4095 * config/sh/sh.md: Likewise.
4096 * config/sparc/sparc.c: Likewise.
4097 * config/sparc/sparc.h: Likewise.
4098 * config/sparc/sparc.md: Likewise.
4099 * config/stormy16/stormy16.c: Likewise.
4100 * config/stormy16/stormy16.h: Likewise.
4101 * config/stormy16/stormy-abi: Fix a typo.
4102
58eabcb1
KC
41032003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
4104
4105 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4106
af261903
KG
41072003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4108
4109 * config/mips/mips.h (save_argv): Delete.
4110
a11c61d2
RS
41112003-07-03 Roger Sayle <roger@eyesopen.com>
4112
4113 PR target/10700
4114 * fold-const.c (extract_muldiv_1): There's nothing that can be done
4115 if the expression is a SAVE_EXPR.
4116
dab66575
KH
41172003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4118
4119 * config/m32r/m32r.c: Fix comment typos.
4120 * config/m68hc11/m68hc11.c: Likewise.
4121 * config/m68hc11/m68hc11.h: Likewise.
4122 * config/m68k/m68k.c: Likewise.
4123 * config/mcore/mcore.c: Likewise.
4124 * config/mcore/mcore.h: Likewise.
4125 * config/mcore/mcore.md: Likewise.
4126 * config/mips/mips.c: Likewise.
4127 * config/mips/mips.h: Likewise.
4128 * config/mips/mips.md: Likewise.
4129 * config/mips/netbsd.h: Likewise.
4130 * config/mn10300/mn10300.c: Likewise.
4131
8837d828
AS
41322003-07-03 Andreas Schwab <schwab@suse.de>
4133
4134 * dbxout.c (pending_bincls): Move decl down inside
4135 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4136
dd107e66
NS
41372003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4138
4139 * rtl.h (NOTE_DATA): Refer to whole union.
4140 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4141
8821d091
EB
41422003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4143
4144 PR optimization/11381
4145 * simplify-rtx.c (simplify_relational_operation): Check that
4146 two equal operands have no side-effects before simplifying
4147 the comparison.
4148
7960bf22
JL
41492003-07-02 Jeff Law <law@redhat.com>
4150
4151 * expr.c (do_store_flag): Remove special case folding for
4152 single bit tests. Instead call back into the commonized folder
4153 routine.
4154 * fold-const.c (fold_single_bit_test): New function, mostly
4155 extracted from do_store_flag, with an additional case extracted
4156 from fold.
4157 (fold): Call fold_single_bit_test appropriately.
4158 * tree.h (fold_single_bit_test): Prototype.
4159
3dce1408
ZW
41602003-07-02 Zack Weinberg <zack@codesourcery.com>
4161
4162 * system.h: Include filenames.h.
4163 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4164 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4165 define based on HAVE_DOS_BASED_FILE_SYSTEM.
4166 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4167 * config/i386/xm-mingw32.h: Don't define
4168 HAVE_DOS_BASED_FILE_SYSTEM,
4169 DIR_SEPARATOR, or DIR_SEPARATOR_2.
4170 * doc/hostconfig.texi: Update to match.
4171
4172 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4173 config/i386/cygwin.h:
4174 Use IS_ABSOLUTE_PATH throughout.
4175 * gcc.c (DIR_UP): Delete, unused.
4176 * protoize.c (IS_SAME_PATH): Define in terms of
4177 FILENAME_CMP.
4178 (is_abspath): Delete.
4179
c51e6d85
KH
41802003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4181
4182 * config/i386/emmintrin.h: Fix comment typos.
4183 * config/i386/i386.c: Likewise.
4184 * config/i386/i386.h: Likewise.
4185 * config/i386/sco5.h: Likewise.
4186 * config/ia64/ia64.c: Likewise.
4187 * config/ia64/itanium2.md: Likewise.
4188
5ec3a5a7
L
41892003-07-02 H.J. Lu <hongjiu.lu@intel.com>
4190
4191 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4192 DBX_USE_BINCL.
4193 (emit_bincl_stab): Same.
4194 (emit_pending_bincls): Same.
4195
fad37371
KH
41962003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4197
4198 * config/h8300/h8300.c (compute_mov_length): Fix the length of
4199 loading CONST0_RTX (SFmode).
4200 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4201 'G' to CONST0_RTX (SFmode).
4202 * config/h8300/h8300.md (movsf_h8300): Change the first
4203 constraint to 'G'.
4204 (movsf_h8300h): Likewise.
4205
b86f6cd9
NB
42062003-07-02 Neil Booth <neil@daikokuya.co.uk>
4207
4208 * c-common.h (c_common_init_options): New prototype.
4209 * c-opts.c (deferred_size): Remove.
4210 (defer_opt): Array is now pre-allocated.
4211 (c_common_init_options): Pre-allocate deferred_opts. Make
4212 lang_flags unsigned.
4213 (push_command_line_options): Free deferred_opts.
4214 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4215 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4216 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4217 * langhooks.h (struct lang_hooks): New prototype for init_options.
4218 * main.c (main): Cast argv.
4219 * opts.c (handle_option, handle_options): Update prototypes.
4220 (decode_options): save_argc, save_argv are not global. Constify.
4221 * opts.h (decode_options): New prototype.
4222 * toplev.c (general_init): New protoype.
4223 (save_argv): Make static.
4224 (save_argc): Remove.
4225 (print_switch_values, general_init): Constify.
4226 (toplev_main): Save argv.
4227 * toplev.h (toplev_main): Update prototype.
4228 (save_argc, save_argv): Remove.
4229
f23b9d52
DE
42302003-07-02 David Edelsohn <edelsohn@gnu.org>
4231
4232 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4233 (emit_bincl_stab): Same.
4234 (emit_pending_bincls): Same.
4235
300e89a2
NS
42362003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4237
4238 PR c++/11072
4239 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4240
eaac6968
AS
42412003-07-02 Andreas Schwab <schwab@suse.de>
4242
4243 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4244
1a8c4ca6
EB
42452003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4246
4247 PR optimization/11210
4248 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4249 about the behaviour with regard to bitfields.
4250 * fold-const (decode_field_reference): Record outermost type in
4251 case the expression is a NOP. Strip all NOPs. Set the signedness
4252 to that of the outermost type (if any) when the bitsize is equal
4253 to the size of the type.
4254
23cdfcf7
RS
42552003-07-02 Richard Sandiford <rsandifo@redhat.com>
4256
4257 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4258 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4259 (adddi3_internal_3, addsi3_internal_2): Likewise.
4260
6f2993e5
RS
42612003-07-02 Richard Sandiford <rsandifo@redhat.com>
4262
4263 * config/mips/mips.c (machine_function): Add new fields:
4264 ignore_hazard_length_p and all_noreorder_p.
4265 (mips_flag_delayed_branch): New variable.
4266 (override_options): Treat '/' as an operand punctuation character.
4267 Set up mips_flag_delayed_branch.
4268 (print_operand): Handle '/'.
4269 (mips_output_function_prologue): Put the whole function in
4270 .set noreorder and .set nomacro if all_noreorder_p is true.
4271 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4272 (mips16_optimize_gp): Remove "first insn" parameter.
4273 (mips16_lay_out_constants): New function, split out from mips_reorg.
4274 (mips_avoid_hazard, mips_avoid_hazards): New functions.
4275 (mips_reorg): For mips16 code, call mips16_lay_out_constant
4276 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
4277 do delayed-branch scheduling followed by hazard detection.
4278 (mips_adjust_insn_length): Only account for hazards if
4279 !ignore_hazard_length_p.
4280 (mips_output_load_label): Add a nop to the o32 sequence if
4281 the target suffers from load delays.
4282 (mips_output_conditional_branch): Add %/ to the end of branches.
4283 (mips_output_division): Fill the branch delay slot with %#.
4284 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4285 instructions. End all other %* branches with %/.
4286 (ffssi2, ffsdi2): Fix lengths.
4287 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4288 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4289 (fix_truncsfsi2_macro): Likewise.
4290 (mov_lwl): Set hazard to "none".
4291 (ashldi3_internal): Fill the branch delay slot with %#.
4292 (ashrdi3_internal, lshrdi3_internal): Likewise.
4293 (exception_receiver): Explicitly set $28.
4294 (hazard_nop): New pattern.
4295
0184bd46
JH
4296Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
4297
4298 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4299 before calling tree_inlinable_function_p.
4300
1a78e5a7
RO
43012003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4302
4303 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4304 <internal/stdio_core.h> too.
4305 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4306 <internal/wchar_core.h> too.
4307 Substitute va_list uses in inline definition.
4308 * fixinc/fixincl.x: Regenerate.
4309
4c82f12b
RO
43102003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4311
4312 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4313 Undef before redefinition.
4314 (LABEL_AFTER_LOC): Likewise.
4315 (DEFAULT_SIGNED_CHAR): Likewise.
4316 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4317 Fix IRIX spelling.
3dce1408 4318
4c82f12b
RO
4319 * config/mips/iris3.h: Remove, unused.
4320 * config/mips/iris4.h: Likewise.
4321
4322 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4323
4324 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4325 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4326 target_cpu_default.
4327
4328 * config/mips/iris5.h: Move explicit includes ...
4329 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 4330
4c82f12b
RO
4331 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4332 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4333 tm_defines.
4334
4335 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4336 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4337 target_cpu_default.
4338
4339 * config/mips/iris6.h: Fix IRIX spelling.
4340 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 4341
4c82f12b
RO
4342 * config/mips/iris6.h: Move explicit includes ...
4343 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
4344
8bd87c4e
JH
4345Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
4346
4347 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
4348 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
4349 Use next_needed field instead of aux to maintain the queue.
4350 * cgraph.h (cgraph_node): Add next_needed.
4351 (cgraph_varpool_node): Add next_needed; remove aux.
4352 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
4353
f6981e16
JH
4354Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
4355
4356 * cgraphunit.c (cgraph_finalize_function): Set finalized.
4357 (cgraph_finalize_function): Do not examine inlinablility.
4358 (cgraph_finalize_compilation_unit): Do it here.
4359 * cgraph.h (cgraph_local_info): Add finalized field.
4360
d1c60855
RO
43612003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4362
4363 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
4364 (gt_pch_restore): Likewise.
4365
093354e0
KH
43662003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4367
4368 * config/alpha/alpha.c: Fix comment typos.
4369 * config/alpha/elf.h: Likewise.
4370 * config/arm/arm.c: Likewise.
4371 * config/arm/arm.h: Likewise.
4372 * config/arm/arm.md: Likewise.
4373 * config/arm/t-arm-coff: Likewise.
4374 * config/arm/t-strongarm-pe: Likewise.
4375 * config/arm/xscale-elf.h: Likewise.
4376 * config/avr/avr.h: Likewise.
4377
ce47ca44
JL
43782003-07-01 Jeff Law <law@redhat.com>
4379
4380 * stmt.c (any_pending_cleanups): Remove another redundant test.
4381
43b68ce5
DE
43822003-07-01 David Edelsohn <edelsohn@gnu.org>
4383 J"orn Rennecke <joern.rennecke@superh.com>
4384
4385 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
4386 for MEM case.
4387
33e9d2aa
DP
43882003-07-01 Devang Patel <dpatel@apple.com>
4389
4390 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
4391 (binclstatus): New.
3dce1408 4392 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
4393 prev.
4394 (pending_bincls): New.
4395 (dbxout_init): Initialize new dbx_file members.
4396 (dbxout_start_source_file): Same.
4397 (emit_bincl_stab): New function.
4398 (emit_pending_bincls): Same.
4399 (emit_pending_bincls_if_required): Same.
3dce1408 4400 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
4401 processed.
4402 (dbxout_begin_block): Emit pending BINCL stabs.
4403 (dbxout_end_block): Same.
4404 (dbxout_function_decl): Same.
4405 (dbxout_continue): Same.
4406 (dbxout_type): Same.
4407 (dbxout_class_name_qualifiers): Same.
4408 (dbxout_symbol): Same.
4409 (dbxout_symbol_location): Same.
4410 (dbxout_parms): Same.
3dce1408 4411
0108ae51
KG
44122003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4413
4414 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
4415 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
4416
54ced33d
AJ
44172003-07-01 Andreas Jaeger <aj@suse.de>
4418
4419 * fold-const.c: Convert prototypes to ISO C90.
4420 * function.c: Likewise.
4421 * function.h: Likewise.
4422
c0cbdbd9
KH
44232003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4424
4425 * doc/contrib.texi: Fix typos.
4426 * doc/invoke.texi: Likewise.
4427 * doc/passes.texi: Likewise.
4428 * doc/sourcebuild.texi: Likewise.
4429 * doc/tm.texi: Likewise.
4430
e0bb17a8
KH
44312003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4432
4433 * basic-block.h: Fix comment typos.
4434 * bb-reorder.c: Likewise.
4435 * c-format.c: Likewise.
4436 * cfgcleanup.c: Likewise.
4437 * cfghooks.h: Likewise.
4438 * cfgloop.c: Likewise.
4439 * cfgloopmanip.c: Likewise.
4440 * cfgrtl.c: Likewise.
4441 * cgraph.h: Likewise.
4442 * cgraphunit.c: Likewise.
4443 * combine.c: Likewise.
4444 * convert.c: Likewise.
4445 * dbxout.c: Likewise.
4446 * df.c: Likewise.
4447 * df.h: Likewise.
4448 * diagnostic.c: Likewise.
4449 * dwarf2out.c: Likewise.
4450 * et-forest.h: Likewise.
4451 * flow.c: Likewise.
4452 * fold-const.c: Likewise.
4453 * function.h: Likewise.
4454 * gcov-io.h: Likewise.
4455 * gcov.c: Likewise.
4456 * gcse.c: Likewise.
4457 * genautomata.c: Likewise.
4458 * ggc-common.c: Likewise.
4459 * ggc-page.c: Likewise.
4460 * loop-unroll.c: Likewise.
4461 * loop-unswitch.c: Likewise.
4462 * loop.c: Likewise.
4463 * mips-tfile.c: Likewise.
4464 * optabs.c: Likewise.
4465 * ra-build.c: Likewise.
4466 * ra-colorize.c: Likewise.
4467 * ra-rewrite.c: Likewise.
4468 * ra.h: Likewise.
4469 * regmove.c: Likewise.
4470 * reload.c: Likewise.
4471 * rtlanal.c: Likewise.
4472 * sched-ebb.c: Likewise.
4473 * sched-int.h: Likewise.
4474 * sched-vis.c: Likewise.
4475 * sreal.c: Likewise.
4476 * ssa-ccp.c: Likewise.
4477 * ssa.c: Likewise.
4478 * toplev.c: Likewise.
4479 * tree-inline.c: Likewise.
4480 * value-prof.c: Likewise.
4481 * value-prof.h: Likewise.
4482
5f2fc772
NS
44832003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4484
4485 * rtl.h (emit_line_note_after): Remove.
4486 (emit_note_copy_after, emit_note_copy): New.
4487 * emit-rtl.c (reorder_insns_with_line_notes): Replace
4488 emit_line_note_after with emit_note_copy_after.
4489 (emit_insn_after_with_line_notes): Likewise.
4490 (emit_line_note_after): Kill.
4491 (emit_note_copy_after): New.
4492 (emit_note_copy): New.
4493 * function.c (emit_return_into_block): Use emit_note_copy_after.
4494 (thread_prologue_and_epilogue_insns): Likewise.
4495 * integrate.c (expand_inline_function): Use emit_note_copy.
4496 (copy_insn_list): Likewise.
4497 * unroll.c (copy_loop_body): Likewise.
4498 * cfglayout.c (duplicate_insn_chain): Likewise.
4499
5b030314
NS
45002003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4501
4502 * c-tree.h (define_label): Replace filename and lineno arguments
4503 with a location_t.
4504 * c-decl.c (poplevel): Adjust define_label call.
4505 (pop_label_level): Likewise.
4506 (define_label): Replace filename and lineno arguments with a
4507 location_t.
4508 (store_parm_decls): Use DECL_SOURCE_LOCATION.
4509 * c-parse.in (label): Adjust define_label call.
4510
04df6730
NB
45112003-07-01 Neil Booth <neil@daikokuya.co.uk>
4512
4513 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
4514 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
4515 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
4516 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
4517 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
4518
6cf9ac28
AJ
45192003-07-01 Andreas Jaeger <aj@suse.de>
4520
4521 * final.c: Convert prototypes to ISO C90.
4522 * flow.c: Likewise.
4523 * flags.h: Likewise.
4524 * gcov-io.c: Likewise.
4525 * gcov-io.h: Likewise.
4526
2a868fac 4527See ChangeLog.9 for earlier changes.
This page took 0.674027 seconds and 5 git commands to generate.