Commit Graph

31734 Commits

Author SHA1 Message Date
Benjamin Kosnik
63e749a813 strstream.h: Replace with...
2000-11-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* include/backward/strstream.h: Replace with...
	* include/bits/std_strstream.h: ...this. Move.
	* include/backward/complex.h: Remove SGIisms.
	* include/backward/streambuf.h: Same.
	* include/backward/stream.h: Same.
	* include/backward/ostream.h: Same.
	* include/backward/istream.h: Same.
	* include/backward/iostream.h: Same.
	* include/backward/iomanip.h: Same.
	* include/backward/fstream.h: Same.
	* libsupc++/new.h: Add using declarations for bad_alloc,
	nothrow_t, and nothrow, move to ...
	* include/backward/new.h: ...here.

From-SVN: r37631
2000-11-21 23:44:50 +00:00
Mark Mitchell
f45d23308a * porting.texi: New file.
From-SVN: r37630
2000-11-21 22:59:13 +00:00
Neil Booth
0736a307e3 * Put changelog in wrong ChangeLog.
From-SVN: r37629
2000-11-21 22:54:57 +00:00
Branko Cibej
b6bcb20e17 os_defines.h: Define _XOPEN_SOURCE...
2000-11-21  Branko Cibej  <brankoe@xbc.nu>

        * config/os/solaris/solaris2.6/bits/os_defines.h: Define
        _XOPEN_SOURCE, _LARGEFILE64_SOURCE, __EXTENSIONS__, __off_t,
        __off64_t and __ssize_t.
	* config/os/solaris/solaris2.5/bits/os_defines.h: For now, use the
	same configuration as above.

From-SVN: r37628
2000-11-21 21:58:28 +00:00
Diego Novillo
d1cc928a7b gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as visited before visiting it.
2000-11-21  Diego Novillo  <dnovillo@redhat.com>

	* gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
	visited before visiting it.

From-SVN: r37627
2000-11-21 16:00:20 -05:00
Benjamin Kosnik
819004bbd0 acinclude.m4 (AC_LC_MESSAGES): Check for locale.h.
2000-11-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (AC_LC_MESSAGES): Check for locale.h.
	* aclocal.m4: Regenerate.
	* configure: Renerate.

From-SVN: r37626
2000-11-21 20:53:36 +00:00
Nick Clifton
70f24e495c Allow ARM configurations with --with-cpu=arm9 or --with-cpu=arm9tdmi or...
Allow ARM configurations with --with-cpu=arm9 or --with-cpu=arm9tdmi or
--with-cpu=strongarm110 or --with-cpu=strongarm1100

From-SVN: r37625
2000-11-21 19:34:14 +00:00
Mark Mitchell
c132c0e3c7 * gcc_build: Remove code to put information in a log file.
From-SVN: r37624
2000-11-21 19:16:45 +00:00
Richard Henderson
3fe30ff6f7 c-common.c (c_unsafe_for_reeval): New function.
* c-common.c (c_unsafe_for_reeval): New function.
        (add_c_tree_codes): Register it.
        * c-common.h: Declare it.
        * tree.c (lang_unsafe_for_reeval): New hook.
        (unsafe_for_reeval): Call it.
        * tree.h: Declare it.

From-SVN: r37623
2000-11-21 11:09:38 -08:00
Richard Henderson
3adbce3d89 i386.c (i386_simplify_dwarf_addr): Simplify @GOT references as well.
* config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
        references as well.

From-SVN: r37622
2000-11-21 11:05:59 -08:00
Neil Booth
65aa827646 * gcc.dg/cpp/integrated1.c: Remove.
From-SVN: r37621
2000-11-21 18:30:13 +00:00
Neil Booth
3fc786a446 * do_includes: Revert to using cpp_read_file.
From-SVN: r37620
2000-11-21 18:27:49 +00:00
Bernd Schmidt
847dde9555 Fix consec_sets_giv bug.
From-SVN: r37619
2000-11-21 18:24:42 +00:00
Jakub Jelinek
ce79b0cace * gcc.c-torture/execute/20001121-1.c: New test.
From-SVN: r37618
2000-11-21 18:32:08 +01:00
Bernd Schmidt
52e12ad06f More accurate insn class attributes
From-SVN: r37617
2000-11-21 17:29:49 +00:00
Kaveh R. Ghazi
b3e2d1eb53 tradcpp.c (output_line_command): Mark system headers as such in `line' commands.
* tradcpp.c (output_line_command): Mark system headers as such in
	`line' commands.

