aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-11-10[multiple changes]Arnaud Charlet41-265/+1185
2003-11-10 Ed Falis <falis@gnat.com> * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted * 5zinit.adb: (Install_Handler): Moved back to spec (Install_Signal_Handlers): Deleted * 5zthrini.adb: Added context clause for System.Storage_Elements (Register): Only handles creation of taskVar; initialization moved to Thread_Body_Enter. (Reset_TSD): Deleted; replaced by Thread_Body_Enter Added declaration of environment task secondary stack and initialization. * s-thread.adb: Implement bodies for thread body processing * s-thread.ads: Added comment identifying supported targets for pragma Thread_Body. 2003-11-10 Pascal Obry <obry@gnat.com> * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than GNAT_MAX_PATH_LEN. * s-fileio.adb: (Open): Properly check for string length before copying into the buffer. Raises Name_Error if buffer is too small. Note that this was a potential buffer overflow. 2003-11-10 Arnaud Charlet <charlet@act-europe.fr> * bindgen.adb, comperr.adb: Code clean ups. * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function. 2003-11-10 Sergey Rybin <rybin@act-europe.fr> * gnat1drv.adb: Add call to Sem_Elim.Initialize. 2003-11-10 Vincent Celier <celier@gnat.com> * gprcmd.adb: (Gprcmd): Add new command "prefix" to get the prefix of the GNAT installation. * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler * prj.adb: (Project_Empty): Add new boolean component Virtual * prj.ads: (Virtual_Prefix): New constant string (Project_Data): New boolean component Virtual * prj-nmsc.adb (Language_Independent_Check): Adjust error message when a library project is extended by a virtual extending project. * prj-part.adb: Modifications throughout to implement extending-all project, including: (Virtual_Hash, Processed_Hash): New hash tables (Create_Virtual_Extending_Project): New procedure (Look_For_Virtual_Projects_For): New procedure * prj-proc.adb: (Process): After checking the projects, if main project is an extending-all project, set the object directory of all virtual extending project to the object directory of the main project. Adjust error message when a virtual extending project has the same object directory as an project being extended. (Recursive_Process): If name starts with the virtual prefix, set Virtual to True in the project data. * prj-tree.adb: (Default_Project_Node): Add new boolean component Extending_All (Is_Extending_All): New function (Set_Is_Extending_All): New procedure * prj-tree.ads: (Is_Extending_All): New function (Set_Is_Extending_All): New procedure (Project_Node_Record): New boolean component Extending_All * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib * vms_data.ads: Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call "gprcmd prefix" to define it. 2003-11-10 Thomas Quinot <quinot@act-europe.fr> * einfo.ads: Fix a typo and remove an extraneous word in comments. * lib-load.adb: (Create_Dummy_Package_Unit): Set the scope of the entity for the created dummy package to Standard_Standard, not to itself, to defend other parts of the front-end against encoutering a cycle in the scope chain. * sem_ch10.adb: (Analyze_With_Clause): When setting the entities for the successive N_Expanded_Names that constitute the name of a child unit, do not attempt to go further than Standard_Standard in the chain of scopes. This case arises from the placeholder units created by Create_Dummy_Package_Unit in the case of a with_clause for a nonexistent child unit. 2003-11-10 Ed Schonberg <schonberg@gnat.com> * exp_ch6.adb: (Expand_Thread_Body): Place subprogram on scope stack, so that new declarations are given the proper scope. * sem_ch13.adb: (Check_Expr_Constants): Reject an expression that contains a constant created during expansion, and that appears after the object to which the address clause applies. * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of Analyze_Iteration_Scheme, to rewrite a loop parameter specification that uses 'Range of a function call with controlled components, so that the function result can be finalized before starting the loop. * sem_ch8.adb: (Find_Selected_Component): Improve error message when prefix is an implicit dereference of an incomplete type. 2003-11-10 Robert Dewar <dewar@gnat.com> * opt.ads: New Print_Standard flag for -gnatS switch * sem_ch13.adb: Remove some additional checks for unaligned arrays * cstand.adb (Create_Standard): Print out package standard if -gnatS switch set * debug.adb: Update doc for -gnatds to discuss relationship with new -gnatS flag * sinfo.adb: Add new field Entity_Or_Associated_Node * sinfo.ads: Add new field Entity_Or_Associated_Node Update documentation for Associated_Node and Entity fields to clarify relationship and usage. * sprint.adb: (Write_Id): Properly process Associated_Node field in generic template * switch-c.adb: Recognize new -gnatS switch for printing package Standard This replaces gnatpsta * usage.adb: Add line for new -gnatS switch for printing package Standard This replaces gnatpsta From-SVN: r73423
2003-11-10run_all.sh: Add handling of unsupported (tasking) tests.Arnaud Charlet2-15/+34
* ada/acats/run_all.sh: Add handling of unsupported (tasking) tests. Clean ups. From-SVN: r73422
2003-11-107sosprim.adb: tv_usec of struct_timeval and time_t are long integer.Andreas Jaeger2-3/+8
* 7sosprim.adb: tv_usec of struct_timeval and time_t are long integer. From-SVN: r73419
2003-11-10Add handling of -nostdlib, now recognized/needed by gnat1.Arnaud Charlet3-0/+14
From-SVN: r73413
2003-11-10Makefile.in, [...]: Remove build of gnat_wrapper and gnatpsta, no longer needed.Arnaud Charlet6-534/+13
* Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta, no longer needed. * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed. * sysdep.c: Add handling of cygwin. From-SVN: r73412
2003-11-10* Make-lang.in: Makefile automatically updatedGNAT Script2-31/+35
From-SVN: r73411
2003-11-10Complete previous change.Arnaud Charlet1-4/+1
From-SVN: r73409
2003-11-10re PR ada/12950 (Ada runtime is not relocatable)Arnaud Charlet4-14/+144
PR 12950 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New functions. Used to handle dynamic prefix relocation, via set_std_prefix. Replace GNAT_ROOT by GCC_ROOT. * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb From-SVN: r73407
2003-11-10re PR c++/12832 (ICE: tree check: expected class 'd', have 'x' (error_mark) ↵Gabriel Dos Reis3-4/+18
in location_of, at cp/error.c:1962) PR c++/12832 * name-lookup.c (supplement_binding): Gracefully handle names used at non-class scope prior declaration. From-SVN: r73406
2003-11-10re PR target/12865 (`mprotect' call to make trampoline executable may fail)Waldek Hebisch4-11/+79
PR target/12865 * config/sparc/sparc.c (sparc_initialize_trampoline): Call __enable_execute_stack only after writing onto the stack. (sparc64_initialize_trampoline): Likewise. From-SVN: r73402
2003-11-10Daily bump.GCC Administrator2-2/+2
From-SVN: r73400
2003-11-09* java/net/Inet4Address.java (serialVersionUID): Updated.Tom Tromey2-1/+5
From-SVN: r73398
2003-11-09200031109-1.c: New test.Andrew Pinski2-0/+15
2003-11-09 Andrew Pinski <pinskia@physics.uc.edu> * gcc.c-torture/compile/200031109-1.c: New test. From-SVN: r73397
2003-11-09locale_facets.tcc (_M_insert_int, [...]): Move a couple of vars inside an if ↵Paolo Carlini2-21/+23
block. 2003-11-09 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (_M_insert_int, _M_insert_float): Move a couple of vars inside an if block. From-SVN: r73395
2003-11-09closure_fn0.c: Print result and check with dg-output to make debugging easier.Andreas Tobler39-193/+221
2003-11-09 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libffi.call/closure_fn0.c: Print result and check with dg-output to make debugging easier. * testsuite/libffi.call/closure_fn1.c: Likewise. * testsuite/libffi.call/closure_fn2.c: Likewise. * testsuite/libffi.call/closure_fn3.c: Likewise. * testsuite/libffi.call/closure_fn4.c: Likewise. * testsuite/libffi.call/closure_fn5.c: Likewise. * testsuite/libffi.call/cls_12byte.c: Likewise. * testsuite/libffi.call/cls_16byte.c: Likewise. * testsuite/libffi.call/cls_18byte.c: Likewise. * testsuite/libffi.call/cls_19byte.c: Likewise. * testsuite/libffi.call/cls_1_1byte.c: Likewise. * testsuite/libffi.call/cls_20byte.c: Likewise. * testsuite/libffi.call/cls_20byte1.c: Likewise. * testsuite/libffi.call/cls_24byte.c: Likewise. * testsuite/libffi.call/cls_2byte.c: Likewise. * testsuite/libffi.call/cls_3_1byte.c: Likewise. * testsuite/libffi.call/cls_3byte1.c: Likewise. * testsuite/libffi.call/cls_3byte2.c: Likewise. * testsuite/libffi.call/cls_4_1byte.c: Likewise. * testsuite/libffi.call/cls_4byte.c: Likewise. * testsuite/libffi.call/cls_5byte.c: Likewise. * testsuite/libffi.call/cls_64byte.c: Likewise. * testsuite/libffi.call/cls_6byte.c: Likewise. * testsuite/libffi.call/cls_7byte.c: Likewise. * testsuite/libffi.call/cls_8byte.c: Likewise. * testsuite/libffi.call/cls_9byte1.c: Likewise. * testsuite/libffi.call/cls_9byte2.c: Likewise. * testsuite/libffi.call/cls_double.c: Likewise. * testsuite/libffi.call/cls_float.c: Likewise. * testsuite/libffi.call/cls_schar.c: Likewise. * testsuite/libffi.call/cls_sint.c: Likewise. * testsuite/libffi.call/cls_sshort.c: Likewise. * testsuite/libffi.call/cls_uchar.c: Likewise. * testsuite/libffi.call/cls_uint.c: Likewise. * testsuite/libffi.call/cls_ulonglong.c: Likewise. * testsuite/libffi.call/cls_ushort.c: Likewise. * testsuite/libffi.call/problem1.c: Likewise. * testsuite/libffi.special/unwindtest.cc: Make ffi_closure static. From-SVN: r73393
2003-11-09loop.c (check_dbra_loop): Try swapping the comparison operands of the loop ↵Roger Sayle3-1/+36
condition to identify a... * loop.c (check_dbra_loop): Try swapping the comparison operands of the loop condition to identify a suitable induction variable. * unroll.c (loop_iterations): Likewise. From-SVN: r73391
2003-11-09sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs sparc64 #cpu and #machine ↵Kaveh R. Ghazi2-4/+9
assertions. * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs sparc64 #cpu and #machine assertions. From-SVN: r73390
2003-11-09re PR libstdc++/12971 (Resolution of DR 328 [WP] still unimplemented)Paolo Carlini5-7/+124
2003-11-09 Paolo Carlini <pcarlini@suse.de> PR libstdc++/12971 * include/bits/locale_facets.tcc (money_put::do_put(..., long double)): Fix conversion specification as per DR 328 [WP]. * testsuite/22_locale/money_put/put/char/12971.cc: Add. * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto. * docs/html/ext/howto.html: Add entry for DR 328. From-SVN: r73389
2003-11-09* Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.Richard Henderson2-4/+9
From-SVN: r73386
2003-11-09* tree-optimize.c (tree_rest_of_compilation): Fix warning.Jan Hubicka2-8/+2
From-SVN: r73385
2003-11-09cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.Jan Hubicka4-45/+4
* cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p. * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree. * opts.c (common_handle_option): Do not set max-inline-insns. * params.def: Update comments. (PARAM_MAX_INLINE_INSNS): Kill. * invoke.texi (max-inline-insns): Kill. From-SVN: r73384
2003-11-09cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.Jan Hubicka2-16/+12
* cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p. * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree. * opts.c (common_handle_option): Do not set max-inline-insns. * params.def: Update comments. (PARAM_MAX_INLINE_INSNS): Kill. * invoke.texi (max-inline-insns): Kill. From-SVN: r73382
2003-11-09Daily bump.GCC Administrator2-2/+2
From-SVN: r73380
2003-11-08re PR c/3190 (-Wformat-y2k doesn't belong to -Wall - it's hard to avoid)Joseph Myers9-13/+28
PR c/3190 PR c/8714 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default. * invoke.texi: Update. testsuite: PR c/3190 PR c/8714 * gcc.dg/format/c90-strftime-1.c, gcc.dg/format/c90-strftime-2.c, gcc.dg/format/c99-strftime-1.c, gcc.dg/format/ext3.c, gcc.dg/format/no-y2k-1.c: Update. From-SVN: r73378
2003-11-08re PR libstdc++/12967 (Resolution of DR 300 [WP] still unimplemented)Paolo Carlini5-4789/+6934
2003-11-08 Paolo Carlini <pcarlini@suse.de> PR libstdc++/12967 * include/bits/list.tcc (merge): Implement resolution of DR 300 [WP]. * docs/html/ext/howto.html: Add entry for DR 300; tweak entry for DR 231. * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html: Import R27. From-SVN: r73377
2003-11-08re PR libgcj/12894 (META-INF entries should be incoluded as --resource ↵Tom Tromey2-3/+7
entries when compiling jars) PR java/12894: * jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file. From-SVN: r73376
2003-11-08re PR rtl-optimization/12630 (Various unrecognizable insns and ICEs at -O3)John David Anglin4-28/+669
PR optimization/12630 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length. Handle length computation 64-bit moves. (compute_clrstr_length, output_block_clear): Implement block clear. (output_block_move): Handle 64-bit moves. (pa_adjust_insn_length): Use compute_movstr_length and compute_clrstr_length. * pa.md (movstrsi): Revise operand order and comments. Don't use match_scratch. (movstrsi_internal): Delete. (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter and peephole2 patterns to transform prereload to postreload form. (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi, clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload, clrstrdi_postreload): New patterns for 64-bit block move, and block clear. * pa-protos.h (output_block_clear): New prototype. From-SVN: r73375
2003-11-08cls_9byte2.c: New test case.Andreas Tobler14-0/+1154
2003-11-08 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libffi.call/cls_9byte2.c: New test case. * testsuite/libffi.call/cls_9byte1.c: Likewise. * testsuite/libffi.call/cls_64byte.c: Likewise. * testsuite/libffi.call/cls_20byte1.c: Likewise. * testsuite/libffi.call/cls_19byte.c: Likewise. * testsuite/libffi.call/cls_18byte.c: Likewise. * testsuite/libffi.call/closure_fn4.c: Likewise. * testsuite/libffi.call/closure_fn5.c: Likewise. * testsuite/libffi.call/cls_schar.c: Likewise. * testsuite/libffi.call/cls_sint.c: Likewise. * testsuite/libffi.call/cls_sshort.c: Likewise. * testsuite/libffi.call/nested_struct2.c: Likewise. * testsuite/libffi.call/nested_struct3.c: Likewise. From-SVN: r73372
2003-11-08* libjava.jacks/jacks.xfail: Updated.Tom Tromey2-5/+4
From-SVN: r73371
2003-11-08dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO || ↵Andreas Schwab2-1/+7
XCOFF_DEBUGGING_INFO. * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO. From-SVN: r73370
2003-11-08cls_double.c: Do a check on the result.Andreas Tobler7-18/+30
2003-11-08 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libffi.call/cls_double.c: Do a check on the result. * testsuite/libffi.call/cls_uchar.c: Likewise. * testsuite/libffi.call/cls_uint.c: Likewise. * testsuite/libffi.call/cls_ulonglong.c: Likewise. * testsuite/libffi.call/cls_ushort.c: Likewise. * testsuite/libffi.call/return_sc.c: Cleanup whitespaces. From-SVN: r73369
2003-11-08* dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.Kaveh R. Ghazi2-0/+6
From-SVN: r73363
2003-11-08re PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)Roger Sayle2-0/+40
PR optimization/10467 * gcc.dg/20031108-1.c: New test case. From-SVN: r73362
2003-11-08FirstThread.java (Klocale, Kcalendar): New fields.Jeff Sturm2-4/+11
* gnu/gcj/runtime/FirstThread.java (Klocale, Kcalendar): New fields. From-SVN: r73360
2003-11-08ByteArrayOutputStream.java (resize): Fix off-by-one error.Jeff Sturm2-1/+6
* java/io/ByteArrayOutputStream.java (resize): Fix off-by-one error. From-SVN: r73359
2003-11-08rs6000.c (rs6000_legitimize_address): Remove redundant parens.Geoffrey Keating2-4/+7
* config/rs6000/rs6000.c (rs6000_legitimize_address): Remove redundant parens. From-SVN: r73354
2003-11-08cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.Geoffrey Keating4-9/+38
2003-11-07 Geoffrey Keating <geoffk@apple.com> * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it. (find_file_in_dir): Likewise. (_cpp_find_file): Print message if no header file is found but an invalid PCH file was. 2003-11-07 Geoffrey Keating <geoffk@apple.com> * gcc.dg/pch/warn-1.c: Allow for more helpful error message. From-SVN: r73353
2003-11-08c-typeck.c (pedantic_lvalue_warning): Deprecate compound expressions as lvalues.Joseph Myers7-10/+32
* c-typeck.c (pedantic_lvalue_warning): Deprecate compound expressions as lvalues. (internal_build_compound_expr): Remove special handling for non-pedantic case. * doc/extend.texi: Document that all extended lvalues are now deprecated. testsuite: * gcc.dg/compound-lvalue-1.c: New test. * gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Remove some XFAILs. From-SVN: r73352
2003-11-08* gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.Bryce McKinlay2-1/+6
From-SVN: r73351
2003-11-08vec.cc: Conform to C++STYLE.Jonathan Wakely2-9/+8
2003-11-07 Jonathan Wakely <redi@gcc.gnu.org> * libsupc++/vec.cc: Conform to C++STYLE. From-SVN: r73350
2003-11-08Daily bump.GCC Administrator2-2/+2
From-SVN: r73348
2003-11-07re PR pch/11654 (incorrect stabs when using pre-compiled headers)Geoffrey Keating2-8/+22
PR 11654 * dbxout.c (struct dbx_file): Do not save for PCH. (current_file): Likewise. (dbxout_init): Don't allocate struct dbx_file using GC. (dbxout_start_source_file): Likewise. From-SVN: r73346
2003-11-07elf.h, [...]: Convert to ISO C90.Falk Hueffner4-5/+10
* config/alpha/elf.h, config/alpha/unicosmk.h, config/alpha/vms.h: Convert to ISO C90. From-SVN: r73342
2003-11-07* config/arm/pe.h: Convert to ISO C90.Nathanael Nerode2-5/+7
From-SVN: r73341
2003-11-07Ugh, copied the wrong date from previous test case.Carlo Wood1-1/+1
From-SVN: r73340
2003-11-07re PR libstdc++/12736 (Demangler bug)Carlo Wood4-24/+168
PR libstdc++/12736 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added. (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated K, V, r and A qualifiers before processing them as a group. * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers. * testsuite/demangle/regression/cw-16.cc: New. From-SVN: r73339
2003-11-07Fix libstdc++-v3 build failure on sh64-elf:J"orn Rennecke4-1/+102
* sh-protos.h (sh_pch_valid_p): Declare. * sh.c ("intl.h"): Include. (TARGET_PCH_VALID_P): Override. (sh_target_switches): New variable. (target_switches): Define. (sh_pch_valid_p): New function. * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI. From-SVN: r73338
2003-11-07configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.Robert Millan4-3/+9
2003-11-07 Robert Millan <robertmh@gnu.org> * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu. * crossconfig.m4: Likewise. * configure: Regenerate. From-SVN: r73337
2003-11-07i386.c (x86_64_sign_extended_value): Return false from tls variables.Jan Hubicka2-0/+11
* i386.c (x86_64_sign_extended_value): Return false from tls variables. (x86_64_zero_extended_value): likewise. From-SVN: r73334
2003-11-07mips.md (loadgp): Take $25 as a second operand.Richard Sandiford3-12/+21
* config/mips/mips.md (loadgp): Take $25 as a second operand. * config/mips/mips.c (mips_expand_prologue): Modify accordingly. From-SVN: r73330