Nathan Sidwell [Mon, 21 Apr 2003 19:48:10 +0000 (19:48 +0000)]
Break out coverage routines to new file.
* Makefile.in (COVERAGE_H): New variable
(C_OBJS): Add coverage.o
(coverage.o): New target.
(profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
dependencies.
(GTFILES): Adjust.
(gt-coverage.h): New target.
(gt-profile.h): Remove.
* profile.h: Remove. Move to ...
* coverage.h: ... here. New. #include gcov-io.h.
* gcov-io.h: Move function definitions to ...
* gcov-io.c: ... here. New.
* profile.c: Move coverage routines to coverage.c.
(instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
end_branch_prob): Adjust.
* coverage.c: New. Coverage routines from profile.c
(coverage_counter_ref, coverage_init, coverage_finish,
coverage_end_function, coverage_begin_output,
coverage_counter_ref, get_coverage_counts): Define.
* gcov-dump.c, gcov.c: #include gcov-io.c.
* libgcov.c: Likewise. Adjust.
* loop-init.c: Don't #include profile.h
* tracer.c, predict.c, sched-ebb.c: Adjust #includes.
* rtl.h: Add coverage prototypes.
* toplev.c (compile_file): Init coverage, not branch_prob.
Always call coverage_finish.
(rest_of_compilation): Call coverage_end_function.
From-SVN: r65897
Janis Johnson [Mon, 21 Apr 2003 19:35:19 +0000 (19:35 +0000)]
rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
* config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
From-SVN: r65896
Matt Kraai [Mon, 21 Apr 2003 19:34:43 +0000 (19:34 +0000)]
rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
* config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
From-SVN: r65895
Neil Booth [Mon, 21 Apr 2003 19:21:59 +0000 (19:21 +0000)]
c-ppoutput.c (cb_include): Don't take a cpp_token.
* c-ppoutput.c (cb_include): Don't take a cpp_token.
* cppfiles.c: Don't undef strcmp.
(find_include_file): Don't take a cpp_token. Check for empty
file names.
(_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
(cpp_push_include): Simplify.
* cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
* cpplib.c (glue_header_name): Return the file name, not a cpp_token.
(parse_include): Similary. Don't check for zero-length filenames.
(do_include_common, do_pragma_dependency): Update accordingly.
* cpplib.h (struct cpp_callbacks): Change prototype of include.
From-SVN: r65894
Paolo Carlini [Mon, 21 Apr 2003 18:46:44 +0000 (20:46 +0200)]
sstream.tcc (pbackfail, overflow): Formatting fixes.
2003-04-21 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (pbackfail, overflow):
Formatting fixes.
From-SVN: r65893
Nathan Sidwell [Mon, 21 Apr 2003 18:43:10 +0000 (18:43 +0000)]
* MAINTAINERS (gcov): Add myself and Jan Hubicka.
From-SVN: r65892
Paolo Carlini [Mon, 21 Apr 2003 18:11:51 +0000 (20:11 +0200)]
std_streambuf.h (uflow()): It's used only by basic_stringbuf (i.e....
2003-04-21 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (uflow()): It's used only by
basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
therefore do not consider the _M_buf_unified == true case.
* include/std/std_streambuf.h (sgetc()): Restore __ret variable.
From-SVN: r65891
Richard Kenner [Mon, 21 Apr 2003 17:50:51 +0000 (17:50 +0000)]
expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p before clearing.
* expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
before clearing.
From-SVN: r65890
Mark Mitchell [Mon, 21 Apr 2003 15:20:39 +0000 (15:20 +0000)]
winnt.c (i386_pe_mark_dllimport): Make the new RTL have the same form as the old RTL.
* config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
have the same form as the old RTL.
From-SVN: r65885
Loren J. Rittle [Mon, 21 Apr 2003 13:37:48 +0000 (13:37 +0000)]
configure.in (_XOPEN_SOURCE): Bump to 600.
* libI77/configure.in (_XOPEN_SOURCE): Bump to 600.
* libI77/configure: Regenerate.
* libU77/configure.in (_XOPEN_SOURCE): Bump to 600.
* libU77/configure: Regenerate.
From-SVN: r65884
Andreas Jaeger [Mon, 21 Apr 2003 12:06:12 +0000 (14:06 +0200)]
* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
From-SVN: r65883
Nathan Sidwell [Mon, 21 Apr 2003 11:16:57 +0000 (11:16 +0000)]
re PR c++/9881 (What is an address constant expression?)
cp:
PR c++/9881
* typeck.c (build_unary_op): Fold all COMPONENT_REF addr
expressions. Reverts my 2002-08-08 patch.
* typeck.c (comp_ptr_ttypes_real): Swap final && operands for
cheaper early exit.
testsuite:
PR c++/9881
* g++.dg/init/addr-const1.C: New test.
* g++.dg/other/packed1.C: XFAIL on aligned architectures.
From-SVN: r65882
GCC Administrator [Mon, 21 Apr 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r65877
Scott Gilbertson [Sun, 20 Apr 2003 23:21:06 +0000 (23:21 +0000)]
Container.java (addImpl): Enable paint events if adding a lightweight to a heavyweight.
2003-04-20 Scott Gilbertson <scottg@mantatest.com>
* java/awt/Container.java (addImpl): Enable paint events if adding
a lightweight to a heavyweight.
(addNotify): Ensure that peer is created before
addNotifyContainerChildren.
(addNotifyContainerChildren): Enable paint events if a heavyweight
container contains a lightweight.
From-SVN: r65870
Chris Lattner [Sun, 20 Apr 2003 22:58:28 +0000 (22:58 +0000)]
c-common.h, [...]: Rename genrtl_decl_cleanup to genrtl_cleanup_stmt.
* c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
genrtl_cleanup_stmt. Correct comment at head of
genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
* stmt.c (struct nesting): Kill n_function_calls.
(expand_start_bindings): Don't set
thisblock->data.block.n_function_calls.
(expand_end_bindings): Compare function_call_count against 0.
(expand_cleanups): Kill DONT_DO argument; all callers passed
NULL_TREE. All callers updated to match.
Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
From-SVN: r65869
Tom Tromey [Sun, 20 Apr 2003 22:47:43 +0000 (22:47 +0000)]
BufferedReader.java, [...]: Imports from Classpath.
* java/io/BufferedReader.java, java/io/BufferedWriter.java,
java/io/DataInput.java, java/io/DataOutput.java: Imports from
Classpath.
From-SVN: r65868
Mohan Embar [Sun, 20 Apr 2003 22:45:02 +0000 (22:45 +0000)]
jcf-io.c (find_class): use DIR_SEPARATOR instead of '/' when computing java source filename
2003-04-20 Mohan Embar <gnustuff@thisiscool.com>
* jcf-io.c (find_class): use DIR_SEPARATOR instead of
'/' when computing java source filename
From-SVN: r65867
Zack Weinberg [Sun, 20 Apr 2003 22:43:59 +0000 (22:43 +0000)]
* varasm.c (struct deferred_constant, defer_addressed_constants_flag)
(defer_addressed_constants, output_deferred_addressed_constants): Kill.
(output_constant_def): Remove code predicated on
defer_addressed_constants_flag.
* output.h: Remove prototypes of deleted functions.
* c-typeck.c (constructor_subconstants_deferred): Kill.
(struct initializer_stack): Remove 'deferred' field.
(start_init): Remove all references to the above.
(finish_init): Likewise. Also remove never-executed call to
output_deferred_addressed_constants. Pull assignment to
defstr out of if expression.
From-SVN: r65865
Paolo Carlini [Sun, 20 Apr 2003 22:18:49 +0000 (00:18 +0200)]
howto.html ('LWG Issues'): Add issues 19, 90, 171, 231, 271.
2003-04-20 Paolo Carlini <pcarlini@unitus.it>
* docs/html/ext/howto.html ('LWG Issues'):
Add issues 19, 90, 171, 231, 271.
From-SVN: r65863
Neil Booth [Sun, 20 Apr 2003 19:02:53 +0000 (19:02 +0000)]
cpphash.h (NOTE_ESC_NL, [...]): Remove.
* cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
NOTE_NEWLINE): Remove.
* cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
to handle new form of line note type.
From-SVN: r65860
Zack Weinberg [Sun, 20 Apr 2003 18:20:39 +0000 (18:20 +0000)]
target.h (encode_section_info): Add new argument carrying the RTL to be modified by the hook.
* target.h (encode_section_info): Add new argument carrying
the RTL to be modified by the hook.
* varasm.c (make_decl_rtl, output_constant_def): Update calls
to encode_section_info.
(default_encode_section_info): Take and use RTL argument,
don't use TREE_CST_RTL or DECL_RTL.
* output.h: Update prototype of default_encode_section_info.
* config/darwin.h (ASM_DECLARE_OBJECT_NAME)
(ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
Update calls to encode_section_info.
* config/darwin.c, config/arm/arm.c, config/arm/pe.c
* config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
* config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
* config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
* config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
* config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
except for PE dllimport/dllexport. Update calls to
default_encode_section_info.
* config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
Update prototypes.
* doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
From-SVN: r65859
John David Anglin [Sun, 20 Apr 2003 17:18:03 +0000 (17:18 +0000)]
pa.md (movccfp): New expander.
PR/8705
* pa.md (movccfp): New expander.
(setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
Reverse fcmp conditions.
From-SVN: r65858
Paolo Carlini [Sun, 20 Apr 2003 13:54:45 +0000 (15:54 +0200)]
sstream.tcc (pbackfail): Remove redundant NULL pointer check from test involving _M_in_*.
2003-04-20 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (pbackfail): Remove redundant
NULL pointer check from test involving _M_in_*.
(overflow, seekoff, seekpos): Const qualify bool variables.
* include/std/std_sstream.h (underflow): Remove redundant
NULL pointer check from test involving _M_in_*.
(_M_really_sync): Const qualify bool variables.
* src/fstream.cc (_M_underflow_common): Remove redundant
NULL pointer check from test involving _M_in_*, const qualify
bool variables.
* include/std/std_streambuf.h (sgetc): Remove redundant
variable.
From-SVN: r65853
Marek Michalkiewicz [Sun, 20 Apr 2003 13:24:06 +0000 (15:24 +0200)]
avr.md (*cmpqi_sign_extend): Handle negative values of operand 1 correctly.
* config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
of operand 1 correctly.
From-SVN: r65850
Nathan Sidwell [Sun, 20 Apr 2003 11:57:38 +0000 (11:57 +0000)]
cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
.: * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
* gcov.c (output_lines): Don't be so fussy about going past EOF.
cp:
* cp/decl2.c (start_static_storage_duration_function): Take count
arg, don't check if it wraps round.
(generate_ctor_or_dtor_function): Add locus arg, use it.
(generate_ctor_and_dtor_functions_for_priority): Data arg is a
locus.
(finish_file): Set line numbers to past EOF for synthesized
functions.
From-SVN: r65847
Nathan Sidwell [Sun, 20 Apr 2003 11:48:36 +0000 (11:48 +0000)]
re PR c++/10405 (Segfault in setup_class_bindings)
cp:
PR c++/10405
* search.c (lookup_field_1): Final scan goes backwards for
types, forwards for non-types.
testsuite:
PR c++/10405
* g++.dg/lookup/struct-hack1.C: New test.
From-SVN: r65846
Neil Booth [Sun, 20 Apr 2003 07:29:23 +0000 (07:29 +0000)]
Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
* Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
(cppcharset.o): New target.
* c-lex.c (is_extended_char): Move to cppcharset.c.
(utf8_extend_token): Delete.
* cppcharset.c: New file.
* cpphash.h (_cpp_valid_ucn): New.
* cpplex.c (lex_identifier): Update prototype.
(continues_identifier_p): Rename forms_identifier_p. Handle UCN
escapes.
(maybe_read_ucs): Rename maybe_read_ucn. Update to use code
in cppcharset.c.
(lex_number, lex_identifier, cpp_parse_escape): Update.
(_cpp_lex_direct): Update to handle UCNs.
(cpp_avoid_paste): Don't paste to form a UCN.
testsuite:
* ucs.c: Update diagnostic messages.
From-SVN: r65845
Roger Sayle [Sun, 20 Apr 2003 03:11:14 +0000 (03:11 +0000)]
builtins.c (expand_builtin): Don't expand a pure or const built-in function if...
* builtins.c (expand_builtin): Don't expand a pure or const
built-in function if the result will be ignored and none of
its arguments are volatile.
From-SVN: r65843
GCC Administrator [Sun, 20 Apr 2003 00:17:05 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r65841
Kean Johnston [Sat, 19 Apr 2003 21:30:21 +0000 (21:30 +0000)]
Add my entry
From-SVN: r65834
Kean Johnston [Sat, 19 Apr 2003 21:24:12 +0000 (21:24 +0000)]
ChangeLog entry for part of the SCO patches.
From-SVN: r65833
Kean Johnston [Sat, 19 Apr 2003 21:23:20 +0000 (21:23 +0000)]
Part 2 of the SCO port update. This is everything I have approval for.
There are two outstanding patches I await approval to check in.
From-SVN: r65832
Tom Tromey [Sat, 19 Apr 2003 21:17:50 +0000 (21:17 +0000)]
Date.java, [...]: New versions from Classpath.
* java/sql/Date.java, java/sql/DriverManager.java,
java/sql/Time.java, java/sql/Timestamp.java: New versions from
Classpath.
From-SVN: r65831
Kean Johnston [Sat, 19 Apr 2003 21:10:08 +0000 (21:10 +0000)]
Part 1 of the checkins for the SCO port update.
Part 1 of the checkins for the SCO port update. This is the fixinclude
stuff.
From-SVN: r65830
Tom Tromey [Sat, 19 Apr 2003 20:54:55 +0000 (20:54 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added new files.
* java/security/AlgorithmParameterGenerator.java,
java/security/AlgorithmParameters.java, java/security/Engine.java,
java/security/Identity.java, java/security/IdentityScope.java,
java/security/KeyFactory.java,
java/security/KeyPairGenerator.java, java/security/KeyStore.java,
java/security/MessageDigest.java, java/security/Policy.java,
java/security/ProtectionDomain.java,
java/security/SecureRandom.java, java/security/Security.java,
java/security/Signature.java, java/security/SignatureSpi.java,
java/security/SignedObject.java, java/security/Signer.java,
java/security/interfaces/RSAMultiPrimePrivateCrtKey.java,
java/security/spec/PSSParameterSpec.java,
java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java,
java/security/spec/RSAOtherPrimeInfo.java: New versions from
Classpath.
From-SVN: r65829
Scott Gilbertson [Sat, 19 Apr 2003 19:54:39 +0000 (19:54 +0000)]
XGraphics.java (XGraphics): Use new GC.create.
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphics.java (XGraphics): Use new GC.create.
(dispose): Null metrics.
* gnu/awt/xlib/XToolkit.java (sync): Implement.
* gnu/gcj/xlib/Clip.java (dispose): Change name of native from
finalize.
(finalize): Call dispose.
* gnu/gcj/xlib/Drawable.java (gcCache): New field.
(gcCachedCount): New field.
(finalize): New method.
(putGCInCache): New method.
(getGCFromCache): New method.
* gnu/gcj/xlib/GC.java (GC): Make protected.
(clone): Get new GC from cache if possible.
(create): New static method.
(dispose): Save old GC in cache.
* gnu/gcj/xlib/natClip.cc (dispose): Check for null before
deleting.
* gnu/gcj/xlib/natGC.cc (initStructure): Call XCreateGC only if gc
is null.
* gnu/gcj/xlib/Pixmap.java (Pixmap): Use new GC.create.
* java/awt/Container.java (visitChild): Dispose gfx2 when
finished.
From-SVN: r65827
Jerry Quinn [Sat, 19 Apr 2003 19:26:41 +0000 (19:26 +0000)]
BigInteger.java (probablePrime): New.
2003-04-19 Jerry Quinn <jlquinn@optonline.net>
* java/math/BigInteger.java (probablePrime): New.
* java/math/BigDecimal.java (unscaledValue): New.
From-SVN: r65825
Ranjit Mathew [Sat, 19 Apr 2003 19:08:49 +0000 (19:08 +0000)]
File.java (getAbsolutePath): On Windows, take care of paths like "C:", "G:foo\bar", etc.
2003-04-19 Ranjit Mathew <rmathew@hotmail.com>
* java/io/File.java (getAbsolutePath): On Windows, take care
of paths like "C:", "G:foo\bar", etc.
(getName): Make it work correctly on Windows.
(getParent): Make it work correctly on Windows. For UNIX,
fix bug that causes "/" to be returned as the parent of "/",
instead of null as returned by Sun's JRE.
* java/io/natFileWin32.cc: Change copyright owner to FSF.
From-SVN: r65823
Matt Kraai [Sat, 19 Apr 2003 18:57:23 +0000 (18:57 +0000)]
Makefile.in: Change $(target-alias) to $(target_alias) in comment.
* Makefile.in: Change $(target-alias) to $(target_alias) in
comment.
From-SVN: r65822
Scott Gilbertson [Sat, 19 Apr 2003 17:59:40 +0000 (17:59 +0000)]
XGraphicsConfiguration.java (FontMetricsCache): New inner class.
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphicsConfiguration.java (FontMetricsCache): New
inner class.
(CACHE_SIZE_PER_DISPLAY): New field
(fontMetricsCache): New field
(getXFontMetrics): Use fontMetricsCache to cache fonts. Prefer
loading ISO10646-1 fonts.
From-SVN: r65821
Scott Gilbertson [Sat, 19 Apr 2003 17:52:15 +0000 (17:52 +0000)]
natFont.cc (getStringWidth): Support 16-bit characters.
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* libjava/gnu/gcj/xlib/natFont.cc (getStringWidth): Support 16-bit
characters.
* libjava/gnu/gcj/xlib/natGC.cc (drawString): Support 16-bit
characters.
From-SVN: r65820
Neil Booth [Sat, 19 Apr 2003 16:34:33 +0000 (16:34 +0000)]
cpphash.h (struct cpp_buffer): Remove backup_to.
* cpphash.h (struct cpp_buffer): Remove backup_to.
* cpplex.c (BACKUP, get_effective_char): Die.
(_cpp_skip_block_comment): Assume '*' is location on entry.
(continues_identifier_p): Respect -fno-dollars-in-identifiers.
(IF_NEXT_IS): Update.
(_cpp_lex_direct): Don't use backup_to; look ahead directly.
From-SVN: r65819
Matt Kraai [Sat, 19 Apr 2003 15:53:44 +0000 (15:53 +0000)]
README.Portability: Move to a new section and obsolete K+R portability issues.
* README.Portability: Move to a new section and obsolete K+R
portability issues.
From-SVN: r65818
Jan Hubicka [Sat, 19 Apr 2003 12:57:36 +0000 (14:57 +0200)]
rtlanal.c (subreg_offset_representable_p): Fix call of subreg_lowpart.
* rtlanal.c (subreg_offset_representable_p): Fix call of
subreg_lowpart.
From-SVN: r65817
Neil Booth [Sat, 19 Apr 2003 11:59:44 +0000 (11:59 +0000)]
cpphash.h (struct cpp_reader): New member warned_dollar.
* cpphash.h (struct cpp_reader): New member warned_dollar.
* cpplex.c (continues_identifier_p): New function.
(parse_identifier, parse_number, parse_string): Rename lex_identifer,
lex_number and lex_string, and simplify.
(parse_slow, unescaped_terminator_p): Die.
(_cpp_lex_direct): Update.
From-SVN: r65816
Richard Kenner [Sat, 19 Apr 2003 11:57:59 +0000 (07:57 -0400)]
Install proper version.
From-SVN: r65815
Richard Kenner [Sat, 19 Apr 2003 11:56:13 +0000 (11:56 +0000)]
* calls.c (expand_call): Provide init for old_stack_pointer_delta.
From-SVN: r65814
Nathan Sidwell [Sat, 19 Apr 2003 11:43:31 +0000 (11:43 +0000)]
invoke.texi (-fprofile-arcs): Mention -lgcov, locking and fork behaviour.
* doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
fork behaviour.
From-SVN: r65813
Neil Booth [Sat, 19 Apr 2003 10:40:06 +0000 (10:40 +0000)]
* g++.dg/other/stdbool-if.C: Remove.
From-SVN: r65812
Neil Booth [Sat, 19 Apr 2003 10:04:47 +0000 (10:04 +0000)]
cppexp.c (eval_token): Permit true and false even if pedantic.
* cppexp.c (eval_token): Permit true and false even if pedantic.
testsuite:
* gcc.dg/cpp/truefalse.cpp: New test.
* gcc.dg/cpp/cpp.exp: Update.
From-SVN: r65811
Neil Booth [Sat, 19 Apr 2003 07:56:41 +0000 (07:56 +0000)]
* cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
From-SVN: r65810
Neil Booth [Sat, 19 Apr 2003 07:41:15 +0000 (07:41 +0000)]
* skip_whitespace: Rearrange to avoid stage1 ICE.
From-SVN: r65809
Neil Booth [Sat, 19 Apr 2003 00:22:51 +0000 (00:22 +0000)]
cppfiles.c (ENABLE_VALGRIND_CHECKING, [...]): Remove.
* cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
(struct include_file): Remove fefcnt, mapped members.
(open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
(read_include_file): Don't use mmap, terminate buffers in '\r'.
(purge_cache): Don't use munmap.
* cpphash.h (CPP_BUF_COLUMN): Update.
(lexer_state): Remove lexing_comment.
(struct _cpp_line_note): New.
(struct cpp_buffer): New members cur_note, notes_used, notes_cap,
next_line and need_line. Remove col_adjust and saved_flags.
(_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
_cpp_skip_block_comment, scan_out_logical_line): New.
(_cpp_init_mbchar): Remove.
* cppinit.c (init_library): Remove call to _cpp_init_mbchar.
(cpp_read_main_file): Set line to 1 earlier.
(post_options): -traditional-cpp doesn't want trigraphs.
* cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
(add_line_note, _cpp_clean_line, _cpp_process_line_notes,
_cpp_get_fresh_line): New.
(handle_newline, skip_escaped_newlines, trigraph_p,
continue_after_nul, _cpp_init_mbchar): Remove.
(get_effective_char): Update.
(_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
(skip_line_comment): Simplify.
(skip_whitespace, parse_identifier, parse_slow, parse_number,
parse_string): Update.
(cpp_lex_direct): Use clean lines and process line notes. Update.
(cpp_interpret_charconst): No MULTIBYTE_CHARS.
* cpplib.c (prepare_directive_trad): Call scan_out_logical_line
directly.
(_cpp_handle_directive): Don't set saved_flags.
(run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
cpp_undef, handle_assertion, cpp_push_buffer): Update.
(_cpp_pop_buffer): Free notes.
* cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
* cpppch.c (cpp_read_state): \n terminate buffer.
* cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
(copy_comment): Use _cpp_skip_block_comment.
(skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
Simplify.
(_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
save_replacement_text): Update.
(scan_out_logical_line): Update to use clean lines and process
line notes.
* fix-header.c (read_scan_file): Update.
testsuite:
* gcc.dg/cpp/_Pragma4.c: Remove stray space.
* gcc.dg/cpp/trad/escaped-eof.c: Correct line number.
From-SVN: r65808
GCC Administrator [Sat, 19 Apr 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r65807
Richard Kenner [Fri, 18 Apr 2003 23:03:19 +0000 (19:03 -0400)]
Add missing ChangeLog from 3/19/03
From-SVN: r65800
Douglas B Rupp [Fri, 18 Apr 2003 22:43:28 +0000 (18:43 -0400)]
unwind-dw2-fde.c (__register_frame_info_bases): Check for null begin parameter (as well as pointer to null).
* unwind-dw2-fde.c (__register_frame_info_bases): Check for
null begin parameter (as well as pointer to null).
(__deregister_frame_info_bases): Likewise.
From-SVN: r65799
Richard Kenner [Fri, 18 Apr 2003 22:39:23 +0000 (22:39 +0000)]
function.c (purge_addressof_1): For ADDRESSOF...
* function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
hard or virtual register and copy into pseudo if replacement fails.
From-SVN: r65798
Richard Kenner [Fri, 18 Apr 2003 22:34:20 +0000 (22:34 +0000)]
* cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.
From-SVN: r65797
Richard Kenner [Fri, 18 Apr 2003 22:27:18 +0000 (22:27 +0000)]
* expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
From-SVN: r65796
Olivier Hainque [Fri, 18 Apr 2003 22:20:55 +0000 (00:20 +0200)]
calls.c (expand_call): Move special case for constructor calls to right place.
* calls.c (expand_call): Move special case for constructor calls
to right place. Ensures constructor calls used to initialize
arguments get a clean outgoing argument block for themselves.
Move check for stack deallocation completeness until after last
deallocation. Add stack_pointer_delta to set of state
variables saved and restored along with current stack_level.
From-SVN: r65795
Olivier Hainque [Fri, 18 Apr 2003 22:11:57 +0000 (00:11 +0200)]
integrate.c (expand_inline_function): Ensure non-const actuals don't end up const in the caller's flow after...
* integrate.c (expand_inline_function): Ensure non-const actuals
don't end up const in the caller's flow after conversion to possibly
const formal type.
From-SVN: r65794
Vincent Celier [Fri, 18 Apr 2003 22:05:48 +0000 (22:05 +0000)]
dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR and *_DIV_EXPR as TRUNC_*_EXPR.
* dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
and *_DIV_EXPR as TRUNC_*_EXPR.
From-SVN: r65793
Mark Mitchell [Fri, 18 Apr 2003 22:04:12 +0000 (22:04 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables.
* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
for orphaned jump tables.
From-SVN: r65792
Mark Mitchell [Fri, 18 Apr 2003 22:04:10 +0000 (22:04 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables.
* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
for orphaned jump tables.
[[Split portion of a mixed commit.]]
From-SVN: r65791.2
Kazu Hirata [Fri, 18 Apr 2003 20:30:24 +0000 (20:30 +0000)]
* reload1.c: Revert my previous patch on 2002-04-17.
From-SVN: r65790
Gerald Pfeifer [Fri, 18 Apr 2003 19:49:17 +0000 (21:49 +0200)]
contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
* doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
Add Segher Boessenkool.
From-SVN: r65788
Alexander Sotirov [Fri, 18 Apr 2003 19:39:29 +0000 (19:39 +0000)]
re PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST nodes and breaks debugging dumps.)
PR c/9177
* c-decl.c (c_expand_body): Don't garbage collect the function
body if we are going to dump it later.
From-SVN: r65787
Gerald Pfeifer [Fri, 18 Apr 2003 18:26:20 +0000 (20:26 +0200)]
Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=
5000000.
* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=
5000000.
* Makefile.in: Regenerate.
From-SVN: r65786
Richard Henderson [Fri, 18 Apr 2003 18:16:40 +0000 (11:16 -0700)]
alpha.c (SYMBOL_FLAG_NEAR, [...]): Remove.
* config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
(alpha_end_function): Don't set them.
(decl_in_text_section): Remove.
(alpha_encode_section_info): Remove.
(samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
(direct_call_operand): Use SYMBOL_REF_DECL and compare actual
sections, rather than decl_in_text_section results.
From-SVN: r65785
Paolo Carlini [Fri, 18 Apr 2003 13:55:22 +0000 (15:55 +0200)]
According to 5.9 para 2 (second bullet) for pointers p...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
Roger Sayle [Fri, 18 Apr 2003 13:30:26 +0000 (13:30 +0000)]
rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT and SIGN_EXTRACT.
* rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
and SIGN_EXTRACT.
From-SVN: r65782
Jakub Jelinek [Fri, 18 Apr 2003 12:32:36 +0000 (14:32 +0200)]
configure.in (powerpc64*-*-linux*): Remove.
* configure.in (powerpc64*-*-linux*): Remove.
* configure: Rebuilt.
libffi/
* include/ffi.h.in (POWERPC64): Define if 64-bit.
(enum ffi_abi): Add FFI_LINUX64 on POWERPC.
Make it the default on POWERPC64.
(FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
* configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
* configure: Rebuilt.
* src/powerpc/ffi.c (hidden): Define.
(ffi_prep_args_SYSV): Renamed from
ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
(NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
ASM_NEEDS_REGISTERS64): New.
(ffi_prep_args64): New function.
(ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
(ffi_call): Likewise.
(ffi_prep_closure): Likewise.
(flush_icache): Surround by #ifndef POWERPC64.
(ffi_dblfl): New union type.
(ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
(ffi_closure_helper_LINUX64): New function.
* src/powerpc/ppc_closure.S: Surround whole file by #ifndef
__powerpc64__.
* src/powerpc/sysv.S: Likewise.
(ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
* src/powerpc/linux64.S: New file.
* src/powerpc/linux64_closure.S: New file.
* Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
src/powerpc/linux64_closure.S.
(TARGET_SRC_POWERPC): Likewise.
* src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
closure_test_fn3): Fix result printing on big-endian 64-bit
machines.
(main): Print tst2_arg instead of uninitialized tst2_result.
* src/ffitest.c (main): Hide what closure pointer really points to
from the compiler.
From-SVN: r65781
Loren J. Rittle [Fri, 18 Apr 2003 09:53:58 +0000 (09:53 +0000)]
porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
* docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* include/c_std/std_cstdlib.h: Use new macros.
* include/c_std/std_cstdio.h: Use new macros.
* include/c_std/std_cwchar.h: Use new macros.
From-SVN: r65778
Loren J. Rittle [Fri, 18 Apr 2003 06:58:42 +0000 (06:58 +0000)]
std_cmath.h (C99 FP capture): Only undefine said C99 FP macros, if actually captured.
* include/c_std/std_cmath.h (C99 FP capture): Only undefine said
C99 FP macros, if actually captured.
From-SVN: r65777
Eric Botcazou [Fri, 18 Apr 2003 06:45:15 +0000 (08:45 +0200)]
re PR rtl-optimization/7675 (ICE in fixup_var_refs_1)
PR optimization/7675
* c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
nested functions if they refer to declarations from parent functions.
* stmt.c (expand_decl): Don't put automatic variables in registers
if the DECL_NONLOCAL flag is set.
From-SVN: r65774
Benjamin Kosnik [Fri, 18 Apr 2003 03:46:44 +0000 (03:46 +0000)]
re PR libstdc++/9555 (ostream inserters fail to set badbit on exception)
2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/9555
* include/bits/ostream.tcc: Catch all exceptions for formatted
output, instead of std::exception and derivatives.
* include/bits/istream.tcc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
* testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
* testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
* testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
* testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
* testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
New.
From-SVN: r65770
Phil Edwards [Fri, 18 Apr 2003 02:41:06 +0000 (02:41 +0000)]
c++config: Minor cosmetic tweaks.
2003-04-17 Phil Edwards <pme@gcc.gnu.org>
* include/bits/c++config: Minor cosmetic tweaks.
From-SVN: r65768
Loren J. Rittle [Fri, 18 Apr 2003 02:03:52 +0000 (02:03 +0000)]
testsuite_flags.in (PCHFLAGS): Find PCH in new home.
* testsuite_flags.in (PCHFLAGS): Find PCH in new home.
* include/Makefile.am (pch_input): Find in ${target_builddir}.
(pch_output): Rename to...
(pch_output_builddir): ..this. Find in ${target_builddir}.
(pch_source): Tweak.
(pch_build): Key off a built file.
(pch_output rule): Rename to...
(pch_input rule): ...this. Produce ${pch_output_builddir}
instead of ${pch_output}.
(install-pch rule): Install ${pch_output_builddir}.
* include/Makefile.in: Regenerated.
From-SVN: r65767
Hans-Peter Nilsson [Fri, 18 Apr 2003 01:29:19 +0000 (01:29 +0000)]
gcse.c (compute_ld_motion_mems): For MEM destinations...
* gcse.c (compute_ld_motion_mems): For MEM destinations, only
consider those to be movable where the source matches
want_to_gcse_p.
(update_ld_motion_stores): In comment, refer to
compute_ld_motion_mems for validity of replacement.
From-SVN: r65766
GCC Administrator [Fri, 18 Apr 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r65765
Jan Hubicka [Thu, 17 Apr 2003 23:33:05 +0000 (01:33 +0200)]
gcov-dump.c (tag_summary): Remove max_sum
* gcov-dump.c (tag_summary): Remove max_sum
* gcov-io.h (gcov_summary, gcov_write_summary, gcov_read_summary): Kill
max_sum.
* libgcov.c (gcov_exit): Do one pass over the data. Make error message
more verbose.
From-SVN: r65758
Jan Hubicka [Thu, 17 Apr 2003 23:31:41 +0000 (01:31 +0200)]
emit-rtl.c (subreg_hard_regno): Check that register is representable.
* emit-rtl.c (subreg_hard_regno): Check that register is representable.
* reload.c (reload_inner_reg_of_subreg): When register is not
representable, reload the whole thing.
(find_reloads): Likewsie.
* rtlanal.c (subreg_representable_p): New function.
* profile.c (compute_branch_probabilities): Cleanup sanity checking;
allow negative probabilities for edges from the call to exit.
(branch_prob): Do not add fake edges for functions that may return twice
From-SVN: r65757
DJ Delorie [Thu, 17 Apr 2003 23:18:58 +0000 (19:18 -0400)]
toplev.c (target_options): Add value field.
* toplev.c (target_options): Add value field.
(set_target_switch): Handle target options with values.
* doc/tm.texi: Document how fixed vs variable target
options work.
* config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
config/m32r/m32r.h, config/m68hc11/m68hc11.h,
config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
config/rs6000/rs6000.h, config/rs6000/sysv4.h,
config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
Add value initializer to target options.
From-SVN: r65756
Loren J. Rittle [Thu, 17 Apr 2003 23:10:17 +0000 (23:10 +0000)]
* cpppch.c (cpp_valid_state): Unconditionally initialize nl.
From-SVN: r65755
Kazu Hirata [Thu, 17 Apr 2003 21:42:19 +0000 (21:42 +0000)]
reload1.c (move2add_last_cc0): New.
* reload1.c (move2add_last_cc0): New.
(reload_cse_move2add): Detect implicit sets.
(move2add_note_store): Notice a store into cc0.
From-SVN: r65754
Roger Sayle [Thu, 17 Apr 2003 21:27:37 +0000 (21:27 +0000)]
re PR c/10375 (Function-local external decls of builtins don't get attributes)
2003-04-17 Roger Sayle <roger@eyesopen.com>
PR c/10375
* c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
function attributes.
* cp/decl.c (duplicate_decls): Preserve "const", "noreturn"
and "nothrow" function attributes.
* f/com.c (duplicate_decls): Preserve "const" and "noreturn"
function attributes.
From-SVN: r65753
Phil Edwards [Thu, 17 Apr 2003 21:04:05 +0000 (21:04 +0000)]
Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all the previous bootstrap targets...
2003-04-17 Phil Edwards <pme@gcc.gnu.org>
* Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all the
previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap,
and restrap.
* Makefile.in: Regenerate.
From-SVN: r65752
Janis Johnson [Thu, 17 Apr 2003 20:05:06 +0000 (20:05 +0000)]
fix date in previous entry
From-SVN: r65749
Janis Johnson [Thu, 17 Apr 2003 20:04:32 +0000 (20:04 +0000)]
sourcebuild.texi (Test Suites): Document support for testing binary compatibility (moved from...
2003-04-17 Janis Johnson <janis187@us.ibm.com>
* doc/sourcebuild.texi (Test Suites): Document support for testing
binary compatibility (moved from testsuite/README.compat).
* testsuite/README.compat: Remove; content now in doc/sourcebuild.texi.
From-SVN: r65748
Richard Henderson [Thu, 17 Apr 2003 19:54:03 +0000 (12:54 -0700)]
* config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
From-SVN: r65747
Simon Law [Thu, 17 Apr 2003 16:36:06 +0000 (16:36 +0000)]
gpl.texi: Fix double-spacing after "MA" to match the one provided by the FSF.
* doc/include/gpl.texi: Fix double-spacing after "MA" to match
the one provided by the FSF.
From-SVN: r65745
Gerald Pfeifer [Thu, 17 Apr 2003 14:12:33 +0000 (16:12 +0200)]
install.texi (Binaries): Update URL and list of platforms provided by ftp.thewrittenword.com.
* doc/install.texi (Binaries): Update URL and list of platforms
provided by ftp.thewrittenword.com.
From-SVN: r65743
Kriang Lerdsuwanakij [Thu, 17 Apr 2003 14:05:54 +0000 (14:05 +0000)]
re PR c++/10347 (tree check ICE in dependent_type_p)
PR c++/10347
* pt.c (type_dependent_expression_p): Handle array new.
g++.dg/template/dependent-name1.C: New test.
From-SVN: r65742
J"orn Rennecke [Thu, 17 Apr 2003 11:46:56 +0000 (11:46 +0000)]
warn-1.c (tourist_guide): New array, contains a pointer to bar.
* gcc.dg/warn-1.c (tourist_guide): New array,
contains a pointer to bar.
From-SVN: r65741
Paolo Carlini [Thu, 17 Apr 2003 11:29:15 +0000 (13:29 +0200)]
std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg.
2003-04-17 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (setp): _M_out_lim, being
the end limit of used put area, is set equal to _M_out_beg.
From-SVN: r65740
Richard Henderson [Thu, 17 Apr 2003 11:24:04 +0000 (04:24 -0700)]
xtensa.c (xtensa_encode_section_info): Remove.
* config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
(call_insn_operand): Use SYMBOL_REF_LOCAL_P.
* config/xtensa/xtensa.md (call, call_value): Likewise.
From-SVN: r65739
Richard Henderson [Thu, 17 Apr 2003 11:16:30 +0000 (04:16 -0700)]
v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
* config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
(print_operand_address): Likewise.
(ep_memory_operand): Likewise.
(special_symbolref_operand): Likewise.
(v850_encode_data_area): Use SYMBOL_REF_FLAGS.
(v850_encode_section_info): Call default_encode_section_info.
(v850_strip_name_encoding): Remove.
* config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
(ASM_OUTPUT_LABELREF): Remove.
(ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
(SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
(TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
(ENCODED_NAME_P): Remove.
(SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
(SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
(SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
From-SVN: r65738
Richard Henderson [Thu, 17 Apr 2003 10:35:08 +0000 (03:35 -0700)]
stormy16.c (xstormy16_encode_section_info): Kill.
* config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
* config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
From-SVN: r65737
Richard Henderson [Thu, 17 Apr 2003 10:31:01 +0000 (03:31 -0700)]
sparc.c (sparc_encode_section_info): Remove.
* config/sparc/sparc.c (sparc_encode_section_info): Remove.
(data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
(text_segment_operand): Likewise.
From-SVN: r65736
Richard Henderson [Thu, 17 Apr 2003 10:24:59 +0000 (03:24 -0700)]
sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
* config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
(tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
(legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
(sh_encode_section_info): Remove.
(sh_strip_name_encoding): Remove.
* config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
(DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
(SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
(ASM_OUTPUT_LABELREF): Remove.
(ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
* config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
From-SVN: r65735