From-SVN: r37616
2000-11-21 15:55:08 +00:00
Jakub Jelinek
0faf814fba configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc support in as as well.
* configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
	support in as as well.
	* configure: Regenerate.

From-SVN: r37615
2000-11-21 13:50:52 +01:00
Bernd Schmidt
bf6fc7b255 Update my entries in the MAINTAINERS file.
From-SVN: r37614
2000-11-21 11:40:05 +00:00
Andreas Jaeger
cfe83a543f g77.texi (Floating-point Exception Handling): Use feenableexcept in example.
* g77.texi (Floating-point Exception Handling): Use feenableexcept
	in example.
	(Floating-point precision): Change to match above change.

From-SVN: r37613
2000-11-21 12:12:22 +01:00
Hans-Peter Nilsson
cf183ac2bd cplus-dem.c (cplus_demangle): Fix formatting.
* cplus-dem.c (cplus_demangle): Fix formatting.
	(grow_vect): Ditto.
	(ada_demangle): Ditto.
	(internal_cplus_demangle): Ditto.
	(mop_up): Ditto.

	* cplus-dem.c (main): Handle java_demangling.

From-SVN: r37612
2000-11-21 10:47:30 +00:00
Richard Henderson
a5ccb99da9 New test.
From-SVN: r37611
2000-11-21 01:09:45 -08:00
Jeff Law
325dd7fd88 Daily bump.
From-SVN: r37610
2000-11-21 01:45:08 -07:00
Ovidiu Predescu
fa1996f36e Added.
From-SVN: r37609
2000-11-21 08:32:12 +00:00
Neil Booth
51073b1c46 New test.
From-SVN: r37608
2000-11-20 23:41:32 -08:00
Richard Henderson
3aac38d70c parse.y (yyparse_1): Rename the parser entry point.
* cp/parse.y (yyparse_1): Rename the parser entry point.

        * c-lex.c (orig_filename): New variable.
        (init_c_lex): Set it.  Move call to cpp_start_read ...
        (yyparse): ... here.  New function.
        * c-parse.in (yyparse_1): Rename the parser entry point.
        * c-tree.h: Declare it.

From-SVN: r37607
2000-11-20 23:39:52 -08:00
Benjamin Kosnik
66bc5940f1 mkcheck.in (explanation): Don't paste output of passing compiles into log file.
2000-11-20  Benjamin Kosnik  <bkoz@redhat.com>

	* mkcheck.in (explanation): Don't paste output of passing compiles
	into log file. Use -static. Get version info.

	* testsuite/23_containers/vector_ctor.cc (test02): Fix thinko.

From-SVN: r37606
2000-11-21 07:32:03 +00:00
Jakub Jelinek
6b16805ede expr.c (do_compare_and_jump): If op0 was replaced by promoted integer constant, use type of op1 for comparison.
* expr.c (do_compare_and_jump): If op0 was replaced by promoted
	integer constant, use type of op1 for comparison.

	* g++.old-deja/g++.other/inline17.C: New test.

From-SVN: r37605
2000-11-21 07:55:42 +01:00
Benjamin Kosnik
cd9c4fee8e mkcheck.in (explanation): Don't paste output of passing compiles into log file.
2000-11-20  Benjamin Kosnik  <bkoz@redhat.com>

	* mkcheck.in (explanation): Don't paste output of passing compiles
	into log file.

	* testsuite/23_containers/vector_ctor.cc (test02): Fix thinko.

