aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-04-18re PR c/6358 (GCC 3.1 ICE on statement expressions)Jakub Jelinek4-14/+62
PR c/6358 * function.c (assign_parms): Assign hard current_function_return_rtx register here... (expand_function_end): ...not here. * gcc.c-torture/compile/20020418-1.c: New test. From-SVN: r52485
2002-04-18install.texi (Downloading the source): Do not mention Chill any longer, but ↵Gerald Pfeifer2-8/+12
mention Ada. * doc/install.texi (Downloading the source): Do not mention Chill any longer, but mention Ada. (Configuration): Do not mention Chill any longer. From-SVN: r52482
2002-04-18c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.Neil Booth26-61/+85
* c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * c-tree.h (c_incomplete_type_error): New. * c-typeck.c (require_complete_type, build_component_ref): Update. (incomplete_type_error): Rename. * langhooks-def.h (lhd_incomplete_type_error): New. (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update. * langhooks.c (lhd_incomplete_type_error): New. * langhooks.h (struct lang_hooks_for_types): New hook. * tree.c (size_in_bytes): Use new hook. * tree.h (incomplete_type_error): Remove. ada: * gigi.h (incomplete_type_error): Remove. * utils.c (incomplete_type_error): Remove. cp: * call.c (build_new_method_call): Update. * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * cp-tree.h (cxx_incomplete_type_error): New. * decl.c (grokdeclarator, grokparms): Update. * decl2.c (check_classfn): Update. * pt.c (tsubst): Update. * typeck.c (complete_type_or_else, expr_sizeof, decay_conversion): Update. * typeck2.c (incomplete_type_error): Rename. (add_exception_specifier): Update. f: * com.c (incomplete_type_error): Remove. java: * typeck.c (incomplete_type_error): Remove. objc: * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. From-SVN: r52480
2002-04-18arc.md: Remove #if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT blocks.Zack Weinberg2-12/+5
* config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT blocks. From-SVN: r52479
2002-04-18* config/cris/cris.h (TARGET_VERSION): Remove local version number.Hans-Peter Nilsson2-1/+5
From-SVN: r52477
2002-04-18i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution in last patch.Jan Hubicka2-1/+6
* i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution in last patch. From-SVN: r52475
2002-04-18fold-const.c (fold): Use (*lang_hooks.types.unsigned_type) instead of ↵Jakub Jelinek2-1/+6
unsigned_type. * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type) instead of unsigned_type. From-SVN: r52474
2002-04-18i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.Jan Hubicka3-10/+16
* i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check. * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped later. From-SVN: r52471
2002-04-18re PR c++/5658 (Regression on redefinition of a type in a derived class.)Jason Merrill3-3/+28
PR c++/5658 * search.c (setup_class_bindings): A class template qualifies as a type binding. From-SVN: r52469
2002-04-18Prevent aborts taking a vector mode subreg of a constant integerBernd Schmidt2-0/+13
From-SVN: r52467
2002-04-18Plug memory leak in handle_vector_size_attributeBernd Schmidt2-8/+49
From-SVN: r52466
2002-04-18fold-const.c (fold): Convert (T)(x&c) into ((T)x&(T)c) for integer constant ↵Roger Sayle4-0/+77
c (if... * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c) for integer constant c (if x has unsigned type or sign bit is not set in c). This folds the zero/sign extension into the bit-wise and operation. * gcc.c-torture/compile/20020415-1.c: New. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r52465
2002-04-18re PR middle-end/6205 (-O -fpmath=sse breaks visibility of register ↵Jakub Jelinek2-1/+10
accumulated sum) PR middle-end/6205 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2, otherwise xorps. From-SVN: r52464
2002-04-1820020418-1.c: New test.David S. Miller2-0/+28
2002-04-18 David S. Miller <davem@redhat.com> * gcc.c-torture/execute/20020418-1.c: New test. From-SVN: r52461
2002-04-18Daily bump.GCC Administrator2-2/+2
From-SVN: r52459
2002-04-18class.c (make_class_data): Set DECL_ALIGN on static class data, for hash ↵Bryce McKinlay4-4/+16
synchronization. * class.c (make_class_data): Set DECL_ALIGN on static class data, for hash synchronization. * expr.c (java_expand_expr): Set DECL_ALIGN on static array objects. * decl.c (java_init_decl_processing): Don't set TYPE_ALIGN for class_type_node. From-SVN: r52448
2002-04-17elf.h: Undefine ASM_OUTPUT_CASE_LABEL.NIIBE Yutaka2-0/+8
2002-04-17 NIIBE Yutaka <gniibe@m17n.org> * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL. From-SVN: r52435
2002-04-17re PR c++/6316 (trap when compiling file)Jakub Jelinek4-1/+61
PR c++/6316 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop before expanding. * g++.dg/opt/inline1.C: New test. From-SVN: r52434
2002-04-17jcf-write.c (generate_bytecode_insns): Only write const_0 if not negative zero.Mark Wielaard2-1/+7
* jcf-write.c (generate_bytecode_insns): Only write const_0 if not negative zero. From-SVN: r52427
2002-04-17gcc.c (read_specs): Detect and fail if an attempt is made to rename a spec ↵Nick Clifton2-1/+12
string to an already... 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com> * gcc.c (read_specs): Detect and fail if an attempt is made to rename a spec string to an already existing string. From-SVN: r52426
2002-04-17s390.c (legitimize_pic_address): Do not generate illegal address constant ↵Ulrich Weigand2-0/+6
without CONST. * config/s390/s390.c (legitimize_pic_address): Do not generate illegal address constant without CONST. From-SVN: r52425
2002-04-17linux64.h (CC1_SPEC): Error for -m32 and -m64.Kaveh R. Ghazi3-0/+9
* sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64. * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise. From-SVN: r52421
2002-04-17re PR rtl-optimization/6305 (c++ gets ICE in reload_cse_simplify_operands)Ulrich Weigand2-8/+25
PR optimization/6305 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement to make sure previous reloads are taken into account. Generate better code if one operand is an in-range immediate constant. From-SVN: r52417
2002-04-17install.texi (Building): libgcj requires GNU make.Andrew Haley2-2/+7
2002-04-16 Andrew Haley <aph@cambridge.redhat.com> * doc/install.texi (Building): libgcj requires GNU make. From-SVN: r52414
2002-04-17re PR bootstrap/6315 (sparc64 gcc -mhard-quad-float cannot compile libstdc++-v3)Jakub Jelinek6-3/+56
PR bootstrap/6315 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting even if hard quad and register is not floating. (movtf reg<-mem split): Disallow splitting if hard quad and register is floating. (movtf mem<-reg split): Likewise. * config/sparc/sparc.c (fp_register_operand): New predicate. * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand. * gcc.dg/20020416-1.c: New test. From-SVN: r52412
2002-04-17re PR java/6294 (private inner interface is flagged illegal)Bryce McKinlay2-2/+8
Fix for PR java/6294: * parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner interfaces. From-SVN: r52411
2002-04-17Daily bump.GCC Administrator2-2/+2
From-SVN: r52409
2002-04-17Makefile.in (PROTO_OBJS): Add cppdefault.o.Zack Weinberg1-2/+0
2002-04-17 Zack Weinberg <zack@codesourcery.com> * Makefile.in (PROTO_OBJS): Add cppdefault.o. (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line. (unprotoize.o): Ditto. Build from protoize.c. Define UNPROTOIZE on command line. * protoize.c: Include cppdefault.h. Delete include_defaults. (in_system_include_dir): Use cpp_include_defaults (defined in cppdefault.o). * unprotoize.c: Delete file. Approved by: rth Message-ID: <20020415171022.A20025@redhat.com> From-SVN: r52404
2002-04-17Makefile.in (PROTO_OBJS): Add cppdefault.o.Zack Weinberg3-61/+19
2002-04-17 Zack Weinberg <zack@codesourcery.com> * Makefile.in (PROTO_OBJS): Add cppdefault.o. (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line. (unprotoize.o): Ditto. Build from protoize.c. Define UNPROTOIZE on command line. * protoize.c: Include cppdefault.h. Delete include_defaults. (in_system_include_dir): Use cpp_include_defaults (defined in cppdefault.o). * unprotoize.c: Delete file. Approved by: rth Message-ID: <20020415171022.A20025@redhat.com> From-SVN: r52402
2002-04-17altivec.h (vec_ld): Add array variants.Aldy Hernandez2-3/+77
2002-04-17 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/altivec.h (vec_ld): Add array variants. (vec_lde): Same. (vec_ldl): Same. From-SVN: r52400
2002-04-17altivec.h: Define __ALTIVEC__.Alan Matsuoka2-1177/+1266
2002-04-17 Alan Matsuoka <alanm@redhat.com> Aldy Hernandez <aldyh@redhat.com> * config/rs6000/altivec.h: Define __ALTIVEC__. (bool): New. (__pixel): New. (pixel): New. (vec_cfux): New. (vec_vmaddfp): New. (vec_vsldoi): New. Add parentheses to all macro arguments. Co-Authored-By: Aldy Hernandez <aldyh@redhat.com> From-SVN: r52398
2002-04-16re PR c++/6320 (3.1 regression wrt 3.0: ICE in remove_eh_handler, at ↵Richard Henderson3-20/+48
except.c:2696) PR c++/6320 * except.c (remove_eh_handler): Insert inner regions at beginning of sibling chain. Refactor expressions. * g++.dg/eh/dead1.C: New. From-SVN: r52397
2002-04-17c-common.h (STMT_EXPR_NO_SCOPE): New macro.Mark Mitchell13-15/+60
* c-common.h (STMT_EXPR_NO_SCOPE): New macro. * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE. * tree.h (expand_start_stmt_expr): Update prototype. * stmt.c (expand_start_stmt_expr): Add has_scope parameter. * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE on the STMT_EXPR created for the inline function. * trans.c (tree_transform): Add has_scope argument to expand_start_stmt_expr. * com.c (ffecom_expr_power_integer): Add has_scope argument to call to expand_start_stmt_expr. * init.c (begin_init_stmts): Remove commented out code. (finish_init_stmts): Set STMT_EXPR_NO_SCOPE. * semantics.c (begin_gobal_stmt_expr): Adjust call to expand_start_stmt_expr. From-SVN: r52395
2002-04-16sol2-bi.h (AS_SPARC64_FLAG): New.Richard Henderson7-94/+35
* config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New. * config/sparc/sol2-gas-bi.h: New file. * config.gcc (sparc*-solaris): Add it as needed. * configure.in (AS_SPARC64_FLAG): Remove check. * config.in, configure: Regenerate. From-SVN: r52393
2002-04-16* config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.Richard Henderson1-0/+2
From-SVN: r52391
2002-04-16mips.c (override_options): Don't override N32 for a 64-bit ISA.Richard Henderson2-1/+4
* config/mips/mips.c (override_options): Don't override N32 for a 64-bit ISA. From-SVN: r52389
2002-04-16mips.md (can_delay): Split out of existing define_delays.Richard Henderson2-15/+23
* config/mips/mips.md (can_delay): Split out of existing define_delays. (HILO_delay): Set can_delay false. From-SVN: r52387
2002-04-16rs6000.c (rs6000_output_function_prologue): Compute instruction addresses.Dale Johannesen2-3/+31
2002-04-16 Dale Johannesen <dalej@apple.com> * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute instruction addresses. (rs6000_output_function_epilogue): Likewise. From-SVN: r52378
2002-04-16c-parse.in (poplevel, [...]): Add ending ';', in accordance with POSIX.Paolo Carlini2-1/+10
2002-04-16 Paolo Carlini <pcarlini@unitus.it> * c-parse.in (poplevel, compstmt_start, compstmt_primary_start): Add ending ';', in accordance with POSIX. From-SVN: r52376
2002-04-16config.gcc (sparcv9-solaris): Configure for 64-bit default.Richard Henderson3-20/+21
* config.gcc (sparcv9-solaris): Configure for 64-bit default. Adjust tm_file order to get TARGET_DEFAULT set properly. (sparc-solaris): Configure 2.[78] for 64-bit multilibs. * doc/install.texi (sparc-solaris): Update. From-SVN: r52373
2002-04-16rs6000.c (rs6000_emit_cmove): Fail if modes of comparison operands do not ↵Dale Johannesen2-20/+35
match each other or if... 2002-04-16 Dale Johannesen <dalej@apple.com> * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of comparison operands do not match each other or if modes of conditions do not match result. From-SVN: r52367
2002-04-16s390.md (mulsidi3): Set both subregs of the multiword register.Hartmut Penner2-14/+7
target/6305 * config/s390/s390.md (mulsidi3): Set both subregs of the multiword register. From-SVN: r52366
2002-04-16Daily bump.GCC Administrator2-2/+2
From-SVN: r52364
2002-04-16altivec.h (vec_addc): Type check.Aldy Hernandez2-1/+8
2002-04-16 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/altivec.h (vec_addc): Type check. From-SVN: r52360
2002-04-16re PR target/6303 (output_operand: invalid expression as operand)Jakub Jelinek8-6/+110
PR target/6303 * dwarf2out.c (rtl_for_decl_location): Call ASM_SIMPLIFY_DWARF_ADDR before returning. * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT only when inside of MEM by eliminating the indirection too. * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Define. * config/s390/s390.c (s390_simplify_dwarf_addr): New. * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Add prototype. * gcc.dg/20020415-1.c: New test. From-SVN: r52358
2002-04-16re PR middle-end/6279 (gcc-3.1 miscompiles qmake on IA-64)Jakub Jelinek2-2/+14
PR middle-end/6279 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target. * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET. From-SVN: r52356
2002-04-16decl.c (register_dtor_fn): Pass the address of dso_handle, not dso_handle ↵Mark Mitchell2-1/+8
itself, to __cxa_atexit. * decl.c (register_dtor_fn): Pass the address of dso_handle, not dso_handle itself, to __cxa_atexit. From-SVN: r52354
2002-04-15abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set call_really_used_regs too.Richard Henderson2-2/+7
* config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set call_really_used_regs too. From-SVN: r52352
2002-04-15* config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.Richard Henderson2-1/+5
From-SVN: r52346
2002-04-15rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs as being CLOBBERed.David S. Miller2-7/+7
2002-04-15 David S. Miller <davem@redhat.com> * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs as being CLOBBERed. From-SVN: r52343