Commit Graph

31766 Commits

Author SHA1 Message Date
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
Joseph Myers
78d58962af c++config, [...]: Correct spelling of "deprecated".
* include/bits/c++config, include/bits/ios_base.h,
	include/bits/std_streambuf.h: Correct spelling of "deprecated".

From-SVN: r37580
2000-11-20 08:25:18 +00:00
Richard Henderson
52403abb36 * crtstuff.c (force_to_data): Use array size 1 not 0.
From-SVN: r37579
2000-11-19 17:48:49 -08:00
Richard Henderson
3df188844e dwarf2out.c (simple_type_size_in_bits): Handle a type with no computed size as size zero.
* dwarf2out.c (simple_type_size_in_bits): Handle a type with
        no computed size as size zero.
        (field_byte_offset): Likewise.

From-SVN: r37578
2000-11-19 17:25:59 -08:00
Joseph Myers
cfd1c7ea39 * config.gcc: Fix another typo.
From-SVN: r37577
2000-11-20 00:58:02 +00:00
Richard Henderson
a25f12118f c-decl.c (grokdeclarator): Support flexible array members.
* c-decl.c (grokdeclarator): Support flexible array members.
        Use open-ended ranges for these and zero-length arrays.
        * c-typeck.c (push_init_level): Validate the context of
        initialization of a zero-length array.
        * tree.c (int_fits_type_p): Be prepared for missing bounds.
        * varasm.c (array_size_for_constructor): New.
        (output_constructor): Use it for arrays of unspecified length.
        * extend.texi (Zero Length): Mention C99 flexible array members.
        Document initialization in a top-level struct as valid.

From-SVN: r37576
2000-11-19 15:40:37 -08:00
Mark Mitchell
2650255a57 decl.c (init_decl_processing): Correct name of pure virtual function under the new ABI.
* decl.c (init_decl_processing): Correct name of pure virtual
	function under the new ABI.
	* rtti.c (throw_bad_cast): Likewise, for bad cast function.
	(throw_bad_typeid): Likewise for bad typeid function.

	* libsupc++/exception_support.cc (__throw_bad_cast): Name it
	__cxa_bad_cast under the new ABI.
	(__throw_bad_typeid): Name it __cxa_bad_typeid under the new ABI.
	* libsupc++/pure.cc (__pure_virtual): Name it __cxa_pure_virtual
	under the new ABI.

From-SVN: r37575
2000-11-19 21:07:24 +00:00
Jason Merrill
b7ac5370c2 tweak
From-SVN: r37574
2000-11-19 14:59:18 -05:00
Joseph Myers
9e8fc4b8ef * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
From-SVN: r37573
2000-11-19 19:42:33 +00:00
Joseph Myers
65fa218589 alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in stdarg and varargs functions.
* alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
	stdarg and varargs functions.

From-SVN: r37572
2000-11-19 19:39:17 +00:00
Zack Weinberg
2e59adac88 gcc.c (process_command): Define 'j' variable when MODIFY_TARGET_NAME is defined.
* gcc.c (process_command): Define 'j' variable when
	MODIFY_TARGET_NAME is defined.

From-SVN: r37571
2000-11-19 19:30:13 +00:00
Richard Henderson
856442b6f3 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
From-SVN: r37570
2000-11-19 11:09:35 -08:00
Zack Weinberg
3d6f4d76bc texi2pod.pl: - Add real command line parsing.
* texi2pod.pl:
	  - Add real command line parsing.
	  - Support @ifset, @ifclear, @set, @value, -D switch.
	  - Support @sc.  Improve handling of @ref and friends.
	  - Discard @subsection, @need, @node lines.
	  - Un-nest font changes to match texinfo semantics.
	  - Handle @{ and @}.  Oops.
	  - Don't emit E<> directives inside verbatim blocks.

From-SVN: r37569
2000-11-19 19:02:50 +00:00
Matthias Klose
564b42a144 g77.texi (Floating-point precision): Adjust example to work with glibc (>= 2.1).
Sun Nov 19 17:29:22 2000  Matthias Klose  <doko@marvin.itso-berlin.de>

        * g77.texi (Floating-point precision): Adjust example
        to work with glibc (>= 2.1).

From-SVN: r37568
2000-11-19 18:57:05 +00:00
Franz Sirl
88c1e412e8 rs6000.c (rs6000_encode_section_info): Fix string length calculation and allocation.
2000-11-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
	calculation and allocation.

From-SVN: r37567
2000-11-19 18:49:32 +00:00
Matthias Klose
e868d863de g77.texi (Floating-point Exception Handling): Adjust example to work with glibc (>= 2.1).
Sat Nov 18 13:54:49 2000  Matthias Klose  <doko@cs.tu-berlin.de>

	* g77.texi (Floating-point Exception Handling): Adjust
	example to work with glibc (>= 2.1).

From-SVN: r37566
2000-11-19 16:19:17 +00:00
Kaveh R. Ghazi
ce1cc601f5 Warning fixes:
* builtins.c (c_getstr): Constify variable.
	* gmon-sol2.c (_mcleanup): Comment out #endif labels.
	* conflict.c (const_conflict_graph_arc): New typedef.
	(arc_hash, arc_eq): Avoid needlessly casting away const-ness.
	* cppmacro.c (builtin_macro): Likewise.
	* dwarf2out.c (output_comp_unit): Constify variable.
	* fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
	* protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
	* ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
	away const-ness.
	* tradcpp.c (rescan, do_line, macroexpand, macarg): Use
	ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
	* varasm.c (const_str_htab_hash, const_str_htab_eq,
	compare_constant_1, record_constant_1): Constify.

From-SVN: r37565
2000-11-19 13:15:51 +00:00
Kaveh R. Ghazi
7e9355c669 java-tree.h (cyclic_inheritance_report): Constify.
* java-tree.h (cyclic_inheritance_report): Constify.
	* parse.y (cyclic_inheritance_report): Likewise.

From-SVN: r37564
2000-11-19 12:56:21 +00:00
Kaveh R. Ghazi
8bcc782ce9 cplus-dem.c (grow_vect): Prototype.
* cplus-dem.c (grow_vect): Prototype.
	(ada_demangle): Cast the arg of ctype macros to unsigned char.

From-SVN: r37563
2000-11-19 12:46:33 +00:00