aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-06-10fstream.tcc (overflow): According to 27.5.2.4.5, overflow() returns ↵Paolo Carlini4-7/+126
not_eof(eof()). 2003-06-10 Paolo Carlini <pcarlini@unitus.it> * include/bits/fstream.tcc (overflow): According to 27.5.2.4.5, overflow() returns not_eof(eof()). * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New. * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto. 2003-06-10 Paolo Carlini <pcarlini@unitus.it> * include/bits/fstream.tcc (_M_underflow): Check overflow return value; tweak slightly. From-SVN: r67726
2003-06-10re PR c++/10968 (If member function implicitly instantiated, explicit ↵Jason Merrill2-0/+9
instantiation of class fails to instantiate it) PR c++/10968 * pt.c (mark_decl_instantiated): Set TREE_SYMBOL_REFERENCED. [[Split portion of a mixed commit.]] From-SVN: r67725.2
2003-06-10compat-common.h: New file.Janis Johnson48-623/+476
* gcc.dg/compat/compat-common.h: New file. * gcc.dg/compat/fp-struct-check.h: Improve debugging output. * gcc.dg/compat/fp-struct-test-by-value-x.h: Ditto. * gcc.dg/compat/fp-struct-test-by-value-y.h: Ditto. * gcc.dg/compat/scalar-by-value-1_main.c: Ditto. * gcc.dg/compat/scalar-by-value-1_x.c: Ditto. * gcc.dg/compat/scalar-by-value-1_y.c: Ditto. * gcc.dg/compat/scalar-by-value-2_main.c: Ditto. * gcc.dg/compat/scalar-by-value-2_x.c: Ditto. * gcc.dg/compat/scalar-by-value-2_y.c: Ditto. * gcc.dg/compat/scalar-return-1_main.c: Ditto. * gcc.dg/compat/scalar-return-1_x.c: Ditto. * gcc.dg/compat/scalar-return-1_y.c: Ditto. * gcc.dg/compat/scalar-return-2_main.c: Ditto. * gcc.dg/compat/scalar-return-2_x.c: Ditto. * gcc.dg/compat/scalar-return-2_y.c: Ditto. * gcc.dg/compat/small-struct-check.h: Ditto. * gcc.dg/compat/struct-by-value-2_main.c: Ditto. * gcc.dg/compat/struct-by-value-2_x.c: Ditto. * gcc.dg/compat/struct-by-value-2_y.c: Ditto. * gcc.dg/compat/struct-by-value-3_main.c: Ditto. * gcc.dg/compat/struct-by-value-3_x.c: Ditto. * gcc.dg/compat/struct-by-value-3_y.c: Ditto. * gcc.dg/compat/struct-by-value-4_main.c: Ditto. * gcc.dg/compat/struct-by-value-4_x.c: Ditto. * gcc.dg/compat/struct-by-value-4_y.c: Ditto. * gcc.dg/compat/struct-by-value-5_main.c: Ditto. * gcc.dg/compat/struct-by-value-5_x.c: Ditto. * gcc.dg/compat/struct-by-value-5_y.c: Ditto. * gcc.dg/compat/struct-by-value-6_main.c: Ditto. * gcc.dg/compat/struct-by-value-6_x.c: Ditto. * gcc.dg/compat/struct-by-value-6_y.c: Ditto. * gcc.dg/compat/struct-by-value-7_main.c: Ditto. * gcc.dg/compat/struct-by-value-7_x.c: Ditto. * gcc.dg/compat/struct-by-value-7_y.c: Ditto. * gcc.dg/compat/struct-by-value-8_main.c: Ditto. * gcc.dg/compat/struct-by-value-8_x.c: Ditto. * gcc.dg/compat/struct-by-value-8_y.c: Ditto. * gcc.dg/compat/struct-by-value-9_main.c: Ditto. * gcc.dg/compat/struct-by-value-9_x.c: Ditto. * gcc.dg/compat/struct-by-value-9_y.c: Ditto. * gcc.dg/compat/struct-return-2_main.c: Ditto. * gcc.dg/compat/struct-return-2_x.c: Ditto. * gcc.dg/compat/struct-return-2_y.c: Ditto. * gcc.dg/compat/struct-return-3_main.c: Ditto. * gcc.dg/compat/struct-return-3_x.c: Ditto. * gcc.dg/compat/struct-return-3_y.c: Ditto. From-SVN: r67724
2003-06-10re PR c++/10968 (If member function implicitly instantiated, explicit ↵Jason Merrill1-0/+5
instantiation of class fails to instantiate it) PR c++/10968 * pt.c (mark_decl_instantiated): Set TREE_SYMBOL_REFERENCED. [[Split portion of a mixed commit.]] From-SVN: r67723.2
2003-06-10* except.c (call_site_base): Mark with GTY.Geoffrey Keating2-1/+5
From-SVN: r67722
2003-06-10arm-proto.h: Convert to ISO C90 prototypes.Richard Earnshaw3-938/+467
* arm-proto.h: Convert to ISO C90 prototypes. * arm.c: Likewise. From-SVN: r67721
2003-06-10[multiple changes]Geoffrey Keating5-2/+36
2003-06-10 Andrew Pinski <pinskia@physics.uc.edu> * decl.c (start_cleanup_fn): Move static 'counter' out, mark with GTY. (start_cleanup_cnt): New. 2003-06-10 Geoffrey Keating <geoffk@apple.com> * g++.dg/pch/static-1.C: New file. * g++.dg/pch/static-1.Hs: New file. From-SVN: r67719
2003-06-10* sh.c (sh_output_mi_thunk): Call insn_locators_initialize.J"orn Rennecke2-0/+5
From-SVN: r67718
2003-06-10PrintStream.java: Merged version from classpath.Michael Koch2-144/+93
2003-06-10 Michael Koch <konqueror@gmx.de> * java/io/PrintStream.java: Merged version from classpath. (close): Removed sychronized keyword. This class is not garantied to be thread-safe. (write): Likewise. From-SVN: r67717
2003-06-10calls.c (expand_call): Convert structure_value_addr to Pmode if necessary.Steve Ellcey2-0/+10
* calls.c (expand_call): Convert structure_value_addr to Pmode if necessary. From-SVN: r67716
2003-06-10resource.c (write_resource_constructor): Use expand_expr to generate the ↵Andrew Haley3-3/+10
address of the label attached to a resource. 2003-06-10 Andrew Haley <aph@redhat.com> * resource.c (write_resource_constructor): Use expand_expr to generate the address of the label attached to a resource. * Make-lang.in (java/resource.o): Add expr.h From-SVN: r67714
2003-06-10langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.Andrew Haley7-5/+53
2003-05-21 Andrew Haley <aph@redhat.com> * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL. (lhd_decl_ok_for_sibcall): New. * langhooks.c (lhd_decl_ok_for_sibcall): New. * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field. * calls.c (expand_call): Check lang_hook before generating a sibcall. 2003-05-21 Andrew Haley <aph@redhat.com> * lang.c (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. (java_decl_ok_for_sibcall): New. From-SVN: r67713
2003-06-10stormy16.c (xstormy16_extra_constraint_p): Add Z, which matches (const_int ↵DJ Delorie3-7/+48
0) for addhi3. * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z, which matches (const_int 0) for addhi3. * config/stormy16/stormy16.md: Document known constraints. (addhi3): Handle adding zero. From-SVN: r67712
2003-06-10m32r.h (HARD_REGNO_RENAME_OK): New.Kazuhiro Inaoka4-0/+31
* config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New. * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New. * config/m32r/m32r-protos.h: Prototype it. From-SVN: r67711
2003-06-10* gcc.dg/asm-7.c: Adjust expected warning text.Richard Henderson2-2/+6
From-SVN: r67709
2003-06-10eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins common to rs6000 sysv targets.Janis Johnson4-0/+10
* config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins common to rs6000 sysv targets. * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto. * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto. From-SVN: r67708
2003-06-10Improve support for arm-wince-pe target:Nick Clifton6-3/+95
* config.gcc: Add arm-wince-pe target. * config/arm/pe.h (MULTILIB_DEFAULTS): Define. Add comment about default apcs26 support. * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32 multilib. (MULTILIB_DIRNAMES): Add 'apcs32'. * config/arm/t-wince-pe: New makefile fragment. * config/arm/wince-pe.h: New file. Overrides a few definitions in arm/pe.h From-SVN: r67705
2003-06-10Makefile.tpl: Fix stupid pasto.Nathanael Nerode3-5/+10
* Makefile.tpl: Fix stupid pasto. * Makefile.in: Regenerate. From-SVN: r67702
2003-06-10builtins.c (fold_builtin): Optimize cos(-x) as cos(x).Roger Sayle5-0/+249
* builtins.c (fold_builtin): Optimize cos(-x) as cos(x). * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x) when x is easily negated and f is sin, tan or atan. (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as sin(x) with flag_unsafe_math_optimizations. (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x). * gcc.dg/builtins-20.c: New test case. From-SVN: r67701
2003-06-10fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x is a floating ↵Roger Sayle2-3/+12
point type *and* we currently honor NaNs. * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x is a floating point type *and* we currently honor NaNs. (fold <NE_EXPR>): Likewise. From-SVN: r67700
2003-06-10gcc_release (build_diff): Properly use ${TAR} instead of hard-coded tar.Gerald Pfeifer2-2/+7
* gcc_release (build_diff): Properly use ${TAR} instead of hard-coded tar. From-SVN: r67699
2003-06-10re PR c++/11131 (Unrelated declaration removes inline flag from function)Mark Mitchell9-24/+62
PR c++/11131 * tree-inline.c (inlinable_function_p): Call the language-specific hook early. PR c++/11131 * cp-tree.h (template_for_substitution): Declare. * decl2.c (mark_used): Use it when figuring out whether or not a function is inline. * pt.c (template_for_substitution): Give it external linkage. * tree.c (cp_cannot_inline_tree_fn): Instantiate as early as possible. PR c++/11131 * g++.dg/opt/template1.C: New test. From-SVN: r67698
2003-06-09Patch from David Taylor.David Taylor2-4/+11
* config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over the f_res field. From-SVN: r67697
2003-06-10gcc-dg.exp (dg-test): Clear additional_files and additional_sources.Mark Mitchell2-0/+33
* lib/gcc-dg.exp (dg-test): Clear additional_files and additional_sources. From-SVN: r67696
2003-06-10natFont.cc (getAscent): Correctly access "ascent" field.Tom Tromey2-2/+8
* gnu/gcj/xlib/natFont.cc (getAscent): Correctly access "ascent" field. (getDescent): Likewise, for "descent". From-SVN: r67695
2003-06-10configure.in: Remove references to host_truncate_target.Nathanael Nerode4-141/+113
* configure.in: Remove references to host_truncate_target. * configure: Regenerate. * config.gcc: Remove references to truncate_target, host_truncate_target. From-SVN: r67694
2003-06-10Makefile.tpl: Remove bogus conditional.Nathanael Nerode3-805/+676
* Makefile.tpl: Remove bogus conditional. * Makefile.in: Regenerate. From-SVN: r67693
2003-06-10natFont.cc (getMaxAscent): adjusted return value.Scott Gilbertson2-4/+21
2003-06-09 Scott Gilbertson <scottg@mantatest.com> * gnu/gcj/xlib/natFont.cc (getMaxAscent): adjusted return value. (getMaxDescent): adjusted return value. (getAscent): modified to use metrics for 'O'. (getDescent): modified to use metrics for 'y'. From-SVN: r67692
2003-06-10Makefile.in, [...]: Replace "build_canonical" with build, "host_canonical" ↵Nathanael Nerode8-369/+392
with host. * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas: Replace "build_canonical" with build, "host_canonical" with host. * configure.in: Use GCC_TOPLEV_SUBDIRS. * aclocal.m4: Include ../config/acx.m4. * configure: Regenerate. (ada) * Makefile.in: Replace "host_canonical" with "host" for autoconf substitution. From-SVN: r67691
2003-06-10Daily bump.GCC Administrator2-2/+2
From-SVN: r67689
2003-06-10fstream.tcc (_M_underflow): Do not special case the unbuffered case...Paolo Carlini11-117/+620
2003-06-09 Paolo Carlini <pcarlini@unitus.it> * include/bits/fstream.tcc (_M_underflow): Do not special case the unbuffered case, which really means simply a one char get area. (basic_filebuf): Initialize _M_buf_size. (setbuf): Unbuffered means _M_buf_size == 1, since only _M_buf_size - 1 == 0 chars are going to be used for the put area and 1 for the get area. * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf. (~basic_streambuf): Tweak. (basic_streambuf): Do not initialize _M_buf_size. * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf. (~basic_filebuf): Tweak. (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the unbuffered situation (i.e., put area pointers NULL). * include/bits/streambuf.tcc (sbumpc): Clean up. * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New. From-SVN: r67686
2003-06-09From David Taylor.David Taylor2-0/+13
* gcc.dg/Wpadded.c: New file. From-SVN: r67685
2003-06-09Patch from David Taylor.David Taylor2-2/+13
* config/rs6000/rs6000.c (rs6000_build_va_list): Give the two bytes of padding in the __va_list_tag structure a name (reserved). From-SVN: r67684
2003-06-09* fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.Jason Merrill2-3/+17
From-SVN: r67683
2003-06-09Patch from Osku SalermaOsku Salerma2-68/+78
* c-format.c (check_format_string, get_constant): New. (handle_format_attribute, handle_format_arg_attribute, decode_format_attr): Change to use above functions. From-SVN: r67680
2003-06-09* stmt.c (expand_asm_operands): Re-word warning.Richard Henderson2-2/+6
From-SVN: r67678
2003-06-09re PR target/8787 ([DJGPP] GCC fails to emit .intel_syntax when invoked with ↵Andrew Pinski2-2/+10
the -masm=intel on DJGPP) 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu> PR target/8787 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax' if -masm=intel. From-SVN: r67676
2003-06-09Fix a ChangeLog typo.Kazu Hirata1-1/+1
From-SVN: r67675
2003-06-09Make-lang.in (JAVA_OBJS, [...]): Update.Neil Booth8-241/+365
java: * Make-lang.in (JAVA_OBJS, java/lang.o): Update. (java/j-options.c, java/j-options.h): New. * java-tree.h (resource_name, compile_resource_file, compile_resource_data): Constify. * jcf-write.c (jcf_write_base_directory): Similarly. * jcf.h (jcf_write_base_directory): Similarly. * lang.c: Include j-options.h. (cl_options_count, cl_options, string_option, java_decode_option, lang_f_options, lang_W_options, LANG_HOOKS_DECODE_OPTION, process_option_with_no): Remove. (resource_name): Constify. (LANG_HOOKS_HANDLE_OPTION): Override. (java_handle_option): New. (java_init): Don't call jcf_path_init. (java_init_options): Call jcf_path_init. * lang.opt: New. * resource.c (compile_resource_data, compile_resource_file): Constify. From-SVN: r67673
2003-06-09Fix copyright problems reported by Doug Evans.James E Wilson7-6/+54
* config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c, config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm: Add libgcc exception. From-SVN: r67672
2003-06-09re PR c++/8861 ([ABI] mangling floating point literal in template arg ↵Zack Weinberg2-26/+81
expression) PR 8861 * mangle.c (write_real_cst): New function. Implement ABI-compliant mangling of floating-point literals when -fabi-version>=2; provide backward compatibility with 3.3 when -fabi-version=1 (with warning). Clarify commentary. (write_template_arg_literal): Use write_real_cst. From-SVN: r67670
2003-06-0920000419-2.c: Fix dg-require-alias syntax.Mark Mitchell4-2/+10
* gcc.dg/special/20000419-2.c: Fix dg-require-alias syntax. * gcc.dg/special/weak-2.c: Add dg-require-weak. * gcc.dg/weak/weak-3.c: Reverse order of dg-do and dg-require-weak. From-SVN: r67669
2003-06-09rs6000.md (define_attr "type"): Add insert_word.David Edelsohn15-18/+40
* config/rs6000/rs6000.md (define_attr "type"): Add insert_word. (insvsi*): Add insert_word attribute. * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD. * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md, power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word. Co-Authored-By: Ayal Zaks <gcchaifa@us.ibm.com> From-SVN: r67668
2003-06-09* g++.dg/other/offsetof3.C: Adjust linenumber of last expected warning.J"orn Rennecke2-1/+5
From-SVN: r67667
2003-06-09gcc-dg.exp (dg-require-weak): Fix typo.Mark Mitchell3-4/+11
* lib/gcc-dg.exp (dg-require-weak): Fix typo. (dg-require-alias): Likewise. (dg-require-gc-sections): Likewise. * lib/target-supports.exp (check_gc_sections_available): Likewise. From-SVN: r67665
2003-06-09* fold-const.c (fold): Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r67664
2003-06-09acinclude.m4: Move all AM_CONDITIONAL calls out.Phil Edwards5-1425/+1352
2003-06-09 Phil Edwards <pme@gcc.gnu.org> * acinclude.m4: Move all AM_CONDITIONAL calls out. (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL statements. * configure.in: Centralize AM_CONDITIONALs so that they are always run. Make use of GLIBCPP_IS_CROSS_COMPILING. * aclocal.m4, configure: Regenerated. From-SVN: r67663
2003-06-09tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is removed.Nathan Sidwell6-21/+25
* tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is removed. * java/java-tree.h (DECL_FUNCTION_LAST_LINE): New. (struct lang_decl_func): Add last_line field. * java/parse.h (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, DECL_SOURCE_LINE_LAST): Remove. * java/parse.y (missing_return_error, finish_method_declaration, lookup_cl, start_artificial_method_body, source_end_java_method, start_complete_expand_method): Adjust. From-SVN: r67661
2003-06-09* sh.c (gen_block_redirect): Use locators.J"orn Rennecke2-1/+5
From-SVN: r67660
2003-06-09howto.html ('LWG Issues'): Add issue 235.Paolo Carlini2-0/+11
2003-06-09 Paolo Carlini <pcarlini@unitus.it> * docs/html/ext/howto.html ('LWG Issues'): Add issue 235. From-SVN: r67659