From-SVN: r37604
2000-11-21 06:17:15 +00:00
Alex Samuel
beac9b932c mangle.c (write_name): Use <unscoped-name> for names directly in function scope.
* mangle.c (write_name): Use <unscoped-name> for names directly in
	function scope.
	(write_unscoped_name): Accept names directly in function scope.

From-SVN: r37603
2000-11-21 04:38:08 +00:00
Stan Shebs
5d81021ea1 * POTFILES.in: Add config/rs6000/xm-darwin.h.
From-SVN: r37602
2000-11-21 03:04:44 +00:00
Stan Shebs
18922061f5 xm-darwin.h: New file, Darwin host definitions.
* config/rs6000/xm-darwin.h: New file, Darwin host definitions.
        * config/rs6000/x-darwin: New file, Darwin host fragment.
        * config.gcc (powerpc-*-darwin*): New host.
        * system.h (HAVE_DESIGNATED_INITIALIZERS):  Allow this to be
        overridden by a config file.

From-SVN: r37601
2000-11-21 03:02:09 +00:00
Gabriel Dos Reis
b555ebaa9e std_complex.h (complex<double>): Constructor complex<double>::complex(const complex<float>&) is not explicit...
2000-11-21  Gabriel Dos Reis  <gdr@codesourcery.com>

	* include/bits/std_complex.h (complex<double>): Constructor
	complex<double>::complex(const complex<float>&) is not explicit;
	since it is a promotion.
	(complex<long double>): Constructors taking complex<float> and
	complex<double> are not explicit.

From-SVN: r37599
2000-11-21 00:08:02 +00:00
Donald Lindsay
b5ecf629d5 *** empty log message ***
From-SVN: r37598
2000-11-21 00:05:05 +00:00
Neil Booth
e6afac9494 paste2.c: Update test.
* gcc.dg/cpp/paste2.c: Update test.
        * objc/execute/paste.m: New test.

From-SVN: r37597
2000-11-21 00:00:50 +00:00
Neil Booth
d63eefbf11 cppmacro.c (paste_tokens): Rename from paste_payloads.
* cppmacro.c (paste_tokens): Rename from paste_payloads.
        Change token type after pasting spellings.
        (paste_all_tokens): Use it.

From-SVN: r37596
2000-11-20 23:59:26 +00:00
Tom Tromey
1535cc88f2 jv-scan.c (help): Document --complexity.
* jv-scan.c (help): Document --complexity.
	(options): Added --complexity.
	(flag_complexity): New global.
	(main): Call `report'.
	* parse-scan.y (complexity): New global.
	(if_then_statement, if_then_else_statement,
	if_then_else_statement_nsi, switch_block_statement_group,
	while_expression, do_statement, for_begin, continue_statement,
	throw_statement, catch_clause, finally, method_invocation,
	conditional_and_expression, conditional_or_expression,
	conditional_expression): Update complexity.
	(reset_report): Reset complexity.
	(report): New function.

From-SVN: r37595
2000-11-20 22:56:14 +00:00
Tom Tromey
d828bc4251 lex.c (yylex): Added STRICT_TK case.
* lex.c (yylex): Added STRICT_TK case.
	* parse.y (STRICT_TK): Added.
	* parse-scan.y (STRICT_TK): Added.
	* Make-lang.in ($(srcdir)/java/keyword.h): Added missing `\' and
	`;'.  Use 4, not 3, with -k option.  Correctly rename resulting
	file.
	* keyword.h: Rebuilt.
	* keyword.gperf (strictfp): Added.

From-SVN: r37594
2000-11-20 22:37:22 +00:00
Tom Tromey
4e7842a01e lex.c (yylex): Recognize floating point constants with leading 0.
* lex.c (yylex): Recognize floating point constants with leading
	0.

From-SVN: r37593
2000-11-20 22:32:40 +00:00
Richard Henderson
21bc13c936 dwarf.h (FMT_CODE): Adjust argument order; fix mapping to dwarf_subscr_data_formats bits.
* dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
        dwarf_subscr_data_formats bits.
        * dwarfout.c (simple_type_size_in_bits): Handle a type with
        no computed size as size zero.
        (field_byte_offset): Likewise.
        (subscript_data_attribute): Handle a range with no upper bound.

From-SVN: r37592
2000-11-20 13:40:30 -08:00
Benjamin Kosnik
5e90dd7193 std_complex.h: Tweaks, include cmath for abs overloads.
2000-11-20  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/std_complex.h: Tweaks, include cmath for abs overloads.
	* src/complex.cc: Remove cmath include, formatting tweaks, remove
	dead code.
	* include/c/bits/std_cmath.h: Formatting tweaks.
	* testsuite/26_numerics/complex_value.cc: New file, for catching
	bits gleaned from libstdc++/106.

	* testsuite/23_containers/vector_ctor.cc (test02): Add test from
	libstdc++/102.

From-SVN: r37591
2000-11-20 21:13:45 +00:00
Kaveh R. Ghazi
250333d0e0 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
From-SVN: r37590
2000-11-20 21:09:25 +00:00
Joseph Myers
1d7ff272c7 c-typeck.c (build_conditional_expr): When merging type qualifiers for conditional expressions between a pointer and...
* c-typeck.c (build_conditional_expr): When merging type
	qualifiers for conditional expressions between a pointer and a
	pointer to a void type, merge the qualifiers on the target types
	rather than the pointer type.  Remove obsolete conditioned out
	code.

testsuite:
	* gcc.dg/c99-condexpr-1.c: New test.

From-SVN: r37589
2000-11-20 19:06:19 +00:00
Neil Booth
029a4f4dea * gcc.dg/cpp/macsyntx.c: Use correct command line option.
From-SVN: r37588
2000-11-20 18:28:43 +00:00
Neil Booth
dd07b88447 c-lang.c (lang_init_options): Update call to cpp_reader_init.
* c-lang.c (lang_init_options): Update call to
	cpp_reader_init.
	* cppmain.c (main): Similarly.
	* fix-header.c (read_scan_file): Similarly.
	* cp/lex.c (lang_init_options): Similarly.
	* objc/objc-act.c (lang_init_options): Similarly.
	* cppexp.c (parse_number): Only warn for unextended C89.
	* cppinit.c (set_lang): New function.
	(cpp_reader_init): Take a LANG argument and pass it to set_lang.
	(COMMAND_LINE_OPTIONS): New option std=c++98.
	(cpp_handle_option): Use set_lang.
	* cpplib.h (enum_c_lang): New enumeration.  Update comments.

From-SVN: r37587
2000-11-20 18:27:32 +00:00
Tom Tromey
4de5a4d99a Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (core_java_source_files): Added new files.
	* java/lang/reflect/ReflectPermission.java: New class.
	* java/io/FileFilter.java: From Classpath
	* java/io/FilePermission.java: From Classpath.

From-SVN: r37586
2000-11-20 18:25:41 +00:00
Nathan Sidwell
447306fa90 lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
cp:
	* lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
	* parse.y (extdef): Add EXPORT reduction.
	* spew.c (yylex): Don't skip export here.
testsuite:
	* g++.old-deja/g++.pt/export1.C: New test.

From-SVN: r37585
2000-11-20 16:13:47 +00:00
Jakub Jelinek
462ef1e150 * gcc.dg/20001117-1.c: New test.
From-SVN: r37584
2000-11-20 16:22:40 +01:00
William Cohen
8d50dfb831 Correction so -fchech-memory-usage only flushes hard registers to temp memory location.
Correction so -fchech-memory-usage only flushes hard registers to temp
memory location.  Values in psuedo registers and memory shouldn't be
affected.

From-SVN: r37583
2000-11-20 14:23:42 +00:00
Bernd Schmidt
bd6758592b Fix sh problems at -O0
From-SVN: r37582
2000-11-20 14:17:59 +00:00
Jeff Law
badc2279d9 Daily bump.
From-SVN: r37581
2000-11-20 01:45:12 -07:00