From 98db73df84446b2d9e2ef37e16d1381b986b3a69 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Thu, 2 Jan 2014 22:25:41 +0100 Subject: [PATCH] gnat_ugn.texi: Bump @copying's copyright year. 2014-01-02 Tobias Burnus gcc/ada/ * gnat_ugn.texi: Bump @copying's copyright year. gcc/ * gcc.c (process_command): Update copyright notice dates. * gcov-dump.c: Ditto. * gcov.c: Ditto. * doc/cpp.texi: Bump @copying's copyright year. * doc/cppinternals.texi: Ditto. * doc/gcc.texi: Ditto. * doc/gccint.texi: Ditto. * doc/gcov.texi: Ditto. * doc/install.texi: Ditto. * doc/invoke.texi: Ditto. gcc/fortran/ * gfortranspec.c (lang_specific_driver): Update copyright notice dates. * gfc-internals.texi: Bump @copying's copyright year. * gfortran.texi: Ditto. * intrinsic.texi: Ditto. * invoke.texi: Ditto. gcc/go/ * gcc/go/gccgo.texi: Ditto. gcc/java/ * jcf-dump.c (version): Update copyright notice dates. * gcj.texi: Bump @copying's copyright year. libgomp/ * libgomp.texi: Bump @copying's copyright year. libitm/ * libitm.texi: Bump @copying's copyright year. libjava/ * classpath/gnu/java/rmi/registry/RegistryImpl.java (version): * Update copyright notice dates. * classpath/tools/gnu/classpath/tools/orbd/Main.java (run): * Ditto. * gnu/gcj/convert/Convert.java (version): Update copyright * notice dates. * gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto. libquadmath/ * libquadmath.texi: Bump @copying's copyright year. From-SVN: r206286 --- gcc/ChangeLog | 13 + gcc/ada/ChangeLog | 8291 +----- gcc/ada/ChangeLog-2013 | 8294 ++++++ gcc/ada/gnat_ugn.texi | 4 +- gcc/doc/cpp.texi | 2 +- gcc/doc/cppinternals.texi | 4 +- gcc/doc/gcc.texi | 2 +- gcc/doc/gccint.texi | 2 +- gcc/doc/gcov.texi | 2 +- gcc/doc/install.texi | 4 +- gcc/doc/invoke.texi | 2 +- gcc/fortran/ChangeLog | 9 + gcc/fortran/gfc-internals.texi | 2 +- gcc/fortran/gfortran.texi | 2 +- gcc/fortran/gfortranspec.c | 4 +- gcc/fortran/intrinsic.texi | 2 +- gcc/fortran/invoke.texi | 4 +- gcc/gcc.c | 4 +- gcc/gcov-dump.c | 4 +- gcc/gcov.c | 4 +- gcc/go/ChangeLog | 750 +- gcc/go/ChangeLog-2013 | 745 + gcc/go/gccgo.texi | 2 +- gcc/java/ChangeLog | 22894 +-------------- gcc/java/ChangeLog-2013 | 22898 ++++++++++++++++ gcc/java/gcj.texi | 2 +- gcc/java/jcf-dump.c | 4 +- libgomp/ChangeLog | 4 + libgomp/libgomp.texi | 2 +- libitm/ChangeLog | 4 + libitm/libitm.texi | 2 +- libjava/ChangeLog | 9 + .../gnu/java/rmi/registry/RegistryImpl.java | 5 +- .../tools/gnu/classpath/tools/orbd/Main.java | 5 +- libjava/gnu/gcj/convert/Convert.java | 5 +- libjava/gnu/gcj/tools/gcj_dbtool/Main.java | 5 +- libquadmath/ChangeLog | 4 + libquadmath/libquadmath.texi | 2 +- 38 files changed, 32032 insertions(+), 31965 deletions(-) create mode 100644 gcc/ada/ChangeLog-2013 create mode 100644 gcc/go/ChangeLog-2013 create mode 100644 gcc/java/ChangeLog-2013 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b34e8add3fa..f9699173985 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-01-02 Tobias Burnus + + * gcc.c (process_command): Update copyright notice dates. + * gcov-dump.c: Ditto. + * gcov.c: Ditto. + * doc/cpp.texi: Bump @copying's copyright year. + * doc/cppinternals.texi: Ditto. + * doc/gcc.texi: Ditto. + * doc/gccint.texi: Ditto. + * doc/gcov.texi: Ditto. + * doc/install.texi: Ditto. + * doc/invoke.texi: Ditto. + 2014-01-01 Jan-Benedict Glaw * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it. diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8c5ee48dbf7..f7dad6cefae 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,8293 +1,8 @@ -2013-12-20 Trevor saunders +2014-01-02 Tobias Burnus - * gcc-interface/decl.c (components_to_record): Replace stack_vec with - auto_vec. - -2013-12-12 Eric Botcazou - - * gcc-interface/Makefile.in (ARM linux, GNU eabi): Tweak regexp. - -2013-12-12 Eric Botcazou - Iain Sandoe - - PR ada/55946 - * gcc-interface/Make-lang.in (ada/doctools/xgnatugn): Use gnatmake. - * gcc-interface/Makefile.in (GCC_LINK): Add LDFLAGS. - (../../gnatmake): Remove LDFLAGS. - (../../gnatlink): Likewise. - -2013-12-04 Eric Botcazou - - PR ada/59382 - * indepsw-darwin.adb: New file. - -2013-12-04 Eric Botcazou - - * gcc-interface/decl.c (components_to_record): Add specific handling - for fields with zero size and no representation clause. - -2013-12-04 Eric Botcazou - - * gcc-interface/trans.c (Case_Statement_to_gnu): Do not push a binding - level for each branch if this is a case expression in Ada 2012. - (gnat_to_gnu) : Adjust comment. - -2013-11-29 Eric Botcazou - - PR ada/54040 - PR ada/59346 - * s-osinte-hpux.ads (timespec): Change type of tv_nsec field to time_t. - * s-osinte-kfreebsd-gnu.ads (timespec): Likewise. - * s-osinte-solaris-posix.ads (timespec): Likewise. - -2013-11-23 Eric Botcazou - - * gcc-interface/trans.c (Loop_Statement_to_gnu): Set TREE_SIDE_EFFECTS - on the conditional expression directly. - -2013-11-22 Andrew MacLeod - - * gcc-interface/trans.c: Add required include files from gimple.h. - -2013-11-22 David Malcolm - - * gcc-interface/utils2.c (build_call_raise): Remove use of - input_line macro. - (build_call_raise_range): Likewise. - (build_call_raise_column): Likewise. - -2013-11-20 Kenneth Zadeck - Mike Stump - Richard Sandiford - - * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi. - * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_to_uhwi. - * gcc-interface/utils.c (make_packable_type): Likewise. - -2013-11-18 Richard Sandiford - - * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi rather than - tree_low_cst. - -2013-11-18 Richard Sandiford - - * gcc-interface/decl.c, gcc-interface/utils.c, gcc-interface/utils2.c: - Replace tree_low_cst (..., 1) with tree_to_uhwi throughout. - -2013-11-18 Richard Sandiford - - * gcc-interface/cuintp.c: Update comments to refer to - tree_fits_shwi_p rather than host_integerp. - * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p - rather than host_integerp. - * gcc-interface/utils.c (rest_of_record_type_compilation): Likewise. - -2013-11-18 Richard Sandiford - - * gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c: - Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout. - -2013-11-18 Richard Sandiford - - * gcc-interface/cuintp.c: Replace host_integerp (..., 0) with - tree_fits_shwi_p throughout. - -2013-11-18 Eric Botcazou - - * gcc-interface/trans.c (TARGET_ABI_OPEN_VMS): Delete as redundant. - -2013-11-18 Eric Botcazou - - * gcc-interface/trans.c (Call_to_gnu): For an Out parameter passed by - copy and that don't need to be copied in, only evaluate its address. - -2013-11-18 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Deal with an - error mark as renamed object in type annotating mode. - -2013-11-15 H.J. Lu - - PR ada/54040 - * s-linux-x32.ads: New file. - * s-osprim-x32.adb: Likewise. - * s-linux.ads (time_t): New type. - * s-linux-alpha.ads (time_t): Likewise. - * s-linux-hppa.ads (time_t): Likewise. - * s-linux-mipsel.ads (time_t): Likewise. - * s-linux-sparc.ads (time_t): Likewise. - * s-osinte-linux.ads (time_t): Mark it private. Replace long - with System.Linux.time_t. - (timespec): Replace long with time_t. - * s-osinte-posix.adb (To_Timespec): Likewise. - * s-taprop-linux.adb (timeval): Replace C.long with - System.OS_Interface.time_t. - * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace - s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with - s-osprim-x32.adb for x32. - -2013-11-14 H.J. Lu - - * gcc-interface/trans.c: Include gimple.h and pointer-set.h. - -2013-11-14 Diego Novillo - - * gcc-interface/decl.c: Include stringpool.h - Include stor-layout.h - * gcc-interface/misc.c: Include stor-layout.h - Include print-tree.h - * gcc-interface/trans.c: Include stringpool.h - Include stor-layout.h - Include stmt.h - Include varasm.h - * gcc-interface/utils.c: Include stringpool.h - Include stor-layout.h - Include attribs.h - Include varasm.h - * gcc-interface/utils2.c: Include stringpool.h - Include stor-layout.h - Include attribs.h - Include varasm.h - -2013-11-12 Andrew MacLeod - - * gcc-interface/trans.c: Include gimplify.h. - -2013-11-11 Tristan Gingold - Eric Botcazou - - * gcc-interface/utils2.c (gnat_build_constructor): Also set the flag - CONSTRUCTOR_NO_CLEARING on the constructor. - -2013-10-30 Sharad Singhai - - * gnat_ugn.texi: Remove option description for PR middle-end/58134. - -2013-10-29 David Malcolm - - * gcc-interface/trans.c (finalize_nrv): Update for conversion of - symtab types to a true class hierarchy. - * gcc-interface/utils.c (gnat_write_global_declarations): Likewise. - -2013-10-28 Trevor Saunders - - * gcc-interface/decl.c (components_to_record): Adjust stack vector. - -2013-10-24 Rainer Orth - - * gcc-interface/Make-lang.in (ADA_DEPS): Fix quoting. - -2013-10-19 Thomas Quinot - - * gcc-interface/Makefile.in: Use canonical absolute path to refer to - the top source directory and to the libgcc subidrectories. - -2013-10-19 Eric Botcazou - - * gcc-interface/utils.c (scale_by_factor_of): New function. - (rest_of_record_type_compilation): Use scale_by_factor_of in order to - scale the original offset for both rounding cases; in the second case, - take into accout the addend to compute the alignment. Tidy up. - -2013-10-19 Eric Botcazou - - * gcc-interface/cuintp.c: Remove useless include directives. - (build_cst_from_int): Use standard predicate. - (UI_To_gnu): Simplify. - (UI_From_gnu): Fix formatting. - * gcc-interface/trans.c (post_error): Likewise. - (post_error_ne): Likewise. - -2013-10-19 Eric Botcazou - - * gcc-interface/utils.c (gnat_set_type_context): New function. - (gnat_pushdecl): Use it to set the context of the type. - -2013-10-17 Hristian Kirtchev - - * sem_prag.adb (Check_Dependency_Clause): - Recognize the scenario where successful clause matching has - depleted the available refinement items and the clause to match - technically refines to null => null. - -2013-10-17 Tristan Gingold - - * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Specify - External_Name instead of Link_Name for the RTTI declaration. - -2013-10-17 Robert Dewar - - * sem_prag.adb (Record_Possible_Body_Reference): Fix test for - being in body. - (Add_Constituent): Merged into Check_Refined_Global_Item. - (Check_Matching_Constituent): A constituent that has the proper Part_Of - option and comes from a private child or a sibling is now collected. - (Check_Matching_Modes): Merged into Check_Refined_Global_Item. - (Check_Refined_Global_Item): Code cleanup. - (Collect_Constituent): New routine. - (Inconsistent_Mode_Error): Moved out from Check_Matching_Modes. - -2013-10-17 Ed Schonberg - - * freeze.adb (Check_Current_Instance, Process): Add RM reference - and mention immutably limited types, when the current instance - is illegal in Ada 2012. - -2013-10-17 Ed Schonberg - - * sem_warn.adb (Check_Unused_Withs): If the main unit is a - subunit, apply the check to the units mentioned in its context - only. This provides additional warnings on with_clauses that - are superfluous. - -2013-10-17 Hristian Kirtchev - - * sem_ch3.adb (Analyze_Declarations): Emit an - error message concerning state refinement when the spec defines at - least one non-null abstract state and the body's SPARK mode is On. - (Requires_State_Refinement): New routine. - -2013-10-17 Robert Dewar - - * sem_ch7.ads: Comment fixes. - -2013-10-17 Robert Dewar - - * sem_ch7.adb (Analyze_Package_Specification): Remove circuit - for ensuring that a package spec requires a body for some other - reason than that it contains the declaration of an abstract state. - -2013-10-17 Tristan Gingold - - * exp_ch11.adb (Expand_N_Raise_Expression): Fix call of - Possible_Local_Raise. - -2013-10-17 Thomas Quinot - - * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Unchecked - conversion of Or_Rhs to Etype of New_Rhs is required only when - the latter is the result of a byte swap operation. - -2013-10-17 Thomas Quinot - - * exp_dist.adb (Build_To_Any_Function): For a type with opaque - representation that is not transmitted as an unconstrained value, - use 'Write, not 'Output, to generate the opaque representation. - -2013-10-17 Yannick Moy - - * sem_res.adb (Resolve_Short_Circuit): Only - generate expression-with-action when full expansion is set. - -2013-10-17 Yannick Moy - - * debug.adb Remove obsolete comment. - -2013-10-17 Thomas Quinot - - * exp_ch4.adb (Process_Transient_Object.Find_Enclosing_Contexts): - Avoid late insertion when expanding an expression with action - nested within a transient block; Do not inconditionally generate - a finalization call if the generated object is from a specific - branch of a conditional expression. - -2013-10-17 Pascal Obry - - * g-arrspl.adb: Ensure Finalize call is idempotent. - * g-arrspl.adb (Finalize): Makes the call idempotent. - -2013-10-17 Hristian Kirtchev - - * sem_prag.adb (Is_Matching_Input): Account - for the case where a state with a null refinement appears as - the last input of a refinement clause. - -2013-10-17 Robert Dewar - - * sem_aux.ads, sem_aux.adb: Minor reformatting. - -2013-10-17 Hristian Kirtchev - - * aspects.adb, aspects.ads, sem_prag.ads: Remove all entries - for Refined_Pre from the various tables. - * par-prag.adb: Remove the entry for Refined_Pre from the list - of pragmas not needing special processing by the parser. - * sem_ch13.adb (Analyze_Aspect_Specifications): - Remove the processing for aspect Refined_Pre. - (Check_Aspect_At_Freeze_Point): Remove the entry for aspect - Refined_Pre. - * sem_prag.adb (Analyze_Pragma): Refined_Pre is no longer a - valid assertion kind. Remove the analysis of pragma Refined_Pre. - (Analyze_Refined_Pragma): Update the comment on usage. - (Find_Related_Subprogram_Or_Body): Update the comment on - usage. Pragma Refined_Pre is no longer processed by this routine. - (Is_Valid_Assertion_Kind): Refined_Pre is no longer a valid - assertion kind. - * snames.ads-tmpl: Remove predefined name Refined_Pre. Remove - the pragma id for Refined_Pre. - -2013-10-17 Hristian Kirtchev - - * exp_util.adb, exp_util.ads (Entity_Of): Moved to Sem_Util. - * sem_prag.adb (Analyze_Global_In_Decl_List): Mark a null - item list as being analyzed. - (Analyze_Global_List): Mark a - null global list and multiple global items as being analyzed. - (Analyze_Input_Item): Check the unit that defines the input - variable or state, not the reference to it. - * sem_util.ads, sem_util.adb (Entity_Of): Moved from Exp_Util. Ensure - that the input has an entity. - -2013-10-17 Thomas Quinot - - * exp_util.adb (Get_Current_Value_Condition, - Set_Current_Value_Condition): Handle the case of expressions - with actions * exp_util.adb (Insert_Actions): Handle the case - of an expression with actions whose Actions list is empty. - * exp_util.adb (Remove_Side_Effects.Side_Effect_Free): An - expression with actions that has no Actions and whose Expression - is side effect free is itself side effect free. - * exp_util.adb (Remove_Side_Effects): Do not set an incorrect etype on - temporary 'R' (Def_Id), which is in general an access to Exp_Type, not - an Exp_Type. - * sem_res.adb (Resolve): For an expression with - actions, resolve the expression early. * sem_res.adb - (Resolve_Expression_With_Actions): Rewrite an expression with - actions whose value is compile time known and which has no - actions into just its expression, so that its constant value is - available downstream. - * sem_res.adb (Resolve_Short_Circuit): - Wrap the left operand in an expression with actions to contain - any required finalization actions. - * exp_ch4.adb (Expand_Expression_With_Actions): For an - expression with actions returning a Boolean expression, ensure - any finalization action is kept within the Actions list. - * sem_warn.adb (Check_References, Check_Unset_Reference): add - missing circuitry to handle expressions with actions. - * checks.adb (Ensure_Valid): For an expression with actions, - insert the validity check on the Expression. - * sem_ch13.adb (Build_Static_Predicate.Get_RList): An expression - with actions that has a non-empty Actions list is not static. An - expression with actions that has an empty Actions list has the - static ranges of its Expression. - * sem_util.adb (Has_No_Obvious_Side_Effects): An expression with - actions with an empty Actions list has no obvious side effects - if its Expression itsekf has no obvious side effects. - -2013-10-17 Ed Schonberg - - * sem_aux.ads, sem_aux.adb (Is_Immutably_Limited_Type): Make - predicate compatible with Ada 2012 definition - (Is_Limited_View): New name for previous version of - Is_Immutably_Limited_Type. Predicate is true for an untagged - record type with a limited component. - * exp_ch7.adb, exp_ch6.adb, exp_ch4.adb, exp_ch3.adb, exp_aggr.adb, - sem_util.adb, sem_res.adb, sem_prag.adb, sem_attr.adb, sem_ch8.adb, - sem_ch6.adb, sem_ch3.adb, exp_util.adb: Use Is_Limited_View - * freeze.adb Use Is_Immutably_Limited_Type to check the legality - of references to the current instance, Is_Limited_View otherwise. - -2013-10-17 Hristian Kirtchev - - * sem_ch13.adb (Analyze_Aspect_Specifications): Flag aspect - Refined_Pre as not supported. - * sem_prag.adb (Analyze_Pragma): Ignore pragma Refined_Pre. - -2013-10-17 Ed Schonberg - - * sem_ch12.adb (Validated_Access_Subprogram_Instance): According - to AI05-288, actuals for access_to_subprograms must be subtype - conformant with the generic formal. Previous to AI05-288 - only mode conformance was required, but the AI is a binding - interpretation that applies to previous versions of the language, - -2013-10-17 Robert Dewar - - * gnat_ugn.texi: Minor text correction. - * ug_words: Add entry for -gnateu /IGNORE_UNRECOGNIZED. - * vms_data.ads: Add /IGNORE_UNRECOGNIZED for -gnateu. - -2013-10-17 Tristan Gingold - - * impunit.adb (Non_Imp_File_Names_95): Add g-cppexc. - -2013-10-17 Hristian Kirtchev - - * sem_prag.adb (Analyze_Constituent): Move the check - concerning option Part_Of to routine Check_Matching_Constituent. - (Check_Matching_Constituent): Verify that an abstract state - that acts as a constituent has the proper Part_Of option in - its aspect/pragma Abstract_State. Account for the case when a - constituent comes from a private child or private sibling. - * sem_util.ads, sem_util.adb (Is_Child_Or_Sibling): New routine. - -2013-10-17 Tristan Gingold - - * g-cppexc.adb, g-cppexc.ads: New files. - * gcc-interface/Makefile.in: Add g-cppexc when building zcx runtimes. - -2013-10-17 Thomas Quinot - - * exp_ch7.adb: Minor reformatting. - -2013-10-17 Ed Schonberg - - * sem_dim.adb (Process_Minus, Process_Divide): Label dimension - expression with standard operator and type, for pretty-printing - use. - -2013-10-17 Bob Duff - - * gnat_ugn.texi: Document --pp-new and --pp-old switches. - -2013-10-17 Hristian Kirtchev - - * einfo.adb: Flag 159 is now known as From_Limited_With. Replace - all references to attribute From_With_Type with From_Limited_With. - (From_With_Type): Renamed to From_Limited_With. - (Set_From_With_Type): Renamd to Set_From_Limited_With. - * einfo.ads: Remove attribute From_With_Type and occurrences in - nodes. Add attribute From_Limited_With along with occurrences - in nodes. - (From_With_Type): Renamed to From_Limited_With along with pragma Inline. - (Set_From_With_Type): Renamed to - Set_From_Limited_With along with pragma Inline. - * sem_ch7.adb, sem_ch8.adb, sem_ch12.adb, sem_ch13.adb, sem_disp.adb, - sem_res.adb, sem_type.adb, sem_util.adb, sem_warn.adb, - exp_attr.adb, exp_disp.adb, freeze.adb, itypes.adb, layout.adb, - lib-writ.adb, rtsfind.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb, - sem_ch4.adb: Replace all references to attribute From_With_Type - with From_Limited_With. - * sem_ch6.adb: Replace all references to attribute From_With_Type - with From_Limited_With. - (Designates_From_With_Type): Renamed to Designates_From_Limited_With. - (Process_Formals): Update the call to Designates_From_With_Type. - * sem_ch10.adb: Replace all references to attribute From_With_Type - with From_Limited_With. - (Build_Limited_Views): Reimplemented. - * gcc-interface/decl.c Replace all references to attribute - From_With_Type with From_Limited_With. - (finalize_from_with_types): Renamed to finalize_from_limited_with. - * gcc-interface/gigi.h (finalize_from_with_types): Renamed to - finalize_from_limited_with. - * gcc-interface/trans.c: Replace all references to attribute - From_With_Type with From_Limited_With. - (Compilation_Unit_to_gnu): Update the call to finalize_from_with_types. - -2013-10-17 Pascal Obry - - * projects.texi: Update VCS_Kind documentation. - -2013-10-17 Matthew Heaney - - * a-convec.adb, a-coinve.adb, a-cobove.adb (Insert, Insert_Space): - Inspect value range before converting type. - -2013-10-17 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Flag the use of pragma Refined_Pre as - illegal. - -2013-10-17 Vincent Celier - - * gnat_ugn.texi: Remove VMS conversion of -gnatet and -gnateT, - now that they are both in ug_words. - * ug_words: Update qualifier for -gnatet Add qualifier for -gnateT - * vms_data.ads: Update qualifier for -gnatet Add qualifier - for -gnateT - * projects.texi: Continue to update the project documentation - for VMS. - -2013-10-17 Robert Dewar - - * einfo.ads, einfo.adb (Has_Body_References): New flag. - (Body_References): New field. - * sem_prag.adb (Record_Possible_Body_Reference): New procedure - (Analyze_Input_Output): Call Record_Possible_Body_Reference - (Analyze_Global_Item): Call Record_Possible_Body_Reference - (Analyze_Refinement_Clause): Output messages if illegal global refs. - -2013-10-17 Thomas Quinot - - * freeze.adb (Check_Component_Storage_Order): Reject a record or - array type that does not have an explicit Scalar_Storage_Order - attribute definition if a component of the record, or the - elements of the array, have one. - * gnat_rm.texi (attribute Scalar_Storage_Order): Document the above - rule. - -2013-10-17 Vincent Celier - - * gnat_ugn.texi: Add examples of switches -gnateD, including - one where the value is a string. - * projects.texi: Do not convert switches in project files to - VMS qualifiers. - -2013-10-17 Robert Dewar - - * sem_prag.adb (Report_Extra_Clauses): Don't complain about - refinements with null input since null should be considered to - always match. - -2013-10-17 Robert Dewar - - * gnat_ugn.texi: Document -gnatw.y/-gnatw.Y. - * opt.ads (List_Body_Required_Info): New flag. - * prep.adb: Minor reformatting. - * sem_ch7.adb (Unit_Requires_Body_Info): New - procedure (Analyze_Package_Specification): Add call to - Unit_Requires_Body_Info. - * ug_words: Add entries for -gnatw.y and -gnatw.Y. - * usage.adb: Add line for new warning switch -gnatw.y/.Y. - * vms_data.ads: Add entry for [NO_]WHY_SPEC_NEEDS_BODY warning - qualifier. - * warnsw.ads, warnsw.adb: Implement new warning switch -gnatw.y/.Y. - -2013-10-17 Yannick Moy - - * sem_ch8.adb (Find_Direct_Name): Keep track of assignments for - renamings in SPARK mode. - -2013-10-17 Yannick Moy - - * exp_spark.adb (Expand_SPARK): Remove special case for NOT IN - operation. - * sinfo.ads: Add special comment section to describe SPARK mode - effect on tree. - * exp_spark.ads: Remove comments, moved to sinfo.ads. - -2013-10-17 Yannick Moy - - * exp_ch3.adb (Expand_Freeze_Class_Wide_Type, - Expand_Freeze_Class_Wide_Type, Expand_Freeze_Class_Wide_Type): - Remove useless special cases. - * exp_ch4.adb (Expand_Allocator_Expression, Expand_N_Allocator, - Expand_N_Op_Expon): Remove useless special cases. - * exp_ch6.adb (Is_Build_In_Place_Function_Call): Disable build-in-place - in SPARK mode by testing Full_Expander_Active instead of - Expander_Active. - (Make_Build_In_Place_Call_In_Allocator): Remove useless special case. - * exp_util.adb (Build_Allocate_Deallocate_Proc): Remove - useless special case. - * sem_eval.adb (Compile_Time_Known_Value): Remove special handling of - deferred constant. - -2013-10-17 Yannick Moy - - * gnat_ugn.texi: Document -gnateT and target file format. - -2013-10-17 Vincent Celier - - * prep.adb (Check_Command_Line_Symbol_Definition): Is_A_String is - always False, even when the value starts and ends with double quotes. - -2013-10-17 Tristan Gingold - - * a-exexpr-gcc.adb: Synchronize declarations of other/all others. - -2013-10-17 Thomas Quinot - - * exp_pakd.adb: Add missing guard protecting Reverse_Storage_Order - call. - * sem_res.adb: Minor code cleanup: use named parameter association - (not positional) for Boolean parameter Sec_Stack in calls to - Establish_Transient_Scope. - -2013-10-15 Thomas Quinot - - * exp_pakd.adb (Expand_Packed_Element_Set, - Expand_Packed_Element_Reference): Adjust for the case of packed - arrays of reverse-storage-order types. - -2013-10-15 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2013-10-15 Ed Schonberg - - * sem_attr.adb (Analyze_Attribute_Specification, case - To_Address): If the expression is an identifier, do not modify - its type; it will be converted when necessary, and the type of - the expression must remain consistent with that of the entity - for back-end consistency. - -2013-10-15 Robert Dewar - - * sem_ch7.adb (Unit_Requires_Body): Add flag - Ignore_Abstract_State (Analyze_Package_Specification): Enforce - rule requiring Elaborate_Body if a non-null abstract state is - specified for a library-level package. - * sem_ch7.ads (Unit_Requires_Body): Add flag Ignore_Abstract_State. - -2013-10-15 Hristian Kirtchev - - * sem_prag.adb (Analyze_Constituent): When - a state acts as a constituent of another state, ensure that - the said state has a Part_Of dependency in its corresponding - aspect/pragma Abstract_State. - -2013-10-15 Robert Dewar - - * par-ch4.adb (P_If_expression): Handle redundant ELSE cleanly. - -2013-10-15 Thomas Quinot - - * atree.ads (New_Copy, Relocate_Node): Improve documentation - (note that these subprograms reset Is_Overloaded). - -2013-10-15 Thomas Quinot - - * checks.adb (Check_Needed): Handle the case where the test in - the left operand of the short circuit is wrapped in a qualified - expression, type conversion, or expression with actions. - -2013-10-15 Thomas Quinot - - * sem_type.adb, sem_type.ads (Save_Interps): Also propagate - Is_Overloaded to New_N, for consistency. - -2013-10-15 Ed Schonberg - - * a-tienau.adb (Put): Use file parameter to query values of - current column and line length. - -2013-10-15 Robert Dewar - - * sem_prag.adb, exp_ch11.adb, a-except-2005.adb, a-except-2005.ads: - Minor reformatting. - -2013-10-15 Eric Botcazou - - * targparm.ads: Fix minor typo in comment. - -2013-10-15 Ed Schonberg - - * lib-xref.adb: handle full views that are derived from private - types. - * sem_util.adb (Build_Elaboration_Entity): Do nothing in ASIS - mode: the elaboration entity is not in the source, and plays no - role in semantic analysis. Minor reformatting. - -2013-10-15 Tristan Gingold - - * adaint.c (__gnat_get_executable_load_address): Remove AIX - specific code. - -2013-10-15 Ed Schonberg - - * exp_aggr.adb (Aggr_Size_OK): Refine criteria to better handle - large static aggregates with static record components, to avoid - generating a large number of asignments. Conversely, improve - handling of aggregates initialized by a single association, - which are most efficiently implemented with a loop. - -2013-10-15 Hristian Kirtchev - - * sem_prag.adb (Analyze_Input_Item): Emit an - error when the input item comes from the related package. - -2013-10-15 Arnaud Charlet - - * exp_ch11.adb (Expand_Exception_Handlers): Restrict previous - change. - -2013-10-14 Tristan Gingold - - * gcc-interface/gigi.h (standard_datatypes): Add - ADT_set_exception_parameter_decl - (set_exception_parameter_decl): New macro. - * gcc-interface/trans.c (gigi): Initialize set_exception_parameter_decl. - (Exception_Handler_to_gnu_zcx): Initialize the choice parameter. - * gcc-interface/trans.c: Synchronize declarations of other/all others - between gigi and the runtime. - -2013-10-14 Robert Dewar - - * exp_attr.adb (Find_Stream_Subprogram): Optimize - Storage_Array stream handling. - (Find_Stream_Subprogram): Optimize Stream_Element_Array stream handling - * rtsfind.ads: Add entry for Stream_Element_Array Add - entries for RE_Storage_Array subprograms Add entries for - RE_Stream_Element_Array subprograms - * s-ststop.ads, s-ststop.adb: Add processing for System.Storage_Array. - Add processing for Ada.Stream_Element_Array. - -2013-10-14 Tristan Gingold - - * a-except-2005.ads, a-except-2005.adb: - (Get_Exception_Machine_Occurrence): New function. - * raise-gcc.c (__gnat_unwind_exception_size): New constant. - -2013-10-14 Robert Dewar - - * sem_res.adb: Minor fix to error message text. - * errout.ads, erroutc.ads: Minor reformatting. - * s-ststop.ads, s-stratt.ads: Clean up documentation of block IO - mode for streams. - * s-stratt-xdr.adb: Minor comment update. - -2013-10-14 Robert Dewar - - * sem_aux.adb, sem_aux.ads, sem_prag.adb: Minor reformatting. - -2013-10-14 Ed Schonberg - - * sem_res.adb (Resolve_Actuals): Add error message for a - subprogram with an in-out parameter when used in a predicate, - to clarify subsequent error at the point of call. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Is_Matching_Input): Consume a matching null input. - -2013-10-14 Robert Dewar - - * freeze.adb (Freeze_Record): Don't give warning about packed - and foreign convention. - -2013-10-14 Ed Schonberg - - * sem_aux.adb, sem_aux.ads (Package_Specification): New function, to - replace the less efficient idiom Specification. - (Unit_Declaration_Node (Pack_Id)), which handles library units and - child units. - * sem_ch3.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_ch6.adb, - exp_disp.adb, sem_cat.adb, exp_dist.adb: Use Package_Specification. - -2013-10-14 Hristian Kirtchev - - * exp_attr.adb (Expand_Update_Attribute): Update the call to - Process_Range_Update. - (Process_Range_Update): Add new formal parameter Typ and associated - comment on usage. Add local constant Index_Typ. Add a type conversion - as part of the indexed component to ensure that the loop variable - corresponds to the index type. - -2013-10-14 Tristan Gingold - - * a-exexpr-gcc.adb: Adjust comment. - (Others_Value, All_Others_Value, - Unhandled_Others_Value): Declare as Character to slightly reduce - memory footprint. - -2013-10-14 Robert Dewar - - * freeze.adb (Size_Known): Size is not known for packed record - with aliased components - -2013-10-14 Robert Dewar - - * sem_ch3.adb: Minor fix to error message. - * a-exexpr-gcc.adb, sem_util.adb, sem_case.adb, exp_ch11.adb: Minor - reformatting. - -2013-10-14 Arnaud Charlet - - * exp_ch11.adb: Fix typo. - -2013-10-14 Thomas Quinot - - * exp_util.ads: Minor reformatting. - -2013-10-14 Ed Schonberg - - * sem_ch3.adb (Build_Derived_Record_Type): Reject full views - with no explicit discriminant constraints, when the parents of - the partial view and the full view are constrained subtypes with - different constraints. - -2013-10-14 Robert Dewar - - * freeze.adb (Freeze_Array_Type): New procedure, abstracts out - this code from Freeze. - (Freeze_Array_Type): Detect pragma Pack overriding foreign convention - (Freeze_Record_Type): Ditto. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Analyze_Dependency_Clause): Add new local variable - Non_Null_Output_Seen. Update the call to Analyze_Input_Output. - (Analyze_Input_Item): Streamline the detection mechanism of null and - non-null items. - (Analyze_Input_List): Add new local variable - Non_Null_Input_Seen. Update all calls to Analyze_Input_Output. - (Analyze_Input_Output): Add new formal parameter Non_Null_Seen - and update the related comment on usage. Update the - recursive call to itself. Attribute 'Result is now treated - as a non-null item. Detect mixes of null and non-null items. - (Analyze_Initialization_Item): Streamline the detection mechanism - of null and non-null items. - -2013-10-14 Vincent Celier - - * projects.texi: Add documentation for the new project level - attribute Library_Rpath_Options. - -2013-10-14 Tristan Gingold - - * a-exexpr-gcc.adb (Set_Exception_Parameter): New procedure. - (Set_Foreign_Occurrence): New procedure, extracted from - Setup_Current_Excep. - * exp_ch11.adb (Expand_Exception_Handlers): Do not expand choice - parameter in case of zcx. - * sem_ch11.adb (Analyze_Exception_Handlers): Need debug info - for the choice parameter. - * raise-gcc.c: Add comments. - -2013-10-14 Hristian Kirtchev - - * aspects.adb: Add an entry in table Canonical_Aspect for - Initial_Condition. - * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, - Aspect_Names and Aspect_Delay for Initial_Condition. - * einfo.adb (Get_Pragma): Include pragma Initial_Condition to - categorization pragmas. - * einfo.ads (Get_Pragma): Update comment on usage. - * exp_ch7.adb (Expand_N_Package_Body): Add a runtime check to - verify the assertion introduced by pragma Initial_Condition. - (Expand_N_Package_Declaration): Add a runtime check to - verify the assertion introduced by pragma Initial_Condition. - (Expand_Pragma_Initial_Condition): New routine. - * par-prag: Include pragma Initial_Condition to the list of - pragmas that do not require special processing by the parser. - * sem_ch3.adb (Analyze_Declarations): Analyze pragma - Initial_Condition at the end of the visible declarations. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing - for aspect Initial_Condition. - (Check_Aspect_At_Freeze_Point): - Aspect Initial_Condition does not need inspection at freezing. - * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): - New routine. - (Analyze_Pragma): Update all calls - to Check_Declaration_Order. Add processing for pragma - Initial_Condition. Initial_Condition is now a valid assertion - kind. Add an entry in table Sig_Flags for Initial_Condition. - (Check_Declaration_Order): Reimplemented to handle arbitrary - pragmas. - (Is_Valid_Assertion_Kind): Add an entry for - Initial_Condition. - * sem_pag.ads (Analyze_Initial_Condition_In_Decl_Part): - New routine. - * sem_util.adb (Add_Contract_Item): Pragma Initial_Condition - can now be associated with a package spec. - * sem_util.ads (Add_Contract_Item): Update comment on usage. - * sinfo.ads: Update the documentation of node N_Contract - * snames.ads-tmpl: Add new predefined name Initial_Condition. Add - new pragma id for Initial_Condition. - -2013-10-14 Thomas Quinot - - * exp_pakd.adb: Minor reformatting. - -2013-10-14 Robert Dewar - - * exp_prag.adb: Minor reformatting. - -2013-10-14 Ed Schonberg - - * sem_case.adb (Check_Against_Predicate): Handle properly an - others clause in various cases. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Check_Matching_Constituent): Do - not inspect the hidden states if there are no hidden states. This - case arises when the constituents are states coming from a - private child. - -2013-10-14 Doug Rupp - - * init.c [ARMEL and VxWorks] (__gnat_map_signal): Re-arm guard - page by clearing VALID bit vice setting page protection. - -2013-10-14 Arnaud Charlet - - * gnat_rm.texi, adaint.c: Fix typo. - -2013-10-14 Ed Schonberg - - * sem_util.adb (Is_Variable, In_Protected_Function): In the - body of a protected function, the protected object itself is a - constant (not just its components). - -2013-10-14 Vincent Celier - - * snames.ads-tmpl: Add new standard name Library_Rpath_Options. - -2013-10-14 Tristan Gingold - - * sem_prag.adb (Process_Import_Or_Interface): Allow importing - of exception using convention Cpp. - * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Expand cpp - imported exceptions. - * raise-gcc.c (is_handled_by): Filter C++ exception occurrences. - * gnat_rm.texi: Document how to import C++ exceptions. - -2013-10-14 Jose Ruiz - - * sem_ch13.adb (Sem_Ch13.Analyze_Aspect_Specification): For - Priority and CPU aspects, when checking, issue a warning only - if it is obviously not a main program. - -2013-10-14 Tristan Gingold - - * adaint.c: Fix condition for AIX. Minor reformatting. - -2013-10-14 Robert Dewar - - * sem_ch3.adb, sem_prag.adb, prj.ads: Minor reformatting. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Analyze_Depends_In_Decl_Part): - Rename Outputs_Seen to All_Outputs_Seen and update all occurrences - of the variable. - (Analyze_Input_Output): Add an item to - All_Inputs_Seen when it is an input or a self-referential output. - (Check_Mode): Comment reformatting. - (Analyze_Abstract_State): Remove the restriction that an Export state - must also have mode Input_Only or Output_Only. - -2013-10-14 Hristian Kirtchev - - * einfo.adb: Flag 263 is now known as Has_Visible_Refinement. - (Has_Non_Null_Refinement): New routine. - (Has_Null_Refinement): The routine is now synthesized. - (Has_Visible_Refinement): New routine. - (Set_Has_Visible_Refinement): New routine. - (Write_Entity_Flags): Remove the output for - Has_Null_Refinement. Add output for Has_Visible_Refinement. - * einfo.ads: Update the occurrences of Has_Non_Null_Refinement, - Has_Null_Refinement and Has_Visible_Refinement in entities. - (Has_Non_Null_Refinement): New synthesized attribute. - (Has_Null_Refinement): This attribute is now synthesized. - (Has_Visible_Refinement): New routine with corresponding - pragma Inline. - (Set_Has_Visible_Refinement): New routine with corresponding pragma - Inline. - * sem_ch3.adb (Analyze_Declarations): Add new local - variable In_Package_Body. Remove state refinements from - visibility at the end of the package body declarations. - (Remove_Visible_Refinements): New routine. - * sem_prag.adb (Analyze_Constituent): Collect a null - constituent and mark the state as having visible refinement. - (Analyze_Global_Item): Use attribute Has_Visible_Refinement to - detect a state with visible refinement. - (Analyze_Input_Output): Use attribute Has_Visible_Refinement to detect - a state with visible refinement. - (Check_Dependency_Clause): Use attribute Has_Non_Null_Refinement rather - than checking the contents of list Refinement_Constituents. - (Check_In_Out_States): Use attribute Has_Non_Null_Refinement rather - than checking the contents of list Refinement_Constituents. - (Check_Input_States): Use attribute Has_Non_Null_Refinement rather - than checking the contents of list Refinement_Constituents. - (Check_Matching_Constituent): Mark a state as having visible refinement. - (Check_Output_States): Use attribute Has_Non_Null_Refinement rather than - checking the contents of list Refinement_Constituents. - (Check_Refined_Global_Item): Use attribute Has_Visible_Refinement - to detect a state with visible refinement. - (Is_Matching_Input): Use attribute Has_Non_Null_Refinement rather than - checking the contents of list Refinement_Constituents. - * sem_util.adb (Is_Refined_State): Use attribute - Has_Visible_Refinement to detect a state with visible refinement. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Check_Mode): Do not emit an - error when inspecting a self referencial output item of an - unconstrained type. - -2013-10-14 Tristan Gingold - - * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Fix - target type for code of VMS imported exception. - * init.c: Replace Exception_Code by void *. - * s-vmexta.adb (Hash, Base_Code_In): Adjust code after changing - the type of Exception_Code. - -2013-10-14 Vincent Celier - - * prj.ads: Minor comment updates. - * prj-attr.adb: New attribute Library_Rpath_Options. - -2013-10-14 Robert Dewar - - * gnat_rm.texi: Library_Level attribute now applies to an - entity name. - * sem_attr.adb (Analyze_Attribute, case Library_Level): Prefix - is now an entity name. - -2013-10-14 Jose Ruiz - - * sem_ch13.adb (Analyze_Aspect_Specification): For - Priority and CPU aspects in subprograms, the expression in the - aspect is analyzed and exported. - -2013-10-14 Robert Dewar - - * s-valuti.adb, prep.adb, scng.adb, errout.adb: Minor reformatting. - -2013-10-14 Eric Botcazou - - * adaint.c: Further disable __gnat_get_executable_load_address - for Linux. - -2013-10-14 Vincent Celier - - * gnat_ugn.texi: Add documentation for comparing symbols to - integers in preprocessing expressions. - -2013-10-14 Jose Ruiz - - * sem_prag.adb (Analyze_Aspect_Specification): For - Priority and CPU aspects in subprograms, the expression in the - aspect is analyzed and exported. - (Analyze_Pragma): When having a Priority pragma in the - main subprogram, load a unit that will force the initialization - of the tasking run time, which is needed for setting the required - priority. - -2013-10-14 Vincent Celier - - * prj-nmsc.adb (Check_Interfaces): Put in Other_Interfaces all - non Ada interface files. - * prj.ads (Project_Data): New component Other_Interfaces. - -2013-10-14 Arnaud Charlet - - * gcc-interface/Makefile.in: Target pairs clean ups. - -2013-10-14 Vincent Celier - - * errout.adb (Write_Error_Summary): Do not output the number - of lines when Main_Source_File is unknown. - (Output_Messages): Do not write the header when Main_Source_File is - unknown. - -2013-10-14 Vincent Celier - - * prep.adb (Expression): Accept terms of the form 'symbol - integer", where relop is =, <, <=, > or >=. - (Parse_Def_File): Accept literal integer values. - * gcc-interface/Make-lang.in: Add s-valint.o, s-valuns.o and - s-valuti.o to the compiler object files. - -2013-10-14 Robert Dewar - - * exp_prag.adb, exp_ch11.adb, s-exctab.adb: Minor reformatting. - * usage.adb: Add line for -gnateu switch. - -2013-10-14 Vincent Celier - - * lib-writ.ads: Add comments to indicate that a path name in - D lines may be quoted if the path name includes directories - with spaces. - -2013-10-14 Robert Dewar - - * debug.adb: Document -gnatd.E. - * gnat1drv.adb (Adjust_Global_Switches): Set Error_To_Warning - if -gnatd.E set. - * opt.ads (Error_To_Warning): New switch. - * osint.adb: Minor reformatting. - * sem_warn.adb (Warn_On_Overlapping_Actuals): Overlap is error - in some cases in Ada 2012 mode (unless Error_To_Warning) is set. - * sem_warn.ads (Warn_On_Overlapping_Actuals): Document error - in Ada 2012 mode. - -2013-10-14 Tristan Gingold - - * cstand.adb: Add a comment for Standard_Exception_Type. - -2013-10-14 Ed Schonberg - - * exp_ch4.adb (Process_Transient_Object): If a transient scope - has already been created, use the corresponding Node_To_Be_Wrapped - as the insertion point for the controlled actions. - -2013-10-14 Tristan Gingold - - * cstand.adb (Create_Standard): Change Import_Code component - of Standard_Exception_Type to Foreign_Data. Its type is now - Standard_A_Char (access to character). - * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust - definition of Code to match the type of Foreign_Data. - * s-stalib.ads (Exception_Data): Replace Import_Code by Foreign_Data - Change the definition of standard predefined exceptions. - (Exception_Code): Remove. - * raise.h (Exception_Code): Remove (Exception_Data): Replace - Import_Code field by Foreign_Data. - * rtsfind.ads (RE_Exception_Code): Remove - (RE_Import_Address): Add. - * a-exexpr-gcc.adb (Import_Code_For): Replaced by Foreign_Data_For. - * exp_ch11.adb (Expand_N_Exception_Declaration): Associate null - to Foreign_Data component. - * raise-gcc.c (Import_Code_For): Replaced by Foreign_Data_For. - (is_handled_by): Add comments. Use replaced function. Change - condition so that an Ada occurrence is never handled by - Foreign_Exception. - * s-exctab.adb (Internal_Exception): Associate Null_Address to - Foreign_Data component. - * s-vmexta.adb, s-vmexta.ads (Exception_Code): Declare Replace - SSL.Exception_Code by Exception_Code. - -2013-10-14 Robert Dewar - - * gnat_ugn.texi: Document -gnateu switch. - * opt.ads (Ignore_Unrecognized_VWY_Switches): New switch. - * stylesw.adb: Ignore unrecognized switch if - Ignore_Unrecognized_VWY_Switches set. - * switch-c.adb: Implement -gnateu (sets - Ignore_Unrecognized_VWY_Switches). - * validsw.adb: Ignore unrecognized switch if - Ignore_Unrecognized_VWY_Switches set. - * warnsw.adb: Ignore unrecognized switch if - Ignore_Unrecognized_VWY_Switches set. - -2013-10-14 Robert Dewar - - * exp_prag.adb, sem_prag.adb, a-exexda.adb, s-vmexta.ads: Minor - reformatting. - -2013-10-14 Vincent Celier - - * ali.adb (Get_File_Name): New Boolean parameter May_Be_Quoted, - defaulted to False. Calls Get_Name with May_Be_Quoted. - (Get_Name): New Boolean parameter May_Be_Quoted, defaulted to - False. If May_Be_Quoted is True and first non blank charater is - '"', unquote the name. - (Scan_ALI): For the file/path name on the D line, call Get_File_Name - with May_Be_Quoted = True, as it may have been quoted. - * lib-util.adb, lib-util.ads (Write_Info_Name_May_Be_Quoted): New - procedure to write file/path names that may contain spaces and if they - do are quoted. - * lib-writ.adb (Write_ALI): Use new procedure - Write_Info_Name_May_Be_Quoted to write file/path names on D lines. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Analyze_Depends_In_Decl_Part, - Analyze_Global_In_Decl_Part, - Analyze_Pre_Post_Condition_In_Decl_Part): Install the subprogram - and its formals only when it is not already installed. - * sem_util.adb (Is_Refined_State): A state is refined when it - has a non-empty list of constituents. - -2013-10-14 Tristan Gingold - - * adaint.c: Disable __gnat_get_executable_load_address for linux. - * exp_prag.adb: Add comment in Expand_Pragma_Import_Export_Exception. - -2013-10-14 Tristan Gingold - - * s-vmexta.ads: Add comments. - -2013-10-14 Hristian Kirtchev - - * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing - for pragma Refined_State. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing - for aspect Refined_Depends. - * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): - Use Find_Related_Subprogram_Or_Body to find the related - context. Use the current scope when determining whether to - ensure proper visibility. - (Analyze_Depends_In_Decl_Part): - Add local variable Spec_Id. Update the comment on usage of - Subp_Id. Use Find_Related_Subprogram_Or_Body to find the - related context. Extract the corresponding spec of the body - (if any). Use the current scope when determining when to - ensure proper visibility. - (Analyze_Global_In_Decl_Part): - Add local variable Spec_Id. Update the comment on usage of - Subp_Id. Use Find_Related_Subprogram_Or_Body to find the - related context. Extract the corresponding spec of the body - (if any). Use the current scope when determining when to - ensure proper visibility. - (Analyze_Global_Item): Use the - entity of the subprogram spec when performing formal parameter - checks. Perform state-related checks. - (Analyze_Input_Output): - Use Is_Attribute_Result to detect 'Result. Query the - entity of a subprogram spec when verifying the prefix of - 'Result. Perform state-related checks. (Analyze_Pragma): - Merge the analysis of Refined_Depends and Refined_Global. - (Analyze_Refined_Depends_In_Decl_Part): Provide implemenation. - (Analyze_Refined_Global_In_Decl_Part): Move state-related checks - to the body of Analyze_Global_In_Decl_Part. Rename local constant - List to Items. (Analyze_Refined_Pragma): Remove circuitry to - find the proper context, use Find_Related_Subprogram_Or_Body - instead. - (Check_Function_Return): Query the entity of - the subprogram spec when verifying the use of 'Result. - (Check_In_Out_States, Check_Input_States, Check_Output_States): - Avoid using Has_Null_Refinement to detect a state with - a non-null refinement, use the Refinement_Constituents - list instead. - (Check_Matching_Constituent): Remove initialization code. - (Check_Mode_Restriction_In_Function): Use the entity of the subprogram - spec when verifying mode usage in functions. - (Collect_Global_Items): New routine. - (Collect_Subprogram_Inputs_Outputs): Add local - variable Spec_Id. Add circuitry for bodies-as-specs. Use - pragma Refined_Global when collecting for a body. - (Create_Or_Modify_Clause): Use the location of the - clause. Rename local variable Clause to New_Clause to avoid - confusion and update all occurrences. Use Is_Attribute_Result - to detect 'Result. - (Find_Related_Subprogram): Removed. - (Find_Related_Subprogram_Or_Body): New routine. - (Is_Part_Of): Move routine to top level. - (Normalize_Clause): Update the - comment on usage. The routine can now normalize a clause with - multiple outputs by splitting it. - (Collect_Global_Items): - Rename local constant List to Items. Remove the check for - a null list. - (Requires_Profile_Installation): Removed. - (Split_Multiple_Outputs): New routine. - * sem_prag.ads: Update the comments on usage of various - pragma-related analysis routines. - * sem_util.adb (Contains_Refined_State): The routine can now - process pragma [Refined_]Depends. - (Has_Refined_State): Removed. - (Has_State_In_Dependency): New routine. - (Has_State_In_Global): New routine. - (Is_Attribute_Result): New routine. - * sem_util.ads (Is_Attribute_Result): New routine. - -2013-10-14 Emmanuel Briot - - * s-regpat.adb (Compile): Fix finalization of the automaton - when its size was automatically computed to be exactly 1000 bytes. - -2013-10-14 Ed Schonberg - - * sem_ch3.adb (Complete_Private_Subtype): If the full view of - the base type is constrained, the full view of the subtype is - known to be constrained as well. - -2013-10-14 Vincent Celier - - * projects.texi: Add documentation for new attributes of package - Clean: Artifacts_In_Object_Dir and Artifacts_In_Exec_Dir. - -2013-10-14 Tristan Gingold - - * adaint.c, adaint.h (__gnat_get_executable_load_address): - New function. - * a-exexda.adb (Append_Info_Basic_Exception_Traceback): Add - executable load address (Basic_Exception_Tback_Maxlength): Adjust. - -2013-10-14 Vincent Celier - - * prj-attr.adb: New attributes in package Clean: - Artifacts_In_Exec_Dir, Artifacts_In_Object_Dir. - * prj-nmsc.adb (Process_Clean (Attributes)): New - procedure to process attributes Artifacts_In_Exec_Dir and - Artifacts_In_Object_Dir in package Clean. - * prj.ads (Project_Configuration): New components - Artifacts_In_Exec_Dir and Artifacts_In_Object_Dir. - * snames.ads-tmpl: New standard names Artifacts_In_Exec_Dir and - Artifacts_In_Object_Dir used only by gprclean. - -2013-10-14 Robert Dewar - - * exp_attr.adb (Expand_N_Attribute_Reference): Add error - entry for Library_Level attribute (which should not survive - to expansion) - * gnat_rm.texi: Document attribute Library_Level - * sem_attr.adb (Analyze_Attribute, case Library_Level): Implement - this new attribute (Set_Boolean_Result): Replaces Set_Result - (Check_Standard_Prefix): Document that Check_E0 is called - (Check_System_Prefix): New procedure - * snames.ads-tmpl: Add entry for Library_Level attribute - -2013-10-14 Robert Dewar - - * exp_ch6.adb, sinfo.ads: Minor reformatting. - * checks.adb (Overlap_Check): Use identifier casing in messages. - -2013-10-14 Robert Dewar - - * einfo.ads, einfo.adb (Default_Aspect_Component_Value): Is on base type - only. - * exp_aggr.adb (Expand_Array_Aggregate): Handle proper - initialization of <> component. - * exp_ch3.adb, exp_tss.adb: Minor reformatting - * sem_ch13.adb (Default_Aspect_Component_Value, Default_Aspect_Value): - Is on base type only. - * sinfo.ads: Minor comment revision. - -2013-10-14 Robert Dewar - - * g-decstr.adb (Decode_Wide_Wide_Character): Fix failure - to detect invalid sequences where longer than necessary - sequences are used for encoding. - (Validate_Wide_Character): - Call Decode_Wide_Character to get the above validations. - (Validate_Wide_Wide_Character): Same fix - * g-decstr.ads: Add documentation making it clear that the UTF-8 - implementation here recognizes all valid UTF-8 sequences, rather - than the well-formed subset corresponding to characters defined - in Unicode. - (Next_Wide_Character): Remove comment about this - being more efficient than Decode_Wide_Character (because this - no longer the case). - (Prev_Wide_Character): Add note that valid encoding is assumed. - -2013-10-14 Robert Dewar - - * a-wichha.adb (Character_Set_Version): New function. - * a-wichha.ads: Remove comments for pragma Pure (final RM has - this). - (Character_Set_Version): New function. - * gnat_rm.texi: Update doc. - -2013-10-14 Hristian Kirtchev - - * einfo.adb: Flag263 is now known as Has_Null_Refinement. - (Has_Null_Refinement): New routine. - (Set_Has_Null_Refinement): New routine. - (Write_Entity_Flags): Output the status of flag - Has_Null_Refinement. - * einfo.ads: Add new flag Has_Null_Refinement along with - comment on usage and update all nodes subject to the flag. - (Has_Null_Refinement): New routine along with pragma Inline. - (Set_Has_Null_Refinement): New rouitine along with pragma Inline. - * sem_prag.adb (Analyze_Constituent): Mark a state as having - a null refinement when the sole constituent is "null". - (Analyze_Global_List): Handle null input/output items. - (Analyze_Refined_Global_In_Decl_Part): Add local variable - Has_Null_State. Add logic to handle combinations of states - with null refinements and null global lists and/or items. - (Check_In_Out_States, Check_Input_States, Check_Output_States): - Use attribute Has_Null_Refinement to detect states with - constituents. - (Check_Refined_Global_List): Handle null input/output items. - (Process_Global_Item): Handle states with null refinements. - (Process_Global_List): Handle null input/output items. - -2013-10-14 Robert Dewar - - * freeze.adb (Freeze_Entity): Reset Is_True_Constant for - aliased object - * gnat_ugn.texi: Update doc on aliased variables and constants. - -2013-10-14 Ed Schonberg - - * exp_pakd.adb (Expand_Packed_Element_Reference): If the - reference is an actual in a call, the prefix has not been fully - expanded, to account for the additional expansion for parameter - passing. the prefix itself is a packed reference as well, - recurse to complete the transformation of the prefix. - -2013-10-14 Eric Botcazou - - * exp_dbug.adb (Debug_Renaming_Declaration): Do not - materialize the entity when the renamed object contains an - N_Explicit_Dereference. - * sem_ch8.adb (Analyze_Object_Renaming): - If the renaming comes from source and the renamed object is a - dereference, mark the prefix as needing debug information. - -2013-10-14 Doug Rupp - - * system-vxworks-arm.ads (Stack_Check_Probes, Stack_Check_Limits): - Enable Stack Probes, Disable Stack Limit Checking. - * init.c [VxWorks] (__gnat_inum_to_ivec): Caste return value. - (__gnat_map_signal): Fix signature. - (__gnat_error_handler): Make - static, fix signature, remove prototype, fix prototype warning. - [ARMEL and VxWorks6] (__gnat_map_signal): Check and re-arm guard - page for storage_error. - * exp_pakd.adb: Minor reformatting. - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Analyze_Global_In_Decl_Part): Remove local - variable Contract_Seen. Add local variable Proof_Seen. - (Analyze_Global_List): Remove the processing for mode - Contract_In. Add support for mode Proof_In. - (Analyze_Pragma): Update the grammar of pragmas Global and - Refined_Global. - * snames.ads-tmpl: Remove predefined name Contract_In. Add - predefined name Proof_In. - -2013-10-14 Robert Dewar - - * exp_prag.adb (Expand_Pragma_Check): Generate proper string - for invariant - * gnat_rm.texi: Add documentation for pragmas - Type_Invariant[_Class] - * par-prag.adb: Add entries for pragmas Type_Invariant[_Class] - * sem_ch13.adb: Minor reformatting - * sem_prag.adb: Implement pragmas Type_Invariant[_Class] - * snames.ads-tmpl: Add entries for pragmas Type_Invariant[_Class] - -2013-10-14 Johannes Kanig - - * debug.adb: Release now unused debug switches that were only - relevant for gnat2why backend, not the frontend - * frontend.adb (Frontend) Do not stop when -gnatd.H is present, - was unused - -2013-10-14 Hristian Kirtchev - - * sem_prag.adb (Analyze_Global_Item): Allow - references to enclosing formal parameters. - -2013-10-14 Thomas Quinot - - * einfo.adb (Equivalent_Type): Add missing case - E_Access_Subprogram_Type in guard (for remote access to - subprograms) * sem_ch8.adb (Find_Direct_Name, Find_Expanded_Name): - Add missing guards to account for the presence of RAS types - that have already been replaced with the corresponding fat - pointer type. - -2013-10-14 Hristian Kirtchev - - * aspects.adb: Add an entry in table Canonical_Aspect for - Initializes. - * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, - Aspect_Names and Aspect_Delay for Initializes. - * atree.ads, atree.adb (Ekind_In): New seven argument versions of the - routines. - * einfo.adb: Remove Refined_State_Pragma from the list of node - usage. Finalizer is now at position 28. - (Contract): Package - and package bodies now have a contract. - (Finalizer): Update - the assertion and node usage. - (Get_Pragma): Update the Is_CDG - flag to include Abstract_State, Initializes and Refined_State. - (Refined_State_Pragma): Removed. - (Set_Contract): Package and - package bodies now have a contract. - (Set_Finalizer): Update the - assertion and node usage. - (Set_Refined_State_Pragma): Removed. - (Write_Field8_Name): Remove the output for Refined_State_Pragma. - (Write_Field24_Name): Remove the output for Finalizer. Package - and package bodies now have a contract. - (Write_Field28_Name): - Add output for Finalizer. - * einfo.ads: Update the documentation and usage in entities - of attribute Contract. Update the node position and usage in - entities of attribute Finalizer. Remove the documentation - and usage in entities for attribute Refined_State_Pragma. - (Refined_State_Pragma): Removed along with pragma Inline. - (Set_Refined_State_Pragma): Removed along with pragma Inline. - * par-prag.adb: Add Initializes to the pragmas that do not - require special processing by the parser. - * sem_ch3.adb (Analyze_Declarations): Add local variable - Prag. Update the retrieval of pragma Refined_State. Analyze - aspect/pragma Initializes at the end of the visible declarations - of the related package. - * sem_ch6.adb (Analyze_Subprogram_Body_Contract): - Add local variables Ref_Depends and Ref_Global. Analyze - pragmas Refined_Global and Refined_Depends in that order. - (Analyze_Subprogram_Contract): Add local variables Depends and - Global. Analyze pragmas Global and Depends in that order. - * sem_ch7.adb (Analyze_Package_Body_Helper): Package - bodies now have a contract. Move the analysis of the aspect - specifications after the defining entity has been decorated. - (Analyze_Package_Declaration): Packages now have a contract. Move - the analysis of the aspect specifications after the defining - entity has been decorated. - * sem_ch12.adb (Analyze_Generic_Package_Declaration): Packages - now have contracts. - * sem_ch13.adb (Analyze_Pragma): Code cleanup for aspect - Abstract_State. Add processing for aspect Initializes. - (Check_Aspect_At_Freeze_Point): Add an entry for Initializes. - * sem_prag.adb: Use Get_Pragma_Arg to extract the expression - of a pragma argument. Add an entry in table Sig_Flags for - Initializes. - (Analyze_Initializes_In_Decl_Part): New routine. - (Analyze_Pragma): Check the declaration order of pragmas - Abstract_State and Initializes. Abstract_State is now part of - the package contract. Analyze pragma Initializes. Check for - duplicate Refined_State pragma. Refined_State is now part of - the package contract. - (Check_Declaration_Order): New routine. - (Check_Test_Case): Alphabetized. - * sem_prag.ads (Analyze_Initializes_In_Decl_Part): New routine. - * sem_util.adb (Add_Contract_Item): Rename formal Subp_Id - to Id. This routine can now support contracts on packages and - package bodies. - * sem_util.ads (Add_Contract_Item): Rename formal Subp_Id to - Id. Update comment on usage. - * sinfo.ads: Update the usage of N_Contract nodes. - * snames.ads-tmpl: Add predefined name Initializes. Add new - pragma id for Initializes. - -2013-10-13 Nicolas Roche - Eric Botcazou - - * gcc-interface/Make-lang.in (ada/%.o): Replace individual rules with - generic rule and add $(POSTCOMPILE). - (ADA_DEPS): New. - (.adb.o): Add @$(ADA_DEPS). - (.ads.o): Likewise. - (ada/a-except.o): Likewise. - (ada/s-excdeb.): Likewise. - (ada/s-assert.o): Likewise. - (ada/a-tags.o): Likewise. - (ada_generated_files): New variable. - Use them as dependency order for GNAT1_ADA_OBJS and GNATBIND_OBJS. - (ADA_DEPFILES): New variable. - Include them. - (ada_OBJS): Define. - -2013-10-13 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Force all local - variables with aggregate types in memory if not optimizing. - -2013-10-13 Hristian Kirtchev - - * sem_prag.adb (Check_Mode): Do - not emit an error when we are looking at inputs and - the item is an unconstrained or tagged out parameter. - (Check_Mode_Restriction_In_Enclosing_Context): Use Get_Pragma - to find whether the context is subject to aspect/pragma Global. - (Collect_Subprogram_Inputs_Outputs): Unconstrained or tagged - out parameters are now considered inputs. Use Get_Pragma to - find wheher the subprogram is subject to aspect/pragma Global. - (Is_Unconstrained_Or_Tagged_Item): New routine. - -2013-10-13 Thomas Quinot - - * einfo.ads: Minor reformatting. - * gcc-interface/Make-lang.in: Update dependencies. - -2013-10-13 Robert Dewar - - * gnat_rm.texi: Add documentation for pragmas Pre[_Class] - Post[_Class]. - * par-ch2.adb (Skip_Pragma_Semicolon): Handle extra semicolon nicely. - * par-prag.adb: Add entries for pragmas Pre[_Class] and - Post[_Class]. - * sem_prag.adb: Add handling of pragmas Pre[_Class] and - Post[_Class]. - * sem_util.adb (Original_Aspect_Name): Moved here from - Sem_Prag.Original_Name, and modified to handle pragmas - Pre/Post/Pre_Class/Post_Class. - * sem_util.ads (Original_Aspect_Name): Moved here from - Sem_Prag.Original_Name. - * snames.ads-tmpl: Add entries for pragmas Pre[_Class] and - Post[_Class]. - -2013-10-13 Robert Dewar - - * einfo.adb, sem_ch6.adb: Minor reformatting. - -2013-10-13 Hristian Kirtchev - - * einfo.adb: Add node/list usage for Refined_State - and Refinement_Constituents. - (Get_Pragma): Update the - initialization of Is_CDG to include Refined_Global and - Refined_Depends. Rename constant Delayed to In_Contract and update - all of its occurrences. - (Is_Non_Volatile_State): New routine. - (Is_Volatile_State): Removed. - (Refined_State): New routine. - (Refinement_Constituents): New routine. - (Set_Refined_State): New routine. - (Set_Refinement_Constituents): New routine. - (Write_Field8_Name): Add output for Refinement_Constituents. - (Write_Field10_Name): Add output for Refined_State. - * einfo.ads: Add new synthesized attribute Is_Non_Volatile_State. - Remove synthesized attribute Is_Volatile_State. Add new - attributes Refined_State and Refinement_Constituents along with - usage in nodes. - (Get_Pragma): Update the comment on usage. - (Is_Non_Volatile_State): New routine. - (Is_Volatile_State): Removed. - (Refined_State): New routine and pragma Inline. - (Refinement_Constituents): New routine and pragma Inline. - (Set_Refined_State): New routine and pragma Inline. - (Set_Refinement_Constituents): New routine and pragma Inline. - * elists.ads, elists.adb (Clone): Removed. - (New_Copy_Elist): New routine. - (Remove): New routine. - * sem_ch3.adb (Analyze_Declarations): Use Defining_Entity - to get the entity of the subprogram [body]. - (Analyze_Object_Declaration): Add initialization for - Refined_State. - * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing - for Refined_Global and Refined_Depends. Emit an error when - the body requires Refined_Global, but the aspect/pragma is - not present. - * sem_ch6.ads (Analyze_Subprogram_Body_Contract): Change - procedure signature and add comment on usage. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing - for aspect Refined_Global. - * sem_prag.adb (Analyze_Abstract_State): Add initialization - of attributes Refined_State and Refinement_Constituents. - (Analyze_Depends_In_Decl_Part, Analyze_Global_In_Decl_Part, - Analyze_Contract_Cases_In_Decl_Part): Remove local - constant Arg1. - (Analyze_Pragma): Add processing for pragma - Refined_Global. The analysis of Refined_Post and Refined_Pre - has been merged. Update an error message in the processing of - pragma Refined_State. - (Analyze_Refined_Global_In_Decl_Part): Provide implementation. - (Analyze_Refined_Pragma): New routine. - (Analyze_Refined_Pre_Post_Condition): Removed. - (Analyze_Refined_State_In_Decl_Part): Update the call to Clone. - (Analyze_Refinement_Clause): Make State_Id visible to all - nested subprogram. - (Check_Matching_Constituent): Establish - a relation between a refined state and its constituent. - (Collect_Hidden_States_In_Decls): Remove ??? comment. Look at - the entity of the object declaration to establish its kind. - * sem_util.adb: Alphabetize with and use clauses. - (Contains_Refined_State): New routine. - * sem_util.ads (Contains_Refined_State): New routine. - -2013-10-13 Thomas Quinot - - * scos.ads: Minor documentation clarification. - -2013-10-13 Thomas Quinot - - * s-oscons-tmplt.c (CLOCK_RT_Ada): Set to CLOCK_MONOTONIC when - building on AIX 5.3 or later, and to CLOCK_REALTIME on older - versions of AIX. - * init.c (pthread_condattr_setclock): Remove now useless weak symbol. - * thread.c(__gnat_pthread_condattr_setup): Remove bogus AIX 5.2 - compatibility shim. - * s-osinte-aix.ads(clock_id_t): Fix C mapping (this is a 64-bit - type). - (clock_gettime): Import from C runtime library. - * s-osinte-aix.adb (clock_gettime): Remove bogus emulation body, - this routine is provided by the system in current supported - versions of AIX. - -2013-10-13 Robert Dewar - - * sem_ch3.adb: Minor reformatting. - -2013-10-13 Ed Schonberg - - * freeze.adb (Freeze_Entity): For a function whose return type - is incomplete, do not replace the type with the full view if the - type is a limited view. In that case the full view appears in a - different unit, and the back-end will retrieve it at the proper - elaboration point. - -2013-10-13 Yannick Moy - - * exp_spark.adb (Expand_SPARK_Call): Do not introduce temporaries for - actuals. - -2013-10-13 Ed Schonberg - - * sem_ch3.adb: in Ada 2012 access_to_function types can have - in-out parameters. - (Derived_Type_Declaration): SPARK restriction - must be flagged on the original node, since it may have been - written as a subtype declaration. - (Analyze_Subtype_Declaration): Do not enter name of - entity in declaration if it is the current entity, because it may - have been inserted in a previous analysis and it appears in the - else_part of an if-statement that is rewritten during expansion. - -2013-10-13 Yannick Moy - - * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Remove procedure. - (Expand_SPARK): Remove call to Expand_SPARK_N_Attribute_Reference and - Expand_SPARK_N_Simple_Return_Statement. - (Expand_SPARK_N_Simple_Return_Statement, - Expand_SPARK_Simple_Function_Return): Remove procedures. - -2013-10-13 Vincent Celier - - * gnat_ugn.texi: Minor editing. - -2013-10-13 Ed Schonberg - - * sem_ch3.adb (Check_Abstract_Overriding): If a synchronized - operation implements an interface primitive, mark the operation - as referenced, to prevent usually spurious messages about unused - entities: such operations are called in dispatching select - statements that are not visible to the compiler. - -2013-10-13 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment. - -2013-10-11 Jakub Jelinek - - * gcc-interface/utils.c (DEF_FUNCTION_TYPE_8): Define. - -2013-10-10 Robert Dewar - - * par-ch6.adb (Check_Junk_Semicolon_Before_Return): Remove - junk code. - -2013-10-10 Javier Miranda - - * sem_ch13.adb (Freeze_Entity_Checks): Avoid - loosing errors on CPP entities in -gnatc mode. - -2013-10-10 Robert Dewar - - * sem_ch5.adb (Analyze_If_Statement): Only diagnose redundant - if from source. - -2013-10-10 Robert Dewar - - * restrict.adb (Check_SPARK_Restriction): Refine test (don't - automatically go to the original node). - * sem_ch11.adb (Analyze_Raise_Statement): Only raise - statements that come from source violate SPARK restrictions. - (Analyze_Raise_xxx_Error): Same fix. - * sem_ch3.adb (Analyze_Object_Declaration): Check OK SPARK - initialization on original node, not on possibly rewritten - expression. - * sem_ch4.adb (Analyze_If_Expression): Only if expressions that - come from source violate SPARK mode restrictions. - -2013-10-10 Robert Dewar - - * gnat_ugn.texi: Fix confusing documentation for -gnatyM. - -2013-10-10 Yannick Moy - - * errout.adb (Compilation_Errors): In formal verification mode, - always return False. - -2013-10-10 Hristian Kirtchev - - * sem_prag.adb (Collect_Hidden_States_In_Decls): Only consider source - non-constant objects. - -2013-10-10 Hristian Kirtchev - - * aspects.adb: Add an entry in table Canonical_Aspect for - Refined_State. - * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, - Aspect_Names and Aspect_Delay for Refined_State. - * einfo.adb: Add with and use clauses for Elists. - Remove Refined_State from the list of node usage. - Add Refined_State_Pragma to the list of node usage. - (Has_Null_Abstract_State): New routine. - (Refined_State): Removed. - (Refined_State_Pragma): New routine. - (Set_Refined_State): Removed. - (Set_Refined_State_Pragma): New routine. - (Write_Field8_Name): Add output for Refined_State_Pragma. - (Write_Field9_Name): Remove the output for Refined_State. - * einfo.ads: Add new synthesized attribute Has_Null_Abstract_State - along with usage in nodes. Remove attribute Refined_State along - with usage in nodes. Add new attribute Refined_State_Pragma along - with usage in nodes. - (Has_Null_Abstract_State): New routine. - (Refined_State): Removed. - (Refined_State_Pragma): New routine. - (Set_Refined_State): Removed. - (Set_Refined_State_Pragma): New routine. - * elists.adb (Clone): New routine. - * elists.ads (Clone): New routine. - * par-prag.adb: Add Refined_State to the pragmas that do not - require special processing by the parser. - * sem_ch3.adb: Add with and use clause for Sem_Prag. - (Analyze_Declarations): Add local variables Body_Id, Context and - Spec_Id. Add processing for delayed aspect/pragma Refined_State. - * sem_ch13.adb (Analyze_Aspect_Specifications): Update the - handling of aspect Abstract_State. Add processing for aspect - Refined_State. Remove the bizzare insertion policy for aspect - Abstract_State. - (Check_Aspect_At_Freeze_Point): Add an entry for Refined_State. - * sem_prag.adb: Add an entry to table Sig_Flags - for pragma Refined_State. - (Add_Item): Update the - comment on usage. The inserted items need not be unique. - (Analyze_Contract_Cases_In_Decl_Part): Rename variable Restore to - Restore_Scope and update all its occurrences. - (Analyze_Pragma): - Update the handling of pragma Abstract_State. Add processing for - pragma Refined_State. - (Analyze_Pre_Post_Condition_In_Decl_Part): - Rename variable Restore to Restore_Scope and update all its - occurrences. - (Analyze_Refined_State_In_Decl_Part): New routine. - * sem_prag.ads (Analyze_Refined_State_In_Decl_Part): New routine. - * snames.ads-tmpl: Add new predefined name for Refined_State. Add - new Pragma_Id for Refined_State. - -2013-10-10 Ed Schonberg - - * sem_ch10.adb (Install_Limited_Withed_Unit): handle properly the - case of a record declaration in a limited view, when the record - contains a self-referential component of an anonymous access type. - -2013-10-10 Thomas Quinot - - * exp_ch4.adb (Process_Transient_Object): For any context other - than a simple return statement, insert the finalization action - after the context, not as an action on the context (which will - get evaluated before it). - -2013-10-10 Hristian Kirtchev - - * einfo.adb (Write_Field19_Name): Correct the - string name of attribute Default_Aspect_Value. - -2013-10-10 Ed Schonberg - - * sem_type.adb (Interface_Present_In_Ancestor): The progenitor - in a type declaration may be an interface subtype. - -2013-10-10 Robert Dewar - - * sinfo.ads (Do_Range_Check): Add special note on handling of - range checks for Succ and Pred. - -2013-10-10 Robert Dewar - - * erroutc.adb (Output_Msg_Text): Remove VMS special handling. - -2013-10-10 Robert Dewar - - * a-chahan.ads, a-chahan.adb (Is_Line_Terminator): New function - (Is_Mark): New function. - (Is_Other_Format): New function. - (Is_Punctuation_Connector): New function. - (Is_Space): New function. - -2013-10-10 Robert Dewar - - * sem_aggr.adb (Resolve_Array_Aggregate): Redo duplicate/missing - choice circuit. Was not quite right in some cases, which showed - up in ACATS test B43201C. - * sem_attr.adb (Address_Checks): Make sure name is set right - for some messages issued. - * mlib-prj.adb: Minor code reorganization. - * gnat_ugn.texi: Remove special VMS doc for tagging of warning msgs. - * exp_ch9.adb: Minor reformatting. - -2013-10-10 Tristan Gingold - - * lib-writ.adb (Write_Unit_Information): Adjust previous patch. - -2013-10-10 Robert Dewar - - * sem_ch5.adb (Analyze_If_Statement): Warn on redundant if - statement. - * sem_util.ads, sem_util.adb (Has_No_Obvious_Side_Effects): New - function. - -2013-10-10 Ed Schonberg - - * exp_ch9.adb (Expand_N_Timed_Entry_Call): Simplify expansion - for the case of a dispatching trigger: there is no need to - duplicate the code or create a subprogram to encapsulate the - triggering statements. This allows exit statements in the - triggering statements, that refer to enclosing loops. - -2013-10-10 Robert Dewar - - * freeze.adb: Minor reformatting. - * sem_ch13.adb (Freeze_Entity_Checks): New procedure - (Analyze_Freeze_Entity): Call Freeze_Entity_Checks - (Analyze_Freeze_Generic_Entity): Call Freeze_Entity_Checks. - * sinfo.ads: Add syntax for sprint for Freeze_Generic_Entity. - * sprint.ads: Add syntax for freeze generic entity node. - -2013-10-10 Robert Dewar - - * einfo.adb, einfo.ads: Minor comment updates. - -2013-10-10 Robert Dewar - - * lib-writ.adb (Write_Unit_Information): Fatal error if linker - options are detected in a predefined generic unit. - -2013-10-10 Thomas Quinot - - * s-oscons-tmplt.c (CLOCK_REALTIME): Always define, possibly using - a dummy placeholder value. - (NEED_PTHREAD_CONDATTR_SETCLOCK): Remove, not needed anymore. - * thread.c: Adjust #if test accordingly. - -2013-10-10 Hristian Kirtchev - - * exp_ch6.adb (Consequence_Error): Generate an - implicit if statement. - (Expand_Contract_Cases): Generate an implicit if statement. - (Process_Contract_Cases): Do not expand Contract_Cases when no code - is being generated. - -2013-10-10 Robert Dewar - - * sem_attr.adb (Address_Checks): New procedure. - -2013-10-10 Ed Schonberg - - * sinfo.ads, sinfo.adb: New Node Freeze_Generic_Entity, to trigger - semantic actions at the proper point for entities that previously - had no explicit freeze point. - * freeze.adb (Freeze_Generic_Entities): generate new nodes to - indicate the point at which semantic checks can be performed on - entities declared in generic packages. - * sem_ch13.ads, sem_ch13.adb: New procedure - Analyze_Freeze_Generic_Entity. - * exp_util.adb (Insert_Actions): Treat new node like Freeze_Entity. - * sem.adb (Analyze): Call Analyze_Freeze_Generic_Entity. - * sprint.adb (Sprint_Node): display Analyze_Freeze_Generic_Entity. - * gcc-interface/trans.c: Ignore Analyze_Freeze_Generic_Entity. - * gcc-interface/Make-lang.in: Update dependencies. - -2013-10-10 Robert Dewar - - * sem_aggr.adb (Resolve_Array_Aggregate): Identify duplicated - cases. - -2013-10-10 Robert Dewar - - * sem_ch9.adb (Analyze_Task_Body): Aspects are illegal - (Analyze_Protected_Body): Aspects are illegal. - -2013-10-10 Robert Dewar - - * sem_ch6.adb, sem_ch13.adb: Minor reformatting. - * sem_case.adb (Check_Choices): Fix bad listing of missing - values from predicated subtype case (Check_Choices): List - duplicated values. - * errout.adb (Set_Msg_Text): Process warning tags in VMS mode - * erroutc.adb (Output_Msg_Text): Handle VMS warning tags - * gnat_ugn.texi: Document /WARNINGS=TAG_WARNINGS for VMS - * ug_words: Add entries for -gnatw.d and -gnatw.D - * vms_data.ads: Add [NO]TAG_WARNINGS for -gnatw.D/-gnatw.d - * lib-writ.ads: Documentation fixes - -2013-10-10 Robert Dewar - - * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads - (Is_Other_Format): New name for Is_Other. - (Is_Punctuation_Connector): New name for Is_Punctuation - -2013-10-10 Hristian Kirtchev - - * aspects.adb: Add entries in table Canonical_Aspects for aspects - Refined_Depends and Refined_Global. - * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, - Aspect_Names, Aspect_Declay, Aspect_On_Body_Or_Stub_OK for - aspects Refined_Depends and Refined_Global. - * einfo.adb (Contract): Subprogram bodies are now valid owners - of contracts. - (Set_Contract): Subprogram bodies are now valid - owners of contracts. - (Write_Field24_Name): Output the contract - attribute for subprogram bodies. - * exp_ch6.adb (Expand_Subprogram_Contract): New routine. - * exp_ch6.ads (Expand_Subprogram_Contract): New routine. - * par-prag.adb: Pragmas Refined_Depends and Refined_Global do - not require any special processing by the parser. - * sem_ch3.adb (Adjust_D): Renamed to Adjust_Decl. - (Analyze_Declarations): Code reformatting. Analyze the contract - of a subprogram body at the end of the declarative region. - * sem_ch6.adb (Analyze_Generic_Subprogram_Body): - Subprogram bodies can now have contracts. Use - Expand_Subprogram_Contract to handle the various contract - assertions. - (Analyze_Subprogram_Body_Contract): New null routine. - (Analyze_Subprogram_Body_Helper): Subprogram bodies can now have - contracts. Use Expand_Subprogram_Contract to handle the various - contract assertions. - (Analyze_Subprogram_Contract): Add local - variable Nam. Update the call to Analyze_PPC_In_Decl_Part. Capture - the pragma name in Nam. - (Process_PPCs): Removed. - * sem_ch6.ads (Analyze_Subprogram_Body_Contract): New routine. - (Analyze_Subprogram_Contract): Update the comment on usage. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add null - implementations for aspects Refined_Depends and Refined_Global. - (Check_Aspect_At_Freeze_Point): Aspects Refined_Depends and - Refined_Global do not need to be checked at the freeze point. - * sem_prag.adb: Add entries in table Sig_Flags - for pragmas Refined_Depends and Refined_Global. - (Analyze_Contract_Cases_In_Decl_Part): Add local - variable Restore. Use Restore to pop the scope. - (Analyze_Depends_In_Decl_Part): Add local variable Restore. Use - Restore to pop the scope. - (Analyze_Global_In_Decl_List): Add local variable Restore. Use Restore - to pop the scope. - (Analyze_PPC_In_Decl_Part): Renamed to - Analyze_Pre_Post_Condition_In_Decl_Part. - (Analyze_Pragma): - Add null implementations for pragmas Refined_Depends and - Refined_Global. Refined_Pre and Refined_Post are now - handled by routine Analyze_Refined_Pre_Post_Condition - exclusively. - (Analyze_Refined_Depends_In_Decl_Part): New - null routine. - (Analyze_Refined_Global_In_Decl_Part): - New null routine. - (Analyze_Refined_Pre_Post): - Renamed to Analyze_Refined_Pre_Post_Condition. - (Analyze_Refined_Pre_Post_Condition): Analyze the boolean - expression. - (Check_Precondition_Postcondition): Update the call - to Analyze_PPC_In_Decl_Part. - * sem_prag.ads: Add entries in table - Pragma_On_Body_Or_Stub_OK for pragmas Refined_Depends - and Refined_Global. - (Analyze_PPC_In_Decl_Part): Renamed - to Analyze_Pre_Post_Condition_In_Decl_Part. Update the - comment on usage. - (Analyze_Refined_Depends_In_Decl_Part): New routine. - (Analyze_Refined_Global_In_Decl_Part): New routine. - (Analyze_Test_Case_In_Decl_Part): Update the comment on usage. - * sem_util.adb (Add_Contract_Item): Rename formal Item to Prag - and update all occurrences. Subprogram body contracts can now - contain pragmas Refined_Depends and Refined_Global. - * sem_util.ads (Add_Contract_Item): Rename formal Item to - Prag. Update the comment on usage. - * sinfo.ads: Update the comment on structure and usage of - N_Contract. - * snames.ads-tmpl: Add new predefined names for Refined_Depends - and Refined_Global. Add entries in table Pragma_Id for - Refined_Depends and Refined_Global. - -2013-10-10 Robert Dewar - - * types.ads: Minor reformatting. - -2013-10-10 Thomas Quinot - - * s-taprop-posix.adb: Add missing comment. - -2013-10-10 Robert Dewar - - * freeze.adb (Freeze_Record_Type): Move choice checking to - Analyze_Freeze_Entity (Freeze_Record_Type): Make sure all choices - are properly frozen - * sem_case.adb (Check_Choices): Remove misguided attempt to - freeze choices (this is now done in Freeze_Record_Type where - it belongs). - (Check_Choices): Remove some analyze/resolve calls - that are redundant since they are done in Analyze_Choices. - * sem_ch13.adb (Analyze_Freeze_Entity): Do the error - checking for choices in variant records here (moved here from - Freeze.Freeze_Record_Type) - -2013-10-10 Thomas Quinot - - * s-oscons-tmplt.c, s-taprop-posix.adb (CLOCK_REALTIME): Always define, - possibly using a dummy placeholder value. - (Compute_Deadline): For the case of an - Absolute_Calendar deadline, if the target uses another clock - than CLOCK_REALTIME as CLOCK_RT_Ada, compensate for possible - different epoch. - -2013-10-10 Ed Schonberg - - * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully - qualified reference to a generic child unit within itself, - in an instantiation. - -2013-10-10 Pascal Obry - - * prj-conf.adb: Minor typo fixes in comment. - -2013-10-10 Thomas Quinot - - * s-taprop-posix.adb (Compute_Deadline): New local subprogram, - factors common code between Timed_Sleep and Timed_Delay. - -2013-10-10 Robert Dewar - - * freeze.adb (Freeze_Record_Type): Don't replace others if - expander inactive. This avoids clobbering the ASIS tree in - -gnatct mode. - -2013-10-10 Robert Dewar - - * sem_res.adb (Resolve_Op_Expon): Avoid crash testing for - fixed-point case in preanalysis mode (error will be caught during - full analysis). - -2013-10-10 Robert Dewar - - * gnat_rm.texi: Refined_Pre and Refined_Post are now allowed as - assertion identifiers for pragma Assertion_Policy. - * sem_prag.adb (Is_Valid_Assertion_Kind): Add Refined_Pre/Refined_Post - * sem_ch13.adb: Minor reformatting. - -2013-10-10 Pascal Obry - - * prj-conf.adb: Code refactoring. - -2013-10-10 Hristian Kirtchev - - * einfo.adb: Remove Integrity_Level from the node usage list. - (Has_Option): Update the implementation to match - the new terminology. - (Has_Property): Renamed to Has_Option. - (Integrity_Level): Removed. - (Is_External_State): New routine. - (Is_Input_Only_State): Use Has_Option to determine whether a state - is Input_Only. (Is_Input_State): Renamed to Is_Input_Only_State. - (Is_Output_Only_State): Use Has_Option to determine whether - a state is Output_Only. - (Is_Output_State): Renamed to - Is_Output_Only_State. - (Is_Volatile_State): Use Has_Option to determine whether a state is - volatile. - (Set_Integrity_Level): Removed. - (Write_Field8): Remove the entry for Integrity_Level. - * einfo.ads: Remove Integrity_Level along with its documentation - and usage in nodes. Rename Is_Input_State to Is_Input_Only_State. - Rename Is_Output_State to Is_Output_Only_State. Update the - documentation of Is_Volatile_State. Update the node structure of - E_Abstract_Entity. - (Integrity_Level): Removed along with pragma Inline. - (Is_External_State): New routine. - (Is_Input_State): Renamed to Is_Input_Only_State. - (Is_Output_State): Renamed to Is_Output_Only_State. - (Set_Integrity_Level): Removed along with pragma Inline. - * sem_prag.adb (Analyze_Pragma): Update the checks regarding - global items and abstract state modes. Update the implementation - of pragma Abstract_State to reflect the new rules and terminology. - * snames.ads-tmpl: Remove the predefined name for Integrity - level. Add new predefined names for Input_Only, Non_Volatile, - Output_Only and Part_Of. - -2013-10-10 Ed Schonberg - - * lib-xref.adb (Generate_Reference): Do not generate a reference - within a _postcondition procedure: a proper source reference has - already been generated when pre- analyzing the original aspect - specification, and the use of a formal in a pre/postcondition - should not count as a proper use in a subprogram body. - -2013-10-10 Robert Dewar - - * sem_eval.adb (Why_Non_Static): Fix bomb for deferred constant - case - -2013-10-10 Hristian Kirtchev - - * aspects.adb: Add an entry for Aspect_Refined_Post in table - Canonical_Aspect. - * aspects.ads: Add an entry for Aspect_Refined_Post in tables - Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay, - Aspect_On_Body_Or_Stub_OK. Update the comment on the use of - table Aspect_On_Body_Or_Stub_OK. - * par-prag.adb: Add pragma Refined_Post to the list of pragmas - that do not require special processing by the parser. - * sem_attr.adb (Analyze_Attribute): Add special analysis for - attributes 'Old and 'Result when code generation is disabled and - they appear in aspect/pragma Refined_Post. - (In_Refined_Post): New routine. - * sem_ch6.adb (Analyze_Expression_Function): Move various - aspects and/or pragmas that apply to an expression function to the - corresponding spec or body. - (Collect_Body_Postconditions): New routine. - (Process_PPCs): Use routine Collect_Body_Postconditions - to gather all postcondition pragmas. - * sem_ch10.adb (Analyze_Proper_Body): Use routine - Relocate_Pragmas_To_Body to move all source pragmas that follow - a body stub to the proper body. - (Move_Stub_Pragmas_To_Body): Removed. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing - for aspect Refined_Post. - (Check_Aspect_At_Freeze_Point): Aspect - Refined_Post does not need delayed processing at the freeze point. - * sem_prag.adb: Add an entry for pragma Refined_Post in - table Sig_Flags. - (Analyze_Pragma): Add processing for pragma - Refined_Post. Update the processing of pragma Refined_Pre - to use common routine Analyze_Refined_Pre_Post. - (Analyze_Refined_Pre_Post): New routine. - (Relocate_Pragmas_To_Body): New routine. - * sem_prag.ads: Table Pragma_On_Stub_OK is now known as - Pragma_On_Body_Or_Stub_OK. Update the comment on usage of - table Pragma_On_Body_Or_Stub_OK. - (Relocate_Pragmas_To_Body): New routine. - * snames.ads-tmpl: Add new predefined name for Refined_Post. Add - new Pragma_Id for Refined_Post. - -2013-10-10 Robert Dewar - - * exp_ch3.adb (Expand_N_Variant_Part): Now null, expansion of - last choice to others is moved to Freeze_Record_Type. - * freeze.adb (Freeze_Record_Type): Expand last variant to others - if necessary (moved here from Expand_N_Variant_Part - -2013-10-10 Robert Dewar - - * lib-xref-spark_specific.adb, par-ch13.adb, sem_prag.adb, sem_prag.ads, - sem_ch12.adb, sem_attr.adb, sem_ch6.adb, sem_ch13.adb, a-sequio.adb, - s-atocou-builtin.adb: Minor reformatting. - -2013-10-10 Thomas Quinot - - * s-oscons-tmplt.c (NEED_PTHREAD_CONDATTR_SETCLOCK): This - constant needs to be output to s-oscons.h, as it is tested - by init.c. - -2013-10-10 Robert Dewar - - * exp_ch3.adb (Expand_N_Variant_Part): Don't expand choices, too early - * exp_ch5.adb (Expand_N_Case_Statement): Use new Has_SP_Choice - flag to avoid expanding choices when not necessary. - * exp_util.adb: Minor reformatting - * freeze.adb (Freeze_Record_Type): Redo expansion of variants - * sem_aggr.adb: Minor reformatting - * sem_case.ads, sem_case.adb: Major rewrite, separating Analysis and - Checking of choices. - * sem_ch3.adb (Analyze_Variant_Part): Rewrite to call new - Analyze_Choices. - * sem_ch4.adb (Analyze_Case_Expression): Call Analyze_Choices - and Check_Choices - * sem_ch5.adb (Analyze_Case_Statement): Call Analyze_Choices - and Check_Choices - * sem_util.adb: Minor reformatting - * sinfo.ads, sinfo.adb (Has_SP_Choice): New flag. - -2013-10-10 Vincent Celier - - * mlib-prj.adb (Build_Library): Do not issue link dynamic - libraries with an Rpath, if switch -R was used. - -2013-10-10 Tristan Gingold - - * s-stalib.ads (Image_Index_Table_8, Image_Index_Table_16, - Image_Index_Table_32): Remove as not used. - * s-imgint.adb (Image_Integer): Call Set_Image_Integer and - remove duplicated code. - -2013-10-10 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Provide a - more precise error message when pragma Refined_Pre applies to - an expression function that is not a completion. - -2013-10-10 Thomas Quinot - - * sem_attr.adb (Analyse_Attribute, case - Attribute_Scalar_Storage_Order): a 'Scalar_Storage_Order attribute - reference for a generic type is permitted in GNAT runtime mode. - * a-sequio.adb (Read, Write): Use the endianness of the actual - type to encode length information written to the file. - -2013-10-10 Ed Schonberg - - * par-ch13.adb (Aspect_Specifications_Present)): In earlier than - Ada2012 mode, assume that a legal aspect name following "with" - keyword is an older gnat switch and not a misplaced with_clause. - -2013-10-10 Hristian Kirtchev - - * aspects.adb: Add an entry for Aspect_Refined_Pre in - table Canonical_Aspect. - (Aspects_On_Body_OK): Renamed to - Aspects_On_Body_Or_Stub_OK. - (Aspects_On_Body_Or_Stub_OK): - Update the query in table Aspect_On_Body_OK. - * aspects.ads: Add an entry for Aspect_Refined_Pre in tables - Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay, - Aspect_On_Body_Or_Stub_OK. Table Aspect_On_Body_OK is now known as - Aspect_On_Body_Or_Stub_OK. Add a section of aspect specifications - that apply to body stubs. - (Aspects_On_Body_OK): Renamed to Aspects_On_Body_Or_Stub_OK. - (Aspects_On_Body_Or_Stub_OK): Update the comment on usage. - * par-prag.adb: Add pragma Refined_Pre to the list of pragmas - that do not require special processing by the parser. - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Delay the - analysis of aspect specifications that apply to a body stub - until the proper body is analyzed. - * sem_ch10.adb: Add with and use clause for Sem_Ch13. - (Analyze_Package_Body_Stub): Set the corresponding spec of the stub. - (Analyze_Proper_Body): Relocate all pragmas that apply - to a subprogram body stub to the declarations of the proper - body. Analyze the aspect specifications of the stub when the - proper body is not present. - (Analyze_Protected_Body_Stub): Set the corresponding spec of the stub. - (Analyze_Task_Body_Stub): Set the corresponding spec of the stub. - (Move_Stub_Pragmas_To_Body): New routine. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing - for aspect Refined_Pre. - (Check_Aspect_At_Freeze_Point): Aspect - Refined_Pre does not need delayed processing at the freeze point. - * sem_prag.adb: Remove with and use clause for Snames. Add - an entry for Pragma_Refined_Pre in table Sig_Flags. - (Analyze_Pragma): Add processing for pragma Refined_Pre. - * sem_prag.ads: Add with and use clause for Snames. Add table - Pragma_On_Stub_OK. - * sinfo.adb (Corresponding_Spec_Of_Stub): New routine. - (Set_Corresponding_Spec_Of_Stub): New routine. - * sinfo.ads: Add new attribute Corresponding_Spec_Of_Stub - along with comment on usage and occurrences in nodes. - (Corresponding_Spec_Of_Stub): New routine along with pragma - Inline. - (Set_Corresponding_Spec_Of_Stub): New routine along - with pragma Inline. - * snames.ads-tmpl: Add new predefined name for Refined_Pre. Add - new Pragma_Id for Refined_Pre. - -2013-10-10 Ed Schonberg - - * sem_ch12.adb (Analyze_Package_Instantiation, - Analyze_Subprogram_Instantiation): Improve error message when - name in instantiation does not designate a generic unit of the - right kind. - -2013-10-10 Robert Dewar - - * exp_ch3.adb (Expand_N_Variant_Part): Expand statically - predicated subtype which appears in Discrete_Choices list. - * exp_ch5.adb (Expand_N_Case_Statement): Expand statically - predicated subtype which appears in Discrete_Choices list of - case statement alternative. - * exp_util.ads, exp_util.adb (Expand_Static_Predicates_In_Choices): New - procedure. - * sem_case.adb: Minor reformatting (Analyze_Choices): Don't - expand out Discrete_Choices that are names of subtypes with - static predicates. This is now done in the analyzer so that the - -gnatct tree is properly formed for ASIS. - * sem_case.ads (Generic_Choices_Processing): Does not apply - to aggregates any more, so change doc accordingly, and remove - unneeded Get_Choices argument. - * sem_ch3.adb (Analyze_Variant_Part): Remove no - longer used Get_Choices argument in instantiation of - Generic_Choices_Processing. - * sem_ch4.adb (Analyze_Case_Expression): Remove no - longer used Get_Choices argument in instantiation of - Generic_Choices_Processing. - * sem_ch5.adb (Analyze_Case_Statement): Remove no - longer used Get_Choices argument in instantiation of - Generic_Choices_Processing. - * sinfo.ads: For N_Variant_Part, and N_Case_Statement_Alternative, - document that choices that are names of statically predicated - subtypes are expanded in the code generation tree passed to the - back end, but not in the ASIS tree generated for -gnatct. - -2013-10-10 Ed Schonberg - - * sem_ch7.adb: Revert previous change. - -2013-10-10 Gary Dismukes - - * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the case where - the Storage_Pool aspect is specified by an aspect clause and a - renaming is used to capture the evaluation of the pool name, - insert the renaming in front of the aspect's associated entity - declaration rather than in front of the corresponding attribute - definition (which hasn't been appended to the declaration - list yet). - -2013-10-10 Ed Schonberg - - * sem_ch6.adb (Is_Interface_Conformant): The controlling type - of the interface operation is obtained from the ultimate alias - of the interface primitive parameter, because that may be in - fact an implicit inherited operation whose signature involves - the type extension and not the desired interface. - -2013-10-10 Ed Schonberg - - * par-ch13.adb (Aspect_Specifications_Present): In Ada 2012, - recognize an aspect specification with a misspelled name if it - is followed by a a comma or semicolon. - -2013-10-10 Vadim Godunko - - * s-atocou.adb, s-atocou.ads, s-atocou-x86.adb, s-atocou-builtin.adb: - Fix copyright notice. - -2013-10-10 Yannick Moy - - * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package): Get - enclosing subprogram for precondition/postcondition/contract cases. - -2013-10-10 Robert Dewar - - * gnat_rm.texi: Minor fix. - -2013-10-10 Robert Dewar - - * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case - Address): Remove the Comes_From_Source test for the overlap - warning. - -2013-10-10 Robert Dewar - - * sem_util.adb: Minor code reorganization (use Nkind_In). - * sem_warn.adb: Minor code reorganization (optimization in - Check_Unset_Reference). - * exp_ch9.adb, exp_ch4.adb, sinfo.ads: Minor reformatting. - -2013-10-10 Ed Schonberg - - * sem_ch7.adb (Install_Parent_Private_Declarations): When - instantiating a child unit, do not install private declaration of - a non-generic ancestor of the generic that is also an ancestor - of the current unit: its private part will be installed when - private part of ancestor itself is analyzed. - -2013-10-10 Thomas Quinot - - * freeze.adb (Check_Component_Storage_Order): Retrieve component - aliased status from type entities directly instead of going back - to original component definition. - * sem_ch7.adb: Minor reformatting. - -2013-10-10 Robert Dewar - - * sem_ch13.adb (Analyze_Aspect_Specifications): For Address - attribute, consider it to be set in source, because of aliasing - considerations. - (Analyze_Attribute_Definition_Clause): For the - purpose of warning on overlays, take into account the aspect case. - -2013-10-10 Robert Dewar - - * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, - a-cofove.ads: Minor reformatting. - -2013-10-10 Arnaud Charlet - - * gnat_ugn.texi: Remove obsolete mention to -laddr2line. - -2013-10-10 Ed Schonberg - - * exp_ch4.adb (Expand_N_Case_Expression): Indicate that the - generated variable used as a target of the expression needs - no initialization. - -2013-10-10 Jose Ruiz - - * exp_util.adb (Corresponding_Runtime_Package): Remove the condition - related to No_Dynamic_Attachment which was wrong. Protected types - with interrupt handlers (when not using a restricted profile) - are always treated as protected types with entries, regardless - of the No_Dynamic_Attachment restriction. - * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Simplify the code - using the result of Corresponding_Runtime_Package. - (Install_Private_Data_Declarations): When having - static handlers and a non restricted profile, we use the - type Static_Interrupt_Protection always, so we removed an - extra wrong condition looking at the No_Dynamic_Attachment - restriction. Simplify the code using the result of - Corresponding_Runtime_Package. - (Make_Initialize_Protection): Simplify the code using - the result of Corresponding_Runtime_Package. - (Install_Private_Data_Declaration): The No_Dynamic_Attachment - restriction has nothing to do with static handlers. Remove the extra - erroneous condition that was creating the wrong data type. - -2013-10-10 Hristian Kirtchev - - * sem_util.adb (Is_Object_Reference): Attribute - 'Old produces an object reference. - * gnat_rm.texi: Define accessibility level of - X'Update(...) result. - -2013-10-10 Yannick Moy - - * gnat_rm.texi, a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, - a-cforse.ads, a-cofove.ads: Update comment and doc of formal containers - -2013-10-10 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post - conditions that apply to a subprogram body, preserve the placement - and order of the generated pragmas, which must appear before - other declarations in the body. - -2013-10-10 Bob Duff - - * gnat_ugn.texi: Add gnat2xml doc. - -2013-10-10 Doug Rupp - - * s-vxwork-arm.ads: Fix interface to FP_CONTEXT. - -2013-10-10 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specification): An aspect Import - on a variable need not have a convention specified, as long as - the implicit convention of the object, obtained from its type, - is Ada or Ada-related. - -2013-10-10 Robert Dewar - - * cstand.adb (Standard_Unsigned_64): New internal type. - * gnat_rm.texi: Update documentation on To_Address. - * sem_attr.adb (Analyze_Attribute, case To_Address): Fix - problem with out of range static values given as literals or - named numbers. - * stand.ads (Standard_Unsigned_64): New internal type. - * stand.adb: Minor reformatting. - -2013-10-10 Ed Schonberg - - * sem_ch4.adb (Analyze_Selected_Component, - Has_Mode_Conformant_Spec): If selected component may be an - indexing of a parameterless call to a protected function, and - expansion is disabled, this is a valid candidate interpretation. - -2013-10-10 Arnaud Charlet - - * gnat_ugn.texi: Minor editing. - -2013-10-10 Robert Dewar - - * gnatlink.adb: Minor reformatting. - -2013-10-10 Yannick Moy - - * debug.adb: Free flag d.E and change doc for flag d.K. - -2013-10-10 Ed Schonberg - - * sem_prag.adb (Check_Precondition_Postcondition): If the - pragma comes from an aspect spec, and the subprogram is a - library unit, treat as a ppc in a declarative part in ASIS mode, - so that expression in aspect is properly analyzed. In this case - there is no later point at which the aspect specification would - be examined. - -2013-10-10 Bob Duff - - * opt.ads: Minor comment fix. - -2013-10-10 Vadim Godunko - - * a-coinho-shared.ads, a-coinho-shared.adb: New file. - * s-atocou.ads: Add procedure to initialize counter. - * s-atocou.adb: Likewise. - * s-atocou-builtin.adb: Likewise. - * s-atocou-x86.adb: Likewise. - * gcc-interface/Makefile.in: Select special version of - Indefinite_Holders package on platforms where atomic built-ins - are supported. Update tools target pairs for PikeOS. - -2013-10-10 Robert Dewar - - * sem_ch3.adb: Minor reformatting. - -2013-10-10 Robert Dewar - - * sinput-c.adb (Load_File): Ensure Source_Align alignment. - * sinput-d.adb (Create_Debug_Source): Ensure Source_Align alignment. - * sinput-l.adb (Create_Instantiation_Source): Ensure Source_Align - alignment. - (Load_File): Ditto. - * sinput.ads, sinput.adb (Get_Source_File_Index): New optimized (single - line) version. - * types.ads (Source_Align): New definition. - (Source_Buffer): Document new alignment requirement. - -2013-10-10 Robert Dewar - - * sem_prag.adb (Analyze_Pragma, case Linker_Section): Allow - this for types. - -2013-10-10 Robert Dewar - - * gnat_rm.texi: Minor adjustment to doc for To_Address attribute. - -2013-10-10 Vadim Godunko - - * s-stopoo.ads (Root_Storage_Pool): Add pragma - Preelaborable_Initialization. - -2013-09-25 Tom Tromey - - * gcc-interface/Makefile.in (OUTPUT_OPTION): Define as "-o $@". - -2013-09-18 Eric Botcazou - - PR ada/58264 - * gcc-interface/trans.c (Attribute_to_gnu): Define GNAT_PREFIX local - variable and use it throughout. - : Note whether the prefix is the dereference of a pointer - to unconstrained array and, in this case, capture the result for both - Attr_First and Attr_Last. - -2013-09-18 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : New. - -2013-09-18 Eric Botcazou - - * gcc-interface/trans.c (gigi): Remove dead code. - -2013-09-18 Eric Botcazou - - * gcc-interface/trans.c (Subprogram_Body_to_gnu): Pop the stack of - return variables for subprograms using the CICO mechanism. - -2013-09-13 Dominique Dhumieres - - * gcc-interface/Makefile.in: Fix darwin Filter to match on $target_os, - not $target_cpu. - -2013-09-11 Thomas Schwinge - Olivier Hainque - - * gcc-interface/Makefile.in: Import target_cpu, target_vendor, - target_os and their host_ counterparts. Remove host_canonical and - target_cpu_default, unused. Remove local ad-hoc computations of - "host", "targ", "arch", "osys" and "manu". Replace uses of these by - uses of the now imported family, hence back to filters against - canonical values. Remove filters on e500 for target_cpu, expected to - be canonicalized into powerpc. Invert the logic filtering on 64bit - sparc for VxWorks. Simplify the filtering logic for bareboard tools - target pairs, now using straight elf/eabi filters on the target_os - part only. - -2013-09-10 Ed Schonberg - - * sem_ch3.adb (Replace_Anonymoous_Access_To_Protected_Subprogram): If - the return type is itself an access to function, recurse to emit - another anonymous type. - * gcc-interface/Make-lang.in: Update dependencies. - -2013-09-10 Robert Dewar - - * err_vars.ads (Warning_Doc_Switch): Ignored in VMS mode. - * errout.adb (Warning_Doc_Switch): Ignored in VMS mode. - * errout.ads (Warning_Doc_Switch): Ignored in VMS mode. - * inline.ads (Warnings): New component in Pending_Body_Info. - * sem_ch12.adb (Pending_Body_Info): Save and restore warnings - at instantiation point. - * warnsw.adb (Save_Warnings): New function (Restore_Warnings): - New procedure Remove special handling of Warning_Doc_Switch, - cleaner to handle the VMS case in errout, than to introduce - undocumented oddities here. - * warnsw.ads (Warning_Record) : New type. - (Save_Warnings): New function. - (Restore_Warnings): New procedure. - -2013-09-10 Robert Dewar - - * sinput.adb (Check_For_BOM): Avoid reading past end of file. - -2013-09-10 Robert Dewar - - * errout.adb (Error_Msg_Ada_2012_Feature): New procedure. - * errout.ads (Error_Msg_Ada_2012_Feature): New procedure. - * inline.ads: Save/Restore Ada_Version_Pragma. - * opt.adb: Save/Restore Ada_Version_Pragma. - * opt.ads (Ada_Version_Pragma): New variable. - * par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch4.adb, par-ch5.adb, - par-ch6.adb, par-ch8.adb, par-prag.adb: Use Error_Msg_Ada_2012_Feature. - * prj.adb: Initialize Ada_Version_Pragma. - * sem_attr.adb: Use Error_Msg_Ada_2012_Feature. - * sem_ch12.adb, sem_ch8.adb: Save/restore Ada_Version_Pragma. - * sem_prag.adb (Analyze_Pragma, cases Ada_xx): Set Ada_Version_Pragma. - * switch-c.adb: Initialize Ada_Version_Pragma. - * sem_ch12.adb: Minor reformatting. - -2013-09-10 Ed Schonberg - - * sem_ch3.adb (Process_Subtype): Discard constraint on access - to class-wide type. Such constraints are not supported and are - considered a language pathology. - -2013-09-10 Robert Dewar - - * gnatbind.adb: Correct starting date in --version string. - * gnatdll.adb: Use Check_Version_And_Help_G to implement --help - and --version. - * gnatkr.adb: Use Check_Version_And_Help_G to implement --help - and --version. - * gnatlink.adb: Correct starting date in --version string. - * gnatls.adb: Correct starting date in --version string. - * make.adb: Correct starting date in --version string. - -2013-09-10 Robert Dewar - - * switch-c.adb: Minor reformatting. - * atree.ads (Original_Nodes): Add documentation on ASIS usage. - * sinfo.ads: Add section on ASIS mode (documentation only). - -2013-09-10 Robert Dewar - - * sem_prag.adb (Analyze_Pragma, case Warnings): Don't allow - REASON parameter in compiler units (bootstrap issues). - -2013-09-10 Robert Dewar - - * gnat1drv.adb (Adjust_Global_Switches): Output warning if - -gnateE specified for a target that does not support it. - -2013-09-10 Ed Schonberg - - * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Handle properly - a subprogram body without previous spec. - -2013-09-10 Gary Dismukes - - * sem_ch4.adb: Minor typo fixes. - -2013-09-10 Hristian Kirtchev - - * aspects.adb (Aspects_On_Body_OK): New routine. - * aspects.ads: Modify type Aspect_Expression to include - the Optional_XXX variants. Update the contents of - table Aspect_Argument. Add table Aspect_On_Body_OK. - (Aspects_On_Body_OK): New routine. - * par-ch13.adb (Get_Aspect_Specifications): Account for optional - names and expressions when parsing an aspect. - * sem_ch6.adb: Add with and use clause for Aspects. - (Analyze_Subprogram_Body_Helper): Do not emit an error when - analyzing a body with aspects that can be applied simultaneously - to both spec and body. - * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the - corresponding pragma of an aspect that applies to a subprogram - body in the declarative part. - (Make_Aitem_Pragma): Do not generate a pragma with an empty argument - list. - -2013-09-10 Robert Dewar - - * switch-c.adb: Diagnose -gnatc given after -gnatRm. - * gnat_ugn.texi: Add documentation for -gnatRm. - * usage.adb: Minor reorganization (put style entries in proper - order) Document -gnatRm switch. - * sinfo.ads: Minor comment fix. - -2013-09-10 Sergey Rybin - - * tree_io.ads: Update ASIS_Version_Number. - -2013-09-10 Ed Schonberg - - * sem_ch3.adb (Access_Subprogram_Declaration): Check whether the - designated type can appear in a parameterless call. - * sem_ch4.adb (Analyze_Call): Do not insert an explicit dereference - in the case of an indirect call through an access function that - returns an array type. - (Analyze_One_Call): Handle properly legal parameterless calls - whose result is indexed, in constructs of the for F.all (I) - * sem_ch6.ads (May_Need_Actuals): Make public, for use on access - to subprogram types. - * sem_res.adb (Resolve_Call): If the call is indirect, there is - no entity to set on the name in the call. - -2013-09-10 Hristian Kirtchev - - * aspects.adb: Add entries in the Has_Aspect_Specifications_Flag - table for package body and body stubs. - (Move_Or_Merge_Aspects): New routine. - (Remove_Aspects): New routine. - * aspects.ads (Move_Aspects): Update comment on usage. - (Move_Or_Merge_Aspects): New routine. - (Remove_Aspects): New routine. - * par-ch3.adb: Update the grammar of private_type_declaration, - private_extension_declaration, object_renaming_declaration, - and exception_renaming_declaration. - (P_Subprogram): Parse the - aspect specifications that apply to a body stub. - * par-ch6.adb: Update the grammar of subprogram_body_stub and - generic_instantiation. - * par-ch7.adb: Update the grammar of package_declaration, - package_specification, package_body, package_renaming_declaration, - package_body_stub. - (P_Package): Parse the aspect specifications - that apply to a body, a body stub and package renaming. - * par-ch9.adb: Update the grammar of entry_declaration, - protected_body, protected_body_stub, task_body, - and task_body_stub. - (P_Protected): Add local variable - Aspect_Sloc. Add local constant Dummy_Node. Parse the aspect - specifications that apply to a protected body and a protected - body stub. - (P_Task): Add local variable Aspect_Sloc. Add local - constant Dummy_Node. Parse the aspect specifications that apply - to a task body and a task body stub. - * par-ch12.adb: Update the grammar of - generic_renaming_declaration. - (P_Generic): Parse the aspect - specifications that apply to a generic renaming. - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not emit - an error when analyzing aspects that apply to a body stub. Such - aspects are relocated to the proper body. - * sem_ch7.adb (Analyze_Package_Body_Helper): Analyze the aspect - specifications that apply to a body. - * sem_ch9.adb (Analyze_Protected_Body): Warn about user-defined - aspects not being supported on protected bodies. Remove the - aspect specifications. (Analyze_Single_Protected_Declaration): - Analyze the aspects that apply to a single protected declaration. - (Analyze_Task_Body): Warn about user-defined aspects not being - supported on task bodies. Remove the aspect specifications. - * sem_ch10.adb: Add with and use clause for Aspects. - (Analyze_Package_Body_Stub): Propagate the aspect specifications - from the stub to the proper body. - * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the - corresponding pragma of an aspect that applies to a body in the - declarations of the body. - * sinfo.ads: Update the gramma of expression_function, - private_type_declaration, private_extension_declaration, - object_renaming_declaration, exception_renaming_declaration, - package_renaming_declaration, subprogram_renaming_declaration, - generic_renaming_declaration, entry_declaration, - subprogram_body_stub, package_body_stub, task_body_stub, - generic_subprogram_declaration. - -2013-09-10 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Add processing - for aspect/pragma SPARK_Mode when it applies to a [library-level] - subprogram or package [body]. - -2013-09-10 Robert Dewar - - * gnat_ugn.texi: Document that -gnatc and -gnatR cannot be - given together. - * switch-c.adb (Scan_Front_End_Switches): Give error if both - -gnatR and -gnatc given. - -2013-09-10 Robert Dewar - - * g-table.ads, g-table.adb (For_Each): New generic procedure - (Sort_Table): New generic procedure. - -2013-09-10 Thomas Quinot - - * adaint.c (__gnat_is_executable_file_attr): Should be true - for an executable regular file only only (not for a directory - that has the executable permission). - -2013-09-10 Ed Schonberg - - * sem_res.adb: Further work on operator calls in ASIS. - -2013-09-10 Yannick Moy - - * sinfo.ads, sem_prag.ads, sem_ch13.adb: Minor correction and comment - update. - -2013-09-10 Thomas Quinot - - * aspects.ads, sem_ch13.adb: Minor reformatting. - * adaint.c (__gnat_set_close_on_exec): Add comment documenting - that this routine is shared between OS_Lib and Sockets. - -2013-09-10 Robert Dewar - - * exp_prag.adb (Expand_Pragma_Check): Ignore pragma if Is_Ignored set. - * sem_ch13.adb (Make_Aitem_Pragma): Set Is_Checked if needed. - * sem_prag.adb (Check_Kind): Moved from spec (Analyze_Pragma): - Make sure Is_Ignored/Is_Checked are set right (Analyze_Pragma, - case Check): Ditto (Check_Applicable_Policy): Handle - Statement_Assertion case Throughout, set and check the Is_Checked - flag as appropriate. - * sem_prag.ads (Check_Kind): Moved to body. - * sinfo.ads, sinfo.adb (Is_Checked): New flag. - -2013-09-10 Robert Dewar - - * aspects.ads (Delay_Type): New type (Aspect_Delay): New table. - * einfo.adb (Has_Delayed_Rep_Aspects): New flag - (May_Inherit_Delayed_Rep_Aspects): New flag (Rep_Clause): Removed - (use Get_Attribute_Representation_Clause). - * einfo.ads (Has_Delayed_Rep_Aspects): New flag - (May_Inherit_Delayed_Rep_Aspects): New flag - * freeze.adb: Minor reformatting - * sem_ch13.adb (Analyze_Aspect_Speficifications): Redo - handling of delayed evaluation, including optimizing some cases - and avoiding delays. - (Analyze_Aspects_At_Freeze_Point): Now - handled inheriting delayed rep aspects for type derivation case. - (Inherit_Delayed_Rep_Aspects): New procedure - * sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Now handled - inheriting delayed rep aspects for type derivation case. - * sem_ch3.adb (Build_Derived_Type): Set - May_Inherit_Derived_Rep_Aspects if parent type flag - Has_Delayed_Rep_Aspects is set - -2013-09-10 Robert Dewar - - * errout.adb (Finalize): Don't delete real errors with specific - warning control. - -2013-09-10 Ed Schonberg - - * exp_ch9.adb (Expand_N_Timed_Entry_Call, - Expand_N_Conditional_Entry_Call, Expand_N_Asynchronous_Select): - Handle properly a trigger that is a call to a primitive operation - of a type that implements a limited interface, if the type itself - is not limited. - -2013-09-10 Robert Dewar - - * sem_ch3.adb, sinfo.ads, exp_ch9.adb, sem_prag.adb, sem_ch12.adb, - exp_ch4.adb, sprint.adb: Minor reformatting. - -2013-09-10 Yannick Moy - - * sinfo.ads: Document splitting of pre/post in N_Contract description. - -2013-09-10 Ed Schonberg - - * exp_ch4.adb (Expand_N_Op_Multiply): If the operation is of the - form X * 2 ** N and it has been marked Is_Power_Of_2_For_Shift, - add a mod operation if the result type is a binary modular type. - -2013-09-10 Hristian Kirtchev - - * sem_prag.adb (Check_Mode_Restriction_In_Enclosing_Context): Add local - variable Context. Remove local variable Subp_Id. Start the - context traversal from the current subprogram rather than the - current scope. Update the scope traversal and error reporting. - -2013-09-10 Ed Schonberg - - * exp_ch9.adb (Expand_N_Timed_Entry_Call): New procedure - Rewrite_Triggering_Statements, to encapsulate the statements that - follow the trigger of the entry call. This procedure is needed - when the trigger is a dispatching call, because the expansion - requires several copies of those statements. The procedure is - more efficient, and preserves non-local references when the - construct is within an instance. - -2013-09-10 Ed Schonberg - - * sem_ch12.adb (Analyze_Package_Instantiation): If the - instantiation is a compilation unit, analyze aspects before - analyzing the package declaration for the instance. - * sem_ch13.adb (Analyze_Aspect_Specifications): If the - corresponding node is a package instantiation, insert generated - pragmas at the head of visible declarations. - * sem_prag.adb (Analyze_Pragma, case Preelaborate): In an instance - do not ignore the pragma if it comes from an aspect specification - in the instance, and not from the generic unit. - * sprint.adb (Sprint_Node_Actual): For a package declaration that - is an instantiation, print aspects after declaration. - -2013-09-10 Robert Dewar - - * einfo.adb, sem_prag.adb, rtsfind.ads: Minor reformatting. - -2013-09-10 Hristian Kirtchev - - * sem_prag.adb (Get_SPARK_Mode_Id): Handle the - case where the pragma may appear without an argument. - (Analyze_Global_List): Add expanded_name to the list of constructs - that denote a single item. - (Collect_Global_List): Add expanded_name to the list of constructs - that denote a single item. - -2013-09-10 Hristian Kirtchev - - * exp_ch4.adb (Apply_Accessibility_Check): Add local constant - Pool_Id and local variables Fin_Call and Free_Stmt. Finalize - and deallocate a heap-allocated class-wide object after it - has been determined that it violates the accessibility rules. - * rtsfind.ads: Add new RTU_Id for System.Memory. Add new RE_Id - and entry in RE_Unit_Table for RE_Free. - -2013-09-01 Eric Botcazou - Iain Sandoe - - PR ada/58239 - * gcc-interface/Makefile.in (GCC_LINK_FLAGS): Add -static-libstdc++. - (GCC_LINK): Use CXX instead of CC. - * gcc-interface/Make-lang.in (CXX_LFLAGS): New. - (ADA_TOOLS_FLAGS_TO_PASS): Pass CXX, and CXX_LFLAGS for native. - -2013-08-13 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias - sets of derived types in ASIS mode. - -2013-08-13 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true. - (is_cplusplus_method): Likewise, and False with false. - (components_need_strict_alignment): Likewise. - * gcc-interface/misc.c (gnat_init_gcc_fp): Likewise. - * gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise. - (Handled_Sequence_Of_Statements_to_gnu): Likewise. - (add_cleanup): Likewise. - (Sloc_to_locus1): Likewise. - (Sloc_to_locus): Likewise. - (set_expr_location_from_node): Likewise. - * gcc-interface/utils.c (potential_alignment_gap): Likewise. - -2013-08-13 Thomas Quinot - - * gcc-interface/trans.c (set_end_locus_from_node): Clear column info - for the end_locus of a block if it does not come from an End_Label. - -2013-08-13 Thomas Quinot - - * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If - there is no End_Label, attach cleanup actions to the sloc of the HSS - node instead. - (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc - of the handler itself. - (add_cleanup): Clear column information in sloc of cleanup actions. - (Sloc_to_locus1): New static function. - (Sloc_to_locus): Call it. - (set_expr_location_from_node1): New static function. - (set_expr_location_from_node): Call it. - -2013-08-13 Eric Botcazou - - * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional - expressions for misaligned actual parameters. - -2013-08-13 Eric Botcazou - - * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for - values outside of the range of the type. - -2013-08-13 Eric Botcazou - - * gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion - to the original type before converting to the result type. - (build_atomic_store): First do a conversion to the original type before - view-converting to the effective type, but deal with a padded type - specially. - -2013-08-08 Eric Botcazou - - * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the - compiler build and use standard library variables. - (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust. - (gnatmake-re): Do not depend on targext.o. - (gnatlink-re): Do not depend on link.o and targext.o. - (../../gnatmake$(exeext): Likewise. - (../../gnatlink$(exeext): Likewise. - -2013-07-21 Ondřej Bílka - - * gcc-interface/gigi.h: Fix typos. - * gcc-interface/trans.c: Likewise. - * gcc-interface/utils2.c: Likewise. - * gnat_rm.texi: Likewise. - * gnat_ugn.texi: Likewise. - * raise-gcc.c: Likewise. - * sigtramp-ppcvxw.c: Likewise. - * sysdep.c: Likewise. - * terminals.c: Likewise. - -2013-07-20 Eric Botcazou - - PR ada/57934 - * gcc-interface/ada.h (CAT): Fix typo. - -2013-07-08 Hristian Kirtchev - - * einfo.adb (Get_Pragma): Handle the retrieval of delayed - pragmas stored in N_Contract nodes. - * einfo.ads (Get_Pragma): Update the comment on usage. - * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy - of the pragma when it applies to a body that acts as a spec. The - copy is preanalyzed and chained on the contract of the body. - -2013-07-08 Robert Dewar - - * rtsfind.adb: Minor comment fix. - -2013-07-08 Hristian Kirtchev - - * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement - of a Ghost function call when the enclosing context is being - preanalyzed. - -2013-07-08 Ed Schonberg - - * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the - expression in a return statement is a numeric literal, qualify - it with the return type for proper resolution. - -2013-07-08 Robert Dewar - - * sem.ads: Minor comment updates. - * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb: - Minor reformatting. - -2013-07-08 Robert Dewar - - * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry - for Restriction_Set. - * gnat_rm.texi: Add missing menu entry for Attribute Ref Add - documentation for attribute Restriction_Set. - * lib-writ.adb (Write_With_Lines): Generate special W lines - for Restriction_Set. - * lib-writ.ads: Document special use of W lines for - Restriction_Set. - * lib.ads (Restriction_Set_Dependences): New table. - * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to - list (Scan_Name_Extension_Apostrophe): Remove kludge test for - Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence - for Restricton_Set. - * restrict.adb (Check_SPARK_Restriction): Put in Alfa order - (OK_No_Dependence_Unit_Name): New function. - * restrict.ads (OK_No_Dependence_Unit_Name): New function. - * rtsfind.adb: Minor reformatting Minor code reorganization. - * sem_attr.adb (Analyze_Attribute): Add processing for - Restriction_Set. - * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): - Remove Check_Unit_Name and use new function - OK_No_Dependence_Unit_Name instead. - * sinfo.ads: Minor comment updates. - * snames.ads-tmpl: Add entry for Restriction_Set attribute. - -2013-07-08 Hristian Kirtchev - - * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant - Pool_Id and local variable Free_Stmt. Do not deallocate the faulty - object as "free" is not available on all targets/profiles. - -2013-07-08 Robert Dewar - - * sem_ch13.adb (Analyze_Aspect_Specifications): Handle - Storage_Size aspect for task type in case discriminant is - referenced. - (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size - attribute definition clause as obsolescent if from aspect. - -2013-07-08 Robert Dewar - - * gnat_rm.texi: Add documentation for Img returning a function. - * par-prag.adb: Minor reformatting. - * restrict.adb: Minor reformatting and code reorganization. - -2013-07-08 Ed Schonberg - - * sem_res.adb: add guard to ASIS transform. - -2013-07-08 Ed Schonberg - - * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger - of the asynchronous select is a dispatching call, transform the - abortable part into a procedure, to avoid duplication of local - loop variables that may appear within. - -2013-07-08 Vincent Celier - - * projects.texi: Update the documentation of suffixes in package - Naming. - -2013-07-08 Ed Schonberg - - * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm - types are type conformant if the designated type of one is - protected and the other is not. Convention only matters when - checking subtype conformance. - -2013-07-08 Ed Schonberg - - * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate - back the fully resolved operands to the original function call - so that all semantic information remains available to ASIS. - -2013-07-08 Ed Schonberg - - * sem_ch4.adb: minor reformatting (remove obsolete comment). - * sem_ch9.adb: improve error message on illegal trigger. - -2013-07-08 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2013-07-08 Robert Dewar - - * gnatcmd.adb: Minor reformatting. - -2013-07-08 Robert Dewar - - * targparm.adb (Get_Target_Parameters): Recognize pragma - Partition_Elaboration_Policy. - -2013-07-08 Robert Dewar - - * gnat_ugn.texi: Minor update to mention partition elaboration policy. - -2013-07-08 Ed Schonberg - - * sem_ch4.adb (Comple_Object_Operation): Revert previous change. - (Analyze_Indexed_Component_Form): In ASIS mode, if node has been - transformed but not rewritten as a function call (as is the case - in a generic), analyze it as such. - -2013-07-08 Thomas Quinot - - * gnat_rm.texi: Minor rewording: add missing word "operators" - in documentation for restriction No_Direct_Boolean_Operator. - -2013-07-08 Robert Dewar - - * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg, - Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere - now). - * errout.ads: Insertions ! and !! no longer have to be at the - end of the message, they can be anywhere in the message. - * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg): - Replaces Test_Style_Warning_Serious_Msg - * erroutc.ads (Has_Double_Exclam): New flag New comments for - existing flags (Test_Style_Warning_Serious_Unconditional_Msg): - Replaces Test_Style_Warning_Serious_Msg - * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg): - Replaces Test_Style_Warning_Serious_Msg - -2013-07-08 Robert Dewar - - * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): - Recognize SPARK_05 as synonym for SPARK in restrictions pragma. - * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only - referenced there. - * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, - sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK. - * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry. - -2013-07-08 Vincent Celier - - * gnatcmd.adb (Check_Files): Use a response file for gnatls - when possible. - -2013-07-08 Gary Dismukes - - * freeze.adb: Minor typo fixes. - -2013-07-08 Robert Dewar - - * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document - obsolete recognition of SPARK Document all other obsolete synonyms - for old restrictions. - * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces - SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym - for SPARK_05. - * restrict.ads: Restriction SPARK_05 replaces SPARK. - * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK - as synonym for SPARK_05. - * sem_prag.adb: Minor reformatting. - * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05. - -2013-07-08 Robert Dewar - - * sem_dim.adb: Minor error message change. - * freeze.adb (Freeze_Entity, array type case): Extend handling - of Implicit_Packing to handle multi-dimensional array case. - * gnat_rm.texi: Update doc on Implicit_Packing. - -2013-07-08 Robert Dewar - - * exp_ch4.adb: Minor reformatting. - -2013-07-08 Ed Schonberg - - * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if - the parent node is a selected component and the analysis as a - call is successful, set the type of the selector in the parent - node for subsequent checks, because the rewriting of the node - does not take place during pre-analysis. - -2013-07-08 Robert Dewar - - * sem_ch8.adb, exp_ch3.adb: Minor reformatting. - -2013-07-08 Hristian Kirtchev - - * exp_ch4.adb (Expand_N_Op_Eq): When comparing two - Bounded_Strings, use the predefined equality function of the - root Super_String type. - -2013-07-08 Hristian Kirtchev - - * exp_ch4.adb (Create_Alternative): Removed. - (Expand_N_If_Expression): Remove constant - In_Case_Or_If_Expression. Add local variable - Ptr_Typ. Inspect the "then" and "else" action lists - for transient controlled objects and generate code to - finalize them. (Is_Controlled_Function_Call): Removed. - (Process_Action): Update the comment on usage. Update the call - to Process_Transient_Object. There is no need to continue the - traversal of the object itself. - (Process_Actions): New routine. - (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add - a new formal and update the related comment on usage. - * exp_util.adb (Within_Case_Or_If_Expression): Start the search - from the parent of the node. - -2013-07-08 Robert Dewar - - * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads, - a-cbsyqu.ads: Minor reformatting (proper formatting of overriding). - -2013-07-08 Ed Schonberg - - * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute - that can be renamed as a function. - -2013-07-08 Thomas Quinot - - * g-socket.ads: Document target dependency: FIONBIO may or may not - be inherited from listening socket by accepted socket. - -2013-07-08 Hristian Kirtchev - - * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object - on targets that can't deallocate. - -2013-07-08 Hristian Kirtchev - - * exp_ch3.adb (Freeze_Type): Generate a - subpools-related accessibility check only on profiles that - include the corresponding library unit. - -2013-07-08 Gary Dismukes - - * sem_ch8.adb: Minor typo fixes. - -2013-07-08 Javier Miranda - - * sem_ch8.adb (Save_Scope_Stack): Adding documentation. - (Restore_Scope_Stack): Remove the elements of the list when the - visibility of each entity is restored. - -2013-07-08 Robert Dewar - - * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting. - -2013-07-08 Robert Dewar - - * sem_ch8.adb, sem_ch8.ads: Minor reformatting. - -2013-07-08 Gary Dismukes - - * gnat_rm.texi: Minor reformatting and rewording for consistency. - -2013-07-08 Bob Duff - - * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete - view coming from a limited-with'ed package, use the nonlimited - view in case it has tasks. - -2013-07-08 Javier Miranda - - * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list - of entities which have been temporarily removed from immediate - visibility. - (Restore_Scope_Stack): Modified to receive an - additional parameter with the list of entities whose immediate - visibility must be restored. - * sem.adb (Do_Analyze): Use new version of - Save_Scope_Stack/Restore_Scope_Stack - * sem_ch12.adb (Inline_Instance_Body): Use new version of - Save_Scope_Stack and Restore_Scope_Stack - -2013-07-08 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Remove - variable Unit_Prag. Remove the check on duplicate mode for the - configuration form of the pragma. - (Redefinition_Error): Removed. - -2013-07-08 Robert Dewar - - * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting - and editing. - -2013-07-08 Ed Schonberg - - * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode, - pre-analyze only the original expression attached to the source - aspect, not the relocated expression of the pragma, to prevent - malformed trees in ASIS mode. - * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous - patch: the expression in the aspect for pre/post must be relocated - to the pragma for proper analysis. - -2013-07-05 Hristian Kirtchev - - * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect. - * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id, - Aspect_Argument, Aspect_Names. - * atree.adb (Node32): New routine. - (Set_Node32): New routine. - * atree.ads (Node32): New routine. - (Set_Node32): New routine. - * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas. - (Set_SPARK_Mode_Pragmas): New routine. - (SPARK_Mode_Pragmas): New routine. - (Write_Field32_Name): Add and entry for SPARK_Modes. - * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage - in various entities. - (Set_SPARK_Mode_Pragmas): New routine and - pragma Inline. - (SPARK_Mode_Pragmas): New routine and pragma Inline. - * gnat_rm.texi: Add sections explaining the syntax and semantics - of aspect/pragma SPARK_Mode. - * gnat_ugn.texi: Add pragma SPARK_Mode to the list of - configuration pragmas. - * lib.adb (Set_SPARK_Mode_Pragma): New routine. - (SPARK_Mode_Pragma): New routine. - * lib.ads: Alphabetize the comments on fields of record - Unit_Record. Add new field SPARK_Mode_Pragma along with - comment on its usage. Update the layout of record Unit_Record. - (Set_SPARK_Mode_Pragma): New routine and pragma Inline. - (SPARK_Mode_Pragma): New routine and pragma Inline. - * lib-load.adb (Create_Dummy_Package_Unit): Initialize - field SPARK_Mode_Pragma. - (Load_Main_Source): Initialize field SPARK_Mode_Pragma. - (Load_Unit): Initialize field SPARK_Mode_Pragma. - * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field - SPARK_Mode_Pragma. - (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma. - * opt.ads: Alphabetize verification flags. Store the - compilation-wide SPARK mode in variable Global_SPARK_Mode. - * par-prag.adb: Pragma SPARK_Mode does not need special processing - by the parser. - * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect - SPARK_Mode into a pragma. - (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need - delayed processing. - * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags. - (Analyze_Pragma): Add processing for pragma SPARK_Mode. - (Get_SPARK_Mode_Id): New routine. - (Is_Elaboration_SPARK_Mode): New routine. - (Is_Private_SPARK_Mode): New routine. - * sem_prag.ads (Get_SPARK_Mode_Id): New routine. - (Is_Elaboration_SPARK_Mode): New routine. - (Is_Private_SPARK_Mode): New routine. - * sinfo.ads: Update the comment on the usage of field Next_Pragma. - * snames.ads-tmpl: Add new predefined name for SPARK_Mode and - Auto. Add new pragma Id for SPARK_Mode. - * types.ads: Add new type SPARK_Mode_Id. - -2013-07-05 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): For - pre/postconditions copy the expression to the generated pragma, - to avoid sharing between the original aspect and the pragma node, - because in ASIS_Mode both will be independently analyzed. - -2013-07-05 Ed Schonberg - - * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of - formals for each discriminant of an unchecked union. - (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested - variants are supported. New helper function Corresponding_Formal. - * exp_ch4.adb (Build_Equality_Call): For unchecked unions, - loop through discriminants to create list of inferred values, - and modify call to equality routine accordingly. - -2013-07-05 Claire Dross - - * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads, - a-cforse.ads, a-cofove.ads: Add preconditions when needed + - container types are not tagged any more. - -2013-07-05 Thomas Quinot - - * freeze.adb (Freeze_Entity): For an object with captured - initialization statements, do not remove Init_Stmts from the - enclosing list, as Freeze_All might rely on it to know where to - stop freezing. - -2013-07-05 Robert Dewar - - * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor - reformatting. - -2013-07-05 Hristian Kirtchev - - * exp_ch4.adb (Expand_Composite_Equality): Use the full view - when the base type is private. - -2013-07-05 Claire Dross - - * a-cfdlli.ads: Add preconditions when needed. - -2013-07-05 Robert Dewar - - * sem_ch8.adb: Minor reformatting. - -2013-07-05 Ed Schonberg - - * sem_ch3.adb (Access_Subprogram_Declaration): Use - Generate_Reference_To_Formals. - * lib-xref.adb (Generate_Reference_To_Formals): In the case of - access to subprograms, the formals are found in the designated - subprogram type. - -2013-07-05 Robert Dewar - - * gnat_ugn.texi: Document that comments can be lined up with - previous non-blank line. - * styleg.adb (Check_Comment): Allow indentation to match previous - non-blank line (Same_Column_As_Previous_Line): New function - -2013-07-05 Robert Dewar - - * gnat_rm.texi: Update doc on missing pragmas. - * sem_ch12.adb: Minor comment additions. - -2013-07-05 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Ensure that - Contract_Cases, Depends and Global are analyzed when they apply - to a subprogram compilation unit. The pragmas are all added - unconditionally to the construct's contract. This ensures that - proof tools can locate the pragmas. - -2013-07-05 Ed Schonberg - - * sem_ch8.adb (Freeze_Actual_Profile): An instance within - a generic unit does not freeze a generic private type of the - enclosing generic. This rule must also apply to a type derived - from a generic private type. - -2013-07-05 Arnaud Charlet - - * gnat_rm.texi: Add missing documentation for pragmas. - -2013-07-05 Yannick Moy - - * sem_ch12.adb: Minor comment. - -2013-07-05 Robert Dewar - - * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used - together. - * switch-c.adb: Do not allow -gnatD and -gnatR to both be - specified. - -2013-07-05 Robert Dewar - - * gnat_rm.texi: Add missing documentation for pragmas. - * sem_ch8.adb: Minor reformatting. - * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used - together. - -2013-07-05 Yannick Moy - - * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force - instance of subprogram body in SPARK mode, by testing Expander_Active - (set in SPARK mode) instead of Full_Expander_Active (not set in - SPARK mode). - * sem_ch8.adb: Minor reformatting. - -2013-07-05 Robert Dewar - - * freeze.adb (Freeze_Entity): Remove test of obsolete flag - Propagate_Exceptions, and associated useless code that did - nothing. - * gnat_rm.texi: Add documentation for obsolete pragma - Propagate_Exceptions. - * opt.ads (Propagate_Exceptions): Obsolete flag removed. - * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions): - Remove useless and obsolete setting of Propagate_Exceptions flag. - -2013-07-05 Robert Dewar - - * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes. - -2013-07-05 Robert Dewar - - * gnat_rm.texi: Add missing doc for various pragmas. - -2013-07-05 Robert Dewar - - * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting. - * gnat_rm.texi: Document pragma Profile_Warnings. - * restrict.ads, sem_prag.adb: Minor reformatting. - -2013-07-05 Ed Schonberg - - * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly - a formal subprogram that was defaulted in the formal package. - -2013-07-05 Thomas Quinot - - * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore - N_Implicit_Label_Declaration nodes. - -2013-07-05 Robert Dewar - - * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting. - -2013-07-05 Ed Schonberg - - * sem_ch12.adb (Copy_Generic_Node): Check that name in function - call is a valid entity name before preserving entity in generic - copy. - -2013-07-05 Thomas Quinot - - * par-ch5.adb: Minor reformatting. - -2013-07-05 Thomas Quinot - - * sinfo.ads: Minor clarification to documentation for - N_Implicit_Label_Declaration. - -2013-07-05 Hristian Kirtchev - - * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the - values of all remaining constants. - (Rcheck_35): New routine along with pragmas Export and No_Return. - (Rcheck_PE_Aliased_Parameters): New routine along with pragmas - Export and No_Return. - (Rcheck_PE_All_Guards_Closed, - Rcheck_PE_Bad_Predicated_Generic_Type, - Rcheck_PE_Current_Task_In_Entry_Body, - Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise, - Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value, - Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object, - Rcheck_PE_Potentially_Blocking_Operation - Rcheck_PE_Stubbed_Subprogram_Called, - Rcheck_PE_Unchecked_Union_Restriction, - Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool, - Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion, - Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception): - Update the use of Rmsg_XX. - (Rcheck_17, Rcheck_18, Rcheck_19, - Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25, - Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31, - Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding - renamed subprograms. - * checks.adb: Add with and use clause for Stringt. - (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in - all subprograms of Apply_Parameter_Aliasing_Checks. Remove local - variable Cond. Initialize Check at the start of the routine. Use - routine Overlap_Check to construct a simple or a detailed run-time - check. Update the creation of the simple check. - (Overlap_Check): New routine. - * exp_ch11.adb (Get_RT_Exception_Name): Add a value for - PE_Aliased_Parameters. - * types.ads: Add new enumeration literal - PE_Aliased_Parameters. Update the corresponding integer values - of all RT_Exception_Code literals. - * types.h: Add new constant PE_Aliased_Parameters. Correct the - values of all remaining constants. - -2013-07-05 Yannick Moy - - * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in - documentation. - -2013-07-05 Ed Schonberg - - * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide - condition, when replacing the name of a formal by a conversion - to the class-wide type, exempt selector names that appear in - parameter associations. - -2013-06-13 Eric Botcazou - - * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete. - * gcc-interface/gigi.h (annotate_object): Adjust prototype. - (convert_vms_descriptor): Likewise. - * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer - types by double dereference. - (annotate_object): Remove BY_DOUBLE_REF parameter and adjust. - (gnat_to_gnu_entity): Adjust calls to annotate_object. - * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double - dereference. - (Call_to_gnu): Likewise. - (build_function_stub): Adjust call to convert_vms_descriptor. - (Subprogram_Body_to_gnu): Adjust call to annotate_object. - * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF - parameter and adjust. - -2013-05-30 Eric Botcazou - - * gcc-interface/Makefile.in (arm% androideabi): Robustify. - -2013-05-26 Eric Botcazou - - * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not - check that access types have a set size. - -2013-05-26 Eric Botcazou - - * gcc-interface/decl.c (vinfo_t): New type and associated vector. - (components_to_record): Change return type to bool. - Lay out the variants in two passes. Do not force a specific layout for - the variant part if the variants do not have a representation clause. - Take the alignment of the variant part into account when laying out - variants without rep clause in a record type with a partial rep clause. - (create_rep_part): Do not set the position of the field. - -2013-05-26 Eric Botcazou - - * gcc-interface/trans.c (Attribute_to_gnu) : Add kludge - to avoid generating an overflow for -1. - -2013-05-26 Eric Botcazou - - * gcc-interface/gigi.h (create_type_decl): Adjust prototype. - (create_label_decl): Complete prototype. - (process_attributes): Declare. - * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to - create_type_decl throughout. - : Do the layout of the type manually and call - process_attributes on it. Reindent. - : Minor tweak. - : Reindent. - : Call process_attributes on the array type built - for a packed array type. - : Call process_attributes on the type. - : Likewise. - : Likewise. - : Likewise. - Likewise for all types at the end of the processing. - * gcc-interface/utils.c (make_aligning_type): Adjust call to - create_type_decl. - (maybe_pad_type): Likewise. - (create_index_type): Likewise. - (create_type_decl): Remove attr_list parameter and associated code. - (create_var_decl_1): Call process_attributes on the variable. - (process_attributes): Take a pointer to the object and add in_place - and gnat_node parameters and adjust throughout. - : Pass ATTR_FLAG_TYPE_IN_PLACE only on demand - and set the input location. - Zap the attribute list at the end. - (create_subprog_decl): Call process_attributes on the subprogram. - (build_unc_object_type): Adjust call to create_type_decl. - (handle_vector_type_attribute): Remove dead code. - -2013-05-26 Eric Botcazou - - * gcc-interface/gigi.h (make_aligning_type): Adjust prototype. - * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter - for the position of the associated TYPE_DECL. - * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above. - * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise. - -2013-05-26 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely - elaborate the full view of a type with a freeze node. - * gcc-interface/trans.c (process_type): Add explicit predicate. - -2013-05-26 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Always build the - UNC variable for aliased objects with unconstrained nominal subtype. - -2013-05-24 Eric Botcazou - - * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare. - * gcc-interface/trans.c (gigi): Call it. - * gcc-interface/misc.c (gnat_init_gcc_fp): New function. - -2013-05-24 Eric Botcazou - - * gcc-interface/gigi.h (enum inline_status_t): New type. - (create_subprog_decl): Adjust prototype. - * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust - calls to create_subprog_decl. - (get_minimal_subprog_decl): Likewise. - * gcc-interface/trans.c (gigi): Likewise. - (build_raise_check): Likewise. - (establish_gnat_vms_condition_handler): Likewise. - (Compilation_Unit_to_gnu): Likewise. - (gnat_to_gnu): Likewise. - * gcc-interface/utils.c (create_subprog_decl): Change inline_flag - parameter to inline_status and implement for suppressed inlining. - -2013-05-24 Eric Botcazou - - * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define. - (LOOP_STMT_UNROLL): Likewise. - (LOOP_STMT_NO_VECTOR): Likewise. - (LOOP_STMT_VECTOR): Likewise. - * gcc-interface/trans.c (struct loop_info_d): Replace label field - with stmt field. - (Pragma_to_gnu) : New case. - (Loop_Statement_to_gnu): Save the loop statement onto the stack - instead of the label. - (gnat_to_gnu) : Retrieve the loop label. - -2013-05-24 Eric Botcazou - - * gcc-interface/trans.c: Include diagnostic.h and opts.h. - (Pragma_to_gnu) : New case. - -2013-05-24 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Constify - a handful of local variables. - For a derived untagged type that renames discriminants, change the type - of the stored discriminants to a subtype with the bounds of the type - of the visible discriminants. - (build_subst_list): Rename local variable. - -2013-05-16 Jason Merrill - - * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex. - -2013-05-13 Rainer Orth - - PR ada/57188 - * gcc-interface/Makefile.in: Allow for amd64 solaris2. - -2013-05-07 Eric Botcazou - - PR ada/56474 - * gcc-interface/decl.c (gnat_to_gnu_entity) : Use - int_const_binop to shift bounds by 1 when they are integer constants. - -2013-04-25 Arnaud Charlet - - * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b} - -2013-04-25 Hristian Kirtchev - - * checks.adb (Apply_Predicate_Check): Update the comment associated - with the call to Check_Expression_Against_Static_Predicate. - * sem_ch3.adb (Analyze_Object_Declaration): Update the comment - associated with the call to Check_Expression_Against_Static_Predicate. - * sem_util.adb (Check_Expression_Against_Static_Predicate): - Broaden the check from a static expression to an expression with - a known value at compile time. - * sem_util.ads (Check_Expression_Against_Static_Predicate): Update - comment on usage. - -2013-04-25 Thomas Quinot - - * exp_attr.adb (Expand_N_Attribute_Reference, cases Position, - First_Bit, and Last_Bit): Fix incorrect test in implementation of - RM 2005 13.5.2(3/2). - -2013-04-25 Claire Dross - - * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb, - a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads - (Query_Element): Removed. - (Update_Element): Removed. - (Insert): The version with no New_Item specified is removed. - (Iterate): Removed. - (Write): Removed. - (Read): Removed. - Every check of fields Busy and Lock has been removed. - -2013-04-25 Robert Dewar - - * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove - call to S14_Pragma (Find_Related_Subprogram): Require proper - placement in subprogram body (Find_Related_Subprogram): Detect - duplicates for all cases (Find_Related_Subprogram): Handle case - of spec nested inside body. - -2013-04-25 Arnaud Charlet - - * par-prag.adb: Fix typo. - -2013-04-25 Hristian Kirtchev - - * checks.adb (Apply_Predicate_Check): If the type has a static - predicate and the expression is also static, check whether the - expression satisfies the predicate. - * sem_ch3.adb (Analyze_Object_Declaration): If the type has a - static predicate and the expression is also static, see if the - expression satisfies the predicate. - * sem_util.adb: Alphabetize several routines. - (Check_Expression_Against_Static_Predicate): New routine. - * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine. - -2013-04-25 Robert Dewar - - * gnat_rm.texi: Document Reason argument for pragma Warnings. - * par-prag.adb: Handle Reason parameter for pragma Warnings. - * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument. - * snames.ads-tmpl (Name_Reason): New name entry. - -2013-04-25 Yannick Moy - - * exp_spark.adb (Expand_SPARK_N_In): Remove procedure. - (Expand_SPARK): Remove special expansion for membership tests. - -2013-04-25 Hristian Kirtchev - - * exp_ch3.adb (Expand_N_Object_Declaration): Update all places - that should use constant Base_Typ. When building an invariant - check, account for invariants coming from the base type. Prevent - the creation of a junk invariant check when the related object - is of an array type and it is initialized with an aggregate. - * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use - the base type to create an invariant call when the type of the - expression is a composite subtype. - -2013-04-25 Vasiliy Fofanov - - * a-cborse.adb: Fix minor typo. - -2013-04-25 Ed Schonberg - - * sem_ch6.adb (Different_Generic_Profile): A spec and body - match in an instance if a subtype declaration that renames a - generic actual with the same name appears between spec and body. - -2013-04-25 Robert Dewar - - * sem_util.adb: Minor reformatting. - -2013-04-25 Ed Schonberg - - * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to - fold strings with a single others choice only if there are no - expressions in the aggregate. - -2013-04-25 Arnaud Charlet - - * gnat_ugn.texi: Update doc on Ada 2012 default mode. - -2013-04-25 Hristian Kirtchev - - * exp_ch6.adb: Add with and use clause for Stringt. - (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters - Decls and Stmts along with comments on their usage. - * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6. - * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6. - (Process_Contract_Cases): Update the call to Expand_Contract_Cases. - -2013-04-25 Ed Schonberg - - * gnat_rm.texi: Minor editing, to clarify use of dimension aspects. - * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an - aggregate for a packed type, which may be converted into an - unchecked conversion of an object. - -2013-04-25 Robert Dewar - - * sem_prag.adb: Minor code reorganization (correct misspelling - Restiction). - * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting. - * gnat_rm.texi: Document impl-defined aspects. - * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor - reformatting. - -2013-04-25 Hristian Kirtchev - - * einfo.adb (Set_Abstract_States): The attribute now applies - to generic packages. - * sem_ch4.adb (Referenced): Moved to sem_util. - * sem_ch7.adb (Unit_Requires_Body): A [generic] package with - a non-null abstract state needs a body. - * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls - to Collect_Subprogram_Inputs_Outputs. - (Analyze_Global_Item): Verify the proper usage of an item with mode - In_Out or Output relative to the enclosing context. - (Analyze_Pragma): Abstract_State can now be applied to a generic - package. Do not reset the Analyzed flag for pragmas Depends and Global - as this is not needed. - (Appears_In): Moved to library level. - (Check_Mode_Restiction_In_Enclosing_Context): New routine. - (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add - formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global - seen along with comments on usage. - * sem_util.ads, sem_util.adb (Referenced): New routine. - -2013-04-25 Hristian Kirtchev - - * sem_ch6.adb (Expand_Contract_Cases): Generate - detailed error messages only when switch -gnateE is in effect. - -2013-04-25 Yannick Moy - - * sem_attr.adb (Analyze_Attribute): Do not issue - an error for a possibly misplaced 'Result or 'Old attribute when - analyzing the aspect. - -2013-04-25 Robert Dewar - - * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting. - -2013-04-25 Hristian Kirtchev - - * sem_ch4.adb (Analyze_Quantified_Expression): - Add local variable Loop_Id. Verify that the loop variable - is used within the condition of the quantified expression. - (Referenced): New routine. - -2013-04-25 Hristian Kirtchev - - * sem_case.adb (Analyze_Choices): Enhance the error message - given on a bad use of subtype predicate. - * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance - the error message given on a bad use of subtype predicate. - * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter - Suggest_Static. Emit an extra error message advising how to - remedy the bad use of the predicate if the context warrants it. - * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter - Suggest_Static along with a comment explaining its usage. - -2013-04-25 Ed Schonberg - - * sem_disp.adb (Check_Dispatching_Operation): Further refinement - to checks for AI05-0125: the check for a hidden primitive that - may be overridden by the new declaration only applies if the - hidden operation is never declared. This is not the case if the - operation is declared in a parent unit. - -2013-04-25 Robert Dewar - - * debug.adb: Remove d.X and d.Y entries and documentation. - * exp_ch4.adb (Expand_N_If_Expression): Remove special code used - if expression with actions not available (now always available). - (Expand_Short_Circuit_Operator): Same change. - * gnat1drv.adb (Adjust_Global_Switches) Remove setting - Use_Expression_With_Actions flag, since this is now obsolete. - * opt.ads (Use_Expression_Actions): Removed (always True now). - * sinfo.ads: Minor comment updates. - -2013-04-25 Ed Schonberg - - * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array - subtype whose base type is currently private, install full view - when compiling instance body. - -2013-04-25 Ed Schonberg - - * sem_disp.adb (Check_Dispatching_Operation): Refine checks for - AI05-0125: the check for a hidden primitive that may be overridden - by the new declaration is only performed if the declaration comes - from source, and it must carry an explicit overriding indicator. - -2013-04-25 Hristian Kirtchev - - * einfo.adb (Abstract_States): The attribute now applies to - generic packages. - * sem_ch3.adb (Analyze_Object_Declaration): Check whether an - object declaration introduces an illegal hidden state. - * sem_prag.adb (Analyze_Abstract_State): Check whether a state - declaration introduces an illegal hidden state. - * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine. - -2013-04-25 Ed Schonberg - - * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may - be to a protected function, in which case the name in the call - is a selected component. - -2013-04-25 Hristian Kirtchev - - * sem_ch4.adb (Analyze_Quantified_Expression): - Warn on a suspicious use of quantifier "some" when "all" was meant. - (No_Else_Or_Trivial_True): New routine. - -2013-04-25 Robert Dewar - - * einfo.ads, einfo.adb: Put back with/use for Namet. - (Get_Pragma): New name (wi new spec) for Find_Pragma. - * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with - different interface. - -2013-04-25 Ed Schonberg - - * sem_ch3.adb (Is_Visible_Component): In an instance all - components are visible. - -2013-04-25 Matthew Heaney - - * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for - tampering when container empty. - * a-crbtgk.adb (Ceiling, Find, Floor): ditto. - (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint): - ditto. - -2013-04-25 Ed Schonberg - - * par-ch12.adb: Move aspects from package specification to - generic package declaration. - * sem_ch12.adb: Analyze aspect specifications before building - and analyzing the generic copy, so that the generated pragmas - are properly taken into account. - * sem_ch13.adb: For compilation unit aspects that apply to a - generic package declaration, insert corresponding pragmas ahead - of visible declarations. - * sprint.adb: Display properly the aspects of a generic type - declaration. - -2013-04-25 Robert Dewar - - * frontend.adb: Minor reformatting. - -2013-04-25 Ed Schonberg - - * einfo.ads: Extend documentation on use of Is_Private_Ancestor - for untagged types. - * sem_ch3.adb (Is_Visible_Component): Refine predicate for the - case of untagged types derived from private types, to reject - illegal selected components. - -2013-04-25 Gary Dismukes - - * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test - for case of selecting from an unexpanded implicit dereference - and do not make a recursive call on such a prefix. - -2013-04-25 Doug Rupp - - * targparm.adb (VXF{_Str}): New tag for vaxfloat. - (Get_Target_Parameters): Handle VXF tag. - * targparm.ads (VAX_Float_On_Target): New boolean. - * system-vms-ia64.ads (VAX_Float): New boolean. - * frontend.adb (Frontend): Handle VAX float boolean. - -2013-04-25 Hristian Kirtchev - - * einfo.ads, einfo.adb: Remove with and use clauses for Namet. - (Find_Pragma): New routine. - * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo. - -2013-04-25 Hristian Kirtchev - - * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited - predicate. - (Add_Predicates): Save the static predicate for diagnostics and error - reporting purposes. - (Process_PPCs): Remove local variables Dynamic_Predicate_Present and - Static_Predicate_Present. Add local variable Static_Pred. Ensure that - the expression of a static predicate is static. - -2013-04-25 Hristian Kirtchev - - * einfo.adb (Is_Ghost_Subprogram): Remove useless code. - -2013-04-25 Robert Dewar - - * gnat_rm.texi: Minor addition of index entry. - -2013-04-25 Hristian Kirtchev - - * sem_ch6.adb (Check_Access_Invariants): Test whether an - invariant procedure is empty before generating a call to it. - (Has_Enabled_Predicate): New routine. - (Has_Null_Body): New routine. - (Process_PPCs): Test whether an invariant procedure is - empty before generating a call to it. Test whether predicates are - enabled for a particular type before generating a predicate call. - * sem_util.ads, sem_util.adb (Find_Pragma): New routine. - -2013-04-25 Robert Dewar - - * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl, - snames.ads-tmpl: Minor reformatting. - -2013-04-25 Thomas Quinot - - * sem_ch7.adb: Minor reformatting. - -2013-04-25 Robert Dewar - - * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed). - * s-tarest.adb: Minor reformatting. - -2013-04-25 Hristian Kirtchev - - * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant - tables. - * einfo.adb: Remove with and use clause for Aspects. - (Is_Ghost_Function): Removed. - (Is_Ghost_Entity): New routine. - (Is_Ghost_Subprogram): New routine. - * einfo.ads: Remove synthesized attribute Is_Ghost_Function - along with its uses in entities. Add synthesized attributes - Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related - entities. - (Is_Ghost_Function): Removed. - (Is_Ghost_Entity): New routine. - (Is_Ghost_Subprogram): New routine. - * par-prag.adb: Remove pragma Ghost from the processing machinery. - * repinfo.adb (List_Mechanisms): Add a value for convention Ghost. - * sem_attr.adb (Analyze_Access_Attribute): Update the check - for ghost subprograms. - * sem_ch4.adb (Analyze_Call): Update the check for calls - to ghost subprograms. - (Check_Ghost_Function_Call): Removed. - (Check_Ghost_Subprogram_Call): New routine. - * sem_ch6.adb (Check_Convention): Rewritten. - (Check_Overriding_Indicator): Remove the check for overriding - ghost functions. - (Convention_Of): New routine. - * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost - generic actual subprograms. - * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost. - * sem_prag.adb: Remove the value for pragma Ghost from - table Sig_Flags. - (Analyze_Pragma): Remove the processing for pragma Ghost. - (Process_Convention): Emit an error when a ghost - subprogram attempts to override. - (Set_Convention_From_Pragma): Emit an error when a ghost subprogram - attempts to override. - * sinfo.ads: Clarify the usage of field Label_Construct. - * snames.adb-tmpl (Get_Convention_Id): Add an entry for - predefined name Ghost. - (Get_Convention_Name): Add an entry for convention Ghost. - * snames.ads-tmpl: Move predefined name Ghost to the sublist - denoting conventions. Add convention id Ghost. Remove pragma - id Ghost. - -2013-04-25 Ed Schonberg - - * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child - units if within a generic hierarchy. - -2013-04-24 Hristian Kirtchev - - * exp_ch6.adb (Expand_Actuals): Add a predicate check on an - actual the related type has a predicate function. - * sem_ch3.adb (Constant_Redeclaration): Ensure that the related - type has an invariant procedure before building a call to it. - * sem_ch6.adb (Append_Enabled_Item): New routine. - (Check_Access_Invariants): Use routine - Append_Enabled_Item to chain onto the list of postconditions. - (Contains_Enabled_Pragmas): Removed. - (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto - the list of postconditions. - (Invariants_Or_Predicates_Present): Removed. - (Process_PPCs): Partially reimplemented. - -2013-04-24 Sergey Rybin - - * tree_io.ads: Update ASIS_Version_Number because of changes - in the way how entities are chained in a scope by means of - Next_Entity link. - -2013-04-24 Ed Schonberg - - * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case - Storage_Size): If the clause is not from an aspect, insert - assignment to size variable of task type at the point of the - clause, not after the task definition, to prevent access before - elaboration in the back-end. - -2013-04-24 Yannick Moy - - * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume. - -2013-04-24 Yannick Moy - - * gnat_rm.texi: Document 'Loop_Entry. - -2013-04-24 Jose Ruiz - - * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for - fall-back termination handlers from the parents, because they apply - only to dependent tasks. - * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back - termination handlers because the environment task has no parent, - and if it defines one of these handlers it does not apply to - itself because they apply only to dependent tasks. - -2013-04-24 Robert Dewar - - * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting. - -2013-04-24 Robert Dewar - - * gnat_rm.texi: Document 'Update attribute. - * sem_attr.adb (Analyze_Attribute, case Update): Remove call - to S14_Attribute (S14_Attribute): removed. - -2013-04-24 Robert Dewar - - * interfac.ads: Add size clauses for IEEE_Float_32/64 - -2013-04-24 Claire Dross - - * gnat1drv.adb (Adjust_Global_Switches): Remove - special assignment of Use_Expression_With_Actions for SPARK_Mode. - -2013-04-24 Hristian Kirtchev - - * checks.adb (Apply_Predicate_Check): Check for the presence - of the dynamic predicate aspect when trying to determine if the - predicate of a type is non-static. - * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check - for the presence of the dynamic predicate aspect when trying to - determine if the predicate of a type is non- static. - * sem_ch13.adb (Add_Call): Capture the nature of the - inherited ancestor predicate. - (Build_Predicate_Functions): Update comments. Rewrite the checks on - static predicate application. Complain about the form of a non-static - expression only when the type is static. - -2013-04-24 Ed Schonberg - - * sem_prag.adb: Add guard to tree traversal. - -2013-04-24 Vincent Celier - - * clean.adb (Clean): Remove local variable Root_Environment, - use Makeutl.Root_Environment instead. - * gnatcmd.adb: Remove local variable Root_Environment, use - Makeutl.Root_Environment instead. - * make.adb (Gnatmake): Remove local variable Root_Environment, - use Makeutl.Root_Environment instead. - * prj-makr.adb: Remove local variable Root_Environment, use - Makeutl.Root_Environment instead. - -2013-04-24 Hristian Kirtchev - - * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the - extraction of the declarative part of the conditional block. Move - the processing of simple infinite loops to the start of the - expansion logic. Correct the check which determines whether the - proper scope is installed in visibility. - * sem_attr.adb (Analyze_Attribute): Add local variable Attr - to keep track of the attribute in case the enclosing indexed - component has to be rewritten. When searching for the enclosing - loop, start from the proper attribute reference in case of a - rewriting. Do not allow for 'Loop_Entry to appear in pragma - Assert. Replace loop variable J with Index. Set the type of the - proper attribute. - * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized - block that services a loop statement subject to at least one - 'Loop_Entry attribute. - -2013-04-24 Ed Schonberg - - * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to - resolve a fixed point operation, use first subtype to determine - whether type and operator are declared in the same list of - declarations. - -2013-04-24 Hristian Kirtchev - - * par-ch6.adb (P_Subprogram): Detect an illegal - placement of the aspect specification list in the context of - expression functions. - -2013-04-24 Ed Schonberg - - * exp_ch4.adb (Expand_N_Allocator): If the designated object - has tasks, and the pointer type is an itype that has no master - id, create a master renaming in the current context, which can - only be an init_proc. - -2013-04-24 Robert Dewar - - * sem_ch3.adb, sem_ch7.adb: Minor reformatting. - * gnat_rm.texi: Document pragma Loop_Invariant. - * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is - no longer an S14_Attribute. - * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine - processing with Assert, allow message parameter, remove call - to S14_Pragma. - -2013-04-24 Thomas Quinot - - * exp_ch4.adb: Minor reformatting. - -2013-04-24 Ed Schonberg - - * sem_ch7.adb (Swap_Private_Dependents): New internal routine - to Install_Private_Declarations, to make the installation of - private dependents recursive in the presence of child units. - * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly - the Private_Dependents of a private subtype. - -2013-04-24 Hristian Kirtchev - - * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the - retrieval of the block declarations. - * par-ch4.adb (P_Name): Let the name parsing machinery create - a sequence of nested indexed components for attribute Loop_Entry. - * sem_attr.adb (Analyze_Attribute): Add local constant - Context. Reimplement part of the analysis of attribute Loop_Entry. - (Convert_To_Indexed_Component): Removed. - * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze - an indexed component after it has been rewritten into attribute - Loop_Entry. - -2013-04-24 Yannick Moy - - * snames.ads-tmpl: Minor change to list - Loop_(In)variant not in configuration pragma. - * sem_ch3.adb (Analyze_Declarations): Do not look at the original node - for analyzing the expressions in pre/postconditions. - -2013-04-24 Robert Dewar - - * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor - reformatting. - -2013-04-24 Yannick Moy - - * sem_ch6.adb (Analyze_Generic_Subprogram_Body, - Analyze_Subprogram_Body_Helper): Reset contract node to Empty - before setting entity to E_Subprogram_Body. - * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to - Empty before setting entity to E_Subprogram_Body. - -2013-04-24 Vincent Celier - - * gnat_ugn.texi: Document new gnatls switch -aPdir. - * gnatcmd.adb: Pass switch -aP to gnatls. - * gnatls.adb (Scan_Ls_Arg): Process new switch -aP. Issue - a warning for unknown switches. - (Usage): Add line for new switch -aPdir. - -2013-04-24 Ed Schonberg - - * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true - if the type comes from a limited view, so that task attributes can be - constructed. - -2013-04-24 Yannick Moy - - * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if - full expansion is not enabled. - -2013-04-24 Ed Schonberg - - * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra - formals if the type does not yet have a completion, and thus - has no underlying view. - -2013-04-24 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect - specification for Address as a reference, to suppress warnings - on entities that may be read by an external device. - -2013-04-24 Sergey Rybin - - * gnat_ugn.texi: Add description of '--help' and '--version' - options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp. - -2013-04-24 Arnaud Charlet - - * gnat_rm.texi: Minor syntax fix. - -2013-04-24 Hristian Kirtchev - - * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on - what and why is being analyzed. Remove the decoration of renamings as - this simply falls out of the general analysis mechanism. - -2013-04-24 Hristian Kirtchev - - * sem_res.adb (Explain_Redundancy): New routine. - (Resolve_Equality_Op): Place the error concerning a redundant - comparison to True at the "=". Try to explain the nature of the - redundant True. - -2013-04-24 Javier Miranda - - - * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No - check in interface thunks since it is performed at the caller - side. - (Expand_Simple_Function_Return): No accessibility check - needed in thunks since the check is done by the target routine. - -2013-04-24 Vincent Celier - - * xref_lib.adb (Add_Entity): Use the canonical file names - so that source file names with capital letters are found on - platforms where file names are case insensitive. - -2013-04-24 Hristian Kirtchev - - * par-ch4.adb (P_Name): Continue to parse the name extension when the - construct is attribute Loop_Entry. Do not convert the attribute - reference into an indexed component when there is at least one - expression / range following 'Loop_Entry. - -2013-04-24 Hristian Kirtchev - - * sem_ch6.adb (Contains_Enabled_Pragmas): New routine. - (Process_PPCs): Generate procedure _Postconditions - only when the context has invariants or predicates or enabled - aspects/pragmas. - -2013-04-24 Thomas Quinot - - * g-socket.adb (Host_Entry): Introduce intermediate copy of - memory location pointed to by Hostent_H_Addr, as it might not - have sufficient alignment. - -2013-04-24 Yannick Moy - - * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before - calling subprograms which may read it. - -2013-04-24 Hristian Kirtchev - - * einfo.adb: Remove Loop_Entry_Attributes from the usage of - nodes. Flag 260 is now used. - (Has_Loop_Entry_Attributes): New routine. - (Loop_Entry_Attributes): Removed. - (Set_Has_Loop_Entry_Attributes): New routine. - (Set_Loop_Entry_Attributes): Removed. - (Write_Entity_Flags): Write out Flag 260. - (Write_Field10_Name): Remove the output for Loop_Entry_Attributes. - * einfo.ads: Remove attribute Loop_Entry_Attributes, - its related comment and uses in nodes. Add new attribute - Has_Loop_Entry_Attributes, related comment and uses in loop nodes. - (Has_Loop_Entry_Attributes): New routine and pragma Inline. - (Loop_Entry_Attributes): Removed along with pragma Inline. - (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline. - (Set_Loop_Entry_Attributes): Removed along with pragma Inline. - * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine. - (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry. - * exp_ch5.adb: Remove with and use clause for Elists. - (Expand_Loop_Entry_Attributes): Removed. - (Expand_N_Loop_Statement): Add local variable Stmt. Rename local - constant Isc to Scheme. When a loop is subject to attribute - 'Loop_Entry, retrieve the nested loop from the conditional - block. Move the processing of controlled object at the end of - loop expansion. - * sem_attr.adb (Analyze_Attribute): Do not chain attribute - 'Loop_Entry to its related loop. - * sem_ch5.adb (Analyze_Loop_Statement): Add local variable - Stmt. When the iteration scheme mentions attribute 'Loop_Entry, - the entire loop is rewritten into a block. Retrieve the nested - loop in such cases to complete the analysis. - * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New - routine. - (Subject_To_Loop_Entry_Attributes): New routine. - -2013-04-24 Robert Dewar - - * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check - (Loop_Variant, xxx) rather than Assert (xxx). - * gnat_rm.texi: Document pragma Loop_Variant. - * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call - to S14_Pragma. - -2013-04-24 Yannick Moy - - * adabkend.adb, ali-util.adb, ali.adb, debug.adb, - errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb, - exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb, - expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb, - lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads, - restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb, - sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb, - sem_res.adb, sem_util.adb: Everything with name - 'Alfa' renamed in 'SPARK'. Update comments. - Renaming of units with name 'Alfa', renamed with 'SPARK' instead. - * exp_alfa.adb: renamed exp_spark.adb. - * exp_alfa.ads: renamed exp_spark.ads. - * get_alfa.adb: renamed get_spark_xrefs.adb. - * get_alfa.ads: renamed get_spark_xrefs.ads. - * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb. - * put_alfa.adb: renamed put_spark_xrefs.adb. - * put_alfa.ads: renamed put_spark_xrefs.ads. - * alfa.adb: renamed spark_xrefs.adb. - * alfa.ads: renamed spark_xrefs.ads. - * alfa_test.adb: renamed spark_xrefs_test.adb. - * gcc-interface/Make-lang.in: Update dependencies. - -2013-04-24 Robert Dewar - - * gnat_rm.texi: Document pragma Assume. - * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as - part of Assert, and no longer requires -gnatd.F - -2013-04-24 Robert Dewar - - * gnat_rm.texi: Document pragma Assert_And_Cut. - * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove - S14_Pragma call. - -2013-04-24 Ed Schonberg - - * sem_aux.adb: Add guard in Available_View. - -2013-04-24 Hristian Kirtchev - - * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use - Find_Related_Subprogram to find the associated subprogram. - (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram - to find the associated subprogram. - (Analyze_Pragma): Use Find_Related_Subprogram to find the associated - subprogram. - -2013-04-24 Hristian Kirtchev - - * exp_ch6.adb: Remove with and use clause for Sem_Prag. - (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze - the contract of a subprogram. - * sem_ch3.adb: Remove with and use clause for Sem_Prag. - (Analyze_Declarations): Call Analyze_Subprogram_Contract to - analyze the contract of a subprogram. - * sem_ch6.adb (Analyze_Subprogram_Contract): New routine. - (Check_Subprogram_Contract): Removed. - * sem_ch6.ads (Analyze_Subprogram_Contract): New routine. - (Check_Subprogram_Contract): Removed. - (Expand_Contract_Cases): Add a guard against malformed contract cases. - * sem_ch13.adb (Analyze_Aspect_Specifications): Call - Decorate_Delayed_Aspect_And_Pragma to decorate aspects - Contract_Cases, Depends and Global. Reimplement the analysis of - aspect Contract_Cases. - (Decorate_Delayed_Aspect_And_Pragma): New routine. - * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine. - (Analyze_CTC_In_Decl_Part): Removed. - (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases. - (Analyze_Test_Case_In_Decl_Part): New routine. - (Find_Related_Subprogram): New routine. - (Requires_Profile_Installation): Add new formal Prag. Update - the logic to take into account the origin of the pragma. - * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine. - (Analyze_CTC_In_Decl_Part): Removed. - (Analyze_Test_Case_In_Decl_Part): New routine. - -2013-04-24 Robert Dewar - - * sem_prag.adb (Process_Convention): Move Stdcall tests to - Set_Convention_From_Pragma so that they are applied to each - entry of a homonym set. - (Process_Convention): Don't try to set convention if already set. - -2013-04-24 Robert Dewar - - * gnatbind.adb: Minor reformatting. - -2013-04-24 Vincent Celier - - * clean.adb (Gnatclean): Add the default project search - directories in the project search path after scanning the - switches on the command line. - (Initialize): Do not put the default project search directories in the - project search path. - * gnatcmd.adb (GNATcmd): Add the default project search - directories in the project search path after scanning the switches - on the command line. - * make.adb (Initialize): Add the default project search - directories in the project search path after scanning the switches - on the command line. - -2013-04-24 Yannick Moy - - * restrict.ads (Restriction_Warnings): Initialize with all False value. - -2013-04-24 Robert Dewar - - * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function. - * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of - Predicate_Check. - * snames.ads-tmpl (Name_Predicate_Check): New check name. - * types.ads (Predicate_Check): New definition. - * gnat_rm.texi: Add documentation for Predicate_Check. - -2013-04-24 Ed Schonberg - - * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this - is a renaming of predefined equality for an untagged record, - add generated body to the freeze actions for the subprogram, to - prevent freezing issues when the record has incomplete components. - * exp_ch4.adb (Expand_Composite_Equality): If the type is a type - without completion, return a predefined comparison instead of - just False. This may happen when building the expression for - record equality, when some component has a type whose completion - has not been seen yet. The operation will be analyzed an expanded - after the type has been frozen, at which point all component - types will have been completed, or an error reported. - -2013-04-24 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay - analysis of a Convention aspect. - -2013-04-24 Eric Botcazou - - * fe.h (Machine_Overflows_On_Target): New macro and declaration. - (Signed_Zeros_On_Target): Likewise. - -2013-04-24 Hristian Kirtchev - - * exp_ch6.adb: Add with and use clause for Sem_Prag. - (Freeze_Subprogram): Analyze all delayed aspects for a null - procedure so that they are available when analyzing the - internally-generated _Postconditions routine. - * exp_ch13.adb: Remove with and use clause for Sem_Prag. - (Expand_N_Freeze_Entity): Move the code that analyzes delayed - aspects of null procedures to exp_ch6.Freeze_Subprogram. - * sem_prag.adb (Analyze_Abstract_State): Update the check on - volatile requirements. - -2013-04-24 Bob Duff - - * ali-util.ads (Source_Record): New component Stamp_File - to record from whence the Stamp came. - * ali-util.adb (Set_Source_Table): Set Stamp_File component. - * bcheck.adb (Check_Consistency): Print additional information in - Verbose_Mode. - * gnatbind.adb (Gnatbind): Print additional information in - Verbose_Mode. - -2013-04-24 Robert Dewar - - * exp_ch13.adb, sem_prag.adb: Update comments. - * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor - reformatting. - -2013-04-24 Doug Rupp - - * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior. - -2013-04-24 Yannick Moy - - * sinfo.ads: Minor correction of typo. - -2013-04-24 Ed Schonberg - - * sem_ch3.adb: Create packed array only when expander is - active. - -2013-04-24 Hristian Kirtchev - - * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only - when the context warrants it. - (Analyze_Global_In_Decl_List): Install the formals only when - the context warrants it. - (Requires_Profile_Installation): New routine. - -2013-04-24 Ed Schonberg - - * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return - type is a discriminated private type that does not require use - of the secondary stack, a constrained subtype of the underlying - type is created to convey the proper object size to the backend. - If the return type is originally a private type, the return - expression is wrapped in an unchecked_conversion. If the return - expression is used subsequently in a call to the postcondition - function, this conversion must be undone to prevent a spurious - error on the analysis of that call. - -2013-04-23 Kai Tietz - - PR target/55445 - * raise-gcc.c (__SEH__): Additional check that SjLj isn't active. - -2013-04-23 Eric Botcazou - Pascal Obry - - * gcc-interface/Makefile.in (targ): Fix target name check. - (../../gnatmake$(exeext)): Add '+' for LTO. - (../../gnatlink$(exeext)): Likewise. - -2013-04-23 Hristian Kirtchev - - * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of - pre- and post-conditions. - (Expand_N_Task_Type_Declaration): - Use the correct attribute to check for pre- and post-conditions. - * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of - pre- and post-conditions. Analyze delayed classification items. - * freeze.adb (Freeze_Entity): Use the correct attribute to - check for pre- and post- conditions. - * sem_ch3.adb (Analyze_Declarations): Correct the traversal - of pre- and post-conditions as well as contract- and - test-cases. Analyze delayed pragmas Depends and Global. - * sem_ch6.adb (Check_Subprogram_Contract): Use the correct - attribute to check for pre- and post-conditions, as well as - contract-cases and test-cases. (List_Inherited_Pre_Post_Aspects): - Correct the traversal of pre- and post- conditions. - (Process_Contract_Cases): Update the comment on usage. Correct - the traversal of contract-cases. - (Process_Post_Conditions): Update the comment on usage. Correct the - traversal of pre- and post-conditions. - (Process_PPCs): Correct the traversal of pre- and post-conditions. - (Spec_Postconditions): Use the correct - attribute to check for pre- and post- conditions, as well as - contract-cases and test-cases. - * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the - actions related to aspects Depends and Global. Code refactoring - for pre- and post-conditions. - (Insert_Delayed_Pragma): New routine. - * sem_prag.adb (Add_Item): New routine. - (Analyze_Depends_In_Decl_Part): New routine. - (Analyze_Global_In_Decl_Part): New routine. - (Analyze_Pragma): Reimplement the actions related to aspects Depends and - Global. Verify that a body acts as a spec for pragma Contract_Cases. - (Chain_PPC): Use Add_Contract_Item to chain a pragma. - (Chain_CTC): Correct the traversal of contract- - and test-cases. Use Add_Contract_Item to chain a pragma. - (Chain_Contract_Cases): Correct the traversal of contract- - and test-cases. Use Add_Contract_Item to chain a pragma. - (Check_Precondition_Postcondition): Update the comment on usage. - (Check_Test_Case): Update the comment on usage. - * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine. - (Analyze_Global_In_Decl_Part): New routine. - * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine. - * sinfo.adb (Classifications): New routine. - (Contract_Test_Cases): New routine. - (Pre_Post_Conditions): New routine. - (Set_Classifications): New routine. - (Set_Contract_Test_Cases): New routine. - (Set_Pre_Post_Conditions): New routine. - (Set_Spec_CTC_List): Removed. - (Set_Spec_PPC_List): Removed. - (Spec_CTC_List): Removed. - (Spec_PPC_List): Removed. - * sinfo.ads: Update the structure of N_Contruct along with all - related comments. - (Classifications): New routine and pragma Inline. - (Contract_Test_Cases): New routine and pragma Inline. - (Pre_Post_Conditions): New routine and pragma Inline. - (Set_Classifications): New routine and pragma Inline. - (Set_Contract_Test_Cases): New routine and pragma Inline. - (Set_Pre_Post_Conditions): New routine and pragma Inline. - (Set_Spec_CTC_List): Removed. - (Set_Spec_PPC_List): Removed. - (Spec_CTC_List): Removed. - (Spec_PPC_List): Removed. - -2013-04-23 Doug Rupp - - * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2 - to account for LIB$STOP not having the chance to add the PC and - PSL fields. - -2013-04-23 Robert Dewar - - * sem_ch13.adb: Minor code reorganization (remove some redundant - assignments). - * sem_ch3.adb, sem_prag.adb: Minor reformatting. - -2013-04-23 Yannick Moy - - * einfo.ads: Minor typo fix. - * sem_ch13.adb (Build_Predicate_Functions): Reject cases where - Static_Predicate is applied to a non-scalar or non-static type. - * sem_prag.adb: Minor typo fix. - -2013-04-23 Doug Rupp - - * init.c (GNAT$STOP) [VMS]: New function. - -2013-04-23 Ed Schonberg - - * sem_ch3.adb: Add exp_pakd to context. - (Constrain_Component_Type): If the component of the parent is - packed, and the record subtype being built is already frozen, - as is the case for an itype, the component type itself will not - be frozen, and the packed array type for it must be constructed - explicitly. - -2013-04-23 Thomas Quinot - - * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram. - -2013-04-23 Yannick Moy - - * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero - at declaration. - * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration. - * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration. - * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration. - * stylesw.adb (Save_Style_Check_Options): Protect testing the - value of Style_Check_Comments_Spacing by a previous test that - Style_Check_Comments is True. - -2013-04-23 Thomas Quinot - - * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to - Original_Name, and move declaration to package body as this - subprogram is not used from outside. Also clarify documentation. - -2013-04-23 Ed Schonberg - - * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with - initialize_scalars, disable predicate checks on the generated - assignment to an out scalar parameter. - -2013-04-23 Gary Dismukes - - * sem_ch4.adb (Analyze_Allocator): Remove error - check for "constrained in partial view" constraints entirely. - -2013-04-23 Robert Dewar - - * einfo.ads, sem_prag.ads: Minor reformatting. - * errout.ads: Comment update. - -2013-04-23 Yannick Moy - - * exp_ch5.adb: Minor typo. - -2013-04-23 Thomas Quinot - - * gnat_ugn.texi: Fix typo. - -2013-04-23 Ed Schonberg - - * einfo.ads: Minor documentation clarification. - -2013-04-23 Bob Duff - - * types.ads: Fix incorrect comment. - -2013-04-23 Ed Schonberg - - * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View): - Rename subprogram as Object_Type_Has_Constrained_Partial_View, better - description of purpose. - * checks.adb (Apply_Discriminant_Check): Use above renaming. - * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View - of the base type, rather than using the Object_Type predicate. - * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming. - * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto. - * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto. - * exp_ch4.adb (Expand_N_Allocator): Ditto. - -2013-04-23 Robert Dewar - - * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather - than Assertion. - * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec - (Effective_Name): New function (Analyze_Pragma, case Check): - Disallow [Statement_]Assertions (Check_Kind): Implement - Statement_Assertions (Check_Applicable_Policy): Use Effective_Name - (Is_Valid_Assertion_Kind): Allow Statement_Assertions. - * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body - (Effective_Name): New function. - * sem_res.adb: Minor reformatting. - * snames.ads-tmpl (Name_Statement_Assertions): New entry. - * gnat_rm.texi: Add documentation of new assertion kind - Statement_Assertions. - -2013-04-23 Robert Dewar - - * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor - reformatting and code clean up. - -2013-04-23 Vincent Celier - - * prj-part.ads, prj-conf.ads: Minor comment updates. - -2013-04-23 Ed Schonberg - - * einfo.adb (Predicate_Function): For a private type, retrieve - predicate function from full view. - * aspects.adb (Find_Aspect): Ditto. - * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and - the actual is a definite type, apply predicate check after call. - * sem_res.adb: Do not apply a predicate check before the call to - a generated Init_Proc. - -2013-04-23 Robert Dewar - - * sem_ch13.adb (Analyze_Aspect_Specifications): Significant - rewrite to make sure Is_Ignore is properly captured when aspect - is declared. - * sem_ch6.adb: Minor reformatting. - * sem_prag.adb (Analyze_Pragma): Do not test policy at time of - pragma for the case of a pragma coming from an aspect (already - tested when we analyzed the aspect). - -2013-04-23 Vincent Celier - - * prj-conf.adb (Parse_Project_And_Apply_Config): New - Boolean parameter Implicit_Project, defaulted to False. Call - Prj.Part.Parse with Implicit_Project. - * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean - parameter Implicit_Project, defaulted to False. - * prj-part.adb (Parse_Single_Project): New Boolean parameter - Implicit_Project, defaulted to False. When Implicit_Project is - True, change the Directory of the project node to the Current_Dir. - * prj-part.ads (Parse): New Boolean parameter, defaulted to False - -2013-04-23 Robert Dewar - - * exp_util.adb: Minor reformatting. - -2013-04-23 Robert Dewar - - * xoscons.adb: Minor reformatting. - -2013-04-23 Hristian Kirtchev - - * sem_prag.adb (Check_Mode): Ensure that a - self-referential output appears in both input and output lists of - the subprogram as categorized by aspect Global. - (Check_Usage): Rename formal parameters to better illustrate their - function. Update all uses of the said formals. - -2013-04-23 Thomas Quinot - - * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New - parameter Append_NUL to make NUL-termination optional. - * exp_dist.adb: Consistently use the above throughout instead of - Get_Library_Unit_Name_String. - -2013-04-23 Robert Dewar - - * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor - reformatting. - -2013-04-23 Pascal Obry - - * xoscons.adb: Remove unused use clause, minor code clean-up. - -2013-04-23 Ed Schonberg - - * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function - (can apply to any scope entity). - * sem_res.adb (Resolve_Call): If the call is within another - expression function it does not constitute a freeze point. - -2013-04-23 Yannick Moy - - * exp_ch6.adb (Expand_Actuals): Test that Subp - is overloadable before testing if it's an inherited operation. - -2013-04-23 Robert Dewar - - * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor - reformatting. - -2013-04-23 Ed Schonberg - - * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch. - * exp_util.adb (Expand_Subtype_From_Expr): If the expression - is a source entity and the declaration is for an aliased - unconstrained array, create a new subtype so that the flag - Is_Constr_Subt_For_UN_Aliased does not pollute other entities. - -2013-04-23 Hristian Kirtchev - - * aspects.adb: Move tables Base_Aspect and Inherited_Aspect - from the spec to the body. - (Find_Aspect): Update the call to Get_Aspect_Id. - (Get_Aspect_Id): New version that takes an aspect specification. - * aspects.ads: Reorganize all aspect related tables. - (Get_Aspect_Id): New version that takes an aspect specification. - * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id. - * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update - the call to Get_Aspect_Id. - * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the - call to Get_Aspect_Id. (Analyze_Aspect_Specifications): Update - the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect. - -2013-04-23 Robert Dewar - - * sem_prag.adb (Fix_Error): Rewrite to do more accurate job - of getting proper name in the case where pragma comes from - aspect. - * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting. - -2013-04-23 Yannick Moy - - * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on - applicable policy. - -2013-04-23 Thomas Quinot - - * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization. - -2013-04-23 Doug Rupp - - * init.c: Move facility macros outside IN_RTS. - -2013-04-23 Thomas Quinot - - * freeze.adb (Freeze_Entity): For the case of a bit-packed - array time that is known at compile time to have more that - Integer'Last+1 elements, issue an error, since such arrays are - not supported. - -2013-04-23 Hristian Kirtchev - - * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to - Analyze_Input_Output. - (Analyze_Input_List): Update all calls to Analyze_Input_Output. - (Analyze_Input_Output): Add formal parameter Self_Ref along with - comment on its usage. Update all calls to Analyze_Input_Output. - (Analyze_Pragma): Add new local variable Self_Ref to capture - the presence of a self-referential dependency clause. Update - all calls to Analyze_Input_Output. - (Check_Mode): Add formal parameter Self_Ref along with comment on its - usage. Verify the legality of a self-referential output. - -2013-04-23 Ed Schonberg - - * exp_ch6.adb: Add predicate checks on by-copy parameter. - -2013-04-23 Vincent Celier - - * a-envvar.adb, a-envvar.ads (Value): New. - -2013-04-22 Yannick Moy - - * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as - null statement if ignored. - * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored. - * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas. - -2013-04-22 Hristian Kirtchev - - * sem_prag.adb (Analyze_Contract_Case): New routine. - (Analyze_Pragma): Aspect/pragma Contract_Cases can - now be associated with a library level subprogram. - Add circuitry to detect illegal uses of aspect/pragma Contract_Cases - in a subprogram body. - (Chain_Contract_Cases): Rename formal parameter Subp_Decl to - Subp_Id. Remove local constant Subp. The entity of the subprogram - is now obtained via the formal paramter. - -2013-04-22 Ed Schonberg - - * sem_ch3.adb (Analyze_Object_Declaration): Do not set - Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression, - if the expression is a source entity. - -2013-04-22 Yannick Moy - - * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in - comments. - * sem_ch6.adb (Expand_Contract_Cases): Add location to message. - -2013-04-22 Thomas Quinot - - * sem_prag.adb (Fix_Error): For a pragma rewritten from another - pragma, fix up error message to include original pragma name. - * par_sco.adb: Minor reformatting. - -2013-04-22 Robert Dewar - - * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb, - sem_ch6.adb, opt.ads: Minor reformatting. - -2013-04-22 Pascal Obry - - * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for - Library_Standalone and Library_Kind. - -2013-04-22 Ed Schonberg - - * exp_ch6.adb (Expand_Actuals): If the call is to an - inherited operation and the actual is a by-reference type with - predicates, add predicate call to post-call actions. - * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding - error: a type declaration has a defining identifier, not an Etype. - * sem_res.adb: Restore code removed because of above error. - -2013-04-22 Doug Rupp - - * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT. - -2013-04-22 Yannick Moy - - * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb, - opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc. - -2013-04-22 Vincent Celier - - * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to - No_Path_Information only when Directories_Must_Exist_In_Projects - is False. - (Get_Directories): Set Object_Directory - or Exec_Directory to No_Path_Information only when - Directories_Must_Exist_In_Projects is False. - -2013-04-22 Yannick Moy - - * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb, - snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to - Pragma_Contract_Case and Name_Contract_Case. - -2013-04-22 Yannick Moy - - * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to - Contract_Case. - * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by - description of Contract_Cases. - -2013-04-12 Robert Dewar - - * makeutl.adb, prj-nmsc.adb: Minor reformatting. - -2013-04-12 Robert Dewar - - * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead - of Check_Enabled. - * gnat_rm.texi (Check_Policy): Update documentation for new - Check_Policy syntax. - * sem_prag.adb (Check_Kind): Replaces Check_Enabled - (Analyze_Pragma, case Check_Policy): Rework to accomodate new - syntax (like Assertion_Policy). - * sem_prag.ads (Check_Kind): Replaces Check_Enabled. - -2013-04-12 Doug Rupp - - * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros. - (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user - handler if installed. - * ctrl_c.c (__gnat_install_int_handler) - [VMS]: Install a dummy sigaction handler to trigger the real - user handler dispatch in init.c/__gnat_handle_vms_condition. - (__gnat_uninstall_int_handler) [VMS]: Likewise. - -2013-04-12 Vincent Celier - - * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects - to False if switch is specified. - * makeutl.adb (Initialize_Source_Record): Do not look for the - object file if there is no object directory. - * opt.ads (Directories_Must_Exist_In_Projects): New Boolean - variable, defaulted to True. - * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library - directory does not exist when Directories_Must_Exist_In_Projects is - False. - (Get_Directories): Do not fail when the object or the exec directory - do not exist when Directories_Must_Exist_In_Projects is False. - -2013-04-12 Robert Dewar - - * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In). - * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb, - sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb, - par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb, - sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb, - exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb, - prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb, - sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb, - sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In). - -2013-04-12 Doug Rupp - - * init.c: Don't clobber condition code on VMS. - -2013-04-12 Robert Dewar - - * exp_aggr.adb: Minor reformatting. - * namet.ads, namet.adb (Nam_In): New functions. - -2013-04-12 Robert Dewar - - * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag. - (Has_Static_Predicate_Aspect): New flag. - * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag. - (Has_Static_Predicate_Aspect): New flag. - * exp_ch9.adb: Minor reformatting. - * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles - synonyms. - * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled, - since this switch is gone and control of Debug is done with - Assertions_Enabled. - * gnat_rm.texi: Update documentation for Assertion_Policy and - Check_Policy pragmas. - * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed - (Debug_Pragmas_Enabled[_Config]): Removed Since debug now - controlled by Assertion_Enabled. - * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed - (Debug_Pragmas_Enabled[_Config]): Removed Since debug now - controlled by Assertion_Enabled. - * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new - 'Class forms. - * sem_attr.adb: Minor reformatting. - * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect - if DISABLE policy applies. - * sem_ch6.adb (Grab_PPC): Check original name of aspect for - aspect from pragma (Process_PPCs): Properly check assertion policy. - * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy - (Check_Appicable_Policy): New procedure. - (Is_Valid_Assertion_Kind): New function. - (Rewrite_Assertion_Kind): New procedure. - (Analyze_Pragma): Handle case of disabled assertion pragma. - (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012. - (Analyze_Pragma, case Check): Deal with 'Class possibilities. - (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities. - (Analyze_Pragma, case Contract_Class): New handling of ignored pragma. - (Analyze_Pragma, case Debug): New control with Assertion_Policy. - (Analyze_Pragma, case Debug_Policy): Now consistent with - Assertion_Policy. - (Analyze_Pragma, case Loop_Invariant): New handling of ignored - pragma. - (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma. - (Analyze_Pragma, case Precondition): Use proper name for Check pragma. - (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff. - * sem_prag.ads (Check_Enabled): Rewritten for new - Assertion_Policy stuff. - (Check_Appicable_Policy): New procedure. - * sinfo.adb (Is_Disabled): New flag. - (Is_Ignored): New flag. - * sinfo.ads (Is_Disabled): New flag. - (Is_Ignored): New flag. - (N_Pragma_Argument_Association): New 'Class forms. - * snames.ads-tmpl: New names Name_uPre, Name_uPost, - Name_uType_Invariant, Name_uInvariant. - * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata. - * tree_io.ads (ASIS_Version_Number): Updated (remove - read write of obsolete flags Debug_Pragmas_Disabled and - Debug_Pragmas_Enabled. - -2013-04-12 Ed Schonberg - - * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary - of Build_Record_Aggr_Code, used to retrieve explicit values - for inherited discriminants in an extension aggregate, when the - ancestor type is unconstrained. - -2013-04-12 Ed Schonberg - - * sem_attr.adb (Check_Stream_Attribute): If restriction - No_Default_Stream_Attributes is active, it is illegal to use a - predefined elementary type stream attribute either by itself, - or more importantly as part of the attribute subprogram for a - composite type. However, if the broader restriction No_Streams - is active, then stream operations are not generated, and there - is no error. - -2013-04-12 Robert Dewar - - * gnatbind.adb: Minor reformatting. - -2013-04-12 Bob Duff - - * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a - call only in the static elaboration model. - -2013-04-12 Hristian Kirtchev - - * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency - clause where both input and output lists are null. - (Analyze_Pragma): Update the grammar of pragma Depends. - -2013-04-12 Vincent Celier - - * gnatbind.adb (No_Restriction_List): Exclude restrictions that - take a parameter value, not a count. - * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure. - * projects.texi: Complete documentation of attribute Roots. - -2013-04-12 Thomas Quinot - - * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb, - sem_ch3.adb: Minor reformatting. - * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation - improvement: note that the computation is pessimistic for bit - packed arrays. - * gnat_rm.texi (Range_Length): Fix minor error in description - of attribute. - -2013-04-12 Hristian Kirtchev - - * aspects.adb (Find_Aspect): New routine. - (Find_Value_Of_Aspect): New routine. - (Has_Aspect): Reimplemented. - * aspects.ads (Find_Aspect): New routine. - (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect. - * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect. - * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect. - * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect. - * sem_ch5.adb (Analyze_Iterator_Specification): Update - the call to Find_Aspect. Use function Has_Aspect for better - readability. - (Preanalyze_Range): Use function Has_Aspect for better readability. - * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect. - * sem_prag.adb (Analyze_Pragma): There is no longer need to - look at the parent to extract the corresponding pragma for - aspect Global. - -2013-04-12 Robert Dewar - - * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb, - restrict.ads: Minor reformatting. - -2013-04-12 Ed Schonberg - - * lib-xref.adb: Retrieve original name of classwide type if any. - -2013-04-12 Thomas Quinot - - * exp_ch11.ads: Minor reformatting. - -2013-04-12 Hristian Kirtchev - - * aspects.adb: Alphabetize subprogram bodies in this unit. Add - an entry for Aspect_Ghost in the table of canonical aspects. - (Has_Aspect): New routine. - * aspects.ads: Add Aspect_Ghost to all relevant - tables. Alphabetize subprograms in this unit. - (Has_Aspect): New routine. - * einfo.adb: Add with and use clauses for Aspects. - (Is_Ghost_Function): New routine. - * einfo.ads: Add new synthesized attribute Is_Ghost_Function and - update the structure of the related nodes. - (Is_Ghost_Function): New routine. - * exp_ch4.adb (Find_Enclosing_Context): Use routine - Is_Body_Or_Package_Declaration to terminate a search. - (Is_Body_Or_Unit): Removed. - * exp_util.adb (Within_Case_Or_If_Expression): Use routine - Is_Body_Or_Package_Declaration to terminate a search. - * par-prag.adb: Add pragma Ghost to the list of pragmas that do - not need special processing by the parser. - * sem_attr.adb (Analyze_Access_Attribute): Detect an - illegal use of 'Access where the prefix is a ghost function. - (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration - to terminate a search. (Check_References_In_Prefix): Use routine - Is_Body_Or_Package_Declaration to terminate a search. - * sem_ch4.adb (Analyze_Call): Mark a function when it appears - inside an assertion expression. Verify the legality of a call - to a ghost function. - (Check_Ghost_Function_Call): New routine. - * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move - the setting of attribute In_Assertion_Expression to Analyze_Call. - (Check_Overriding_Indicator): Detect an illegal attempt to - override a function with a ghost function. - * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of - a ghost function as a generic actual. - * sem_elab.adb (Check_Internal_Call_Continue): Update the call - to In_Assertion. - * sem_prag.adb: Add an entry for pragma Ghost in the table - of significant arguments. - (Analyze_Pragma): Do not analyze - an "others" case guard. Add processing for pragma Ghost. Use - Preanalyze_Assert_Expression when analyzing the expression of - pragmas Loop_Invariant and Loop_Variant. - * sem_util.adb (Get_Subprogram_Entity): Reimplemented. - (Is_Body_Or_Package_Declaration): New routine. - * sem_util.ads: Alphabetize subprotrams in this unit. - (Is_Body_Or_Package_Declaration): New routine. - * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression. - (Set_In_Assertion): Rename to Set_In_Assertion_Expression. - * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression - to better reflect its use. Update all places that mention the flag. - (In_Assertion): Rename to In_Assertion_Expression. Update - related pragma Inline. (Set_In_Assertion): Rename to - Set_In_Assertion_Expression. Update related pragma Inline. - * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma - id Pragma_Ghost. - -2013-04-12 Arnaud Charlet - - * sem_prag.adb (Set_Imported): Do not generate error for multiple - Import in CodePeer mode. - * s-rident.ads: Fix minor typo. - -2013-04-12 Ed Schonberg - - * checks.adb (Insert_Valid_Check): Do not insert validity check - in the body of the generated predicate function, to prevent - infinite recursion. - -2013-04-12 Ed Schonberg - - * s-rident.ads: Add various missing Ada 2012 restrictions: - No_Access_Parameter_Allocators, No_Coextensions, - No_Use_Of_Attribute, No_Use_Of_Pragma. - * snames.ads-tmpl: Add corresponding names. - * restrict.ads restrict.adb: Subprograms and data structures to - handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma. - * sem_ch4.adb: Correct name of restrictions is - No_Standard_Allocators_After_Elaboration. - * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check - violation of restriction No_Use_Of_Attribute. - * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): - Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute. - (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma. - * sem_res.adb: Check restrictions No_Access_Parameter_Allocators - and No_Coextensions. - * bcheck.adb: Correct name of restrictions is - No_Standard_Allocators_After_Elaboration. - * gnatbind.adb: Correct name of restrictions is - No_Standard_Allocators_After_Elaboration. - -2013-04-12 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function): - Correct error message format. - -2013-04-12 Robert Dewar - - * sem_attr.adb: Minor reformatting. - -2013-04-12 Ed Schonberg - - * sem_elab.adb (Within_Elaborate_All): Do not examine a context - item that has not been analyzed, because the unit may have errors, - or the context item may come from a proper unit inserted at the - point of a stub and not analyzed yet. - -2013-04-12 Thomas Quinot - - * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info, - List_Record_Info): Also include scalar storage order information in - output. - -2013-04-12 Yannick Moy - - * sem_ch6.adb (Process_Contract_Cases): Update code to apply to - Contract_Cases instead of Contract_Case pragma. - -2013-04-12 Robert Dewar - - * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting. - -2013-04-12 Yannick Moy - - * sem_attr.adb (Analyze_Attribute): Update analyse of - Attribute_Old and Attribute_Result so they are allowed in the - right-hand-side of an association in a Contract_Cases pragma. - * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of - the expressions in a Contract_Cases pragma. - -2013-04-12 Robert Dewar - - * sem.ads, opt.ads: Minor comment edits. - * sem_warn.adb, sem_ch6.adb: Minor reformatting. - -2013-04-12 Claire Dross - - * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate, - Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed, - not suitable for formal analysis. - -2013-04-12 Ed Schonberg - - * sem_prag.adb (Analyze_Abstract_State): Use Defining entity - to locate package entity, which may be a child unit. - -2013-04-12 Thomas Quinot - - * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If - the specified timeout is 0, do not attempt to determine whether the - connection succeeded. - -2013-04-12 Doug Rupp - - * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos. - -2013-04-12 Doug Rupp - - * s-fileio.adb: Minor reformatting. - -2013-04-12 Ed Schonberg - - * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if - the last statement in the analyzed loop is an unconditional - exit statement. - -2013-04-12 Robert Dewar - - * opt.ads (Style_Check_Main): New switch. - * sem.adb (Semantics): Set Style_Check flag properly for new - unit to be analyzed. - * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check, - the proper setting of this flag is now part of the Semantics - procedure. - * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main - for -gnatg and -gnaty - -2013-04-12 Doug Rupp - - * s-crtl.ads (fopen, freopen): Add vms_form parameter - * i-cstrea.ads (fopen, freopen): Likewise. - * adaint.h (__gnat_fopen, __gnat_freopen): Likewise. - * adaint.c (__gnat_fopen, __gnat_freopen): Likewise. - [VMS]: Split out RMS keys and call CRTL function appropriately. - * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New - subprograms. - (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with - vms_form - * gnat_rm.texi: Document implemented RMS keys. - -2013-04-12 Hristian Kirtchev - - * sem_ch13.adb (Analyze_Aspect_Specifications): - Insert the corresponding pragma for aspect Abstract_State at - the top of the visible declarations of the related package. - Previously this was only done when the package is a compilation - unit. - -2013-04-12 Arnaud Charlet - - * gnat_ugn.texi: Further menu clean ups. - * sem_prag.adb, opt.ads: Minor reformatting. - * sem_util.ads: Minor comment fix. - -2013-04-12 Hristian Kirtchev - - * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect - Depends is now a delayed aspect. The delay is required - due to the interplay between aspects Depends and Global. - (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends. - * sem_prag.adb: Reformat various error messages. - (Add_Item): New subsidiary routine. - (Analyze_Pragma): Add new variables - Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The - analysis of pragma Depends now has the capability to check - the proper mode and usage of subprogram inputs and outputs. - (Appears_In): New routine. - (Check_Function_Return): New routine. - (Check_Mode): New routine. - (Check_Usage): New routine. - (Collect_Subprogram_Inputs_Outputs): New routine. - -2013-04-12 Bob Duff - - * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope - stack entry. - -2013-04-12 Robert Dewar - - * switch-c.adb: Minor fix to wording of error message for - -gnatet/eT. - -2013-04-12 Robert Dewar - - * impunit.adb: Add s-multip and s-mudido to list of impl defined - system units. - * gnat_rm.texi: Add documentation for - System.Multiprocessors[.Dispatching_Domains]. - -2013-04-12 Ben Brosgol - - * gnat_ugn.texi: Completion of menu cleanups. - -2013-04-12 Arnaud Charlet - - * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules - in Relaxed_RM_Semantics. - -2013-04-12 Arnaud Charlet - - * set_targ.adb (elab code): Add support for non gcc back-ends - where save_argv is null. - -2013-04-12 Robert Dewar - - * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name. - * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access - type (Target_Dependent_Info_Write): Add _Name, now an access type. - * set_targ.adb (Write_Target_Dependent_Values): Use name - from -gnatet switch stored in Target_Dependent_Info_Write_Name - (Read_Target_Dependent_Values): Use name from -gnateT switch - stored in Target_Dependent_Info_Read_Name. - * switch-c.adb: New form of -gnatet and -gnateT switches. - * usage.adb: New form of -gnatet and -gnateT switches with - file name. - -2013-04-11 Eric Botcazou - - * gcc-interface/decl.c (elaborate_expression_1): Skip only constant - arithmetics when looking for a read-only variable in the expression. - -2013-04-11 Javier Miranda - - * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in - interface thunks since it is performed at the caller side. - (Expand_Simple_Function_Return): No accessibility check needed in thunks - since the check is done by the target routine. - -2013-04-11 Ed Schonberg - - * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze - expression with type Any_Priority. - * exp_ch9.adb (Initialize_Protection): Check that the value - of the priority expression is within the bounds of the proper - priority type. - -2013-04-11 Robert Dewar - - * sem_prag.adb, prj-env.adb: Minor reformatting. - -2013-04-11 Ben Brosgol - - * gnat_ugn.texi: Clean ups. - -2013-04-11 Yannick Moy - - * set_targ.adb: Minor comment update. - -2013-04-11 Pascal Obry - - * gnat_ugn.texi: Remove obsolete comment about DLL calling - convention. - -2013-04-11 Javier Miranda - - * exp_ch6.adb (Expand_Call): For the call to the target primitive - of an interface thunks do not compute the extra actuals; just - propagate the extra actuals received by the thunk. - * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute - Thunk_Entity. - * sem_ch6.adb (Create_Extra_Formals): Do not generate extra - formals in interface thunks whose target primitive has no extra - formals. - -2013-04-11 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Detect - a renaming by looking at the Renamed_Object attribute. - (Is_Renaming): Removed. - -2013-04-11 Vincent Celier - - * prj-env.adb (Initialize_Default_Project_Path): Take - into account a project path file, specified by environment - variable GPR_PROJECT_PATH_FILE, before taking into account - GPR_PROJECT_PATH. - * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE - -2013-04-11 Ed Schonberg - - * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb, - a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads, - a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb, - a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads, - a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb, - a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb, - a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb, - a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads: - Move Iterator operations from body to private part of spec. - -2013-04-11 Eric Botcazou - - * ttypes.ads, get_targ.ads: More minor rewording of comments. - -2013-04-11 Johannes Kanig - - * debug.adb: Document use of switch -gnatd.Z. - -2013-04-11 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now - support renamings of entire objects. Legal renamings are replaced by - the object they rename. - (Is_Renaming): New routine. - -2013-04-11 Yannick Moy - - * set_targ.adb, opt.ads: Minor changes in comments. - -2013-04-11 Ben Brosgol - - * gnat_ugn.texi: Minor clean ups. - -2013-04-11 Robert Dewar - - * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging - function p from Nlists to Treepr. - -2013-04-11 Ed Schonberg - - * sem_disp.adb (Check_Dispatching_Context): If the context is - a contract for a null procedure defer error reporting until - postcondition body is created. - * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a - null procedure, complete the analysis of its contracts so that - calls within classwide conditions are properly rewritten as - dispatching calls. - -2013-04-11 Thomas Quinot - - * sem_ch10.adb, sem_ch12.adb: Minor reformatting. - -2013-04-11 Robert Dewar - - * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting. - -2013-04-11 Robert Dewar - - * atree.adb, atree.ads (Node31): New function. - (Set_Node31): New procedure. - -2013-04-11 Robert Dewar - - * errout.ads: Minor typo correction. - -2013-04-11 Javier Miranda - - * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute. - -2013-04-11 Robert Dewar - - * back_end.adb (Register_Back_End_Types): Moved to Get_Targ - * back_end.ads (C_String): Moved to Get_Targ - (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types): - Moved to Get_Targ. - * cstand.adb (Register_Float_Type): New interface - (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table. - * get_targ.adb (Register_Back_End_Types): Moved here from - Back_End. - * get_targ.ads (C_String): Moved here from Back_End - (Register_Type_Proc): Moved here from Back_End - (Register_Back_End_Types): here from Back_End. - * gnat1drv.adb (GGnat11drv): Add call to - Write_Target_Dependent_Values; - * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing - obsolete target dependent info. - * opt.ads (Generate_Target_Dependent_Info): - Removed (Target_Dependent_Info_Read): New flag - (Target_Dependent_Info_Write): New flag - * output.adb: Minor comment change - * s-os_lib.ads: Minor reformatting - * set_targ.ads, set_targ.adb: Minor reformatting. - * switch-c.adb (Scan_Switches.First_Ptr): New variable - (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first - (Scan_Front_End_Switches): Handle -gnatet, -gnateT - * ttypes.ads: Remove documentation section on target dependent - info in ali file Remove four letter codes, no longer used Instead - of using Get_Targ.Get_xxx, we use Set_Targ.xxx - * usage.adb: Add usage lines for -gnatet/-gnateT - * gcc-interface/Make-lang.in: Update dependencies. - -2013-04-11 Thomas Quinot - - * sem_ch4.adb: Update documentation. - * sinfo.ads (N_Expression_With_Actions): Ditto. - -2013-04-11 Hristian Kirtchev - - * sem_ch13.adb (Analyze_Aspect_Specifications): - Add a guard to prevent the double insertion of the same aspect - into a rep item list. This previously led to a circularity. - -2013-04-11 Ed Schonberg - - * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute - reference if the prefix is the dereference of an anonymous access - to subprogram type. - * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle - properly a reference to the current instance of a protected type - from within a protected subprogram. - * sem_res.adb (Find_Unique_Access_Type): Treat - Attribute_Access_Type like Allocator_Type when resolving an - equality operator. - -2013-04-11 Arnaud Charlet - - * xgnatugn.adb: Remove obsolete comments. - -2013-04-11 Robert Dewar - - * back_end.ads, back_end.adb: Minor reformatting. - * set_targ.ads, set_targ.adb: New files. - -2013-04-11 Hristian Kirtchev - - * sem_case.adb (Check_Against_Predicate): New routine. - (Check_Choices): When the type covered by the list of choices - is a static subtype with a static predicate, check all choices - agains the predicate. - (Issue_Msg): All versions removed. - (Missing_Choice): New routines. - * sem_ch4.adb: Code and comment reformatting. - (Analyze_Case_Expression): Do not check the choices when the case - expression is being preanalyzed and the type of the expression - is a subtype with a static predicate. - (Has_Static_Predicate): New routine. - * sem_ch13.adb: Code and comment reformatting. (Build_Range): - Always build a range even if the low and hi bounds denote the - same value. This is needed by the machinery in Check_Choices. - (Build_Static_Predicate): Always build a range even if the low and - hi bounds denote the same value. This is needed by the machinery - in Check_Choices. - -2013-04-11 Robert Dewar - - * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor - reformatting. - -2013-04-11 Doug Rupp - - * gnatlink.adb: Fold program basename to lower case on VMS for - consistency. - -2013-04-11 Matthew Heaney - - * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before - entering loop. - -2013-04-11 Arnaud Charlet - - * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear). - -2013-04-11 Arnaud Charlet - - * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly - needed, and seems to confuse some versions of makeinfo. - -2013-04-11 Javier Miranda - - * einfo.adb (Is_Thunk): Remove assertion. - (Set_Is_Thunk): Add assertion. - * einfo.ads (Is_Thunk): Complete documentation. - * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup. - * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util - (Is_Variable_Size_Record): Moved to sem_util - * exp_ch6.adb (Expand_Call): Code cleanup. - (Expand_N_Extended_Return_Statement): Code cleanup. - (Expand_Simple_Function_Return): Code cleanup. - * exp_disp.adb Remove dependency on exp_ch3 - (Expand_Interface_Thunk): Add minimum decoration needed to set - attribute Is_Thunk. - * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util - * sem_util.ad[sb] (Is_Constant_Bound): Moved from - sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3 - (Is_Variable_Size_Record): Moved from exp_ch3 - -2013-04-11 Javier Miranda - - * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do - not add cleanup actions in thunks associated with interface types. - * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to - the package spec. - * exp_ch4.adb (Tagged_Conversion): Update call to - Expand_Interface_Conversion since the parameter Is_Static is no - longer needed. - * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding - assertion to ensure that interface thunks are never handled by - this routine. - (Expand_N_Simple_Function_Return): Do not rewrite this statement - as an extended return statement in interface thunks, and do not - perform copy in the secondary stack if the return statement is - located in a thunk. - * exp_disp.adb (Expand_Dispatching_Call): No longer displace - the pointer to the returned object in functions returning interface - types. - (Expand_Interface_Thunk): For functions returning interface types - displace the pointer to the returned object. - (Expand_Interface_Conversion): Remove formal - Is_Static since this subprogram can now evaluate it locally. - * sem_ch3.adb (Add_Internal_Interface_Entities): For functions - propagate the type returned by the covered interface primitive to - the internal interface entity. Needed by the thunk to generate - the code which displaces "this" to reference the corresponding - secondary dispatch table. - * sem_disp.adb (Propagate_Tag): Update call to - Expand_Interface_Conversion since the parameter Is_Static is no - longer needed. - * sem_res.adb (Resolve_Type_Conversion): Update calls to - Expand_Interface_Conversion since the parameter Is_Static is no - longer needed plus code cleanup. - -2013-04-11 Eric Botcazou - - * init.c (RETURN_ADDR_OFFSET): Delete as unused. - -2013-04-11 Robert Dewar - - * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb, - a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting. - -2013-04-11 Yannick Moy - - * exp_ch4.adb (Expand_N_Selected_Component): Do not expand - discriminant check for Unchecked_Union. - * sem_res.adb (Resolve_Selected_Component): Set flag - Do_Discriminant_Check even when expansion is not performed. - * sinfo.ads (Do_Discriminant_Check): Update documentation for the case - of Unchecked_Union. - -2013-04-11 Thomas Quinot - - * sem_ch13.adb (Same_Representation): Two types with different scalar - storage order never have the same representation. - -2013-04-11 Arnaud Charlet - - * xgnatugn.adb (Push_Conditional): Simplify handling, - no longer need to keep track of "excluding" sections. - (Currently_Excluding): Removed. - (Process_Source_File): - Set unw/vms flag so that texinfo can do the whole handling of - @ifset/@ifclear sections. Fix handling of nested @ifset/@ifclear - sections. - * gnat_ugn.texi: Add a section on performing unassisted install - on Windows. - -2013-04-11 Johannes Kanig - - * debug.adb: Document usage of -gnatd.Q switch. - -2013-04-11 Matthew Heaney - - * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks - before element comparisons. - (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint): - Ditto. - * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before - element comparisons. - * a-rbtgso.adb (Difference, Intersection): Adjust locks - before element comparisons. - (Is_Subset, Overlap): Ditto - (Symmetric_Difference, Union): Ditto - * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks - before element comparisons. - (Set_Subset, Set_Overlap): Ditto - (Set_Symmetric_Difference, Set_Union): Ditto - * a-coorse.adb, a-ciorse.adb, a-cborse.adb - (Update_Element_Preserving_Key): Adjust locks before element - comparisons (Replace_Element): Ditto - -2013-04-11 Pascal Obry - - * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves - attribute. - -2013-04-11 Ed Schonberg - - * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of - Expand_N_Object_Declaration, used to construct an aggregate - with static components whenever possible, so that objects of a - discriminated type can be initialized without calling the init. - proc for the type. - -2013-04-11 Vincent Celier - - * prj-makr.adb (Process_Directory): On VMS, always delete, - then recreate the temporary file with Create_Output_Text_File, - otherwise the output redirection does not work properly. - -2013-04-11 Eric Botcazou - - * urealp.ads: Fix minor typo. - -2013-04-11 Fabien Chouteau - - * cio.c (mktemp): Don't use tmpnam function from the - system on VxWorks in kernel mode. - -2013-04-11 Vincent Celier - - * make.adb (Compile): Clarify the error message reported - when gnatmake refuses to compile a runtime source. - (Start_Compile_If_Possible): Ditto. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Add documentation about -gnatc and gnatmake. - -2013-04-11 Vincent Celier - - * switch-c.adb: Document internal switches. - * usage.adb: Remove lines for internal switches: -gnatea, -gnateO, - -gnatez and -gnateO. - -2013-04-11 Ed Schonberg - - * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub. - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on - subprogram stubs. - * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated - pre/post pragmas at once before analyzing the proper body. - * sem_prag.adb (Chain_PPC): Handle pragma that comes from an - aspect on a subprogram stub. - * aspects.adb: Aspect specifications can appear on a - subprogram_Body_Stub. - -2013-04-11 Vincent Celier - - * gnatname.adb: Minor comment fix. - -2013-04-11 Vincent Celier - - * prj-makr.adb (Process_Directory): Create a new temporary - file for each invocation of the compiler, in directory pointed - by environment variable TMPDIR if it exists. - -2013-04-11 Arnaud Charlet - - * gnat_ugn.texi: Minor editing/clean ups. - -2013-04-11 Ed Schonberg - - * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly - extracted from Analyze_Subprogram_Declaration, to handle null - procedure declarations that in ada 2012 can be completions of - previous declarations. - -2013-04-11 Hristian Kirtchev - - * sem_prag.adb (Entity_Of): Moved to Exp_Util. - * exp_util.ads, exp_util.adb (Entity_Of): New routine. - -2013-04-11 Robert Dewar - - * g-spipat.ads: Minor comment fix. - -2013-04-11 Robert Dewar - - * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor - reformatting. - -2013-04-11 Thomas Quinot - - * exp_util.ads (Fully_Qualified_Name_String): Document that the - constructed literal is the entity name in all upper case. - -2013-04-11 Thomas Quinot - - * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of - check for implementation defined identifiers. - -2013-04-11 Yannick Moy - - * checks.adb (Apply_Type_Conversion_Checks): Add an explanation - of why range check and length are put on different nodes. - * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks - when doing their expansion. - -2013-04-11 Ed Schonberg - - * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor): - New function to implement the notion introduced in RM 7.3.1 - (5.2/3): in a child unit, a derived type is within the derivation - class of an ancestor declared in a parent unit, even if there - is an intermediate derivation that does not see the full view - of that ancestor. - * sem_res.adb (Valid_Conversion): if all else fails, examine if an - incomplete view of an ancestor makes a numeric conversion legal. - -2013-04-11 Ed Schonberg - - * sem_ch6.adb: in Ada2012 operators can only have in - parameters. - -2013-04-11 Vincent Celier - - * makeutl.adb (Create_Binder_Mapping_File): Do not put into - the mapping file ALI files of sources that have been replaced. - -2013-04-11 Vincent Celier - - * projects.texi: Add subsection Duplicate Sources in Projects. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/** - -2013-04-11 Arnaud Charlet - - * init.c (__gnat_install_handler): Only set up an alternate - stack when installing a signal handler for SIGSEGV. - -2013-04-11 Thomas Quinot - - * g-socket.adb (Connect_Socket, timeout version): Call - underlying connect operation directly, not through the 2-argument - Connect_Socket thick binding, in order to avoid raising a junk - exception for the EINPROGRESS return. - -2013-04-11 Robert Dewar - - * a-cdlili.adb: Minor addition of pragma Warnings (Off). - -2013-04-11 Robert Dewar - - * hostparm.ads: Minor reformatting. - -2013-04-11 Hristian Kirtchev - - * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant - tables. - * elists.ads, elists.adb (Contains): New routine. - * par-prag.adb: Pragma Depends does not need any special treatment - by the parser. - * sem_ch13.adb (Analyze_Aspect_Specifications): - Transform aspect Depends into a corresponding pragma. - (Check_Aspect_At_Freeze_Point): Aspect Depends does not need - inspection at its freeze point. - * sem_prag.adb (Analyze_Pragma): Perform analysis and - normalization of pragma Depends. Remove the use of function - Is_Duplicate_Item. Use End_Scope to uninstalle the formal - parameters of a subprogram. Add a value for pragma Depends in - table Sig_Flags. - (Is_Duplicate_Item): Removed. - * snames.ads-tmpl: Add predefined name for Depends as well as - a pragma identifier. - -2013-04-11 Arnaud Charlet - - * gnat1drv.adb: Minor code clean up. - -2013-04-11 Arnaud Charlet - - * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause): - Ignore enumeration rep clauses by default in CodePeer mode, unless - -gnatd.I is specified. - -2013-04-11 Ed Schonberg - - * sem_util.adb (Safe_To_Capture_Value): If the node belongs to - an expression that has been attached to the else_actions of an - if-expression, the capture is not safe. - -2013-04-11 Yannick Moy - - * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type - conversion for arrays. - -2013-04-11 Robert Dewar - - * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting. - -2013-04-11 Johannes Kanig - - * adabkend.adb: Minor comment addition. - -2013-04-11 Matthew Heaney - - * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment - lock counts before entering loop. - (Find): Ditto. - (Is_Sorted, Merge, Sort): Ditto. - (Reverse_Find): Ditto. - (Splice_Internal): Internal operation to refactor splicing logic. - (Splice): Some logic moved into Splice_Internal. - -2013-04-11 Johannes Kanig - - * adabkend.adb (Scan_Compiler_Arguments): Do not call - Set_Output_Object_File_Name in Alfa_Mode - * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account. - * opt.ads: Fix documentation. - -2013-04-11 Robert Dewar - - * sem_res.adb: Minor code reorganization and comment fixes. - * sem_type.adb: Minor reformatting. - -2013-04-11 Hristian Kirtchev - - * exp_ch4.adb (Process_Transient_Object): Add new - local variable Fin_Call. Remove and explain ??? comment. Use the - Actions of logical operators "and then" and "or else" to insert - the generated finalization call. - -2013-04-11 Eric Botcazou - - * gnat_rm.texi: Fix typo. - -2013-04-11 Ed Schonberg - - * sem_res.adb: Minor reformatting. - -2013-04-11 Robert Dewar - - * atree.h: Add declarations for Flag255-Flag289 Fix declaration - of Field30 (was wrong, but no effect, since not yet referenced by - back end) Add declarations for Field31-Field35 Add declarations - for Node31-Node35. - * einfo.ads, einfo.adb (Has_Invariants): No longer applies to - procedures. - (Has_Predicates): No longer applies to functions. - (Is_Predicate_Function): New flag. - (Is_Predicate_Function_M): New flag. - (Is_Invariant_Procedure): New flag. - (Predicate_Function_M): New function. - (Set_Predicate_Function_M): New procedure. - * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special - case of appearing in predicate used for membership test. - * exp_ch3.adb (Insert_Component_Invariant_Checks): Set - Is_Invariant_Procedure flag. - * exp_ch4.adb (Expand_Op_In): Call special predicate function - that takes care of raise_expression nodes in the predicate. - * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for - membership case. - * sem_ch13.adb (Build_Predicate_Functions): New name for - Build_Predicate_Function. Major rewrite to take care of raise - expression in predicate for membership tests. - * sem_res.adb (Resolve_Actuals): Include both predicate functions - in defense against infinite predicate function loops. - * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag. - -2013-04-11 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2013-04-11 Ed Schonberg - - * lib-xref.adb: Generate reference for component of anonymous - access type. - -2013-04-11 Robert Dewar - - * stand.ads: Minor reformatting. - -2013-04-11 Matthew Heaney - - * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock - counts before entering loop. - (Find, Find_Index): Ditto. - (Is_Sorted, Merge, Sort): Ditto. - (Reverse_Find, Reverse_Find_Index): Ditto. - -2013-04-11 Robert Dewar - - * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure. - * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression. - * expander.adb: Add call to Expand_N_Raise_Expression. - * par-ch11.adb (P_Raise_Expression): New procedure. - * par-ch4.adb (P_Relation): Handle Raise_Expression. - * par.adb (P_Raise_Expression): New procedure. - * sem.adb: Add handling for N_Raise_Expression. - * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure. - * sem_res.adb (Resolve): Add handling for N_Raise_Expression. - * sinfo.ads, sinfo.adb (N_Raise_Expression): New node. - * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression. - * stand.ads (Any_Type): Document use with N_Raise_Expression. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Remove section "The Development Environments" - now that all predefined attributes are documented, including - those in package IDE. - -2013-04-11 Ed Schonberg - - * sem_ch6.adb: Preserve parent link in copy of expression. - -2013-04-11 Vincent Celier - - * projects.texi: Complete rewrite of the subsection Attributes - in section "Project file Reference". - -2013-04-11 Robert Dewar - - * exp_ch4.adb: Minor reformatting. - -2013-04-11 Robert Dewar - - * exp_ch4.adb (Expand_Concatenate): Remove wrapping in - expression-with-actions node. No longer needed given fix to - sem_prag and caused loss of some useful warnings. - * sem.ads: Minor reformatting. - * sem_prag.adb (Check_Disabled): Removed, to be replaced by not - Check_Enabled. These two routines were curiously incompatible - causing confusion. - (Analyze_Pragma, case Check): Make sure we do - not expand the string argument if the check is disabled. Avoid - use of Check_Disabled, which resulted in missing analysis in - some cases. - * sem_prag.ads (Check_Disabled): Removed, to be replaced by not - Check_Enabled. These two routines were curiously incompatible - causing confusion. - -2013-04-11 Hristian Kirtchev - - * exp_ch4.adb (Process_Transient_Object): Use - an unchecked conversion when associating a transient controlled - object with its "hook". - -2013-04-11 Ed Schonberg - - * sem_prag.adb (Analyze_Pragma, case - Preelaborable_Initialization): The pragma is legal if it comes - from an aspect on the private view of the type, even though its - analysis point takes place later at the freeze point. - -2013-04-11 Robert Dewar - - * sem_ch6.adb: Minor reformatting. - -2013-04-11 Yannick Moy - - * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to - read ALI files with No_Object=True in Alfa mode. - * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether - this is during frame condition generation of translation to Why. - -2013-04-11 Robert Dewar - - * exp_ch4.adb: Minor code reorganization - * types.ads: Minor reformatting. - -2013-04-11 Johannes Kanig - - * opt.ads New global boolean Frame_Condition_Mode to avoid - referring to command line switch. - * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G - is present, and disable Code generation in that case. Disable - ALI file generation when switch is *not* present. - -2013-04-11 Ed Schonberg - - * sem_ch6.adb (Analyze_Expression_Function): Perform the - pre-analysis on a copy of the expression, to prevent downstream - visbility issues involving operators and instantiations. - -2013-04-11 Johannes Kanig - - * debug.adb: Reservation and documentation for -gnatd.G switch. - * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G - switch, and set ALI file generation accordingly. - -2013-04-11 Robert Dewar - - * exp_ch4.adb, exp_dist.adb: Minor reformatting. - * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that - check names introduced with pragma Check_Name are suppressed by -gnatp. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project - Files" from projects.texi to gnat_ugn.texi. - -2013-04-11 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - -2013-04-11 Yannick Moy - - * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa - mode. - -2013-04-11 Hristian Kirtchev - - * exp_ch4.adb (Expand_N_Allocator): Detect the - allocation of an anonymous controlled object where the type of - the context is named. Use the pool and finalization master of - the named access type to allocate the object. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Remove most mentions of gprbuild. - * projects.texi: Remove all mentions of asociative array - attributes. - -2013-04-11 Robert Dewar - - * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb, - opt.ads, sem_ch13.adb: Minor reformatting. - * debug.adb: Minor comment fix (remove junk .I doc). - -2013-04-11 Thomas Quinot - - * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case - PolyORB): Bump to 6. - (Exp_Dist.PolyORB_Support): Replace TC_Build with - Build_Complex_TC. - -2013-04-11 Arnaud Charlet - - * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb, - exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag. - Enable this flag in CodePeer mode, and also via -gnatd.M. - Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics. - -2013-04-11 Ed Schonberg - - * sem_ch8.adb (Check_Constrained_Object): If a subtype is created - from the renamed object in an object renaming declaration with - an unconstrained nominal subtype, freeze the created subtype at - once, to prevent order of elaboration issues in the backend. - -2013-04-11 Arnaud Charlet - - * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size - in particular in CodePeer mode. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Add documentation for backup copies of project - files for gnatname. - -2013-04-11 Tristan Gingold - - * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile - pragma list. - -2013-04-11 Vincent Celier - - * gnatname.adb (Scan_Args): Recognize new switch --no-backup - (Usage): Add line for --no-backup. - * opt.ads (No_Backup): New Boolean variable, initialized to False. - (Ada_Version_Default): Switch to Ada 2012 by default. - * prj-makr.adb (Initialize): Create a backup for an existing - project file if gnatname is not invoked with --no-backup. - -2013-04-11 Thomas Quinot - - * exp_ch4.adb: Minor code improvement: replace various calls to - Make_If_Statement in expansion with Make_Implicit_If_Statement. - -2013-04-11 Eric Botcazou - - * ali.adb: Fix minor typo. - -2013-04-11 Thomas Quinot - - * exp_ch4.adb (Find_Enclosing_Context): Add missing case of - N_Procedure_Call_Statement. - -2013-04-11 Robert Dewar - - * debug.adb: Minor comment fix. - -2013-04-11 Johannes Kanig - - * debug.adb: Remove comment for -gnatd.G. - -2013-04-11 Thomas Quinot - - * exp_ch4.adb (Expand_Record_Equality.Suitable_Element): - Remove recursive routine, replace with... - (Expand_Record_Equality.Element_To_Compare): New subroutine, - implement iterative search for next element to compare. - Add explanatory comment in the tagged case. - -2013-04-11 Ed Schonberg - - * sem_ch5.adb: remove spurious warning from non-empty loop. - * sem_ch8.adb (Enclosing_Instance): Make public to other routines - in the package, in order to suppress redundant semantic checks - on subprogram renamings in nested instantiations. - -2013-04-11 Robert Dewar - - * errout.ads: Minor reformatting. - * sem_eval.adb (Why_Not_Static): Now issues continuation messages - (Why_Not_Static): Test for aggregates behind string literals. - * sem_eval.ads (Why_Not_Static): Now issues continuation messages. - -2013-04-11 Robert Dewar - - * exp_ch4.adb (Expand_Concatenation): Wrap expansion in - Expressions_With_Actions. - -2013-04-11 Ed Schonberg - - * sem_ch6.adb (Base_Types_Match): For an actual type in an - instance, the base type may itself be a subtype, so find true - base type to determine compatibility. - -2013-04-11 Robert Dewar - - * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb. - makeutl.adb, sem_ch8.adb: Minor reformatting. - -2013-04-11 Vincent Celier - - * gnat_ugn.texi: Minor fixes for VMS. - * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?. - -2013-04-11 Robert Dewar - - * usage.adb (Usage): Minor edit to -gnatW message - -2013-04-11 Robert Dewar - - * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling - others for string literal case. Also add big ??? comment about - this new code, which should be redundant, but is not. - * sem_eval.adb (Eval_Concatenation): Handle non-static case - properly (Eval_String_Literal): Handle non-static literal properly - -2013-03-20 Tobias Burnus - - * i-fortra.ads: Update comment, add Ada 2012's optional - Star and Kind data types for enhanced interoperability. - -2013-03-16 Eric Botcazou - - * gnatvsn.ads (Library_Version): Bump to 4.9. - -2013-03-08 Cesar Strauss - - PR ada/52123 - * seh_init.c (Raise_From_Signal_Handler): Declare as no-return. - (__gnat_SEH_error_handler): Likewise. Remove final return. - -2013-03-06 Eric Botcazou - - * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring - out for an unimplemented attribute. - -2013-03-06 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around - a misaligned integral type if a size is specified for the field. - -2013-03-06 Eric Botcazou - - * gcc-interface/trans.c (Raise_Error_to_gnu) : - Record the unpadded type of the index type on the RCI stack. - -2013-03-06 Eric Botcazou - - * gcc-interface/trans.c (emit_range_check): Assert that the range type - is a numerical type and remove useless local variables. - -2013-02-25 Eric Botcazou - - * gcc-interface/ada-tree.h: Back out change accidentally committed. - -2013-02-21 Jakub Jelinek - - PR bootstrap/56258 - * gnat-style.texi (@title): Remove @hfill. - * projects.texi: Avoid line wrapping inside of @pxref or @xref. - -2013-02-14 Rainer Emrich - - PR target/52123 - * tracebak.c: Cast from pointer via FARPROC. - -2013-02-07 Simon Wright - - PR target/50678 - * init.c (__darwin_major_version): New function for x86-64/Darwin. - (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround - on Darwin 12 and above. - -2013-02-06 Rainer Emrich - - PR target/52123 - * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via - SECURITY_DESCRIPTOR * - (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE - (__gnat_portable_spawn): Fix cast to char* const* - (add_handle): Cast from pointer via void ** - (add_handle): Cast from pointer via int * - (__gnat_locate_exec_on_path): Cast from pointer via TCHAR * - (__gnat_locate_exec_on_path): Cast from pointer via char * - * initialize.c (append_arg): Cast from pointer via LPWSTR - (__gnat_initialize): Cast from pointer via LPWSTR - * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC - -2013-02-06 Hristian Kirtchev - - * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations - target pairs on VxWorks 5 only. - -2013-02-06 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - -2013-02-06 Vincent Celier - - * prj-proc.adb (Process_Aggregated_Projects): Use a new project - node tree for each project tree rooted at an aggregated project. - -2013-02-06 Hristian Kirtchev - - * sem_util.adb (Is_Interface_Conversion): New routine. - (Object_Access_Level): Detect an interface conversion - that has been rewritten into a different construct. Use the - original form of the conversion to find the access level of - the operand. - -2013-02-06 Eric Botcazou - - * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201. - (Has_Pragma_No_Inline): Declare and mark as inline. - (Set_Has_Pragma_No_Inline): Likewise. - * einfo.adb (Has_Pragma_No_Inline): New function. - (Set_Has_Pragma_No_Inline): New procedure. - (Write_Entity_Flags): Handle Has_Pragma_No_Inline. - * snames.ads-tmpl (Name_No_Inline): New pragma-related name. - (Pragma_Id): Add Pragma_No_Inline value. - * par-prag.adb (Prag): Handle Pragma_Inline. - * sem_prag.adb (Inline_Status): New enumeration type. - (Process_Inline): Change Active parameter - to Inline_Status and add support for suppressed inlining. - (Analyze_Pragma) : Adjust to above change. - : Likewise. - : Implement new pragma No_Inline. - (Sig_Flags): Add Pragma_No_Inline. - * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline. - * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline. - -2013-02-06 Pascal Obry - - * s-osprim-mingw.adb (Clock): Make sure we copy all data locally - to avoid interleaved modifications that could happen from another - task calling Get_Base_Data. - (Get_Base_Data): Make it a critical section. Avoid updating if another - task has already done it. - -2013-02-06 Eric Botcazou - - * sem_prag.adb: Minor reformatting. - -2013-02-06 Pascal Obry - - * s-tasloc.ads: Set System.Task_Lock to preelaborate. - -2013-02-06 Eric Botcazou - - * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll, - Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related - names. - (Pragma_Id): Add Pragma_Loop_Optimize value. - * par-prag.adb (Prag): Handle Pragma_Loop_Optimize. - * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to... - (Check_Loop_Pragma_Placement): ...this. - (Analyze_Pragma) - : Adjust to above renaming. - : Likewise. - : Implement new pragma Loop_Optimize. - (Sig_Flags): Add Pragma_Loop_Optimize. - * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize. - * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize. - -2013-02-06 Robert Dewar - - * osint.ads: Minor fix of typo. - -2013-02-06 Sergey Rybin - - * gnat_ugn.texi: gnatmetric: update the documentation of - complexity metrics for Ada 2012. - -2013-02-06 Javier Miranda - - * exp_disp.adb (Make_Secondary_DT): Code cleanup: - remove useless initialization. - -2013-02-06 Ed Schonberg - - * sem_ch3.adb (Build_Discriminant_Constraints): Do not - generate overflow checks on a discriminant expression if the - discriminant constraint is applied to a private type that has - a full view, because the check will be applied when the full - view is elaborated. Removing the redundant check is not just - an optimization, but it prevents spurious assembler errors, - because of the way the backend generates names for expressions - that require overflow checking. - -2013-02-06 Pascal Obry - - * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker - limitation on Windows. - (DA): Removed. - (LIA): Removed. - (LLIA): Removed. - (TFA): Removed. - (BTA): Removed. - (BMTA): Removed. - (BCA): Removed. - (BMCA): Removed. - (BTiA): Removed. - (Clock): Use variable corresponding to access. - (Get_Base_Time): Likewise. - (Monotonic_Clock): Likewise. - -2013-02-06 Vincent Celier - - * make.adb (Gnatmake): When gnatmake is called with a project - file, do not invoke gnatbind with -I-. - * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get - the infos from all the sources. - -2013-02-06 Ed Schonberg - - * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma - Overriding_Renamings. - * par-prag.adb: Recognize pragma Overriding_Renamings. - * opt.ads (Overriding_Renamings): flag to control compatibility - mode with Rational compiler, replaces Rational_Profile flag. - * sem_ch8.adb (Analyze_Subprogram_Renaming): When - Overriding_Renamings is enabled, accept renaming declarations - where the new subprogram renames and overrides a locally inherited - operation. Improve error message for some illegal renamings. - * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings. - (Set_Rational_Profile): The Rational_Profile enables - Overriding_Renamings, Implicit_Packing, and Use_Vads_Size. - -2013-02-06 Ed Schonberg - - * sem_util.adb: Set parent of copied aggregate component, to - prevent infinite loop. - -2013-02-06 Robert Dewar - - * sem_ch3.adb, sem_ch10.adb: Minor reformatting. - * exp_disp.adb: Minor comment update. - * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of - No_Return pragmas. - -2013-02-06 Thomas Quinot - - * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target - parameter, defaulted to False for now, indicates targets where - non-default scalar storage order may be specified. - -2013-02-06 Thomas Quinot - - * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private - same as E_Record_Subtype. Display E_Class_Wide_Subtype as - subtype, not type. - -2013-02-06 Hristian Kirtchev - - * sem_ch3.adb (Complete_Private_Subtype): Inherit the - Has_Unknown_Discriminants from the full view of the base type. - -2013-02-06 Tristan Gingold - - * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h) - Enclosing debugging functions within #ifndef inhibit_libc to - support builds without full C headers. - -2013-02-06 Thomas Quinot - - * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order. - -2013-02-06 Hristian Kirtchev - - * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing - check to detect a parent-child relationship between two units in - order to correctly bypass the installation of a limited view. In - other words, the comment on the intended usage of the check was - correct, but the code itself did not reflect the behavior. - -2013-02-06 Javier Miranda - - * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the - runtime check on assignment to tagged types if compiling with checks - suppressed. - -2013-02-06 Robert Dewar - - * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb, - s-os_lib.adb: Minor reformatting - -2013-02-06 Vincent Celier - - * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS. - -2013-02-06 Ed Schonberg - - * snames.ads-tmpl: Add Name_Rational and pragma Rational. - * par-prag.adb: Recognize pragma Rational. - * opt.ads (Rational_Profile): flag to control compatibility mode - with Rational compiler. - * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile - is enable, accept renaming declarations where the new subprogram - and the renamed entity have the same name. - * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize - Rational as a profile. - -2013-02-06 Hristian Kirtchev - - * exp_ch5.adb (Expand_Loop_Entry_Attributes): When - dealing with a for loop that iterates over a subtype indication - with a range, use the low and high bounds of the subtype. - -2013-02-06 Nicolas Roche - - * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should - be quoted - -2013-02-06 Vincent Celier - - * prj-conf.adb (Process_Project_And_Apply_Config): New variable - Conf_Project. New recursive procedure Check_Project to find a non - aggregate project and put its Project_Id in Conf_Project. Fails if - no such project can be found. - (Get_Or_Create_Configuration_File): New parameter Conf_Project. - (Do_Autoconf): Use project directory of project Conf_Project to store - the generated configuration project file. - * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter - Conf_Project. - -2013-02-06 Javier Miranda - - * sem_res.adb (Resolve_Actuals): Generate a read - reference for out-mode parameters in the cases specified by - RM 6.4.1(12). - -2013-02-06 Hristian Kirtchev - - * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of - Loop_Entry, instead wait until the attribute has been expanded. The - delay ensures that any generated checks or temporaries are inserted - before the relocated prefix. - -2013-02-06 Ed Schonberg - - * sem_ch12.adb: Code clean up. - -2013-02-06 Ed Schonberg - - * checks.adb (Apply_Discriminant_Check): Look for discriminant - constraint in full view of private type when needed. - * sem_ch12.adb (Validate_Array_Type_Instance): Specialize - previous patch to components types that are private and without - discriminants. - -2013-02-06 Hristian Kirtchev - - * exp_ch4.adb (Find_Enclosing_Context): Recognize - a simple return statement as one of the cases that require special - processing with respect to temporary controlled function results. - (Process_Transient_Object): Do attempt to finalize a temporary - controlled function result when the associated context is - a simple return statement. Instead, leave this task to the - general finalization mechanism. - -2013-02-06 Thomas Quinot - - * einfo.ads: Minor reformatting. - (Status_Flag_Or_Transient_Decl): Add ??? comment. - -2013-02-06 Hristian Kirtchev - - * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This - routine should be able to properly detect controlled transient - objects in its actions and generate the appropriate finalization - actions. - * exp_ch6.adb (Enclosing_Context): Removed. - (Expand_Ctrl_Function_Call): Remove local subprogram and - constant. Use routine Within_Case_Or_If_Expression to determine - whether the lifetime of the function result must be extended to - match that of the context. - * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New - routine. - -2013-02-06 Ed Schonberg - - * sem_ch12.adb (Validate_Array_Type_Instance): Extend check - for subtype matching of component type of formal array type, - to avoid spurious error when component type is a separate actual - in the instance, and there may be a discrepancy between private - and full view of component type. - -2013-02-06 Robert Dewar - - * s-dim.ads, clean.adb: Minor reformatting. - -2013-02-06 Javier Miranda - - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch. - (Can_Split_Unconstrained_Function): Only split the inlined function if - the compiler generates the code of its body. - -2013-02-06 Robert Dewar - - * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb, - exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for - N_Pragma nodes. - -2013-02-06 Robert Dewar - - * gnat_rm.texi: Minor text updates for pragma Warning. - -2013-02-06 Geert Bosch - - * s-multip.adb (Number_Of_CPUs): Short-circuit in case of - CPU'Last = 1. - -2013-02-06 Vincent Celier - - * clean.adb (Delete): On VMS use host notation to delete all files. - -2013-02-06 Robert Dewar - - * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor - reformatting. - -2013-02-06 Gary Dismukes - - * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for - the special case of a user-defined equality that overrides - the predefined equality of a nonderived type declared in a - declarative part. - * sem_util.adb (Collect_Primitive_Operations): Add test for - Is_Primitive when looping over the subprograms following a type, - to catch the case of primitives such as a user-defined equality, - which otherwise won't be found when the type is not a derived - type and is declared in a declarative part. - -2013-02-06 Vincent Celier - - * prj-conf.adb (Check_Target): Always return True when Target - is empty (Get_Or_Create_Configuration_File.Get_Project_Target): - New procedure to get the value of attribute Target in the main - project. - (Get_Or_Create_Configuration_File.Do_Autoconf): No - need to get the value of attribute Target in the main project. - (Get_Or_Create_Configuration_File): Call Get_Project_Target and - use the target fom this call. - -2013-02-06 Eric Botcazou - - * erroutc.adb (Validate_Specific_Warning): Do not issue the - warning about an ineffective Pragma Warnings for -Wxxx warnings. - * sem_prag.adb (Analyze_Pragma) : Accept -Wxxx warnings. - * gnat_rm.texi (Pragma Warnings): Document coordination with - warnings of the GCC back-end. - -2013-02-06 Javier Miranda - - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body - of an inlined function if we do not generate code for the function. - -2013-02-06 Pascal Obry - - * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname - with Resolve_Links set to False. - -2013-02-03 Eric Botcazou - - * gcc-interface/decl.c: Include diagnostic-core.h. - (gnat_to_gnu_entity) : Sorry if Reverse_Storage_Order - is set on the entity. - : Likewise. - * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H). - -2013-01-29 Ben Brosgol - - * gnat_rm.texi: Fixed typos. Minor edits. - -2013-01-29 Bob Duff - - * a-convec.adb: Minor reformatting. - -2013-01-29 Pascal Obry - - * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp - directory. - -2013-01-29 Ed Schonberg - - * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop - identifier only if it comes from source. - (Expand_N_Loop_Statement): If the domain of iteration is an - enumeration type with a representation clause, remove from - visibility the loop identifier before rewriting the loop as a - block with a declaration for said identifier. - * sem_util.adb (Remove_Homonym): Handle properly the default case. - -2013-01-29 Vincent Celier - - * prj-proc.adb: Minor comment spelling fix. - -2013-01-29 Pascal Obry - - * prj-proc.adb (Process_Expression_Variable_Decl): Prepend - Project_Path to current environment. - -2013-01-29 Thomas Quinot - - * sprint.adb (Sprint_Node_Actual): Output freeze nodes for - itypes even if Dump_Freeze_Null is not set. - -2013-01-29 Robert Dewar - - * sem_util.adb: Minor reformatting. - * s-rident.ads: Minor comment fixes. - -2013-01-29 Pascal Obry - - * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to - control if the path is prepended or appended. - -2013-01-29 Ed Schonberg - - * sem_ch6.adb (Analyze_Expression_Function): An expression - function declaration is not a subprogram declaration, and thus - cannot appear in a protected definition. - -2013-01-29 Hristian Kirtchev - - * exp_util.adb (Insert_Actions): When new - actions come from the expression of the expression with actions, - then they must be added to the list of existing actions. - -2013-01-29 Eric Botcazou - - * sem_ch3.adb (Analyze_Subtype_Declaration) : For - the subtype of a constrained private type with discriminants - that has got a full view, show that the completion is a clone - of the full view. - -2013-01-29 Javier Miranda - - * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram. - * opt.ads (Warn_On_Overlap): Update documentation. - * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate): - Check function writable actuals. - * sem_ch3.adb (Build_Derived_Record_Type, - Record_Type_Declaration): Check function writable actuals. - * sem_ch4.adb (Analyze_Range): Check function writable actuals. - * sem_ch5.adb (Analyze_Assignment): Remove code of the initial - implementation of AI05-0144. - * sem_ch6.adb (Analyze_Function_Return, - (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code - of the initial implementation of AI05-0144. - * sem_res.adb (Resolve): Remove code of the initial implementation. - (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call - of the initial implementation. - (Resolve_Arithmetic_Op, Resolve_Logical_Op, - Resolve_Membership_Op): Check function writable actuals. - * sem_util.ad[sb] (Actuals_In_Call): Removed - (Check_Order_Dependence): Removed (Save_Actual): Removed - (Check_Function_Writable_Actuals): New subprogram. - * usage.adb (Usage): Update documentation. - * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when - setting all warnings. - -2013-01-29 Robert Dewar - - * a-calend-vms.adb: Minor comment fix. - -2013-01-29 Robert Dewar - - * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash - because of casing issues. - * sem_util.ads: Minor comment fix. - * style.adb (Check_Identifier): Set proper casing for entities - in ASCII. - * styleg.adb: Minor comment improvement. - * stylesw.ads (Style_Check_Standard): Fix bad comments. - -2013-01-29 Hristian Kirtchev - - * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global. - (Analyze_Pragma): Push the scope of the related subprogram and install - its formals once before starting the analysis of the [moded] global - list. - -2013-01-29 Pascal Obry - - * prj-proc.adb (Process_Expression_Variable_Decl): Always handle - relative paths in Project_Path as relative to the aggregate - project location. Note that this was what was documented. - -2013-01-29 Vincent Celier - - * gnatcmd.adb: For "gnat stub -P ...", do not check the naming - scheme for Ada, when Ada is not a language for the project. - -2013-01-29 Ed Schonberg - - * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit - Is_Generic_Actual_Type flag in a nested instance. - * sem_ch12.adb (Restore_Private_Views): Preserve - Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type - of an enclosing instance. - * sem_util.adb (Corresponding_Generic_Type): Handle generic actual - which is an actual of an enclosing instance. - * sem_type.adb (Real_Actual): If a generic_actual_type is the - formal of an enclosing generic and thus renames the corresponding - actual, use the actual of the enclosing instance to resolve - spurious ambiguities in instantiations when two formals are - instantiated with the same actual. - -2013-01-29 Robert Dewar - - * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as - being available as implementation-defined pragmas in earlier - versions of Ada. - -2013-01-29 Vincent Celier - - * clean.adb (Delete): On VMS, delete all versions of the file. - -2013-01-29 Robert Dewar - - * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure. - * par-util.adb (No_Constraint): Undo special handling, moved - to par-ch6.adb. - -2013-01-29 Robert Dewar - - * aspects.ads: Aspect Warnings is implementation defined Add - some other missing entries to impl-defined list Mark Warnings - as GNAT pragma in main list. - * sem_ch8.adb: Process aspects for all cases of renaming - declarations. - -2013-01-29 Robert Dewar - - * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag. - * sem_elab.adb (Check_Internal_Call_Continue): Do not issue - warnings about possible elaboration error if call is within - an assertion. - * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node. - -2013-01-29 Robert Dewar - - * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb, - * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb, - s-tasdeb-vms.adb: Replace pragma Interface by pragma Import. - -2013-01-29 Robert Dewar - - * opt.ads (Ignore_Style_Checks_Pragmas): New flag. - * par-prag.adb (Par, case Style_Checks): Recognize - Ignore_Style_Checks_Pragmas. - * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize - Ignore_Style_Checks_Pragmas. - * switch-c.adb: Recognize -gnateY switch. - * usage.adb: Add documentation for "-gnateY". - * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY). - -2013-01-29 Vincent Celier - - * clean.adb (Clean_Executables): Add Sid component when calling - Queue.Insert. - * make.adb: When inserting in the Queue, add the Source_Id - (Sid) when it is known (Start_Compile_If_Possible): When the - Source_Id is known (Sid), get the path name of the ALI file - (Full_Lib_File) from it, to avoid finding old ALI files in other - object directories. - * makeutl.ads (Source_Info): New Source_Id component Sid in - Format_Gnatmake variant. - -2013-01-29 Robert Dewar - - * gnat_ugn.texi: Document -gnateY. - -2013-01-29 Doug Rupp - - * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads, - system-vms-ia64.ads: Replace pragma Interface by pragma Import. - -2013-01-29 Robert Dewar - - * atree.ads, atree.adb (Node30): New function. - (Set_Node30): New procedure. - (Num_Extension_Nodes): Change to 5 (activate new fields/flags). - * atree.h: Add macros for Field30 and Node30. - * einfo.ads, einfo.adb: Move some fields to avoid duplexing. - * treepr.adb (Print_Entity_Information): Print fields 30-35. - -2013-01-29 Robert Dewar - - * sem_prag.adb (Analyze_Pragma, case Interface): Consider to - be a violation of No_Obsolescent_Features even in Ada 95. Also - generates a warning in -gnatwj mode. - (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj - mode. - * gnat_ugn.texi: Additional documentation on -gnatwj and pragma - Interface[_Name]. - -2013-01-29 Vincent Celier - - * snames.ads-tmpl: Add new standard name Trailing_Switches. - -2013-01-29 Ed Schonberg - - * sem_disp.adb (Check_Controlling_Type): If a designated type T - of an anonymous access type is a limited view of a tagged type, - it can be a controlling type only if the subprogram is in the - same scope as T. - -2013-01-29 Vincent Celier - - * gnatcmd.adb: Use the project where the config pragmas file is - declared to get its path. - -2013-01-29 Vincent Celier - - * prj-attr.adb: New attribute Linker'Trailing_Switches. - -2013-01-22 Eric Botcazou - - * gcc-interface/trans.c (gnat_to_gnu) : Do - not translate the Etype of the node before translating the Actions. - -2013-01-22 Eric Botcazou - - * gcc-interface/trans.c (Pragma_to_gnu) : Use optimize_size - instead of optimize and adjust warning message. - (Compilation_Unit_to_gnu): Process pragmas preceding the unit. - -2013-01-22 Tristan Gingold - - * gcc-interface/gigi.h (ADT_unhandled_except_decl, - ADT_unhandled_others_decl): New. - (unhandled_others_decl, unhandled_except_decl): Define. - * gcc-interface/trans.c: Include common/common-target.h. - (gigi): Initialize them. - (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main - function in a try/catch clause. - -2013-01-11 Eric Botcazou - - * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata. - (CHECKING_ADAFLAGS): New. - (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS. - -2013-01-10 Eric Botcazou - - * gcc-interface/config-lang.in (boot_language_boot_flags): Delete. - * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise. - -2013-01-07 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust - comment about type extension with discriminants. - : Remove useless test and reorder conditions. - (elaborate_entity) : Likewise. - -2013-01-07 Richard Biener - - PR ada/864 - * gcc-interface/Make-lang.in (ada.install-common): Always apply - program_transform_name. - -2013-01-06 Eric Botcazou - - * gnatvsn.ads (Current_Year): Bump to 2013. - -2013-01-06 Olivier Hainque - - * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized - diagnostic for component size mismatch wrt volatile requirements. - Add a gcc_unreachable() at the end of the checks for size. Split - the check on volatile for positions into one check on atomic and - a subsequent one on volatile. - -2013-01-06 Eric Botcazou - - * gcc-interface/decl.c (elaborate_entity) : Delete. - -2013-01-06 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not - pack the field of the record type made for a misaligned type. - -2013-01-06 Eric Botcazou - - * gcc-interface/decl.c (annotate_value) : Be prepared - for discriminants inherited from parent record types. - -2013-01-04 Robert Dewar - - * warnsw.adb: Minor fixes to -gnatw.d handling. - -2013-01-04 Robert Dewar - - * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more - fields. - -2013-01-04 Joel Brobecker - - * gnat_ugn.texi: Fix typo. - -2013-01-04 Robert Dewar - - * gnat_rm.texi: Document alignment choice for subtypes. - -2013-01-04 Robert Dewar - - * validsw.ads: Minor fix to comment. - -2013-01-04 Doug Rupp - - * Makefile.rtl (GNATRTL_NONTASKING_OBJS, - GNATRTL_ALTIVEC_OBJS): Factor g-al* objects. - * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources. - (GNATRTL_ALTIVEC_OBJS): Override to null for VMS. - Rename leon vxworks toolchain as leon-wrs-vxworks. - * gcc-interface/Make-lang.in: Update dependencies - -2013-01-04 Pascal Obry - - * prj.ads (For_Each_Source): Add Locally_Removed parameter. - (Source_Iterator): Add Locally_Removed field. - * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed. - (Next): Likewise. - -2013-01-04 Robert Dewar - - * exp_attr.adb: Minor reformatting. - -2013-01-04 Robert Dewar - - * checks.adb (Insert_Valid_Check): Fix handling of renamed - packed array element. - * exp_ch4.adb (Expand_Concatenate): Fix some missing parent - fields in generated code. - * exp_util.adb (Side_Effect_Free): Improve detection of cases - needing renaming. - -2013-01-04 Robert Dewar - - * sinfo.ads: Clean up order of N_xxx subtypes - -2013-01-04 Vincent Celier - - * prj-conf.adb (Check_Target): Allow --autoconf= with no target. - -2013-01-04 Robert Dewar - - * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting. - -2013-01-04 Robert Dewar - - * par-ch6.adb (P_Subprogram): Better handling of missing IS - after expression function. - * par-util.adb (No_Constraint): Improve handling to avoid bad warnings. - -2013-01-04 Robert Dewar - - * exp_util.ads, exp_util.adb (Insert_Actions): In expression with - actions case, new actions are appended to the sequence rather than - prepended. - -2013-01-04 Robert Dewar - - * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode). - * usage.adb: Add lines for -gnatw.d/w.D switches. - * warnsw.adb: Minor fixes (some missing cases of setting - Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode. - -2013-01-04 Robert Dewar - - * exp_util.adb (Remove_Side_Effects): Make sure scope suppress - is restored on exit. - -2013-01-04 Robert Dewar - - * usage.adb: Document -gnateF (check overflow for predefined Float). - -2013-01-04 Robert Dewar - - * sem_res.adb (Resolve_Type_Conversion): Remove incorrect - prevention of call to Apply_Type_Conversion_Checks, which resulted - in missing check flags in formal mode. - -2013-01-04 Vincent Celier - - * makeutl.ads (Db_Switch_Args): New table used by gprbuild. - * prj-conf.adb (Check_Builder_Switches): Check for switches - --config= (Get_Db_Switches): New procedure to get the --db - switches so that they are used when invoking gprconfig in - auto-configuration. - (Do_Autoconf): When invoking gprconfig, use the --db switches, if any. - -2013-01-04 Pascal Obry - - * prj-nmsc.adb: Minor reformatting. - -2013-01-04 Vincent Celier - - * makeutl.ads (Root_Environment): New variable, moved rom - gprbuild (Load_Standard_Base): New Boolean variable, moved - from gprbuild. - * prj-conf.adb (Check_Builder_Switches): New procedure to check - for switch --RTS in package Builder. If a runtime specified - by --RTS is a relative path name, but not a base name, then - find the path on the Project Search Path. - (Do_Autoconf): Call Check_Builder_Switches. - (Locate_Runtime): New procedure, moved from gprbuild, to get the - absolute paths of runtimes when they are not specified as a base name. - * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild. - -2013-01-04 Ed Schonberg - - * sem_ch3.adb (Build_Private_Derived_Type): Set - Has_Private_Ancestor on type derived from an untagged private - type whose full view has discriminants - * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension - aggregate for untagged record type with private ancestor. - -2013-01-04 Thomas Quinot - - * sem_elab.adb, sem_ch3.adb: Minor reformatting. - -2013-01-04 Robert Dewar - - * table.adb: Minor reformatting. - -2013-01-04 Ed Schonberg - - * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does - not come from source does not generate a warning for redundant - with_clauses. - -2013-01-04 Hristian Kirtchev - - * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables. - * par-prag.adb: Add pragma Global to the list of pragmas that - do not need special processing by the parser. - * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect - Global into a pragma without any form of legality checks. The - work is done by Analyze_Pragma. The aspect and pragma are both - marked as needing delayed processing. Insert the corresponding - pragma of aspect Abstract_State in the visible declarations of the - related package. - (Check_Aspect_At_Freeze_Point): Aspect Global - does not need processing even though it is marked as delayed. - Alphabetize the list on aspect names. - * sem_prag.adb: Add a value for pragma Global in table Sig_Flags. - (Analyze_Pragma): Add ??? comment about the grammar of pragma - Abstract_State. Move the error location from the pragma to the - state to improve the quality of error placement. Add legality - checks for pragma Global. - * snames.ads-tmpl Add the following specially recognized names - -2013-01-04 Eric Botcazou - - * sem_ch3.adb: Fix minor typo. - -2013-01-04 Ed Schonberg - - * par-ch13.adb (Aspect_Specifications_Present): In Strict mode, - accept an aspect name followed by a comma, indicating a defaulted - boolean aspect. - -2013-01-04 Joel Brobecker - - * gnat_ugn.texi: Document procedure to codesign GDB on Darwin. - Update doc on gnattest --separates switch. - -2013-01-04 Thomas Quinot - - * s-chepoo.ads: Minor reformatting. - -2013-01-04 Arnaud Charlet - - * usage.adb: Remove mention of -gnatN in usage. - -2013-01-04 Robert Dewar - - * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb, - freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb, - prj-conf.adb, sem_ch13.adb: Minor reformatting. - -2013-01-04 Thomas Quinot - - * sinfo.ads: Minor documentation update. - -2013-01-04 Thomas Quinot - - * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind - before resolving initialization expression. - -2013-01-04 Hristian Kirtchev - - * checks.adb (Generate_Index_Checks): Delay the generation of - the check for an indexed component where the prefix mentions - Loop_Entry until the attribute has been properly expanded. - * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor - decoration of the constant that captures the value of Loop_Entry's - prefix at the entry point into a loop. Generate index checks - for an attribute reference that has been transformed into an - indexed component. - -2013-01-04 Thomas Quinot - - * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb, - sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to - do if Obj is already frozen. - (Exp_Util.Find_Init_Call): Rename to... - (Exp_Util.Remove_Init_Call): New subprogram, renamed from - Find_Init_Call. Remove the initialization call from the enclosing - list if found, and if it is from an Initialization_Statements - attribute, reset it. - (Exp_Util.Append_Freeze_Action): Minor code reorganization. - (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been - allocated (as is already done in Append_Freeze_Action). - (Freeze.Freeze_Entity): For an object with captured - Initialization_Statements and non-delayed freezeing, unwrap the - initialization statements and insert and them directly in the - enclosing list. - (Sem_Ch13.Check_Address_Clause): For an object - with Initialization_Statements and an address clause, unwrap the - initialization statements when moving them to the freeze actions. - -2013-01-03 Pascal Obry - - * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and - corresponding attibutes. - -2013-01-03 Thomas Quinot - - * exp_aggr.adb: Minor comment improvement. - -2013-01-03 Hristian Kirtchev - - * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the - relevant tables. - * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to - the description of fields (Abstract_States): New routine. - (Integrity_Level): New routine. - (Has_Property): New routine. - (Is_Input_State): New routine. - (Is_Null_State): New routine. - (Is_Output_State): New routine. - (Is_Volatile_State): New routine. - (Refined_State): New routine. - (Set_Abstract_States): New routine. - (Set_Integrity_Level): New routine. - (Set_Refined_State): New routine. - (Write_Field8_Name): Add proper output for E_Abstract_State. - (Write_Field9_Name): Add proper output for E_Abstract_State. - (Write_Field25_Name): Add proper output for E_Package. - * lib-xref.ads: Add new letter for an abstract state. - * par-prag.adb: Add pragma Abstract_State to the list of pragma - that do not need special processing by the parser. - * sem_ch13.adb (Analyze_Aspect_Specifications): Convert - aspect Abstract_State into a pragma without any form - of legality checks. The work is done by Analyze_Pragma. - (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not - require delayed analysis. - * sem_prag.adb: Add a value for pragma Abstract_State in table - Sig_Flags. - (Analyze_Pragma): Add legality checks for pragma - Abstract_State. Analysis of individual states introduces a state - abstraction entity into the visibility chain. - * snames.ads-tmpl: Add new names for abstract state and - integrity. Add new pragma id for abstract state. - -2013-01-03 Bob Duff - - * table.adb (Reallocate): Calculate new Length in - Long_Integer to avoid overflow. - -2013-01-03 Thomas Quinot - - * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb - (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that - it is set properly when expanding the initialization expression. - (Freeze.Check_Address_Clause): Transfer initialization expression - to an assignment in the freeze actions, so that the object is - initialized only after being elaborated by GIGI. - (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow - a Null_Statement as the expression in an Expression_With_Actions. - (Exp_Aggr.Collect_Initialization_Statements): New subprogram - shared by expansion of record and array aggregates, used to - capture statements for an aggregate used to initalize an object - into an Expression_With_Actions (which acts as a container for - a list of actions). - (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to - capture initialization statements, instead of the previously - existing loop which left freeze nodes out of the capturing - construct (causing out of order elaboration crashes in GIGI). - (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture - initialization statements (this was previously not done for - arrays). Also do not unconditionally prevent in place expansion - for an object with address clause. - -2013-01-03 Thomas Quinot - - * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that - a record extension has the same scalar storage order as the parent type. - -2013-01-03 Thomas Quinot - - * exp_ch4.adb: Add comment. - -2013-01-03 Vincent Celier - - * prj.adb: Minor spelling error correction in comment. - -2013-01-03 Vincent Celier - - * gnatcmd.adb (GNATCmd): If a single main has been specified - as an absolute path, use its simple file name to find specific - switches, instead of the absolute path. - -2013-01-03 Javier Miranda - - * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping - parameters that are record types or array types generate warnings - only compiling under -gnatw.i - * opt.ads (Extensions_Allowed): Restore previous documentation. - -2013-01-03 Vincent Celier - - * prj-conf.adb (Do_Autoconf): If Target is specified in the - main project, but not on the command line, use the Target in - the project to invoke gprconfig in auto-configuration. - * makeutl.ads (Default_Config_Name): New constant String. - -2013-01-03 Arnaud Charlet - - * usage.adb: Minor: fix typo in usage. - -2013-01-03 Thomas Quinot - - * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject - an illegal component clause for an inherited component in a - record extension. - -2013-01-03 Emmanuel Briot - - * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which - have information in the ALI file for both the index and the component - types. - -2013-01-03 Emmanuel Briot - - * projects.texi: Fix error in documenting the project path - computed for an aggregate project. - -2013-01-03 Javier Miranda - - * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation - plus restricting the functionality of this routine to cover the - cases described in the Ada 2012 reference manual. The previous - extended support is now available under -gnatX. - * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy - variable to call Timed_Sleep. Required to avoid warning on - overlapping out-mode actuals. - * opt.ads (Extensions_Allowed): Update documentation. - -2013-01-03 Tristan Gingold - - * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64. - * arit64.c: Removed - * gcc-interface/Makefile.in: Remove reference to arit64.c. - -2013-01-03 Thomas Quinot - - * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must - be generated at the start of the freeze actions for the entity, not - before (or after) the freeze node. - -2013-01-03 Thomas Quinot - - * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): - Reorganize code to capture initialization statements in a block, - so that freeze nodes are excluded from the captured block. - -2013-01-03 Thomas Quinot - - * exp_ch11.adb: Minor reformatting. - -2013-01-03 Thomas Quinot - - * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb, - sem_ch13.adb (Einfo.Initialization_Statements, - Einfo.Set_Initialization_Statements): New entity attribute - for objects. - (Exp_Util.Find_Init_Call): Handle case of an object initialized - by an aggregate converted to a block of assignment statements. - (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze - even for objects that require a constant address, because the - address expression might involve entities that have yet to be - elaborated at the point of the object declaration. - (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does - not require a transient scope, capture the assignment statements - in a block so that they can be moved down after elaboration of - an address clause if needed. - (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants, - case N_Unchecked_Conversion): Do not replace operand subtype with - its base type as this violates a GIGI invariant if the operand - is an identifier (in which case the etype of the identifier - is expected to be equal to that of the denoted entity). - -2013-01-03 Javier Miranda - - * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the - functionality of this routine to cover cases described in the Ada 2012 - reference manual. - -2013-01-03 Ed Schonberg - - * sem_elab.adb (Set_Elaboration_Constraint): Handle properly - a 'Access attribute reference when the subprogram is called - Initialize. - -2013-01-03 Arnaud Charlet - - * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a - select statement may be called from a controlled (e.g. Initialize) - operation and have abort always deferred. - -2013-01-03 Robert Dewar - - * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization. - -2013-01-03 Javier Miranda - - * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude - internal entities associated with interfaces and add minimum - decoration to the defining entity of the generated wrapper to - allow overriding interface primitives. - * sem_disp.ads (Override_Dispatching_Operation): Addition of a - new formal (Is_Wrapper). - * sem_disp.adb (Override_Dispatching_Operation): When overriding - interface primitives the new formal helps identifying that the - new operation is not fully decorated. - -2013-01-03 Thomas Quinot - - * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb, - rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb - (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit): - Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and - update spec accordingly (now also applies to root library units). - (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag - on root library units, not only child units. - (Sem_Ch10.Install[_Limited]_Withed_Unit): Same. - (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit - even for root library units. - (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is - Standard is an expanded name for a root library unit. - -2013-01-03 Thomas Quinot - - * exp_ch3.adb: Minor reformatting. - -2013-01-03 Olivier Hainque - - * tracebak.c: Reinstate changes to support ppc-lynx178. - -2013-01-03 Ed Schonberg - - * atree.ads: Minor reformatting and documentation enhancement. - -2013-01-03 Ed Schonberg - - * exp_ch3.adb (Expand_N_Object_Declaration): If the object has - a class-wide type and a renaming declaration is created for it, - preserve entity chain, which already contains generated internal - types. This ensures that freezing actions are properly generated - for all objects declared subsequently in the same scope, and - that debugging information is generated for them. - * sem_util.adb, sem_util.ads (we): New debugging routine, to - display entity chain of a given scope. - -2013-01-03 Robert Dewar - - * exp_intr.adb: Minor reformatting. - -2013-01-03 Robert Dewar - - * einfo.adb: Minor reformatting. - -2013-01-03 Pascal Obry - - * adaint.c, adaint.h (__gnat_get_module_name): Removed. - (__gnat_is_module_name_supported): Removed. - * s-win32.ads: Add some needed definitions. - * g-trasym.ads: Update comments. - -2013-01-03 Robert Dewar - - * layout.adb (Set_Composite_Alignment): Fix problems of - interactions with Optimize_Alignment set to Space. - -2013-01-03 Thomas Quinot - - * exp_disp.adb: Minor reformatting. - -2013-01-02 Richard Biener - - PR bootstrap/55784 - * gcc-interface/Makefile.in: Add $(GMPINC) to includes. - -2013-01-02 Thomas Quinot - - * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove - side effects from Tag_Arg early, doing it too late may cause a - crash due to inconsistent Parent link. - * sem_ch8.adb, einfo.ads: Minor reformatting. - -2013-01-02 Robert Dewar - - * einfo.ads, einfo.adb (Has_Independent_Components): New flag. - * freeze.adb (Size_Known): We do not know the size of a packed - record if it has atomic components, by reference type components, - or independent components. - * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new - flag Has_Independent_Components. - -2013-01-02 Yannick Moy - - * opt.ads (Warn_On_Suspicious_Contract): Set to True by default. - * usage.adb (Usage): Update usage message. - -2013-01-02 Pascal Obry - - * adaint.c (__gnat_is_module_name_supported): New constant. - -2013-01-02 Ed Schonberg - - * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an - array whose component type does not have a completion. - -2013-01-02 Geert Bosch - - * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure. - -2013-01-02 Robert Dewar - - * par_sco.adb: Minor reformatting. - -2013-01-02 Javier Miranda - - * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code. - -2013-01-02 Olivier Hainque - - * a-exctra.ads (Get_PC): New function. - -2013-01-02 Thomas Quinot - - * sem_ch8.adb: Minor reformatting. - -2013-01-02 Thomas Quinot - - * sem_ch7.adb: Minor reformatting. - -2013-01-02 Thomas Quinot - - * freeze.adb (Check_Component_Storage_Order): Do not crash on - _Tag component. - -2013-01-02 Robert Dewar - - * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add - On_Target to Atomic_Sync_Default. - -2013-01-02 Robert Dewar - - * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for - comparison of attribute result with constant - * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma - Warnings (Off, ".."); - -2013-01-02 Yannick Moy - - * sem_prag.ads: Minor correction of comment. - -2013-01-02 Thomas Quinot - - * par_sco.adb (Traverse_Package_Declaration): The first - declaration in a nested package is dominated by the preceding - declaration in the enclosing scope. - -2013-01-02 Pascal Obry - - * adaint.c, adaint.h (__gnat_get_module_name): Return the actual - module containing a given address. - -2013-01-02 Thomas Quinot - - * sem_ch3.adb: Minor reformatting. - -2013-01-02 Pascal Obry - - * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on - Win64 and default to ftell on other platforms. - (__gnat_fsek64): Likewise. - * i-cstrea.ads: Add fssek64 and ftell64 specs. - * s-crtl.ads: Likewise. - * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required. - (Set_Position): Likewise. - -2013-01-02 Thomas Quinot - - * par_sco.adb: Generate X SCOs for default expressions in - subprogram body stubs. Do not generate any SCO for package, - task, or protected body stubs. - -2013-01-02 Ed Schonberg - - * sem_ch3.adb: Further improvement to ASIS mode for anonymous - access to protected subprograms. - -2013-01-02 Robert Dewar - - * par_sco.adb, vms_data.ads: Minor reformatting. - -2013-01-02 Thomas Quinot - - * par_sco.adb (Traverse_Declarations_Or_Statement): Function - form, returning value of Current_Dominant upon exit, for chaining - purposes. - (Traverse_Declarations_Or_Statement.Traverse_One, case - N_Block_Statement): First statement is dominated by last declaration. - (Traverse_Subprogram_Or_Task_Body): Ditto. - (Traverse_Package_Declaration): First private - declaration is dominated by last visible declaration. - (Traverse_Sync_Definition): Ditto. - -2013-01-02 Thomas Quinot - - * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order - matching Bit_Order to record types only, since array types do not - have a Bit_Order. - -2013-01-02 Vincent Celier - - * gnat_ugn.texi: Remove documentation of -gnateO, which is an - internal switch. - * usage.adb: Indicate that -gnateO is an internal switch. - -2013-01-02 Thomas Quinot - - * par_sco.adb: Add SCO generation for task types and single - task declarations. - * get_scos.adb: When adding an instance table entry for a - non-nested instantiation, make sure the Enclosing_Instance is - correctly set to 0. - -2013-01-02 Hristian Kirtchev - - * sem_attr.adb (Analyze_Attribute): Skip the special _Parent - scope generated for subprogram inlining purposes while trying - to locate the enclosing function. - * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean - expression of pragma Postcondition when the pragma comes from - source and appears inside a subprogram body. - -2013-01-02 Thomas Quinot - - * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation - information in debug info unconditionally when using -fdump-scos, - instead of relying on a separate command line switch -fdebug-instances. - * gcc-interface/Make-lang.in: Update dependencies. - -2013-01-02 Ed Schonberg - - * sem_ch12.adb: Additional refinement of predicate. - -2013-01-02 Vincent Celier - - * vms_data.ads: Remove incorrect spaces at end of descriptions - of qualifiers for single switch. - -2013-01-02 Ben Brosgol - - * gnat_rm.texi: Minor edits / wordsmithing in section on pragma - Check_Float_Overflow. - -2013-01-02 Thomas Quinot - - * sprint.adb (Sprint_Node_Actual): Do not add extra parens for - a conditional expression (CASE or IF expression) that already - has parens. Also omit ELSE keyword for an IF expression without - an ELSE part. - -2013-01-02 Thomas Quinot - - * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end - flag_debug_instances here, after front-end switches have been - processed. - -2013-01-02 Vincent Celier - - * usage.adb: Minor reformatting. - -2013-01-02 Arnaud Charlet - - * opt.ads: Fix typo. - -2013-01-02 Thomas Quinot - - * par_sco.adb: Generate P decision SCOs for SPARK pragmas - Assume and Loop_Invariant. - -2013-01-02 Robert Dewar - - * vms_data.ads: Add entry for Float_Check_Valid (-gnateF). - * ug_words: Add entry for Float_Check_Overflow. - * usage.adb: Minor reformatting. - * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow). - -2013-01-02 Vincent Celier - - * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated, - -gnateO=, -gnatet and -gnateV. - * ug_words: Add qualifiers equivalent to -gnateA, -gnated, - -gnatet and -gnateV. - * usage.adb: Add lines for -gnatea, -gnateO and -gnatez. - * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK - (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated), - /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO - (-gnatet). - -2013-01-02 Robert Dewar - - * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow. - * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config]. - * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow. - * sem_prag.adb: Implement pragma Check_Float_Overflow. - * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow. - * switch-c.adb: Recognize -gnateF switch. - * tree_io.ads: Update ASIS version number. - * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow. - -2013-01-02 Robert Dewar - - * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, - exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb, - freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb, - par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb, - sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb, - sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages. - * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates. - -2013-01-02 Robert Dewar - - * err_vars.ads: Minor comment fix. - -2013-01-02 Ed Schonberg - - * sem_ch12.adb: Refine predicate. - -2013-01-02 Robert Dewar - - * errout.ads: Minor comment fixes. - * opt.ads: Minor comment additions. - * exp_aggr.adb: Add tags to warning messages - * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb, - sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb, - sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb, - sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb, - sem_warn.adb: Add tags to warning messages - -2013-01-02 Doug Rupp - - * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E. - -2013-01-02 Ed Schonberg - - * sem_ch12.adb: Recover source name for renamed packagea. - -2013-01-02 Robert Dewar - - * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing - tests to fail if insertion sequence is at end of message string. - * opt.ads: Minor comment fixes and additions. - * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb, - sem_ch12.adb, sem_ch13.adb: Add tags to warning messages. - * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message - tags. Add tags to warning messages. - -2013-01-02 Robert Dewar - - * err_vars.ads (Warning_Doc_Switch): New flag. - * errout.adb (Error_Msg_Internal): Implement new warning flag - doc tag stuff (Set_Msg_Insertion_Warning): New procedure. - * errout.ads: Document new insertion sequences ?? ?x? ?.x? - * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc - tag stuff. - * erroutc.ads (Warning_Msg_Char): New variable. - (Warn_Chr): New field in error message object. - * errutil.adb (Error_Msg): Set Warn_Chr in error message object. - * sem_ch13.adb: Minor reformatting. - * warnsw.adb: Add handling for -gnatw.d and -gnatw.D - (Warning_Doc_Switch). - * warnsw.ads: Add handling of -gnatw.d/.D switches (warning - doc tag). - -2013-01-02 Robert Dewar - - * opt.ads: Minor reformatting. - -2013-01-02 Doug Rupp - - * init.c: Reorganize VMS section. - (scan_condtions): New function for scanning condition tables. - (__gnat_handle_vms_condtion): Use actual exception name for imported - exceptions vice IMPORTED_EXCEPTION. - Move condition table scanning into separate function. Move formerly - special handled conditions to system condition table. Use SYS$PUTMSG - output to fill exception message field for formally special handled - condtions, in particular HPARITH to provide more clues about cause and - location then raised from the translated image. - -2013-01-02 Thomas Quinot - - * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post - aspect that applies to a library subprogram, prepend corresponding - pragma to the Pragmas_After list, in order for split AND THEN - sections to be processed in the expected order. - -2013-01-02 Thomas Quinot - - * exp_prag.adb (Expand_Pragma_Check): The statements generated - for the pragma must have the sloc of the pragma, not the - sloc of the condition, otherwise this creates anomalies in the - generated debug information that confuse coverage analysis tools. - -2013-01-02 Thomas Quinot - - * sem_ch13.adb: Minor reformatting. - -2013-01-02 Arnaud Charlet - - * g-excact.ads (Core_Dump): Clarify that this subprogram does - not dump cores under Windows. - -2013-01-02 Ed Schonberg - - * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed - view of a subprogram has convention Intrnnsic, and a renaming - of a prefixed view cannot be the prefix of an Access attribute. - -2013-01-02 Robert Dewar - - * restrict.adb: Minor reformatting. - -2013-01-02 Thomas Quinot - - * exp_prag.adb: Minor reformatting. - -2013-01-02 Ed Schonberg - - * sem_ch12.adb (Get_Associated_Node): If the node is an - identifier that denotes an unconstrained array in an object - declaration, it is rewritten as the name of an anonymous - subtype whose bounds are given by the initial expression in the - declaration. When checking whether that identifier is global - reference, use the original node, not the local generated subtype. - -2013-01-02 Olivier Hainque - - * tracebak.c: Revert previous change, incomplete. - -2013-01-02 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect - appears on a subprogram body that acts as a spec, place the - corresponding pragma in the declarations of the body, so that - e.g. pre/postcondition checks can be generated appropriately. - -2013-01-02 Robert Dewar - - * sem_ch3.adb: Minor reformatting and code reorganization. - -2013-01-02 Vincent Celier - - * switch-m.adb (Normalize_Compiler_Switches): Record the - complete switch -fstack-check=specific instead of its shorter - alias -fstack-check. - -2013-01-02 Ed Schonberg - - * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8): - if the derived type is a tagged generic formal type with - unknown discriminants, the inherited operation has convention - Intrinsic. As such, the 'Access attribute cannot be applied to it. - -2013-01-02 Thomas Quinot - - * sem_attr.adb: Minor reformatting. - -2013-01-02 Thomas Quinot - - * par_sco.adb: Add SCO generation for S of protected types and - single protected object declarations. - -2013-01-02 Robert Dewar - - * sem_eval.adb, osint.ads: Minor reformatting. - -2013-01-02 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume. - -2013-01-02 Thomas Quinot - - * sem_eval.adb (Compile_Time_Compare): For static operands, we - can perform a compile time comparison even if in preanalysis mode. - -2013-01-02 Thomas Quinot - - * par_sco.adb (SCO_Record): Always use - Traverse_Declarations_Or_Statements to process the library level - declaration, so that SCOs are properly generated for its aspects. - -2013-01-02 Thomas Quinot - - * scos.ads (In_Decision): Add missing entry for 'a'. - * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit - call to Set_SCO_Pragma_Enabled for Invariant and Predicate. - * sem_ch13.adb: Minor comment update. + * gnat_ugn.texi: Bump @copying's copyright year. -Copyright (C) 2013 Free Software Foundation, Inc. +Copyright (C) 2014 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/ada/ChangeLog-2013 b/gcc/ada/ChangeLog-2013 new file mode 100644 index 00000000000..8c5ee48dbf7 --- /dev/null +++ b/gcc/ada/ChangeLog-2013 @@ -0,0 +1,8294 @@ +2013-12-20 Trevor saunders + + * gcc-interface/decl.c (components_to_record): Replace stack_vec with + auto_vec. + +2013-12-12 Eric Botcazou + + * gcc-interface/Makefile.in (ARM linux, GNU eabi): Tweak regexp. + +2013-12-12 Eric Botcazou + Iain Sandoe + + PR ada/55946 + * gcc-interface/Make-lang.in (ada/doctools/xgnatugn): Use gnatmake. + * gcc-interface/Makefile.in (GCC_LINK): Add LDFLAGS. + (../../gnatmake): Remove LDFLAGS. + (../../gnatlink): Likewise. + +2013-12-04 Eric Botcazou + + PR ada/59382 + * indepsw-darwin.adb: New file. + +2013-12-04 Eric Botcazou + + * gcc-interface/decl.c (components_to_record): Add specific handling + for fields with zero size and no representation clause. + +2013-12-04 Eric Botcazou + + * gcc-interface/trans.c (Case_Statement_to_gnu): Do not push a binding + level for each branch if this is a case expression in Ada 2012. + (gnat_to_gnu) : Adjust comment. + +2013-11-29 Eric Botcazou + + PR ada/54040 + PR ada/59346 + * s-osinte-hpux.ads (timespec): Change type of tv_nsec field to time_t. + * s-osinte-kfreebsd-gnu.ads (timespec): Likewise. + * s-osinte-solaris-posix.ads (timespec): Likewise. + +2013-11-23 Eric Botcazou + + * gcc-interface/trans.c (Loop_Statement_to_gnu): Set TREE_SIDE_EFFECTS + on the conditional expression directly. + +2013-11-22 Andrew MacLeod + + * gcc-interface/trans.c: Add required include files from gimple.h. + +2013-11-22 David Malcolm + + * gcc-interface/utils2.c (build_call_raise): Remove use of + input_line macro. + (build_call_raise_range): Likewise. + (build_call_raise_column): Likewise. + +2013-11-20 Kenneth Zadeck + Mike Stump + Richard Sandiford + + * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi. + * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_to_uhwi. + * gcc-interface/utils.c (make_packable_type): Likewise. + +2013-11-18 Richard Sandiford + + * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi rather than + tree_low_cst. + +2013-11-18 Richard Sandiford + + * gcc-interface/decl.c, gcc-interface/utils.c, gcc-interface/utils2.c: + Replace tree_low_cst (..., 1) with tree_to_uhwi throughout. + +2013-11-18 Richard Sandiford + + * gcc-interface/cuintp.c: Update comments to refer to + tree_fits_shwi_p rather than host_integerp. + * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p + rather than host_integerp. + * gcc-interface/utils.c (rest_of_record_type_compilation): Likewise. + +2013-11-18 Richard Sandiford + + * gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c: + Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout. + +2013-11-18 Richard Sandiford + + * gcc-interface/cuintp.c: Replace host_integerp (..., 0) with + tree_fits_shwi_p throughout. + +2013-11-18 Eric Botcazou + + * gcc-interface/trans.c (TARGET_ABI_OPEN_VMS): Delete as redundant. + +2013-11-18 Eric Botcazou + + * gcc-interface/trans.c (Call_to_gnu): For an Out parameter passed by + copy and that don't need to be copied in, only evaluate its address. + +2013-11-18 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Deal with an + error mark as renamed object in type annotating mode. + +2013-11-15 H.J. Lu + + PR ada/54040 + * s-linux-x32.ads: New file. + * s-osprim-x32.adb: Likewise. + * s-linux.ads (time_t): New type. + * s-linux-alpha.ads (time_t): Likewise. + * s-linux-hppa.ads (time_t): Likewise. + * s-linux-mipsel.ads (time_t): Likewise. + * s-linux-sparc.ads (time_t): Likewise. + * s-osinte-linux.ads (time_t): Mark it private. Replace long + with System.Linux.time_t. + (timespec): Replace long with time_t. + * s-osinte-posix.adb (To_Timespec): Likewise. + * s-taprop-linux.adb (timeval): Replace C.long with + System.OS_Interface.time_t. + * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace + s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with + s-osprim-x32.adb for x32. + +2013-11-14 H.J. Lu + + * gcc-interface/trans.c: Include gimple.h and pointer-set.h. + +2013-11-14 Diego Novillo + + * gcc-interface/decl.c: Include stringpool.h + Include stor-layout.h + * gcc-interface/misc.c: Include stor-layout.h + Include print-tree.h + * gcc-interface/trans.c: Include stringpool.h + Include stor-layout.h + Include stmt.h + Include varasm.h + * gcc-interface/utils.c: Include stringpool.h + Include stor-layout.h + Include attribs.h + Include varasm.h + * gcc-interface/utils2.c: Include stringpool.h + Include stor-layout.h + Include attribs.h + Include varasm.h + +2013-11-12 Andrew MacLeod + + * gcc-interface/trans.c: Include gimplify.h. + +2013-11-11 Tristan Gingold + Eric Botcazou + + * gcc-interface/utils2.c (gnat_build_constructor): Also set the flag + CONSTRUCTOR_NO_CLEARING on the constructor. + +2013-10-30 Sharad Singhai + + * gnat_ugn.texi: Remove option description for PR middle-end/58134. + +2013-10-29 David Malcolm + + * gcc-interface/trans.c (finalize_nrv): Update for conversion of + symtab types to a true class hierarchy. + * gcc-interface/utils.c (gnat_write_global_declarations): Likewise. + +2013-10-28 Trevor Saunders + + * gcc-interface/decl.c (components_to_record): Adjust stack vector. + +2013-10-24 Rainer Orth + + * gcc-interface/Make-lang.in (ADA_DEPS): Fix quoting. + +2013-10-19 Thomas Quinot + + * gcc-interface/Makefile.in: Use canonical absolute path to refer to + the top source directory and to the libgcc subidrectories. + +2013-10-19 Eric Botcazou + + * gcc-interface/utils.c (scale_by_factor_of): New function. + (rest_of_record_type_compilation): Use scale_by_factor_of in order to + scale the original offset for both rounding cases; in the second case, + take into accout the addend to compute the alignment. Tidy up. + +2013-10-19 Eric Botcazou + + * gcc-interface/cuintp.c: Remove useless include directives. + (build_cst_from_int): Use standard predicate. + (UI_To_gnu): Simplify. + (UI_From_gnu): Fix formatting. + * gcc-interface/trans.c (post_error): Likewise. + (post_error_ne): Likewise. + +2013-10-19 Eric Botcazou + + * gcc-interface/utils.c (gnat_set_type_context): New function. + (gnat_pushdecl): Use it to set the context of the type. + +2013-10-17 Hristian Kirtchev + + * sem_prag.adb (Check_Dependency_Clause): + Recognize the scenario where successful clause matching has + depleted the available refinement items and the clause to match + technically refines to null => null. + +2013-10-17 Tristan Gingold + + * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Specify + External_Name instead of Link_Name for the RTTI declaration. + +2013-10-17 Robert Dewar + + * sem_prag.adb (Record_Possible_Body_Reference): Fix test for + being in body. + (Add_Constituent): Merged into Check_Refined_Global_Item. + (Check_Matching_Constituent): A constituent that has the proper Part_Of + option and comes from a private child or a sibling is now collected. + (Check_Matching_Modes): Merged into Check_Refined_Global_Item. + (Check_Refined_Global_Item): Code cleanup. + (Collect_Constituent): New routine. + (Inconsistent_Mode_Error): Moved out from Check_Matching_Modes. + +2013-10-17 Ed Schonberg + + * freeze.adb (Check_Current_Instance, Process): Add RM reference + and mention immutably limited types, when the current instance + is illegal in Ada 2012. + +2013-10-17 Ed Schonberg + + * sem_warn.adb (Check_Unused_Withs): If the main unit is a + subunit, apply the check to the units mentioned in its context + only. This provides additional warnings on with_clauses that + are superfluous. + +2013-10-17 Hristian Kirtchev + + * sem_ch3.adb (Analyze_Declarations): Emit an + error message concerning state refinement when the spec defines at + least one non-null abstract state and the body's SPARK mode is On. + (Requires_State_Refinement): New routine. + +2013-10-17 Robert Dewar + + * sem_ch7.ads: Comment fixes. + +2013-10-17 Robert Dewar + + * sem_ch7.adb (Analyze_Package_Specification): Remove circuit + for ensuring that a package spec requires a body for some other + reason than that it contains the declaration of an abstract state. + +2013-10-17 Tristan Gingold + + * exp_ch11.adb (Expand_N_Raise_Expression): Fix call of + Possible_Local_Raise. + +2013-10-17 Thomas Quinot + + * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Unchecked + conversion of Or_Rhs to Etype of New_Rhs is required only when + the latter is the result of a byte swap operation. + +2013-10-17 Thomas Quinot + + * exp_dist.adb (Build_To_Any_Function): For a type with opaque + representation that is not transmitted as an unconstrained value, + use 'Write, not 'Output, to generate the opaque representation. + +2013-10-17 Yannick Moy + + * sem_res.adb (Resolve_Short_Circuit): Only + generate expression-with-action when full expansion is set. + +2013-10-17 Yannick Moy + + * debug.adb Remove obsolete comment. + +2013-10-17 Thomas Quinot + + * exp_ch4.adb (Process_Transient_Object.Find_Enclosing_Contexts): + Avoid late insertion when expanding an expression with action + nested within a transient block; Do not inconditionally generate + a finalization call if the generated object is from a specific + branch of a conditional expression. + +2013-10-17 Pascal Obry + + * g-arrspl.adb: Ensure Finalize call is idempotent. + * g-arrspl.adb (Finalize): Makes the call idempotent. + +2013-10-17 Hristian Kirtchev + + * sem_prag.adb (Is_Matching_Input): Account + for the case where a state with a null refinement appears as + the last input of a refinement clause. + +2013-10-17 Robert Dewar + + * sem_aux.ads, sem_aux.adb: Minor reformatting. + +2013-10-17 Hristian Kirtchev + + * aspects.adb, aspects.ads, sem_prag.ads: Remove all entries + for Refined_Pre from the various tables. + * par-prag.adb: Remove the entry for Refined_Pre from the list + of pragmas not needing special processing by the parser. + * sem_ch13.adb (Analyze_Aspect_Specifications): + Remove the processing for aspect Refined_Pre. + (Check_Aspect_At_Freeze_Point): Remove the entry for aspect + Refined_Pre. + * sem_prag.adb (Analyze_Pragma): Refined_Pre is no longer a + valid assertion kind. Remove the analysis of pragma Refined_Pre. + (Analyze_Refined_Pragma): Update the comment on usage. + (Find_Related_Subprogram_Or_Body): Update the comment on + usage. Pragma Refined_Pre is no longer processed by this routine. + (Is_Valid_Assertion_Kind): Refined_Pre is no longer a valid + assertion kind. + * snames.ads-tmpl: Remove predefined name Refined_Pre. Remove + the pragma id for Refined_Pre. + +2013-10-17 Hristian Kirtchev + + * exp_util.adb, exp_util.ads (Entity_Of): Moved to Sem_Util. + * sem_prag.adb (Analyze_Global_In_Decl_List): Mark a null + item list as being analyzed. + (Analyze_Global_List): Mark a + null global list and multiple global items as being analyzed. + (Analyze_Input_Item): Check the unit that defines the input + variable or state, not the reference to it. + * sem_util.ads, sem_util.adb (Entity_Of): Moved from Exp_Util. Ensure + that the input has an entity. + +2013-10-17 Thomas Quinot + + * exp_util.adb (Get_Current_Value_Condition, + Set_Current_Value_Condition): Handle the case of expressions + with actions * exp_util.adb (Insert_Actions): Handle the case + of an expression with actions whose Actions list is empty. + * exp_util.adb (Remove_Side_Effects.Side_Effect_Free): An + expression with actions that has no Actions and whose Expression + is side effect free is itself side effect free. + * exp_util.adb (Remove_Side_Effects): Do not set an incorrect etype on + temporary 'R' (Def_Id), which is in general an access to Exp_Type, not + an Exp_Type. + * sem_res.adb (Resolve): For an expression with + actions, resolve the expression early. * sem_res.adb + (Resolve_Expression_With_Actions): Rewrite an expression with + actions whose value is compile time known and which has no + actions into just its expression, so that its constant value is + available downstream. + * sem_res.adb (Resolve_Short_Circuit): + Wrap the left operand in an expression with actions to contain + any required finalization actions. + * exp_ch4.adb (Expand_Expression_With_Actions): For an + expression with actions returning a Boolean expression, ensure + any finalization action is kept within the Actions list. + * sem_warn.adb (Check_References, Check_Unset_Reference): add + missing circuitry to handle expressions with actions. + * checks.adb (Ensure_Valid): For an expression with actions, + insert the validity check on the Expression. + * sem_ch13.adb (Build_Static_Predicate.Get_RList): An expression + with actions that has a non-empty Actions list is not static. An + expression with actions that has an empty Actions list has the + static ranges of its Expression. + * sem_util.adb (Has_No_Obvious_Side_Effects): An expression with + actions with an empty Actions list has no obvious side effects + if its Expression itsekf has no obvious side effects. + +2013-10-17 Ed Schonberg + + * sem_aux.ads, sem_aux.adb (Is_Immutably_Limited_Type): Make + predicate compatible with Ada 2012 definition + (Is_Limited_View): New name for previous version of + Is_Immutably_Limited_Type. Predicate is true for an untagged + record type with a limited component. + * exp_ch7.adb, exp_ch6.adb, exp_ch4.adb, exp_ch3.adb, exp_aggr.adb, + sem_util.adb, sem_res.adb, sem_prag.adb, sem_attr.adb, sem_ch8.adb, + sem_ch6.adb, sem_ch3.adb, exp_util.adb: Use Is_Limited_View + * freeze.adb Use Is_Immutably_Limited_Type to check the legality + of references to the current instance, Is_Limited_View otherwise. + +2013-10-17 Hristian Kirtchev + + * sem_ch13.adb (Analyze_Aspect_Specifications): Flag aspect + Refined_Pre as not supported. + * sem_prag.adb (Analyze_Pragma): Ignore pragma Refined_Pre. + +2013-10-17 Ed Schonberg + + * sem_ch12.adb (Validated_Access_Subprogram_Instance): According + to AI05-288, actuals for access_to_subprograms must be subtype + conformant with the generic formal. Previous to AI05-288 + only mode conformance was required, but the AI is a binding + interpretation that applies to previous versions of the language, + +2013-10-17 Robert Dewar + + * gnat_ugn.texi: Minor text correction. + * ug_words: Add entry for -gnateu /IGNORE_UNRECOGNIZED. + * vms_data.ads: Add /IGNORE_UNRECOGNIZED for -gnateu. + +2013-10-17 Tristan Gingold + + * impunit.adb (Non_Imp_File_Names_95): Add g-cppexc. + +2013-10-17 Hristian Kirtchev + + * sem_prag.adb (Analyze_Constituent): Move the check + concerning option Part_Of to routine Check_Matching_Constituent. + (Check_Matching_Constituent): Verify that an abstract state + that acts as a constituent has the proper Part_Of option in + its aspect/pragma Abstract_State. Account for the case when a + constituent comes from a private child or private sibling. + * sem_util.ads, sem_util.adb (Is_Child_Or_Sibling): New routine. + +2013-10-17 Tristan Gingold + + * g-cppexc.adb, g-cppexc.ads: New files. + * gcc-interface/Makefile.in: Add g-cppexc when building zcx runtimes. + +2013-10-17 Thomas Quinot + + * exp_ch7.adb: Minor reformatting. + +2013-10-17 Ed Schonberg + + * sem_dim.adb (Process_Minus, Process_Divide): Label dimension + expression with standard operator and type, for pretty-printing + use. + +2013-10-17 Bob Duff + + * gnat_ugn.texi: Document --pp-new and --pp-old switches. + +2013-10-17 Hristian Kirtchev + + * einfo.adb: Flag 159 is now known as From_Limited_With. Replace + all references to attribute From_With_Type with From_Limited_With. + (From_With_Type): Renamed to From_Limited_With. + (Set_From_With_Type): Renamd to Set_From_Limited_With. + * einfo.ads: Remove attribute From_With_Type and occurrences in + nodes. Add attribute From_Limited_With along with occurrences + in nodes. + (From_With_Type): Renamed to From_Limited_With along with pragma Inline. + (Set_From_With_Type): Renamed to + Set_From_Limited_With along with pragma Inline. + * sem_ch7.adb, sem_ch8.adb, sem_ch12.adb, sem_ch13.adb, sem_disp.adb, + sem_res.adb, sem_type.adb, sem_util.adb, sem_warn.adb, + exp_attr.adb, exp_disp.adb, freeze.adb, itypes.adb, layout.adb, + lib-writ.adb, rtsfind.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb, + sem_ch4.adb: Replace all references to attribute From_With_Type + with From_Limited_With. + * sem_ch6.adb: Replace all references to attribute From_With_Type + with From_Limited_With. + (Designates_From_With_Type): Renamed to Designates_From_Limited_With. + (Process_Formals): Update the call to Designates_From_With_Type. + * sem_ch10.adb: Replace all references to attribute From_With_Type + with From_Limited_With. + (Build_Limited_Views): Reimplemented. + * gcc-interface/decl.c Replace all references to attribute + From_With_Type with From_Limited_With. + (finalize_from_with_types): Renamed to finalize_from_limited_with. + * gcc-interface/gigi.h (finalize_from_with_types): Renamed to + finalize_from_limited_with. + * gcc-interface/trans.c: Replace all references to attribute + From_With_Type with From_Limited_With. + (Compilation_Unit_to_gnu): Update the call to finalize_from_with_types. + +2013-10-17 Pascal Obry + + * projects.texi: Update VCS_Kind documentation. + +2013-10-17 Matthew Heaney + + * a-convec.adb, a-coinve.adb, a-cobove.adb (Insert, Insert_Space): + Inspect value range before converting type. + +2013-10-17 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Flag the use of pragma Refined_Pre as + illegal. + +2013-10-17 Vincent Celier + + * gnat_ugn.texi: Remove VMS conversion of -gnatet and -gnateT, + now that they are both in ug_words. + * ug_words: Update qualifier for -gnatet Add qualifier for -gnateT + * vms_data.ads: Update qualifier for -gnatet Add qualifier + for -gnateT + * projects.texi: Continue to update the project documentation + for VMS. + +2013-10-17 Robert Dewar + + * einfo.ads, einfo.adb (Has_Body_References): New flag. + (Body_References): New field. + * sem_prag.adb (Record_Possible_Body_Reference): New procedure + (Analyze_Input_Output): Call Record_Possible_Body_Reference + (Analyze_Global_Item): Call Record_Possible_Body_Reference + (Analyze_Refinement_Clause): Output messages if illegal global refs. + +2013-10-17 Thomas Quinot + + * freeze.adb (Check_Component_Storage_Order): Reject a record or + array type that does not have an explicit Scalar_Storage_Order + attribute definition if a component of the record, or the + elements of the array, have one. + * gnat_rm.texi (attribute Scalar_Storage_Order): Document the above + rule. + +2013-10-17 Vincent Celier + + * gnat_ugn.texi: Add examples of switches -gnateD, including + one where the value is a string. + * projects.texi: Do not convert switches in project files to + VMS qualifiers. + +2013-10-17 Robert Dewar + + * sem_prag.adb (Report_Extra_Clauses): Don't complain about + refinements with null input since null should be considered to + always match. + +2013-10-17 Robert Dewar + + * gnat_ugn.texi: Document -gnatw.y/-gnatw.Y. + * opt.ads (List_Body_Required_Info): New flag. + * prep.adb: Minor reformatting. + * sem_ch7.adb (Unit_Requires_Body_Info): New + procedure (Analyze_Package_Specification): Add call to + Unit_Requires_Body_Info. + * ug_words: Add entries for -gnatw.y and -gnatw.Y. + * usage.adb: Add line for new warning switch -gnatw.y/.Y. + * vms_data.ads: Add entry for [NO_]WHY_SPEC_NEEDS_BODY warning + qualifier. + * warnsw.ads, warnsw.adb: Implement new warning switch -gnatw.y/.Y. + +2013-10-17 Yannick Moy + + * sem_ch8.adb (Find_Direct_Name): Keep track of assignments for + renamings in SPARK mode. + +2013-10-17 Yannick Moy + + * exp_spark.adb (Expand_SPARK): Remove special case for NOT IN + operation. + * sinfo.ads: Add special comment section to describe SPARK mode + effect on tree. + * exp_spark.ads: Remove comments, moved to sinfo.ads. + +2013-10-17 Yannick Moy + + * exp_ch3.adb (Expand_Freeze_Class_Wide_Type, + Expand_Freeze_Class_Wide_Type, Expand_Freeze_Class_Wide_Type): + Remove useless special cases. + * exp_ch4.adb (Expand_Allocator_Expression, Expand_N_Allocator, + Expand_N_Op_Expon): Remove useless special cases. + * exp_ch6.adb (Is_Build_In_Place_Function_Call): Disable build-in-place + in SPARK mode by testing Full_Expander_Active instead of + Expander_Active. + (Make_Build_In_Place_Call_In_Allocator): Remove useless special case. + * exp_util.adb (Build_Allocate_Deallocate_Proc): Remove + useless special case. + * sem_eval.adb (Compile_Time_Known_Value): Remove special handling of + deferred constant. + +2013-10-17 Yannick Moy + + * gnat_ugn.texi: Document -gnateT and target file format. + +2013-10-17 Vincent Celier + + * prep.adb (Check_Command_Line_Symbol_Definition): Is_A_String is + always False, even when the value starts and ends with double quotes. + +2013-10-17 Tristan Gingold + + * a-exexpr-gcc.adb: Synchronize declarations of other/all others. + +2013-10-17 Thomas Quinot + + * exp_pakd.adb: Add missing guard protecting Reverse_Storage_Order + call. + * sem_res.adb: Minor code cleanup: use named parameter association + (not positional) for Boolean parameter Sec_Stack in calls to + Establish_Transient_Scope. + +2013-10-15 Thomas Quinot + + * exp_pakd.adb (Expand_Packed_Element_Set, + Expand_Packed_Element_Reference): Adjust for the case of packed + arrays of reverse-storage-order types. + +2013-10-15 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2013-10-15 Ed Schonberg + + * sem_attr.adb (Analyze_Attribute_Specification, case + To_Address): If the expression is an identifier, do not modify + its type; it will be converted when necessary, and the type of + the expression must remain consistent with that of the entity + for back-end consistency. + +2013-10-15 Robert Dewar + + * sem_ch7.adb (Unit_Requires_Body): Add flag + Ignore_Abstract_State (Analyze_Package_Specification): Enforce + rule requiring Elaborate_Body if a non-null abstract state is + specified for a library-level package. + * sem_ch7.ads (Unit_Requires_Body): Add flag Ignore_Abstract_State. + +2013-10-15 Hristian Kirtchev + + * sem_prag.adb (Analyze_Constituent): When + a state acts as a constituent of another state, ensure that + the said state has a Part_Of dependency in its corresponding + aspect/pragma Abstract_State. + +2013-10-15 Robert Dewar + + * par-ch4.adb (P_If_expression): Handle redundant ELSE cleanly. + +2013-10-15 Thomas Quinot + + * atree.ads (New_Copy, Relocate_Node): Improve documentation + (note that these subprograms reset Is_Overloaded). + +2013-10-15 Thomas Quinot + + * checks.adb (Check_Needed): Handle the case where the test in + the left operand of the short circuit is wrapped in a qualified + expression, type conversion, or expression with actions. + +2013-10-15 Thomas Quinot + + * sem_type.adb, sem_type.ads (Save_Interps): Also propagate + Is_Overloaded to New_N, for consistency. + +2013-10-15 Ed Schonberg + + * a-tienau.adb (Put): Use file parameter to query values of + current column and line length. + +2013-10-15 Robert Dewar + + * sem_prag.adb, exp_ch11.adb, a-except-2005.adb, a-except-2005.ads: + Minor reformatting. + +2013-10-15 Eric Botcazou + + * targparm.ads: Fix minor typo in comment. + +2013-10-15 Ed Schonberg + + * lib-xref.adb: handle full views that are derived from private + types. + * sem_util.adb (Build_Elaboration_Entity): Do nothing in ASIS + mode: the elaboration entity is not in the source, and plays no + role in semantic analysis. Minor reformatting. + +2013-10-15 Tristan Gingold + + * adaint.c (__gnat_get_executable_load_address): Remove AIX + specific code. + +2013-10-15 Ed Schonberg + + * exp_aggr.adb (Aggr_Size_OK): Refine criteria to better handle + large static aggregates with static record components, to avoid + generating a large number of asignments. Conversely, improve + handling of aggregates initialized by a single association, + which are most efficiently implemented with a loop. + +2013-10-15 Hristian Kirtchev + + * sem_prag.adb (Analyze_Input_Item): Emit an + error when the input item comes from the related package. + +2013-10-15 Arnaud Charlet + + * exp_ch11.adb (Expand_Exception_Handlers): Restrict previous + change. + +2013-10-14 Tristan Gingold + + * gcc-interface/gigi.h (standard_datatypes): Add + ADT_set_exception_parameter_decl + (set_exception_parameter_decl): New macro. + * gcc-interface/trans.c (gigi): Initialize set_exception_parameter_decl. + (Exception_Handler_to_gnu_zcx): Initialize the choice parameter. + * gcc-interface/trans.c: Synchronize declarations of other/all others + between gigi and the runtime. + +2013-10-14 Robert Dewar + + * exp_attr.adb (Find_Stream_Subprogram): Optimize + Storage_Array stream handling. + (Find_Stream_Subprogram): Optimize Stream_Element_Array stream handling + * rtsfind.ads: Add entry for Stream_Element_Array Add + entries for RE_Storage_Array subprograms Add entries for + RE_Stream_Element_Array subprograms + * s-ststop.ads, s-ststop.adb: Add processing for System.Storage_Array. + Add processing for Ada.Stream_Element_Array. + +2013-10-14 Tristan Gingold + + * a-except-2005.ads, a-except-2005.adb: + (Get_Exception_Machine_Occurrence): New function. + * raise-gcc.c (__gnat_unwind_exception_size): New constant. + +2013-10-14 Robert Dewar + + * sem_res.adb: Minor fix to error message text. + * errout.ads, erroutc.ads: Minor reformatting. + * s-ststop.ads, s-stratt.ads: Clean up documentation of block IO + mode for streams. + * s-stratt-xdr.adb: Minor comment update. + +2013-10-14 Robert Dewar + + * sem_aux.adb, sem_aux.ads, sem_prag.adb: Minor reformatting. + +2013-10-14 Ed Schonberg + + * sem_res.adb (Resolve_Actuals): Add error message for a + subprogram with an in-out parameter when used in a predicate, + to clarify subsequent error at the point of call. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Is_Matching_Input): Consume a matching null input. + +2013-10-14 Robert Dewar + + * freeze.adb (Freeze_Record): Don't give warning about packed + and foreign convention. + +2013-10-14 Ed Schonberg + + * sem_aux.adb, sem_aux.ads (Package_Specification): New function, to + replace the less efficient idiom Specification. + (Unit_Declaration_Node (Pack_Id)), which handles library units and + child units. + * sem_ch3.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_ch6.adb, + exp_disp.adb, sem_cat.adb, exp_dist.adb: Use Package_Specification. + +2013-10-14 Hristian Kirtchev + + * exp_attr.adb (Expand_Update_Attribute): Update the call to + Process_Range_Update. + (Process_Range_Update): Add new formal parameter Typ and associated + comment on usage. Add local constant Index_Typ. Add a type conversion + as part of the indexed component to ensure that the loop variable + corresponds to the index type. + +2013-10-14 Tristan Gingold + + * a-exexpr-gcc.adb: Adjust comment. + (Others_Value, All_Others_Value, + Unhandled_Others_Value): Declare as Character to slightly reduce + memory footprint. + +2013-10-14 Robert Dewar + + * freeze.adb (Size_Known): Size is not known for packed record + with aliased components + +2013-10-14 Robert Dewar + + * sem_ch3.adb: Minor fix to error message. + * a-exexpr-gcc.adb, sem_util.adb, sem_case.adb, exp_ch11.adb: Minor + reformatting. + +2013-10-14 Arnaud Charlet + + * exp_ch11.adb: Fix typo. + +2013-10-14 Thomas Quinot + + * exp_util.ads: Minor reformatting. + +2013-10-14 Ed Schonberg + + * sem_ch3.adb (Build_Derived_Record_Type): Reject full views + with no explicit discriminant constraints, when the parents of + the partial view and the full view are constrained subtypes with + different constraints. + +2013-10-14 Robert Dewar + + * freeze.adb (Freeze_Array_Type): New procedure, abstracts out + this code from Freeze. + (Freeze_Array_Type): Detect pragma Pack overriding foreign convention + (Freeze_Record_Type): Ditto. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Analyze_Dependency_Clause): Add new local variable + Non_Null_Output_Seen. Update the call to Analyze_Input_Output. + (Analyze_Input_Item): Streamline the detection mechanism of null and + non-null items. + (Analyze_Input_List): Add new local variable + Non_Null_Input_Seen. Update all calls to Analyze_Input_Output. + (Analyze_Input_Output): Add new formal parameter Non_Null_Seen + and update the related comment on usage. Update the + recursive call to itself. Attribute 'Result is now treated + as a non-null item. Detect mixes of null and non-null items. + (Analyze_Initialization_Item): Streamline the detection mechanism + of null and non-null items. + +2013-10-14 Vincent Celier + + * projects.texi: Add documentation for the new project level + attribute Library_Rpath_Options. + +2013-10-14 Tristan Gingold + + * a-exexpr-gcc.adb (Set_Exception_Parameter): New procedure. + (Set_Foreign_Occurrence): New procedure, extracted from + Setup_Current_Excep. + * exp_ch11.adb (Expand_Exception_Handlers): Do not expand choice + parameter in case of zcx. + * sem_ch11.adb (Analyze_Exception_Handlers): Need debug info + for the choice parameter. + * raise-gcc.c: Add comments. + +2013-10-14 Hristian Kirtchev + + * aspects.adb: Add an entry in table Canonical_Aspect for + Initial_Condition. + * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, + Aspect_Names and Aspect_Delay for Initial_Condition. + * einfo.adb (Get_Pragma): Include pragma Initial_Condition to + categorization pragmas. + * einfo.ads (Get_Pragma): Update comment on usage. + * exp_ch7.adb (Expand_N_Package_Body): Add a runtime check to + verify the assertion introduced by pragma Initial_Condition. + (Expand_N_Package_Declaration): Add a runtime check to + verify the assertion introduced by pragma Initial_Condition. + (Expand_Pragma_Initial_Condition): New routine. + * par-prag: Include pragma Initial_Condition to the list of + pragmas that do not require special processing by the parser. + * sem_ch3.adb (Analyze_Declarations): Analyze pragma + Initial_Condition at the end of the visible declarations. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing + for aspect Initial_Condition. + (Check_Aspect_At_Freeze_Point): + Aspect Initial_Condition does not need inspection at freezing. + * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): + New routine. + (Analyze_Pragma): Update all calls + to Check_Declaration_Order. Add processing for pragma + Initial_Condition. Initial_Condition is now a valid assertion + kind. Add an entry in table Sig_Flags for Initial_Condition. + (Check_Declaration_Order): Reimplemented to handle arbitrary + pragmas. + (Is_Valid_Assertion_Kind): Add an entry for + Initial_Condition. + * sem_pag.ads (Analyze_Initial_Condition_In_Decl_Part): + New routine. + * sem_util.adb (Add_Contract_Item): Pragma Initial_Condition + can now be associated with a package spec. + * sem_util.ads (Add_Contract_Item): Update comment on usage. + * sinfo.ads: Update the documentation of node N_Contract + * snames.ads-tmpl: Add new predefined name Initial_Condition. Add + new pragma id for Initial_Condition. + +2013-10-14 Thomas Quinot + + * exp_pakd.adb: Minor reformatting. + +2013-10-14 Robert Dewar + + * exp_prag.adb: Minor reformatting. + +2013-10-14 Ed Schonberg + + * sem_case.adb (Check_Against_Predicate): Handle properly an + others clause in various cases. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Check_Matching_Constituent): Do + not inspect the hidden states if there are no hidden states. This + case arises when the constituents are states coming from a + private child. + +2013-10-14 Doug Rupp + + * init.c [ARMEL and VxWorks] (__gnat_map_signal): Re-arm guard + page by clearing VALID bit vice setting page protection. + +2013-10-14 Arnaud Charlet + + * gnat_rm.texi, adaint.c: Fix typo. + +2013-10-14 Ed Schonberg + + * sem_util.adb (Is_Variable, In_Protected_Function): In the + body of a protected function, the protected object itself is a + constant (not just its components). + +2013-10-14 Vincent Celier + + * snames.ads-tmpl: Add new standard name Library_Rpath_Options. + +2013-10-14 Tristan Gingold + + * sem_prag.adb (Process_Import_Or_Interface): Allow importing + of exception using convention Cpp. + * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Expand cpp + imported exceptions. + * raise-gcc.c (is_handled_by): Filter C++ exception occurrences. + * gnat_rm.texi: Document how to import C++ exceptions. + +2013-10-14 Jose Ruiz + + * sem_ch13.adb (Sem_Ch13.Analyze_Aspect_Specification): For + Priority and CPU aspects, when checking, issue a warning only + if it is obviously not a main program. + +2013-10-14 Tristan Gingold + + * adaint.c: Fix condition for AIX. Minor reformatting. + +2013-10-14 Robert Dewar + + * sem_ch3.adb, sem_prag.adb, prj.ads: Minor reformatting. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Analyze_Depends_In_Decl_Part): + Rename Outputs_Seen to All_Outputs_Seen and update all occurrences + of the variable. + (Analyze_Input_Output): Add an item to + All_Inputs_Seen when it is an input or a self-referential output. + (Check_Mode): Comment reformatting. + (Analyze_Abstract_State): Remove the restriction that an Export state + must also have mode Input_Only or Output_Only. + +2013-10-14 Hristian Kirtchev + + * einfo.adb: Flag 263 is now known as Has_Visible_Refinement. + (Has_Non_Null_Refinement): New routine. + (Has_Null_Refinement): The routine is now synthesized. + (Has_Visible_Refinement): New routine. + (Set_Has_Visible_Refinement): New routine. + (Write_Entity_Flags): Remove the output for + Has_Null_Refinement. Add output for Has_Visible_Refinement. + * einfo.ads: Update the occurrences of Has_Non_Null_Refinement, + Has_Null_Refinement and Has_Visible_Refinement in entities. + (Has_Non_Null_Refinement): New synthesized attribute. + (Has_Null_Refinement): This attribute is now synthesized. + (Has_Visible_Refinement): New routine with corresponding + pragma Inline. + (Set_Has_Visible_Refinement): New routine with corresponding pragma + Inline. + * sem_ch3.adb (Analyze_Declarations): Add new local + variable In_Package_Body. Remove state refinements from + visibility at the end of the package body declarations. + (Remove_Visible_Refinements): New routine. + * sem_prag.adb (Analyze_Constituent): Collect a null + constituent and mark the state as having visible refinement. + (Analyze_Global_Item): Use attribute Has_Visible_Refinement to + detect a state with visible refinement. + (Analyze_Input_Output): Use attribute Has_Visible_Refinement to detect + a state with visible refinement. + (Check_Dependency_Clause): Use attribute Has_Non_Null_Refinement rather + than checking the contents of list Refinement_Constituents. + (Check_In_Out_States): Use attribute Has_Non_Null_Refinement rather + than checking the contents of list Refinement_Constituents. + (Check_Input_States): Use attribute Has_Non_Null_Refinement rather + than checking the contents of list Refinement_Constituents. + (Check_Matching_Constituent): Mark a state as having visible refinement. + (Check_Output_States): Use attribute Has_Non_Null_Refinement rather than + checking the contents of list Refinement_Constituents. + (Check_Refined_Global_Item): Use attribute Has_Visible_Refinement + to detect a state with visible refinement. + (Is_Matching_Input): Use attribute Has_Non_Null_Refinement rather than + checking the contents of list Refinement_Constituents. + * sem_util.adb (Is_Refined_State): Use attribute + Has_Visible_Refinement to detect a state with visible refinement. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Check_Mode): Do not emit an + error when inspecting a self referencial output item of an + unconstrained type. + +2013-10-14 Tristan Gingold + + * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Fix + target type for code of VMS imported exception. + * init.c: Replace Exception_Code by void *. + * s-vmexta.adb (Hash, Base_Code_In): Adjust code after changing + the type of Exception_Code. + +2013-10-14 Vincent Celier + + * prj.ads: Minor comment updates. + * prj-attr.adb: New attribute Library_Rpath_Options. + +2013-10-14 Robert Dewar + + * gnat_rm.texi: Library_Level attribute now applies to an + entity name. + * sem_attr.adb (Analyze_Attribute, case Library_Level): Prefix + is now an entity name. + +2013-10-14 Jose Ruiz + + * sem_ch13.adb (Analyze_Aspect_Specification): For + Priority and CPU aspects in subprograms, the expression in the + aspect is analyzed and exported. + +2013-10-14 Robert Dewar + + * s-valuti.adb, prep.adb, scng.adb, errout.adb: Minor reformatting. + +2013-10-14 Eric Botcazou + + * adaint.c: Further disable __gnat_get_executable_load_address + for Linux. + +2013-10-14 Vincent Celier + + * gnat_ugn.texi: Add documentation for comparing symbols to + integers in preprocessing expressions. + +2013-10-14 Jose Ruiz + + * sem_prag.adb (Analyze_Aspect_Specification): For + Priority and CPU aspects in subprograms, the expression in the + aspect is analyzed and exported. + (Analyze_Pragma): When having a Priority pragma in the + main subprogram, load a unit that will force the initialization + of the tasking run time, which is needed for setting the required + priority. + +2013-10-14 Vincent Celier + + * prj-nmsc.adb (Check_Interfaces): Put in Other_Interfaces all + non Ada interface files. + * prj.ads (Project_Data): New component Other_Interfaces. + +2013-10-14 Arnaud Charlet + + * gcc-interface/Makefile.in: Target pairs clean ups. + +2013-10-14 Vincent Celier + + * errout.adb (Write_Error_Summary): Do not output the number + of lines when Main_Source_File is unknown. + (Output_Messages): Do not write the header when Main_Source_File is + unknown. + +2013-10-14 Vincent Celier + + * prep.adb (Expression): Accept terms of the form 'symbol + integer", where relop is =, <, <=, > or >=. + (Parse_Def_File): Accept literal integer values. + * gcc-interface/Make-lang.in: Add s-valint.o, s-valuns.o and + s-valuti.o to the compiler object files. + +2013-10-14 Robert Dewar + + * exp_prag.adb, exp_ch11.adb, s-exctab.adb: Minor reformatting. + * usage.adb: Add line for -gnateu switch. + +2013-10-14 Vincent Celier + + * lib-writ.ads: Add comments to indicate that a path name in + D lines may be quoted if the path name includes directories + with spaces. + +2013-10-14 Robert Dewar + + * debug.adb: Document -gnatd.E. + * gnat1drv.adb (Adjust_Global_Switches): Set Error_To_Warning + if -gnatd.E set. + * opt.ads (Error_To_Warning): New switch. + * osint.adb: Minor reformatting. + * sem_warn.adb (Warn_On_Overlapping_Actuals): Overlap is error + in some cases in Ada 2012 mode (unless Error_To_Warning) is set. + * sem_warn.ads (Warn_On_Overlapping_Actuals): Document error + in Ada 2012 mode. + +2013-10-14 Tristan Gingold + + * cstand.adb: Add a comment for Standard_Exception_Type. + +2013-10-14 Ed Schonberg + + * exp_ch4.adb (Process_Transient_Object): If a transient scope + has already been created, use the corresponding Node_To_Be_Wrapped + as the insertion point for the controlled actions. + +2013-10-14 Tristan Gingold + + * cstand.adb (Create_Standard): Change Import_Code component + of Standard_Exception_Type to Foreign_Data. Its type is now + Standard_A_Char (access to character). + * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust + definition of Code to match the type of Foreign_Data. + * s-stalib.ads (Exception_Data): Replace Import_Code by Foreign_Data + Change the definition of standard predefined exceptions. + (Exception_Code): Remove. + * raise.h (Exception_Code): Remove (Exception_Data): Replace + Import_Code field by Foreign_Data. + * rtsfind.ads (RE_Exception_Code): Remove + (RE_Import_Address): Add. + * a-exexpr-gcc.adb (Import_Code_For): Replaced by Foreign_Data_For. + * exp_ch11.adb (Expand_N_Exception_Declaration): Associate null + to Foreign_Data component. + * raise-gcc.c (Import_Code_For): Replaced by Foreign_Data_For. + (is_handled_by): Add comments. Use replaced function. Change + condition so that an Ada occurrence is never handled by + Foreign_Exception. + * s-exctab.adb (Internal_Exception): Associate Null_Address to + Foreign_Data component. + * s-vmexta.adb, s-vmexta.ads (Exception_Code): Declare Replace + SSL.Exception_Code by Exception_Code. + +2013-10-14 Robert Dewar + + * gnat_ugn.texi: Document -gnateu switch. + * opt.ads (Ignore_Unrecognized_VWY_Switches): New switch. + * stylesw.adb: Ignore unrecognized switch if + Ignore_Unrecognized_VWY_Switches set. + * switch-c.adb: Implement -gnateu (sets + Ignore_Unrecognized_VWY_Switches). + * validsw.adb: Ignore unrecognized switch if + Ignore_Unrecognized_VWY_Switches set. + * warnsw.adb: Ignore unrecognized switch if + Ignore_Unrecognized_VWY_Switches set. + +2013-10-14 Robert Dewar + + * exp_prag.adb, sem_prag.adb, a-exexda.adb, s-vmexta.ads: Minor + reformatting. + +2013-10-14 Vincent Celier + + * ali.adb (Get_File_Name): New Boolean parameter May_Be_Quoted, + defaulted to False. Calls Get_Name with May_Be_Quoted. + (Get_Name): New Boolean parameter May_Be_Quoted, defaulted to + False. If May_Be_Quoted is True and first non blank charater is + '"', unquote the name. + (Scan_ALI): For the file/path name on the D line, call Get_File_Name + with May_Be_Quoted = True, as it may have been quoted. + * lib-util.adb, lib-util.ads (Write_Info_Name_May_Be_Quoted): New + procedure to write file/path names that may contain spaces and if they + do are quoted. + * lib-writ.adb (Write_ALI): Use new procedure + Write_Info_Name_May_Be_Quoted to write file/path names on D lines. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Analyze_Depends_In_Decl_Part, + Analyze_Global_In_Decl_Part, + Analyze_Pre_Post_Condition_In_Decl_Part): Install the subprogram + and its formals only when it is not already installed. + * sem_util.adb (Is_Refined_State): A state is refined when it + has a non-empty list of constituents. + +2013-10-14 Tristan Gingold + + * adaint.c: Disable __gnat_get_executable_load_address for linux. + * exp_prag.adb: Add comment in Expand_Pragma_Import_Export_Exception. + +2013-10-14 Tristan Gingold + + * s-vmexta.ads: Add comments. + +2013-10-14 Hristian Kirtchev + + * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing + for pragma Refined_State. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing + for aspect Refined_Depends. + * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): + Use Find_Related_Subprogram_Or_Body to find the related + context. Use the current scope when determining whether to + ensure proper visibility. + (Analyze_Depends_In_Decl_Part): + Add local variable Spec_Id. Update the comment on usage of + Subp_Id. Use Find_Related_Subprogram_Or_Body to find the + related context. Extract the corresponding spec of the body + (if any). Use the current scope when determining when to + ensure proper visibility. + (Analyze_Global_In_Decl_Part): + Add local variable Spec_Id. Update the comment on usage of + Subp_Id. Use Find_Related_Subprogram_Or_Body to find the + related context. Extract the corresponding spec of the body + (if any). Use the current scope when determining when to + ensure proper visibility. + (Analyze_Global_Item): Use the + entity of the subprogram spec when performing formal parameter + checks. Perform state-related checks. + (Analyze_Input_Output): + Use Is_Attribute_Result to detect 'Result. Query the + entity of a subprogram spec when verifying the prefix of + 'Result. Perform state-related checks. (Analyze_Pragma): + Merge the analysis of Refined_Depends and Refined_Global. + (Analyze_Refined_Depends_In_Decl_Part): Provide implemenation. + (Analyze_Refined_Global_In_Decl_Part): Move state-related checks + to the body of Analyze_Global_In_Decl_Part. Rename local constant + List to Items. (Analyze_Refined_Pragma): Remove circuitry to + find the proper context, use Find_Related_Subprogram_Or_Body + instead. + (Check_Function_Return): Query the entity of + the subprogram spec when verifying the use of 'Result. + (Check_In_Out_States, Check_Input_States, Check_Output_States): + Avoid using Has_Null_Refinement to detect a state with + a non-null refinement, use the Refinement_Constituents + list instead. + (Check_Matching_Constituent): Remove initialization code. + (Check_Mode_Restriction_In_Function): Use the entity of the subprogram + spec when verifying mode usage in functions. + (Collect_Global_Items): New routine. + (Collect_Subprogram_Inputs_Outputs): Add local + variable Spec_Id. Add circuitry for bodies-as-specs. Use + pragma Refined_Global when collecting for a body. + (Create_Or_Modify_Clause): Use the location of the + clause. Rename local variable Clause to New_Clause to avoid + confusion and update all occurrences. Use Is_Attribute_Result + to detect 'Result. + (Find_Related_Subprogram): Removed. + (Find_Related_Subprogram_Or_Body): New routine. + (Is_Part_Of): Move routine to top level. + (Normalize_Clause): Update the + comment on usage. The routine can now normalize a clause with + multiple outputs by splitting it. + (Collect_Global_Items): + Rename local constant List to Items. Remove the check for + a null list. + (Requires_Profile_Installation): Removed. + (Split_Multiple_Outputs): New routine. + * sem_prag.ads: Update the comments on usage of various + pragma-related analysis routines. + * sem_util.adb (Contains_Refined_State): The routine can now + process pragma [Refined_]Depends. + (Has_Refined_State): Removed. + (Has_State_In_Dependency): New routine. + (Has_State_In_Global): New routine. + (Is_Attribute_Result): New routine. + * sem_util.ads (Is_Attribute_Result): New routine. + +2013-10-14 Emmanuel Briot + + * s-regpat.adb (Compile): Fix finalization of the automaton + when its size was automatically computed to be exactly 1000 bytes. + +2013-10-14 Ed Schonberg + + * sem_ch3.adb (Complete_Private_Subtype): If the full view of + the base type is constrained, the full view of the subtype is + known to be constrained as well. + +2013-10-14 Vincent Celier + + * projects.texi: Add documentation for new attributes of package + Clean: Artifacts_In_Object_Dir and Artifacts_In_Exec_Dir. + +2013-10-14 Tristan Gingold + + * adaint.c, adaint.h (__gnat_get_executable_load_address): + New function. + * a-exexda.adb (Append_Info_Basic_Exception_Traceback): Add + executable load address (Basic_Exception_Tback_Maxlength): Adjust. + +2013-10-14 Vincent Celier + + * prj-attr.adb: New attributes in package Clean: + Artifacts_In_Exec_Dir, Artifacts_In_Object_Dir. + * prj-nmsc.adb (Process_Clean (Attributes)): New + procedure to process attributes Artifacts_In_Exec_Dir and + Artifacts_In_Object_Dir in package Clean. + * prj.ads (Project_Configuration): New components + Artifacts_In_Exec_Dir and Artifacts_In_Object_Dir. + * snames.ads-tmpl: New standard names Artifacts_In_Exec_Dir and + Artifacts_In_Object_Dir used only by gprclean. + +2013-10-14 Robert Dewar + + * exp_attr.adb (Expand_N_Attribute_Reference): Add error + entry for Library_Level attribute (which should not survive + to expansion) + * gnat_rm.texi: Document attribute Library_Level + * sem_attr.adb (Analyze_Attribute, case Library_Level): Implement + this new attribute (Set_Boolean_Result): Replaces Set_Result + (Check_Standard_Prefix): Document that Check_E0 is called + (Check_System_Prefix): New procedure + * snames.ads-tmpl: Add entry for Library_Level attribute + +2013-10-14 Robert Dewar + + * exp_ch6.adb, sinfo.ads: Minor reformatting. + * checks.adb (Overlap_Check): Use identifier casing in messages. + +2013-10-14 Robert Dewar + + * einfo.ads, einfo.adb (Default_Aspect_Component_Value): Is on base type + only. + * exp_aggr.adb (Expand_Array_Aggregate): Handle proper + initialization of <> component. + * exp_ch3.adb, exp_tss.adb: Minor reformatting + * sem_ch13.adb (Default_Aspect_Component_Value, Default_Aspect_Value): + Is on base type only. + * sinfo.ads: Minor comment revision. + +2013-10-14 Robert Dewar + + * g-decstr.adb (Decode_Wide_Wide_Character): Fix failure + to detect invalid sequences where longer than necessary + sequences are used for encoding. + (Validate_Wide_Character): + Call Decode_Wide_Character to get the above validations. + (Validate_Wide_Wide_Character): Same fix + * g-decstr.ads: Add documentation making it clear that the UTF-8 + implementation here recognizes all valid UTF-8 sequences, rather + than the well-formed subset corresponding to characters defined + in Unicode. + (Next_Wide_Character): Remove comment about this + being more efficient than Decode_Wide_Character (because this + no longer the case). + (Prev_Wide_Character): Add note that valid encoding is assumed. + +2013-10-14 Robert Dewar + + * a-wichha.adb (Character_Set_Version): New function. + * a-wichha.ads: Remove comments for pragma Pure (final RM has + this). + (Character_Set_Version): New function. + * gnat_rm.texi: Update doc. + +2013-10-14 Hristian Kirtchev + + * einfo.adb: Flag263 is now known as Has_Null_Refinement. + (Has_Null_Refinement): New routine. + (Set_Has_Null_Refinement): New routine. + (Write_Entity_Flags): Output the status of flag + Has_Null_Refinement. + * einfo.ads: Add new flag Has_Null_Refinement along with + comment on usage and update all nodes subject to the flag. + (Has_Null_Refinement): New routine along with pragma Inline. + (Set_Has_Null_Refinement): New rouitine along with pragma Inline. + * sem_prag.adb (Analyze_Constituent): Mark a state as having + a null refinement when the sole constituent is "null". + (Analyze_Global_List): Handle null input/output items. + (Analyze_Refined_Global_In_Decl_Part): Add local variable + Has_Null_State. Add logic to handle combinations of states + with null refinements and null global lists and/or items. + (Check_In_Out_States, Check_Input_States, Check_Output_States): + Use attribute Has_Null_Refinement to detect states with + constituents. + (Check_Refined_Global_List): Handle null input/output items. + (Process_Global_Item): Handle states with null refinements. + (Process_Global_List): Handle null input/output items. + +2013-10-14 Robert Dewar + + * freeze.adb (Freeze_Entity): Reset Is_True_Constant for + aliased object + * gnat_ugn.texi: Update doc on aliased variables and constants. + +2013-10-14 Ed Schonberg + + * exp_pakd.adb (Expand_Packed_Element_Reference): If the + reference is an actual in a call, the prefix has not been fully + expanded, to account for the additional expansion for parameter + passing. the prefix itself is a packed reference as well, + recurse to complete the transformation of the prefix. + +2013-10-14 Eric Botcazou + + * exp_dbug.adb (Debug_Renaming_Declaration): Do not + materialize the entity when the renamed object contains an + N_Explicit_Dereference. + * sem_ch8.adb (Analyze_Object_Renaming): + If the renaming comes from source and the renamed object is a + dereference, mark the prefix as needing debug information. + +2013-10-14 Doug Rupp + + * system-vxworks-arm.ads (Stack_Check_Probes, Stack_Check_Limits): + Enable Stack Probes, Disable Stack Limit Checking. + * init.c [VxWorks] (__gnat_inum_to_ivec): Caste return value. + (__gnat_map_signal): Fix signature. + (__gnat_error_handler): Make + static, fix signature, remove prototype, fix prototype warning. + [ARMEL and VxWorks6] (__gnat_map_signal): Check and re-arm guard + page for storage_error. + * exp_pakd.adb: Minor reformatting. + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Analyze_Global_In_Decl_Part): Remove local + variable Contract_Seen. Add local variable Proof_Seen. + (Analyze_Global_List): Remove the processing for mode + Contract_In. Add support for mode Proof_In. + (Analyze_Pragma): Update the grammar of pragmas Global and + Refined_Global. + * snames.ads-tmpl: Remove predefined name Contract_In. Add + predefined name Proof_In. + +2013-10-14 Robert Dewar + + * exp_prag.adb (Expand_Pragma_Check): Generate proper string + for invariant + * gnat_rm.texi: Add documentation for pragmas + Type_Invariant[_Class] + * par-prag.adb: Add entries for pragmas Type_Invariant[_Class] + * sem_ch13.adb: Minor reformatting + * sem_prag.adb: Implement pragmas Type_Invariant[_Class] + * snames.ads-tmpl: Add entries for pragmas Type_Invariant[_Class] + +2013-10-14 Johannes Kanig + + * debug.adb: Release now unused debug switches that were only + relevant for gnat2why backend, not the frontend + * frontend.adb (Frontend) Do not stop when -gnatd.H is present, + was unused + +2013-10-14 Hristian Kirtchev + + * sem_prag.adb (Analyze_Global_Item): Allow + references to enclosing formal parameters. + +2013-10-14 Thomas Quinot + + * einfo.adb (Equivalent_Type): Add missing case + E_Access_Subprogram_Type in guard (for remote access to + subprograms) * sem_ch8.adb (Find_Direct_Name, Find_Expanded_Name): + Add missing guards to account for the presence of RAS types + that have already been replaced with the corresponding fat + pointer type. + +2013-10-14 Hristian Kirtchev + + * aspects.adb: Add an entry in table Canonical_Aspect for + Initializes. + * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, + Aspect_Names and Aspect_Delay for Initializes. + * atree.ads, atree.adb (Ekind_In): New seven argument versions of the + routines. + * einfo.adb: Remove Refined_State_Pragma from the list of node + usage. Finalizer is now at position 28. + (Contract): Package + and package bodies now have a contract. + (Finalizer): Update + the assertion and node usage. + (Get_Pragma): Update the Is_CDG + flag to include Abstract_State, Initializes and Refined_State. + (Refined_State_Pragma): Removed. + (Set_Contract): Package and + package bodies now have a contract. + (Set_Finalizer): Update the + assertion and node usage. + (Set_Refined_State_Pragma): Removed. + (Write_Field8_Name): Remove the output for Refined_State_Pragma. + (Write_Field24_Name): Remove the output for Finalizer. Package + and package bodies now have a contract. + (Write_Field28_Name): + Add output for Finalizer. + * einfo.ads: Update the documentation and usage in entities + of attribute Contract. Update the node position and usage in + entities of attribute Finalizer. Remove the documentation + and usage in entities for attribute Refined_State_Pragma. + (Refined_State_Pragma): Removed along with pragma Inline. + (Set_Refined_State_Pragma): Removed along with pragma Inline. + * par-prag.adb: Add Initializes to the pragmas that do not + require special processing by the parser. + * sem_ch3.adb (Analyze_Declarations): Add local variable + Prag. Update the retrieval of pragma Refined_State. Analyze + aspect/pragma Initializes at the end of the visible declarations + of the related package. + * sem_ch6.adb (Analyze_Subprogram_Body_Contract): + Add local variables Ref_Depends and Ref_Global. Analyze + pragmas Refined_Global and Refined_Depends in that order. + (Analyze_Subprogram_Contract): Add local variables Depends and + Global. Analyze pragmas Global and Depends in that order. + * sem_ch7.adb (Analyze_Package_Body_Helper): Package + bodies now have a contract. Move the analysis of the aspect + specifications after the defining entity has been decorated. + (Analyze_Package_Declaration): Packages now have a contract. Move + the analysis of the aspect specifications after the defining + entity has been decorated. + * sem_ch12.adb (Analyze_Generic_Package_Declaration): Packages + now have contracts. + * sem_ch13.adb (Analyze_Pragma): Code cleanup for aspect + Abstract_State. Add processing for aspect Initializes. + (Check_Aspect_At_Freeze_Point): Add an entry for Initializes. + * sem_prag.adb: Use Get_Pragma_Arg to extract the expression + of a pragma argument. Add an entry in table Sig_Flags for + Initializes. + (Analyze_Initializes_In_Decl_Part): New routine. + (Analyze_Pragma): Check the declaration order of pragmas + Abstract_State and Initializes. Abstract_State is now part of + the package contract. Analyze pragma Initializes. Check for + duplicate Refined_State pragma. Refined_State is now part of + the package contract. + (Check_Declaration_Order): New routine. + (Check_Test_Case): Alphabetized. + * sem_prag.ads (Analyze_Initializes_In_Decl_Part): New routine. + * sem_util.adb (Add_Contract_Item): Rename formal Subp_Id + to Id. This routine can now support contracts on packages and + package bodies. + * sem_util.ads (Add_Contract_Item): Rename formal Subp_Id to + Id. Update comment on usage. + * sinfo.ads: Update the usage of N_Contract nodes. + * snames.ads-tmpl: Add predefined name Initializes. Add new + pragma id for Initializes. + +2013-10-13 Nicolas Roche + Eric Botcazou + + * gcc-interface/Make-lang.in (ada/%.o): Replace individual rules with + generic rule and add $(POSTCOMPILE). + (ADA_DEPS): New. + (.adb.o): Add @$(ADA_DEPS). + (.ads.o): Likewise. + (ada/a-except.o): Likewise. + (ada/s-excdeb.): Likewise. + (ada/s-assert.o): Likewise. + (ada/a-tags.o): Likewise. + (ada_generated_files): New variable. + Use them as dependency order for GNAT1_ADA_OBJS and GNATBIND_OBJS. + (ADA_DEPFILES): New variable. + Include them. + (ada_OBJS): Define. + +2013-10-13 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Force all local + variables with aggregate types in memory if not optimizing. + +2013-10-13 Hristian Kirtchev + + * sem_prag.adb (Check_Mode): Do + not emit an error when we are looking at inputs and + the item is an unconstrained or tagged out parameter. + (Check_Mode_Restriction_In_Enclosing_Context): Use Get_Pragma + to find whether the context is subject to aspect/pragma Global. + (Collect_Subprogram_Inputs_Outputs): Unconstrained or tagged + out parameters are now considered inputs. Use Get_Pragma to + find wheher the subprogram is subject to aspect/pragma Global. + (Is_Unconstrained_Or_Tagged_Item): New routine. + +2013-10-13 Thomas Quinot + + * einfo.ads: Minor reformatting. + * gcc-interface/Make-lang.in: Update dependencies. + +2013-10-13 Robert Dewar + + * gnat_rm.texi: Add documentation for pragmas Pre[_Class] + Post[_Class]. + * par-ch2.adb (Skip_Pragma_Semicolon): Handle extra semicolon nicely. + * par-prag.adb: Add entries for pragmas Pre[_Class] and + Post[_Class]. + * sem_prag.adb: Add handling of pragmas Pre[_Class] and + Post[_Class]. + * sem_util.adb (Original_Aspect_Name): Moved here from + Sem_Prag.Original_Name, and modified to handle pragmas + Pre/Post/Pre_Class/Post_Class. + * sem_util.ads (Original_Aspect_Name): Moved here from + Sem_Prag.Original_Name. + * snames.ads-tmpl: Add entries for pragmas Pre[_Class] and + Post[_Class]. + +2013-10-13 Robert Dewar + + * einfo.adb, sem_ch6.adb: Minor reformatting. + +2013-10-13 Hristian Kirtchev + + * einfo.adb: Add node/list usage for Refined_State + and Refinement_Constituents. + (Get_Pragma): Update the + initialization of Is_CDG to include Refined_Global and + Refined_Depends. Rename constant Delayed to In_Contract and update + all of its occurrences. + (Is_Non_Volatile_State): New routine. + (Is_Volatile_State): Removed. + (Refined_State): New routine. + (Refinement_Constituents): New routine. + (Set_Refined_State): New routine. + (Set_Refinement_Constituents): New routine. + (Write_Field8_Name): Add output for Refinement_Constituents. + (Write_Field10_Name): Add output for Refined_State. + * einfo.ads: Add new synthesized attribute Is_Non_Volatile_State. + Remove synthesized attribute Is_Volatile_State. Add new + attributes Refined_State and Refinement_Constituents along with + usage in nodes. + (Get_Pragma): Update the comment on usage. + (Is_Non_Volatile_State): New routine. + (Is_Volatile_State): Removed. + (Refined_State): New routine and pragma Inline. + (Refinement_Constituents): New routine and pragma Inline. + (Set_Refined_State): New routine and pragma Inline. + (Set_Refinement_Constituents): New routine and pragma Inline. + * elists.ads, elists.adb (Clone): Removed. + (New_Copy_Elist): New routine. + (Remove): New routine. + * sem_ch3.adb (Analyze_Declarations): Use Defining_Entity + to get the entity of the subprogram [body]. + (Analyze_Object_Declaration): Add initialization for + Refined_State. + * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing + for Refined_Global and Refined_Depends. Emit an error when + the body requires Refined_Global, but the aspect/pragma is + not present. + * sem_ch6.ads (Analyze_Subprogram_Body_Contract): Change + procedure signature and add comment on usage. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing + for aspect Refined_Global. + * sem_prag.adb (Analyze_Abstract_State): Add initialization + of attributes Refined_State and Refinement_Constituents. + (Analyze_Depends_In_Decl_Part, Analyze_Global_In_Decl_Part, + Analyze_Contract_Cases_In_Decl_Part): Remove local + constant Arg1. + (Analyze_Pragma): Add processing for pragma + Refined_Global. The analysis of Refined_Post and Refined_Pre + has been merged. Update an error message in the processing of + pragma Refined_State. + (Analyze_Refined_Global_In_Decl_Part): Provide implementation. + (Analyze_Refined_Pragma): New routine. + (Analyze_Refined_Pre_Post_Condition): Removed. + (Analyze_Refined_State_In_Decl_Part): Update the call to Clone. + (Analyze_Refinement_Clause): Make State_Id visible to all + nested subprogram. + (Check_Matching_Constituent): Establish + a relation between a refined state and its constituent. + (Collect_Hidden_States_In_Decls): Remove ??? comment. Look at + the entity of the object declaration to establish its kind. + * sem_util.adb: Alphabetize with and use clauses. + (Contains_Refined_State): New routine. + * sem_util.ads (Contains_Refined_State): New routine. + +2013-10-13 Thomas Quinot + + * scos.ads: Minor documentation clarification. + +2013-10-13 Thomas Quinot + + * s-oscons-tmplt.c (CLOCK_RT_Ada): Set to CLOCK_MONOTONIC when + building on AIX 5.3 or later, and to CLOCK_REALTIME on older + versions of AIX. + * init.c (pthread_condattr_setclock): Remove now useless weak symbol. + * thread.c(__gnat_pthread_condattr_setup): Remove bogus AIX 5.2 + compatibility shim. + * s-osinte-aix.ads(clock_id_t): Fix C mapping (this is a 64-bit + type). + (clock_gettime): Import from C runtime library. + * s-osinte-aix.adb (clock_gettime): Remove bogus emulation body, + this routine is provided by the system in current supported + versions of AIX. + +2013-10-13 Robert Dewar + + * sem_ch3.adb: Minor reformatting. + +2013-10-13 Ed Schonberg + + * freeze.adb (Freeze_Entity): For a function whose return type + is incomplete, do not replace the type with the full view if the + type is a limited view. In that case the full view appears in a + different unit, and the back-end will retrieve it at the proper + elaboration point. + +2013-10-13 Yannick Moy + + * exp_spark.adb (Expand_SPARK_Call): Do not introduce temporaries for + actuals. + +2013-10-13 Ed Schonberg + + * sem_ch3.adb: in Ada 2012 access_to_function types can have + in-out parameters. + (Derived_Type_Declaration): SPARK restriction + must be flagged on the original node, since it may have been + written as a subtype declaration. + (Analyze_Subtype_Declaration): Do not enter name of + entity in declaration if it is the current entity, because it may + have been inserted in a previous analysis and it appears in the + else_part of an if-statement that is rewritten during expansion. + +2013-10-13 Yannick Moy + + * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Remove procedure. + (Expand_SPARK): Remove call to Expand_SPARK_N_Attribute_Reference and + Expand_SPARK_N_Simple_Return_Statement. + (Expand_SPARK_N_Simple_Return_Statement, + Expand_SPARK_Simple_Function_Return): Remove procedures. + +2013-10-13 Vincent Celier + + * gnat_ugn.texi: Minor editing. + +2013-10-13 Ed Schonberg + + * sem_ch3.adb (Check_Abstract_Overriding): If a synchronized + operation implements an interface primitive, mark the operation + as referenced, to prevent usually spurious messages about unused + entities: such operations are called in dispatching select + statements that are not visible to the compiler. + +2013-10-13 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment. + +2013-10-11 Jakub Jelinek + + * gcc-interface/utils.c (DEF_FUNCTION_TYPE_8): Define. + +2013-10-10 Robert Dewar + + * par-ch6.adb (Check_Junk_Semicolon_Before_Return): Remove + junk code. + +2013-10-10 Javier Miranda + + * sem_ch13.adb (Freeze_Entity_Checks): Avoid + loosing errors on CPP entities in -gnatc mode. + +2013-10-10 Robert Dewar + + * sem_ch5.adb (Analyze_If_Statement): Only diagnose redundant + if from source. + +2013-10-10 Robert Dewar + + * restrict.adb (Check_SPARK_Restriction): Refine test (don't + automatically go to the original node). + * sem_ch11.adb (Analyze_Raise_Statement): Only raise + statements that come from source violate SPARK restrictions. + (Analyze_Raise_xxx_Error): Same fix. + * sem_ch3.adb (Analyze_Object_Declaration): Check OK SPARK + initialization on original node, not on possibly rewritten + expression. + * sem_ch4.adb (Analyze_If_Expression): Only if expressions that + come from source violate SPARK mode restrictions. + +2013-10-10 Robert Dewar + + * gnat_ugn.texi: Fix confusing documentation for -gnatyM. + +2013-10-10 Yannick Moy + + * errout.adb (Compilation_Errors): In formal verification mode, + always return False. + +2013-10-10 Hristian Kirtchev + + * sem_prag.adb (Collect_Hidden_States_In_Decls): Only consider source + non-constant objects. + +2013-10-10 Hristian Kirtchev + + * aspects.adb: Add an entry in table Canonical_Aspect for + Refined_State. + * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, + Aspect_Names and Aspect_Delay for Refined_State. + * einfo.adb: Add with and use clauses for Elists. + Remove Refined_State from the list of node usage. + Add Refined_State_Pragma to the list of node usage. + (Has_Null_Abstract_State): New routine. + (Refined_State): Removed. + (Refined_State_Pragma): New routine. + (Set_Refined_State): Removed. + (Set_Refined_State_Pragma): New routine. + (Write_Field8_Name): Add output for Refined_State_Pragma. + (Write_Field9_Name): Remove the output for Refined_State. + * einfo.ads: Add new synthesized attribute Has_Null_Abstract_State + along with usage in nodes. Remove attribute Refined_State along + with usage in nodes. Add new attribute Refined_State_Pragma along + with usage in nodes. + (Has_Null_Abstract_State): New routine. + (Refined_State): Removed. + (Refined_State_Pragma): New routine. + (Set_Refined_State): Removed. + (Set_Refined_State_Pragma): New routine. + * elists.adb (Clone): New routine. + * elists.ads (Clone): New routine. + * par-prag.adb: Add Refined_State to the pragmas that do not + require special processing by the parser. + * sem_ch3.adb: Add with and use clause for Sem_Prag. + (Analyze_Declarations): Add local variables Body_Id, Context and + Spec_Id. Add processing for delayed aspect/pragma Refined_State. + * sem_ch13.adb (Analyze_Aspect_Specifications): Update the + handling of aspect Abstract_State. Add processing for aspect + Refined_State. Remove the bizzare insertion policy for aspect + Abstract_State. + (Check_Aspect_At_Freeze_Point): Add an entry for Refined_State. + * sem_prag.adb: Add an entry to table Sig_Flags + for pragma Refined_State. + (Add_Item): Update the + comment on usage. The inserted items need not be unique. + (Analyze_Contract_Cases_In_Decl_Part): Rename variable Restore to + Restore_Scope and update all its occurrences. + (Analyze_Pragma): + Update the handling of pragma Abstract_State. Add processing for + pragma Refined_State. + (Analyze_Pre_Post_Condition_In_Decl_Part): + Rename variable Restore to Restore_Scope and update all its + occurrences. + (Analyze_Refined_State_In_Decl_Part): New routine. + * sem_prag.ads (Analyze_Refined_State_In_Decl_Part): New routine. + * snames.ads-tmpl: Add new predefined name for Refined_State. Add + new Pragma_Id for Refined_State. + +2013-10-10 Ed Schonberg + + * sem_ch10.adb (Install_Limited_Withed_Unit): handle properly the + case of a record declaration in a limited view, when the record + contains a self-referential component of an anonymous access type. + +2013-10-10 Thomas Quinot + + * exp_ch4.adb (Process_Transient_Object): For any context other + than a simple return statement, insert the finalization action + after the context, not as an action on the context (which will + get evaluated before it). + +2013-10-10 Hristian Kirtchev + + * einfo.adb (Write_Field19_Name): Correct the + string name of attribute Default_Aspect_Value. + +2013-10-10 Ed Schonberg + + * sem_type.adb (Interface_Present_In_Ancestor): The progenitor + in a type declaration may be an interface subtype. + +2013-10-10 Robert Dewar + + * sinfo.ads (Do_Range_Check): Add special note on handling of + range checks for Succ and Pred. + +2013-10-10 Robert Dewar + + * erroutc.adb (Output_Msg_Text): Remove VMS special handling. + +2013-10-10 Robert Dewar + + * a-chahan.ads, a-chahan.adb (Is_Line_Terminator): New function + (Is_Mark): New function. + (Is_Other_Format): New function. + (Is_Punctuation_Connector): New function. + (Is_Space): New function. + +2013-10-10 Robert Dewar + + * sem_aggr.adb (Resolve_Array_Aggregate): Redo duplicate/missing + choice circuit. Was not quite right in some cases, which showed + up in ACATS test B43201C. + * sem_attr.adb (Address_Checks): Make sure name is set right + for some messages issued. + * mlib-prj.adb: Minor code reorganization. + * gnat_ugn.texi: Remove special VMS doc for tagging of warning msgs. + * exp_ch9.adb: Minor reformatting. + +2013-10-10 Tristan Gingold + + * lib-writ.adb (Write_Unit_Information): Adjust previous patch. + +2013-10-10 Robert Dewar + + * sem_ch5.adb (Analyze_If_Statement): Warn on redundant if + statement. + * sem_util.ads, sem_util.adb (Has_No_Obvious_Side_Effects): New + function. + +2013-10-10 Ed Schonberg + + * exp_ch9.adb (Expand_N_Timed_Entry_Call): Simplify expansion + for the case of a dispatching trigger: there is no need to + duplicate the code or create a subprogram to encapsulate the + triggering statements. This allows exit statements in the + triggering statements, that refer to enclosing loops. + +2013-10-10 Robert Dewar + + * freeze.adb: Minor reformatting. + * sem_ch13.adb (Freeze_Entity_Checks): New procedure + (Analyze_Freeze_Entity): Call Freeze_Entity_Checks + (Analyze_Freeze_Generic_Entity): Call Freeze_Entity_Checks. + * sinfo.ads: Add syntax for sprint for Freeze_Generic_Entity. + * sprint.ads: Add syntax for freeze generic entity node. + +2013-10-10 Robert Dewar + + * einfo.adb, einfo.ads: Minor comment updates. + +2013-10-10 Robert Dewar + + * lib-writ.adb (Write_Unit_Information): Fatal error if linker + options are detected in a predefined generic unit. + +2013-10-10 Thomas Quinot + + * s-oscons-tmplt.c (CLOCK_REALTIME): Always define, possibly using + a dummy placeholder value. + (NEED_PTHREAD_CONDATTR_SETCLOCK): Remove, not needed anymore. + * thread.c: Adjust #if test accordingly. + +2013-10-10 Hristian Kirtchev + + * exp_ch6.adb (Consequence_Error): Generate an + implicit if statement. + (Expand_Contract_Cases): Generate an implicit if statement. + (Process_Contract_Cases): Do not expand Contract_Cases when no code + is being generated. + +2013-10-10 Robert Dewar + + * sem_attr.adb (Address_Checks): New procedure. + +2013-10-10 Ed Schonberg + + * sinfo.ads, sinfo.adb: New Node Freeze_Generic_Entity, to trigger + semantic actions at the proper point for entities that previously + had no explicit freeze point. + * freeze.adb (Freeze_Generic_Entities): generate new nodes to + indicate the point at which semantic checks can be performed on + entities declared in generic packages. + * sem_ch13.ads, sem_ch13.adb: New procedure + Analyze_Freeze_Generic_Entity. + * exp_util.adb (Insert_Actions): Treat new node like Freeze_Entity. + * sem.adb (Analyze): Call Analyze_Freeze_Generic_Entity. + * sprint.adb (Sprint_Node): display Analyze_Freeze_Generic_Entity. + * gcc-interface/trans.c: Ignore Analyze_Freeze_Generic_Entity. + * gcc-interface/Make-lang.in: Update dependencies. + +2013-10-10 Robert Dewar + + * sem_aggr.adb (Resolve_Array_Aggregate): Identify duplicated + cases. + +2013-10-10 Robert Dewar + + * sem_ch9.adb (Analyze_Task_Body): Aspects are illegal + (Analyze_Protected_Body): Aspects are illegal. + +2013-10-10 Robert Dewar + + * sem_ch6.adb, sem_ch13.adb: Minor reformatting. + * sem_case.adb (Check_Choices): Fix bad listing of missing + values from predicated subtype case (Check_Choices): List + duplicated values. + * errout.adb (Set_Msg_Text): Process warning tags in VMS mode + * erroutc.adb (Output_Msg_Text): Handle VMS warning tags + * gnat_ugn.texi: Document /WARNINGS=TAG_WARNINGS for VMS + * ug_words: Add entries for -gnatw.d and -gnatw.D + * vms_data.ads: Add [NO]TAG_WARNINGS for -gnatw.D/-gnatw.d + * lib-writ.ads: Documentation fixes + +2013-10-10 Robert Dewar + + * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads + (Is_Other_Format): New name for Is_Other. + (Is_Punctuation_Connector): New name for Is_Punctuation + +2013-10-10 Hristian Kirtchev + + * aspects.adb: Add entries in table Canonical_Aspects for aspects + Refined_Depends and Refined_Global. + * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument, + Aspect_Names, Aspect_Declay, Aspect_On_Body_Or_Stub_OK for + aspects Refined_Depends and Refined_Global. + * einfo.adb (Contract): Subprogram bodies are now valid owners + of contracts. + (Set_Contract): Subprogram bodies are now valid + owners of contracts. + (Write_Field24_Name): Output the contract + attribute for subprogram bodies. + * exp_ch6.adb (Expand_Subprogram_Contract): New routine. + * exp_ch6.ads (Expand_Subprogram_Contract): New routine. + * par-prag.adb: Pragmas Refined_Depends and Refined_Global do + not require any special processing by the parser. + * sem_ch3.adb (Adjust_D): Renamed to Adjust_Decl. + (Analyze_Declarations): Code reformatting. Analyze the contract + of a subprogram body at the end of the declarative region. + * sem_ch6.adb (Analyze_Generic_Subprogram_Body): + Subprogram bodies can now have contracts. Use + Expand_Subprogram_Contract to handle the various contract + assertions. + (Analyze_Subprogram_Body_Contract): New null routine. + (Analyze_Subprogram_Body_Helper): Subprogram bodies can now have + contracts. Use Expand_Subprogram_Contract to handle the various + contract assertions. + (Analyze_Subprogram_Contract): Add local + variable Nam. Update the call to Analyze_PPC_In_Decl_Part. Capture + the pragma name in Nam. + (Process_PPCs): Removed. + * sem_ch6.ads (Analyze_Subprogram_Body_Contract): New routine. + (Analyze_Subprogram_Contract): Update the comment on usage. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add null + implementations for aspects Refined_Depends and Refined_Global. + (Check_Aspect_At_Freeze_Point): Aspects Refined_Depends and + Refined_Global do not need to be checked at the freeze point. + * sem_prag.adb: Add entries in table Sig_Flags + for pragmas Refined_Depends and Refined_Global. + (Analyze_Contract_Cases_In_Decl_Part): Add local + variable Restore. Use Restore to pop the scope. + (Analyze_Depends_In_Decl_Part): Add local variable Restore. Use + Restore to pop the scope. + (Analyze_Global_In_Decl_List): Add local variable Restore. Use Restore + to pop the scope. + (Analyze_PPC_In_Decl_Part): Renamed to + Analyze_Pre_Post_Condition_In_Decl_Part. + (Analyze_Pragma): + Add null implementations for pragmas Refined_Depends and + Refined_Global. Refined_Pre and Refined_Post are now + handled by routine Analyze_Refined_Pre_Post_Condition + exclusively. + (Analyze_Refined_Depends_In_Decl_Part): New + null routine. + (Analyze_Refined_Global_In_Decl_Part): + New null routine. + (Analyze_Refined_Pre_Post): + Renamed to Analyze_Refined_Pre_Post_Condition. + (Analyze_Refined_Pre_Post_Condition): Analyze the boolean + expression. + (Check_Precondition_Postcondition): Update the call + to Analyze_PPC_In_Decl_Part. + * sem_prag.ads: Add entries in table + Pragma_On_Body_Or_Stub_OK for pragmas Refined_Depends + and Refined_Global. + (Analyze_PPC_In_Decl_Part): Renamed + to Analyze_Pre_Post_Condition_In_Decl_Part. Update the + comment on usage. + (Analyze_Refined_Depends_In_Decl_Part): New routine. + (Analyze_Refined_Global_In_Decl_Part): New routine. + (Analyze_Test_Case_In_Decl_Part): Update the comment on usage. + * sem_util.adb (Add_Contract_Item): Rename formal Item to Prag + and update all occurrences. Subprogram body contracts can now + contain pragmas Refined_Depends and Refined_Global. + * sem_util.ads (Add_Contract_Item): Rename formal Item to + Prag. Update the comment on usage. + * sinfo.ads: Update the comment on structure and usage of + N_Contract. + * snames.ads-tmpl: Add new predefined names for Refined_Depends + and Refined_Global. Add entries in table Pragma_Id for + Refined_Depends and Refined_Global. + +2013-10-10 Robert Dewar + + * types.ads: Minor reformatting. + +2013-10-10 Thomas Quinot + + * s-taprop-posix.adb: Add missing comment. + +2013-10-10 Robert Dewar + + * freeze.adb (Freeze_Record_Type): Move choice checking to + Analyze_Freeze_Entity (Freeze_Record_Type): Make sure all choices + are properly frozen + * sem_case.adb (Check_Choices): Remove misguided attempt to + freeze choices (this is now done in Freeze_Record_Type where + it belongs). + (Check_Choices): Remove some analyze/resolve calls + that are redundant since they are done in Analyze_Choices. + * sem_ch13.adb (Analyze_Freeze_Entity): Do the error + checking for choices in variant records here (moved here from + Freeze.Freeze_Record_Type) + +2013-10-10 Thomas Quinot + + * s-oscons-tmplt.c, s-taprop-posix.adb (CLOCK_REALTIME): Always define, + possibly using a dummy placeholder value. + (Compute_Deadline): For the case of an + Absolute_Calendar deadline, if the target uses another clock + than CLOCK_REALTIME as CLOCK_RT_Ada, compensate for possible + different epoch. + +2013-10-10 Ed Schonberg + + * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully + qualified reference to a generic child unit within itself, + in an instantiation. + +2013-10-10 Pascal Obry + + * prj-conf.adb: Minor typo fixes in comment. + +2013-10-10 Thomas Quinot + + * s-taprop-posix.adb (Compute_Deadline): New local subprogram, + factors common code between Timed_Sleep and Timed_Delay. + +2013-10-10 Robert Dewar + + * freeze.adb (Freeze_Record_Type): Don't replace others if + expander inactive. This avoids clobbering the ASIS tree in + -gnatct mode. + +2013-10-10 Robert Dewar + + * sem_res.adb (Resolve_Op_Expon): Avoid crash testing for + fixed-point case in preanalysis mode (error will be caught during + full analysis). + +2013-10-10 Robert Dewar + + * gnat_rm.texi: Refined_Pre and Refined_Post are now allowed as + assertion identifiers for pragma Assertion_Policy. + * sem_prag.adb (Is_Valid_Assertion_Kind): Add Refined_Pre/Refined_Post + * sem_ch13.adb: Minor reformatting. + +2013-10-10 Pascal Obry + + * prj-conf.adb: Code refactoring. + +2013-10-10 Hristian Kirtchev + + * einfo.adb: Remove Integrity_Level from the node usage list. + (Has_Option): Update the implementation to match + the new terminology. + (Has_Property): Renamed to Has_Option. + (Integrity_Level): Removed. + (Is_External_State): New routine. + (Is_Input_Only_State): Use Has_Option to determine whether a state + is Input_Only. (Is_Input_State): Renamed to Is_Input_Only_State. + (Is_Output_Only_State): Use Has_Option to determine whether + a state is Output_Only. + (Is_Output_State): Renamed to + Is_Output_Only_State. + (Is_Volatile_State): Use Has_Option to determine whether a state is + volatile. + (Set_Integrity_Level): Removed. + (Write_Field8): Remove the entry for Integrity_Level. + * einfo.ads: Remove Integrity_Level along with its documentation + and usage in nodes. Rename Is_Input_State to Is_Input_Only_State. + Rename Is_Output_State to Is_Output_Only_State. Update the + documentation of Is_Volatile_State. Update the node structure of + E_Abstract_Entity. + (Integrity_Level): Removed along with pragma Inline. + (Is_External_State): New routine. + (Is_Input_State): Renamed to Is_Input_Only_State. + (Is_Output_State): Renamed to Is_Output_Only_State. + (Set_Integrity_Level): Removed along with pragma Inline. + * sem_prag.adb (Analyze_Pragma): Update the checks regarding + global items and abstract state modes. Update the implementation + of pragma Abstract_State to reflect the new rules and terminology. + * snames.ads-tmpl: Remove the predefined name for Integrity + level. Add new predefined names for Input_Only, Non_Volatile, + Output_Only and Part_Of. + +2013-10-10 Ed Schonberg + + * lib-xref.adb (Generate_Reference): Do not generate a reference + within a _postcondition procedure: a proper source reference has + already been generated when pre- analyzing the original aspect + specification, and the use of a formal in a pre/postcondition + should not count as a proper use in a subprogram body. + +2013-10-10 Robert Dewar + + * sem_eval.adb (Why_Non_Static): Fix bomb for deferred constant + case + +2013-10-10 Hristian Kirtchev + + * aspects.adb: Add an entry for Aspect_Refined_Post in table + Canonical_Aspect. + * aspects.ads: Add an entry for Aspect_Refined_Post in tables + Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay, + Aspect_On_Body_Or_Stub_OK. Update the comment on the use of + table Aspect_On_Body_Or_Stub_OK. + * par-prag.adb: Add pragma Refined_Post to the list of pragmas + that do not require special processing by the parser. + * sem_attr.adb (Analyze_Attribute): Add special analysis for + attributes 'Old and 'Result when code generation is disabled and + they appear in aspect/pragma Refined_Post. + (In_Refined_Post): New routine. + * sem_ch6.adb (Analyze_Expression_Function): Move various + aspects and/or pragmas that apply to an expression function to the + corresponding spec or body. + (Collect_Body_Postconditions): New routine. + (Process_PPCs): Use routine Collect_Body_Postconditions + to gather all postcondition pragmas. + * sem_ch10.adb (Analyze_Proper_Body): Use routine + Relocate_Pragmas_To_Body to move all source pragmas that follow + a body stub to the proper body. + (Move_Stub_Pragmas_To_Body): Removed. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing + for aspect Refined_Post. + (Check_Aspect_At_Freeze_Point): Aspect + Refined_Post does not need delayed processing at the freeze point. + * sem_prag.adb: Add an entry for pragma Refined_Post in + table Sig_Flags. + (Analyze_Pragma): Add processing for pragma + Refined_Post. Update the processing of pragma Refined_Pre + to use common routine Analyze_Refined_Pre_Post. + (Analyze_Refined_Pre_Post): New routine. + (Relocate_Pragmas_To_Body): New routine. + * sem_prag.ads: Table Pragma_On_Stub_OK is now known as + Pragma_On_Body_Or_Stub_OK. Update the comment on usage of + table Pragma_On_Body_Or_Stub_OK. + (Relocate_Pragmas_To_Body): New routine. + * snames.ads-tmpl: Add new predefined name for Refined_Post. Add + new Pragma_Id for Refined_Post. + +2013-10-10 Robert Dewar + + * exp_ch3.adb (Expand_N_Variant_Part): Now null, expansion of + last choice to others is moved to Freeze_Record_Type. + * freeze.adb (Freeze_Record_Type): Expand last variant to others + if necessary (moved here from Expand_N_Variant_Part + +2013-10-10 Robert Dewar + + * lib-xref-spark_specific.adb, par-ch13.adb, sem_prag.adb, sem_prag.ads, + sem_ch12.adb, sem_attr.adb, sem_ch6.adb, sem_ch13.adb, a-sequio.adb, + s-atocou-builtin.adb: Minor reformatting. + +2013-10-10 Thomas Quinot + + * s-oscons-tmplt.c (NEED_PTHREAD_CONDATTR_SETCLOCK): This + constant needs to be output to s-oscons.h, as it is tested + by init.c. + +2013-10-10 Robert Dewar + + * exp_ch3.adb (Expand_N_Variant_Part): Don't expand choices, too early + * exp_ch5.adb (Expand_N_Case_Statement): Use new Has_SP_Choice + flag to avoid expanding choices when not necessary. + * exp_util.adb: Minor reformatting + * freeze.adb (Freeze_Record_Type): Redo expansion of variants + * sem_aggr.adb: Minor reformatting + * sem_case.ads, sem_case.adb: Major rewrite, separating Analysis and + Checking of choices. + * sem_ch3.adb (Analyze_Variant_Part): Rewrite to call new + Analyze_Choices. + * sem_ch4.adb (Analyze_Case_Expression): Call Analyze_Choices + and Check_Choices + * sem_ch5.adb (Analyze_Case_Statement): Call Analyze_Choices + and Check_Choices + * sem_util.adb: Minor reformatting + * sinfo.ads, sinfo.adb (Has_SP_Choice): New flag. + +2013-10-10 Vincent Celier + + * mlib-prj.adb (Build_Library): Do not issue link dynamic + libraries with an Rpath, if switch -R was used. + +2013-10-10 Tristan Gingold + + * s-stalib.ads (Image_Index_Table_8, Image_Index_Table_16, + Image_Index_Table_32): Remove as not used. + * s-imgint.adb (Image_Integer): Call Set_Image_Integer and + remove duplicated code. + +2013-10-10 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Provide a + more precise error message when pragma Refined_Pre applies to + an expression function that is not a completion. + +2013-10-10 Thomas Quinot + + * sem_attr.adb (Analyse_Attribute, case + Attribute_Scalar_Storage_Order): a 'Scalar_Storage_Order attribute + reference for a generic type is permitted in GNAT runtime mode. + * a-sequio.adb (Read, Write): Use the endianness of the actual + type to encode length information written to the file. + +2013-10-10 Ed Schonberg + + * par-ch13.adb (Aspect_Specifications_Present)): In earlier than + Ada2012 mode, assume that a legal aspect name following "with" + keyword is an older gnat switch and not a misplaced with_clause. + +2013-10-10 Hristian Kirtchev + + * aspects.adb: Add an entry for Aspect_Refined_Pre in + table Canonical_Aspect. + (Aspects_On_Body_OK): Renamed to + Aspects_On_Body_Or_Stub_OK. + (Aspects_On_Body_Or_Stub_OK): + Update the query in table Aspect_On_Body_OK. + * aspects.ads: Add an entry for Aspect_Refined_Pre in tables + Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay, + Aspect_On_Body_Or_Stub_OK. Table Aspect_On_Body_OK is now known as + Aspect_On_Body_Or_Stub_OK. Add a section of aspect specifications + that apply to body stubs. + (Aspects_On_Body_OK): Renamed to Aspects_On_Body_Or_Stub_OK. + (Aspects_On_Body_Or_Stub_OK): Update the comment on usage. + * par-prag.adb: Add pragma Refined_Pre to the list of pragmas + that do not require special processing by the parser. + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Delay the + analysis of aspect specifications that apply to a body stub + until the proper body is analyzed. + * sem_ch10.adb: Add with and use clause for Sem_Ch13. + (Analyze_Package_Body_Stub): Set the corresponding spec of the stub. + (Analyze_Proper_Body): Relocate all pragmas that apply + to a subprogram body stub to the declarations of the proper + body. Analyze the aspect specifications of the stub when the + proper body is not present. + (Analyze_Protected_Body_Stub): Set the corresponding spec of the stub. + (Analyze_Task_Body_Stub): Set the corresponding spec of the stub. + (Move_Stub_Pragmas_To_Body): New routine. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing + for aspect Refined_Pre. + (Check_Aspect_At_Freeze_Point): Aspect + Refined_Pre does not need delayed processing at the freeze point. + * sem_prag.adb: Remove with and use clause for Snames. Add + an entry for Pragma_Refined_Pre in table Sig_Flags. + (Analyze_Pragma): Add processing for pragma Refined_Pre. + * sem_prag.ads: Add with and use clause for Snames. Add table + Pragma_On_Stub_OK. + * sinfo.adb (Corresponding_Spec_Of_Stub): New routine. + (Set_Corresponding_Spec_Of_Stub): New routine. + * sinfo.ads: Add new attribute Corresponding_Spec_Of_Stub + along with comment on usage and occurrences in nodes. + (Corresponding_Spec_Of_Stub): New routine along with pragma + Inline. + (Set_Corresponding_Spec_Of_Stub): New routine along + with pragma Inline. + * snames.ads-tmpl: Add new predefined name for Refined_Pre. Add + new Pragma_Id for Refined_Pre. + +2013-10-10 Ed Schonberg + + * sem_ch12.adb (Analyze_Package_Instantiation, + Analyze_Subprogram_Instantiation): Improve error message when + name in instantiation does not designate a generic unit of the + right kind. + +2013-10-10 Robert Dewar + + * exp_ch3.adb (Expand_N_Variant_Part): Expand statically + predicated subtype which appears in Discrete_Choices list. + * exp_ch5.adb (Expand_N_Case_Statement): Expand statically + predicated subtype which appears in Discrete_Choices list of + case statement alternative. + * exp_util.ads, exp_util.adb (Expand_Static_Predicates_In_Choices): New + procedure. + * sem_case.adb: Minor reformatting (Analyze_Choices): Don't + expand out Discrete_Choices that are names of subtypes with + static predicates. This is now done in the analyzer so that the + -gnatct tree is properly formed for ASIS. + * sem_case.ads (Generic_Choices_Processing): Does not apply + to aggregates any more, so change doc accordingly, and remove + unneeded Get_Choices argument. + * sem_ch3.adb (Analyze_Variant_Part): Remove no + longer used Get_Choices argument in instantiation of + Generic_Choices_Processing. + * sem_ch4.adb (Analyze_Case_Expression): Remove no + longer used Get_Choices argument in instantiation of + Generic_Choices_Processing. + * sem_ch5.adb (Analyze_Case_Statement): Remove no + longer used Get_Choices argument in instantiation of + Generic_Choices_Processing. + * sinfo.ads: For N_Variant_Part, and N_Case_Statement_Alternative, + document that choices that are names of statically predicated + subtypes are expanded in the code generation tree passed to the + back end, but not in the ASIS tree generated for -gnatct. + +2013-10-10 Ed Schonberg + + * sem_ch7.adb: Revert previous change. + +2013-10-10 Gary Dismukes + + * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the case where + the Storage_Pool aspect is specified by an aspect clause and a + renaming is used to capture the evaluation of the pool name, + insert the renaming in front of the aspect's associated entity + declaration rather than in front of the corresponding attribute + definition (which hasn't been appended to the declaration + list yet). + +2013-10-10 Ed Schonberg + + * sem_ch6.adb (Is_Interface_Conformant): The controlling type + of the interface operation is obtained from the ultimate alias + of the interface primitive parameter, because that may be in + fact an implicit inherited operation whose signature involves + the type extension and not the desired interface. + +2013-10-10 Ed Schonberg + + * par-ch13.adb (Aspect_Specifications_Present): In Ada 2012, + recognize an aspect specification with a misspelled name if it + is followed by a a comma or semicolon. + +2013-10-10 Vadim Godunko + + * s-atocou.adb, s-atocou.ads, s-atocou-x86.adb, s-atocou-builtin.adb: + Fix copyright notice. + +2013-10-10 Yannick Moy + + * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package): Get + enclosing subprogram for precondition/postcondition/contract cases. + +2013-10-10 Robert Dewar + + * gnat_rm.texi: Minor fix. + +2013-10-10 Robert Dewar + + * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case + Address): Remove the Comes_From_Source test for the overlap + warning. + +2013-10-10 Robert Dewar + + * sem_util.adb: Minor code reorganization (use Nkind_In). + * sem_warn.adb: Minor code reorganization (optimization in + Check_Unset_Reference). + * exp_ch9.adb, exp_ch4.adb, sinfo.ads: Minor reformatting. + +2013-10-10 Ed Schonberg + + * sem_ch7.adb (Install_Parent_Private_Declarations): When + instantiating a child unit, do not install private declaration of + a non-generic ancestor of the generic that is also an ancestor + of the current unit: its private part will be installed when + private part of ancestor itself is analyzed. + +2013-10-10 Thomas Quinot + + * freeze.adb (Check_Component_Storage_Order): Retrieve component + aliased status from type entities directly instead of going back + to original component definition. + * sem_ch7.adb: Minor reformatting. + +2013-10-10 Robert Dewar + + * sem_ch13.adb (Analyze_Aspect_Specifications): For Address + attribute, consider it to be set in source, because of aliasing + considerations. + (Analyze_Attribute_Definition_Clause): For the + purpose of warning on overlays, take into account the aspect case. + +2013-10-10 Robert Dewar + + * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, + a-cofove.ads: Minor reformatting. + +2013-10-10 Arnaud Charlet + + * gnat_ugn.texi: Remove obsolete mention to -laddr2line. + +2013-10-10 Ed Schonberg + + * exp_ch4.adb (Expand_N_Case_Expression): Indicate that the + generated variable used as a target of the expression needs + no initialization. + +2013-10-10 Jose Ruiz + + * exp_util.adb (Corresponding_Runtime_Package): Remove the condition + related to No_Dynamic_Attachment which was wrong. Protected types + with interrupt handlers (when not using a restricted profile) + are always treated as protected types with entries, regardless + of the No_Dynamic_Attachment restriction. + * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Simplify the code + using the result of Corresponding_Runtime_Package. + (Install_Private_Data_Declarations): When having + static handlers and a non restricted profile, we use the + type Static_Interrupt_Protection always, so we removed an + extra wrong condition looking at the No_Dynamic_Attachment + restriction. Simplify the code using the result of + Corresponding_Runtime_Package. + (Make_Initialize_Protection): Simplify the code using + the result of Corresponding_Runtime_Package. + (Install_Private_Data_Declaration): The No_Dynamic_Attachment + restriction has nothing to do with static handlers. Remove the extra + erroneous condition that was creating the wrong data type. + +2013-10-10 Hristian Kirtchev + + * sem_util.adb (Is_Object_Reference): Attribute + 'Old produces an object reference. + * gnat_rm.texi: Define accessibility level of + X'Update(...) result. + +2013-10-10 Yannick Moy + + * gnat_rm.texi, a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, + a-cforse.ads, a-cofove.ads: Update comment and doc of formal containers + +2013-10-10 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post + conditions that apply to a subprogram body, preserve the placement + and order of the generated pragmas, which must appear before + other declarations in the body. + +2013-10-10 Bob Duff + + * gnat_ugn.texi: Add gnat2xml doc. + +2013-10-10 Doug Rupp + + * s-vxwork-arm.ads: Fix interface to FP_CONTEXT. + +2013-10-10 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specification): An aspect Import + on a variable need not have a convention specified, as long as + the implicit convention of the object, obtained from its type, + is Ada or Ada-related. + +2013-10-10 Robert Dewar + + * cstand.adb (Standard_Unsigned_64): New internal type. + * gnat_rm.texi: Update documentation on To_Address. + * sem_attr.adb (Analyze_Attribute, case To_Address): Fix + problem with out of range static values given as literals or + named numbers. + * stand.ads (Standard_Unsigned_64): New internal type. + * stand.adb: Minor reformatting. + +2013-10-10 Ed Schonberg + + * sem_ch4.adb (Analyze_Selected_Component, + Has_Mode_Conformant_Spec): If selected component may be an + indexing of a parameterless call to a protected function, and + expansion is disabled, this is a valid candidate interpretation. + +2013-10-10 Arnaud Charlet + + * gnat_ugn.texi: Minor editing. + +2013-10-10 Robert Dewar + + * gnatlink.adb: Minor reformatting. + +2013-10-10 Yannick Moy + + * debug.adb: Free flag d.E and change doc for flag d.K. + +2013-10-10 Ed Schonberg + + * sem_prag.adb (Check_Precondition_Postcondition): If the + pragma comes from an aspect spec, and the subprogram is a + library unit, treat as a ppc in a declarative part in ASIS mode, + so that expression in aspect is properly analyzed. In this case + there is no later point at which the aspect specification would + be examined. + +2013-10-10 Bob Duff + + * opt.ads: Minor comment fix. + +2013-10-10 Vadim Godunko + + * a-coinho-shared.ads, a-coinho-shared.adb: New file. + * s-atocou.ads: Add procedure to initialize counter. + * s-atocou.adb: Likewise. + * s-atocou-builtin.adb: Likewise. + * s-atocou-x86.adb: Likewise. + * gcc-interface/Makefile.in: Select special version of + Indefinite_Holders package on platforms where atomic built-ins + are supported. Update tools target pairs for PikeOS. + +2013-10-10 Robert Dewar + + * sem_ch3.adb: Minor reformatting. + +2013-10-10 Robert Dewar + + * sinput-c.adb (Load_File): Ensure Source_Align alignment. + * sinput-d.adb (Create_Debug_Source): Ensure Source_Align alignment. + * sinput-l.adb (Create_Instantiation_Source): Ensure Source_Align + alignment. + (Load_File): Ditto. + * sinput.ads, sinput.adb (Get_Source_File_Index): New optimized (single + line) version. + * types.ads (Source_Align): New definition. + (Source_Buffer): Document new alignment requirement. + +2013-10-10 Robert Dewar + + * sem_prag.adb (Analyze_Pragma, case Linker_Section): Allow + this for types. + +2013-10-10 Robert Dewar + + * gnat_rm.texi: Minor adjustment to doc for To_Address attribute. + +2013-10-10 Vadim Godunko + + * s-stopoo.ads (Root_Storage_Pool): Add pragma + Preelaborable_Initialization. + +2013-09-25 Tom Tromey + + * gcc-interface/Makefile.in (OUTPUT_OPTION): Define as "-o $@". + +2013-09-18 Eric Botcazou + + PR ada/58264 + * gcc-interface/trans.c (Attribute_to_gnu): Define GNAT_PREFIX local + variable and use it throughout. + : Note whether the prefix is the dereference of a pointer + to unconstrained array and, in this case, capture the result for both + Attr_First and Attr_Last. + +2013-09-18 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : New. + +2013-09-18 Eric Botcazou + + * gcc-interface/trans.c (gigi): Remove dead code. + +2013-09-18 Eric Botcazou + + * gcc-interface/trans.c (Subprogram_Body_to_gnu): Pop the stack of + return variables for subprograms using the CICO mechanism. + +2013-09-13 Dominique Dhumieres + + * gcc-interface/Makefile.in: Fix darwin Filter to match on $target_os, + not $target_cpu. + +2013-09-11 Thomas Schwinge + Olivier Hainque + + * gcc-interface/Makefile.in: Import target_cpu, target_vendor, + target_os and their host_ counterparts. Remove host_canonical and + target_cpu_default, unused. Remove local ad-hoc computations of + "host", "targ", "arch", "osys" and "manu". Replace uses of these by + uses of the now imported family, hence back to filters against + canonical values. Remove filters on e500 for target_cpu, expected to + be canonicalized into powerpc. Invert the logic filtering on 64bit + sparc for VxWorks. Simplify the filtering logic for bareboard tools + target pairs, now using straight elf/eabi filters on the target_os + part only. + +2013-09-10 Ed Schonberg + + * sem_ch3.adb (Replace_Anonymoous_Access_To_Protected_Subprogram): If + the return type is itself an access to function, recurse to emit + another anonymous type. + * gcc-interface/Make-lang.in: Update dependencies. + +2013-09-10 Robert Dewar + + * err_vars.ads (Warning_Doc_Switch): Ignored in VMS mode. + * errout.adb (Warning_Doc_Switch): Ignored in VMS mode. + * errout.ads (Warning_Doc_Switch): Ignored in VMS mode. + * inline.ads (Warnings): New component in Pending_Body_Info. + * sem_ch12.adb (Pending_Body_Info): Save and restore warnings + at instantiation point. + * warnsw.adb (Save_Warnings): New function (Restore_Warnings): + New procedure Remove special handling of Warning_Doc_Switch, + cleaner to handle the VMS case in errout, than to introduce + undocumented oddities here. + * warnsw.ads (Warning_Record) : New type. + (Save_Warnings): New function. + (Restore_Warnings): New procedure. + +2013-09-10 Robert Dewar + + * sinput.adb (Check_For_BOM): Avoid reading past end of file. + +2013-09-10 Robert Dewar + + * errout.adb (Error_Msg_Ada_2012_Feature): New procedure. + * errout.ads (Error_Msg_Ada_2012_Feature): New procedure. + * inline.ads: Save/Restore Ada_Version_Pragma. + * opt.adb: Save/Restore Ada_Version_Pragma. + * opt.ads (Ada_Version_Pragma): New variable. + * par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch4.adb, par-ch5.adb, + par-ch6.adb, par-ch8.adb, par-prag.adb: Use Error_Msg_Ada_2012_Feature. + * prj.adb: Initialize Ada_Version_Pragma. + * sem_attr.adb: Use Error_Msg_Ada_2012_Feature. + * sem_ch12.adb, sem_ch8.adb: Save/restore Ada_Version_Pragma. + * sem_prag.adb (Analyze_Pragma, cases Ada_xx): Set Ada_Version_Pragma. + * switch-c.adb: Initialize Ada_Version_Pragma. + * sem_ch12.adb: Minor reformatting. + +2013-09-10 Ed Schonberg + + * sem_ch3.adb (Process_Subtype): Discard constraint on access + to class-wide type. Such constraints are not supported and are + considered a language pathology. + +2013-09-10 Robert Dewar + + * gnatbind.adb: Correct starting date in --version string. + * gnatdll.adb: Use Check_Version_And_Help_G to implement --help + and --version. + * gnatkr.adb: Use Check_Version_And_Help_G to implement --help + and --version. + * gnatlink.adb: Correct starting date in --version string. + * gnatls.adb: Correct starting date in --version string. + * make.adb: Correct starting date in --version string. + +2013-09-10 Robert Dewar + + * switch-c.adb: Minor reformatting. + * atree.ads (Original_Nodes): Add documentation on ASIS usage. + * sinfo.ads: Add section on ASIS mode (documentation only). + +2013-09-10 Robert Dewar + + * sem_prag.adb (Analyze_Pragma, case Warnings): Don't allow + REASON parameter in compiler units (bootstrap issues). + +2013-09-10 Robert Dewar + + * gnat1drv.adb (Adjust_Global_Switches): Output warning if + -gnateE specified for a target that does not support it. + +2013-09-10 Ed Schonberg + + * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Handle properly + a subprogram body without previous spec. + +2013-09-10 Gary Dismukes + + * sem_ch4.adb: Minor typo fixes. + +2013-09-10 Hristian Kirtchev + + * aspects.adb (Aspects_On_Body_OK): New routine. + * aspects.ads: Modify type Aspect_Expression to include + the Optional_XXX variants. Update the contents of + table Aspect_Argument. Add table Aspect_On_Body_OK. + (Aspects_On_Body_OK): New routine. + * par-ch13.adb (Get_Aspect_Specifications): Account for optional + names and expressions when parsing an aspect. + * sem_ch6.adb: Add with and use clause for Aspects. + (Analyze_Subprogram_Body_Helper): Do not emit an error when + analyzing a body with aspects that can be applied simultaneously + to both spec and body. + * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the + corresponding pragma of an aspect that applies to a subprogram + body in the declarative part. + (Make_Aitem_Pragma): Do not generate a pragma with an empty argument + list. + +2013-09-10 Robert Dewar + + * switch-c.adb: Diagnose -gnatc given after -gnatRm. + * gnat_ugn.texi: Add documentation for -gnatRm. + * usage.adb: Minor reorganization (put style entries in proper + order) Document -gnatRm switch. + * sinfo.ads: Minor comment fix. + +2013-09-10 Sergey Rybin + + * tree_io.ads: Update ASIS_Version_Number. + +2013-09-10 Ed Schonberg + + * sem_ch3.adb (Access_Subprogram_Declaration): Check whether the + designated type can appear in a parameterless call. + * sem_ch4.adb (Analyze_Call): Do not insert an explicit dereference + in the case of an indirect call through an access function that + returns an array type. + (Analyze_One_Call): Handle properly legal parameterless calls + whose result is indexed, in constructs of the for F.all (I) + * sem_ch6.ads (May_Need_Actuals): Make public, for use on access + to subprogram types. + * sem_res.adb (Resolve_Call): If the call is indirect, there is + no entity to set on the name in the call. + +2013-09-10 Hristian Kirtchev + + * aspects.adb: Add entries in the Has_Aspect_Specifications_Flag + table for package body and body stubs. + (Move_Or_Merge_Aspects): New routine. + (Remove_Aspects): New routine. + * aspects.ads (Move_Aspects): Update comment on usage. + (Move_Or_Merge_Aspects): New routine. + (Remove_Aspects): New routine. + * par-ch3.adb: Update the grammar of private_type_declaration, + private_extension_declaration, object_renaming_declaration, + and exception_renaming_declaration. + (P_Subprogram): Parse the + aspect specifications that apply to a body stub. + * par-ch6.adb: Update the grammar of subprogram_body_stub and + generic_instantiation. + * par-ch7.adb: Update the grammar of package_declaration, + package_specification, package_body, package_renaming_declaration, + package_body_stub. + (P_Package): Parse the aspect specifications + that apply to a body, a body stub and package renaming. + * par-ch9.adb: Update the grammar of entry_declaration, + protected_body, protected_body_stub, task_body, + and task_body_stub. + (P_Protected): Add local variable + Aspect_Sloc. Add local constant Dummy_Node. Parse the aspect + specifications that apply to a protected body and a protected + body stub. + (P_Task): Add local variable Aspect_Sloc. Add local + constant Dummy_Node. Parse the aspect specifications that apply + to a task body and a task body stub. + * par-ch12.adb: Update the grammar of + generic_renaming_declaration. + (P_Generic): Parse the aspect + specifications that apply to a generic renaming. + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not emit + an error when analyzing aspects that apply to a body stub. Such + aspects are relocated to the proper body. + * sem_ch7.adb (Analyze_Package_Body_Helper): Analyze the aspect + specifications that apply to a body. + * sem_ch9.adb (Analyze_Protected_Body): Warn about user-defined + aspects not being supported on protected bodies. Remove the + aspect specifications. (Analyze_Single_Protected_Declaration): + Analyze the aspects that apply to a single protected declaration. + (Analyze_Task_Body): Warn about user-defined aspects not being + supported on task bodies. Remove the aspect specifications. + * sem_ch10.adb: Add with and use clause for Aspects. + (Analyze_Package_Body_Stub): Propagate the aspect specifications + from the stub to the proper body. + * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the + corresponding pragma of an aspect that applies to a body in the + declarations of the body. + * sinfo.ads: Update the gramma of expression_function, + private_type_declaration, private_extension_declaration, + object_renaming_declaration, exception_renaming_declaration, + package_renaming_declaration, subprogram_renaming_declaration, + generic_renaming_declaration, entry_declaration, + subprogram_body_stub, package_body_stub, task_body_stub, + generic_subprogram_declaration. + +2013-09-10 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Add processing + for aspect/pragma SPARK_Mode when it applies to a [library-level] + subprogram or package [body]. + +2013-09-10 Robert Dewar + + * gnat_ugn.texi: Document that -gnatc and -gnatR cannot be + given together. + * switch-c.adb (Scan_Front_End_Switches): Give error if both + -gnatR and -gnatc given. + +2013-09-10 Robert Dewar + + * g-table.ads, g-table.adb (For_Each): New generic procedure + (Sort_Table): New generic procedure. + +2013-09-10 Thomas Quinot + + * adaint.c (__gnat_is_executable_file_attr): Should be true + for an executable regular file only only (not for a directory + that has the executable permission). + +2013-09-10 Ed Schonberg + + * sem_res.adb: Further work on operator calls in ASIS. + +2013-09-10 Yannick Moy + + * sinfo.ads, sem_prag.ads, sem_ch13.adb: Minor correction and comment + update. + +2013-09-10 Thomas Quinot + + * aspects.ads, sem_ch13.adb: Minor reformatting. + * adaint.c (__gnat_set_close_on_exec): Add comment documenting + that this routine is shared between OS_Lib and Sockets. + +2013-09-10 Robert Dewar + + * exp_prag.adb (Expand_Pragma_Check): Ignore pragma if Is_Ignored set. + * sem_ch13.adb (Make_Aitem_Pragma): Set Is_Checked if needed. + * sem_prag.adb (Check_Kind): Moved from spec (Analyze_Pragma): + Make sure Is_Ignored/Is_Checked are set right (Analyze_Pragma, + case Check): Ditto (Check_Applicable_Policy): Handle + Statement_Assertion case Throughout, set and check the Is_Checked + flag as appropriate. + * sem_prag.ads (Check_Kind): Moved to body. + * sinfo.ads, sinfo.adb (Is_Checked): New flag. + +2013-09-10 Robert Dewar + + * aspects.ads (Delay_Type): New type (Aspect_Delay): New table. + * einfo.adb (Has_Delayed_Rep_Aspects): New flag + (May_Inherit_Delayed_Rep_Aspects): New flag (Rep_Clause): Removed + (use Get_Attribute_Representation_Clause). + * einfo.ads (Has_Delayed_Rep_Aspects): New flag + (May_Inherit_Delayed_Rep_Aspects): New flag + * freeze.adb: Minor reformatting + * sem_ch13.adb (Analyze_Aspect_Speficifications): Redo + handling of delayed evaluation, including optimizing some cases + and avoiding delays. + (Analyze_Aspects_At_Freeze_Point): Now + handled inheriting delayed rep aspects for type derivation case. + (Inherit_Delayed_Rep_Aspects): New procedure + * sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Now handled + inheriting delayed rep aspects for type derivation case. + * sem_ch3.adb (Build_Derived_Type): Set + May_Inherit_Derived_Rep_Aspects if parent type flag + Has_Delayed_Rep_Aspects is set + +2013-09-10 Robert Dewar + + * errout.adb (Finalize): Don't delete real errors with specific + warning control. + +2013-09-10 Ed Schonberg + + * exp_ch9.adb (Expand_N_Timed_Entry_Call, + Expand_N_Conditional_Entry_Call, Expand_N_Asynchronous_Select): + Handle properly a trigger that is a call to a primitive operation + of a type that implements a limited interface, if the type itself + is not limited. + +2013-09-10 Robert Dewar + + * sem_ch3.adb, sinfo.ads, exp_ch9.adb, sem_prag.adb, sem_ch12.adb, + exp_ch4.adb, sprint.adb: Minor reformatting. + +2013-09-10 Yannick Moy + + * sinfo.ads: Document splitting of pre/post in N_Contract description. + +2013-09-10 Ed Schonberg + + * exp_ch4.adb (Expand_N_Op_Multiply): If the operation is of the + form X * 2 ** N and it has been marked Is_Power_Of_2_For_Shift, + add a mod operation if the result type is a binary modular type. + +2013-09-10 Hristian Kirtchev + + * sem_prag.adb (Check_Mode_Restriction_In_Enclosing_Context): Add local + variable Context. Remove local variable Subp_Id. Start the + context traversal from the current subprogram rather than the + current scope. Update the scope traversal and error reporting. + +2013-09-10 Ed Schonberg + + * exp_ch9.adb (Expand_N_Timed_Entry_Call): New procedure + Rewrite_Triggering_Statements, to encapsulate the statements that + follow the trigger of the entry call. This procedure is needed + when the trigger is a dispatching call, because the expansion + requires several copies of those statements. The procedure is + more efficient, and preserves non-local references when the + construct is within an instance. + +2013-09-10 Ed Schonberg + + * sem_ch12.adb (Analyze_Package_Instantiation): If the + instantiation is a compilation unit, analyze aspects before + analyzing the package declaration for the instance. + * sem_ch13.adb (Analyze_Aspect_Specifications): If the + corresponding node is a package instantiation, insert generated + pragmas at the head of visible declarations. + * sem_prag.adb (Analyze_Pragma, case Preelaborate): In an instance + do not ignore the pragma if it comes from an aspect specification + in the instance, and not from the generic unit. + * sprint.adb (Sprint_Node_Actual): For a package declaration that + is an instantiation, print aspects after declaration. + +2013-09-10 Robert Dewar + + * einfo.adb, sem_prag.adb, rtsfind.ads: Minor reformatting. + +2013-09-10 Hristian Kirtchev + + * sem_prag.adb (Get_SPARK_Mode_Id): Handle the + case where the pragma may appear without an argument. + (Analyze_Global_List): Add expanded_name to the list of constructs + that denote a single item. + (Collect_Global_List): Add expanded_name to the list of constructs + that denote a single item. + +2013-09-10 Hristian Kirtchev + + * exp_ch4.adb (Apply_Accessibility_Check): Add local constant + Pool_Id and local variables Fin_Call and Free_Stmt. Finalize + and deallocate a heap-allocated class-wide object after it + has been determined that it violates the accessibility rules. + * rtsfind.ads: Add new RTU_Id for System.Memory. Add new RE_Id + and entry in RE_Unit_Table for RE_Free. + +2013-09-01 Eric Botcazou + Iain Sandoe + + PR ada/58239 + * gcc-interface/Makefile.in (GCC_LINK_FLAGS): Add -static-libstdc++. + (GCC_LINK): Use CXX instead of CC. + * gcc-interface/Make-lang.in (CXX_LFLAGS): New. + (ADA_TOOLS_FLAGS_TO_PASS): Pass CXX, and CXX_LFLAGS for native. + +2013-08-13 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias + sets of derived types in ASIS mode. + +2013-08-13 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true. + (is_cplusplus_method): Likewise, and False with false. + (components_need_strict_alignment): Likewise. + * gcc-interface/misc.c (gnat_init_gcc_fp): Likewise. + * gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise. + (Handled_Sequence_Of_Statements_to_gnu): Likewise. + (add_cleanup): Likewise. + (Sloc_to_locus1): Likewise. + (Sloc_to_locus): Likewise. + (set_expr_location_from_node): Likewise. + * gcc-interface/utils.c (potential_alignment_gap): Likewise. + +2013-08-13 Thomas Quinot + + * gcc-interface/trans.c (set_end_locus_from_node): Clear column info + for the end_locus of a block if it does not come from an End_Label. + +2013-08-13 Thomas Quinot + + * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If + there is no End_Label, attach cleanup actions to the sloc of the HSS + node instead. + (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc + of the handler itself. + (add_cleanup): Clear column information in sloc of cleanup actions. + (Sloc_to_locus1): New static function. + (Sloc_to_locus): Call it. + (set_expr_location_from_node1): New static function. + (set_expr_location_from_node): Call it. + +2013-08-13 Eric Botcazou + + * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional + expressions for misaligned actual parameters. + +2013-08-13 Eric Botcazou + + * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for + values outside of the range of the type. + +2013-08-13 Eric Botcazou + + * gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion + to the original type before converting to the result type. + (build_atomic_store): First do a conversion to the original type before + view-converting to the effective type, but deal with a padded type + specially. + +2013-08-08 Eric Botcazou + + * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the + compiler build and use standard library variables. + (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust. + (gnatmake-re): Do not depend on targext.o. + (gnatlink-re): Do not depend on link.o and targext.o. + (../../gnatmake$(exeext): Likewise. + (../../gnatlink$(exeext): Likewise. + +2013-07-21 Ondřej Bílka + + * gcc-interface/gigi.h: Fix typos. + * gcc-interface/trans.c: Likewise. + * gcc-interface/utils2.c: Likewise. + * gnat_rm.texi: Likewise. + * gnat_ugn.texi: Likewise. + * raise-gcc.c: Likewise. + * sigtramp-ppcvxw.c: Likewise. + * sysdep.c: Likewise. + * terminals.c: Likewise. + +2013-07-20 Eric Botcazou + + PR ada/57934 + * gcc-interface/ada.h (CAT): Fix typo. + +2013-07-08 Hristian Kirtchev + + * einfo.adb (Get_Pragma): Handle the retrieval of delayed + pragmas stored in N_Contract nodes. + * einfo.ads (Get_Pragma): Update the comment on usage. + * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy + of the pragma when it applies to a body that acts as a spec. The + copy is preanalyzed and chained on the contract of the body. + +2013-07-08 Robert Dewar + + * rtsfind.adb: Minor comment fix. + +2013-07-08 Hristian Kirtchev + + * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement + of a Ghost function call when the enclosing context is being + preanalyzed. + +2013-07-08 Ed Schonberg + + * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the + expression in a return statement is a numeric literal, qualify + it with the return type for proper resolution. + +2013-07-08 Robert Dewar + + * sem.ads: Minor comment updates. + * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb: + Minor reformatting. + +2013-07-08 Robert Dewar + + * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry + for Restriction_Set. + * gnat_rm.texi: Add missing menu entry for Attribute Ref Add + documentation for attribute Restriction_Set. + * lib-writ.adb (Write_With_Lines): Generate special W lines + for Restriction_Set. + * lib-writ.ads: Document special use of W lines for + Restriction_Set. + * lib.ads (Restriction_Set_Dependences): New table. + * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to + list (Scan_Name_Extension_Apostrophe): Remove kludge test for + Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence + for Restricton_Set. + * restrict.adb (Check_SPARK_Restriction): Put in Alfa order + (OK_No_Dependence_Unit_Name): New function. + * restrict.ads (OK_No_Dependence_Unit_Name): New function. + * rtsfind.adb: Minor reformatting Minor code reorganization. + * sem_attr.adb (Analyze_Attribute): Add processing for + Restriction_Set. + * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): + Remove Check_Unit_Name and use new function + OK_No_Dependence_Unit_Name instead. + * sinfo.ads: Minor comment updates. + * snames.ads-tmpl: Add entry for Restriction_Set attribute. + +2013-07-08 Hristian Kirtchev + + * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant + Pool_Id and local variable Free_Stmt. Do not deallocate the faulty + object as "free" is not available on all targets/profiles. + +2013-07-08 Robert Dewar + + * sem_ch13.adb (Analyze_Aspect_Specifications): Handle + Storage_Size aspect for task type in case discriminant is + referenced. + (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size + attribute definition clause as obsolescent if from aspect. + +2013-07-08 Robert Dewar + + * gnat_rm.texi: Add documentation for Img returning a function. + * par-prag.adb: Minor reformatting. + * restrict.adb: Minor reformatting and code reorganization. + +2013-07-08 Ed Schonberg + + * sem_res.adb: add guard to ASIS transform. + +2013-07-08 Ed Schonberg + + * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger + of the asynchronous select is a dispatching call, transform the + abortable part into a procedure, to avoid duplication of local + loop variables that may appear within. + +2013-07-08 Vincent Celier + + * projects.texi: Update the documentation of suffixes in package + Naming. + +2013-07-08 Ed Schonberg + + * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm + types are type conformant if the designated type of one is + protected and the other is not. Convention only matters when + checking subtype conformance. + +2013-07-08 Ed Schonberg + + * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate + back the fully resolved operands to the original function call + so that all semantic information remains available to ASIS. + +2013-07-08 Ed Schonberg + + * sem_ch4.adb: minor reformatting (remove obsolete comment). + * sem_ch9.adb: improve error message on illegal trigger. + +2013-07-08 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2013-07-08 Robert Dewar + + * gnatcmd.adb: Minor reformatting. + +2013-07-08 Robert Dewar + + * targparm.adb (Get_Target_Parameters): Recognize pragma + Partition_Elaboration_Policy. + +2013-07-08 Robert Dewar + + * gnat_ugn.texi: Minor update to mention partition elaboration policy. + +2013-07-08 Ed Schonberg + + * sem_ch4.adb (Comple_Object_Operation): Revert previous change. + (Analyze_Indexed_Component_Form): In ASIS mode, if node has been + transformed but not rewritten as a function call (as is the case + in a generic), analyze it as such. + +2013-07-08 Thomas Quinot + + * gnat_rm.texi: Minor rewording: add missing word "operators" + in documentation for restriction No_Direct_Boolean_Operator. + +2013-07-08 Robert Dewar + + * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg, + Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere + now). + * errout.ads: Insertions ! and !! no longer have to be at the + end of the message, they can be anywhere in the message. + * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg): + Replaces Test_Style_Warning_Serious_Msg + * erroutc.ads (Has_Double_Exclam): New flag New comments for + existing flags (Test_Style_Warning_Serious_Unconditional_Msg): + Replaces Test_Style_Warning_Serious_Msg + * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg): + Replaces Test_Style_Warning_Serious_Msg + +2013-07-08 Robert Dewar + + * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): + Recognize SPARK_05 as synonym for SPARK in restrictions pragma. + * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only + referenced there. + * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, + sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK. + * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry. + +2013-07-08 Vincent Celier + + * gnatcmd.adb (Check_Files): Use a response file for gnatls + when possible. + +2013-07-08 Gary Dismukes + + * freeze.adb: Minor typo fixes. + +2013-07-08 Robert Dewar + + * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document + obsolete recognition of SPARK Document all other obsolete synonyms + for old restrictions. + * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces + SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym + for SPARK_05. + * restrict.ads: Restriction SPARK_05 replaces SPARK. + * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK + as synonym for SPARK_05. + * sem_prag.adb: Minor reformatting. + * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05. + +2013-07-08 Robert Dewar + + * sem_dim.adb: Minor error message change. + * freeze.adb (Freeze_Entity, array type case): Extend handling + of Implicit_Packing to handle multi-dimensional array case. + * gnat_rm.texi: Update doc on Implicit_Packing. + +2013-07-08 Robert Dewar + + * exp_ch4.adb: Minor reformatting. + +2013-07-08 Ed Schonberg + + * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if + the parent node is a selected component and the analysis as a + call is successful, set the type of the selector in the parent + node for subsequent checks, because the rewriting of the node + does not take place during pre-analysis. + +2013-07-08 Robert Dewar + + * sem_ch8.adb, exp_ch3.adb: Minor reformatting. + +2013-07-08 Hristian Kirtchev + + * exp_ch4.adb (Expand_N_Op_Eq): When comparing two + Bounded_Strings, use the predefined equality function of the + root Super_String type. + +2013-07-08 Hristian Kirtchev + + * exp_ch4.adb (Create_Alternative): Removed. + (Expand_N_If_Expression): Remove constant + In_Case_Or_If_Expression. Add local variable + Ptr_Typ. Inspect the "then" and "else" action lists + for transient controlled objects and generate code to + finalize them. (Is_Controlled_Function_Call): Removed. + (Process_Action): Update the comment on usage. Update the call + to Process_Transient_Object. There is no need to continue the + traversal of the object itself. + (Process_Actions): New routine. + (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add + a new formal and update the related comment on usage. + * exp_util.adb (Within_Case_Or_If_Expression): Start the search + from the parent of the node. + +2013-07-08 Robert Dewar + + * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads, + a-cbsyqu.ads: Minor reformatting (proper formatting of overriding). + +2013-07-08 Ed Schonberg + + * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute + that can be renamed as a function. + +2013-07-08 Thomas Quinot + + * g-socket.ads: Document target dependency: FIONBIO may or may not + be inherited from listening socket by accepted socket. + +2013-07-08 Hristian Kirtchev + + * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object + on targets that can't deallocate. + +2013-07-08 Hristian Kirtchev + + * exp_ch3.adb (Freeze_Type): Generate a + subpools-related accessibility check only on profiles that + include the corresponding library unit. + +2013-07-08 Gary Dismukes + + * sem_ch8.adb: Minor typo fixes. + +2013-07-08 Javier Miranda + + * sem_ch8.adb (Save_Scope_Stack): Adding documentation. + (Restore_Scope_Stack): Remove the elements of the list when the + visibility of each entity is restored. + +2013-07-08 Robert Dewar + + * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting. + +2013-07-08 Robert Dewar + + * sem_ch8.adb, sem_ch8.ads: Minor reformatting. + +2013-07-08 Gary Dismukes + + * gnat_rm.texi: Minor reformatting and rewording for consistency. + +2013-07-08 Bob Duff + + * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete + view coming from a limited-with'ed package, use the nonlimited + view in case it has tasks. + +2013-07-08 Javier Miranda + + * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list + of entities which have been temporarily removed from immediate + visibility. + (Restore_Scope_Stack): Modified to receive an + additional parameter with the list of entities whose immediate + visibility must be restored. + * sem.adb (Do_Analyze): Use new version of + Save_Scope_Stack/Restore_Scope_Stack + * sem_ch12.adb (Inline_Instance_Body): Use new version of + Save_Scope_Stack and Restore_Scope_Stack + +2013-07-08 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Remove + variable Unit_Prag. Remove the check on duplicate mode for the + configuration form of the pragma. + (Redefinition_Error): Removed. + +2013-07-08 Robert Dewar + + * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting + and editing. + +2013-07-08 Ed Schonberg + + * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode, + pre-analyze only the original expression attached to the source + aspect, not the relocated expression of the pragma, to prevent + malformed trees in ASIS mode. + * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous + patch: the expression in the aspect for pre/post must be relocated + to the pragma for proper analysis. + +2013-07-05 Hristian Kirtchev + + * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect. + * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id, + Aspect_Argument, Aspect_Names. + * atree.adb (Node32): New routine. + (Set_Node32): New routine. + * atree.ads (Node32): New routine. + (Set_Node32): New routine. + * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas. + (Set_SPARK_Mode_Pragmas): New routine. + (SPARK_Mode_Pragmas): New routine. + (Write_Field32_Name): Add and entry for SPARK_Modes. + * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage + in various entities. + (Set_SPARK_Mode_Pragmas): New routine and + pragma Inline. + (SPARK_Mode_Pragmas): New routine and pragma Inline. + * gnat_rm.texi: Add sections explaining the syntax and semantics + of aspect/pragma SPARK_Mode. + * gnat_ugn.texi: Add pragma SPARK_Mode to the list of + configuration pragmas. + * lib.adb (Set_SPARK_Mode_Pragma): New routine. + (SPARK_Mode_Pragma): New routine. + * lib.ads: Alphabetize the comments on fields of record + Unit_Record. Add new field SPARK_Mode_Pragma along with + comment on its usage. Update the layout of record Unit_Record. + (Set_SPARK_Mode_Pragma): New routine and pragma Inline. + (SPARK_Mode_Pragma): New routine and pragma Inline. + * lib-load.adb (Create_Dummy_Package_Unit): Initialize + field SPARK_Mode_Pragma. + (Load_Main_Source): Initialize field SPARK_Mode_Pragma. + (Load_Unit): Initialize field SPARK_Mode_Pragma. + * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field + SPARK_Mode_Pragma. + (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma. + * opt.ads: Alphabetize verification flags. Store the + compilation-wide SPARK mode in variable Global_SPARK_Mode. + * par-prag.adb: Pragma SPARK_Mode does not need special processing + by the parser. + * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect + SPARK_Mode into a pragma. + (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need + delayed processing. + * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags. + (Analyze_Pragma): Add processing for pragma SPARK_Mode. + (Get_SPARK_Mode_Id): New routine. + (Is_Elaboration_SPARK_Mode): New routine. + (Is_Private_SPARK_Mode): New routine. + * sem_prag.ads (Get_SPARK_Mode_Id): New routine. + (Is_Elaboration_SPARK_Mode): New routine. + (Is_Private_SPARK_Mode): New routine. + * sinfo.ads: Update the comment on the usage of field Next_Pragma. + * snames.ads-tmpl: Add new predefined name for SPARK_Mode and + Auto. Add new pragma Id for SPARK_Mode. + * types.ads: Add new type SPARK_Mode_Id. + +2013-07-05 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): For + pre/postconditions copy the expression to the generated pragma, + to avoid sharing between the original aspect and the pragma node, + because in ASIS_Mode both will be independently analyzed. + +2013-07-05 Ed Schonberg + + * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of + formals for each discriminant of an unchecked union. + (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested + variants are supported. New helper function Corresponding_Formal. + * exp_ch4.adb (Build_Equality_Call): For unchecked unions, + loop through discriminants to create list of inferred values, + and modify call to equality routine accordingly. + +2013-07-05 Claire Dross + + * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads, + a-cforse.ads, a-cofove.ads: Add preconditions when needed + + container types are not tagged any more. + +2013-07-05 Thomas Quinot + + * freeze.adb (Freeze_Entity): For an object with captured + initialization statements, do not remove Init_Stmts from the + enclosing list, as Freeze_All might rely on it to know where to + stop freezing. + +2013-07-05 Robert Dewar + + * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor + reformatting. + +2013-07-05 Hristian Kirtchev + + * exp_ch4.adb (Expand_Composite_Equality): Use the full view + when the base type is private. + +2013-07-05 Claire Dross + + * a-cfdlli.ads: Add preconditions when needed. + +2013-07-05 Robert Dewar + + * sem_ch8.adb: Minor reformatting. + +2013-07-05 Ed Schonberg + + * sem_ch3.adb (Access_Subprogram_Declaration): Use + Generate_Reference_To_Formals. + * lib-xref.adb (Generate_Reference_To_Formals): In the case of + access to subprograms, the formals are found in the designated + subprogram type. + +2013-07-05 Robert Dewar + + * gnat_ugn.texi: Document that comments can be lined up with + previous non-blank line. + * styleg.adb (Check_Comment): Allow indentation to match previous + non-blank line (Same_Column_As_Previous_Line): New function + +2013-07-05 Robert Dewar + + * gnat_rm.texi: Update doc on missing pragmas. + * sem_ch12.adb: Minor comment additions. + +2013-07-05 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Ensure that + Contract_Cases, Depends and Global are analyzed when they apply + to a subprogram compilation unit. The pragmas are all added + unconditionally to the construct's contract. This ensures that + proof tools can locate the pragmas. + +2013-07-05 Ed Schonberg + + * sem_ch8.adb (Freeze_Actual_Profile): An instance within + a generic unit does not freeze a generic private type of the + enclosing generic. This rule must also apply to a type derived + from a generic private type. + +2013-07-05 Arnaud Charlet + + * gnat_rm.texi: Add missing documentation for pragmas. + +2013-07-05 Yannick Moy + + * sem_ch12.adb: Minor comment. + +2013-07-05 Robert Dewar + + * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used + together. + * switch-c.adb: Do not allow -gnatD and -gnatR to both be + specified. + +2013-07-05 Robert Dewar + + * gnat_rm.texi: Add missing documentation for pragmas. + * sem_ch8.adb: Minor reformatting. + * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used + together. + +2013-07-05 Yannick Moy + + * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force + instance of subprogram body in SPARK mode, by testing Expander_Active + (set in SPARK mode) instead of Full_Expander_Active (not set in + SPARK mode). + * sem_ch8.adb: Minor reformatting. + +2013-07-05 Robert Dewar + + * freeze.adb (Freeze_Entity): Remove test of obsolete flag + Propagate_Exceptions, and associated useless code that did + nothing. + * gnat_rm.texi: Add documentation for obsolete pragma + Propagate_Exceptions. + * opt.ads (Propagate_Exceptions): Obsolete flag removed. + * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions): + Remove useless and obsolete setting of Propagate_Exceptions flag. + +2013-07-05 Robert Dewar + + * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes. + +2013-07-05 Robert Dewar + + * gnat_rm.texi: Add missing doc for various pragmas. + +2013-07-05 Robert Dewar + + * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting. + * gnat_rm.texi: Document pragma Profile_Warnings. + * restrict.ads, sem_prag.adb: Minor reformatting. + +2013-07-05 Ed Schonberg + + * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly + a formal subprogram that was defaulted in the formal package. + +2013-07-05 Thomas Quinot + + * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore + N_Implicit_Label_Declaration nodes. + +2013-07-05 Robert Dewar + + * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting. + +2013-07-05 Ed Schonberg + + * sem_ch12.adb (Copy_Generic_Node): Check that name in function + call is a valid entity name before preserving entity in generic + copy. + +2013-07-05 Thomas Quinot + + * par-ch5.adb: Minor reformatting. + +2013-07-05 Thomas Quinot + + * sinfo.ads: Minor clarification to documentation for + N_Implicit_Label_Declaration. + +2013-07-05 Hristian Kirtchev + + * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the + values of all remaining constants. + (Rcheck_35): New routine along with pragmas Export and No_Return. + (Rcheck_PE_Aliased_Parameters): New routine along with pragmas + Export and No_Return. + (Rcheck_PE_All_Guards_Closed, + Rcheck_PE_Bad_Predicated_Generic_Type, + Rcheck_PE_Current_Task_In_Entry_Body, + Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise, + Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value, + Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object, + Rcheck_PE_Potentially_Blocking_Operation + Rcheck_PE_Stubbed_Subprogram_Called, + Rcheck_PE_Unchecked_Union_Restriction, + Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool, + Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion, + Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception): + Update the use of Rmsg_XX. + (Rcheck_17, Rcheck_18, Rcheck_19, + Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25, + Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31, + Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding + renamed subprograms. + * checks.adb: Add with and use clause for Stringt. + (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in + all subprograms of Apply_Parameter_Aliasing_Checks. Remove local + variable Cond. Initialize Check at the start of the routine. Use + routine Overlap_Check to construct a simple or a detailed run-time + check. Update the creation of the simple check. + (Overlap_Check): New routine. + * exp_ch11.adb (Get_RT_Exception_Name): Add a value for + PE_Aliased_Parameters. + * types.ads: Add new enumeration literal + PE_Aliased_Parameters. Update the corresponding integer values + of all RT_Exception_Code literals. + * types.h: Add new constant PE_Aliased_Parameters. Correct the + values of all remaining constants. + +2013-07-05 Yannick Moy + + * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in + documentation. + +2013-07-05 Ed Schonberg + + * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide + condition, when replacing the name of a formal by a conversion + to the class-wide type, exempt selector names that appear in + parameter associations. + +2013-06-13 Eric Botcazou + + * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete. + * gcc-interface/gigi.h (annotate_object): Adjust prototype. + (convert_vms_descriptor): Likewise. + * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer + types by double dereference. + (annotate_object): Remove BY_DOUBLE_REF parameter and adjust. + (gnat_to_gnu_entity): Adjust calls to annotate_object. + * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double + dereference. + (Call_to_gnu): Likewise. + (build_function_stub): Adjust call to convert_vms_descriptor. + (Subprogram_Body_to_gnu): Adjust call to annotate_object. + * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF + parameter and adjust. + +2013-05-30 Eric Botcazou + + * gcc-interface/Makefile.in (arm% androideabi): Robustify. + +2013-05-26 Eric Botcazou + + * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not + check that access types have a set size. + +2013-05-26 Eric Botcazou + + * gcc-interface/decl.c (vinfo_t): New type and associated vector. + (components_to_record): Change return type to bool. + Lay out the variants in two passes. Do not force a specific layout for + the variant part if the variants do not have a representation clause. + Take the alignment of the variant part into account when laying out + variants without rep clause in a record type with a partial rep clause. + (create_rep_part): Do not set the position of the field. + +2013-05-26 Eric Botcazou + + * gcc-interface/trans.c (Attribute_to_gnu) : Add kludge + to avoid generating an overflow for -1. + +2013-05-26 Eric Botcazou + + * gcc-interface/gigi.h (create_type_decl): Adjust prototype. + (create_label_decl): Complete prototype. + (process_attributes): Declare. + * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to + create_type_decl throughout. + : Do the layout of the type manually and call + process_attributes on it. Reindent. + : Minor tweak. + : Reindent. + : Call process_attributes on the array type built + for a packed array type. + : Call process_attributes on the type. + : Likewise. + : Likewise. + : Likewise. + Likewise for all types at the end of the processing. + * gcc-interface/utils.c (make_aligning_type): Adjust call to + create_type_decl. + (maybe_pad_type): Likewise. + (create_index_type): Likewise. + (create_type_decl): Remove attr_list parameter and associated code. + (create_var_decl_1): Call process_attributes on the variable. + (process_attributes): Take a pointer to the object and add in_place + and gnat_node parameters and adjust throughout. + : Pass ATTR_FLAG_TYPE_IN_PLACE only on demand + and set the input location. + Zap the attribute list at the end. + (create_subprog_decl): Call process_attributes on the subprogram. + (build_unc_object_type): Adjust call to create_type_decl. + (handle_vector_type_attribute): Remove dead code. + +2013-05-26 Eric Botcazou + + * gcc-interface/gigi.h (make_aligning_type): Adjust prototype. + * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter + for the position of the associated TYPE_DECL. + * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above. + * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise. + +2013-05-26 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely + elaborate the full view of a type with a freeze node. + * gcc-interface/trans.c (process_type): Add explicit predicate. + +2013-05-26 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Always build the + UNC variable for aliased objects with unconstrained nominal subtype. + +2013-05-24 Eric Botcazou + + * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare. + * gcc-interface/trans.c (gigi): Call it. + * gcc-interface/misc.c (gnat_init_gcc_fp): New function. + +2013-05-24 Eric Botcazou + + * gcc-interface/gigi.h (enum inline_status_t): New type. + (create_subprog_decl): Adjust prototype. + * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust + calls to create_subprog_decl. + (get_minimal_subprog_decl): Likewise. + * gcc-interface/trans.c (gigi): Likewise. + (build_raise_check): Likewise. + (establish_gnat_vms_condition_handler): Likewise. + (Compilation_Unit_to_gnu): Likewise. + (gnat_to_gnu): Likewise. + * gcc-interface/utils.c (create_subprog_decl): Change inline_flag + parameter to inline_status and implement for suppressed inlining. + +2013-05-24 Eric Botcazou + + * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define. + (LOOP_STMT_UNROLL): Likewise. + (LOOP_STMT_NO_VECTOR): Likewise. + (LOOP_STMT_VECTOR): Likewise. + * gcc-interface/trans.c (struct loop_info_d): Replace label field + with stmt field. + (Pragma_to_gnu) : New case. + (Loop_Statement_to_gnu): Save the loop statement onto the stack + instead of the label. + (gnat_to_gnu) : Retrieve the loop label. + +2013-05-24 Eric Botcazou + + * gcc-interface/trans.c: Include diagnostic.h and opts.h. + (Pragma_to_gnu) : New case. + +2013-05-24 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Constify + a handful of local variables. + For a derived untagged type that renames discriminants, change the type + of the stored discriminants to a subtype with the bounds of the type + of the visible discriminants. + (build_subst_list): Rename local variable. + +2013-05-16 Jason Merrill + + * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex. + +2013-05-13 Rainer Orth + + PR ada/57188 + * gcc-interface/Makefile.in: Allow for amd64 solaris2. + +2013-05-07 Eric Botcazou + + PR ada/56474 + * gcc-interface/decl.c (gnat_to_gnu_entity) : Use + int_const_binop to shift bounds by 1 when they are integer constants. + +2013-04-25 Arnaud Charlet + + * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b} + +2013-04-25 Hristian Kirtchev + + * checks.adb (Apply_Predicate_Check): Update the comment associated + with the call to Check_Expression_Against_Static_Predicate. + * sem_ch3.adb (Analyze_Object_Declaration): Update the comment + associated with the call to Check_Expression_Against_Static_Predicate. + * sem_util.adb (Check_Expression_Against_Static_Predicate): + Broaden the check from a static expression to an expression with + a known value at compile time. + * sem_util.ads (Check_Expression_Against_Static_Predicate): Update + comment on usage. + +2013-04-25 Thomas Quinot + + * exp_attr.adb (Expand_N_Attribute_Reference, cases Position, + First_Bit, and Last_Bit): Fix incorrect test in implementation of + RM 2005 13.5.2(3/2). + +2013-04-25 Claire Dross + + * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb, + a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads + (Query_Element): Removed. + (Update_Element): Removed. + (Insert): The version with no New_Item specified is removed. + (Iterate): Removed. + (Write): Removed. + (Read): Removed. + Every check of fields Busy and Lock has been removed. + +2013-04-25 Robert Dewar + + * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove + call to S14_Pragma (Find_Related_Subprogram): Require proper + placement in subprogram body (Find_Related_Subprogram): Detect + duplicates for all cases (Find_Related_Subprogram): Handle case + of spec nested inside body. + +2013-04-25 Arnaud Charlet + + * par-prag.adb: Fix typo. + +2013-04-25 Hristian Kirtchev + + * checks.adb (Apply_Predicate_Check): If the type has a static + predicate and the expression is also static, check whether the + expression satisfies the predicate. + * sem_ch3.adb (Analyze_Object_Declaration): If the type has a + static predicate and the expression is also static, see if the + expression satisfies the predicate. + * sem_util.adb: Alphabetize several routines. + (Check_Expression_Against_Static_Predicate): New routine. + * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine. + +2013-04-25 Robert Dewar + + * gnat_rm.texi: Document Reason argument for pragma Warnings. + * par-prag.adb: Handle Reason parameter for pragma Warnings. + * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument. + * snames.ads-tmpl (Name_Reason): New name entry. + +2013-04-25 Yannick Moy + + * exp_spark.adb (Expand_SPARK_N_In): Remove procedure. + (Expand_SPARK): Remove special expansion for membership tests. + +2013-04-25 Hristian Kirtchev + + * exp_ch3.adb (Expand_N_Object_Declaration): Update all places + that should use constant Base_Typ. When building an invariant + check, account for invariants coming from the base type. Prevent + the creation of a junk invariant check when the related object + is of an array type and it is initialized with an aggregate. + * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use + the base type to create an invariant call when the type of the + expression is a composite subtype. + +2013-04-25 Vasiliy Fofanov + + * a-cborse.adb: Fix minor typo. + +2013-04-25 Ed Schonberg + + * sem_ch6.adb (Different_Generic_Profile): A spec and body + match in an instance if a subtype declaration that renames a + generic actual with the same name appears between spec and body. + +2013-04-25 Robert Dewar + + * sem_util.adb: Minor reformatting. + +2013-04-25 Ed Schonberg + + * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to + fold strings with a single others choice only if there are no + expressions in the aggregate. + +2013-04-25 Arnaud Charlet + + * gnat_ugn.texi: Update doc on Ada 2012 default mode. + +2013-04-25 Hristian Kirtchev + + * exp_ch6.adb: Add with and use clause for Stringt. + (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters + Decls and Stmts along with comments on their usage. + * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6. + * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6. + (Process_Contract_Cases): Update the call to Expand_Contract_Cases. + +2013-04-25 Ed Schonberg + + * gnat_rm.texi: Minor editing, to clarify use of dimension aspects. + * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an + aggregate for a packed type, which may be converted into an + unchecked conversion of an object. + +2013-04-25 Robert Dewar + + * sem_prag.adb: Minor code reorganization (correct misspelling + Restiction). + * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting. + * gnat_rm.texi: Document impl-defined aspects. + * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor + reformatting. + +2013-04-25 Hristian Kirtchev + + * einfo.adb (Set_Abstract_States): The attribute now applies + to generic packages. + * sem_ch4.adb (Referenced): Moved to sem_util. + * sem_ch7.adb (Unit_Requires_Body): A [generic] package with + a non-null abstract state needs a body. + * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls + to Collect_Subprogram_Inputs_Outputs. + (Analyze_Global_Item): Verify the proper usage of an item with mode + In_Out or Output relative to the enclosing context. + (Analyze_Pragma): Abstract_State can now be applied to a generic + package. Do not reset the Analyzed flag for pragmas Depends and Global + as this is not needed. + (Appears_In): Moved to library level. + (Check_Mode_Restiction_In_Enclosing_Context): New routine. + (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add + formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global + seen along with comments on usage. + * sem_util.ads, sem_util.adb (Referenced): New routine. + +2013-04-25 Hristian Kirtchev + + * sem_ch6.adb (Expand_Contract_Cases): Generate + detailed error messages only when switch -gnateE is in effect. + +2013-04-25 Yannick Moy + + * sem_attr.adb (Analyze_Attribute): Do not issue + an error for a possibly misplaced 'Result or 'Old attribute when + analyzing the aspect. + +2013-04-25 Robert Dewar + + * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting. + +2013-04-25 Hristian Kirtchev + + * sem_ch4.adb (Analyze_Quantified_Expression): + Add local variable Loop_Id. Verify that the loop variable + is used within the condition of the quantified expression. + (Referenced): New routine. + +2013-04-25 Hristian Kirtchev + + * sem_case.adb (Analyze_Choices): Enhance the error message + given on a bad use of subtype predicate. + * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance + the error message given on a bad use of subtype predicate. + * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter + Suggest_Static. Emit an extra error message advising how to + remedy the bad use of the predicate if the context warrants it. + * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter + Suggest_Static along with a comment explaining its usage. + +2013-04-25 Ed Schonberg + + * sem_disp.adb (Check_Dispatching_Operation): Further refinement + to checks for AI05-0125: the check for a hidden primitive that + may be overridden by the new declaration only applies if the + hidden operation is never declared. This is not the case if the + operation is declared in a parent unit. + +2013-04-25 Robert Dewar + + * debug.adb: Remove d.X and d.Y entries and documentation. + * exp_ch4.adb (Expand_N_If_Expression): Remove special code used + if expression with actions not available (now always available). + (Expand_Short_Circuit_Operator): Same change. + * gnat1drv.adb (Adjust_Global_Switches) Remove setting + Use_Expression_With_Actions flag, since this is now obsolete. + * opt.ads (Use_Expression_Actions): Removed (always True now). + * sinfo.ads: Minor comment updates. + +2013-04-25 Ed Schonberg + + * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array + subtype whose base type is currently private, install full view + when compiling instance body. + +2013-04-25 Ed Schonberg + + * sem_disp.adb (Check_Dispatching_Operation): Refine checks for + AI05-0125: the check for a hidden primitive that may be overridden + by the new declaration is only performed if the declaration comes + from source, and it must carry an explicit overriding indicator. + +2013-04-25 Hristian Kirtchev + + * einfo.adb (Abstract_States): The attribute now applies to + generic packages. + * sem_ch3.adb (Analyze_Object_Declaration): Check whether an + object declaration introduces an illegal hidden state. + * sem_prag.adb (Analyze_Abstract_State): Check whether a state + declaration introduces an illegal hidden state. + * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine. + +2013-04-25 Ed Schonberg + + * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may + be to a protected function, in which case the name in the call + is a selected component. + +2013-04-25 Hristian Kirtchev + + * sem_ch4.adb (Analyze_Quantified_Expression): + Warn on a suspicious use of quantifier "some" when "all" was meant. + (No_Else_Or_Trivial_True): New routine. + +2013-04-25 Robert Dewar + + * einfo.ads, einfo.adb: Put back with/use for Namet. + (Get_Pragma): New name (wi new spec) for Find_Pragma. + * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with + different interface. + +2013-04-25 Ed Schonberg + + * sem_ch3.adb (Is_Visible_Component): In an instance all + components are visible. + +2013-04-25 Matthew Heaney + + * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for + tampering when container empty. + * a-crbtgk.adb (Ceiling, Find, Floor): ditto. + (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint): + ditto. + +2013-04-25 Ed Schonberg + + * par-ch12.adb: Move aspects from package specification to + generic package declaration. + * sem_ch12.adb: Analyze aspect specifications before building + and analyzing the generic copy, so that the generated pragmas + are properly taken into account. + * sem_ch13.adb: For compilation unit aspects that apply to a + generic package declaration, insert corresponding pragmas ahead + of visible declarations. + * sprint.adb: Display properly the aspects of a generic type + declaration. + +2013-04-25 Robert Dewar + + * frontend.adb: Minor reformatting. + +2013-04-25 Ed Schonberg + + * einfo.ads: Extend documentation on use of Is_Private_Ancestor + for untagged types. + * sem_ch3.adb (Is_Visible_Component): Refine predicate for the + case of untagged types derived from private types, to reject + illegal selected components. + +2013-04-25 Gary Dismukes + + * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test + for case of selecting from an unexpanded implicit dereference + and do not make a recursive call on such a prefix. + +2013-04-25 Doug Rupp + + * targparm.adb (VXF{_Str}): New tag for vaxfloat. + (Get_Target_Parameters): Handle VXF tag. + * targparm.ads (VAX_Float_On_Target): New boolean. + * system-vms-ia64.ads (VAX_Float): New boolean. + * frontend.adb (Frontend): Handle VAX float boolean. + +2013-04-25 Hristian Kirtchev + + * einfo.ads, einfo.adb: Remove with and use clauses for Namet. + (Find_Pragma): New routine. + * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo. + +2013-04-25 Hristian Kirtchev + + * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited + predicate. + (Add_Predicates): Save the static predicate for diagnostics and error + reporting purposes. + (Process_PPCs): Remove local variables Dynamic_Predicate_Present and + Static_Predicate_Present. Add local variable Static_Pred. Ensure that + the expression of a static predicate is static. + +2013-04-25 Hristian Kirtchev + + * einfo.adb (Is_Ghost_Subprogram): Remove useless code. + +2013-04-25 Robert Dewar + + * gnat_rm.texi: Minor addition of index entry. + +2013-04-25 Hristian Kirtchev + + * sem_ch6.adb (Check_Access_Invariants): Test whether an + invariant procedure is empty before generating a call to it. + (Has_Enabled_Predicate): New routine. + (Has_Null_Body): New routine. + (Process_PPCs): Test whether an invariant procedure is + empty before generating a call to it. Test whether predicates are + enabled for a particular type before generating a predicate call. + * sem_util.ads, sem_util.adb (Find_Pragma): New routine. + +2013-04-25 Robert Dewar + + * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl, + snames.ads-tmpl: Minor reformatting. + +2013-04-25 Thomas Quinot + + * sem_ch7.adb: Minor reformatting. + +2013-04-25 Robert Dewar + + * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed). + * s-tarest.adb: Minor reformatting. + +2013-04-25 Hristian Kirtchev + + * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant + tables. + * einfo.adb: Remove with and use clause for Aspects. + (Is_Ghost_Function): Removed. + (Is_Ghost_Entity): New routine. + (Is_Ghost_Subprogram): New routine. + * einfo.ads: Remove synthesized attribute Is_Ghost_Function + along with its uses in entities. Add synthesized attributes + Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related + entities. + (Is_Ghost_Function): Removed. + (Is_Ghost_Entity): New routine. + (Is_Ghost_Subprogram): New routine. + * par-prag.adb: Remove pragma Ghost from the processing machinery. + * repinfo.adb (List_Mechanisms): Add a value for convention Ghost. + * sem_attr.adb (Analyze_Access_Attribute): Update the check + for ghost subprograms. + * sem_ch4.adb (Analyze_Call): Update the check for calls + to ghost subprograms. + (Check_Ghost_Function_Call): Removed. + (Check_Ghost_Subprogram_Call): New routine. + * sem_ch6.adb (Check_Convention): Rewritten. + (Check_Overriding_Indicator): Remove the check for overriding + ghost functions. + (Convention_Of): New routine. + * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost + generic actual subprograms. + * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost. + * sem_prag.adb: Remove the value for pragma Ghost from + table Sig_Flags. + (Analyze_Pragma): Remove the processing for pragma Ghost. + (Process_Convention): Emit an error when a ghost + subprogram attempts to override. + (Set_Convention_From_Pragma): Emit an error when a ghost subprogram + attempts to override. + * sinfo.ads: Clarify the usage of field Label_Construct. + * snames.adb-tmpl (Get_Convention_Id): Add an entry for + predefined name Ghost. + (Get_Convention_Name): Add an entry for convention Ghost. + * snames.ads-tmpl: Move predefined name Ghost to the sublist + denoting conventions. Add convention id Ghost. Remove pragma + id Ghost. + +2013-04-25 Ed Schonberg + + * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child + units if within a generic hierarchy. + +2013-04-24 Hristian Kirtchev + + * exp_ch6.adb (Expand_Actuals): Add a predicate check on an + actual the related type has a predicate function. + * sem_ch3.adb (Constant_Redeclaration): Ensure that the related + type has an invariant procedure before building a call to it. + * sem_ch6.adb (Append_Enabled_Item): New routine. + (Check_Access_Invariants): Use routine + Append_Enabled_Item to chain onto the list of postconditions. + (Contains_Enabled_Pragmas): Removed. + (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto + the list of postconditions. + (Invariants_Or_Predicates_Present): Removed. + (Process_PPCs): Partially reimplemented. + +2013-04-24 Sergey Rybin + + * tree_io.ads: Update ASIS_Version_Number because of changes + in the way how entities are chained in a scope by means of + Next_Entity link. + +2013-04-24 Ed Schonberg + + * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case + Storage_Size): If the clause is not from an aspect, insert + assignment to size variable of task type at the point of the + clause, not after the task definition, to prevent access before + elaboration in the back-end. + +2013-04-24 Yannick Moy + + * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume. + +2013-04-24 Yannick Moy + + * gnat_rm.texi: Document 'Loop_Entry. + +2013-04-24 Jose Ruiz + + * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for + fall-back termination handlers from the parents, because they apply + only to dependent tasks. + * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back + termination handlers because the environment task has no parent, + and if it defines one of these handlers it does not apply to + itself because they apply only to dependent tasks. + +2013-04-24 Robert Dewar + + * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting. + +2013-04-24 Robert Dewar + + * gnat_rm.texi: Document 'Update attribute. + * sem_attr.adb (Analyze_Attribute, case Update): Remove call + to S14_Attribute (S14_Attribute): removed. + +2013-04-24 Robert Dewar + + * interfac.ads: Add size clauses for IEEE_Float_32/64 + +2013-04-24 Claire Dross + + * gnat1drv.adb (Adjust_Global_Switches): Remove + special assignment of Use_Expression_With_Actions for SPARK_Mode. + +2013-04-24 Hristian Kirtchev + + * checks.adb (Apply_Predicate_Check): Check for the presence + of the dynamic predicate aspect when trying to determine if the + predicate of a type is non-static. + * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check + for the presence of the dynamic predicate aspect when trying to + determine if the predicate of a type is non- static. + * sem_ch13.adb (Add_Call): Capture the nature of the + inherited ancestor predicate. + (Build_Predicate_Functions): Update comments. Rewrite the checks on + static predicate application. Complain about the form of a non-static + expression only when the type is static. + +2013-04-24 Ed Schonberg + + * sem_prag.adb: Add guard to tree traversal. + +2013-04-24 Vincent Celier + + * clean.adb (Clean): Remove local variable Root_Environment, + use Makeutl.Root_Environment instead. + * gnatcmd.adb: Remove local variable Root_Environment, use + Makeutl.Root_Environment instead. + * make.adb (Gnatmake): Remove local variable Root_Environment, + use Makeutl.Root_Environment instead. + * prj-makr.adb: Remove local variable Root_Environment, use + Makeutl.Root_Environment instead. + +2013-04-24 Hristian Kirtchev + + * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the + extraction of the declarative part of the conditional block. Move + the processing of simple infinite loops to the start of the + expansion logic. Correct the check which determines whether the + proper scope is installed in visibility. + * sem_attr.adb (Analyze_Attribute): Add local variable Attr + to keep track of the attribute in case the enclosing indexed + component has to be rewritten. When searching for the enclosing + loop, start from the proper attribute reference in case of a + rewriting. Do not allow for 'Loop_Entry to appear in pragma + Assert. Replace loop variable J with Index. Set the type of the + proper attribute. + * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized + block that services a loop statement subject to at least one + 'Loop_Entry attribute. + +2013-04-24 Ed Schonberg + + * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to + resolve a fixed point operation, use first subtype to determine + whether type and operator are declared in the same list of + declarations. + +2013-04-24 Hristian Kirtchev + + * par-ch6.adb (P_Subprogram): Detect an illegal + placement of the aspect specification list in the context of + expression functions. + +2013-04-24 Ed Schonberg + + * exp_ch4.adb (Expand_N_Allocator): If the designated object + has tasks, and the pointer type is an itype that has no master + id, create a master renaming in the current context, which can + only be an init_proc. + +2013-04-24 Robert Dewar + + * sem_ch3.adb, sem_ch7.adb: Minor reformatting. + * gnat_rm.texi: Document pragma Loop_Invariant. + * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is + no longer an S14_Attribute. + * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine + processing with Assert, allow message parameter, remove call + to S14_Pragma. + +2013-04-24 Thomas Quinot + + * exp_ch4.adb: Minor reformatting. + +2013-04-24 Ed Schonberg + + * sem_ch7.adb (Swap_Private_Dependents): New internal routine + to Install_Private_Declarations, to make the installation of + private dependents recursive in the presence of child units. + * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly + the Private_Dependents of a private subtype. + +2013-04-24 Hristian Kirtchev + + * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the + retrieval of the block declarations. + * par-ch4.adb (P_Name): Let the name parsing machinery create + a sequence of nested indexed components for attribute Loop_Entry. + * sem_attr.adb (Analyze_Attribute): Add local constant + Context. Reimplement part of the analysis of attribute Loop_Entry. + (Convert_To_Indexed_Component): Removed. + * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze + an indexed component after it has been rewritten into attribute + Loop_Entry. + +2013-04-24 Yannick Moy + + * snames.ads-tmpl: Minor change to list + Loop_(In)variant not in configuration pragma. + * sem_ch3.adb (Analyze_Declarations): Do not look at the original node + for analyzing the expressions in pre/postconditions. + +2013-04-24 Robert Dewar + + * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor + reformatting. + +2013-04-24 Yannick Moy + + * sem_ch6.adb (Analyze_Generic_Subprogram_Body, + Analyze_Subprogram_Body_Helper): Reset contract node to Empty + before setting entity to E_Subprogram_Body. + * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to + Empty before setting entity to E_Subprogram_Body. + +2013-04-24 Vincent Celier + + * gnat_ugn.texi: Document new gnatls switch -aPdir. + * gnatcmd.adb: Pass switch -aP to gnatls. + * gnatls.adb (Scan_Ls_Arg): Process new switch -aP. Issue + a warning for unknown switches. + (Usage): Add line for new switch -aPdir. + +2013-04-24 Ed Schonberg + + * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true + if the type comes from a limited view, so that task attributes can be + constructed. + +2013-04-24 Yannick Moy + + * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if + full expansion is not enabled. + +2013-04-24 Ed Schonberg + + * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra + formals if the type does not yet have a completion, and thus + has no underlying view. + +2013-04-24 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect + specification for Address as a reference, to suppress warnings + on entities that may be read by an external device. + +2013-04-24 Sergey Rybin + + * gnat_ugn.texi: Add description of '--help' and '--version' + options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp. + +2013-04-24 Arnaud Charlet + + * gnat_rm.texi: Minor syntax fix. + +2013-04-24 Hristian Kirtchev + + * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on + what and why is being analyzed. Remove the decoration of renamings as + this simply falls out of the general analysis mechanism. + +2013-04-24 Hristian Kirtchev + + * sem_res.adb (Explain_Redundancy): New routine. + (Resolve_Equality_Op): Place the error concerning a redundant + comparison to True at the "=". Try to explain the nature of the + redundant True. + +2013-04-24 Javier Miranda + + + * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No + check in interface thunks since it is performed at the caller + side. + (Expand_Simple_Function_Return): No accessibility check + needed in thunks since the check is done by the target routine. + +2013-04-24 Vincent Celier + + * xref_lib.adb (Add_Entity): Use the canonical file names + so that source file names with capital letters are found on + platforms where file names are case insensitive. + +2013-04-24 Hristian Kirtchev + + * par-ch4.adb (P_Name): Continue to parse the name extension when the + construct is attribute Loop_Entry. Do not convert the attribute + reference into an indexed component when there is at least one + expression / range following 'Loop_Entry. + +2013-04-24 Hristian Kirtchev + + * sem_ch6.adb (Contains_Enabled_Pragmas): New routine. + (Process_PPCs): Generate procedure _Postconditions + only when the context has invariants or predicates or enabled + aspects/pragmas. + +2013-04-24 Thomas Quinot + + * g-socket.adb (Host_Entry): Introduce intermediate copy of + memory location pointed to by Hostent_H_Addr, as it might not + have sufficient alignment. + +2013-04-24 Yannick Moy + + * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before + calling subprograms which may read it. + +2013-04-24 Hristian Kirtchev + + * einfo.adb: Remove Loop_Entry_Attributes from the usage of + nodes. Flag 260 is now used. + (Has_Loop_Entry_Attributes): New routine. + (Loop_Entry_Attributes): Removed. + (Set_Has_Loop_Entry_Attributes): New routine. + (Set_Loop_Entry_Attributes): Removed. + (Write_Entity_Flags): Write out Flag 260. + (Write_Field10_Name): Remove the output for Loop_Entry_Attributes. + * einfo.ads: Remove attribute Loop_Entry_Attributes, + its related comment and uses in nodes. Add new attribute + Has_Loop_Entry_Attributes, related comment and uses in loop nodes. + (Has_Loop_Entry_Attributes): New routine and pragma Inline. + (Loop_Entry_Attributes): Removed along with pragma Inline. + (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline. + (Set_Loop_Entry_Attributes): Removed along with pragma Inline. + * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine. + (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry. + * exp_ch5.adb: Remove with and use clause for Elists. + (Expand_Loop_Entry_Attributes): Removed. + (Expand_N_Loop_Statement): Add local variable Stmt. Rename local + constant Isc to Scheme. When a loop is subject to attribute + 'Loop_Entry, retrieve the nested loop from the conditional + block. Move the processing of controlled object at the end of + loop expansion. + * sem_attr.adb (Analyze_Attribute): Do not chain attribute + 'Loop_Entry to its related loop. + * sem_ch5.adb (Analyze_Loop_Statement): Add local variable + Stmt. When the iteration scheme mentions attribute 'Loop_Entry, + the entire loop is rewritten into a block. Retrieve the nested + loop in such cases to complete the analysis. + * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New + routine. + (Subject_To_Loop_Entry_Attributes): New routine. + +2013-04-24 Robert Dewar + + * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check + (Loop_Variant, xxx) rather than Assert (xxx). + * gnat_rm.texi: Document pragma Loop_Variant. + * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call + to S14_Pragma. + +2013-04-24 Yannick Moy + + * adabkend.adb, ali-util.adb, ali.adb, debug.adb, + errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb, + exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb, + expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb, + lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads, + restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb, + sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb, + sem_res.adb, sem_util.adb: Everything with name + 'Alfa' renamed in 'SPARK'. Update comments. + Renaming of units with name 'Alfa', renamed with 'SPARK' instead. + * exp_alfa.adb: renamed exp_spark.adb. + * exp_alfa.ads: renamed exp_spark.ads. + * get_alfa.adb: renamed get_spark_xrefs.adb. + * get_alfa.ads: renamed get_spark_xrefs.ads. + * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb. + * put_alfa.adb: renamed put_spark_xrefs.adb. + * put_alfa.ads: renamed put_spark_xrefs.ads. + * alfa.adb: renamed spark_xrefs.adb. + * alfa.ads: renamed spark_xrefs.ads. + * alfa_test.adb: renamed spark_xrefs_test.adb. + * gcc-interface/Make-lang.in: Update dependencies. + +2013-04-24 Robert Dewar + + * gnat_rm.texi: Document pragma Assume. + * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as + part of Assert, and no longer requires -gnatd.F + +2013-04-24 Robert Dewar + + * gnat_rm.texi: Document pragma Assert_And_Cut. + * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove + S14_Pragma call. + +2013-04-24 Ed Schonberg + + * sem_aux.adb: Add guard in Available_View. + +2013-04-24 Hristian Kirtchev + + * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use + Find_Related_Subprogram to find the associated subprogram. + (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram + to find the associated subprogram. + (Analyze_Pragma): Use Find_Related_Subprogram to find the associated + subprogram. + +2013-04-24 Hristian Kirtchev + + * exp_ch6.adb: Remove with and use clause for Sem_Prag. + (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze + the contract of a subprogram. + * sem_ch3.adb: Remove with and use clause for Sem_Prag. + (Analyze_Declarations): Call Analyze_Subprogram_Contract to + analyze the contract of a subprogram. + * sem_ch6.adb (Analyze_Subprogram_Contract): New routine. + (Check_Subprogram_Contract): Removed. + * sem_ch6.ads (Analyze_Subprogram_Contract): New routine. + (Check_Subprogram_Contract): Removed. + (Expand_Contract_Cases): Add a guard against malformed contract cases. + * sem_ch13.adb (Analyze_Aspect_Specifications): Call + Decorate_Delayed_Aspect_And_Pragma to decorate aspects + Contract_Cases, Depends and Global. Reimplement the analysis of + aspect Contract_Cases. + (Decorate_Delayed_Aspect_And_Pragma): New routine. + * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine. + (Analyze_CTC_In_Decl_Part): Removed. + (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases. + (Analyze_Test_Case_In_Decl_Part): New routine. + (Find_Related_Subprogram): New routine. + (Requires_Profile_Installation): Add new formal Prag. Update + the logic to take into account the origin of the pragma. + * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine. + (Analyze_CTC_In_Decl_Part): Removed. + (Analyze_Test_Case_In_Decl_Part): New routine. + +2013-04-24 Robert Dewar + + * sem_prag.adb (Process_Convention): Move Stdcall tests to + Set_Convention_From_Pragma so that they are applied to each + entry of a homonym set. + (Process_Convention): Don't try to set convention if already set. + +2013-04-24 Robert Dewar + + * gnatbind.adb: Minor reformatting. + +2013-04-24 Vincent Celier + + * clean.adb (Gnatclean): Add the default project search + directories in the project search path after scanning the + switches on the command line. + (Initialize): Do not put the default project search directories in the + project search path. + * gnatcmd.adb (GNATcmd): Add the default project search + directories in the project search path after scanning the switches + on the command line. + * make.adb (Initialize): Add the default project search + directories in the project search path after scanning the switches + on the command line. + +2013-04-24 Yannick Moy + + * restrict.ads (Restriction_Warnings): Initialize with all False value. + +2013-04-24 Robert Dewar + + * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function. + * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of + Predicate_Check. + * snames.ads-tmpl (Name_Predicate_Check): New check name. + * types.ads (Predicate_Check): New definition. + * gnat_rm.texi: Add documentation for Predicate_Check. + +2013-04-24 Ed Schonberg + + * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this + is a renaming of predefined equality for an untagged record, + add generated body to the freeze actions for the subprogram, to + prevent freezing issues when the record has incomplete components. + * exp_ch4.adb (Expand_Composite_Equality): If the type is a type + without completion, return a predefined comparison instead of + just False. This may happen when building the expression for + record equality, when some component has a type whose completion + has not been seen yet. The operation will be analyzed an expanded + after the type has been frozen, at which point all component + types will have been completed, or an error reported. + +2013-04-24 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay + analysis of a Convention aspect. + +2013-04-24 Eric Botcazou + + * fe.h (Machine_Overflows_On_Target): New macro and declaration. + (Signed_Zeros_On_Target): Likewise. + +2013-04-24 Hristian Kirtchev + + * exp_ch6.adb: Add with and use clause for Sem_Prag. + (Freeze_Subprogram): Analyze all delayed aspects for a null + procedure so that they are available when analyzing the + internally-generated _Postconditions routine. + * exp_ch13.adb: Remove with and use clause for Sem_Prag. + (Expand_N_Freeze_Entity): Move the code that analyzes delayed + aspects of null procedures to exp_ch6.Freeze_Subprogram. + * sem_prag.adb (Analyze_Abstract_State): Update the check on + volatile requirements. + +2013-04-24 Bob Duff + + * ali-util.ads (Source_Record): New component Stamp_File + to record from whence the Stamp came. + * ali-util.adb (Set_Source_Table): Set Stamp_File component. + * bcheck.adb (Check_Consistency): Print additional information in + Verbose_Mode. + * gnatbind.adb (Gnatbind): Print additional information in + Verbose_Mode. + +2013-04-24 Robert Dewar + + * exp_ch13.adb, sem_prag.adb: Update comments. + * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor + reformatting. + +2013-04-24 Doug Rupp + + * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior. + +2013-04-24 Yannick Moy + + * sinfo.ads: Minor correction of typo. + +2013-04-24 Ed Schonberg + + * sem_ch3.adb: Create packed array only when expander is + active. + +2013-04-24 Hristian Kirtchev + + * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only + when the context warrants it. + (Analyze_Global_In_Decl_List): Install the formals only when + the context warrants it. + (Requires_Profile_Installation): New routine. + +2013-04-24 Ed Schonberg + + * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return + type is a discriminated private type that does not require use + of the secondary stack, a constrained subtype of the underlying + type is created to convey the proper object size to the backend. + If the return type is originally a private type, the return + expression is wrapped in an unchecked_conversion. If the return + expression is used subsequently in a call to the postcondition + function, this conversion must be undone to prevent a spurious + error on the analysis of that call. + +2013-04-23 Kai Tietz + + PR target/55445 + * raise-gcc.c (__SEH__): Additional check that SjLj isn't active. + +2013-04-23 Eric Botcazou + Pascal Obry + + * gcc-interface/Makefile.in (targ): Fix target name check. + (../../gnatmake$(exeext)): Add '+' for LTO. + (../../gnatlink$(exeext)): Likewise. + +2013-04-23 Hristian Kirtchev + + * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of + pre- and post-conditions. + (Expand_N_Task_Type_Declaration): + Use the correct attribute to check for pre- and post-conditions. + * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of + pre- and post-conditions. Analyze delayed classification items. + * freeze.adb (Freeze_Entity): Use the correct attribute to + check for pre- and post- conditions. + * sem_ch3.adb (Analyze_Declarations): Correct the traversal + of pre- and post-conditions as well as contract- and + test-cases. Analyze delayed pragmas Depends and Global. + * sem_ch6.adb (Check_Subprogram_Contract): Use the correct + attribute to check for pre- and post-conditions, as well as + contract-cases and test-cases. (List_Inherited_Pre_Post_Aspects): + Correct the traversal of pre- and post- conditions. + (Process_Contract_Cases): Update the comment on usage. Correct + the traversal of contract-cases. + (Process_Post_Conditions): Update the comment on usage. Correct the + traversal of pre- and post-conditions. + (Process_PPCs): Correct the traversal of pre- and post-conditions. + (Spec_Postconditions): Use the correct + attribute to check for pre- and post- conditions, as well as + contract-cases and test-cases. + * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the + actions related to aspects Depends and Global. Code refactoring + for pre- and post-conditions. + (Insert_Delayed_Pragma): New routine. + * sem_prag.adb (Add_Item): New routine. + (Analyze_Depends_In_Decl_Part): New routine. + (Analyze_Global_In_Decl_Part): New routine. + (Analyze_Pragma): Reimplement the actions related to aspects Depends and + Global. Verify that a body acts as a spec for pragma Contract_Cases. + (Chain_PPC): Use Add_Contract_Item to chain a pragma. + (Chain_CTC): Correct the traversal of contract- + and test-cases. Use Add_Contract_Item to chain a pragma. + (Chain_Contract_Cases): Correct the traversal of contract- + and test-cases. Use Add_Contract_Item to chain a pragma. + (Check_Precondition_Postcondition): Update the comment on usage. + (Check_Test_Case): Update the comment on usage. + * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine. + (Analyze_Global_In_Decl_Part): New routine. + * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine. + * sinfo.adb (Classifications): New routine. + (Contract_Test_Cases): New routine. + (Pre_Post_Conditions): New routine. + (Set_Classifications): New routine. + (Set_Contract_Test_Cases): New routine. + (Set_Pre_Post_Conditions): New routine. + (Set_Spec_CTC_List): Removed. + (Set_Spec_PPC_List): Removed. + (Spec_CTC_List): Removed. + (Spec_PPC_List): Removed. + * sinfo.ads: Update the structure of N_Contruct along with all + related comments. + (Classifications): New routine and pragma Inline. + (Contract_Test_Cases): New routine and pragma Inline. + (Pre_Post_Conditions): New routine and pragma Inline. + (Set_Classifications): New routine and pragma Inline. + (Set_Contract_Test_Cases): New routine and pragma Inline. + (Set_Pre_Post_Conditions): New routine and pragma Inline. + (Set_Spec_CTC_List): Removed. + (Set_Spec_PPC_List): Removed. + (Spec_CTC_List): Removed. + (Spec_PPC_List): Removed. + +2013-04-23 Doug Rupp + + * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2 + to account for LIB$STOP not having the chance to add the PC and + PSL fields. + +2013-04-23 Robert Dewar + + * sem_ch13.adb: Minor code reorganization (remove some redundant + assignments). + * sem_ch3.adb, sem_prag.adb: Minor reformatting. + +2013-04-23 Yannick Moy + + * einfo.ads: Minor typo fix. + * sem_ch13.adb (Build_Predicate_Functions): Reject cases where + Static_Predicate is applied to a non-scalar or non-static type. + * sem_prag.adb: Minor typo fix. + +2013-04-23 Doug Rupp + + * init.c (GNAT$STOP) [VMS]: New function. + +2013-04-23 Ed Schonberg + + * sem_ch3.adb: Add exp_pakd to context. + (Constrain_Component_Type): If the component of the parent is + packed, and the record subtype being built is already frozen, + as is the case for an itype, the component type itself will not + be frozen, and the packed array type for it must be constructed + explicitly. + +2013-04-23 Thomas Quinot + + * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram. + +2013-04-23 Yannick Moy + + * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero + at declaration. + * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration. + * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration. + * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration. + * stylesw.adb (Save_Style_Check_Options): Protect testing the + value of Style_Check_Comments_Spacing by a previous test that + Style_Check_Comments is True. + +2013-04-23 Thomas Quinot + + * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to + Original_Name, and move declaration to package body as this + subprogram is not used from outside. Also clarify documentation. + +2013-04-23 Ed Schonberg + + * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with + initialize_scalars, disable predicate checks on the generated + assignment to an out scalar parameter. + +2013-04-23 Gary Dismukes + + * sem_ch4.adb (Analyze_Allocator): Remove error + check for "constrained in partial view" constraints entirely. + +2013-04-23 Robert Dewar + + * einfo.ads, sem_prag.ads: Minor reformatting. + * errout.ads: Comment update. + +2013-04-23 Yannick Moy + + * exp_ch5.adb: Minor typo. + +2013-04-23 Thomas Quinot + + * gnat_ugn.texi: Fix typo. + +2013-04-23 Ed Schonberg + + * einfo.ads: Minor documentation clarification. + +2013-04-23 Bob Duff + + * types.ads: Fix incorrect comment. + +2013-04-23 Ed Schonberg + + * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View): + Rename subprogram as Object_Type_Has_Constrained_Partial_View, better + description of purpose. + * checks.adb (Apply_Discriminant_Check): Use above renaming. + * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View + of the base type, rather than using the Object_Type predicate. + * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming. + * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto. + * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto. + * exp_ch4.adb (Expand_N_Allocator): Ditto. + +2013-04-23 Robert Dewar + + * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather + than Assertion. + * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec + (Effective_Name): New function (Analyze_Pragma, case Check): + Disallow [Statement_]Assertions (Check_Kind): Implement + Statement_Assertions (Check_Applicable_Policy): Use Effective_Name + (Is_Valid_Assertion_Kind): Allow Statement_Assertions. + * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body + (Effective_Name): New function. + * sem_res.adb: Minor reformatting. + * snames.ads-tmpl (Name_Statement_Assertions): New entry. + * gnat_rm.texi: Add documentation of new assertion kind + Statement_Assertions. + +2013-04-23 Robert Dewar + + * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor + reformatting and code clean up. + +2013-04-23 Vincent Celier + + * prj-part.ads, prj-conf.ads: Minor comment updates. + +2013-04-23 Ed Schonberg + + * einfo.adb (Predicate_Function): For a private type, retrieve + predicate function from full view. + * aspects.adb (Find_Aspect): Ditto. + * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and + the actual is a definite type, apply predicate check after call. + * sem_res.adb: Do not apply a predicate check before the call to + a generated Init_Proc. + +2013-04-23 Robert Dewar + + * sem_ch13.adb (Analyze_Aspect_Specifications): Significant + rewrite to make sure Is_Ignore is properly captured when aspect + is declared. + * sem_ch6.adb: Minor reformatting. + * sem_prag.adb (Analyze_Pragma): Do not test policy at time of + pragma for the case of a pragma coming from an aspect (already + tested when we analyzed the aspect). + +2013-04-23 Vincent Celier + + * prj-conf.adb (Parse_Project_And_Apply_Config): New + Boolean parameter Implicit_Project, defaulted to False. Call + Prj.Part.Parse with Implicit_Project. + * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean + parameter Implicit_Project, defaulted to False. + * prj-part.adb (Parse_Single_Project): New Boolean parameter + Implicit_Project, defaulted to False. When Implicit_Project is + True, change the Directory of the project node to the Current_Dir. + * prj-part.ads (Parse): New Boolean parameter, defaulted to False + +2013-04-23 Robert Dewar + + * exp_util.adb: Minor reformatting. + +2013-04-23 Robert Dewar + + * xoscons.adb: Minor reformatting. + +2013-04-23 Hristian Kirtchev + + * sem_prag.adb (Check_Mode): Ensure that a + self-referential output appears in both input and output lists of + the subprogram as categorized by aspect Global. + (Check_Usage): Rename formal parameters to better illustrate their + function. Update all uses of the said formals. + +2013-04-23 Thomas Quinot + + * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New + parameter Append_NUL to make NUL-termination optional. + * exp_dist.adb: Consistently use the above throughout instead of + Get_Library_Unit_Name_String. + +2013-04-23 Robert Dewar + + * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor + reformatting. + +2013-04-23 Pascal Obry + + * xoscons.adb: Remove unused use clause, minor code clean-up. + +2013-04-23 Ed Schonberg + + * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function + (can apply to any scope entity). + * sem_res.adb (Resolve_Call): If the call is within another + expression function it does not constitute a freeze point. + +2013-04-23 Yannick Moy + + * exp_ch6.adb (Expand_Actuals): Test that Subp + is overloadable before testing if it's an inherited operation. + +2013-04-23 Robert Dewar + + * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor + reformatting. + +2013-04-23 Ed Schonberg + + * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch. + * exp_util.adb (Expand_Subtype_From_Expr): If the expression + is a source entity and the declaration is for an aliased + unconstrained array, create a new subtype so that the flag + Is_Constr_Subt_For_UN_Aliased does not pollute other entities. + +2013-04-23 Hristian Kirtchev + + * aspects.adb: Move tables Base_Aspect and Inherited_Aspect + from the spec to the body. + (Find_Aspect): Update the call to Get_Aspect_Id. + (Get_Aspect_Id): New version that takes an aspect specification. + * aspects.ads: Reorganize all aspect related tables. + (Get_Aspect_Id): New version that takes an aspect specification. + * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id. + * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update + the call to Get_Aspect_Id. + * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the + call to Get_Aspect_Id. (Analyze_Aspect_Specifications): Update + the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect. + +2013-04-23 Robert Dewar + + * sem_prag.adb (Fix_Error): Rewrite to do more accurate job + of getting proper name in the case where pragma comes from + aspect. + * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting. + +2013-04-23 Yannick Moy + + * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on + applicable policy. + +2013-04-23 Thomas Quinot + + * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization. + +2013-04-23 Doug Rupp + + * init.c: Move facility macros outside IN_RTS. + +2013-04-23 Thomas Quinot + + * freeze.adb (Freeze_Entity): For the case of a bit-packed + array time that is known at compile time to have more that + Integer'Last+1 elements, issue an error, since such arrays are + not supported. + +2013-04-23 Hristian Kirtchev + + * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to + Analyze_Input_Output. + (Analyze_Input_List): Update all calls to Analyze_Input_Output. + (Analyze_Input_Output): Add formal parameter Self_Ref along with + comment on its usage. Update all calls to Analyze_Input_Output. + (Analyze_Pragma): Add new local variable Self_Ref to capture + the presence of a self-referential dependency clause. Update + all calls to Analyze_Input_Output. + (Check_Mode): Add formal parameter Self_Ref along with comment on its + usage. Verify the legality of a self-referential output. + +2013-04-23 Ed Schonberg + + * exp_ch6.adb: Add predicate checks on by-copy parameter. + +2013-04-23 Vincent Celier + + * a-envvar.adb, a-envvar.ads (Value): New. + +2013-04-22 Yannick Moy + + * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as + null statement if ignored. + * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored. + * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas. + +2013-04-22 Hristian Kirtchev + + * sem_prag.adb (Analyze_Contract_Case): New routine. + (Analyze_Pragma): Aspect/pragma Contract_Cases can + now be associated with a library level subprogram. + Add circuitry to detect illegal uses of aspect/pragma Contract_Cases + in a subprogram body. + (Chain_Contract_Cases): Rename formal parameter Subp_Decl to + Subp_Id. Remove local constant Subp. The entity of the subprogram + is now obtained via the formal paramter. + +2013-04-22 Ed Schonberg + + * sem_ch3.adb (Analyze_Object_Declaration): Do not set + Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression, + if the expression is a source entity. + +2013-04-22 Yannick Moy + + * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in + comments. + * sem_ch6.adb (Expand_Contract_Cases): Add location to message. + +2013-04-22 Thomas Quinot + + * sem_prag.adb (Fix_Error): For a pragma rewritten from another + pragma, fix up error message to include original pragma name. + * par_sco.adb: Minor reformatting. + +2013-04-22 Robert Dewar + + * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb, + sem_ch6.adb, opt.ads: Minor reformatting. + +2013-04-22 Pascal Obry + + * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for + Library_Standalone and Library_Kind. + +2013-04-22 Ed Schonberg + + * exp_ch6.adb (Expand_Actuals): If the call is to an + inherited operation and the actual is a by-reference type with + predicates, add predicate call to post-call actions. + * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding + error: a type declaration has a defining identifier, not an Etype. + * sem_res.adb: Restore code removed because of above error. + +2013-04-22 Doug Rupp + + * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT. + +2013-04-22 Yannick Moy + + * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb, + opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc. + +2013-04-22 Vincent Celier + + * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to + No_Path_Information only when Directories_Must_Exist_In_Projects + is False. + (Get_Directories): Set Object_Directory + or Exec_Directory to No_Path_Information only when + Directories_Must_Exist_In_Projects is False. + +2013-04-22 Yannick Moy + + * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb, + snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to + Pragma_Contract_Case and Name_Contract_Case. + +2013-04-22 Yannick Moy + + * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to + Contract_Case. + * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by + description of Contract_Cases. + +2013-04-12 Robert Dewar + + * makeutl.adb, prj-nmsc.adb: Minor reformatting. + +2013-04-12 Robert Dewar + + * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead + of Check_Enabled. + * gnat_rm.texi (Check_Policy): Update documentation for new + Check_Policy syntax. + * sem_prag.adb (Check_Kind): Replaces Check_Enabled + (Analyze_Pragma, case Check_Policy): Rework to accomodate new + syntax (like Assertion_Policy). + * sem_prag.ads (Check_Kind): Replaces Check_Enabled. + +2013-04-12 Doug Rupp + + * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros. + (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user + handler if installed. + * ctrl_c.c (__gnat_install_int_handler) + [VMS]: Install a dummy sigaction handler to trigger the real + user handler dispatch in init.c/__gnat_handle_vms_condition. + (__gnat_uninstall_int_handler) [VMS]: Likewise. + +2013-04-12 Vincent Celier + + * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects + to False if switch is specified. + * makeutl.adb (Initialize_Source_Record): Do not look for the + object file if there is no object directory. + * opt.ads (Directories_Must_Exist_In_Projects): New Boolean + variable, defaulted to True. + * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library + directory does not exist when Directories_Must_Exist_In_Projects is + False. + (Get_Directories): Do not fail when the object or the exec directory + do not exist when Directories_Must_Exist_In_Projects is False. + +2013-04-12 Robert Dewar + + * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In). + * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb, + sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb, + par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb, + sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb, + exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb, + prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb, + sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb, + sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In). + +2013-04-12 Doug Rupp + + * init.c: Don't clobber condition code on VMS. + +2013-04-12 Robert Dewar + + * exp_aggr.adb: Minor reformatting. + * namet.ads, namet.adb (Nam_In): New functions. + +2013-04-12 Robert Dewar + + * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag. + (Has_Static_Predicate_Aspect): New flag. + * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag. + (Has_Static_Predicate_Aspect): New flag. + * exp_ch9.adb: Minor reformatting. + * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles + synonyms. + * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled, + since this switch is gone and control of Debug is done with + Assertions_Enabled. + * gnat_rm.texi: Update documentation for Assertion_Policy and + Check_Policy pragmas. + * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed + (Debug_Pragmas_Enabled[_Config]): Removed Since debug now + controlled by Assertion_Enabled. + * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed + (Debug_Pragmas_Enabled[_Config]): Removed Since debug now + controlled by Assertion_Enabled. + * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new + 'Class forms. + * sem_attr.adb: Minor reformatting. + * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect + if DISABLE policy applies. + * sem_ch6.adb (Grab_PPC): Check original name of aspect for + aspect from pragma (Process_PPCs): Properly check assertion policy. + * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy + (Check_Appicable_Policy): New procedure. + (Is_Valid_Assertion_Kind): New function. + (Rewrite_Assertion_Kind): New procedure. + (Analyze_Pragma): Handle case of disabled assertion pragma. + (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012. + (Analyze_Pragma, case Check): Deal with 'Class possibilities. + (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities. + (Analyze_Pragma, case Contract_Class): New handling of ignored pragma. + (Analyze_Pragma, case Debug): New control with Assertion_Policy. + (Analyze_Pragma, case Debug_Policy): Now consistent with + Assertion_Policy. + (Analyze_Pragma, case Loop_Invariant): New handling of ignored + pragma. + (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma. + (Analyze_Pragma, case Precondition): Use proper name for Check pragma. + (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff. + * sem_prag.ads (Check_Enabled): Rewritten for new + Assertion_Policy stuff. + (Check_Appicable_Policy): New procedure. + * sinfo.adb (Is_Disabled): New flag. + (Is_Ignored): New flag. + * sinfo.ads (Is_Disabled): New flag. + (Is_Ignored): New flag. + (N_Pragma_Argument_Association): New 'Class forms. + * snames.ads-tmpl: New names Name_uPre, Name_uPost, + Name_uType_Invariant, Name_uInvariant. + * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata. + * tree_io.ads (ASIS_Version_Number): Updated (remove + read write of obsolete flags Debug_Pragmas_Disabled and + Debug_Pragmas_Enabled. + +2013-04-12 Ed Schonberg + + * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary + of Build_Record_Aggr_Code, used to retrieve explicit values + for inherited discriminants in an extension aggregate, when the + ancestor type is unconstrained. + +2013-04-12 Ed Schonberg + + * sem_attr.adb (Check_Stream_Attribute): If restriction + No_Default_Stream_Attributes is active, it is illegal to use a + predefined elementary type stream attribute either by itself, + or more importantly as part of the attribute subprogram for a + composite type. However, if the broader restriction No_Streams + is active, then stream operations are not generated, and there + is no error. + +2013-04-12 Robert Dewar + + * gnatbind.adb: Minor reformatting. + +2013-04-12 Bob Duff + + * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a + call only in the static elaboration model. + +2013-04-12 Hristian Kirtchev + + * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency + clause where both input and output lists are null. + (Analyze_Pragma): Update the grammar of pragma Depends. + +2013-04-12 Vincent Celier + + * gnatbind.adb (No_Restriction_List): Exclude restrictions that + take a parameter value, not a count. + * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure. + * projects.texi: Complete documentation of attribute Roots. + +2013-04-12 Thomas Quinot + + * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb, + sem_ch3.adb: Minor reformatting. + * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation + improvement: note that the computation is pessimistic for bit + packed arrays. + * gnat_rm.texi (Range_Length): Fix minor error in description + of attribute. + +2013-04-12 Hristian Kirtchev + + * aspects.adb (Find_Aspect): New routine. + (Find_Value_Of_Aspect): New routine. + (Has_Aspect): Reimplemented. + * aspects.ads (Find_Aspect): New routine. + (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect. + * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect. + * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect. + * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect. + * sem_ch5.adb (Analyze_Iterator_Specification): Update + the call to Find_Aspect. Use function Has_Aspect for better + readability. + (Preanalyze_Range): Use function Has_Aspect for better readability. + * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect. + * sem_prag.adb (Analyze_Pragma): There is no longer need to + look at the parent to extract the corresponding pragma for + aspect Global. + +2013-04-12 Robert Dewar + + * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb, + restrict.ads: Minor reformatting. + +2013-04-12 Ed Schonberg + + * lib-xref.adb: Retrieve original name of classwide type if any. + +2013-04-12 Thomas Quinot + + * exp_ch11.ads: Minor reformatting. + +2013-04-12 Hristian Kirtchev + + * aspects.adb: Alphabetize subprogram bodies in this unit. Add + an entry for Aspect_Ghost in the table of canonical aspects. + (Has_Aspect): New routine. + * aspects.ads: Add Aspect_Ghost to all relevant + tables. Alphabetize subprograms in this unit. + (Has_Aspect): New routine. + * einfo.adb: Add with and use clauses for Aspects. + (Is_Ghost_Function): New routine. + * einfo.ads: Add new synthesized attribute Is_Ghost_Function and + update the structure of the related nodes. + (Is_Ghost_Function): New routine. + * exp_ch4.adb (Find_Enclosing_Context): Use routine + Is_Body_Or_Package_Declaration to terminate a search. + (Is_Body_Or_Unit): Removed. + * exp_util.adb (Within_Case_Or_If_Expression): Use routine + Is_Body_Or_Package_Declaration to terminate a search. + * par-prag.adb: Add pragma Ghost to the list of pragmas that do + not need special processing by the parser. + * sem_attr.adb (Analyze_Access_Attribute): Detect an + illegal use of 'Access where the prefix is a ghost function. + (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration + to terminate a search. (Check_References_In_Prefix): Use routine + Is_Body_Or_Package_Declaration to terminate a search. + * sem_ch4.adb (Analyze_Call): Mark a function when it appears + inside an assertion expression. Verify the legality of a call + to a ghost function. + (Check_Ghost_Function_Call): New routine. + * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move + the setting of attribute In_Assertion_Expression to Analyze_Call. + (Check_Overriding_Indicator): Detect an illegal attempt to + override a function with a ghost function. + * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of + a ghost function as a generic actual. + * sem_elab.adb (Check_Internal_Call_Continue): Update the call + to In_Assertion. + * sem_prag.adb: Add an entry for pragma Ghost in the table + of significant arguments. + (Analyze_Pragma): Do not analyze + an "others" case guard. Add processing for pragma Ghost. Use + Preanalyze_Assert_Expression when analyzing the expression of + pragmas Loop_Invariant and Loop_Variant. + * sem_util.adb (Get_Subprogram_Entity): Reimplemented. + (Is_Body_Or_Package_Declaration): New routine. + * sem_util.ads: Alphabetize subprotrams in this unit. + (Is_Body_Or_Package_Declaration): New routine. + * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression. + (Set_In_Assertion): Rename to Set_In_Assertion_Expression. + * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression + to better reflect its use. Update all places that mention the flag. + (In_Assertion): Rename to In_Assertion_Expression. Update + related pragma Inline. (Set_In_Assertion): Rename to + Set_In_Assertion_Expression. Update related pragma Inline. + * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma + id Pragma_Ghost. + +2013-04-12 Arnaud Charlet + + * sem_prag.adb (Set_Imported): Do not generate error for multiple + Import in CodePeer mode. + * s-rident.ads: Fix minor typo. + +2013-04-12 Ed Schonberg + + * checks.adb (Insert_Valid_Check): Do not insert validity check + in the body of the generated predicate function, to prevent + infinite recursion. + +2013-04-12 Ed Schonberg + + * s-rident.ads: Add various missing Ada 2012 restrictions: + No_Access_Parameter_Allocators, No_Coextensions, + No_Use_Of_Attribute, No_Use_Of_Pragma. + * snames.ads-tmpl: Add corresponding names. + * restrict.ads restrict.adb: Subprograms and data structures to + handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma. + * sem_ch4.adb: Correct name of restrictions is + No_Standard_Allocators_After_Elaboration. + * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check + violation of restriction No_Use_Of_Attribute. + * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): + Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute. + (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma. + * sem_res.adb: Check restrictions No_Access_Parameter_Allocators + and No_Coextensions. + * bcheck.adb: Correct name of restrictions is + No_Standard_Allocators_After_Elaboration. + * gnatbind.adb: Correct name of restrictions is + No_Standard_Allocators_After_Elaboration. + +2013-04-12 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function): + Correct error message format. + +2013-04-12 Robert Dewar + + * sem_attr.adb: Minor reformatting. + +2013-04-12 Ed Schonberg + + * sem_elab.adb (Within_Elaborate_All): Do not examine a context + item that has not been analyzed, because the unit may have errors, + or the context item may come from a proper unit inserted at the + point of a stub and not analyzed yet. + +2013-04-12 Thomas Quinot + + * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info, + List_Record_Info): Also include scalar storage order information in + output. + +2013-04-12 Yannick Moy + + * sem_ch6.adb (Process_Contract_Cases): Update code to apply to + Contract_Cases instead of Contract_Case pragma. + +2013-04-12 Robert Dewar + + * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting. + +2013-04-12 Yannick Moy + + * sem_attr.adb (Analyze_Attribute): Update analyse of + Attribute_Old and Attribute_Result so they are allowed in the + right-hand-side of an association in a Contract_Cases pragma. + * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of + the expressions in a Contract_Cases pragma. + +2013-04-12 Robert Dewar + + * sem.ads, opt.ads: Minor comment edits. + * sem_warn.adb, sem_ch6.adb: Minor reformatting. + +2013-04-12 Claire Dross + + * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate, + Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed, + not suitable for formal analysis. + +2013-04-12 Ed Schonberg + + * sem_prag.adb (Analyze_Abstract_State): Use Defining entity + to locate package entity, which may be a child unit. + +2013-04-12 Thomas Quinot + + * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If + the specified timeout is 0, do not attempt to determine whether the + connection succeeded. + +2013-04-12 Doug Rupp + + * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos. + +2013-04-12 Doug Rupp + + * s-fileio.adb: Minor reformatting. + +2013-04-12 Ed Schonberg + + * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if + the last statement in the analyzed loop is an unconditional + exit statement. + +2013-04-12 Robert Dewar + + * opt.ads (Style_Check_Main): New switch. + * sem.adb (Semantics): Set Style_Check flag properly for new + unit to be analyzed. + * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check, + the proper setting of this flag is now part of the Semantics + procedure. + * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main + for -gnatg and -gnaty + +2013-04-12 Doug Rupp + + * s-crtl.ads (fopen, freopen): Add vms_form parameter + * i-cstrea.ads (fopen, freopen): Likewise. + * adaint.h (__gnat_fopen, __gnat_freopen): Likewise. + * adaint.c (__gnat_fopen, __gnat_freopen): Likewise. + [VMS]: Split out RMS keys and call CRTL function appropriately. + * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New + subprograms. + (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with + vms_form + * gnat_rm.texi: Document implemented RMS keys. + +2013-04-12 Hristian Kirtchev + + * sem_ch13.adb (Analyze_Aspect_Specifications): + Insert the corresponding pragma for aspect Abstract_State at + the top of the visible declarations of the related package. + Previously this was only done when the package is a compilation + unit. + +2013-04-12 Arnaud Charlet + + * gnat_ugn.texi: Further menu clean ups. + * sem_prag.adb, opt.ads: Minor reformatting. + * sem_util.ads: Minor comment fix. + +2013-04-12 Hristian Kirtchev + + * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect + Depends is now a delayed aspect. The delay is required + due to the interplay between aspects Depends and Global. + (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends. + * sem_prag.adb: Reformat various error messages. + (Add_Item): New subsidiary routine. + (Analyze_Pragma): Add new variables + Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The + analysis of pragma Depends now has the capability to check + the proper mode and usage of subprogram inputs and outputs. + (Appears_In): New routine. + (Check_Function_Return): New routine. + (Check_Mode): New routine. + (Check_Usage): New routine. + (Collect_Subprogram_Inputs_Outputs): New routine. + +2013-04-12 Bob Duff + + * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope + stack entry. + +2013-04-12 Robert Dewar + + * switch-c.adb: Minor fix to wording of error message for + -gnatet/eT. + +2013-04-12 Robert Dewar + + * impunit.adb: Add s-multip and s-mudido to list of impl defined + system units. + * gnat_rm.texi: Add documentation for + System.Multiprocessors[.Dispatching_Domains]. + +2013-04-12 Ben Brosgol + + * gnat_ugn.texi: Completion of menu cleanups. + +2013-04-12 Arnaud Charlet + + * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules + in Relaxed_RM_Semantics. + +2013-04-12 Arnaud Charlet + + * set_targ.adb (elab code): Add support for non gcc back-ends + where save_argv is null. + +2013-04-12 Robert Dewar + + * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name. + * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access + type (Target_Dependent_Info_Write): Add _Name, now an access type. + * set_targ.adb (Write_Target_Dependent_Values): Use name + from -gnatet switch stored in Target_Dependent_Info_Write_Name + (Read_Target_Dependent_Values): Use name from -gnateT switch + stored in Target_Dependent_Info_Read_Name. + * switch-c.adb: New form of -gnatet and -gnateT switches. + * usage.adb: New form of -gnatet and -gnateT switches with + file name. + +2013-04-11 Eric Botcazou + + * gcc-interface/decl.c (elaborate_expression_1): Skip only constant + arithmetics when looking for a read-only variable in the expression. + +2013-04-11 Javier Miranda + + * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in + interface thunks since it is performed at the caller side. + (Expand_Simple_Function_Return): No accessibility check needed in thunks + since the check is done by the target routine. + +2013-04-11 Ed Schonberg + + * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze + expression with type Any_Priority. + * exp_ch9.adb (Initialize_Protection): Check that the value + of the priority expression is within the bounds of the proper + priority type. + +2013-04-11 Robert Dewar + + * sem_prag.adb, prj-env.adb: Minor reformatting. + +2013-04-11 Ben Brosgol + + * gnat_ugn.texi: Clean ups. + +2013-04-11 Yannick Moy + + * set_targ.adb: Minor comment update. + +2013-04-11 Pascal Obry + + * gnat_ugn.texi: Remove obsolete comment about DLL calling + convention. + +2013-04-11 Javier Miranda + + * exp_ch6.adb (Expand_Call): For the call to the target primitive + of an interface thunks do not compute the extra actuals; just + propagate the extra actuals received by the thunk. + * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute + Thunk_Entity. + * sem_ch6.adb (Create_Extra_Formals): Do not generate extra + formals in interface thunks whose target primitive has no extra + formals. + +2013-04-11 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Detect + a renaming by looking at the Renamed_Object attribute. + (Is_Renaming): Removed. + +2013-04-11 Vincent Celier + + * prj-env.adb (Initialize_Default_Project_Path): Take + into account a project path file, specified by environment + variable GPR_PROJECT_PATH_FILE, before taking into account + GPR_PROJECT_PATH. + * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE + +2013-04-11 Ed Schonberg + + * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb, + a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads, + a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb, + a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads, + a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb, + a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb, + a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb, + a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads: + Move Iterator operations from body to private part of spec. + +2013-04-11 Eric Botcazou + + * ttypes.ads, get_targ.ads: More minor rewording of comments. + +2013-04-11 Johannes Kanig + + * debug.adb: Document use of switch -gnatd.Z. + +2013-04-11 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now + support renamings of entire objects. Legal renamings are replaced by + the object they rename. + (Is_Renaming): New routine. + +2013-04-11 Yannick Moy + + * set_targ.adb, opt.ads: Minor changes in comments. + +2013-04-11 Ben Brosgol + + * gnat_ugn.texi: Minor clean ups. + +2013-04-11 Robert Dewar + + * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging + function p from Nlists to Treepr. + +2013-04-11 Ed Schonberg + + * sem_disp.adb (Check_Dispatching_Context): If the context is + a contract for a null procedure defer error reporting until + postcondition body is created. + * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a + null procedure, complete the analysis of its contracts so that + calls within classwide conditions are properly rewritten as + dispatching calls. + +2013-04-11 Thomas Quinot + + * sem_ch10.adb, sem_ch12.adb: Minor reformatting. + +2013-04-11 Robert Dewar + + * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting. + +2013-04-11 Robert Dewar + + * atree.adb, atree.ads (Node31): New function. + (Set_Node31): New procedure. + +2013-04-11 Robert Dewar + + * errout.ads: Minor typo correction. + +2013-04-11 Javier Miranda + + * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute. + +2013-04-11 Robert Dewar + + * back_end.adb (Register_Back_End_Types): Moved to Get_Targ + * back_end.ads (C_String): Moved to Get_Targ + (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types): + Moved to Get_Targ. + * cstand.adb (Register_Float_Type): New interface + (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table. + * get_targ.adb (Register_Back_End_Types): Moved here from + Back_End. + * get_targ.ads (C_String): Moved here from Back_End + (Register_Type_Proc): Moved here from Back_End + (Register_Back_End_Types): here from Back_End. + * gnat1drv.adb (GGnat11drv): Add call to + Write_Target_Dependent_Values; + * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing + obsolete target dependent info. + * opt.ads (Generate_Target_Dependent_Info): + Removed (Target_Dependent_Info_Read): New flag + (Target_Dependent_Info_Write): New flag + * output.adb: Minor comment change + * s-os_lib.ads: Minor reformatting + * set_targ.ads, set_targ.adb: Minor reformatting. + * switch-c.adb (Scan_Switches.First_Ptr): New variable + (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first + (Scan_Front_End_Switches): Handle -gnatet, -gnateT + * ttypes.ads: Remove documentation section on target dependent + info in ali file Remove four letter codes, no longer used Instead + of using Get_Targ.Get_xxx, we use Set_Targ.xxx + * usage.adb: Add usage lines for -gnatet/-gnateT + * gcc-interface/Make-lang.in: Update dependencies. + +2013-04-11 Thomas Quinot + + * sem_ch4.adb: Update documentation. + * sinfo.ads (N_Expression_With_Actions): Ditto. + +2013-04-11 Hristian Kirtchev + + * sem_ch13.adb (Analyze_Aspect_Specifications): + Add a guard to prevent the double insertion of the same aspect + into a rep item list. This previously led to a circularity. + +2013-04-11 Ed Schonberg + + * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute + reference if the prefix is the dereference of an anonymous access + to subprogram type. + * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle + properly a reference to the current instance of a protected type + from within a protected subprogram. + * sem_res.adb (Find_Unique_Access_Type): Treat + Attribute_Access_Type like Allocator_Type when resolving an + equality operator. + +2013-04-11 Arnaud Charlet + + * xgnatugn.adb: Remove obsolete comments. + +2013-04-11 Robert Dewar + + * back_end.ads, back_end.adb: Minor reformatting. + * set_targ.ads, set_targ.adb: New files. + +2013-04-11 Hristian Kirtchev + + * sem_case.adb (Check_Against_Predicate): New routine. + (Check_Choices): When the type covered by the list of choices + is a static subtype with a static predicate, check all choices + agains the predicate. + (Issue_Msg): All versions removed. + (Missing_Choice): New routines. + * sem_ch4.adb: Code and comment reformatting. + (Analyze_Case_Expression): Do not check the choices when the case + expression is being preanalyzed and the type of the expression + is a subtype with a static predicate. + (Has_Static_Predicate): New routine. + * sem_ch13.adb: Code and comment reformatting. (Build_Range): + Always build a range even if the low and hi bounds denote the + same value. This is needed by the machinery in Check_Choices. + (Build_Static_Predicate): Always build a range even if the low and + hi bounds denote the same value. This is needed by the machinery + in Check_Choices. + +2013-04-11 Robert Dewar + + * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor + reformatting. + +2013-04-11 Doug Rupp + + * gnatlink.adb: Fold program basename to lower case on VMS for + consistency. + +2013-04-11 Matthew Heaney + + * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before + entering loop. + +2013-04-11 Arnaud Charlet + + * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear). + +2013-04-11 Arnaud Charlet + + * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly + needed, and seems to confuse some versions of makeinfo. + +2013-04-11 Javier Miranda + + * einfo.adb (Is_Thunk): Remove assertion. + (Set_Is_Thunk): Add assertion. + * einfo.ads (Is_Thunk): Complete documentation. + * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup. + * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util + (Is_Variable_Size_Record): Moved to sem_util + * exp_ch6.adb (Expand_Call): Code cleanup. + (Expand_N_Extended_Return_Statement): Code cleanup. + (Expand_Simple_Function_Return): Code cleanup. + * exp_disp.adb Remove dependency on exp_ch3 + (Expand_Interface_Thunk): Add minimum decoration needed to set + attribute Is_Thunk. + * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util + * sem_util.ad[sb] (Is_Constant_Bound): Moved from + sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3 + (Is_Variable_Size_Record): Moved from exp_ch3 + +2013-04-11 Javier Miranda + + * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do + not add cleanup actions in thunks associated with interface types. + * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to + the package spec. + * exp_ch4.adb (Tagged_Conversion): Update call to + Expand_Interface_Conversion since the parameter Is_Static is no + longer needed. + * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding + assertion to ensure that interface thunks are never handled by + this routine. + (Expand_N_Simple_Function_Return): Do not rewrite this statement + as an extended return statement in interface thunks, and do not + perform copy in the secondary stack if the return statement is + located in a thunk. + * exp_disp.adb (Expand_Dispatching_Call): No longer displace + the pointer to the returned object in functions returning interface + types. + (Expand_Interface_Thunk): For functions returning interface types + displace the pointer to the returned object. + (Expand_Interface_Conversion): Remove formal + Is_Static since this subprogram can now evaluate it locally. + * sem_ch3.adb (Add_Internal_Interface_Entities): For functions + propagate the type returned by the covered interface primitive to + the internal interface entity. Needed by the thunk to generate + the code which displaces "this" to reference the corresponding + secondary dispatch table. + * sem_disp.adb (Propagate_Tag): Update call to + Expand_Interface_Conversion since the parameter Is_Static is no + longer needed. + * sem_res.adb (Resolve_Type_Conversion): Update calls to + Expand_Interface_Conversion since the parameter Is_Static is no + longer needed plus code cleanup. + +2013-04-11 Eric Botcazou + + * init.c (RETURN_ADDR_OFFSET): Delete as unused. + +2013-04-11 Robert Dewar + + * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb, + a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting. + +2013-04-11 Yannick Moy + + * exp_ch4.adb (Expand_N_Selected_Component): Do not expand + discriminant check for Unchecked_Union. + * sem_res.adb (Resolve_Selected_Component): Set flag + Do_Discriminant_Check even when expansion is not performed. + * sinfo.ads (Do_Discriminant_Check): Update documentation for the case + of Unchecked_Union. + +2013-04-11 Thomas Quinot + + * sem_ch13.adb (Same_Representation): Two types with different scalar + storage order never have the same representation. + +2013-04-11 Arnaud Charlet + + * xgnatugn.adb (Push_Conditional): Simplify handling, + no longer need to keep track of "excluding" sections. + (Currently_Excluding): Removed. + (Process_Source_File): + Set unw/vms flag so that texinfo can do the whole handling of + @ifset/@ifclear sections. Fix handling of nested @ifset/@ifclear + sections. + * gnat_ugn.texi: Add a section on performing unassisted install + on Windows. + +2013-04-11 Johannes Kanig + + * debug.adb: Document usage of -gnatd.Q switch. + +2013-04-11 Matthew Heaney + + * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks + before element comparisons. + (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint): + Ditto. + * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before + element comparisons. + * a-rbtgso.adb (Difference, Intersection): Adjust locks + before element comparisons. + (Is_Subset, Overlap): Ditto + (Symmetric_Difference, Union): Ditto + * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks + before element comparisons. + (Set_Subset, Set_Overlap): Ditto + (Set_Symmetric_Difference, Set_Union): Ditto + * a-coorse.adb, a-ciorse.adb, a-cborse.adb + (Update_Element_Preserving_Key): Adjust locks before element + comparisons (Replace_Element): Ditto + +2013-04-11 Pascal Obry + + * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves + attribute. + +2013-04-11 Ed Schonberg + + * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of + Expand_N_Object_Declaration, used to construct an aggregate + with static components whenever possible, so that objects of a + discriminated type can be initialized without calling the init. + proc for the type. + +2013-04-11 Vincent Celier + + * prj-makr.adb (Process_Directory): On VMS, always delete, + then recreate the temporary file with Create_Output_Text_File, + otherwise the output redirection does not work properly. + +2013-04-11 Eric Botcazou + + * urealp.ads: Fix minor typo. + +2013-04-11 Fabien Chouteau + + * cio.c (mktemp): Don't use tmpnam function from the + system on VxWorks in kernel mode. + +2013-04-11 Vincent Celier + + * make.adb (Compile): Clarify the error message reported + when gnatmake refuses to compile a runtime source. + (Start_Compile_If_Possible): Ditto. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Add documentation about -gnatc and gnatmake. + +2013-04-11 Vincent Celier + + * switch-c.adb: Document internal switches. + * usage.adb: Remove lines for internal switches: -gnatea, -gnateO, + -gnatez and -gnateO. + +2013-04-11 Ed Schonberg + + * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub. + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on + subprogram stubs. + * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated + pre/post pragmas at once before analyzing the proper body. + * sem_prag.adb (Chain_PPC): Handle pragma that comes from an + aspect on a subprogram stub. + * aspects.adb: Aspect specifications can appear on a + subprogram_Body_Stub. + +2013-04-11 Vincent Celier + + * gnatname.adb: Minor comment fix. + +2013-04-11 Vincent Celier + + * prj-makr.adb (Process_Directory): Create a new temporary + file for each invocation of the compiler, in directory pointed + by environment variable TMPDIR if it exists. + +2013-04-11 Arnaud Charlet + + * gnat_ugn.texi: Minor editing/clean ups. + +2013-04-11 Ed Schonberg + + * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly + extracted from Analyze_Subprogram_Declaration, to handle null + procedure declarations that in ada 2012 can be completions of + previous declarations. + +2013-04-11 Hristian Kirtchev + + * sem_prag.adb (Entity_Of): Moved to Exp_Util. + * exp_util.ads, exp_util.adb (Entity_Of): New routine. + +2013-04-11 Robert Dewar + + * g-spipat.ads: Minor comment fix. + +2013-04-11 Robert Dewar + + * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor + reformatting. + +2013-04-11 Thomas Quinot + + * exp_util.ads (Fully_Qualified_Name_String): Document that the + constructed literal is the entity name in all upper case. + +2013-04-11 Thomas Quinot + + * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of + check for implementation defined identifiers. + +2013-04-11 Yannick Moy + + * checks.adb (Apply_Type_Conversion_Checks): Add an explanation + of why range check and length are put on different nodes. + * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks + when doing their expansion. + +2013-04-11 Ed Schonberg + + * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor): + New function to implement the notion introduced in RM 7.3.1 + (5.2/3): in a child unit, a derived type is within the derivation + class of an ancestor declared in a parent unit, even if there + is an intermediate derivation that does not see the full view + of that ancestor. + * sem_res.adb (Valid_Conversion): if all else fails, examine if an + incomplete view of an ancestor makes a numeric conversion legal. + +2013-04-11 Ed Schonberg + + * sem_ch6.adb: in Ada2012 operators can only have in + parameters. + +2013-04-11 Vincent Celier + + * makeutl.adb (Create_Binder_Mapping_File): Do not put into + the mapping file ALI files of sources that have been replaced. + +2013-04-11 Vincent Celier + + * projects.texi: Add subsection Duplicate Sources in Projects. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/** + +2013-04-11 Arnaud Charlet + + * init.c (__gnat_install_handler): Only set up an alternate + stack when installing a signal handler for SIGSEGV. + +2013-04-11 Thomas Quinot + + * g-socket.adb (Connect_Socket, timeout version): Call + underlying connect operation directly, not through the 2-argument + Connect_Socket thick binding, in order to avoid raising a junk + exception for the EINPROGRESS return. + +2013-04-11 Robert Dewar + + * a-cdlili.adb: Minor addition of pragma Warnings (Off). + +2013-04-11 Robert Dewar + + * hostparm.ads: Minor reformatting. + +2013-04-11 Hristian Kirtchev + + * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant + tables. + * elists.ads, elists.adb (Contains): New routine. + * par-prag.adb: Pragma Depends does not need any special treatment + by the parser. + * sem_ch13.adb (Analyze_Aspect_Specifications): + Transform aspect Depends into a corresponding pragma. + (Check_Aspect_At_Freeze_Point): Aspect Depends does not need + inspection at its freeze point. + * sem_prag.adb (Analyze_Pragma): Perform analysis and + normalization of pragma Depends. Remove the use of function + Is_Duplicate_Item. Use End_Scope to uninstalle the formal + parameters of a subprogram. Add a value for pragma Depends in + table Sig_Flags. + (Is_Duplicate_Item): Removed. + * snames.ads-tmpl: Add predefined name for Depends as well as + a pragma identifier. + +2013-04-11 Arnaud Charlet + + * gnat1drv.adb: Minor code clean up. + +2013-04-11 Arnaud Charlet + + * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause): + Ignore enumeration rep clauses by default in CodePeer mode, unless + -gnatd.I is specified. + +2013-04-11 Ed Schonberg + + * sem_util.adb (Safe_To_Capture_Value): If the node belongs to + an expression that has been attached to the else_actions of an + if-expression, the capture is not safe. + +2013-04-11 Yannick Moy + + * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type + conversion for arrays. + +2013-04-11 Robert Dewar + + * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting. + +2013-04-11 Johannes Kanig + + * adabkend.adb: Minor comment addition. + +2013-04-11 Matthew Heaney + + * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment + lock counts before entering loop. + (Find): Ditto. + (Is_Sorted, Merge, Sort): Ditto. + (Reverse_Find): Ditto. + (Splice_Internal): Internal operation to refactor splicing logic. + (Splice): Some logic moved into Splice_Internal. + +2013-04-11 Johannes Kanig + + * adabkend.adb (Scan_Compiler_Arguments): Do not call + Set_Output_Object_File_Name in Alfa_Mode + * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account. + * opt.ads: Fix documentation. + +2013-04-11 Robert Dewar + + * sem_res.adb: Minor code reorganization and comment fixes. + * sem_type.adb: Minor reformatting. + +2013-04-11 Hristian Kirtchev + + * exp_ch4.adb (Process_Transient_Object): Add new + local variable Fin_Call. Remove and explain ??? comment. Use the + Actions of logical operators "and then" and "or else" to insert + the generated finalization call. + +2013-04-11 Eric Botcazou + + * gnat_rm.texi: Fix typo. + +2013-04-11 Ed Schonberg + + * sem_res.adb: Minor reformatting. + +2013-04-11 Robert Dewar + + * atree.h: Add declarations for Flag255-Flag289 Fix declaration + of Field30 (was wrong, but no effect, since not yet referenced by + back end) Add declarations for Field31-Field35 Add declarations + for Node31-Node35. + * einfo.ads, einfo.adb (Has_Invariants): No longer applies to + procedures. + (Has_Predicates): No longer applies to functions. + (Is_Predicate_Function): New flag. + (Is_Predicate_Function_M): New flag. + (Is_Invariant_Procedure): New flag. + (Predicate_Function_M): New function. + (Set_Predicate_Function_M): New procedure. + * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special + case of appearing in predicate used for membership test. + * exp_ch3.adb (Insert_Component_Invariant_Checks): Set + Is_Invariant_Procedure flag. + * exp_ch4.adb (Expand_Op_In): Call special predicate function + that takes care of raise_expression nodes in the predicate. + * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for + membership case. + * sem_ch13.adb (Build_Predicate_Functions): New name for + Build_Predicate_Function. Major rewrite to take care of raise + expression in predicate for membership tests. + * sem_res.adb (Resolve_Actuals): Include both predicate functions + in defense against infinite predicate function loops. + * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag. + +2013-04-11 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2013-04-11 Ed Schonberg + + * lib-xref.adb: Generate reference for component of anonymous + access type. + +2013-04-11 Robert Dewar + + * stand.ads: Minor reformatting. + +2013-04-11 Matthew Heaney + + * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock + counts before entering loop. + (Find, Find_Index): Ditto. + (Is_Sorted, Merge, Sort): Ditto. + (Reverse_Find, Reverse_Find_Index): Ditto. + +2013-04-11 Robert Dewar + + * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure. + * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression. + * expander.adb: Add call to Expand_N_Raise_Expression. + * par-ch11.adb (P_Raise_Expression): New procedure. + * par-ch4.adb (P_Relation): Handle Raise_Expression. + * par.adb (P_Raise_Expression): New procedure. + * sem.adb: Add handling for N_Raise_Expression. + * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure. + * sem_res.adb (Resolve): Add handling for N_Raise_Expression. + * sinfo.ads, sinfo.adb (N_Raise_Expression): New node. + * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression. + * stand.ads (Any_Type): Document use with N_Raise_Expression. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Remove section "The Development Environments" + now that all predefined attributes are documented, including + those in package IDE. + +2013-04-11 Ed Schonberg + + * sem_ch6.adb: Preserve parent link in copy of expression. + +2013-04-11 Vincent Celier + + * projects.texi: Complete rewrite of the subsection Attributes + in section "Project file Reference". + +2013-04-11 Robert Dewar + + * exp_ch4.adb: Minor reformatting. + +2013-04-11 Robert Dewar + + * exp_ch4.adb (Expand_Concatenate): Remove wrapping in + expression-with-actions node. No longer needed given fix to + sem_prag and caused loss of some useful warnings. + * sem.ads: Minor reformatting. + * sem_prag.adb (Check_Disabled): Removed, to be replaced by not + Check_Enabled. These two routines were curiously incompatible + causing confusion. + (Analyze_Pragma, case Check): Make sure we do + not expand the string argument if the check is disabled. Avoid + use of Check_Disabled, which resulted in missing analysis in + some cases. + * sem_prag.ads (Check_Disabled): Removed, to be replaced by not + Check_Enabled. These two routines were curiously incompatible + causing confusion. + +2013-04-11 Hristian Kirtchev + + * exp_ch4.adb (Process_Transient_Object): Use + an unchecked conversion when associating a transient controlled + object with its "hook". + +2013-04-11 Ed Schonberg + + * sem_prag.adb (Analyze_Pragma, case + Preelaborable_Initialization): The pragma is legal if it comes + from an aspect on the private view of the type, even though its + analysis point takes place later at the freeze point. + +2013-04-11 Robert Dewar + + * sem_ch6.adb: Minor reformatting. + +2013-04-11 Yannick Moy + + * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to + read ALI files with No_Object=True in Alfa mode. + * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether + this is during frame condition generation of translation to Why. + +2013-04-11 Robert Dewar + + * exp_ch4.adb: Minor code reorganization + * types.ads: Minor reformatting. + +2013-04-11 Johannes Kanig + + * opt.ads New global boolean Frame_Condition_Mode to avoid + referring to command line switch. + * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G + is present, and disable Code generation in that case. Disable + ALI file generation when switch is *not* present. + +2013-04-11 Ed Schonberg + + * sem_ch6.adb (Analyze_Expression_Function): Perform the + pre-analysis on a copy of the expression, to prevent downstream + visbility issues involving operators and instantiations. + +2013-04-11 Johannes Kanig + + * debug.adb: Reservation and documentation for -gnatd.G switch. + * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G + switch, and set ALI file generation accordingly. + +2013-04-11 Robert Dewar + + * exp_ch4.adb, exp_dist.adb: Minor reformatting. + * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that + check names introduced with pragma Check_Name are suppressed by -gnatp. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project + Files" from projects.texi to gnat_ugn.texi. + +2013-04-11 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + +2013-04-11 Yannick Moy + + * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa + mode. + +2013-04-11 Hristian Kirtchev + + * exp_ch4.adb (Expand_N_Allocator): Detect the + allocation of an anonymous controlled object where the type of + the context is named. Use the pool and finalization master of + the named access type to allocate the object. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Remove most mentions of gprbuild. + * projects.texi: Remove all mentions of asociative array + attributes. + +2013-04-11 Robert Dewar + + * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb, + opt.ads, sem_ch13.adb: Minor reformatting. + * debug.adb: Minor comment fix (remove junk .I doc). + +2013-04-11 Thomas Quinot + + * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case + PolyORB): Bump to 6. + (Exp_Dist.PolyORB_Support): Replace TC_Build with + Build_Complex_TC. + +2013-04-11 Arnaud Charlet + + * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb, + exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag. + Enable this flag in CodePeer mode, and also via -gnatd.M. + Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics. + +2013-04-11 Ed Schonberg + + * sem_ch8.adb (Check_Constrained_Object): If a subtype is created + from the renamed object in an object renaming declaration with + an unconstrained nominal subtype, freeze the created subtype at + once, to prevent order of elaboration issues in the backend. + +2013-04-11 Arnaud Charlet + + * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size + in particular in CodePeer mode. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Add documentation for backup copies of project + files for gnatname. + +2013-04-11 Tristan Gingold + + * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile + pragma list. + +2013-04-11 Vincent Celier + + * gnatname.adb (Scan_Args): Recognize new switch --no-backup + (Usage): Add line for --no-backup. + * opt.ads (No_Backup): New Boolean variable, initialized to False. + (Ada_Version_Default): Switch to Ada 2012 by default. + * prj-makr.adb (Initialize): Create a backup for an existing + project file if gnatname is not invoked with --no-backup. + +2013-04-11 Thomas Quinot + + * exp_ch4.adb: Minor code improvement: replace various calls to + Make_If_Statement in expansion with Make_Implicit_If_Statement. + +2013-04-11 Eric Botcazou + + * ali.adb: Fix minor typo. + +2013-04-11 Thomas Quinot + + * exp_ch4.adb (Find_Enclosing_Context): Add missing case of + N_Procedure_Call_Statement. + +2013-04-11 Robert Dewar + + * debug.adb: Minor comment fix. + +2013-04-11 Johannes Kanig + + * debug.adb: Remove comment for -gnatd.G. + +2013-04-11 Thomas Quinot + + * exp_ch4.adb (Expand_Record_Equality.Suitable_Element): + Remove recursive routine, replace with... + (Expand_Record_Equality.Element_To_Compare): New subroutine, + implement iterative search for next element to compare. + Add explanatory comment in the tagged case. + +2013-04-11 Ed Schonberg + + * sem_ch5.adb: remove spurious warning from non-empty loop. + * sem_ch8.adb (Enclosing_Instance): Make public to other routines + in the package, in order to suppress redundant semantic checks + on subprogram renamings in nested instantiations. + +2013-04-11 Robert Dewar + + * errout.ads: Minor reformatting. + * sem_eval.adb (Why_Not_Static): Now issues continuation messages + (Why_Not_Static): Test for aggregates behind string literals. + * sem_eval.ads (Why_Not_Static): Now issues continuation messages. + +2013-04-11 Robert Dewar + + * exp_ch4.adb (Expand_Concatenation): Wrap expansion in + Expressions_With_Actions. + +2013-04-11 Ed Schonberg + + * sem_ch6.adb (Base_Types_Match): For an actual type in an + instance, the base type may itself be a subtype, so find true + base type to determine compatibility. + +2013-04-11 Robert Dewar + + * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb. + makeutl.adb, sem_ch8.adb: Minor reformatting. + +2013-04-11 Vincent Celier + + * gnat_ugn.texi: Minor fixes for VMS. + * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?. + +2013-04-11 Robert Dewar + + * usage.adb (Usage): Minor edit to -gnatW message + +2013-04-11 Robert Dewar + + * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling + others for string literal case. Also add big ??? comment about + this new code, which should be redundant, but is not. + * sem_eval.adb (Eval_Concatenation): Handle non-static case + properly (Eval_String_Literal): Handle non-static literal properly + +2013-03-20 Tobias Burnus + + * i-fortra.ads: Update comment, add Ada 2012's optional + Star and Kind data types for enhanced interoperability. + +2013-03-16 Eric Botcazou + + * gnatvsn.ads (Library_Version): Bump to 4.9. + +2013-03-08 Cesar Strauss + + PR ada/52123 + * seh_init.c (Raise_From_Signal_Handler): Declare as no-return. + (__gnat_SEH_error_handler): Likewise. Remove final return. + +2013-03-06 Eric Botcazou + + * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring + out for an unimplemented attribute. + +2013-03-06 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around + a misaligned integral type if a size is specified for the field. + +2013-03-06 Eric Botcazou + + * gcc-interface/trans.c (Raise_Error_to_gnu) : + Record the unpadded type of the index type on the RCI stack. + +2013-03-06 Eric Botcazou + + * gcc-interface/trans.c (emit_range_check): Assert that the range type + is a numerical type and remove useless local variables. + +2013-02-25 Eric Botcazou + + * gcc-interface/ada-tree.h: Back out change accidentally committed. + +2013-02-21 Jakub Jelinek + + PR bootstrap/56258 + * gnat-style.texi (@title): Remove @hfill. + * projects.texi: Avoid line wrapping inside of @pxref or @xref. + +2013-02-14 Rainer Emrich + + PR target/52123 + * tracebak.c: Cast from pointer via FARPROC. + +2013-02-07 Simon Wright + + PR target/50678 + * init.c (__darwin_major_version): New function for x86-64/Darwin. + (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround + on Darwin 12 and above. + +2013-02-06 Rainer Emrich + + PR target/52123 + * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via + SECURITY_DESCRIPTOR * + (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE + (__gnat_portable_spawn): Fix cast to char* const* + (add_handle): Cast from pointer via void ** + (add_handle): Cast from pointer via int * + (__gnat_locate_exec_on_path): Cast from pointer via TCHAR * + (__gnat_locate_exec_on_path): Cast from pointer via char * + * initialize.c (append_arg): Cast from pointer via LPWSTR + (__gnat_initialize): Cast from pointer via LPWSTR + * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC + +2013-02-06 Hristian Kirtchev + + * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations + target pairs on VxWorks 5 only. + +2013-02-06 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + +2013-02-06 Vincent Celier + + * prj-proc.adb (Process_Aggregated_Projects): Use a new project + node tree for each project tree rooted at an aggregated project. + +2013-02-06 Hristian Kirtchev + + * sem_util.adb (Is_Interface_Conversion): New routine. + (Object_Access_Level): Detect an interface conversion + that has been rewritten into a different construct. Use the + original form of the conversion to find the access level of + the operand. + +2013-02-06 Eric Botcazou + + * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201. + (Has_Pragma_No_Inline): Declare and mark as inline. + (Set_Has_Pragma_No_Inline): Likewise. + * einfo.adb (Has_Pragma_No_Inline): New function. + (Set_Has_Pragma_No_Inline): New procedure. + (Write_Entity_Flags): Handle Has_Pragma_No_Inline. + * snames.ads-tmpl (Name_No_Inline): New pragma-related name. + (Pragma_Id): Add Pragma_No_Inline value. + * par-prag.adb (Prag): Handle Pragma_Inline. + * sem_prag.adb (Inline_Status): New enumeration type. + (Process_Inline): Change Active parameter + to Inline_Status and add support for suppressed inlining. + (Analyze_Pragma) : Adjust to above change. + : Likewise. + : Implement new pragma No_Inline. + (Sig_Flags): Add Pragma_No_Inline. + * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline. + * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline. + +2013-02-06 Pascal Obry + + * s-osprim-mingw.adb (Clock): Make sure we copy all data locally + to avoid interleaved modifications that could happen from another + task calling Get_Base_Data. + (Get_Base_Data): Make it a critical section. Avoid updating if another + task has already done it. + +2013-02-06 Eric Botcazou + + * sem_prag.adb: Minor reformatting. + +2013-02-06 Pascal Obry + + * s-tasloc.ads: Set System.Task_Lock to preelaborate. + +2013-02-06 Eric Botcazou + + * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll, + Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related + names. + (Pragma_Id): Add Pragma_Loop_Optimize value. + * par-prag.adb (Prag): Handle Pragma_Loop_Optimize. + * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to... + (Check_Loop_Pragma_Placement): ...this. + (Analyze_Pragma) + : Adjust to above renaming. + : Likewise. + : Implement new pragma Loop_Optimize. + (Sig_Flags): Add Pragma_Loop_Optimize. + * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize. + * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize. + +2013-02-06 Robert Dewar + + * osint.ads: Minor fix of typo. + +2013-02-06 Sergey Rybin + + * gnat_ugn.texi: gnatmetric: update the documentation of + complexity metrics for Ada 2012. + +2013-02-06 Javier Miranda + + * exp_disp.adb (Make_Secondary_DT): Code cleanup: + remove useless initialization. + +2013-02-06 Ed Schonberg + + * sem_ch3.adb (Build_Discriminant_Constraints): Do not + generate overflow checks on a discriminant expression if the + discriminant constraint is applied to a private type that has + a full view, because the check will be applied when the full + view is elaborated. Removing the redundant check is not just + an optimization, but it prevents spurious assembler errors, + because of the way the backend generates names for expressions + that require overflow checking. + +2013-02-06 Pascal Obry + + * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker + limitation on Windows. + (DA): Removed. + (LIA): Removed. + (LLIA): Removed. + (TFA): Removed. + (BTA): Removed. + (BMTA): Removed. + (BCA): Removed. + (BMCA): Removed. + (BTiA): Removed. + (Clock): Use variable corresponding to access. + (Get_Base_Time): Likewise. + (Monotonic_Clock): Likewise. + +2013-02-06 Vincent Celier + + * make.adb (Gnatmake): When gnatmake is called with a project + file, do not invoke gnatbind with -I-. + * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get + the infos from all the sources. + +2013-02-06 Ed Schonberg + + * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma + Overriding_Renamings. + * par-prag.adb: Recognize pragma Overriding_Renamings. + * opt.ads (Overriding_Renamings): flag to control compatibility + mode with Rational compiler, replaces Rational_Profile flag. + * sem_ch8.adb (Analyze_Subprogram_Renaming): When + Overriding_Renamings is enabled, accept renaming declarations + where the new subprogram renames and overrides a locally inherited + operation. Improve error message for some illegal renamings. + * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings. + (Set_Rational_Profile): The Rational_Profile enables + Overriding_Renamings, Implicit_Packing, and Use_Vads_Size. + +2013-02-06 Ed Schonberg + + * sem_util.adb: Set parent of copied aggregate component, to + prevent infinite loop. + +2013-02-06 Robert Dewar + + * sem_ch3.adb, sem_ch10.adb: Minor reformatting. + * exp_disp.adb: Minor comment update. + * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of + No_Return pragmas. + +2013-02-06 Thomas Quinot + + * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target + parameter, defaulted to False for now, indicates targets where + non-default scalar storage order may be specified. + +2013-02-06 Thomas Quinot + + * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private + same as E_Record_Subtype. Display E_Class_Wide_Subtype as + subtype, not type. + +2013-02-06 Hristian Kirtchev + + * sem_ch3.adb (Complete_Private_Subtype): Inherit the + Has_Unknown_Discriminants from the full view of the base type. + +2013-02-06 Tristan Gingold + + * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h) + Enclosing debugging functions within #ifndef inhibit_libc to + support builds without full C headers. + +2013-02-06 Thomas Quinot + + * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order. + +2013-02-06 Hristian Kirtchev + + * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing + check to detect a parent-child relationship between two units in + order to correctly bypass the installation of a limited view. In + other words, the comment on the intended usage of the check was + correct, but the code itself did not reflect the behavior. + +2013-02-06 Javier Miranda + + * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the + runtime check on assignment to tagged types if compiling with checks + suppressed. + +2013-02-06 Robert Dewar + + * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb, + s-os_lib.adb: Minor reformatting + +2013-02-06 Vincent Celier + + * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS. + +2013-02-06 Ed Schonberg + + * snames.ads-tmpl: Add Name_Rational and pragma Rational. + * par-prag.adb: Recognize pragma Rational. + * opt.ads (Rational_Profile): flag to control compatibility mode + with Rational compiler. + * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile + is enable, accept renaming declarations where the new subprogram + and the renamed entity have the same name. + * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize + Rational as a profile. + +2013-02-06 Hristian Kirtchev + + * exp_ch5.adb (Expand_Loop_Entry_Attributes): When + dealing with a for loop that iterates over a subtype indication + with a range, use the low and high bounds of the subtype. + +2013-02-06 Nicolas Roche + + * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should + be quoted + +2013-02-06 Vincent Celier + + * prj-conf.adb (Process_Project_And_Apply_Config): New variable + Conf_Project. New recursive procedure Check_Project to find a non + aggregate project and put its Project_Id in Conf_Project. Fails if + no such project can be found. + (Get_Or_Create_Configuration_File): New parameter Conf_Project. + (Do_Autoconf): Use project directory of project Conf_Project to store + the generated configuration project file. + * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter + Conf_Project. + +2013-02-06 Javier Miranda + + * sem_res.adb (Resolve_Actuals): Generate a read + reference for out-mode parameters in the cases specified by + RM 6.4.1(12). + +2013-02-06 Hristian Kirtchev + + * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of + Loop_Entry, instead wait until the attribute has been expanded. The + delay ensures that any generated checks or temporaries are inserted + before the relocated prefix. + +2013-02-06 Ed Schonberg + + * sem_ch12.adb: Code clean up. + +2013-02-06 Ed Schonberg + + * checks.adb (Apply_Discriminant_Check): Look for discriminant + constraint in full view of private type when needed. + * sem_ch12.adb (Validate_Array_Type_Instance): Specialize + previous patch to components types that are private and without + discriminants. + +2013-02-06 Hristian Kirtchev + + * exp_ch4.adb (Find_Enclosing_Context): Recognize + a simple return statement as one of the cases that require special + processing with respect to temporary controlled function results. + (Process_Transient_Object): Do attempt to finalize a temporary + controlled function result when the associated context is + a simple return statement. Instead, leave this task to the + general finalization mechanism. + +2013-02-06 Thomas Quinot + + * einfo.ads: Minor reformatting. + (Status_Flag_Or_Transient_Decl): Add ??? comment. + +2013-02-06 Hristian Kirtchev + + * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This + routine should be able to properly detect controlled transient + objects in its actions and generate the appropriate finalization + actions. + * exp_ch6.adb (Enclosing_Context): Removed. + (Expand_Ctrl_Function_Call): Remove local subprogram and + constant. Use routine Within_Case_Or_If_Expression to determine + whether the lifetime of the function result must be extended to + match that of the context. + * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New + routine. + +2013-02-06 Ed Schonberg + + * sem_ch12.adb (Validate_Array_Type_Instance): Extend check + for subtype matching of component type of formal array type, + to avoid spurious error when component type is a separate actual + in the instance, and there may be a discrepancy between private + and full view of component type. + +2013-02-06 Robert Dewar + + * s-dim.ads, clean.adb: Minor reformatting. + +2013-02-06 Javier Miranda + + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch. + (Can_Split_Unconstrained_Function): Only split the inlined function if + the compiler generates the code of its body. + +2013-02-06 Robert Dewar + + * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb, + exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for + N_Pragma nodes. + +2013-02-06 Robert Dewar + + * gnat_rm.texi: Minor text updates for pragma Warning. + +2013-02-06 Geert Bosch + + * s-multip.adb (Number_Of_CPUs): Short-circuit in case of + CPU'Last = 1. + +2013-02-06 Vincent Celier + + * clean.adb (Delete): On VMS use host notation to delete all files. + +2013-02-06 Robert Dewar + + * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor + reformatting. + +2013-02-06 Gary Dismukes + + * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for + the special case of a user-defined equality that overrides + the predefined equality of a nonderived type declared in a + declarative part. + * sem_util.adb (Collect_Primitive_Operations): Add test for + Is_Primitive when looping over the subprograms following a type, + to catch the case of primitives such as a user-defined equality, + which otherwise won't be found when the type is not a derived + type and is declared in a declarative part. + +2013-02-06 Vincent Celier + + * prj-conf.adb (Check_Target): Always return True when Target + is empty (Get_Or_Create_Configuration_File.Get_Project_Target): + New procedure to get the value of attribute Target in the main + project. + (Get_Or_Create_Configuration_File.Do_Autoconf): No + need to get the value of attribute Target in the main project. + (Get_Or_Create_Configuration_File): Call Get_Project_Target and + use the target fom this call. + +2013-02-06 Eric Botcazou + + * erroutc.adb (Validate_Specific_Warning): Do not issue the + warning about an ineffective Pragma Warnings for -Wxxx warnings. + * sem_prag.adb (Analyze_Pragma) : Accept -Wxxx warnings. + * gnat_rm.texi (Pragma Warnings): Document coordination with + warnings of the GCC back-end. + +2013-02-06 Javier Miranda + + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body + of an inlined function if we do not generate code for the function. + +2013-02-06 Pascal Obry + + * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname + with Resolve_Links set to False. + +2013-02-03 Eric Botcazou + + * gcc-interface/decl.c: Include diagnostic-core.h. + (gnat_to_gnu_entity) : Sorry if Reverse_Storage_Order + is set on the entity. + : Likewise. + * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H). + +2013-01-29 Ben Brosgol + + * gnat_rm.texi: Fixed typos. Minor edits. + +2013-01-29 Bob Duff + + * a-convec.adb: Minor reformatting. + +2013-01-29 Pascal Obry + + * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp + directory. + +2013-01-29 Ed Schonberg + + * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop + identifier only if it comes from source. + (Expand_N_Loop_Statement): If the domain of iteration is an + enumeration type with a representation clause, remove from + visibility the loop identifier before rewriting the loop as a + block with a declaration for said identifier. + * sem_util.adb (Remove_Homonym): Handle properly the default case. + +2013-01-29 Vincent Celier + + * prj-proc.adb: Minor comment spelling fix. + +2013-01-29 Pascal Obry + + * prj-proc.adb (Process_Expression_Variable_Decl): Prepend + Project_Path to current environment. + +2013-01-29 Thomas Quinot + + * sprint.adb (Sprint_Node_Actual): Output freeze nodes for + itypes even if Dump_Freeze_Null is not set. + +2013-01-29 Robert Dewar + + * sem_util.adb: Minor reformatting. + * s-rident.ads: Minor comment fixes. + +2013-01-29 Pascal Obry + + * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to + control if the path is prepended or appended. + +2013-01-29 Ed Schonberg + + * sem_ch6.adb (Analyze_Expression_Function): An expression + function declaration is not a subprogram declaration, and thus + cannot appear in a protected definition. + +2013-01-29 Hristian Kirtchev + + * exp_util.adb (Insert_Actions): When new + actions come from the expression of the expression with actions, + then they must be added to the list of existing actions. + +2013-01-29 Eric Botcazou + + * sem_ch3.adb (Analyze_Subtype_Declaration) : For + the subtype of a constrained private type with discriminants + that has got a full view, show that the completion is a clone + of the full view. + +2013-01-29 Javier Miranda + + * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram. + * opt.ads (Warn_On_Overlap): Update documentation. + * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate): + Check function writable actuals. + * sem_ch3.adb (Build_Derived_Record_Type, + Record_Type_Declaration): Check function writable actuals. + * sem_ch4.adb (Analyze_Range): Check function writable actuals. + * sem_ch5.adb (Analyze_Assignment): Remove code of the initial + implementation of AI05-0144. + * sem_ch6.adb (Analyze_Function_Return, + (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code + of the initial implementation of AI05-0144. + * sem_res.adb (Resolve): Remove code of the initial implementation. + (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call + of the initial implementation. + (Resolve_Arithmetic_Op, Resolve_Logical_Op, + Resolve_Membership_Op): Check function writable actuals. + * sem_util.ad[sb] (Actuals_In_Call): Removed + (Check_Order_Dependence): Removed (Save_Actual): Removed + (Check_Function_Writable_Actuals): New subprogram. + * usage.adb (Usage): Update documentation. + * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when + setting all warnings. + +2013-01-29 Robert Dewar + + * a-calend-vms.adb: Minor comment fix. + +2013-01-29 Robert Dewar + + * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash + because of casing issues. + * sem_util.ads: Minor comment fix. + * style.adb (Check_Identifier): Set proper casing for entities + in ASCII. + * styleg.adb: Minor comment improvement. + * stylesw.ads (Style_Check_Standard): Fix bad comments. + +2013-01-29 Hristian Kirtchev + + * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global. + (Analyze_Pragma): Push the scope of the related subprogram and install + its formals once before starting the analysis of the [moded] global + list. + +2013-01-29 Pascal Obry + + * prj-proc.adb (Process_Expression_Variable_Decl): Always handle + relative paths in Project_Path as relative to the aggregate + project location. Note that this was what was documented. + +2013-01-29 Vincent Celier + + * gnatcmd.adb: For "gnat stub -P ...", do not check the naming + scheme for Ada, when Ada is not a language for the project. + +2013-01-29 Ed Schonberg + + * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit + Is_Generic_Actual_Type flag in a nested instance. + * sem_ch12.adb (Restore_Private_Views): Preserve + Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type + of an enclosing instance. + * sem_util.adb (Corresponding_Generic_Type): Handle generic actual + which is an actual of an enclosing instance. + * sem_type.adb (Real_Actual): If a generic_actual_type is the + formal of an enclosing generic and thus renames the corresponding + actual, use the actual of the enclosing instance to resolve + spurious ambiguities in instantiations when two formals are + instantiated with the same actual. + +2013-01-29 Robert Dewar + + * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as + being available as implementation-defined pragmas in earlier + versions of Ada. + +2013-01-29 Vincent Celier + + * clean.adb (Delete): On VMS, delete all versions of the file. + +2013-01-29 Robert Dewar + + * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure. + * par-util.adb (No_Constraint): Undo special handling, moved + to par-ch6.adb. + +2013-01-29 Robert Dewar + + * aspects.ads: Aspect Warnings is implementation defined Add + some other missing entries to impl-defined list Mark Warnings + as GNAT pragma in main list. + * sem_ch8.adb: Process aspects for all cases of renaming + declarations. + +2013-01-29 Robert Dewar + + * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag. + * sem_elab.adb (Check_Internal_Call_Continue): Do not issue + warnings about possible elaboration error if call is within + an assertion. + * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node. + +2013-01-29 Robert Dewar + + * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb, + * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb, + s-tasdeb-vms.adb: Replace pragma Interface by pragma Import. + +2013-01-29 Robert Dewar + + * opt.ads (Ignore_Style_Checks_Pragmas): New flag. + * par-prag.adb (Par, case Style_Checks): Recognize + Ignore_Style_Checks_Pragmas. + * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize + Ignore_Style_Checks_Pragmas. + * switch-c.adb: Recognize -gnateY switch. + * usage.adb: Add documentation for "-gnateY". + * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY). + +2013-01-29 Vincent Celier + + * clean.adb (Clean_Executables): Add Sid component when calling + Queue.Insert. + * make.adb: When inserting in the Queue, add the Source_Id + (Sid) when it is known (Start_Compile_If_Possible): When the + Source_Id is known (Sid), get the path name of the ALI file + (Full_Lib_File) from it, to avoid finding old ALI files in other + object directories. + * makeutl.ads (Source_Info): New Source_Id component Sid in + Format_Gnatmake variant. + +2013-01-29 Robert Dewar + + * gnat_ugn.texi: Document -gnateY. + +2013-01-29 Doug Rupp + + * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads, + system-vms-ia64.ads: Replace pragma Interface by pragma Import. + +2013-01-29 Robert Dewar + + * atree.ads, atree.adb (Node30): New function. + (Set_Node30): New procedure. + (Num_Extension_Nodes): Change to 5 (activate new fields/flags). + * atree.h: Add macros for Field30 and Node30. + * einfo.ads, einfo.adb: Move some fields to avoid duplexing. + * treepr.adb (Print_Entity_Information): Print fields 30-35. + +2013-01-29 Robert Dewar + + * sem_prag.adb (Analyze_Pragma, case Interface): Consider to + be a violation of No_Obsolescent_Features even in Ada 95. Also + generates a warning in -gnatwj mode. + (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj + mode. + * gnat_ugn.texi: Additional documentation on -gnatwj and pragma + Interface[_Name]. + +2013-01-29 Vincent Celier + + * snames.ads-tmpl: Add new standard name Trailing_Switches. + +2013-01-29 Ed Schonberg + + * sem_disp.adb (Check_Controlling_Type): If a designated type T + of an anonymous access type is a limited view of a tagged type, + it can be a controlling type only if the subprogram is in the + same scope as T. + +2013-01-29 Vincent Celier + + * gnatcmd.adb: Use the project where the config pragmas file is + declared to get its path. + +2013-01-29 Vincent Celier + + * prj-attr.adb: New attribute Linker'Trailing_Switches. + +2013-01-22 Eric Botcazou + + * gcc-interface/trans.c (gnat_to_gnu) : Do + not translate the Etype of the node before translating the Actions. + +2013-01-22 Eric Botcazou + + * gcc-interface/trans.c (Pragma_to_gnu) : Use optimize_size + instead of optimize and adjust warning message. + (Compilation_Unit_to_gnu): Process pragmas preceding the unit. + +2013-01-22 Tristan Gingold + + * gcc-interface/gigi.h (ADT_unhandled_except_decl, + ADT_unhandled_others_decl): New. + (unhandled_others_decl, unhandled_except_decl): Define. + * gcc-interface/trans.c: Include common/common-target.h. + (gigi): Initialize them. + (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main + function in a try/catch clause. + +2013-01-11 Eric Botcazou + + * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata. + (CHECKING_ADAFLAGS): New. + (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS. + +2013-01-10 Eric Botcazou + + * gcc-interface/config-lang.in (boot_language_boot_flags): Delete. + * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise. + +2013-01-07 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust + comment about type extension with discriminants. + : Remove useless test and reorder conditions. + (elaborate_entity) : Likewise. + +2013-01-07 Richard Biener + + PR ada/864 + * gcc-interface/Make-lang.in (ada.install-common): Always apply + program_transform_name. + +2013-01-06 Eric Botcazou + + * gnatvsn.ads (Current_Year): Bump to 2013. + +2013-01-06 Olivier Hainque + + * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized + diagnostic for component size mismatch wrt volatile requirements. + Add a gcc_unreachable() at the end of the checks for size. Split + the check on volatile for positions into one check on atomic and + a subsequent one on volatile. + +2013-01-06 Eric Botcazou + + * gcc-interface/decl.c (elaborate_entity) : Delete. + +2013-01-06 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not + pack the field of the record type made for a misaligned type. + +2013-01-06 Eric Botcazou + + * gcc-interface/decl.c (annotate_value) : Be prepared + for discriminants inherited from parent record types. + +2013-01-04 Robert Dewar + + * warnsw.adb: Minor fixes to -gnatw.d handling. + +2013-01-04 Robert Dewar + + * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more + fields. + +2013-01-04 Joel Brobecker + + * gnat_ugn.texi: Fix typo. + +2013-01-04 Robert Dewar + + * gnat_rm.texi: Document alignment choice for subtypes. + +2013-01-04 Robert Dewar + + * validsw.ads: Minor fix to comment. + +2013-01-04 Doug Rupp + + * Makefile.rtl (GNATRTL_NONTASKING_OBJS, + GNATRTL_ALTIVEC_OBJS): Factor g-al* objects. + * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources. + (GNATRTL_ALTIVEC_OBJS): Override to null for VMS. + Rename leon vxworks toolchain as leon-wrs-vxworks. + * gcc-interface/Make-lang.in: Update dependencies + +2013-01-04 Pascal Obry + + * prj.ads (For_Each_Source): Add Locally_Removed parameter. + (Source_Iterator): Add Locally_Removed field. + * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed. + (Next): Likewise. + +2013-01-04 Robert Dewar + + * exp_attr.adb: Minor reformatting. + +2013-01-04 Robert Dewar + + * checks.adb (Insert_Valid_Check): Fix handling of renamed + packed array element. + * exp_ch4.adb (Expand_Concatenate): Fix some missing parent + fields in generated code. + * exp_util.adb (Side_Effect_Free): Improve detection of cases + needing renaming. + +2013-01-04 Robert Dewar + + * sinfo.ads: Clean up order of N_xxx subtypes + +2013-01-04 Vincent Celier + + * prj-conf.adb (Check_Target): Allow --autoconf= with no target. + +2013-01-04 Robert Dewar + + * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting. + +2013-01-04 Robert Dewar + + * par-ch6.adb (P_Subprogram): Better handling of missing IS + after expression function. + * par-util.adb (No_Constraint): Improve handling to avoid bad warnings. + +2013-01-04 Robert Dewar + + * exp_util.ads, exp_util.adb (Insert_Actions): In expression with + actions case, new actions are appended to the sequence rather than + prepended. + +2013-01-04 Robert Dewar + + * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode). + * usage.adb: Add lines for -gnatw.d/w.D switches. + * warnsw.adb: Minor fixes (some missing cases of setting + Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode. + +2013-01-04 Robert Dewar + + * exp_util.adb (Remove_Side_Effects): Make sure scope suppress + is restored on exit. + +2013-01-04 Robert Dewar + + * usage.adb: Document -gnateF (check overflow for predefined Float). + +2013-01-04 Robert Dewar + + * sem_res.adb (Resolve_Type_Conversion): Remove incorrect + prevention of call to Apply_Type_Conversion_Checks, which resulted + in missing check flags in formal mode. + +2013-01-04 Vincent Celier + + * makeutl.ads (Db_Switch_Args): New table used by gprbuild. + * prj-conf.adb (Check_Builder_Switches): Check for switches + --config= (Get_Db_Switches): New procedure to get the --db + switches so that they are used when invoking gprconfig in + auto-configuration. + (Do_Autoconf): When invoking gprconfig, use the --db switches, if any. + +2013-01-04 Pascal Obry + + * prj-nmsc.adb: Minor reformatting. + +2013-01-04 Vincent Celier + + * makeutl.ads (Root_Environment): New variable, moved rom + gprbuild (Load_Standard_Base): New Boolean variable, moved + from gprbuild. + * prj-conf.adb (Check_Builder_Switches): New procedure to check + for switch --RTS in package Builder. If a runtime specified + by --RTS is a relative path name, but not a base name, then + find the path on the Project Search Path. + (Do_Autoconf): Call Check_Builder_Switches. + (Locate_Runtime): New procedure, moved from gprbuild, to get the + absolute paths of runtimes when they are not specified as a base name. + * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild. + +2013-01-04 Ed Schonberg + + * sem_ch3.adb (Build_Private_Derived_Type): Set + Has_Private_Ancestor on type derived from an untagged private + type whose full view has discriminants + * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension + aggregate for untagged record type with private ancestor. + +2013-01-04 Thomas Quinot + + * sem_elab.adb, sem_ch3.adb: Minor reformatting. + +2013-01-04 Robert Dewar + + * table.adb: Minor reformatting. + +2013-01-04 Ed Schonberg + + * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does + not come from source does not generate a warning for redundant + with_clauses. + +2013-01-04 Hristian Kirtchev + + * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables. + * par-prag.adb: Add pragma Global to the list of pragmas that + do not need special processing by the parser. + * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect + Global into a pragma without any form of legality checks. The + work is done by Analyze_Pragma. The aspect and pragma are both + marked as needing delayed processing. Insert the corresponding + pragma of aspect Abstract_State in the visible declarations of the + related package. + (Check_Aspect_At_Freeze_Point): Aspect Global + does not need processing even though it is marked as delayed. + Alphabetize the list on aspect names. + * sem_prag.adb: Add a value for pragma Global in table Sig_Flags. + (Analyze_Pragma): Add ??? comment about the grammar of pragma + Abstract_State. Move the error location from the pragma to the + state to improve the quality of error placement. Add legality + checks for pragma Global. + * snames.ads-tmpl Add the following specially recognized names + +2013-01-04 Eric Botcazou + + * sem_ch3.adb: Fix minor typo. + +2013-01-04 Ed Schonberg + + * par-ch13.adb (Aspect_Specifications_Present): In Strict mode, + accept an aspect name followed by a comma, indicating a defaulted + boolean aspect. + +2013-01-04 Joel Brobecker + + * gnat_ugn.texi: Document procedure to codesign GDB on Darwin. + Update doc on gnattest --separates switch. + +2013-01-04 Thomas Quinot + + * s-chepoo.ads: Minor reformatting. + +2013-01-04 Arnaud Charlet + + * usage.adb: Remove mention of -gnatN in usage. + +2013-01-04 Robert Dewar + + * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb, + freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb, + prj-conf.adb, sem_ch13.adb: Minor reformatting. + +2013-01-04 Thomas Quinot + + * sinfo.ads: Minor documentation update. + +2013-01-04 Thomas Quinot + + * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind + before resolving initialization expression. + +2013-01-04 Hristian Kirtchev + + * checks.adb (Generate_Index_Checks): Delay the generation of + the check for an indexed component where the prefix mentions + Loop_Entry until the attribute has been properly expanded. + * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor + decoration of the constant that captures the value of Loop_Entry's + prefix at the entry point into a loop. Generate index checks + for an attribute reference that has been transformed into an + indexed component. + +2013-01-04 Thomas Quinot + + * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb, + sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to + do if Obj is already frozen. + (Exp_Util.Find_Init_Call): Rename to... + (Exp_Util.Remove_Init_Call): New subprogram, renamed from + Find_Init_Call. Remove the initialization call from the enclosing + list if found, and if it is from an Initialization_Statements + attribute, reset it. + (Exp_Util.Append_Freeze_Action): Minor code reorganization. + (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been + allocated (as is already done in Append_Freeze_Action). + (Freeze.Freeze_Entity): For an object with captured + Initialization_Statements and non-delayed freezeing, unwrap the + initialization statements and insert and them directly in the + enclosing list. + (Sem_Ch13.Check_Address_Clause): For an object + with Initialization_Statements and an address clause, unwrap the + initialization statements when moving them to the freeze actions. + +2013-01-03 Pascal Obry + + * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and + corresponding attibutes. + +2013-01-03 Thomas Quinot + + * exp_aggr.adb: Minor comment improvement. + +2013-01-03 Hristian Kirtchev + + * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the + relevant tables. + * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to + the description of fields (Abstract_States): New routine. + (Integrity_Level): New routine. + (Has_Property): New routine. + (Is_Input_State): New routine. + (Is_Null_State): New routine. + (Is_Output_State): New routine. + (Is_Volatile_State): New routine. + (Refined_State): New routine. + (Set_Abstract_States): New routine. + (Set_Integrity_Level): New routine. + (Set_Refined_State): New routine. + (Write_Field8_Name): Add proper output for E_Abstract_State. + (Write_Field9_Name): Add proper output for E_Abstract_State. + (Write_Field25_Name): Add proper output for E_Package. + * lib-xref.ads: Add new letter for an abstract state. + * par-prag.adb: Add pragma Abstract_State to the list of pragma + that do not need special processing by the parser. + * sem_ch13.adb (Analyze_Aspect_Specifications): Convert + aspect Abstract_State into a pragma without any form + of legality checks. The work is done by Analyze_Pragma. + (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not + require delayed analysis. + * sem_prag.adb: Add a value for pragma Abstract_State in table + Sig_Flags. + (Analyze_Pragma): Add legality checks for pragma + Abstract_State. Analysis of individual states introduces a state + abstraction entity into the visibility chain. + * snames.ads-tmpl: Add new names for abstract state and + integrity. Add new pragma id for abstract state. + +2013-01-03 Bob Duff + + * table.adb (Reallocate): Calculate new Length in + Long_Integer to avoid overflow. + +2013-01-03 Thomas Quinot + + * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb + (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that + it is set properly when expanding the initialization expression. + (Freeze.Check_Address_Clause): Transfer initialization expression + to an assignment in the freeze actions, so that the object is + initialized only after being elaborated by GIGI. + (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow + a Null_Statement as the expression in an Expression_With_Actions. + (Exp_Aggr.Collect_Initialization_Statements): New subprogram + shared by expansion of record and array aggregates, used to + capture statements for an aggregate used to initalize an object + into an Expression_With_Actions (which acts as a container for + a list of actions). + (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to + capture initialization statements, instead of the previously + existing loop which left freeze nodes out of the capturing + construct (causing out of order elaboration crashes in GIGI). + (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture + initialization statements (this was previously not done for + arrays). Also do not unconditionally prevent in place expansion + for an object with address clause. + +2013-01-03 Thomas Quinot + + * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that + a record extension has the same scalar storage order as the parent type. + +2013-01-03 Thomas Quinot + + * exp_ch4.adb: Add comment. + +2013-01-03 Vincent Celier + + * prj.adb: Minor spelling error correction in comment. + +2013-01-03 Vincent Celier + + * gnatcmd.adb (GNATCmd): If a single main has been specified + as an absolute path, use its simple file name to find specific + switches, instead of the absolute path. + +2013-01-03 Javier Miranda + + * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping + parameters that are record types or array types generate warnings + only compiling under -gnatw.i + * opt.ads (Extensions_Allowed): Restore previous documentation. + +2013-01-03 Vincent Celier + + * prj-conf.adb (Do_Autoconf): If Target is specified in the + main project, but not on the command line, use the Target in + the project to invoke gprconfig in auto-configuration. + * makeutl.ads (Default_Config_Name): New constant String. + +2013-01-03 Arnaud Charlet + + * usage.adb: Minor: fix typo in usage. + +2013-01-03 Thomas Quinot + + * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject + an illegal component clause for an inherited component in a + record extension. + +2013-01-03 Emmanuel Briot + + * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which + have information in the ALI file for both the index and the component + types. + +2013-01-03 Emmanuel Briot + + * projects.texi: Fix error in documenting the project path + computed for an aggregate project. + +2013-01-03 Javier Miranda + + * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation + plus restricting the functionality of this routine to cover the + cases described in the Ada 2012 reference manual. The previous + extended support is now available under -gnatX. + * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy + variable to call Timed_Sleep. Required to avoid warning on + overlapping out-mode actuals. + * opt.ads (Extensions_Allowed): Update documentation. + +2013-01-03 Tristan Gingold + + * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64. + * arit64.c: Removed + * gcc-interface/Makefile.in: Remove reference to arit64.c. + +2013-01-03 Thomas Quinot + + * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must + be generated at the start of the freeze actions for the entity, not + before (or after) the freeze node. + +2013-01-03 Thomas Quinot + + * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): + Reorganize code to capture initialization statements in a block, + so that freeze nodes are excluded from the captured block. + +2013-01-03 Thomas Quinot + + * exp_ch11.adb: Minor reformatting. + +2013-01-03 Thomas Quinot + + * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb, + sem_ch13.adb (Einfo.Initialization_Statements, + Einfo.Set_Initialization_Statements): New entity attribute + for objects. + (Exp_Util.Find_Init_Call): Handle case of an object initialized + by an aggregate converted to a block of assignment statements. + (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze + even for objects that require a constant address, because the + address expression might involve entities that have yet to be + elaborated at the point of the object declaration. + (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does + not require a transient scope, capture the assignment statements + in a block so that they can be moved down after elaboration of + an address clause if needed. + (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants, + case N_Unchecked_Conversion): Do not replace operand subtype with + its base type as this violates a GIGI invariant if the operand + is an identifier (in which case the etype of the identifier + is expected to be equal to that of the denoted entity). + +2013-01-03 Javier Miranda + + * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the + functionality of this routine to cover cases described in the Ada 2012 + reference manual. + +2013-01-03 Ed Schonberg + + * sem_elab.adb (Set_Elaboration_Constraint): Handle properly + a 'Access attribute reference when the subprogram is called + Initialize. + +2013-01-03 Arnaud Charlet + + * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a + select statement may be called from a controlled (e.g. Initialize) + operation and have abort always deferred. + +2013-01-03 Robert Dewar + + * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization. + +2013-01-03 Javier Miranda + + * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude + internal entities associated with interfaces and add minimum + decoration to the defining entity of the generated wrapper to + allow overriding interface primitives. + * sem_disp.ads (Override_Dispatching_Operation): Addition of a + new formal (Is_Wrapper). + * sem_disp.adb (Override_Dispatching_Operation): When overriding + interface primitives the new formal helps identifying that the + new operation is not fully decorated. + +2013-01-03 Thomas Quinot + + * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb, + rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb + (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit): + Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and + update spec accordingly (now also applies to root library units). + (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag + on root library units, not only child units. + (Sem_Ch10.Install[_Limited]_Withed_Unit): Same. + (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit + even for root library units. + (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is + Standard is an expanded name for a root library unit. + +2013-01-03 Thomas Quinot + + * exp_ch3.adb: Minor reformatting. + +2013-01-03 Olivier Hainque + + * tracebak.c: Reinstate changes to support ppc-lynx178. + +2013-01-03 Ed Schonberg + + * atree.ads: Minor reformatting and documentation enhancement. + +2013-01-03 Ed Schonberg + + * exp_ch3.adb (Expand_N_Object_Declaration): If the object has + a class-wide type and a renaming declaration is created for it, + preserve entity chain, which already contains generated internal + types. This ensures that freezing actions are properly generated + for all objects declared subsequently in the same scope, and + that debugging information is generated for them. + * sem_util.adb, sem_util.ads (we): New debugging routine, to + display entity chain of a given scope. + +2013-01-03 Robert Dewar + + * exp_intr.adb: Minor reformatting. + +2013-01-03 Robert Dewar + + * einfo.adb: Minor reformatting. + +2013-01-03 Pascal Obry + + * adaint.c, adaint.h (__gnat_get_module_name): Removed. + (__gnat_is_module_name_supported): Removed. + * s-win32.ads: Add some needed definitions. + * g-trasym.ads: Update comments. + +2013-01-03 Robert Dewar + + * layout.adb (Set_Composite_Alignment): Fix problems of + interactions with Optimize_Alignment set to Space. + +2013-01-03 Thomas Quinot + + * exp_disp.adb: Minor reformatting. + +2013-01-02 Richard Biener + + PR bootstrap/55784 + * gcc-interface/Makefile.in: Add $(GMPINC) to includes. + +2013-01-02 Thomas Quinot + + * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove + side effects from Tag_Arg early, doing it too late may cause a + crash due to inconsistent Parent link. + * sem_ch8.adb, einfo.ads: Minor reformatting. + +2013-01-02 Robert Dewar + + * einfo.ads, einfo.adb (Has_Independent_Components): New flag. + * freeze.adb (Size_Known): We do not know the size of a packed + record if it has atomic components, by reference type components, + or independent components. + * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new + flag Has_Independent_Components. + +2013-01-02 Yannick Moy + + * opt.ads (Warn_On_Suspicious_Contract): Set to True by default. + * usage.adb (Usage): Update usage message. + +2013-01-02 Pascal Obry + + * adaint.c (__gnat_is_module_name_supported): New constant. + +2013-01-02 Ed Schonberg + + * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an + array whose component type does not have a completion. + +2013-01-02 Geert Bosch + + * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure. + +2013-01-02 Robert Dewar + + * par_sco.adb: Minor reformatting. + +2013-01-02 Javier Miranda + + * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code. + +2013-01-02 Olivier Hainque + + * a-exctra.ads (Get_PC): New function. + +2013-01-02 Thomas Quinot + + * sem_ch8.adb: Minor reformatting. + +2013-01-02 Thomas Quinot + + * sem_ch7.adb: Minor reformatting. + +2013-01-02 Thomas Quinot + + * freeze.adb (Check_Component_Storage_Order): Do not crash on + _Tag component. + +2013-01-02 Robert Dewar + + * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add + On_Target to Atomic_Sync_Default. + +2013-01-02 Robert Dewar + + * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for + comparison of attribute result with constant + * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma + Warnings (Off, ".."); + +2013-01-02 Yannick Moy + + * sem_prag.ads: Minor correction of comment. + +2013-01-02 Thomas Quinot + + * par_sco.adb (Traverse_Package_Declaration): The first + declaration in a nested package is dominated by the preceding + declaration in the enclosing scope. + +2013-01-02 Pascal Obry + + * adaint.c, adaint.h (__gnat_get_module_name): Return the actual + module containing a given address. + +2013-01-02 Thomas Quinot + + * sem_ch3.adb: Minor reformatting. + +2013-01-02 Pascal Obry + + * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on + Win64 and default to ftell on other platforms. + (__gnat_fsek64): Likewise. + * i-cstrea.ads: Add fssek64 and ftell64 specs. + * s-crtl.ads: Likewise. + * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required. + (Set_Position): Likewise. + +2013-01-02 Thomas Quinot + + * par_sco.adb: Generate X SCOs for default expressions in + subprogram body stubs. Do not generate any SCO for package, + task, or protected body stubs. + +2013-01-02 Ed Schonberg + + * sem_ch3.adb: Further improvement to ASIS mode for anonymous + access to protected subprograms. + +2013-01-02 Robert Dewar + + * par_sco.adb, vms_data.ads: Minor reformatting. + +2013-01-02 Thomas Quinot + + * par_sco.adb (Traverse_Declarations_Or_Statement): Function + form, returning value of Current_Dominant upon exit, for chaining + purposes. + (Traverse_Declarations_Or_Statement.Traverse_One, case + N_Block_Statement): First statement is dominated by last declaration. + (Traverse_Subprogram_Or_Task_Body): Ditto. + (Traverse_Package_Declaration): First private + declaration is dominated by last visible declaration. + (Traverse_Sync_Definition): Ditto. + +2013-01-02 Thomas Quinot + + * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order + matching Bit_Order to record types only, since array types do not + have a Bit_Order. + +2013-01-02 Vincent Celier + + * gnat_ugn.texi: Remove documentation of -gnateO, which is an + internal switch. + * usage.adb: Indicate that -gnateO is an internal switch. + +2013-01-02 Thomas Quinot + + * par_sco.adb: Add SCO generation for task types and single + task declarations. + * get_scos.adb: When adding an instance table entry for a + non-nested instantiation, make sure the Enclosing_Instance is + correctly set to 0. + +2013-01-02 Hristian Kirtchev + + * sem_attr.adb (Analyze_Attribute): Skip the special _Parent + scope generated for subprogram inlining purposes while trying + to locate the enclosing function. + * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean + expression of pragma Postcondition when the pragma comes from + source and appears inside a subprogram body. + +2013-01-02 Thomas Quinot + + * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation + information in debug info unconditionally when using -fdump-scos, + instead of relying on a separate command line switch -fdebug-instances. + * gcc-interface/Make-lang.in: Update dependencies. + +2013-01-02 Ed Schonberg + + * sem_ch12.adb: Additional refinement of predicate. + +2013-01-02 Vincent Celier + + * vms_data.ads: Remove incorrect spaces at end of descriptions + of qualifiers for single switch. + +2013-01-02 Ben Brosgol + + * gnat_rm.texi: Minor edits / wordsmithing in section on pragma + Check_Float_Overflow. + +2013-01-02 Thomas Quinot + + * sprint.adb (Sprint_Node_Actual): Do not add extra parens for + a conditional expression (CASE or IF expression) that already + has parens. Also omit ELSE keyword for an IF expression without + an ELSE part. + +2013-01-02 Thomas Quinot + + * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end + flag_debug_instances here, after front-end switches have been + processed. + +2013-01-02 Vincent Celier + + * usage.adb: Minor reformatting. + +2013-01-02 Arnaud Charlet + + * opt.ads: Fix typo. + +2013-01-02 Thomas Quinot + + * par_sco.adb: Generate P decision SCOs for SPARK pragmas + Assume and Loop_Invariant. + +2013-01-02 Robert Dewar + + * vms_data.ads: Add entry for Float_Check_Valid (-gnateF). + * ug_words: Add entry for Float_Check_Overflow. + * usage.adb: Minor reformatting. + * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow). + +2013-01-02 Vincent Celier + + * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated, + -gnateO=, -gnatet and -gnateV. + * ug_words: Add qualifiers equivalent to -gnateA, -gnated, + -gnatet and -gnateV. + * usage.adb: Add lines for -gnatea, -gnateO and -gnatez. + * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK + (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated), + /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO + (-gnatet). + +2013-01-02 Robert Dewar + + * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow. + * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config]. + * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow. + * sem_prag.adb: Implement pragma Check_Float_Overflow. + * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow. + * switch-c.adb: Recognize -gnateF switch. + * tree_io.ads: Update ASIS version number. + * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow. + +2013-01-02 Robert Dewar + + * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, + exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb, + freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb, + par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb, + sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb, + sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages. + * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates. + +2013-01-02 Robert Dewar + + * err_vars.ads: Minor comment fix. + +2013-01-02 Ed Schonberg + + * sem_ch12.adb: Refine predicate. + +2013-01-02 Robert Dewar + + * errout.ads: Minor comment fixes. + * opt.ads: Minor comment additions. + * exp_aggr.adb: Add tags to warning messages + * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb, + sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb, + sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb, + sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb, + sem_warn.adb: Add tags to warning messages + +2013-01-02 Doug Rupp + + * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E. + +2013-01-02 Ed Schonberg + + * sem_ch12.adb: Recover source name for renamed packagea. + +2013-01-02 Robert Dewar + + * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing + tests to fail if insertion sequence is at end of message string. + * opt.ads: Minor comment fixes and additions. + * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb, + sem_ch12.adb, sem_ch13.adb: Add tags to warning messages. + * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message + tags. Add tags to warning messages. + +2013-01-02 Robert Dewar + + * err_vars.ads (Warning_Doc_Switch): New flag. + * errout.adb (Error_Msg_Internal): Implement new warning flag + doc tag stuff (Set_Msg_Insertion_Warning): New procedure. + * errout.ads: Document new insertion sequences ?? ?x? ?.x? + * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc + tag stuff. + * erroutc.ads (Warning_Msg_Char): New variable. + (Warn_Chr): New field in error message object. + * errutil.adb (Error_Msg): Set Warn_Chr in error message object. + * sem_ch13.adb: Minor reformatting. + * warnsw.adb: Add handling for -gnatw.d and -gnatw.D + (Warning_Doc_Switch). + * warnsw.ads: Add handling of -gnatw.d/.D switches (warning + doc tag). + +2013-01-02 Robert Dewar + + * opt.ads: Minor reformatting. + +2013-01-02 Doug Rupp + + * init.c: Reorganize VMS section. + (scan_condtions): New function for scanning condition tables. + (__gnat_handle_vms_condtion): Use actual exception name for imported + exceptions vice IMPORTED_EXCEPTION. + Move condition table scanning into separate function. Move formerly + special handled conditions to system condition table. Use SYS$PUTMSG + output to fill exception message field for formally special handled + condtions, in particular HPARITH to provide more clues about cause and + location then raised from the translated image. + +2013-01-02 Thomas Quinot + + * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post + aspect that applies to a library subprogram, prepend corresponding + pragma to the Pragmas_After list, in order for split AND THEN + sections to be processed in the expected order. + +2013-01-02 Thomas Quinot + + * exp_prag.adb (Expand_Pragma_Check): The statements generated + for the pragma must have the sloc of the pragma, not the + sloc of the condition, otherwise this creates anomalies in the + generated debug information that confuse coverage analysis tools. + +2013-01-02 Thomas Quinot + + * sem_ch13.adb: Minor reformatting. + +2013-01-02 Arnaud Charlet + + * g-excact.ads (Core_Dump): Clarify that this subprogram does + not dump cores under Windows. + +2013-01-02 Ed Schonberg + + * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed + view of a subprogram has convention Intrnnsic, and a renaming + of a prefixed view cannot be the prefix of an Access attribute. + +2013-01-02 Robert Dewar + + * restrict.adb: Minor reformatting. + +2013-01-02 Thomas Quinot + + * exp_prag.adb: Minor reformatting. + +2013-01-02 Ed Schonberg + + * sem_ch12.adb (Get_Associated_Node): If the node is an + identifier that denotes an unconstrained array in an object + declaration, it is rewritten as the name of an anonymous + subtype whose bounds are given by the initial expression in the + declaration. When checking whether that identifier is global + reference, use the original node, not the local generated subtype. + +2013-01-02 Olivier Hainque + + * tracebak.c: Revert previous change, incomplete. + +2013-01-02 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect + appears on a subprogram body that acts as a spec, place the + corresponding pragma in the declarations of the body, so that + e.g. pre/postcondition checks can be generated appropriately. + +2013-01-02 Robert Dewar + + * sem_ch3.adb: Minor reformatting and code reorganization. + +2013-01-02 Vincent Celier + + * switch-m.adb (Normalize_Compiler_Switches): Record the + complete switch -fstack-check=specific instead of its shorter + alias -fstack-check. + +2013-01-02 Ed Schonberg + + * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8): + if the derived type is a tagged generic formal type with + unknown discriminants, the inherited operation has convention + Intrinsic. As such, the 'Access attribute cannot be applied to it. + +2013-01-02 Thomas Quinot + + * sem_attr.adb: Minor reformatting. + +2013-01-02 Thomas Quinot + + * par_sco.adb: Add SCO generation for S of protected types and + single protected object declarations. + +2013-01-02 Robert Dewar + + * sem_eval.adb, osint.ads: Minor reformatting. + +2013-01-02 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume. + +2013-01-02 Thomas Quinot + + * sem_eval.adb (Compile_Time_Compare): For static operands, we + can perform a compile time comparison even if in preanalysis mode. + +2013-01-02 Thomas Quinot + + * par_sco.adb (SCO_Record): Always use + Traverse_Declarations_Or_Statements to process the library level + declaration, so that SCOs are properly generated for its aspects. + +2013-01-02 Thomas Quinot + + * scos.ads (In_Decision): Add missing entry for 'a'. + * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit + call to Set_SCO_Pragma_Enabled for Invariant and Predicate. + * sem_ch13.adb: Minor comment update. + +Copyright (C) 2013 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index edb3886a03a..5c3c0a9eb53 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -7,14 +7,14 @@ @c o @c G N A T _ U G N o @c o -@c Copyright (C) 1992-2013, Free Software Foundation, Inc. o +@c Copyright (C) 1992-2014, Free Software Foundation, Inc. o @c o @c oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo @setfilename gnat_ugn.info @copying -Copyright @copyright{} 1995-2009 Free Software Foundation, +Copyright @copyright{} 1995-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 0ab9361bb42..aaed739fb35 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -10,7 +10,7 @@ @copying @c man begin COPYRIGHT -Copyright @copyright{} 1987-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1987-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/doc/cppinternals.texi b/gcc/doc/cppinternals.texi index f78c4d3b2ea..8b329d6c173 100644 --- a/gcc/doc/cppinternals.texi +++ b/gcc/doc/cppinternals.texi @@ -18,7 +18,7 @@ @ifinfo This file documents the internals of the GNU C Preprocessor. -Copyright (C) 2000-2013 Free Software Foundation, Inc. +Copyright (C) 2000-2014 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -47,7 +47,7 @@ into another language, under the above conditions for modified versions. @page @vskip 0pt plus 1filll @c man begin COPYRIGHT -Copyright @copyright{} 2000-2013 Free Software Foundation, Inc. +Copyright @copyright{} 2000-2014 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice diff --git a/gcc/doc/gcc.texi b/gcc/doc/gcc.texi index 55307cd35ee..1e0fc46d00b 100644 --- a/gcc/doc/gcc.texi +++ b/gcc/doc/gcc.texi @@ -40,7 +40,7 @@ @c %**end of header @copying -Copyright @copyright{} 1988-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1988-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/doc/gccint.texi b/gcc/doc/gccint.texi index a80cc5d4003..889f410c563 100644 --- a/gcc/doc/gccint.texi +++ b/gcc/doc/gccint.texi @@ -26,7 +26,7 @@ @c %**end of header @copying -Copyright @copyright{} 1988-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1988-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 00c7d1d4f0e..47972b362e1 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -4,7 +4,7 @@ @ignore @c man begin COPYRIGHT -Copyright @copyright{} 1996-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1996-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 71aa7fc9866..67586fff446 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -44,7 +44,7 @@ @settitle Installing GCC: GNU Free Documentation License @end ifset -@c Copyright (C) 1988-2013 Free Software Foundation, Inc. +@c Copyright (C) 1988-2014 Free Software Foundation, Inc. @c *** Converted to texinfo by Dean Wakerley, dean@wakerley.com @c IMPORTANT: whenever you modify this file, run `install.texi2html' to @@ -69,7 +69,7 @@ @c Part 2 Summary Description and Copyright @copying -Copyright @copyright{} 1988-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1988-2014 Free Software Foundation, Inc. @sp 1 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 42c6ea45915..63bd59e63e4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -8,7 +8,7 @@ @c man end @c man begin COPYRIGHT -Copyright @copyright{} 1988-2013 Free Software Foundation, Inc. +Copyright @copyright{} 1988-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index e78d6b65f67..fff53db6ce8 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,12 @@ +2014-01-02 Tobias Burnus + + * gfortranspec.c (lang_specific_driver): Update copyright notice + dates. + * gfc-internals.texi: Bump @copying's copyright year. + * gfortran.texi: Ditto. + * intrinsic.texi: Ditto. + * invoke.texi: Ditto. + 2014-01-02 Janus Weil PR fortran/59654 diff --git a/gcc/fortran/gfc-internals.texi b/gcc/fortran/gfc-internals.texi index b26571f7f6d..44516a039dd 100644 --- a/gcc/fortran/gfc-internals.texi +++ b/gcc/fortran/gfc-internals.texi @@ -1,7 +1,7 @@ \input texinfo @c -*-texinfo-*- @c %**start of header @setfilename gfc-internals.info -@set copyrights-gfortran 2007-2013 +@set copyrights-gfortran 2007-2014 @include gcc-common.texi diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index f2f2c80c29d..cb7fde277e7 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -1,7 +1,7 @@ \input texinfo @c -*-texinfo-*- @c %**start of header @setfilename gfortran.info -@set copyrights-gfortran 1999-2013 +@set copyrights-gfortran 1999-2014 @include gcc-common.texi diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index 107f33809a5..a6296efbf4d 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -1,5 +1,5 @@ /* Specific flags and argument handling of the Fortran front-end. - Copyright (C) 1997-2013 Free Software Foundation, Inc. + Copyright (C) 1997-2014 Free Software Foundation, Inc. This file is part of GCC. @@ -299,7 +299,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, case OPT__version: printf ("GNU Fortran %s%s\n", pkgversion_string, version_string); - printf ("Copyright %s 2013 Free Software Foundation, Inc.\n\n", + printf ("Copyright %s 2014 Free Software Foundation, Inc.\n\n", _("(C)")); printf (_("GNU Fortran comes with NO WARRANTY, to the extent permitted by law.\n\ You may redistribute copies of GNU Fortran\n\ diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 18bd4d241b2..792518d468c 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -1,5 +1,5 @@ @ignore -Copyright (C) 2005-2013 Free Software Foundation, Inc. +Copyright (C) 2005-2014 Free Software Foundation, Inc. This is part of the GNU Fortran manual. For copying conditions, see the file gfortran.texi. diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 535f34c6f53..b92abfc2f9f 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -1,10 +1,10 @@ -@c Copyright (C) 2004-2013 Free Software Foundation, Inc. +@c Copyright (C) 2004-2014 Free Software Foundation, Inc. @c This is part of the GNU Fortran manual. @c For copying conditions, see the file gfortran.texi. @ignore @c man begin COPYRIGHT -Copyright @copyright{} 2004-2013 Free Software Foundation, Inc. +Copyright @copyright{} 2004-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/gcc/gcc.c b/gcc/gcc.c index 0866e748cc6..35d1fe6bf1a 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1,5 +1,5 @@ /* Compiler driver program that can handle many languages. - Copyright (C) 1987-2013 Free Software Foundation, Inc. + Copyright (C) 1987-2014 Free Software Foundation, Inc. This file is part of GCC. @@ -6840,7 +6840,7 @@ main (int argc, char **argv) { printf (_("%s %s%s\n"), progname, pkgversion_string, version_string); - printf ("Copyright %s 2013 Free Software Foundation, Inc.\n", + printf ("Copyright %s 2014 Free Software Foundation, Inc.\n", _("(C)")); fputs (_("This is free software; see the source for copying conditions. There is NO\n\ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"), diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 7f8e23109f8..f21878dd116 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -1,5 +1,5 @@ /* Dump a gcov file, for debugging use. - Copyright (C) 2002-2013 Free Software Foundation, Inc. + Copyright (C) 2002-2014 Free Software Foundation, Inc. Contributed by Nathan Sidwell Gcov is free software; you can redistribute it and/or modify @@ -142,7 +142,7 @@ static void print_version (void) { printf ("gcov-dump %s%s\n", pkgversion_string, version_string); - printf ("Copyright (C) 2013 Free Software Foundation, Inc.\n"); + printf ("Copyright (C) 2014 Free Software Foundation, Inc.\n"); printf ("This is free software; see the source for copying conditions.\n" "There is NO warranty; not even for MERCHANTABILITY or \n" "FITNESS FOR A PARTICULAR PURPOSE.\n\n"); diff --git a/gcc/gcov.c b/gcc/gcov.c index 9458812d86b..b0e59e853f5 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -1,6 +1,6 @@ /* Gcov.c: prepend line execution counts and branch probabilities to a source file. - Copyright (C) 1990-2013 Free Software Foundation, Inc. + Copyright (C) 1990-2014 Free Software Foundation, Inc. Contributed by James E. Wilson of Cygnus Support. Mangled by Bob Manson of Cygnus Support. Mangled further by Nathan Sidwell @@ -500,7 +500,7 @@ static void print_version (void) { fnotice (stdout, "gcov %s%s\n", pkgversion_string, version_string); - fprintf (stdout, "Copyright %s 2013 Free Software Foundation, Inc.\n", + fprintf (stdout, "Copyright %s 2014 Free Software Foundation, Inc.\n", _("(C)")); fnotice (stdout, _("This is free software; see the source for copying conditions.\n" diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index f6e6599bda3..28f97433886 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,745 +1,9 @@ -2013-12-16 Chris Manghane +2014-01-02 Tobias Burnus - * go-gcc.cc (Gcc_backend::struct_field_expression): New function. + * gcc/go/gccgo.texi: Ditto. + +Copyright (C) 2014 Free Software Foundation, Inc. -2013-12-11 Ian Lance Taylor - - * go-lang.c (go_langhook_post_options): Disable sibling calls by - default. - -2013-12-10 Ian Lance Taylor - - * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests - separately. - -2013-12-05 Ian Lance Taylor - - Revert this change; no longer required. - 2013-11-06 Ian Lance Taylor - - * go-lang.c (go_langhook_post_options): If - -fisolate-erroneous-paths was turned on by an optimization option, - turn it off. - -2013-11-23 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::function_type): Add result_struct - parameter. - -2013-11-22 Andrew MacLeod - - * go-gcc.cc: Add required include files from gimple.h. - * go-lang.c: Likewise - -2013-11-18 Richard Sandiford - - * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with - tree_to_shwi throughout. - -2013-11-18 Richard Sandiford - - * gofrontend/expressions.cc: Replace host_integerp (..., 0) with - tree_fits_shwi_p throughout. - -2013-11-14 Andrew MacLeod - - * go-lang.c: Include only gimplify.h and gimple.h as needed. - -2013-11-14 Diego Novillo - - * go-backend.c: Include stor-layout.h. - * go-gcc.cc: Include stringpool.h. - Include stor-layout.h. - Include varasm.h. - * go-lang.c: Include stor-layout.h. - -2013-11-12 Andrew MacLeod - - * go-lang.c: Include gimplify.h. - -2013-11-06 Ian Lance Taylor - - * go-lang.c (go_langhook_post_options): If - -fisolate-erroneous-paths was turned on by an optimization option, - turn it off. - -2013-10-14 Chris Manghane - - * go-gcc.cc (Gcc_backend::address_expression): New function. - -2013-10-11 Chris Manghane - - * go-gcc.cc (Gcc_backend::function_code_expression): New - function. - -2013-10-10 Chris Manghane - - * go-gcc.cc (Gcc_backend::error_function): New function. - (Gcc_backend::function): New function. - (Gcc_backend::make_function): New function. - (function_to_tree): New function. - -2013-10-04 Chris Manghane - - * go-gcc.cc (Gcc_backend::convert_expression): New function. - -2013-10-02 Chris Manghane - - * go-gcc.cc: Include "real.h" and "realmpfr.h". - (Gcc_backend::integer_constant_expression): New function. - (Gcc_backend::float_constant_expression): New function. - (Gcc_backend::complex_constant_expression): New function. - -2013-09-30 Chris Manghane - - * go-gcc.cc (Gcc_backend::error_expression): New function. - (Gcc_backend::var_expression): New function. - (Gcc_backend::indirect_expression): New function. - -2013-09-25 Tom Tromey - - * Make-lang.in (gospec.o): Remove. - (CFLAGS-go/gospec.o): New variable. - (GCCGO_OBJS): Update to use go/gospec.o. - (go_OBJS): Define. - (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H) - (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H) - (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H) - (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o) - (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o) - (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o) - (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o) - (go/parse.o, go/runtime.o, go/statements.o, go/types.o) - (go/unsafe.o): Remove. - (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables. - (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE. - -2013-09-25 Tom Tromey - - * Make-lang.in (gospec.o): Don't use subshell. - -2013-08-28 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if - the struct is not hidden. - (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC. - -2013-08-06 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use - compute_reloc_for_constant. - -2013-08-02 Ian Lance Taylor - - * go-gcc.cc (immutable_struct_set_init): Always call - resolve_unique_section. - -2013-07-24 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a - fields, recreate those fields with the first one with a non-zero - size. - -2013-07-23 Ian Lance Taylor - - * go-backend.c: Don't #include "rtl.h". - (go_imported_unsafe): Don't call init_varasm_once. - * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H). - -2013-07-23 Ian Lance Taylor - - * go-lang.c: Don't #include "except.h". - * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H). - -2013-06-18 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden - parameter. - (Gcc_backend::immutable_struct_set_init): Likewise. - -2013-05-16 Jason Merrill - - * Make-lang.in (go1$(exeext)): Use link mutex. - -2013-01-16 Shenghou Ma - - * gospec.c: pass -u pthread_create to linker when static linking. - -2012-12-21 Ian Lance Taylor - - PR bootstrap/54659 - * go-system.h: Don't include . - -2012-12-18 Ian Lance Taylor - - PR go/55201 - * gospec.c: Revert last patch. - -2012-12-18 Andreas Schwab - - PR go/55201 - * gospec.c (LIBATOMIC): Define. - (LIBATOMIC_PROFILE): Define. - (lang_specific_driver): Add LIBATOMIC[_PROFILE] option. - -2012-11-29 Ian Lance Taylor - - * go-gcc.cc: Include "output.h". - (global_variable): Add is_unique_section parameter. - (global_variable_set_init): Adjust unique section if necessary. - * Make-lang.in (go/go-gcc.o): Add dependency on output.h. - -2012-11-17 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * go-lang.c: Use new vec API in vec.h. - -2012-11-16 Ian Lance Taylor - - * Make-lang.in (gccgo$(exeext)): Add + at start of command. - (go1$(exeext)): Likewise. - -2012-10-30 Ian Lance Taylor - - * lang.opt (-fgo-relative-import-path): New option. - * go-lang.c (go_relative_import_path): New static variable. - (go_langhook_init): Pass go_relative_import_path to - go_create_gogo. - (go_langhook_handle_option): Handle -fgo-relative-import-path. - * go-c.h (go_create_gogo): Update declaration. - * gccgo.texi (Invoking gccgo): Document - -fgo-relative-import-path. - -2012-09-17 Ian Lance Taylor - - * config-lang.in (target_libs): Add target-libbacktrace. - -2012-09-16 Ian Lance Taylor - - * Make-lang.in (go/gogo.o): Depend on filenames.h. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. Configury. - - * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX. - * go-gcc.cc: Likewise. - * go-system.h: Likewise. - -2012-07-24 Uros Bizjak - - * go-lang.c (lang_decl): Add variable_size GTY option. - -2012-05-09 Ian Lance Taylor - - * lang.opt: Add -fgo-pkgpath. - * go-lang.c (go_pkgpath): New static variable. - (go_prefix): New static variable. - (go_langhook_init): Pass go_pkgpath and go_prefix to - go_create_gogo. - (go_langhook_handle_option): Handle -fgo-pkgpath. Change - -fgo-prefix handling to just set go_prefix. - * go-c.h (go_set_prefix): Don't declare. - (go_create_gogo): Add pkgpath and prefix to declaration. - * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix - to pkgpath. Don't include the package name in the asm name. - * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the - docs for -fgo-prefix. - -2012-04-23 Ian Lance Taylor - - * go-lang.c (go_langhook_init): Set MPFR precision to 256. - -2012-04-20 Ian Lance Taylor - - * lang.opt: Add -fgo-check-divide-zero and - -fgo-check-divide-overflow. - * gccgo.texi (Invoking gccgo): Document new options. - -2012-04-18 Steven Bosscher - - * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR - with NULL_TREE type instead of void_type_node. - -2012-03-09 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs - to the lhs type if necessary. - -2012-03-08 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a - zero-sized variable. - (go_non_zero_struct): New global variable. - (Gcc_backend::non_zero_size_type): New function. - (Gcc_backend::global_variable): Don't build an assignment for a - zero-sized value. - * go-c.h (go_non_zero_struct): Declare. - * config-lang.in (gtfiles): Add go-c.h. - -2012-02-29 Ian Lance Taylor - - * go-gcc.cc (class Gcc_tree): Add set_tree method. - (set_placeholder_pointer_type): When setting to a pointer to - error, set to error_mark_node. - -2012-02-23 Richard Guenther - - * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use - build_distinct_type_copy. - -2012-02-17 Ian Lance Taylor - - * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H). - -2012-02-17 Ian Lance Taylor - - * gospec.c (lang_specific_driver): If linking, and no -o option - was used, add one. - -2012-02-14 Ian Lance Taylor - - PR go/48411 - * Make-lang.in (gccgo-cross$(exeext)): New target. - (go.all.cross): Depend on gccgo-cross$(exeext) instead of - gccgo$(exeext). - (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if - gccgo-cross$(exeext) does not exist. - -2012-02-07 Ian Lance Taylor - - * gccgo.texi (Function Names): Document //extern instead of - __asm__. - -2012-02-01 Jakub Jelinek - - PR target/52079 - * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI - return build_nonstandard_integer_type result if possible. - -2012-01-21 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node. - (Gcc_backend::type_alignment): Likewise. - (Gcc_backend::type_field_alignment): Likewise. - (Gcc_backend::type_field_offset): Likewise. - -2012-01-20 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to - be empty. - (Gcc_backend::set_placeholder_struct_type): Likewise. - -2012-01-17 Ian Lance Taylor - - * gospec.c (lang_specific_driver): If we see -S without -o, add -o - BASE.s rather than -o BASE.o. - -2012-01-11 Ian Lance Taylor - - * go-lang.c (go_langhook_init): Initialize void_list_node before - calling go_create_gogo. - -2012-01-10 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::type_size): New function. - (Gcc_backend::type_alignment): New function. - (Gcc_backend::type_field_alignment): New function. - (Gcc_backend::type_field_offset): New function. - * go-backend.c (go_type_alignment): Remove. - * go-c.h (go_type_alignment): Don't declare. - -2011-12-27 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use - build_distinct_type_copy rather than build_variant_type_copy. - (Gcc_backend::set_placeholder_array_type): Likewise. - (Gcc_backend::named_type): Add special handling for builtin - basic types. - -2011-12-22 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange - for the type name to have a DECL_ORIGINAL_TYPE as gcc expects. - (Gcc_backend::set_placeholder_struct_type): Likewise. - (Gcc_backend::set_placeholder_array_type): Likewise. - (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE. - -2011-12-13 Ian Lance Taylor - - * go-backend.c: #include "simple-object.h" and "intl.h". - (GO_EXPORT_SEGMENT_NAME): Define if not defined. - (GO_EXPORT_SECTION_NAME): Likewise. - (go_write_export_data): Use GO_EXPORT_SECTION_NAME. - (go_read_export_data): New function. - * go-c.h (go_read_export_data): Declare. - -2011-11-29 Sanjoy Das - Ian Lance Taylor - - * go-location.h: New file. - * go-linemap.cc: New file. - * go-gcc.cc: Change all uses of source_location to Location. - * Make-lang.in (GO_OBJS): Add go/go-linemap.o. - (GO_LINEMAP_H): New variable. - (GO_LEX_H): Use $(GO_LINEMAP_H). - (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise. - (go/go-linemap.o): New target. - -2011-11-02 Rainer Orth - - * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK. - -2011-08-24 Roberto Lublinerman - - * lang.opt: Add fgo-optimize-. - * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize. - * go-c.h (go_enable_optimize): Declare. - * Make-lang.in (GO_OBJS): Add go/go-optimize.o. - (GO_EXPORT_H): Define. - (GO_IMPORT_H): Add $(GO_EXPORT_H). - (GO_AST_DUMP_H): Define. - (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H. - (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H. - (go/types.o): Likewise. - (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H. - (go/go-optimize.o): New target. - -2011-08-24 Joseph Myers - - * Make-lang.in (CFLAGS-go/go-lang.o): New. - (go/go-lang.o): Remove explicit compilation rule. - -2011-08-08 Rainer Orth - - * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS). - -2011-08-02 Roberto Lublinerman - - * Make-lang.in (GO_OBJS): Add go/ast-dump.o. - (go/ast-dump.o): New target. - (go/expressions.o): Depend on go/gofrontend/ast-dump.h. - (go/statements.o): Likewise. - -2011-07-06 Richard Guenther - - * go-lang.c (go_langhook_init): - Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. - -2011-06-14 Joseph Myers - - * Make-lang.in (go/go-lang.o, go/go-backend.o): Update - dependencies. - * go-backend.c: Include common/common-target.h. - (go_write_export_data): Use targetm_common.have_named_sections. - * go-lang.c: Include common/common-target.h. - (go_langhook_init_options_struct): Use - targetm_common.supports_split_stack. - -2011-06-13 Ian Lance Taylor - - * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). - -2011-06-10 Ian Lance Taylor - - * go-gcc.cc: Include "toplev.h". - (Gcc_backend::immutable_struct): New function. - (Gcc_backend::immutable_struct_set_init): New function. - (Gcc_backend::immutable_struct_reference): New function. - * Make-lang.in (go/go-gcc.o): Depend on toplev.h. - -2011-06-09 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::zero_expression): New function. - -2011-06-07 Richard Guenther - - * go-lang.c (go_langhook_init): Do not set - size_type_node or call set_sizetype. - -2011-05-27 Ian Lance Taylor - - * go-backend.c: Include "output.h". - (go_write_export_data): New function. - * go-c.h (go_write_export_data): Declare. - * Make-lang.in (go/go-backend.o): Depend on output.h. - (go/export.o): Depend on $(GO_C_H). Do not depend on - $(MACHMODE_H), output.h, or $(TARGET_H). - -2011-05-24 Joseph Myers - - * Make-lang.in (GCCGO_OBJS): Remove prefix.o. - (gccgo$(exeext)): Use libcommon-target.a. - -2011-05-20 Joseph Myers - - * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o. - -2011-05-13 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::function_type): When building a struct - for multiple results, check that all fields types have a size. - (Gcc_backend::placeholder_pointer_type): Permit name to be empty. - -2011-05-12 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken - parameter. - (Gcc_backend::parameter_variable): Likewise. - -2011-05-07 Eric Botcazou - - * go-lang.c (global_bindings_p): Return bool and simplify. - -2011-05-05 Nathan Froyd - - * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label. - -2011-05-04 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct. - (Gcc_backend::fill_in_struct): New function. - (Gcc_backend::array_type): Implement. - (Gcc_backend::fill_in_array): New function. - (Gcc_backend::placeholder_pointer_type): New function. - (Gcc_backend::set_placeholder_pointer_type): New function. - (Gcc_backend::set_placeholder_function_type): New function. - (Gcc_backend::placeholder_struct_type): New function. - (Gcc_backend::set_placeholder_struct_type): New function. - (Gcc_backend::placeholder_array_type): New function. - (Gcc_backend::set_placeholder_array_type): New function. - (Gcc_backend::named_type): New function. - (Gcc_backend::circular_pointer_type): New function. - (Gcc_backend::is_circular_pointer_type): New function. - -2011-04-26 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::struct_type): Implement. - -2011-04-25 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::error_type): Implement. - (Gcc_backend::string_type): Remove. - (Gcc_backend::function_type): Change signature and implement. - (Gcc_backend::struct_type): Change signature. - (Gcc_backend::slice_type, Gcc_backend::map_type): Remove. - (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove. - (Gcc_backend::pointer_type): Check for error. - * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h. - -2011-04-25 Evan Shaw - - * go-gcc.c (class Gcc_tree): Make get_tree const. - (Gcc_backend::void_type): Implement. - (Gcc_backend::bool_type): Implement. - (Gcc_backend::integer_type): Implement. - (Gcc_backend::float_type): Implement. - (Gcc_backend::complex_type): New function. - (Gcc_backend::pointer_type): New function. - (Gcc_backend::make_type): New function. - (type_to_tree): New function. - -2011-04-21 Ian Lance Taylor - - * go-system.h (go_assert, go_unreachable): Define. - -2011-04-19 Ian Lance Taylor - - * go-system.h: Include "intl.h". - * Make-lang.in (GO_SYSTEM_H): Add intl.h. - (go/statements.o): Remove dependencies on intl.h $(TREE_H) - $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H). - -2011-04-19 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::temporary_variable): New function. - -2011-04-19 Ian Lance Taylor - - * go-gcc.cc (class Bblock): Define. - (Gcc_backend::if_statement): Change then_block and else_block to - Bblock*. - (Gcc_backend::block): New function. - (Gcc_backend::block_add_statements): New function. - (Gcc_backend::block_statement): New function. - (tree_to_block, block_to_tree): New functions. - -2011-04-18 Ian Lance Taylor - - * go-gcc.cc: Include "go-c.h". - (class Bvariable): Define. - (Gcc_backend::init_statement): New function. - (Gcc_backend::global_variable): New function. - (Gcc_backend::global_variable_set_init): New function. - (Gcc_backend::local_variable): New function. - (Gcc_backend::parameter_variable): New function. - (tree_to_type, var_to_tree): New functions. - * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H). - * (go/gogo-tree.o): Depend on go/gofrontend/backend.h. - -2011-04-15 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::compound_statement): New function. - (Gcc_backend::assignment_statement): Use error_statement. - (Gcc_backend::return_statement): Likewise. - (Gcc_backend::if_statement): Likewise. - (Gcc_backend::switch_statement): Likewise. - (Gcc_backend::statement_list): Likewise. - -2011-04-14 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::error_statement): New function. - -2011-04-13 Ian Lance Taylor - - * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H). - -2011-04-13 Ian Lance Taylor - - * Make-lang.in (GO_OBJS): Add go/runtime.o. - (GO_RUNTIME_H): New variable. - (go/runtime.o): New target. - (go/gogo.o): Depend on $(GO_RUNTIME_H). - (go/statements.o): Likewise. - -2011-04-12 Nathan Froyd - - * go-lang.c (union lang_tree_node): Check for TS_COMMON before - calling TREE_CHAIN. - -2011-04-06 Ian Lance Taylor - - * go-gcc.cc (if_statement): Use build3_loc. - (Gcc_backend::switch_statement): New function. - (Gcc_backend::statement_list): New function. - -2011-04-06 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::if_statement): New function. - (tree_to_stat): New function. - (expr_to_tree): Renamed from expression_to_tree. - (stat_to_tree): Renamed from statement_to_tree. - -2011-04-06 Ian Lance Taylor - - * go-gcc.cc (Gcc_backend::expression_statement): New function. - -2011-04-04 Ian Lance Taylor - - * go-gcc.c (class Blabel): Define. - (Gcc_backend::make_expression): New function. - (get_identifier_from_string): New function. - (Gcc_backend::label): New function. - (Gcc_backend::label_definition_statement): New function. - (Gcc_backend::goto_statement): New function. - (Gcc_backend::label_address): New function. - (expression_to_tree): New function. - * Make-lang.in (go/expressions.o): Depend on - go/gofrontend/backend.h. - (go/gogo.o): Likewise. - -2011-04-04 Ian Lance Taylor - - * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h". - (class Bfunction): Define. - (Gcc_backend::assignment_statement): Rename from assignment. - Check for errors. - (Gcc_backend::return_statement): New function. - (tree_to_function): New function. - * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h, - $(GIMPLE_H), and $(GO_GOGO_H). - -2011-04-03 Ian Lance Taylor - - * go-gcc.cc: New file. - * Make-lang.in (GO_OBJS): Add go/go-gcc.o. - (go/go-gcc.o): New target. - (go/go.o): Depend on go/gofrontend/backend.h. - (go/statements.o): Likewise. - -2011-02-14 Ralf Wildenhues - - * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit. - -2011-02-08 Ian Lance Taylor - - * go-lang.c (go_langhook_init_options_struct): Set - frontend_set_flag_errno_math. Don't set x_flag_trapping_math. - -2011-01-31 Rainer Orth - - * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use - LD_STATIC_OPTION, LD_DYNAMIC_OPTION. - -2011-01-21 Ian Lance Taylor - - * go-lang.c (go_langhook_init): Omit float_type_size when calling - go_create_gogo. - * go-c.h: Update declaration of go_create_gogo. - -2011-01-13 Ian Lance Taylor - - * go-backend.c: Include "rtl.h" and "target.h". - (go_imported_unsafe): New function. - * go-c.h (go_imported_unsafe): Declare. - * Make-lang.in (go/go-backend.o): Depend on $(RTL_H). - (go/gogo-tree.o): Remove dependency on $(RTL_H). - (go/unsafe.o): Depend on $(GO_C_H). - -2010-12-31 Joern Rennecke - - PR go/47113 - * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to - variable ‘field’ . - -2010-12-21 Ian Lance Taylor - - * Make-lang.in (check-go): Remove. - (lang_checks_parallelized): Add check-go. - (check_go_parallelize): Set. - -2010-12-13 Ian Lance Taylor - - * gospec.c (lang_specific_driver): Add a -o option if not linking - and there is no -o option already. - -2010-12-07 Ian Lance Taylor - - PR tree-optimization/46805 - PR tree-optimization/46833 - * go-lang.c (go_langhook_type_for_mode): Handle vector modes. - -2010-12-06 Ian Lance Taylor - - PR other/46789 - PR bootstrap/46812 - * go-lang.c (go_char_p): Define type and vectors. - (go_search_dirs): New static variable. - (go_langhook_handle_option): Use version and version/machine - directories for -L. - (go_langhook_post_options): Add non-specific -L paths. - * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and - DEFAULT_TARGET_MACHINE when compiling. - * gccgo.texi (Invoking gccgo): Only document -L for linking. - (Import and Export): Don't mention -L for finding import files. - -2010-12-03 Ian Lance Taylor - - PR bootstrap/46776 - * go-backend.c: New file. - * go-c.h (go_type_alignment): Declare. - (go_field_alignment, go_trampoline_info): Declare. - * Make-lang.in (GO_OBJS): Add go/go-backend.o. - (go/go-backend.o): New target. - (go/go-lang.o): Make dependencies match source file. - (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H). - (go/gogo-tree.o): Don't depend on $(TM_H). - -2010-12-03 Ian Lance Taylor - - * config-lang.in (build_by_default): Set to no. - -2010-12-02 Ian Lance Taylor - - Go frontend added to gcc repository. +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. diff --git a/gcc/go/ChangeLog-2013 b/gcc/go/ChangeLog-2013 new file mode 100644 index 00000000000..f6e6599bda3 --- /dev/null +++ b/gcc/go/ChangeLog-2013 @@ -0,0 +1,745 @@ +2013-12-16 Chris Manghane + + * go-gcc.cc (Gcc_backend::struct_field_expression): New function. + +2013-12-11 Ian Lance Taylor + + * go-lang.c (go_langhook_post_options): Disable sibling calls by + default. + +2013-12-10 Ian Lance Taylor + + * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests + separately. + +2013-12-05 Ian Lance Taylor + + Revert this change; no longer required. + 2013-11-06 Ian Lance Taylor + + * go-lang.c (go_langhook_post_options): If + -fisolate-erroneous-paths was turned on by an optimization option, + turn it off. + +2013-11-23 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::function_type): Add result_struct + parameter. + +2013-11-22 Andrew MacLeod + + * go-gcc.cc: Add required include files from gimple.h. + * go-lang.c: Likewise + +2013-11-18 Richard Sandiford + + * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with + tree_to_shwi throughout. + +2013-11-18 Richard Sandiford + + * gofrontend/expressions.cc: Replace host_integerp (..., 0) with + tree_fits_shwi_p throughout. + +2013-11-14 Andrew MacLeod + + * go-lang.c: Include only gimplify.h and gimple.h as needed. + +2013-11-14 Diego Novillo + + * go-backend.c: Include stor-layout.h. + * go-gcc.cc: Include stringpool.h. + Include stor-layout.h. + Include varasm.h. + * go-lang.c: Include stor-layout.h. + +2013-11-12 Andrew MacLeod + + * go-lang.c: Include gimplify.h. + +2013-11-06 Ian Lance Taylor + + * go-lang.c (go_langhook_post_options): If + -fisolate-erroneous-paths was turned on by an optimization option, + turn it off. + +2013-10-14 Chris Manghane + + * go-gcc.cc (Gcc_backend::address_expression): New function. + +2013-10-11 Chris Manghane + + * go-gcc.cc (Gcc_backend::function_code_expression): New + function. + +2013-10-10 Chris Manghane + + * go-gcc.cc (Gcc_backend::error_function): New function. + (Gcc_backend::function): New function. + (Gcc_backend::make_function): New function. + (function_to_tree): New function. + +2013-10-04 Chris Manghane + + * go-gcc.cc (Gcc_backend::convert_expression): New function. + +2013-10-02 Chris Manghane + + * go-gcc.cc: Include "real.h" and "realmpfr.h". + (Gcc_backend::integer_constant_expression): New function. + (Gcc_backend::float_constant_expression): New function. + (Gcc_backend::complex_constant_expression): New function. + +2013-09-30 Chris Manghane + + * go-gcc.cc (Gcc_backend::error_expression): New function. + (Gcc_backend::var_expression): New function. + (Gcc_backend::indirect_expression): New function. + +2013-09-25 Tom Tromey + + * Make-lang.in (gospec.o): Remove. + (CFLAGS-go/gospec.o): New variable. + (GCCGO_OBJS): Update to use go/gospec.o. + (go_OBJS): Define. + (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H) + (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H) + (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H) + (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o) + (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o) + (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o) + (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o) + (go/parse.o, go/runtime.o, go/statements.o, go/types.o) + (go/unsafe.o): Remove. + (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables. + (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE. + +2013-09-25 Tom Tromey + + * Make-lang.in (gospec.o): Don't use subshell. + +2013-08-28 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if + the struct is not hidden. + (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC. + +2013-08-06 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use + compute_reloc_for_constant. + +2013-08-02 Ian Lance Taylor + + * go-gcc.cc (immutable_struct_set_init): Always call + resolve_unique_section. + +2013-07-24 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a + fields, recreate those fields with the first one with a non-zero + size. + +2013-07-23 Ian Lance Taylor + + * go-backend.c: Don't #include "rtl.h". + (go_imported_unsafe): Don't call init_varasm_once. + * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H). + +2013-07-23 Ian Lance Taylor + + * go-lang.c: Don't #include "except.h". + * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H). + +2013-06-18 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden + parameter. + (Gcc_backend::immutable_struct_set_init): Likewise. + +2013-05-16 Jason Merrill + + * Make-lang.in (go1$(exeext)): Use link mutex. + +2013-01-16 Shenghou Ma + + * gospec.c: pass -u pthread_create to linker when static linking. + +2012-12-21 Ian Lance Taylor + + PR bootstrap/54659 + * go-system.h: Don't include . + +2012-12-18 Ian Lance Taylor + + PR go/55201 + * gospec.c: Revert last patch. + +2012-12-18 Andreas Schwab + + PR go/55201 + * gospec.c (LIBATOMIC): Define. + (LIBATOMIC_PROFILE): Define. + (lang_specific_driver): Add LIBATOMIC[_PROFILE] option. + +2012-11-29 Ian Lance Taylor + + * go-gcc.cc: Include "output.h". + (global_variable): Add is_unique_section parameter. + (global_variable_set_init): Adjust unique section if necessary. + * Make-lang.in (go/go-gcc.o): Add dependency on output.h. + +2012-11-17 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * go-lang.c: Use new vec API in vec.h. + +2012-11-16 Ian Lance Taylor + + * Make-lang.in (gccgo$(exeext)): Add + at start of command. + (go1$(exeext)): Likewise. + +2012-10-30 Ian Lance Taylor + + * lang.opt (-fgo-relative-import-path): New option. + * go-lang.c (go_relative_import_path): New static variable. + (go_langhook_init): Pass go_relative_import_path to + go_create_gogo. + (go_langhook_handle_option): Handle -fgo-relative-import-path. + * go-c.h (go_create_gogo): Update declaration. + * gccgo.texi (Invoking gccgo): Document + -fgo-relative-import-path. + +2012-09-17 Ian Lance Taylor + + * config-lang.in (target_libs): Add target-libbacktrace. + +2012-09-16 Ian Lance Taylor + + * Make-lang.in (go/gogo.o): Depend on filenames.h. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. Configury. + + * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX. + * go-gcc.cc: Likewise. + * go-system.h: Likewise. + +2012-07-24 Uros Bizjak + + * go-lang.c (lang_decl): Add variable_size GTY option. + +2012-05-09 Ian Lance Taylor + + * lang.opt: Add -fgo-pkgpath. + * go-lang.c (go_pkgpath): New static variable. + (go_prefix): New static variable. + (go_langhook_init): Pass go_pkgpath and go_prefix to + go_create_gogo. + (go_langhook_handle_option): Handle -fgo-pkgpath. Change + -fgo-prefix handling to just set go_prefix. + * go-c.h (go_set_prefix): Don't declare. + (go_create_gogo): Add pkgpath and prefix to declaration. + * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix + to pkgpath. Don't include the package name in the asm name. + * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the + docs for -fgo-prefix. + +2012-04-23 Ian Lance Taylor + + * go-lang.c (go_langhook_init): Set MPFR precision to 256. + +2012-04-20 Ian Lance Taylor + + * lang.opt: Add -fgo-check-divide-zero and + -fgo-check-divide-overflow. + * gccgo.texi (Invoking gccgo): Document new options. + +2012-04-18 Steven Bosscher + + * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR + with NULL_TREE type instead of void_type_node. + +2012-03-09 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs + to the lhs type if necessary. + +2012-03-08 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a + zero-sized variable. + (go_non_zero_struct): New global variable. + (Gcc_backend::non_zero_size_type): New function. + (Gcc_backend::global_variable): Don't build an assignment for a + zero-sized value. + * go-c.h (go_non_zero_struct): Declare. + * config-lang.in (gtfiles): Add go-c.h. + +2012-02-29 Ian Lance Taylor + + * go-gcc.cc (class Gcc_tree): Add set_tree method. + (set_placeholder_pointer_type): When setting to a pointer to + error, set to error_mark_node. + +2012-02-23 Richard Guenther + + * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use + build_distinct_type_copy. + +2012-02-17 Ian Lance Taylor + + * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H). + +2012-02-17 Ian Lance Taylor + + * gospec.c (lang_specific_driver): If linking, and no -o option + was used, add one. + +2012-02-14 Ian Lance Taylor + + PR go/48411 + * Make-lang.in (gccgo-cross$(exeext)): New target. + (go.all.cross): Depend on gccgo-cross$(exeext) instead of + gccgo$(exeext). + (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if + gccgo-cross$(exeext) does not exist. + +2012-02-07 Ian Lance Taylor + + * gccgo.texi (Function Names): Document //extern instead of + __asm__. + +2012-02-01 Jakub Jelinek + + PR target/52079 + * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI + return build_nonstandard_integer_type result if possible. + +2012-01-21 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node. + (Gcc_backend::type_alignment): Likewise. + (Gcc_backend::type_field_alignment): Likewise. + (Gcc_backend::type_field_offset): Likewise. + +2012-01-20 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to + be empty. + (Gcc_backend::set_placeholder_struct_type): Likewise. + +2012-01-17 Ian Lance Taylor + + * gospec.c (lang_specific_driver): If we see -S without -o, add -o + BASE.s rather than -o BASE.o. + +2012-01-11 Ian Lance Taylor + + * go-lang.c (go_langhook_init): Initialize void_list_node before + calling go_create_gogo. + +2012-01-10 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::type_size): New function. + (Gcc_backend::type_alignment): New function. + (Gcc_backend::type_field_alignment): New function. + (Gcc_backend::type_field_offset): New function. + * go-backend.c (go_type_alignment): Remove. + * go-c.h (go_type_alignment): Don't declare. + +2011-12-27 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use + build_distinct_type_copy rather than build_variant_type_copy. + (Gcc_backend::set_placeholder_array_type): Likewise. + (Gcc_backend::named_type): Add special handling for builtin + basic types. + +2011-12-22 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange + for the type name to have a DECL_ORIGINAL_TYPE as gcc expects. + (Gcc_backend::set_placeholder_struct_type): Likewise. + (Gcc_backend::set_placeholder_array_type): Likewise. + (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE. + +2011-12-13 Ian Lance Taylor + + * go-backend.c: #include "simple-object.h" and "intl.h". + (GO_EXPORT_SEGMENT_NAME): Define if not defined. + (GO_EXPORT_SECTION_NAME): Likewise. + (go_write_export_data): Use GO_EXPORT_SECTION_NAME. + (go_read_export_data): New function. + * go-c.h (go_read_export_data): Declare. + +2011-11-29 Sanjoy Das + Ian Lance Taylor + + * go-location.h: New file. + * go-linemap.cc: New file. + * go-gcc.cc: Change all uses of source_location to Location. + * Make-lang.in (GO_OBJS): Add go/go-linemap.o. + (GO_LINEMAP_H): New variable. + (GO_LEX_H): Use $(GO_LINEMAP_H). + (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise. + (go/go-linemap.o): New target. + +2011-11-02 Rainer Orth + + * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK. + +2011-08-24 Roberto Lublinerman + + * lang.opt: Add fgo-optimize-. + * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize. + * go-c.h (go_enable_optimize): Declare. + * Make-lang.in (GO_OBJS): Add go/go-optimize.o. + (GO_EXPORT_H): Define. + (GO_IMPORT_H): Add $(GO_EXPORT_H). + (GO_AST_DUMP_H): Define. + (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H. + (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H. + (go/types.o): Likewise. + (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H. + (go/go-optimize.o): New target. + +2011-08-24 Joseph Myers + + * Make-lang.in (CFLAGS-go/go-lang.o): New. + (go/go-lang.o): Remove explicit compilation rule. + +2011-08-08 Rainer Orth + + * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS). + +2011-08-02 Roberto Lublinerman + + * Make-lang.in (GO_OBJS): Add go/ast-dump.o. + (go/ast-dump.o): New target. + (go/expressions.o): Depend on go/gofrontend/ast-dump.h. + (go/statements.o): Likewise. + +2011-07-06 Richard Guenther + + * go-lang.c (go_langhook_init): + Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. + +2011-06-14 Joseph Myers + + * Make-lang.in (go/go-lang.o, go/go-backend.o): Update + dependencies. + * go-backend.c: Include common/common-target.h. + (go_write_export_data): Use targetm_common.have_named_sections. + * go-lang.c: Include common/common-target.h. + (go_langhook_init_options_struct): Use + targetm_common.supports_split_stack. + +2011-06-13 Ian Lance Taylor + + * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). + +2011-06-10 Ian Lance Taylor + + * go-gcc.cc: Include "toplev.h". + (Gcc_backend::immutable_struct): New function. + (Gcc_backend::immutable_struct_set_init): New function. + (Gcc_backend::immutable_struct_reference): New function. + * Make-lang.in (go/go-gcc.o): Depend on toplev.h. + +2011-06-09 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::zero_expression): New function. + +2011-06-07 Richard Guenther + + * go-lang.c (go_langhook_init): Do not set + size_type_node or call set_sizetype. + +2011-05-27 Ian Lance Taylor + + * go-backend.c: Include "output.h". + (go_write_export_data): New function. + * go-c.h (go_write_export_data): Declare. + * Make-lang.in (go/go-backend.o): Depend on output.h. + (go/export.o): Depend on $(GO_C_H). Do not depend on + $(MACHMODE_H), output.h, or $(TARGET_H). + +2011-05-24 Joseph Myers + + * Make-lang.in (GCCGO_OBJS): Remove prefix.o. + (gccgo$(exeext)): Use libcommon-target.a. + +2011-05-20 Joseph Myers + + * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o. + +2011-05-13 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::function_type): When building a struct + for multiple results, check that all fields types have a size. + (Gcc_backend::placeholder_pointer_type): Permit name to be empty. + +2011-05-12 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken + parameter. + (Gcc_backend::parameter_variable): Likewise. + +2011-05-07 Eric Botcazou + + * go-lang.c (global_bindings_p): Return bool and simplify. + +2011-05-05 Nathan Froyd + + * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label. + +2011-05-04 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct. + (Gcc_backend::fill_in_struct): New function. + (Gcc_backend::array_type): Implement. + (Gcc_backend::fill_in_array): New function. + (Gcc_backend::placeholder_pointer_type): New function. + (Gcc_backend::set_placeholder_pointer_type): New function. + (Gcc_backend::set_placeholder_function_type): New function. + (Gcc_backend::placeholder_struct_type): New function. + (Gcc_backend::set_placeholder_struct_type): New function. + (Gcc_backend::placeholder_array_type): New function. + (Gcc_backend::set_placeholder_array_type): New function. + (Gcc_backend::named_type): New function. + (Gcc_backend::circular_pointer_type): New function. + (Gcc_backend::is_circular_pointer_type): New function. + +2011-04-26 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::struct_type): Implement. + +2011-04-25 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::error_type): Implement. + (Gcc_backend::string_type): Remove. + (Gcc_backend::function_type): Change signature and implement. + (Gcc_backend::struct_type): Change signature. + (Gcc_backend::slice_type, Gcc_backend::map_type): Remove. + (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove. + (Gcc_backend::pointer_type): Check for error. + * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h. + +2011-04-25 Evan Shaw + + * go-gcc.c (class Gcc_tree): Make get_tree const. + (Gcc_backend::void_type): Implement. + (Gcc_backend::bool_type): Implement. + (Gcc_backend::integer_type): Implement. + (Gcc_backend::float_type): Implement. + (Gcc_backend::complex_type): New function. + (Gcc_backend::pointer_type): New function. + (Gcc_backend::make_type): New function. + (type_to_tree): New function. + +2011-04-21 Ian Lance Taylor + + * go-system.h (go_assert, go_unreachable): Define. + +2011-04-19 Ian Lance Taylor + + * go-system.h: Include "intl.h". + * Make-lang.in (GO_SYSTEM_H): Add intl.h. + (go/statements.o): Remove dependencies on intl.h $(TREE_H) + $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H). + +2011-04-19 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::temporary_variable): New function. + +2011-04-19 Ian Lance Taylor + + * go-gcc.cc (class Bblock): Define. + (Gcc_backend::if_statement): Change then_block and else_block to + Bblock*. + (Gcc_backend::block): New function. + (Gcc_backend::block_add_statements): New function. + (Gcc_backend::block_statement): New function. + (tree_to_block, block_to_tree): New functions. + +2011-04-18 Ian Lance Taylor + + * go-gcc.cc: Include "go-c.h". + (class Bvariable): Define. + (Gcc_backend::init_statement): New function. + (Gcc_backend::global_variable): New function. + (Gcc_backend::global_variable_set_init): New function. + (Gcc_backend::local_variable): New function. + (Gcc_backend::parameter_variable): New function. + (tree_to_type, var_to_tree): New functions. + * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H). + * (go/gogo-tree.o): Depend on go/gofrontend/backend.h. + +2011-04-15 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::compound_statement): New function. + (Gcc_backend::assignment_statement): Use error_statement. + (Gcc_backend::return_statement): Likewise. + (Gcc_backend::if_statement): Likewise. + (Gcc_backend::switch_statement): Likewise. + (Gcc_backend::statement_list): Likewise. + +2011-04-14 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::error_statement): New function. + +2011-04-13 Ian Lance Taylor + + * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H). + +2011-04-13 Ian Lance Taylor + + * Make-lang.in (GO_OBJS): Add go/runtime.o. + (GO_RUNTIME_H): New variable. + (go/runtime.o): New target. + (go/gogo.o): Depend on $(GO_RUNTIME_H). + (go/statements.o): Likewise. + +2011-04-12 Nathan Froyd + + * go-lang.c (union lang_tree_node): Check for TS_COMMON before + calling TREE_CHAIN. + +2011-04-06 Ian Lance Taylor + + * go-gcc.cc (if_statement): Use build3_loc. + (Gcc_backend::switch_statement): New function. + (Gcc_backend::statement_list): New function. + +2011-04-06 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::if_statement): New function. + (tree_to_stat): New function. + (expr_to_tree): Renamed from expression_to_tree. + (stat_to_tree): Renamed from statement_to_tree. + +2011-04-06 Ian Lance Taylor + + * go-gcc.cc (Gcc_backend::expression_statement): New function. + +2011-04-04 Ian Lance Taylor + + * go-gcc.c (class Blabel): Define. + (Gcc_backend::make_expression): New function. + (get_identifier_from_string): New function. + (Gcc_backend::label): New function. + (Gcc_backend::label_definition_statement): New function. + (Gcc_backend::goto_statement): New function. + (Gcc_backend::label_address): New function. + (expression_to_tree): New function. + * Make-lang.in (go/expressions.o): Depend on + go/gofrontend/backend.h. + (go/gogo.o): Likewise. + +2011-04-04 Ian Lance Taylor + + * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h". + (class Bfunction): Define. + (Gcc_backend::assignment_statement): Rename from assignment. + Check for errors. + (Gcc_backend::return_statement): New function. + (tree_to_function): New function. + * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h, + $(GIMPLE_H), and $(GO_GOGO_H). + +2011-04-03 Ian Lance Taylor + + * go-gcc.cc: New file. + * Make-lang.in (GO_OBJS): Add go/go-gcc.o. + (go/go-gcc.o): New target. + (go/go.o): Depend on go/gofrontend/backend.h. + (go/statements.o): Likewise. + +2011-02-14 Ralf Wildenhues + + * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit. + +2011-02-08 Ian Lance Taylor + + * go-lang.c (go_langhook_init_options_struct): Set + frontend_set_flag_errno_math. Don't set x_flag_trapping_math. + +2011-01-31 Rainer Orth + + * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use + LD_STATIC_OPTION, LD_DYNAMIC_OPTION. + +2011-01-21 Ian Lance Taylor + + * go-lang.c (go_langhook_init): Omit float_type_size when calling + go_create_gogo. + * go-c.h: Update declaration of go_create_gogo. + +2011-01-13 Ian Lance Taylor + + * go-backend.c: Include "rtl.h" and "target.h". + (go_imported_unsafe): New function. + * go-c.h (go_imported_unsafe): Declare. + * Make-lang.in (go/go-backend.o): Depend on $(RTL_H). + (go/gogo-tree.o): Remove dependency on $(RTL_H). + (go/unsafe.o): Depend on $(GO_C_H). + +2010-12-31 Joern Rennecke + + PR go/47113 + * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to + variable ‘field’ . + +2010-12-21 Ian Lance Taylor + + * Make-lang.in (check-go): Remove. + (lang_checks_parallelized): Add check-go. + (check_go_parallelize): Set. + +2010-12-13 Ian Lance Taylor + + * gospec.c (lang_specific_driver): Add a -o option if not linking + and there is no -o option already. + +2010-12-07 Ian Lance Taylor + + PR tree-optimization/46805 + PR tree-optimization/46833 + * go-lang.c (go_langhook_type_for_mode): Handle vector modes. + +2010-12-06 Ian Lance Taylor + + PR other/46789 + PR bootstrap/46812 + * go-lang.c (go_char_p): Define type and vectors. + (go_search_dirs): New static variable. + (go_langhook_handle_option): Use version and version/machine + directories for -L. + (go_langhook_post_options): Add non-specific -L paths. + * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and + DEFAULT_TARGET_MACHINE when compiling. + * gccgo.texi (Invoking gccgo): Only document -L for linking. + (Import and Export): Don't mention -L for finding import files. + +2010-12-03 Ian Lance Taylor + + PR bootstrap/46776 + * go-backend.c: New file. + * go-c.h (go_type_alignment): Declare. + (go_field_alignment, go_trampoline_info): Declare. + * Make-lang.in (GO_OBJS): Add go/go-backend.o. + (go/go-backend.o): New target. + (go/go-lang.o): Make dependencies match source file. + (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H). + (go/gogo-tree.o): Don't depend on $(TM_H). + +2010-12-03 Ian Lance Taylor + + * config-lang.in (build_by_default): Set to no. + +2010-12-02 Ian Lance Taylor + + Go frontend added to gcc repository. diff --git a/gcc/go/gccgo.texi b/gcc/go/gccgo.texi index f6fc3a6b541..d7222d50129 100644 --- a/gcc/go/gccgo.texi +++ b/gcc/go/gccgo.texi @@ -12,7 +12,7 @@ @include gcc-common.texi @c Copyright years for this manual. -@set copyrights-go 2010-2013 +@set copyrights-go 2010-2014 @copying @c man begin COPYRIGHT diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 5ab19210cb7..a9d272878cc 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,22897 +1,9 @@ -2013-12-19 Jakub Jelinek - - PR other/59545 - * class.c (hashUtf8String): Compute hash in unsigned type. - * javaop.h (WORD_TO_INT): Avoid signed integer overflow. - -2013-11-22 Andrew MacLeod - - * java-gimplify.c: Add required include files from gimple.h. - -2013-11-22 David Malcolm - - * class.c (maybe_layout_super_class): Update comment. - * decl.c (java_add_stmt): Remove use of input_filename macro. - * jcf-parse.c (set_source_filename): Remove use of - input_filename macro. - (parse_class_file): Remove use of input_line and input_filename - macros. - (java_parse_file): Remove use of input_filename macro. - -2013-11-18 Richard Sandiford - - * class.c, expr.c: Replace tree_low_cst (..., 0) with tree_to_shwi - throughout. - -2013-11-18 Richard Sandiford - - * class.c, expr.c: Replace host_integerp (..., 0) with - tree_fits_shwi_p throughout. - -2013-11-14 Andrew MacLeod - - * java-gimplify.c: Include only gimplify.h and gimple.h as needed. - -2013-11-14 Diego Novillo - - * builtins.c: Include stor-layout.h. - Include stringpool.h. - * class.c: Include stringpool.h. - Include stor-layout.h. - Include varasm.h. - * constants.c: Include stringpool.h. - Include stor-layout.h. - * decl.c: Include stor-layout.h. - Include stringpool.h. - Include varasm.h. - * except.c: Include stringpool.h. - Include stor-layout.h. - * expr.c: Include stringpool.h. - Include stor-layout.h. - * jcf-parse.c: Include stringpool.h. - * mangle.c: Include stringpool.h. - * resource.c: Include stringpool.h. - Include stor-layout.h. - * typeck.c: Include stor-layout.h. - Include stringpool.h. - * verify-glue.c: Include stringpool.h. - -2013-11-12 Andrew MacLeod - - * java-gimplify.c: Include gimplify.h. - -2013-11-07 Jeff Law - - * builtins.c (initialize_builtins): Provide __builtin_trap. - -2013-10-29 David Malcolm - - Patch autogenerated by refactor_symtab.py from - https://github.com/davidmalcolm/gcc-refactoring-scripts - revision 58bb219cc090b2f4516a9297d868c245495ee622 - - * decl.c (java_mark_decl_local): Update for conversion of symtab types - to a true class hierarchy. - -2013-10-14 David Malcolm - - * lang.c (java_handle_option): Update for introduction of - gcc::dump_manager. - -2013-09-25 Tom Tromey - - * Make-lang.in (jvspec.o): Remove. - (CFLAGS-java/jvspec.o): New variable. - ($(XGCJ)$(exeext), java_OBJS): Use java/jvspec.o - (java/jvspec.o-warn): Rename from jvspec.o-warn. - (JAVA_TREE_H, java/jcf-dump.o, java/boehm.o, java/builtins.o) - (java/class.o, java/constants.o, java/decl.o, java/except.o) - (java/expr.o, java/jcf-depend.o, java/jcf-parse.o) - (java/jvgenmain.o, java/lang.o, java/mangle.o, java/mangle_name.o) - (java/resource.o java/typeck.o, java/win32-host.o) - (java/verify-glue.o, java/verify-impl.o, java/zextract.o) - (java/java-gimplify.o, java/jcf-io.o, java/jcf-path.o): Remove. - -2013-09-25 Tom Tromey - - * Make-lang.in (jvspec.o): Don't use subshell. - -2013-06-05 Jan Hubicka - - * class.c (emit_register_classes_in_jcr_section): Use DECL_PRESERVE_P - instead of mark_decl_referenced. - -2013-05-29 Jan Hubicka - - * decl.c (java_mark_decl_local): Update for new symtab flags. - -2013-05-22 Matthias Klose - - * jvspec.c (jvgenmain_spec): Add %I to cc1 call. - -2013-05-16 Jason Merrill - - * Make-lang.in (jc1$(exeext)): Use link mutex. - -2013-05-06 Jakub Jelinek - - PR libgcj/57074 - * class.c (emit_symbol_table): Use array type of the - right size for the_syms_decl and its DECL_INITIAL, instead - of symbols_array_type. Set TREE_TYPE (the_syms_decl) to it. - (emit_assertion_table): Use array type of the right size - for table_decl and its DECL_INITIAL. - -2013-04-15 Gerald Pfeifer - - * gcj.texi (Configure-time Options): Refer to GCC, not gcc. - (Resources): Adjust reference to Mauve. - Remove link to java.sun.com. - Refer to GCC, not gcc. - -2013-04-09 Richard Biener - - * expr.c (build_java_binop): Pass a type to build_int_cst. - -2013-03-22 Kai Tietz - - * lang.c (put_decl_node): Don't iterate over end_params_node. - -2013-01-03 Jakub Jelinek +2014-01-02 Tobias Burnus * jcf-dump.c (version): Update copyright notice dates. - -2012-11-16 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * boehm.c: Use new vec API in vec.h. - * class.c: Likewise. - * constants.c: Likewise. - * decl.c: Likewise. - * expr.c: Likewise. - * java-tree.h: Likewise. - * jcf-parse.c: Likewise. - * resource.c: Likewise. - * verify-glue.c: Likewise. - -2012-11-15 Jan Hubicka - - * builtins.c (define_builtin): Accept ECF flags and - use set_call_expr_flags. - (initialize_builtins): Update. - -2012-10-01 Lawrence Crowl - - * Make-lang.in (JAVA_OBJS): Add dependence on hash-table.o. - (JCFDUMP_OBJS): Add dependence on hash-table.o. - (jcf-io.o): Add dependence on hash-table.h. - * jcf-io.c (memoized_class_lookups): Change to use type-safe hash table. - -2012-09-24 Lawrence Crowl - - * decl.c (java_init_decl_processing): Change to new double_int API. - * jcf-parse.c (get_constant): Likewise. - * boehm.c (mark_reference_fields): Likewise. - (get_boehm_type_descriptor): Likewise. - -2012-07-30 Laurynas Biveinis - - * jcf.h (CPool): Use the "atomic" GTY option for the tags field. - (bootstrap_method): Likewise for the bootstrap_arguments field. - -2012-07-16 Steven Bosscher - - * java-gimplify.c: Include dumpfile.h instead of tree-dump.h - * Make-lang.in: Fix dependencies. - -2012-07-11 Steven Bosscher - - * java-tree.h (force_evaluation_order): Remove prototype. - * expr.c (force_evaluation_order): Remove unused function. - -2012-07-11 Steven Bosscher - - * decl.c: Do not include libfuncs.h. - * class.c: Do not include defaults.h. - * jvgenmain.c: Likewise. - * magnle.c: Likewise. - * Make-lang.in (decl.o): Fix dependencies. - -2012-07-08 Steven Bosscher - - * verify.h: Do not include system.h and coretypes.h here. - * verify-impl.c: Include them here instead. - -2012-07-05 Uros Bizjak - - * jcf-io.c (read_zip_member): Initialize d_stream. - -2012-05-31 Steven Bosscher - - * resource.c: Do not include output.h. - -2012-05-21 John David Anglin - - PR java/52815 - * class.c (emit_register_classes_in_jcr_section): Revise placement - of #ifdef JCR_SECTION_NAME. - -2012-04-22 Jan Hubicka - - * class.c (build_utf8_ref): Do not mark varpool node as needed. - -2012-04-20 Jan Hubicka - - * class.c (make_local_function_alias): Do not mark symbol referenced. - -2012-04-11 Rainer Orth - - * jcf-dump.c (print_constant): Cast JPOOL_USHORT2, JPOOL_USHORT1 - results to long to match formats. - -2012-04-11 Andrew Haley - - * jcf-reader.c (jcf_parse_bootstrap_methods): Add - ATTRIBUTE_UNUSED. - -2012-04-11 Andrew Haley - - * jcf.h (bootstrap_method): New. - (BootstrapMethods): New. - (JCF): Add BootstrapMethods. - (enum cpool_tag): Add MethodHandle, MethodType, and InvokeDynamic. - * jcf-reader.c (jcf_parse_bootstrap_methods): New. - (jcf_parse_constant_pool): Handlers for MethodHandle, MethodType, - and InvokeDynamic. - (jcf_parse_bootstrap_methods): New. - * javaop.def (invokedynamic): New opcode. - * jcf-parse.c (get_constant): An unknown constant type should not - be an internal error, but a fatal one. Make it so. - * jcf-dump.c (HANDLE_BOOTSTRAP_METHODS_ATTRIBUTE): New. - (HANDLE_END_BOOTSTRAP_METHODS): New. - (print_constant): Handlers for MethodHandle, MethodType, and - InvokeDynamic. - -2012-04-02 Rainer Orth - - * class.c (emit_register_classes_in_jcr_section): Set DECL_USER_ALIGN. - Clear TREE_READONLY. - -2012-03-29 Steven Bosscher - - PR java/52730 - * class.c (emit_register_classes_in_jcr_section): New function. - (emit_Jv_RegisterClass_calls): New function, split out from ... - (emit_register_classes): ... here. Reorganize. Do not call - output_constant. - -2012-01-23 Andreas Schwab - - * lang.c (java_init_options_struct): Set - frontend_set_flag_trapping_math. - -2012-01-01 Jakub Jelinek - - * jcf-dump.c (version): Update copyright notice dates. - -2011-12-03 Matthias Klose - - * expr.c (SPECIAL_WIDE): Fix typo in message. - -2011-11-23 Jeffrey A Law (law@cygnus.com) - - * lang.c (java_init_options_struct): Disable optimizations - which assume a NULL pointer dereference will cause a fault. - -2011-11-07 Richard Henderson - - * builtins.c (compareAndSwapInt_builtin): Use can_compare_and_swap_p. - (compareAndSwapLong_builtin): Likewise. - (compareAndSwapObject_builtin): Likewise. - (VMSupportsCS8_builtin): Likewise. - -2011-11-02 Rainer Orth - - * Make-lang.in (jvspec.o): Pass SHLIB instead of SHLIB_LINK. - -2011-10-15 Tom Tromey - Dodji Seketeli - - * jcf-parse.c (set_source_filename): Adjust to the new map API. - -2011-10-11 Michael Meissner - - * class.c (build_static_field_ref): Delete old interface with two - parallel arrays to hold standard builtin declarations, and replace - it with a function based interface that can support creating - builtins on the fly in the future. Change all uses, and poison - the old names. Make sure 0 is not a legitimate builtin index. - * decl.c (java_init_decl_processing): Ditto. - * except.c (compareAndSwapLong_builtin): Ditto. - (compareAndSwapObject_builtin): Ditto. - (putVolatile_builtin): Ditto. - (define_builtin): Ditto. - (check_for_builtin): Ditto. - * expr.c (rewrite_arglist_getcaller): Ditto. - (expand_java_field_op): Ditto. - -2011-08-24 Joseph Myers - - * Make-lang.in (CFLAGS-java/jcf-io.o, CFLAGS-java/jcf-path.o): - New. - (java/jcf-io.o, java/jcf-path.o): Remove explicit compilation - rules. - -2011-08-18 Peter Collingbourne - - * expr.c (expand_invoke) Use the type of the method rewrite - target. - -2011-08-10 Rainer Orth - - * jcf-dump.c (print_constant): Cast first frexp arg. - -2011-08-08 Rainer Orth - - * Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS). - -2011-07-19 Richard Guenther - - * builtins.c (static): Use fold_build_pointer_plus. - * class.c (make_class_data): Likewise. - (build_symbol_entry): Likewise. - * except.c (build_exception_object_ref): Likewise. - * expr.c (build_java_arrayaccess): Likewise. - (build_field_ref): Likewise. - (build_known_method_ref): Likewise. - (build_invokevirtual): Likewise. - -2011-07-06 Richard Guenther - - * decl.c (java_init_decl_processing): - Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. - -2011-06-21 Andrew MacLeod - - * builtins.c: Add sync_ or SYNC__ to builtin names. - * expr.c: Add sync_ or SYNC__ to builtin names. - -2011-06-07 Richard Guenther - - * decl.c (java_init_decl_processing): Call build_common_nodes, - build_common_nodes_2 at the beginning. Remove then duplicate - initializations. - -2011-06-07 Richard Guenther - - * decl.c (java_init_decl_processing): Properly initialize - size_type_node. - -2011-05-30 Joern Rennecke - - PR middle-end/46500 - * expr.c: Include "tm.h" . - -2011-05-26 Nathan Froyd - - * decl.c (poplevel): Don't access TREE_TYPE of BLOCKs. - * expr.c (build_jni_stub): Likewise. - -2011-05-24 Joseph Myers - - * Make-lang.in ($(XGCJ)$(exeext)): Use libcommon-target.a instead - of prefix.o. - -2011-05-20 Joseph Myers - - * Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and - version.o. - (JCFDUMP_OBJS): Remove errors.o, version.o and intl.o. - (JVGENMAIN_OBJS): Remove errors.o and intl.o. - (java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H). - * jcf-dump.c: Include diagnostic.h. - (main): Initialize diagnostics. - * jvgenmain.c: Include diagnostic.h. - (main): Initialize diagnostics. - -2011-05-11 Nathan Froyd - - * java-tree.h (TYPE_ARGUMENT_SIGNATURE): Use TYPE_MINVAL. - -2011-05-07 Eric Botcazou - - * java-tree.h (global_bindings_p): Adjust prototype. - * decl.c (global_bindings_p): Return bool. - -2011-05-05 Nathan Froyd - - * expr.c (expand_java_switch): Call build_case_label. - (expand_java_add_case): Likewise. - -2011-04-29 Richard Guenther - - PR middle-end/48819 - * constants.c (build_constants_constructor): Use ptr_type_node for - temp. - -2011-04-20 Jim Meyering - - * jcf-parse.c (java_parse_file): Remove useless if-before-free. - -2011-04-18 Jim Meyering - - * jcf-parse.c: Fix typo in comment. - -2011-04-14 Nathan Froyd - - * decl.c (poplevel): Use BLOCK_CHAIN and block_chainon. - -2011-04-12 Nathan Froyd - - * java-tree.h (union lang_tree_node): Check for TS_COMMON before - calling TREE_CHAIN. - -2011-04-11 Martin Jambor - - * decl.c (java_mark_decl_local): Call cgraph_get_node instead of - cgraph_node and handle returned NULL. - -2011-03-25 Kai Tietz - - * jcf-parse.c (java_read_sourcefilenames): Use filename_cmp - instead of strcmp. - (set_source_filename): Likewise. - * win32-host.c (jcf_open_exact_case): Likewise. - -2011-03-21 Kai Tietz - - PR target/12171 - * lang.c (java_attribute_table): Adjust table. - -2011-02-13 Joseph Myers - - * jvspec.c (jvgenmain_spec): Remove %{a*}. - -2011-01-21 Kai Tietz - - PR bootstrap/47215 - * decl.c (java_init_decl_processing): Remove - va_list_type_node related type initializations. - -2011-01-11 Kai Tietz - - PR bootstrap/47215 - * decl.c (java_init_decl_processing): Initialize - long_integer_type_node. - -2011-01-07 Kai Tietz - - PR bootstrap/47215 - * decl.c (java_init_decl_processing): Initialize unsigned_type_node. - -2011-01-07 Kai Tietz - - * decl.c (java_init_decl_processing): Setup va_list_type_node. - -2011-01-03 Jakub Jelinek - - * jcf-dump.c (version): Update copyright notice dates. - -2010-12-15 Dave Korn - - * decl.c (java_init_decl_processing): Initialise integer_three_node. - * lang.c (put_decl_node): Handle nested function decls. - -2010-12-07 Joseph Myers - - * jcf-parse.c: Don't include assert.h. - (java_parse_file): Use gcc_assert. - -2010-12-03 Joseph Myers - - * lang.opt (static-libgcj): New option. - -2010-12-01 Joseph Myers - - * jcf-parse.c: Don't include toplev.h. - * Make-lang.in (java/jcf-parse.o): Don't depend on toplev.h. - -2010-11-30 Joseph Myers - - * boehm.c: Don't include toplev.h. - * Make-lang.in (java/boehm.o): Don't depend on toplev.h. - -2010-11-30 Joseph Myers - - * expr.c, lang.c, mangle.c, mangle_name.c, typeck.c, - verify-glue.c: Don't include toplev.h. - * Make-lang.in: Dependencies for above files changed to remove - toplev.h. - -2010-11-29 Joseph Myers - - * boehm.c: Include "config.h" instead of . - * builtins.c: Don't include . - * class.c: Don't include "stdio.h". - (O_BINARY): Don't define here. - * jcf-depend.c: Don't include . - (jcf_dependency_set_dep_file, jcf_dependency_init, - jcf_dependency_write): Use gcc_assert. - * jcf-io.c (O_BINARY): Don't define here. - * jcf-path.c: Don't include "tm.h". - (jcf_path_init): Use getenv instead of GET_ENVIRONMENT. - * resource.c: Don't include "stdio.h". - (O_BINARY): Don't define here. - * verify-impl.c: Don't include . - -2010-11-17 Joseph Myers - - * jcf-parse.c (java_parse_file): Take no arguments. - * java-tree.h (java_parse_file): Update prototype. - -2010-11-09 Joern Rennecke - Andrew Haley - - PR java/46386 - * config/pdp11/t-pdp11 (java/constants.o-warn): Remove. - -2010-11-12 Joseph Myers - - * Make-lang.in (jvspec.o, java/lang.o): Use $(OPTS_H). - * lang.c (java_handle_option): Take location_t parameter. - -2010-11-10 Joseph Myers - - * expr.c (expand_java_field_op): Use %' in diagnostic. - * jcf-parse.c (java_parse_file): Use %' in diagnostics. - * jvspec.c (lang_specific_driver): Use %' in diagnostic. - * lang.c (java_post_options): Use %' in diagnostics. - -2010-11-06 Joern Rennecke - - PR middle-end/46314 - * class.c: Include target.h. - (make_local_function_alias): - Use targetm.asm_out.generate_internal_label. - * expr.c (lookup_label, generate_name): Likewise. - -2010-11-03 Joern Rennecke - - PR bootstrap/44335 - * jfc-parse.c (target.h): Include. - (handle_constant): Use targetm.words_big_endian and - targetm.float_words_big_endian. - (get_constant): Use targetm.float_words_big_endian. - -2010-10-13 Richard Henderson - - * lang.c (java_eh_personality): Update call to - build_personality_function. - -2010-10-12 Joseph Myers - - * Make-lang.in (java/lang.o): Use $(OPTIONS_H) instead of - options.h. - -2010-10-11 Nathan Froyd - - * decl.c (java_init_decl_processing): Use build_function_type_list - instead of build_function_type. - * jcf-parse.c (java_emit_static_constructor): Likewise. - * builtins.c (initialize_builtins): Likewise. - -2010-10-08 Joseph Myers - - * lang.c (java_init_options_struct): New. Split out from - java_init_options. - (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. - -2010-10-04 Andi Kleen - - * Make-lang.in (xgcj, jc1, jcf-dump, jvgenmain): - Add + to build rule. - -2010-09-29 Joseph Myers - - * lang.opt: Don't use VarExists. - -2010-09-29 Joseph Myers - - * java-tree.h (flag_filelist_file, flag_assert, flag_jni, - flag_force_classes_archive_check, flag_redundant, flag_newer, - flag_use_divide_subroutine, flag_use_atomic_builtins, - flag_use_boehm_gc, flag_hash_synchronization, - flag_check_references, flag_optimize_sci, flag_indirect_classes, - flag_indirect_dispatch, flag_store_check, - flag_reduced_reflection): Remove. - * jcf-dump.c (flag_newer): Remove. - * jcf.h (quiet_flag): Remove. - * parse.h (quiet_flag): Remove. - -2010-09-28 Richard Henderson - - * lang.c: Include "target.h". - (java_eh_personality): Use targetm.except_unwind_info. - * Make-lang.in (lang.o): Update deps. - -2010-09-27 Andrew Haley - - PR java/45773 - * jvgenmain.c (main): Fix arg processing. - -2010-09-22 Joseph Myers - - * jvspec.c (lang_specific_driver): Handle OPT__help instead of - OPT_fhelp. - * lang.opt (-CLASSPATH, -all-warnings, -bootclasspath, -classpath, - -dependencies, -encoding, -extdirs, -include-directory, - -include-directory=, -output-class-directory, - -output-class-directory=, -resource, -resource=, - -user-dependencies): New. - -2010-09-16 Richard Guenther - - * jcf-parse.c (current_file_list): Remove. - (java_parse_file): Use build_translation_unit_decl. Adjust. - -2010-09-03 Joseph Myers - - * lang.opt (d): New. - -2010-09-03 H.J. Lu - - PR java/45504 - * jvgenmain.c (main): Check "-D XXX=YYY". - -2010-09-02 Joseph Myers - - * jvspec.c (jvgenmain_spec): Don't handle -fnew-verifier. - -2010-09-02 Joseph Myers - - * lang.opt (CLASSPATH, bootclasspath, classpath, encoding, - fCLASSPATH=): Mark as Java options and as aliases. - * jvspec.c (jvgenmain_spec): Don't handle -fCLASSPATH*. - (lang_specific_driver): Don't handle options marked as aliases. - * lang.c (java_handle_option): Don't handle OPT_fCLASSPATH_. - -2010-08-22 Joseph Myers - - * Make-lang.in (jvspec.o): Update dependencies. - * jvspec.c: Include opts.h. - (PARAM_ARG): Remove. - (find_spec_file): Do not add leading -specs=. - (lang_specific_driver): Use cl_decoded_option structures. - * lang.opt (C, CLASSPATH, D, bootclasspath, classpath, encoding, - extdirs, fmain=, s-bc-abi): New options. - -2010-08-20 Nathan Froyd - - * class.c: Use FOR_EACH_VEC_ELT. - * expr.c: Likewise. - * jcf-parse.c: Likewise. - * resource.c: Likewise. - -2010-08-16 Joseph Myers - - * lang.opt (MD_, MMD_, version): Mark RejectDriver. - -2010-08-05 David Daney - - * class.c (build_utf8_ref): Fix code formatting from previous commit. - -2010-08-05 David Daney - - * class.c (build_utf8_ref): Make decl DECL_USER_ALIGN. - -2010-07-27 Joseph Myers - - * lang.c (java_handle_option): Update prototype and return value - type. - -2010-07-27 Joseph Myers - - * lang.c (java_option_lang_mask): New. - (java_init_options): Update prototype. - (LANG_HOOKS_OPTION_LANG_MASK): Define. - -2010-07-15 Nathan Froyd - - * java-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN. - * boehm.c: Likewise. - * class.c: Likewise. - * decl.c: Likewise. - * expr.c: Likewise. - * jcf-parse.c: Likewise. - * typeck.c: Likewise. - * verify-glue.c: Likewise. - -2010-07-08 Manuel López-Ibáñez - - * boehm.c: Include diagnostic-core.h in every file that includes - toplev.h. - * class.c: Likewise. - * constants.c: Likewise. - * decl.c: Likewise. - * except.c: Likewise. - * expr.c: Likewise. - * jcf-parse.c: Likewise. - * mangle.c: Likewise. - * mangle_name.c: Likewise. - * resource.c: Likewise. - * typeck.c: Likewise. - * verify-glue.c: Likewise. - -2010-07-05 Nathan Froyd - - PR bootstrap/44825 - * class.c (make_class_data): Cast result of VEC_length calls to int. - -2010-07-05 Nathan Froyd - - * constants.c (build_constants_constructor): Use build_constructor - instead of build_constructor_from_list. - * class.c (make_method_value): Likewise. - (get_dispatch_table): Likewise. - (make_class_data): Likewise. - (emit_indirect_register_classes): Likewise. - (emit_symbol_table): Likewise. - (add_assertion_table_entry): Likewise. - (emit_assertion_table): Likewise. - (make_field_value): Use build_constructor_single instead of - build_constructor_from_list. - -2010-06-28 Nathan Froyd - - * java-tree.h (struct lang_type) [catch_classes]: Change type to a - VEC. - * except.c (prepare_eh_table_type): Call CONSTRUCTOR_APPEND_ELT - instead of tree_cons. - * class.c (make_class): Add dummy entry to TYPE_CATCH_CLASSES. - (emit_catch_table): Adjust for new type of TYPE_CATCH_CLASSES. - -2010-06-28 Steven Bosscher - - * lang.c: Do not include except.h - * except.c: Likewise. - (doing_eh): New, moved from except.c (in gcc/) but removed the - do_warning flag. - (maybe_start_try): Update doing_eh call. - * Make-lang.in: Update dependencies. - -2010-06-23 Anatoly Sokolov - - * decl.c (java_init_decl_processing): Use double_int_to_tree instead - of build_int_cst_wide. - * boehm.c (set_bit): Remove. - (mark_reference_fields): Use double_int type for 'mask' argument. - Use double_int_setbit instead of set_bit. - (get_boehm_type_descriptor): Use double_int_setbit instead of - set_bit. Use double_int_to_tree instead of build_int_cst_wide. - -2010-06-10 Gerald Pfeifer - - * gcj.texi: Move to GFDL version 1.3. Fix copyright years. - -2010-06-08 Laurynas Biveinis - - * jcf-reader.c (jcf_parse_constant_pool): Use typed GC allocation. - - * jcf-parse.c (java_parse_file): Likewise. - (process_zip_dir): Likewise. - - * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise. - (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise. - - * expr.c (add_type_assertion): Likewise. - - * decl.c (make_binding_level): Likewise. - (java_dup_lang_specific_decl): Likewise. - - * constants.c (set_constant_entry): Likewise. - (cpool_for_class): Likewise. - - * class.c (add_method_1): Likewise. - (java_treetreehash_new): Likewise. - - * java-tree.h (struct lang_type): Add variable_size GTY option. - (struct lang_decl): Likewise. - - * jch.h (struct cpool_entry): Likewise. - - * java-tree.h (java_treetreehash_create): Remove parameter ggc. - - * except.c (prepare_eh_table_type): Update - java_treetreehash_create call. - - * class.c (add_method_1): Update java_treetreehash_create call. - (java_treetreehash_create): Remove parameter gc. Use - htab_create_ggc. - -2010-06-04 Joseph Myers - - * jvspec.c (lang_specific_driver): Use GCC-specific formats in - diagnostics. - -2010-05-30 Steven Bosscher - - * except.c: Include tm.h. - -2010-05-28 Joseph Myers - - * jvspec.c (lang_specific_driver): Use fatal_error instead of - fatal. Use warning instead of error for warnings. - -2010-05-28 Nathan Froyd - - * expr.c (get_symbol_table_index): Add spaces in expression. - -2010-05-28 Nathan Froyd - - * java-tree.h (method_entry): Declare. Declare VECs containing it. - (struct lang_type): Change type of otable_methods, atable_methods, and - itable_methods to VECs. Fix comment for atable_methods. - (emit_symbol_table): Take a VEC instead of a tree. - (get_symbol_table_index): Take a VEC * instead of a tree *. - * class.c (add_table_and_syms): Take a VEC instead of a tree. - (emit_symbol_table): Update for changed parameter type. - * expr.c (get_symbol_table_index): Likewise. - -2010-05-27 Steven Bosscher - - * buildings.c: Pretend to be a backend file by undefining - IN_GCC_FRONTEND (still need rtl.h here). - -2010-05-26 Nathan Froyd - - * java-tree.h (struct lang_decl_func): Change type of throws_list - field to a VEC. - * jcf-parse.c (HANDLE_EXCEPTIONS_ATTRIBUTE): Adjust for changed type - of DECL_FUNCTION_THROWS. - * class.c (make_method_value): Likewise. - -2010-05-26 Nathan Froyd - - * class.c (utf8_decl_list): Delete. - (build_utf8_ref): Remove references to it. - * java-tree.h (all_class_list): Delete. - (predef_filenames): Delete. - (enum java_tree_index) [JTI ALL_CLASS_LIST,JTI_PREDEF_FILENAMES]: - Delete. - * jcf-parse.c (parse_roots): Decrease size to 2. - (current_file_list): Convert to a VEC. - (all_class_list): Declare. - (jcf_parse): Adjust for new type of all_class_list. - (java_layout_seen_class_methods): Likewise. - (predefined_filenames): Declare. - (add_predefined_file): Use it. - (predefined_filename_p): Likewise. - (java_parse_file): Adjust for new type of current_file_list. - -2010-05-25 Jakub Jelinek - - * lang.c (java_classify_record): Return RECORD_IS_INTERFACE - for interfaces. - - PR debug/43260 - * java-tree.h (pending_static_fields): New extern declaration. - (java_write_globals): New prototype. - * lang.c (LANG_HOOKS_WRITE_GLOBALS): Define. - * decl.c (java_mark_class_local): When clearing DECL_EXTERNAL - of a static field push it into pending_static_fields vector. - * class.c (pending_static_fields): New variable. - (add_field): If static field is not DECL_EXTERNAL, push it into - pending_static_fields vector. - (java_write_globals): New function. - -2010-05-24 Nathan Froyd - - * expr.c (quick_stack): Change type to a VEC. Update comment. - (tree_list_free_list): Delete. - (flush_quick_stack): Update for quick_stack type change. - (push_value): Likewise. - (pop_value): Likewise. - -2010-05-23 Steven Bosscher - - * java-gimplify.c: Do not include tm.h, toplev.h. - * typeck.c: Do not include tm.h. - * mangle_name.c: Do not include tm.h. - * jcf-dump.c: Do not include tm.h, ggc.h. - * class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h. - * decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h, - and timevar.h. - * jcf-parse.c: Do not include tm.h and tm_p.h. - * resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h, - target.h, and expr.h. - * except.c: Do not include tm.h, rtl.h, function.h. - * builtins.c: Do not include convert.h. Explain why RTL headers - have to be included here. - * verify-glue.c: Do not include tm.h. - * jcf-depend.c: Do not include tm.h. - * jcf-reader.c: Include ggc.h. - * jcf-io.c: Do not include tm.h, toplev.h. - * expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h, - gimple.h. - * lang.c: Do not include rtl.h, expr.h. - * Make-lang.in: Update dependencies. - -2010-05-23 Steven Bosscher - - * jcf-parse.c: Include bitmap.h. - * Make-lang.in: Update dependencies. - -2010-05-20 Jakub Jelinek - - PR debug/43521 - * decl.c (start_java_method): Set DECL_ARTIFICIAL on the 'this' - PARM_DECL. - -2010-05-19 Anatoly Sokolov - - * jcf-parse.c (get_constant): Use double_int_to_tree instead of - build_int_cst_wide_type. - -2010-05-18 Nathan Froyd - - * expr.c (pop_arguments): Fix use of undeclared variable. - -2010-05-18 Nathan Froyd - - * expr.c (expand_java_multianewarray): Use build_call_vec instead of - build_call_list. - (pop_arguments): Return a VEC instead of a tree. Take a method type - rather than a list of argument types. - (rewrite_rule): Change signature. of rewrite_arglist member. - (rewrite_arglist_getcaller): Update signature. - (rewrite_arglist_getclass): Likewise. - (maybe_rewrite_invocation): Update for rewrite_arglist change. - (build_known_method_ref): Take a VEC instead of a tree. - (invoke_build_dtable): Likewise. - (expand_invoke): Update calls to pop_arguments. Use build_call_vec - instead of build_call_list. - (build_jni_stub): Use build_call_vec instead of build_call_list. - * java-tree.h (maybe_rewrite_invocation): Update declaration. - (build_known_method_ref): Likewise. - (invoke_build_dtable): Likewise. - -2010-05-14 Nathan Froyd - - PR 44103 - * java-tree.h (START_RECORD_CONSTRUCTOR): Change first argument to a - vector. Move call to build_constructor... - (FINISH_RECORD_CONSTRUCTOR): ...here. Add necessary arguments. Clear - TREE_CONSTANT on the constructor. - (PUSH_SUPER_VALUE): Change first argument to a vector. - (PUSH_FIELD_VALUE): Likewise. - * resource.c (compile_resource_data): Update calls to above macros. - * constants.c (build_constants_constructor): Likewise. - * class.c (build_utf8_ref): Likewise. - (make_field_value): Likewise. - (make_method_value): Likewise. - (add_table_and_syms): New function. - (make_class_data): Call it. Update calls to above macros. - (build_symbol_table_entry): New function. - (build_symbol_entry): Call it. Update calls to above macros. - (emit_symbol_table): Likewise. - (make_catch_class_record): Update calls to above macros. - (build_assertion_table_entry): New function. - (add_assertion_table_entry): Call it. - (emit_assertion_table): Likewise. - -2010-05-06 Manuel López-Ibáñez - - PR 40989 - * lang.c (java_handle_option): Add argument kind. - -2010-04-18 Eric Botcazou - - * decl.c (java_init_decl_processing): Remove argument in call to - initialize_sizetypes - -2010-04-07 Jakub Jelinek - - * exception.cc (_Jv_Throw): Avoid set but not used warning. - * include/java-assert.h (JvAssertMessage, JvAssert): Use argument in - sizeof to avoid set but not used warnings. - -2010-01-20 Joern Rennecke - - * lang.c (java_post_options): Constify variable "dot". - - * jcf-parse.c (set_source_filename): Constify variable "dot". - (load_class): Constify variable "separator". - Use get_identifier_with_length. - - * jvspec.c (lang_specific_driver): Constify two variables named "p". - -2010-01-09 Jakub Jelinek - - * jcf-dump.c (version): Update copyright notice dates. - -2009-11-28 Jakub Jelinek - - * jvspec.c (lang_specific_driver): Remove unused - saw_verbose_flag variable. - * jcf-dump.c (main): Remove unused general_purpose_bits - variable. - * builtins.c (initialize_builtins): Remove unused float_ftype_float - variable. - * expr.c (java_stack_pop): Remove unused val variable. - (build_jni_stub): Remove unused res_type variable. - * verify-impl.c (check_field_constant): Remove unused len variable. - -2009-10-20 Joel Dice - - PR java/28474 - * mangle_name.c (append_unicode_mangled_name): Fix mangling - of names with multiple underscores and "U". - (unicode_mangling_length): Likewise. - -2009-10-03 Simon Baldwin - - * config-lang.in (lang_dirs): Remove zlib. - -2009-09-28 Richard Henderson - - * builtins.c (initialize_builtins): Update call to - build_common_builtin_nodes. - * lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. - -2009-09-14 Richard Henderson - - * builtins.c (initialize_builtins): Update call to - build_common_builtin_nodes. - * decl.c (java_init_decl_processing): Don't call - default_init_unwind_resume_libfunc. - * except.c: Include tree-iterator.h. - (build_exception_object_var): New. - (build_exception_object_ref): Use it. - (expand_end_java_handler): Initialize it from __builtin_eh_pointer. - Attach all CATCH_EXPRs to a single TRY_CATCH_EXPR. - * java-tree.h (DECL_FUNCTION_EXC_OBJ): New. - -2009-09-13 Richard Guenther - Rafael Avila de Espindola - - * decl.c (do_nothing): Remove. - (java_init_decl_processing): Do not set lang_eh_runtime_type. - * Make-lang.in (lang.o): Add $(EXCEPT_H) dependency. - * lang.c (java_eh_personality): New. - (java_eh_personality_decl): Likewise. - (LANG_HOOKS_EH_PERSONALITY): Define. - -2009-09-03 Diego Novillo - - * lang.c (lang_hooks): Remove const qualifier. - -2009-09-01 Jakub Jelinek - - * boehm.c (mark_reference_fields): Compute % in HOST_WIDE_INT - type. - -2009-09-01 Richard Guenther - - * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove. - * java-tree.h (java_mark_addressable): Likewise. - * typeck.c (java_mark_addressable): Likewise. - -2009-08-17 Ralf Wildenhues - - * Make-lang.in (java.install-pdf): Install gcj.pdf in - $(pdfdir)/gcc, alongside the other manuals. - -2009-08-12 Andrew Haley - - * builtins.c (compareAndSwapInt_builtin): Use - flag_use_atomic_builtins. - (compareAndSwapLong_builtin): Likewise. - (compareAndSwapObject_builtin): Likewise. - * jvspec.c: Add flag_use_atomic_builtins. - * gcj.texi: Likewise. - * java-tree.h: Likewise. - * lang.opt: Likewise. - -2009-08-11 Dodji Seketeli - - PR debug/40990 - * lang.c (put_decl_node): Outputs different level of information - depending on the verbosity level. - -2009-07-31 Andrew Haley - - PR java/40867 - * decl.c (java_replace_references): Set EXPR_LOCATION on all - generated expressions. - (binding_level.loc): new field. - (clear_binding_level): Initialize loc. - (set_input_location): New function. - (pushlevel): Set new binding_level.loc. - (poplevel): Set EXPR_LOCATION on the new BIND_EXPR_BODY. - (start_java_method): Set DECL_SOURCE_LOCATION of this new method. - (java_add_stmt): Set the EXPR_LOCATION on all subtrees of new_stmt. - -2009-07-17 Richard Guenther - - PR c/40401 - * java-gimplify.c (java_genericize): Do not gimplify here. - But replace all local references. - (java_gimplify_expr): Do not replace local references here. - (java_gimplify_modify_expr): Likewise. - * jcf-parse.c (java_parse_file): Do not finalize the CU or - optimize the cgraph here. - * decl.c (java_replace_reference): Make static. - (java_replace_references): New function. - (end_java_method): Clear base_decl_map. - * java-tree.h (java_replace_references): Declare. - (java_replace_reference): Remove. - -2009-07-14 Taras Glek - Rafael Espindola - - * Make-lang.in (java.install-plugin): New target for - installing plugin headers. - -2009-07-07 Manuel López-Ibáñez - - * class.c: Replace %J by an explicit location. Update all calls. - -2009-07-07 Manuel López-Ibáñez - - * jcf-parse.c: Replace %H by an explicit location. Update all calls. - -2009-06-29 Andrew Haley - - PR java/40590 - * java-tree.h (cxx_keyword_p): New declaration. - * mangle_name.c (utf8_cmp): Move here from mangle.c. - (cxx_keywords): Likewise. - (cxx_keyword_p): Likewise. - (MANGLE_CXX_KEYWORDS): New macro. - (append_gpp_mangled_name): Use MANGLE_CXX_KEYWORDS. - (append_gpp_mangled_name): Likewise. - * mangle.c: Move code to mangle_name.c. - (mangle_member_name): Don't call cxx_keyword_p. - -2009-06-12 Aldy Hernandez - - * java-gimplify.c (java_gimplify_block): New argument to - build_empty_stmt. - * expr.c (force_evaluation_order): Same. - * typeck.c: Add location to build_decl or PUSH_FIELD calls. - * class.c: Same. - * decl.c: Same. - * jcf-parse.c: Same. - * constants.c: Same. - * resource.c: Same. - * except.c: Same. - * builtins.c: Same. - * expr.c: Same. - * java-tree.h (PUSH_FIELD): Add location field. - -2009-06-09 Ian Lance Taylor - - * verify.h: Remove extern "C". - -2009-06-07 Ian Lance Taylor - - * jcf-parse.c (handle_constant): Change local variable 'kind' to - unsigned int. - -2009-06-01 Ian Lance Taylor - - * jcf-io.c (find_class): Use CONST_CAST. - -2009-05-27 Ian Lance Taylor - - * Make-lang.in ($(XGCJ)$(exeext)): Change $(COMPILER) to - $(LINKER). - (jc1$(exeext), jcf-dump$(exeext), jvgenmain$(exeext)): Likewise. - -2009-05-26 Ian Lance Taylor - - * Make-lang.in (jvspec.o): Use $(COMPILER). - ($(XGCJ)$(exeext), jc1$(exeext), jcf-dump$(exeext)): Likewise. - (jvgenmain$(exeext), java/jcf-io.o, java/jcf-path.o): Likewise. - -2009-05-12 Alexandre Oliva - - * Make-lang.in (GCJ): Renamed to... - (XGCJ): ... this. - -2009-04-27 Ian Lance Taylor - - * builtins.c (java_builtins): Add casts to enum type. - * verify-impl.c (check_class_constant): Add cast to enum type. - (check_constant, check_wide_constant): Likewise. - -2009-04-27 Richard Guenther - - PR java/38374 - * constants.c (build_constants_constructor): Retain the old - pointer type as valid TYPE_POINTER_TO after patching the - type of the constant pool decl. - -2009-04-24 Ian Lance Taylor - - * jcf-parse.c (handle_constant): Add cast to enum type. - -2009-04-21 Taras Glek - - * builtins.c: Update GTY annotations to new syntax - * decl.c: Likewise - * java-tree.h: Likewise - * jcf.h: Likewise - * lang.c: Likewise - -2009-04-21 Joseph Myers - - * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and - license notices. - -2009-04-18 Ian Lance Taylor - - * verify-impl.c (verify_instructions_0): Add cast to enum type. - -2009-04-09 Paolo Bonzini - - * builtins.c (compareAndSwapLong_builtin, - compareAndSwapInt_builtin, compareAndSwapObject_builtin, - VMSupportsCS8_builtin): Do not look at sync_compare_and_swap_cc. - -2009-03-31 Richard Guenther - - * java-gimplify.c (java_gimplify_expr): Do not manually gimplify - the first operand of binary and comaprison expressions. - -2009-03-30 Joseph Myers - - PR rtl-optimization/323 - * lang.c (java_post_options): Set flag_excess_precision_cmdline. - Give an error for -fexcess-precision=standard for processors where - the option is significant. - -2009-03-18 Ralf Wildenhues - - * lang.opt: Unify help text for -Wdeprecated. - -2009-02-03 Jakub Jelinek - - * jcf-dump.c (version): Update copyright notice dates. - -2009-01-16 Richard Guenther - - PR tree-optimization/38835 - PR middle-end/36227 - * builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR. - -2008-12-05 Sebastian Pop - - PR bootstrap/38262 - * Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS. - -2008-11-04 Andrew Haley - - PR java/37068 - * jcf-parse.c (java_emit_static_constructor): Don't call - cgraph_build_static_cdtor. Rewrite. - -2008-10-24 Jakub Jelinek - - * Make-lang.in (check-java-subtargets): New target. - -2008-10-16 David Edelsohn - - PR target/35483 - * Make-lang.in (class.o): Depend on $(TM_P_H). - (expr.o): Same. - * class.c: Include tm_p.h. - * expr.c: Include tm_p.h. - -2008-10-14 Andrew Haley - - * constants.c (build_constant_data_ref): Make sure we only build - one copy of the decl for the constant pool. - -2008-09-22 Andrew Haley - - * expr.c (rules): Add new rule for - gnu.java.lang.VMCPStringBuilder.toString. - (rewrite_rule.new_classname): New field. - (maybe_rewrite_invocation): Use new_classname field instead of - DECL_CONTEXT (*method_p). - Allow rewrite_arglist to be NULL. - -2008-09-17 Andrew Pinski - - * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define. - (java_get_callee_fndecl): Kill. - -2008-09-17 Jan Hubicka - - PR c++/18071 - * class.c (add_method_1): Do not initialize DECL_INLINE. - (make_local_function_alias): Likewise. - * expr.c (rewrite_arglist_getcaller): Set DECL_UNINLINABLE. - * lang.c (java_decl_ok_for_sibcall): Use DECL_UNINLINABLE. - -2008-09-09 Richard Guenther - - * decl.c (build_result_decl): Remove no longer applicable - promotion. - -2008-09-05 David Daney - - * gcj.texi (-freduced-reflection): Clarify option's restrictions. - -2008-08-21 David Daney - - * class.c (make_class_data): Don't add field_index when - flag_reduced_reflection set. - -2008-08-12 Ulrich Weigand - - * typeck.c (convert): Do not check for TARGET_FLOAT_FORMAT. - -2008-08-08 Manuel Lopez-Ibanez - - PR 28875 - * lang.c (java_handle_option): Replace set_Wunused with - warn_unused. - -2008-07-30 Ralf Wildenhues - - * gcj.texi: Update copyright years. Do not list GPL as - Invariant Section. - -2008-07-29 Jakub Jelinek - - * class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT - from ctype's sizes. - - * class.c (build_utf8_ref): Pad initializer string to utf8const_type's - alignment. - -2008-07-29 Jan Hubicka - - * lang.c (java_post_options): Remove handling of flag_no_inline. - -2008-07-28 Richard Guenther - - Merge from gimple-tuples-branch. - - 2008-07-18 Richard Guenther - - * expr.c: Include tree-iterator.h. - * Make-lang.in (expr.o): Add tree-iterator.h dependency. - - 2008-07-18 Aldy Hernandez - - * java-gimplify.c: Include gimple.h instead of tree-gimple.h. - * expr.c: Same. - - 2008-07-14 Aldy Hernandez - - * java-gimplify.c (java_gimplify_expr): Same. - (java_gimplify_modify_expr): Same. - * java-tree.h: Rename GENERIC_NEXT to TREE_CHAIN. - - 2008-05-02 Diego Novillo - - * expr.c (build_java_throw_out_of_bounds_exception): Fix - mixed declarations and code. - - 2008-05-02 Doug Kwan - - * expr.c (build_java_throw_out_of_bounds_exception ): Wrap call to - _Jv_ThrowBadArrayIndex with a COMPOUND_EXPR to return 0. - - 2008-02-19 Diego Novillo - - http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html - - * java-gimplify.c (java_gimplify_self_mod_expr): Change - gimple_seq arguments to gimple_seq *. Update all users. - - 2007-11-26 Aldy Hernandez - - * java-gimplify.c (java_gimplify_expr): Make pre_p and post_p - sequences. - (java_gimplify_self_mod_expr): Same. - * java-tree.h (java_gimplify_expr): Make pre_p and post_p - sequences. - -2008-07-24 Jan Hubicka - - * java/decl.c: Include cgraph.h - (end_java_method): Remove non-unit-at-a-time code. - (java_mark_decl_local): Likewise; sanity check that we don't touch - finalized nodes. - -2008-07-15 Jan Hubicka - - * lang.c (java_init_options): Enable unit-at-a-time by default. - -2008-07-14 Ralf Wildenhues - - * Make-lang.in (jvspec.o): Fix dependencies. - -2008-07-06 Tom Tromey - - * Make-lang.in (java/parse.o-warn): Remove. - (java/jcf-io.o-warn): Remove. - -2008-07-05 Tom Tromey - - * jcf-io.c: Don't include fnmatch.h. Don't use JCF_USE_SCANDIR. - (compare_path): Remove. - (java_or_class_file): Likewise. - (memoized_dirlist_entry): Likewise. - (memoized_dirlist_hash): Likewise. - (memoized_dirlist_lookup_eq): Likewise. - (memoized_dirlists): Likewise. - (caching_stat): Likewise. - (find_class): Use stat. - * jcf.h (JCF_USE_SCANDIR): Remove. - -2008-06-30 Joshua Sumali - - * Make-lang.in (JAVA_MANFILES): Add doc/aot-compile.1 and - doc/rebuild-gcj-db.1 - (java.uninstall): Likewise. - (java.maintainer-clean): Likewise. - (aot-compile.pod): New rule. - (rebuild-gcj-db.pod): New rule. - (java.install-man): Install doc/aot-compile.1 and doc/rebuild-gcj-db.1 - * gcj.texi: Add new sections for aot-compile and rebuild-gcj-db. - -2008-06-29 Kaveh R. Ghazi - - * Make-lang.in (java/jcf-io.o-warn): New. - -2008-06-24 Tom Tromey - - * jcf-path.c (jcf_path_init): Don't name variable 'try'. - * expr.c (add_type_assertion): Rename argument. - (build_java_arrayaccess): Don't name variable 'throw'. - (ARRAY_NEW_MULTI): Don't name variable 'class'. - * jcf-io.c (find_class): Don't name variable 'class'. - * mangle.c (compression_table_add): Don't name variable 'new'. - * constants.c (cpool_for_class): Rename argument. - (alloc_constant_fieldref): Likewise. - * jcf-parse.c (handle_innerclass_attribute): Don't name variable - 'class'. - (read_class): Likewise. - (parse_zip_file_entries): Likewise. - (process_zip_dir): Likewise. - * decl.c (java_mark_class_local): Rename argument. - * class.c (GEN_TABLE): Use type_name, not typename. - (gen_indirect_dispatch_tables): Likewise. - (add_field): Rename argument. - (is_compiled_class): Likewise. - (safe_layout_class): Likewise. - (emit_assertion_table): Likewise. - * typeck.c (has_method): Rename argument. - -2008-06-19 Kaveh R. Ghazi - - * class.c (ident_subst, mangled_classname, unmangle_classname, - gen_indirect_dispatch_tables, add_method_1, - build_fieldref_cache_entry, make_local_function_alias, - layout_class, java_treetreehash_find, java_treetreehash_new, - split_qualified_name): Fix for -Wc++-compat. - * constants.c (set_constant_entry, cpool_for_class): Likewise. - * decl.c (make_binding_level, java_dup_lang_specific_decl, - start_java_method): Likewise. - * except.c (prepare_eh_table_type): Likewise. - * expr.c (type_assertion_hash, note_instructions): Likewise. - * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC, - MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise. - * jcf-io.c (jcf_filbuf_from_stdio, opendir_in_zip, find_class): - Likewise. - * jcf-parse.c (reverse, java_read_sourcefilenames, - annotation_grow, rewrite_reflection_indexes, java_parse_file, - process_zip_dir): Likewise. - * jcf-path.c (add_entry, add_path, jcf_path_init, - jcf_path_extdirs_arg): Likewise. - * jcf-reader.c (jcf_parse_constant_pool): Likewise. - * jvgenmain.c (do_mangle_classname): Likewise. - * lang.c (put_decl_string): Likewise. - * verify-impl.c (make_state_copy, make_state, add_new_state): - Likewise. - -2008-06-15 Ralf Wildenhues - - * gcj.texi: Expand TABs, remove whitespace from blank lines. - -2008-06-14 Tom Tromey - - PR java/36247: - * class.c (build_class_ref): Initialize this_classdollar when - needed. - -2008-05-23 Andrew Haley - - * jcf-parse.c (give_name_to_class): Call find_sourcefile to find full - pathname of source file. - -2008-05-12 Aaron W. LaFramboise - - * jcf-dump.c (print_constant): Use - HOST_LONG_LONG_FORMAT. - -2008-05-07 Kenneth Zadeck - - * decl.c (java_init_decl_processing): Change DECL_IS_PURE to - DECL_PURE_P. - -2008-04-23 Paolo Bonzini - - * class.c (build_utf8_ref): Don't set TREE_INVARIANT. - (build_classdollar_field): Don't set TREE_INVARIANT. - (get_dispatch_table): Don't set TREE_INVARIANT. - (make_class_data): Don't set TREE_INVARIANT. - (build_symbol_entry): Don't set TREE_INVARIANT. - (emit_symbol_table): Don't set TREE_INVARIANT. - * constants.c (build_constant_data_ref): Don't set TREE_INVARIANT. - (build_ref_from_constant_pool): Don't set TREE_INVARIANT. - * resource.c (compile_resource_data): Don't set TREE_INVARIANT. - * expr.c (cache_cpool_data_ref): Don't set TREE_INVARIANT. - -2008-04-03 Tom Tromey - - * Make-lang.in (java_OBJS): New variable. - -2008-04-03 Paolo Bonzini - - * java-tree.h (insert_block): Kill. - * decl.c (insert_block): Kill. - -2008-04-01 Joseph Myers - - * gcj.texi: Include gpl_v3.texi instead of gpl.texi - * Make-lang.in (TEXI_JAVA_FILES): Include gpl_v3.texi instead of - gpl.texi. - -2008-03-27 Tom Tromey - - * Make-lang.in: Revert automatic dependency patch. - -2008-03-25 Tom Tromey - - * Make-lang.in: Removed most explicit .o targets. - (java/jvspec.o): Reduce to variable setting. Moved to java/. - ($(GCJ)$(exeext)): Update. - (JAVA_OBJS): New variable. - (JCFDUMP_OBJS): Reformat. - (java_OBJS): New variable. - (java/jvspec.o-warn): Update. - (java/parse.o-warn): Remove. - (JAVA_TREE_H): Remove. - (java/jcf-io.o): Reduce to variable setting. - (ALL_CPPFLAGS): Likewise. - -2008-03-12 Paolo Bonzini - - * mangle.c (java_mangle_decl): Remove dead check. - -2008-03-11 Paolo Bonzini - - * jcf-parse.c (java_parse_file): Assert binding levels are - left in order. - * lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, java_clear_binding_stack): - Delete. - -2008-03-02 Jakub Jelinek - - * jcf-dump.c (version): Update copyright notice dates. - -2008-02-29 Tom Tromey - - * expr.c (expand_byte_code): Set DECL_FUNCTION_LAST_LINE on - method. - * java-tree.h (struct lang_decl_func): Remove obsolete comment. - -2008-02-26 Tom Tromey - - * lang.c (java_post_options): Remove conditional. - * expr.c (expand_byte_code): Remove old location code. - * jcf-parse.c (set_source_filename): Remove old location code. - (give_name_to_class): Likewise. - (jcf_parse): Likewise. - (duplicate_class_warning): Likewise. - (parse_class_file): Likewise. - (java_parse_file): Likewise. - * decl.c (finish_method): Remove old location code. - * class.c (push_class): Remove old location code. - -2008-02-06 Kaveh R. Ghazi - - PR other/35107 - * Make-lang.in (jc1): Add $(GMPLIBS). - -2008-01-23 David Daney - - * class.c (hide) Rename to... - (java_hide_decl) ... this throughout, and make public. - * resource.c (Jr_count): Remove. - (compile_resource_data): Call java_mangle_resource_name to generate - decl name. Make resource decl public and hidden. - * mangle.c (java_mangle_resource_name): New function. - * java-tree.h (java_hide_decl, java_mangle_resource_name): Declare - functions. - -2008-01-04 Andrew Haley - - PR java/17779 - * jcf-parse.c (parse_zip_file_entries): Move decl to compile on - C90. - -2008-01-03 Andrew Haley - - PR java/17779 - * jcf-parse.c (parse_zip_file_entries): Unset TYPE_ALIAS_SET if - we're about to re-layout the type. - -2007-12-20 Alexandre Oliva - - * lang.c (java_classify_record): Don't return - RECORD_IS_INTERFACE for now. - -2007-12-18 Andrew Haley - - PR java/27643 - * jcf-parse.c (java_parse_file): Remove call to - java_mark_class_local. - (parse_class_file): Reinstate call to java_mark_class_local here. - * decl.c (java_mark_cni_decl_local): If the ASSEMBLER_NAME is - already set, call java_mangle_decl() and make_decl_rtl() to - rewrite its name as a hidden alias. - -2007-12-15 Alexandre Oliva - - PR debug/7081 - * lang.c (java_classify_record): New. - (LANG_HOOKS_CLASSIFY_RECORD): Override. - -2007-11-26 Andreas Krebbel - - PR 34081/C++ - * decl.c (finish_method): Pass 'false' for the new - allocate_struct_function parameter. - -2007-11-26 Alexandre Oliva - - * expr.c (build_jni_stub): Use the computed jni func type for - variable meth. - -2007-11-26 Alexandre Oliva - - * class.c (JAVA_TREEHASHHASH_H): Use TYPE_UID. - -2007-11-26 Alexandre Oliva - - * expr.c (type_assertion_hash): Hash type uids rather than - tree pointers. - -2007-11-17 David Daney - Andrew Haley - - * constants.c (build_constants_constructor): Use POINTER_SIZE - insead of BITS_PER_WORD in big-endian work around. - -2007-11-07 Tom Tromey - - PR java/34019: - * gcj.texi (Input Options): Add missing noun. - -2007-11-02 Tom Tromey - - PR java/33765: - * jcf-parse.c (java_parse_file): Ignore ZIPEMPTYMAGIC files. - * zipfile.h (ZIPEMPTYMAGIC): New define. - -2007-11-01 Tom Tromey - - * Make-lang.in (java/jcf-dump.o): Depend on zipfile.h. - (java/jcf-parse.o): Depend on jcf-reader.c, zipfile.h, and jcf.h. - (java/jcf-io.o): Depend on zipfile.h. - -2007-10-17 Richard Guenther - - * Make-lang.in (java/builtins.o): Add $(OPTABS_H) and $(EXPR_H) - dependencies. - -2007-10-03 Andrew Haley - - PR java/33639 - * class.c (mangled_classname): Detect and replace illegal - characters in assembly language symbols. - (gen_indirect_dispatch_tables): Call mangled_classname() on - the type. - -2007-09-27 Jakub Jelinek - - * lang.c (java_print_error_function): Add third argument. - -2007-09-15 Tom Tromey - - * java-tree.h (struct lang_decl_func) : - Remove. - : Likewise. - * lang.c (java_dump_tree): Update. - * java-tree.h (DECL_FUNCTION_BODY): Remove. - -2007-09-11 Jan Hubicka - - * decl.c (java_expand_body): Kill. - (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill. - -2007-09-06 Tom Tromey - - * jcf-parse.c (parse_class_file): Re-enter the current file. - -2007-09-07 Roman Zippel - - * boehm.c (mark_reference_fields): Move misaligned pointer check - after JREFERENCE_TYPE_P test - -2007-09-06 Roman Zippel - - * boehm.c (mark_reference_fields): Don't use bitmap as gc_descr - if pointer is misaligned. - -2007-09-06 Tom Tromey - - * lang.c (java_post_options): Update. - * jcf-parse.c (set_source_filename): Update. - (give_name_to_class): Update. - (jcf_parse): Update. - (duplicate_class_warning): Update. - (parse_class_file): Update. - (java_parse_file): Update. - * expr.c (expand_byte_code): Update. - -2007-09-05 Sandra Loosemore - - * decl.c (finish_method): Use set_cfun. - -2007-09-04 Andrew Haley - - * decl.c (java_init_decl_processing): Call "__cxa_end_cleanup" - when using the ARM EABI. - -2007-09-03 Daniel Jacobowitz - - * Make-lang.in (jvspec.o): Remove SHLIB_MULTILIB. - -2007-09-03 Kaveh R. Ghazi - - * jcf-parse.c (read_class, java_parse_file): Supply a TYPE for - CONST_CAST. - * jcf.h (JCF_FINISH): Likewise. - -2007-08-28 Tom Tromey - - * Make-lang.in (java.tags): Don't tag '*.y' files. - -2007-08-25 Kaveh R. Ghazi - - * lang.c (java_decl_ok_for_sibcall): Likewise. - -2007-08-21 Paul Brook - Nathan Sidwell - Mark Mitchell - Joseph Myers - - * jcf-dump.c (version): Use pkgversion_string. Update copyright - date. - -2007-08-20 Richard Guenther - - * lang.c (java_tree_inlining_walk_subtrees): Remove. - (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Remove. - -2007-08-17 Tom Tromey - - * typeck.c (find_method_in_interfaces): Update. - * jcf-parse.c (load_class): Update. - * java-gimplify.c (java_gimplify_component_ref): Removed. - (java_gimplify_modify_expr): Update. Removed pre_p and post_p - arguments. - (java_gimplify_expr): Update. - * decl.c (java_init_decl_processing): Update. - * class.c (set_constant_value): Update. - (make_class_data): Update. - (finish_class): Update. - (build_static_field_ref): Update. - (is_compiled_class): Update. - (maybe_layout_super_class): Update. - (layout_class): Update. - (layout_class_method): Update. - * java-tree.h (CAN_COMPLETE_NORMALLY): Removed. - (lang_decl_var) : Removed fields. - (lang_decl_func) : Removed field. - (lang_type) : Removed fields. - (FIELD_NESTED_ACCESS): Removed. - (FIELD_NESTED_ACCESS_P): Removed. - (DECL_FIELD_FINAL_IUD): Removed. - (DECL_LOCAL_FINAL_IUD): Removed - (LOCAL_FINAL_P): Removed. - (FINAL_VARIABLE_P): Removed. - (CLASS_FINAL_VARIABLE_P): Removed. - (DECL_BIT_INDEX): Removed. - (DECL_INIT_CALLS_THIS): Removed. - (FIELD_LOCAL_ALIAS): Removed. - (FIELD_LOCAL_ALIAS_USED): Removed. - (FIELD_THISN): Removed. - (DECL_FUNCTION_INIT_TEST_CLASS): Removed. - (LOCAL_CLASS_INITIALIZATION_FLAG): Removed. - (LOCAL_CLASS_INITIALIZATION_FLAG_P): Removed. - (TYPE_DOT_CLASS): Removed. - (TYPE_VERIFY_METHOD): Removed. - (ID_CLASSDOLLAR_P): Removed. - (enum java_tree_index) : - Removed. - (classdollar_identifier_node): Removed. - (TYPE_UNKNOWN): Removed. - (CLASS_FROM_SOURCE_P): Removed. - * expr.c (build_jni_stub): Update. - (force_evaluation_order): Update. - (build_java_empty_stmt): Update. - (build_class_init): Update. - (java_stack_swap): Update. - (build_jni_stub): Update. - -2007-08-17 Tom Tromey - - * java-tree.h (LABEL_TYPE_STATE): Removed. - (load_type_state): Removed. - (LABEL_PC): Removed. - (LABEL_VERIFIED): Removed. - (type_states): Declare. - * expr.c (type_states): New global. - (load_type_state): Now static. Use type_states. Changed - argument. - (lookup_label): Don't set LABEL_PC. - (expand_byte_code): Don't use LABEL_VERIFIED. - (note_instructions): Initialize type_states. - * verify-glue.c (vfy_note_stack_depth): Rewrote. - (vfy_note_stack_type): Use type_states. - (vfy_note_local_type): Likewise. - -2007-08-10 Kaveh R. Ghazi - - * jcf-parse.c (read_class, java_parse_file): Use CONST_CAST. - * jcf.h (JCF_FINISH): Likewise. - -2007-07-31 Nick Clifton - - * java-gimplify.c: Change copyright header to refer to version 3 - of the GNU General Public License and to point readers at the - COPYING3 file and the FSF's license web page. - * typeck.c, lang-specs.h, mangle_name.c, jcf-dump.c, class.c, - decl.c, config-lang.in, jcf-parse.c, constants.c, Make-lang.in, - resource.c, except.c, builtins.c, jvspec.c, java-tree.def, - javaop.def, jcf-path.c, verify-glue.c, jcf-depend.c, lang.opt, - jcf-reader.c, mangle.c, zextract.c, jcf-io.c, jcf.h, zipfile.h, - verify.h, java-except.h, win32-host.c, expr.c, jvgenmain.c, - parse.h, lang.c, java-tree.h, javaop.h, boehm.c: Likewise. - -2007-07-30 Kaveh R. Ghazi - - * jcf-io.c (find_class): Fix -Wcast-qual warnings. - -2007-07-29 Kaveh R. Ghazi - - * lang.c (java_get_callee_fndecl): Constify. - -2007-07-27 Kaveh R. Ghazi - - * mangle.c (set_type_package_list): Constify. - * verify-glue.c (vfy_make_string): Delete. - * verify.h (vfy_make_string): Likewise. - -2007-07-26 Tom Tromey - - * java-tree.h (push_labeled_block, pop_labeled_block): Remove. - (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, - EXIT_BLOCK_LABELED_BLOCK): Likewise. - * lang.c (java_tree_inlining_walk_subtrees): Update. - (java_dump_tree): Likewise. - * java-tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRY_EXPR): - Remove. - * decl.c (push_labeled_block, pop_labeled_block): Remove. - * java-gimplify.c (java_gimplify_labeled_block_expr, - java_gimplify_exit_block_expr, java_gimplify_try_expr): Remove. - (java_gimplify_expr): Update. - -2007-07-25 Kaveh R. Ghazi - - * class.c (java_treetreehash_hash, java_treetreehash_compare): - Constify. - * expr.c (type_assertion_eq): Likewise. - * jcf-io.c (compare_path): Likewise. - * jcf-parse.c (cmpstringp): Likewise. - * verify-impl.c (get_one_type, compute_argument_types, - compute_return_type): Likewise. - -2007-07-16 Rainer Orth - - PR target/32462 - PR libgcj/32465 - * class.c (hide): Wrap in HAVE_GAS_HIDDEN. - -2007-07-12 Richard Guenther - - * expr.c (expand_java_return): RETURN_EXPR has void type. - (build_jni_stub): Likewise. Use a comparison against zero - for null-pointer test in COND_EXPR. - (build_field_ref): Build POINTER_PLUS_EXPR with correct - type. Convert result instead. - (build_invokevirtual): Likewise. - -2007-07-09 Geoffrey Keating - - PR 32617 - * lang.c (java_init): Remove setting of force_align_functions_log. - * class.c (add_method_1): Set DECL_ALIGN of non-static method - to cope with ptrmemfunc_vbit_in_pfn. - -2007-07-03 David Daney - - * java/Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to - include path. - (doc/gcj.dvi): Same. - (doc/gcj.pdf): Same. - (java/index.html): Same. - -2007-06-15 Andrew Pinski - - * class.c (make_class_data): Build the index in sizetype. - Use POINTER_PLUS_EXPR instead of PLUS_EXPR when - adding to a pointer type. - (build_symbol_entry): Likewise. - * expr.c (build_java_arrayaccess): Likewise. - (build_field_ref): Likewise. - (build_known_method_ref): Likewise. - (build_invokevirtual): Likewise. - * except.c (build_exception_object_ref): Do a - NEGATIVE and then a POINTER_PLUS_EXPR instead - of a MINUS_EXPR. - -2007-06-11 Rafael Ávila de Espíndola - - * typeck.c (java_signed_type): Remove. - * lang.c (LANG_HOOKS_SIGNED_TYPE): Remove. - * java-tree.h (java_signed_type): Remove. - -2007-05-18 Geoffrey Keating - - * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx. - (print_constant): Likewise. - -2007-05-14 Rafael Ávila de Espíndola - - * expr.c (build_java_binop): Use unsigned_type_for instead of - java_unsigned_type. - * java-tree.h (java_unsigned_type): Remove. - * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove. - * typeck.c (java_unsigned_type): Remove. - -2007-04-21 Andrew Pinski - - * java-tree.h (lang_tree_node): Use GENERIC_NEXT - instead of checking GIMPLE_STMT_P in chain_next. - -2007-04-06 Colin Walters - - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161701 - * jcf-io.c (open_class): Copy 'filename'. - -2007-04-03 Andrew Haley - - * jvgenmain.c (main): Change main to use class$, not class$$. - (do_mangle_classname): Likewise. - * class.c (hide): New function. - (add_field): Hide everything that shouldn't be visible outside a - DSO. - (build_static_class_ref): Likewise. - (build_classdollar_field): Likewise. - (make_class_data): Likewise. - (layout_class_method): Likewise. - * expr.c (special_method_p): New function. - - * class.c (push_class): Don't bogusly guess the source filename. - * jcf-parse.c (give_name_to_class): Don't set input_location from - DECL_ARTIFICIAL decls. - -2007-03-30 Rafael Ávila de Espíndola - - * typeck.c (java_signed_or_unsigned_type): Removed. - (java_signed_type): use get_signed_or_unsigned_type instead of - java_signed_or_unsigned_type. - (java_unsigned_type): Ditto. - * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Removed. - * java-tree.h (java_signed_or_unsigned_type): Removed. - -2007-03-26 Tom Tromey - - * Make-lang.in (JAVA_MANFILES): Removed grmiregistry.1. - (java.maintainer-clean): Likewise. - (java.install-man): Likewise. - (.INTERMEDIATE): Removed grmiregistry.pod. - (grmiregistry.pod): Removed. - * gcj.texi (Invoking gcjh): Removed. - (Invoking gjnih): Likewise. - (Invoking grmiregistry): Likewise. - (direntry): Updated. - (Top): Likewise. - (which-gcj): Removed. - -2007-03-01 Brooks Moses - - * Make-lang.in: Add install-pdf target as copied from - automake v1.10 rules. - -2007-02-27 Brooks Moses - - * gcj.texi: Standardize title page. - -2007-02-18 Kazu Hirata - - * class.c: Fix a comment typo. - -2007-02-15 Sandra Loosemore - Brooks Moses - Lee Millward - - * java-tree.h (BUILD_MONITOR_ENTER): Use build_call_nary instead - of build3. - (BUILD_MONITOR_EXIT): Likewise. - - * java-gimplify.c (java_gimplify_component_ref): Use build_call_expr. - (java_gimplify_modify_expr): Likewise. - - * class.c (cache_this_class_ref): Use build_call_expr. - (build_static_field_ref): Likewise. - (emit_indirect_register_classes): Likewise. - (emit_register_classes): Likewise. - - * resource.c (write_resource_constructor): Use build_call_expr. - - * builtins.c (builtin_creator_function): Change interpretation of - the second parameter to be the whole CALL_EXPR instead of the arglist. - (max_builtin): Tweak parameter list. Use new CALL_EXPR accessors. - (min_builtin): Likewise. - (abs_builtin): Likewise. - (java_build_function_call_expr): Likewise. - (convert_real): Likewise. - (UNMARSHAL3): Likewise. - (UNMARSHAL4): Likewise. - (UNMARSHAL5): Likewise. - (build_arglist_for_builtin): Delete. Fix callers to use - build_call_expr instead. - (putObject_builtin): Tweak parameter list. Use new CALL_EXPR - accessors. - (compareAndSwapInt_builtin): Likewise. - (compareAndSwapLong_builtin): Likewise. - (compareAndSwapObject_builtin): Likewise. - (putVolatile_builtin): Likewise. - (getVolatile_builtin): Likewise. - (VMSupportsCS8_builtin): Likewise. - (check_for_builtin): Pass entire CALL_EXPR to builtin expander - instead of arglist. - - * expr.c (build_java_athrow): Use build_call_nary instead of build3. - (build_java_throw_out_of_bounds_exception): Likewise. - (java_check_reference): Likewise. - (build_java_arraystore_check): Likewise. - (build_newarray): Likewise. - (build_anewarray): Likewise. - (expand_java_multinewarray): Use build_call_list instead of build3. - (build_java_monitor): Use build_call_nary instead of build3. - (java_create_object): Likewise. - (expand_java_NEW): Likewise. - (build_instanceof): Likewise. - (expand_java_CHECKCAST): Likewise. - (build_java_soft_divmod): Likewise. - (build_java_binop): Likewise. - (build_field_ref): Likewise. - (build_class_init): Likewise. - (rewrite_arglist_getcaller): Use build_call_expr. - (build_invokeinterface): Use build_call_nary instead of build3. - (expand_invoke): Use build_call_list instead of build3. - (build_jni_stub): Use build_call_nary, build_call_list, or - build_call_expr instead of build3. - (expand_java_field_op): Use build_call_expr instead of build3. - (force_evaluation_order): Use new CALL_EXPR accessors. - - * lang.c (java_get_callee_fndecl): Use new CALL_EXPR accessors. - -2007-02-15 David Daney - - * Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. - (java.maintainer-clean):Add gc-analyze.1. - (.INTERMEDIATE): Add gc-analyze.pod. - (gc-analyze.pod): New rule. - (java.install-man): Install gc-analyze.1 - * gcj.texi: Add new section for the gc-analyze program. - -2007-02-07 Andrew Haley - - * class.c (uncache_this_class_ref): New. - * expr.c (build_jni_stub): Initialize the class. - (expand_byte_code): Call uncache_this_class_ref after generating - code. - -2007-02-06 Tom Tromey - - PR java/30714: - * jvspec.c (lang_specific_driver): Check for the '-' in '-I'. - -2007-02-03 Kazu Hirata - - * java-tree.h, javaop.def, jcf-parse.c: Fix comment typos. - -2007-02-02 Andrew Haley - - * expr.c (expand_byte_code): Call cache_this_class_ref() and - cache_cpool_data_ref(). - Set TYPE_CPOOL_DATA_REF. - (cache_cpool_data_ref): New function. - * constants.c (build_ref_from_constant_pool): Remove special-case - code for flag_indirect_classes. - (build_constant_data_ref): Move special-case code for - flag_indirect_classes here from build_ref_from_constant_pool. - * decl.c (finish_method): Move class initialization from here to - cache_this_class_ref. - * class.c (cache_this_class_ref): New function. - (build_class_ref): Use this_classdollar for the ouput class. - -2007-02-02 David Daney - - * class.c (is_compiled_class): Move check to avoid reloading - current class. - (layout_class_method): Don't calculate DECL_EXTERNAL if it is - already set. - -2007-02-01 Andrew Haley - - PR java/30641 - * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap. - -2007-01-31 Kazu Hirata - - * class.c, jcf-parse.c: Fix comment typos. - -2007-01-30 Tom Tromey - - * gcj.texi (Strings): Fix documentation for JvNewString. - -2007-01-30 Ralf Wildenhues - - * gcj.texi (Invoking gcjh, Invoking gjnih, Arrays): Fix some - typos. - -2007-01-30 Ben Elliston - - * jvspec.c (lang_specific_driver): Remove unused classpath_args. - -2007-01-29 Tom Tromey - - PR java/30607: - * jvspec.c (lang_specific_driver): Handle separate -I argument. - * lang.opt (-I): Add 'Separate'. - -2007-01-29 Andrew Haley - - * class.c (add_method_1): Mark fndecl as external unless we are - compiling it into this object file. - -2007-01-24 Andrew Haley - - * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): current_class is a - type node, not a decl, so use TYPE_SYNTHETIC not CLASS_SYNTHETIC. - -2007-01-22 Andrew Haley - - * builtins.c (VMSupportsCS8_builtin): New function. - -2007-01-23 Andrew Pinski - - PR java/30454 - * jcf-io.c (opendir_in_zip): Close the file - and free zipf before returning after an error. - -2007-01-16 Tom Tromey - - * java-tree.def: Added copyright header. - -2007-01-15 Tom Tromey - - * lang.c (dump_compound_expr) : Removed - case. - * java-gimplify.c (java_gimplify_expr) : - Removed case. - * java-tree.h (EXPR_WFL_EMIT_LINE_NOTE): Removed. - (EXPR_WFL_NODE): Likewise. - (EXPR_WFL_LINECOL): Likewise. - (EXPR_WFL_FILENAME): Likewise. - (EXPR_WFL_LINENO): Likewise. - (build_expr_wfl, expr_add_location): Don't declare. - (build_unknown_wfl): Removed. - (EXPR_WFL_FILENAME_NODE): Removed. - (EXPR_WFL_COLNO): Removed. - (EXPR_WFL_SET_LINECOL): Removed. - (DECL_FUNCTION_WFL): Removed. - (DECL_FIELD_FINAL_WFL): Removed. - (struct lang_decl_func) : Removed field. - : Likewise. - : Likewise. - (struct lang_decl_var) : Removed field. - (DECL_CONSTRUCTOR_CALLS): Removed. - (DECL_FUNCTION_ACCESS_DECL): Likewise. - (DECL_FUNCTION_INNER_ACCESS): Likewise. - (DECL_SPECIFIC_COUNT): Likewise. - * java-tree.def (EXPR_WITH_FILE_LOCATION): Removed. - * expr.c (build_expr_wfl): Removed. - (expr_add_location): Likewise. - -2007-01-12 Tom Tromey - - * jcf-dump.c (main): Updated call to find_class. - * lang.c (java_init): Removed dead code. - * jcf-parse.c (read_class): Don't use java_source field. Removed - dead code. - (parse_zip_file_entries): Don't use java_source field. - (process_zip_dir): Likewise. - (jcf_parse): Removed dead code. - (java_parse_file): Likewise. - (read_class): Updated call to find_class. - * jcf-io.c (find_class): Don't use java_source field. Removed - 'source_ok' argument, .java logic. - * jcf.h (JCF) : Removed field. - (JCF_ZERO): Updated. (find_class): Updated. - * decl.c: Removed dead code. - * class.c: Removed dead code. - -2007-01-11 Tom Tromey - - * typeck.c (convert): Don't use flag_emit_class_files. - * lang.c (java_post_options): Don't use flag_emit_class_files. - (java_handle_option): Don't use flag_extraneous_semicolon or - flag_redundant. - * jcf-parse.c (HANDLE_CONSTANTVALUE): Don't use - flag_emit_class_files. - (load_class): Likewise. - * java-tree.h (flag_emit_class_files): Don't declare. - (STATIC_CLASS_INIT_OPT_P): Don't use flag_emit_class_files. - (flag_extraneous_semicolon): Don't declare. - (flag_not_overriding): Likewise. - (flag_static_local_jdk1_1): Likewise. - (flag_redundant): Likewise. - * expr.c (build_newarray): Don't use flag_emit_class_files. - * class.c (DEFAULT_ENABLE_ASSERT): Don't use - flag_emit_class_files. - (build_class_ref): Likewise. - * builtins.c (check_for_builtin): Don't use - flag_emit_class_files. - -2007-01-10 Tom Tromey - - * lang.c (java_can_use_bit_fields_p): Removed. - (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed. - -2007-01-09 Andrew Haley - - * expr.c (build_java_arrayaccess): Rewrite to generate array - access in canonical form. - (expand_java_arraystore): Use build_fold_addr_expr() on address of - array access. - -2007-01-03 Andrew Haley - - PR java/28754 - * expr.c (expand_java_field_op): If we're initializing a field's - declaring interface we should not also initialize the class - context in which it was referenced. - -2007-01-02 Tom Tromey - - * java-tree.h (compiling_from_source, current_encoding, - JTI_FINIT_IDENTIFIER_NODE, JTI_INSTINIT_IDENTIFIER_NODE, - JTI_LENGTH_IDENTIFIER_NODE, JTI_SUPER_IDENTIFIER_NODE, - JTI_CONTINUE_IDENTIFIER_NODE, JTI_ACCESS0_IDENTIFIER_NODE, - JTI_WFL_OPERATOR): Removed - (finit_identifier_node, instinit_identifier_node, - length_identifier_node, super_identifier_node, - continue_identifier_node, access0_identifier_node, wfl_operator): - Removed. - (cyclic_inheritance_report, - DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND, - DECL_FUNCTION_NAP, DECL_FUNCTION_SYNTHETIC_CTOR, - DECL_FIXED_CONSTRUCTOR_P): Removed. - (struct lang_decl_func) : - Removed. - (TYPE_FINIT_STMT_LIST, TYPE_CLINIT_STMT_LIST, TYPE_II_STMT_LIST, - TYPE_IMPORT_LIST, TYPE_IMPORT_DEMAND_LIST): Removed. - (struct lang_type) : Removed. - (java_layout_seen_class_methods, init_jcf_parse, init_src_parse, - cxx_keyword_p): Removed. - (DECL_FINIT_P, DECL_INSTINIT_P, ID_FINIT_P, ID_INSTINIT_P, - TYPE_UNUSED, TYPE_UNDERFLOW, TYPE_UNEXPECTED, - CLASS_ACCESS0_GENERATED_P, CLASS_HAS_FINIT_P, - IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P, IS_A_CLASSFILE_NAME, - IS_AN_IMPORT_ON_DEMAND_P, COMPOUND_ASSIGN_P, SWITCH_HAS_DEFAULT, - PRIMARY_P, MODIFY_EXPR_FROM_INITIALIZATION_P, - CLASS_METHOD_CHECKED_P, FOR_LOOP_P, ANONYMOUS_CLASS_P, - LOCAL_CLASS_P, ARG_FINAL_P, SUPPRESS_UNREACHABLE_ERROR, - RESOLVE_PACKAGE_NAME_P, RESOLVE_TYPE_NAME_P, IS_BREAK_STMT_P, - IS_CRAFTED_STRING_BUFFER_P, IS_INIT_CHECKED, CALL_USING_SUPER, - NESTED_FIELD_ACCESS_IDENTIFIER_P, TOPLEVEL_CLASS_DECL_P, - PURE_INNER_CLASS_TYPE_P, TOPLEVEL_CLASS_TYPE_P, - CALL_CONSTRUCTOR_P, CALL_EXPLICIT_CONSTRUCTOR_P, - CALL_THIS_CONSTRUCTOR_P, CALL_SUPER_CONSTRUCTOR_P, - FINALLY_EXPR_LABEL, FINALLY_EXPR_BLOCK, BLOCK_IS_IMPLICIT, - BLOCK_EMPTY_P, IS_UNCHECKED_EXCEPTION_P, java_error_count, - java_parse_abort_on_error, extract_field_decl): Removed. - (finput): Declare. - * lang.c: (compiling_from_source, current_encoding): Removed. - (java_handle_option): Ignore -fencoding. - * parse.h: Don't include lex.h. - (java_error_count, int_fits_type_p, stabilize_reference, RULE, - RECOVERED, DRECOVERED, RECOVER, DRECOVER, YYERROR_NOW, - YYNOT_TWICE, CLASS_MODIFIERS, FIELD_MODIFIERS, METHOD_MODIFIERS, - INTERFACE_MODIFIERS, INTERFACE_INNER_MODIFIERS, - INTERFACE_METHOD_MODIFIERS, INTERFACE_FIELD_MODIFIERS, - MODIFIER_WFL, THIS_MODIFIER_ONLY, parse_error_context, - ABSTRACT_CHECK, JCONSTRUCTOR_CHECK, exit_java_complete_class, - CLASS_OR_INTERFACE, GET_REAL_TYPE, GET_TYPE_NAME, - OBSOLETE_MODIFIER_WARNING, OBSOLETE_MODIFIER_WARNING2, - BUILD_PTR_FROM_NAME, INCOMPLETE_TYPE_P, - JAVA_MAYBE_GENERATE_DEBUG_INFO, JBSC_TYPE_P, JSTRING_P, - JNULLP_TYPE_P, JDECL_P, TYPE_INTERFACE_P, TYPE_CLASS_P, - IDENTIFIER_INNER_CLASS_OUTER_FIELD_ACCESS, - MANGLE_OUTER_LOCAL_VARIABLE_NAME, - MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID, - MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STRING, - SKIP_THIS_AND_ARTIFICIAL_PARMS, MARK_FINAL_PARMS, - UNMARK_FINAL_PARMS, CRAFTED_PARAM_LIST_FIXUP, - AIPL_FUNCTION_CREATION, AIPL_FUNCTION_DECLARATION, - AIPL_FUNCTION_CTOR_INVOCATION, AIPL_FUNCTION_FINIT_INVOCATION, - ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, - ERROR_CAST_NEEDED_TO_INTEGRAL, ERROR_VARIABLE_NOT_INITIALIZED, - LOOP_EXPR_BODY_MAIN_BLOCK, LOOP_EXPR_BODY_UPDATE_BLOCK, - LOOP_EXPR_BODY_CONDITION_EXPR, LOOP_EXPR_BODY_LABELED_BODY, - LOOP_EXPR_BODY_BODY_EXPR, PUSH_LABELED_BLOCK, POP_LABELED_BLOCK, - PUSH_LOOP, POP_LOOP, PUSH_EXCEPTIONS, POP_EXCEPTIONS, - IN_TRY_BLOCK_P, EXCEPTIONS_P, ANONYMOUS_ARRAY_BASE_TYPE, - ANONYMOUS_ARRAY_DIMS_SIG, ANONYMOUS_ARRAY_INITIALIZER, - INVOKE_STATIC, INVOKE_NONVIRTUAL, INVOKE_SUPER, INVOKE_INTERFACE, - INVOKE_VIRTUAL, jdep_code, struct _jdep, JDEP_DECL, JDEP_DECL_WFL, - JDEP_KIND, JDEP_WFL, JDEP_MISC, JDEP_ENCLOSING, JDEP_CLASS, - JDEP_APPLY_PATCH, JDEP_GET_PATCH, JDEP_CHAIN, JDEP_TO_RESOLVE, - JDEP_RESOLVED_DECL, JDEP_RESOLVED, JDEP_RESOLVED_P, struct - jdeplist_s, jdeplists, CLASSD_FIRST, CLASSD_LAST, CLASSD_CHAIN, - JDEP_INSERT, SET_TYPE_FOR_RESOLUTION, WFL_STRIP_BRACKET, - STRING_STRIP_BRACKETS, PROMOTE_RECORD_IF_COMPLETE, - BLOCK_CHAIN_DECL, GET_CURRENT_BLOCK, EXPR_WFL_GET_LINECOL, - EXPR_WFL_QUALIFICATION, QUAL_WFL, QUAL_RESOLUTION, QUAL_DECL_TYPE, - GET_SKIP_TYPE, COMPLETE_CHECK_OP, COMPLETE_CHECK_OP_0, - COMPLETE_CHECK_OP_1, COMPLETE_CHECK_OP_2, BUILD_APPEND, - BUILD_STRING_BUFFER, BUILD_THROW, SET_WFL_OPERATOR, - PATCH_METHOD_RETURN_ERROR, CHECK_METHODS, CLEAR_DEPRECATED, - CHECK_DEPRECATED_NO_RESET, CHECK_DEPRECATED, REGISTER_IMPORT, - CURRENT_OSB, struct parser_ctxt, GET_CPC_LIST, CPC_INNER_P, - GET_CPC, GET_CPC_UN, GET_CPC_UN_MODE, GET_CPC_DECL_NODE, - GET_ENCLOSING_CPC, GET_NEXT_ENCLOSING_CPC, - GET_ENCLOSING_CPC_CONTEXT, INNER_ENCLOSING_SCOPE_CHECK, PUSH_CPC, - PUSH_ERROR, POP_CPC, DEBUG_CPC, CPC_INITIALIZER_LIST, - CPC_STATIC_INITIALIZER_LIST, CPC_INSTANCE_INITIALIZER_LIST, - CPC_INITIALIZER_STMT, CPC_STATIC_INITIALIZER_STMT, - CPC_INSTANCE_INITIALIZER_STMT, SET_CPC_INITIALIZER_STMT, - SET_CPC_STATIC_INITIALIZER_STMT, - SET_CPC_INSTANCE_INITIALIZER_STMT, JAVA_NOT_RADIX10_FLAG, - java_complete_class, java_check_circular_reference, - java_fix_constructors, java_layout_classes, java_reorder_fields, - java_method_add_stmt, java_get_line_col, reset_report, - java_init_lex, yyparse, java_parse, yyerror, java_expand_classes, - java_finish_classes, ctxp, ctxp_for_generation, - ctxp_for_generation_last): Removed. - * expr.c (force_evaluation_order): Don't mention NEW_CLASS_EXPR. - * mangle.c (utf8_cmp): New function. - (cxx_keywords): New global. - (cxx_keyword_p): New function. - * jvspec.c (JAVA_START_CHAR): Removed obsolete comment. - * java-tree.def (UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, - NEW_ANONYMOUS_ARRAY_EXPR, NEW_CLASS_EXPR, THIS_EXPR, - CASE_EXPR, DEFAULT_EXPR, JAVA_CATCH_EXPR, SYNCHRONIZED_EXPR, - THROW_EXPR, CONDITIONAL_EXPR, INSTANCEOF_EXPR, NEW_ARRAY_INIT, - CLASS_LITERAL, JAVA_EXC_OBJ_EXPR): Removed. - * Make-lang.in (java.srcextra): Do nothing. - (parse.c, keyword.h, gt-java-parse.h): Removed targets. - (JAVA_OBJS): Don't mention deleted files. - (java.mostlyclean): Likewise. - (java.clean): Likewise. - (JAVA_LEX_C): Removed. - (buffer.o, check-init.o, parse.o): Remove unused targets. - (typeck.o): Updated. - * jcf-parse.c (read_class): Comment out unused code. - (java_layout_seen_class_methods): New function. - (parse_source_file_1, parse_source_file_2, parse_source_file_3): - Removed. - (java_parse_file): Comment out unused code. Don't use 'ctxp'. - (init_jcf_parse): Removed. - * config-lang.in (gtfiles): Remove deleted files. - * decl.c (java_init_decl_processing): Don't initialize - finit_identifier_node, instinit_identifier_node, - length_identifier_node, super_identifier_node, - continue_identifier_node, access0_identifier_node. Don't call - init_jcf_parse. - * class.c (cyclic_inheritance_report): New global. - (add_method_1): Don't use - DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND. - (maybe_layout_super_class): Comment out code. - (safe_layout_class): New function. - * java-gimplify.c (java_gimplify_expr): Removed CASE_EXPR, - DEFAULT_EXPR, NEW_ARRAY_INIT, JAVA_CATCH_EXPR, JAVA_EXC_OBJ_EXPR, - UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, NEW_ANONYMOUS_ARRAY_EXPR, - NEW_CLASS_EXPR, SYNCHRONIZED_EXPR, CONDITIONAL_EXPR, - INSTANCEOF_EXPR, CLASS_LITERAL, THIS_EXPR. - (java_gimplify_case_expr): Removed. - (java_gimplify_default_expr): Likewise. - (java_gimplify_new_array_init): Likewise. - * parse.y: Removed. - * keyword.gperf, keyword.h: Removed. - * chartables.h: Removed. - * check-init.c: Removed. - * buffer.c, buffer.h: Removed. - * convert.h: Removed. - * gen-table.pl: Removed. - * lex.c, lex.h: Removed. - -2007-01-02 Andrew Haley - - * expr.c (expand_java_arraystore): Make sure we perform a bounds - check at runtime before we perform a type check. - -2006-12-19 Andrew Haley - - * decl.c: Bump minor BC ABI version. - -2006-12-13 Gary Benson - - * jcf-depend.c (jcf_dependency_add_file): Mark filename unused. - -2006-12-12 Tom Tromey - - * lang-specs.h: Pass -M options to jc1. - * jcf-depend.c (jcf_dependency_add_file): Don't emit - dependencies. - -2006-12-07 Mohan Embar - - * jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR. - -2006-12-06 Mohan Embar - - * lang-specs.h: Pass '%U'-based options as separate arguments. - -2006-12-05 Tom Tromey - - PR java/29495: - * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Mark fields and - classes as well. - * class.c (add_field): Handle ACC_SYNTHETIC. - (add_method_1): Likewise. Handle bridge and varargs. - (get_access_flags_from_decl): Handle synthetic, bridge, varargs, - annotation. - (set_class_decl_access_flags): Handle synthetic and annotation. - * java-tree.h (METHOD_BRIDGE): New macro. - (METHOD_VARARGS): Likewise. - (TYPE_SYNTHETIC): Likewise. - (TYPE_ANNOTATION): Likewise. - (lang_type): New fields 'synthetic' and 'annotation'. - (lang_decl_func): New fields 'varargs' and 'bridge'. - -2006-12-04 Andrew Haley - - * jcf-parse.c (rewrite_reflection_indexes): Don't do anything if - there's no map. - -2006-11-29 Gary Benson - - * expr.c (rewrite_arglist_getcaller): Reorder. - -2006-11-29 Andrew Haley - - * expr.c (rewrite_arglist_getcaller): Remove DECL_INLINE. - * lang.c (java_decl_ok_for_sibcall): Check for DECL_INLINE. - -2006-11-23 Andrew Haley - - * expr.c (rewrite_arglist_getcaller): New. - (rewrite_arglist_getclass): Fix indentation. - (rules): Add gnu.classpath.VMStackWalker.getCallingClass() and - gnu.classpath.VMStackWalker.getCallingClassLoader(). - * builtins.c (initialize_builtins): Remove duplicate def'n of - __sync_synchronize. - Add __builtin_return_address. - -2006-11-22 Andrew Haley - - * jcf-reader.c (get_attribute): Mark attr_type unused. - - * builtins.c (compareAndSwapObject_builtin): Fix declaration. - -2007-01-08 Richard Guenther - - * lex.c (do_java_lex): Use build_int_cst_wide_type. - * jcf-parse.c (get_constant): Likewise. - -2006-11-12 Jan Hubicka - - * resource.c (compile_resource_data): Update for new varpool names. - * java/class.c (build_utf8_ref): Likewise. - -2006-11-12 David Daney - - PR java/29805 - * typeck.c (build_java_array_type): Increase buffer sizes. - -2006-11-11 Richard Guenther - - * check-init.c (check_init): Remove handling of FIX_CEIL_EXPR, - FIX_FLOOR_EXPR and FIX_ROUND_EXPR. - -2006-11-06 Andrew Haley - - * java-tree.h (CONSTANT_LazyFlag): New. - * constants.c (build_constants_constructor): Mask CONSTANT_LazyFlag. - * jcf-parse.c (handle_innerclass_attribute): Write attribute to - reflection_data. - (handle_constant): Return 0 for dummy cpool entries. - Handle constants of kind Class. - Handle constants of kind NameAndType. - (handle_enclosingmethod_attribute): New. - (handle_signature_attribute): New. - (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New. - (HANDLE_SIGNATURE_ATTRIBUTE): New. - (handle_constant): Use unmangle_classname()rather than calling - identifier_subst() directly. - -2006-11-02 Andrew Haley - - * java-tree.h (FIELD_ENUM): New. - (lang_decl_var.field_enum): New. - (lang_type.enum_class): New. - (CLASS_ENUM): New. - * class.c (set_class_decl_access_flags): Handle enum types. - (add_field): Handle enum fields. - (get_access_flags_from_decl): Likewise. - - * class.c (make_class_data): Put reflection_data into rodata. - -2006-11-01 Andrew Haley - - * jcf-parse.c (field_offsets, bit_obstack): New variables. - (jcf_parse): Write end marker to annotation_data. - (java_parse_file): Create field_offsets bitmap. Destroy it. - (annotation_grow, annotation_rewrite_byte) - (annotation_rewrite_short, annotation_rewrite_int) - (annotation_read_short, annotation_write_byte) - (annotation_write_short, annotation_write_int) - (handle_long_constant, handle_constant, handle_element_value) - (handle_annotation, handle_annotations) - (handle_annotation_attribute, rewrite_reflection_indexes) - (handle_member_annotations, handle_parameter_annotations) - (handle_default_annotation): New functions. - (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE) - (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE) - (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) - (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) - (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): New definitions. - * java-tree.h (enum jv_attr_type, enum jv_attr_kind): New. - (TYPE_REFLECTION_DATA): New. - (TYPE_REFLECTION_DATASIZE): New. - * jcf.h (enum cpool_tag): Convert a bunch of #define constants to - an enum. - * jcf-reader.c (get_attribute): Pass field/method index and - attribute type to get_attribute(). - * constants.c (find_class_or_string_constant): Make nonstatic. - (cpool_for_class): Likewise. - (build_constants_constructor): Separate string and scalar types. - * class.c (make_class_data): Generate field_indexes permutation. - Pass it to rewrite_reflection_indexes(). - (make_class_data): Generate constructor for reflection_data field. - -2006-10-20 Tom Tromey - - * gcj.texi (Top): Don't mention jv-scan. - (Invoking gcj): Likewise. - (Invoking gcjh): Likewise. - (Invoking gjnih): Likewise. - (Invoking gij): Likewise. - (Invoking gcj-dbtool): Likewise. - (Invoking jv-scan): Removed. - * parse-scan.y: Removed. - * jv-scan.c: Removed. - * config-lang.in (stagestuff): Don't mention jv-scan. - * Make-lang.in (java): Removed jv-scan. - (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. - (JVSCAN_OBJS): Removed. - (jv-scan$(exeext)): Likewise. - (JAVA_MANFILES): Removed jv-scan.1. - (java.uninstall): Don't mention jv-scan. - (java.mostlyclean): Likewise. - (java.maintainer-clean): Likewise. - (.INTERMEDIATE): Likewise. - (java/jv-scan.o): Removed. - (jv-scan.pod): Likewise. - (java.srcextra): Don't mention parse-scan.c. - (java.mostlyclean): Likewise. - (java/parse-scan.c): Removed. - (java/parse-scan.o-warn): Removed. - (java/parse-scan.o): Removed. - -2006-10-20 Tom Tromey - - * lang.c (java_handle_option): Don't use - jcf_write_base_directory. - * jcf.h (jcf_write_base_directory): Removed. - * parse.y (java_expand_classes): Don't call write_classfile. - * config-lang.in (gtfiles): Removed jcf-write.c. - * Make-lang.in (JAVA_OBJS): Removed jcf-write.o. - (java/jcf-write.o): Removed. - * jcf-parse.c (parse_class_file): Don't call write_classfile. - * java-tree.h (write_classfile): Removed declaration. - * jcf-write.c: Removed. - -2006-10-20 Tom Tromey - - * Make-lang.in (java): Removed gjnih, gcjh. - (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. - (GCJH_OBJS): Removed. - (GJNIH_OBJS): Likewise. - (gjnih$(exeext)): Likewise. - (gcjh$(exeext)): Likewise. - (JAVA_MANFILES): Removed gcjh.1, gjnih.1. - (java.install-common): Don't special case gcjh. - (java.uninstall): Don't mention gcjh, gjnih. - (java.mostlyclean): Likewise. - (java.maintainer-clean): Likewise. - (.INTERMEDIATE): Likewise. - (gcjh.pod): Removed. - (gjnih.pod): Likewise. - (GCJH_TARGET_INSTALL_NAME): Removed. - (java/gjavah-jni.o): Removed. - (java/gjavah.o): Likewise. - * config-lang.in (stagestuff): Removed gjnih, gcjh. - * gjavah.c: Removed. - -2006-10-17 Tom Tromey - - * jcf-dump.c (print_element_value): Expect a utf8 constant in the - "string" case. - -2006-10-17 Tom Tromey - - * jvgenmain.c (main): Handle -findirect-dispatch. - * jvspec.c (jvgenmain_spec): Pass -findirect-dispatch to - jvgenmain. - -2006-10-06 Andrew Haley - - * builtins.c (compareAndSwapInt_builtin): Check that we really do - have a compare_and_swap builtin. - (compareAndSwapLong_builtin): Likewise. - (compareAndSwapObject_builtin): Likewise. - -2006-10-04 Andrew Haley - - * builtins.c (java_builtins): Add compareAndSwapInt, - compareAndSwapLong, compareAndSwapObject, putOrderedInt, - putOrderedLong, putOrderedObject, putIntVolatile, putLongVolatile, - putObjectVolatile, getObjectVolatile, getIntVolatile, - getLongVolatile, getLong. - (UNMARSHAL3): New macro. - (UNMARSHAL4): Likewise. - (UNMARSHAL5): Likewise. - (build_arglist_for_builtin): New function. - (build_addr_sum, build_check_this): New functions. - (putObject_builtin. compareAndSwapInt_builtin, - compareAndSwapLong_builtin, compareAndSwapObject_builtin, - putVolatile_builtin, getVolatile_builtin): New builtins. - -2006-06-08 Andrew Haley - - * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to - get_symbol_table_index(). - (maybe_rewrite_invocation): Set SPECIAL if we need to access a - private method. - (build_known_method_ref): New arg: special. Pass it to - get_symbol_table_index. - (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of - the method list. - (build_invokevirtual): New arg: special. Pass it to - get_symbol_table_index. - (expand_invoke): New variable: special. - Pass it to maybe_rewrite_invocation(). - Pass it to build_known_method_ref(). - * class.c (build_symbol_entry): Add new arg: special. Use it to - build the symbol table conbstructor. - (emit_symbol_table): Extract SPECIAL from the method list and pass - it to build_symbol_entry(). - * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set - special accordingly. - -2006-09-08 Andrew Haley - - * class.c (layout_class_method): Use build_java_signature, not - build_java_argument_signature. Use lookup_java_method, not - lookup_argument_method. - -2006-08-16 Jakub Jelinek - Bryce McKinlay - - * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. - -2006-07-18 Tom Tromey - - * lang.opt: Added missing -W options. - -2006-07-12 Tom Tromey - - PR java/28329: - * lang-specs.h: Pass '%U'-based options as separate arguments. - Use -faux-classpath. - * lang.c (java_handle_option): Handle OPT_faux_classpath. - * lang.opt (faux-classpath): New option. - -2006-07-07 Tom Tromey - - * class.c (make_class_data): Set value for reflection_data field. - * decl.c (java_init_decl_processing): Add reflection_data field. - -2006-07-07 Tom Tromey - - * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): Declare locals - earlier. - (HANDLE_SIGNATURE_ATTRIBUTE): Likewise. - -2006-07-07 Andrew Haley - - * jcf-parse.c (set_source_filename): Don't check for - CLASS_FROM_CURRENTLY_COMPILED_P. - Remove // comments. - -2006-07-07 Andrew Haley - - * java-tree.h (java_read_sourcefilenames): Declare. - * lang.c (java_handle_option): Call java_read_sourcefilenames(). - * lang.opt (fsource-filename): New opt. - * lang-specs.h: Add -fsource-filename. - * jcf-parse.c (num_files, filenames): New variables. - (reverse, cmpstringp, java_read_sourcefilenames, - find_sourcefile): New. - (set_source_filename): Call find_sourcefile to find the real name - of a source file. - -2006-06-27 Tom Tromey - - * jcf-reader.c (get_attribute): Handle EnclosingMethod, - Signature, LocalVariableTypeTable, annotation attributes. - * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New macro. - (HANDLE_SIGNATURE_ATTRIBUTE): Likewise. - (HANDLE_START_FIELD): Mention 'descriptor', not 'signature'. - (HANDLE_METHOD): Likewise. - (HANDLE_LOCALVARIABLETYPETABLE_ATTRIBUTE): New macro. - (print_annotation): New function. - (print_element_value): Likewise. - (indent): Likewise. - (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE): New macro. - (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE): Likewise. - (print_parameter_annotations): New function. - (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE): New macro. - (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE): - Likewise. - (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): Likewise. - (print_annotations): New function. - -2006-06-23 Tom Tromey - - * lang-specs.h: Default -fsource and -ftarget to 1.5. If - emitting class files, always use 1.5. - * gcj.texi (Input Options): Document -fsource. - (Code Generation): Document -ftarget. - -2006-06-21 Tom Tromey - - PR java/28089: - * expr.c (expand_java_field_op): Initialize field's declaring - class. - -2006-06-20 Tom Tromey - - * expr.c (push_value): Always flush quick stack. - -2006-06-19 Tom Tromey - - * expr.c (push_value): Also flush quick stack if value is a - component_ref. - -2006-06-19 Tom Tromey - - * expr.c (push_value): Flush quick stack if value has side - effects. - -2006-06-13 Tom Tromey - - * class.c (is_compiled_class): Explicitly check for current - class. - -2006-06-09 Tom Tromey - - * gjavah.c (decompile_method): Don't decompile a static field - accessor method. - -2006-06-06 Tom Tromey - - * lang-specs.h : Add .jar file to command line if - -fsaw-java-file. Also, remove -ffilelist-file in this case. - -2006-06-05 Tom Tromey - - * jcf-dump.c (print_access_flags): Handle varargs, bridge, - synthetic, enum, annotation. - * jcf.h (ACC_BRIDGE): New macro. - (ACC_VARARGS): Likewise. - (ACC_SYNTHETIC): Likewise. - (ACC_ENUM): Likewise. - (ACC_ANNOTATION): Likewise. - -2006-06-04 Tom Tromey - - * lang.opt (-fsaw-java-file, -fsource, -ftarget): New options. - * jvspec.c (jvgenmain_spec): Remove -fsaw-java-file, -fsource, - and -ftarget. - (lang_specific_driver): Removed dead code. Add -fsaw-java-file - when needed. Handle classpath-setting. - * Make-lang.in ($(GCJ)$(exeext)): Link in jcf-path.o. - * lang-specs.h: Rewrote. - -2006-06-04 Tom Tromey - - * jcf-io.c (find_class): Set source_ok to 0. - * jcf-parse.c (jcf_parse): Disable gnu.gcj.gcj-compiled warning. - (parse_class_file): Don't call java_mark_class_local. - (java_parse_file): Skip .java files. Call java_mark_class_local - before lowering any code. - (parse_zip_file_entries): Don't call duplicate_class_warning - here. - (process_zip_dir): ... call it here. - * class.c (add_field): Don't mark field external if it is being - compiled into this object. - (make_class_data): Handle situation where class_dtable_decl is - created before Class is compiled. - (is_compiled_class): Don't assume files in zip are compiled into - this object. - (layout_class_method): Don't mark method external if it is being - compiled into this object. - -2006-06-04 Tom Tromey - - * jcf-path.c (jcf_path_compute): New function. - * jcf.h (jcf_path_compute): Declare. - -2006-10-23 Rafael Ávila de Espíndola - - * decl.c: Include langhooks.h. - (builtin_function): Remove. - (java_init_decl_processing): Replace calls to builtin_function - with add_builtin_function. - * Make-lang.in (jc1$(exeext)): Depend on and link with attribs.o. - (java/decl.o): Depend on langhooks.h. - * java-tree.h (builtin_function): Remove. - -2006-10-10 Brooks Moses - - * Make-lang.in: Added "java.pdf", "gcj.pdf" target support. - -2006-09-12 Tom Tromey - - * expr.c (push_value): Always flush quick stack. - -2006-09-12 Tom Tromey - - PR java/29013: - * jcf-write.c (generate_bytecode_insns) : Always note - the push of the called method's return result. - -2006-09-12 Tom Tromey - - * jvspec.c (lang_specific_driver): Read spec file even if - -fsyntax-only. - -2006-09-12 Tom Tromey - - PR java/28754: - * expr.c (expand_java_field_op): Initialize field's declaring - interface if necessary. - -2006-09-12 Tom Tromey - - PR java/28892: - * expr.c (expand_java_field_op): No error for assignments not in - class initializer or constructor. - -2006-08-22 Andrew Haley - - * decl.c (java_add_stmt): Give the statement list a type. - -2006-08-16 Jakub Jelinek - Bryce McKinlay - - * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. - -2006-08-10 Simon Martin - - PR java/8923 - * parse.y (build_incdec): Emit an error instead of an ICE if '++' - or '--' is used with a constant operand. - (java_complete_lhs): When processing a '++' or '--' expression, - don't call java_complete_tree but java_complete_lhs, so that a - static final variable operand is never replaced by its value. This - avoids an ICE later on. - (patch_unaryop): Fixed typo in comment. - -2006-07-28 Volker Reichelt - - * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies. - -2006-07-12 Bryce McKinlay - - * builtins.c (check_for_builtin): If a builtin could result in a - direct call being generated, don't use it if flag_indirect_dispatch - is set. - -2006-07-12 Bryce McKinlay - - * gcj.texi (Invocation): Corrections for Invocation API example. - -2006-07-04 Andrew Haley - - * class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the - entry. - -2006-06-21 Andrew Haley - - * java-tree.h (update_aliases): Remove - * expr.c (expand_iinc): Remove call to update_aliases(). - (STORE_INTERNAL): Likewise. - * decl.c (update_aliases, initialize_local_variable) - (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls. - -2006-06-19 Andrew Haley - - PR java/1305 - PR java/27908 - * expr.c (java_modify_addr_for_volatile): New function. - (expand_java_field_op): Handle volatile fields. - * java-gimplify.c (java_gimplify_component_ref): Call - java_modify_addr_for_volatile to give the field_ref the correct - volatile type. - (java_gimplify_modify_expr): Likewise. - * java-tree.h (java_modify_addr_for_volatile): New decl. - -2006-06-17 Karl Berry - - * gcj.texi (@dircategory): Use "Software development" instead - of "Programming", following the Free Software Directory. - -2006-06-16 Andrew Haley - - * class.c (make_class_data): When using flag_indirect_classes, - don't initialize the vtable of Class instances. - -2006-06-09 Andrew Haley - - PR java/1305 - PR java/27908 - * builtins.c (initialize_builtins): Add __sync_synchronize(). - * class.c (add_field): Mark volatile fields. - * java-gimplify.c (java_gimplify_expr): Call new functions to - handle self-modifying exprs and COMPONENT_REFs. - (java_gimplify_component_ref): New. - (java_gimplify_modify_expr): Add handling for volatiles. - -2006-06-08 Tom Tromey - - * gcj.texi (libgcj Runtime Properties): Document - gnu.gcj.user.realname. - -2006-06-08 Andrew Haley - - * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to - get_symbol_table_index(). - (maybe_rewrite_invocation): Set SPECIAL if we need to access a - private method. - (build_known_method_ref): New arg: special. Pass it to - get_symbol_table_index. - (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of - the method list. - (build_invokevirtual): New arg: special. Pass it to - get_symbol_table_index. - (expand_invoke): New variable: special. - Pass it to maybe_rewrite_invocation(). - Pass it to build_known_method_ref(). - * class.c (build_symbol_entry): Add new arg: special. Use it to - build the symbol table conbstructor. - (emit_symbol_table): Extract SPECIAL from the method list and pass - it to build_symbol_entry(). - * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set - special accordingly. - -2006-06-06 David Daney - - * gcj.texi (libgcj Runtime Properties): Document - gnu.gcj.runtime.NameFinder.show_raw and - gnu.gcj.runtime.NameFinder.remove_unknown. - -2006-06-06 Tom Tromey - - * jcf-dump.c (print_access_flags): Handle varargs, bridge, - synthetic, enum, annotation. - * jcf.h (ACC_BRIDGE): New macro. - (ACC_VARARGS): Likewise. - (ACC_SYNTHETIC): Likewise. - (ACC_ENUM): Likewise. - (ACC_ANNOTATION): Likewise. - -2006-06-06 Mike Stump - - * Make-lang.in: Rename to htmldir to build_htmldir to avoid - installing during build. - -2006-05-31 Thomas Fitzsimmons - - * gcj.texi (Extensions): Document the new gcj-dbtool-based - classname-to-library resolution mechanism. - Declare the old gnu.gcj.runtime.VMClassLoader.library_control - mechanism deprecated. - (libgcj Runtime Properties): Document - gnu.gcj.runtime.VMClassLoader.library_control's new default. - -2006-05-29 Jakub Jelinek - - * javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64) - bit wide type. - (jword): Define to uint64 on 64-bit arches. - * jcf-dump.c (print_constant): Cast JPOOL_UINT to long. - -2006-05-28 Kazu Hirata - - * class.c, except.c, expr.c, java-gimplify.c: Fix comment - typos. - -2006-05-26 Tom Tromey - - * expr.c (java_push_constant_from_pool): Handle 'ldc class'. - * verify-glue.c (vfy_class_type): New function. - * verify-impl.c (check_constant): Allow 'ldc class'. - * verify.h (vfy_class_type): Declare. - -2006-05-25 Andrew Haley - - PR java/27756 - * decl.c (maybe_pushlevels): When variable ranges are non-nested - update all lifetimes, not just the first one. - -2006-05-24 Tom Tromey - - * java-tree.h: Fixed flag documentation. - -2006-05-24 Tom Tromey - - PR libgcj/27729: - * jcf.h (ACC_INVISIBLE): Changed value. - -2006-05-24 Andrew Haley - - PR java/27754 - * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a - COMPOUND_EXPR. - -2006-05-16 H.J. Lu - - * lang.opt (femit-class-file): Remove VarExists. - -2006-05-16 Tom Tromey - - * verify-impl.c (verify_instructions_0) : Special case - for Object.. - -2006-05-16 H.J. Lu - - PR driver/26885 - * Make-lang.in ($(GCJ)$(exeext)): Replace gcc.o with - $(GCC_OBJS). - -2006-05-14 H.J. Lu - - * Make-lang.in (java/decl.o): Add dependency on $(TARGET_H). - (java/expr.o): Replace target.h with $(TARGET_H). - (java/parse.o): Likewise. - -2006-05-10 Andrew Haley - - * class.c (emit_indirect_register_classes): Fix comment. - -2006-05-04 Tom Tromey - - * java-tree.h (uses_jv_markobj_p): Declare. - * class.c (uses_jv_markobj_p): Removed. - * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define. - (get_boehm_type_descriptor): Use it. - (uses_jv_markobj_p): Moved from class.c. Return bool. - -2006-05-04 Tom Tromey - - * java-tree.def (THIS_EXPR): Now a tcc_expression. - -2006-05-04 Andrew Haley - - * class.c (make_field_value): Always build_address_of fdecl if - there is an initializer. - -2006-05-03 Andrew Haley - - PR libgcj/27352 - * expr.c (maybe_rewrite_invocation): New function. - (rewrite_arglist_getclass): Likewise. - (rules): New. - (expand_invoke): Call maybe_rewrite_invocation. - * parse.y (patch_invoke): Likewise. - * java-tree.h: (maybe_rewrite_invocation): New function. - -2006-04-21 Andrew Haley - - * lang.c (java_init): Handle flag_indirect_classes. - * jvgenmain.c: Use "class$$" instead of "class$". - * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as - DECLs. - (mangle_class_field): Special case "class$$" as well as "class$". - * constants.c (build_ref_from_constant_pool): If - flag_indirect_classes, generate a ref into the heap. - * decl.c (constants_field_decl_node, - constants_data_field_decl_node): New. - * class.c (build_static_class_ref): New. - (build_classdollar_field): Factor out from build_class_ref(). - (make_field_value): Handle static fields in heap. - (make_class_data): Make sure we get a static ref to class. - Make class initializer const if flag_indirect_classes. - (register_class): Build a class_ref for initialization if - flag_indirect_classes. - (emit_indirect_register_classes): New. - -2006-04-08 Kazu Hirata - - * expr.c, gjavah.c: Fix comment typos. - -2006-04-03 Andrew Haley - - PR java/26858 - * expr.c (build_field_ref): Don't check the field offset if - flag_syntax_only. - -2006-03-30 Andrew Haley - - PR java/26858 - * lang.c (java_attribute_table): New. - (LANG_HOOKS_ATTRIBUTE_TABLE): Define. - * expr.c (build_field_ref): Add a null pointer check for all - fields of offset > 4k. Don't do so for accesses via the this - pointer, which we know can never be null. - * class.c (build_java_method_type): Mark arg 1 of all nonstatic - methods nonnull. - -2006-03-30 Carlos O'Donell - - * Make-lang.in: Rename docdir to gcc_docdir. - -2006-03-30 Tom Tromey - - PR java/26042: - * parse.y (java_reorder_fields): Reset superclass field's size as - well. - -2006-03-28 Tom Tromey - - PR java/26390: - * parse.y (find_most_specific_methods_list): Added 'class' - argument. - (lookup_method_invoke): Updated. - -2006-03-15 Tom Tromey - - * jcf-write.c (generate_bytecode_insns): Use qualifying type for - non-static method calls. - -2006-03-15 David Daney - - * java-tree.h : Moved comment for TYPE_DOT_CLASS adjacent to its - declaration. - -2006-03-15 David Daney - - * lang.opt (-freduced-reflection): New option. - * lang.c (java_post_options): Generate an error if - -freduced-reflection used with -fjni or -findirect-dispatch. - * java-tree.h (flag_reduced_reflection): Declare new variable. - * boehm.c (get_boehm_type_descriptor): Indicate all pointers - if bitmap overflows and flag_reduced_reflection set. - * class.c (uses_jv_markobj_p): New function. - (make_class_data): Moved generation of vtable to before - reflection data, generate less reflection data if - flag_reduced_reflection set. - * gcj.texi: Document -freduced-reflection. - -2006-03-15 Tom Tromey - - PR java/26638: - * class.c (get_interface_method_index): Don't put into - interface table. - -2006-03-15 Tom Tromey - - * parse.y (analyze_clinit_body): Ignore empty statements. - -2006-03-08 David Daney - - * gcj.texi: Document -static-libgcj option. - -2006-02-20 Andrew Haley - - * jcf-parse.c (parse_class_file): Set input_location from - current_class. - -2006-02-15 Andrew Haley - - * class.c (GEN_TABLE): Don't pushdecl *_SYMS_DECL here. - (make_class_data): pushdecl_top_level TYPE_OTABLE_SYMS_DECL, - TYPE_ATABLE_SYMS_DECL, TYPE_ITABLE_SYMS_DECL here. - -2006-02-09 Andrew Haley - - PR java/26192 - * expr.c (expand_invoke): Allow methods in arrays to be resolved - in their superclass. - - * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for - array types. - -2006-02-08 Tom Tromey - - PR java/22578: - * check-init.c (check_init): Handle VIEW_CONVERT_EXPR. - * builtins.c (convert_real): New function. - (java_builtins): Handle Float.intBitsToFloat, - Float.floatToRawIntBits, Double.longBitsToDouble, - Double.doubleToRawLongBits. - -2006-02-07 Andrew Haley - - * expr.c (expand_invoke): (BC mode.) If we find a method in a - class other than the one in which we expected to find it, ignore - the result. - - PR java/25535 - * constants.c (build_constants_constructor): move initializer into - first halfword on a 64-bit big-endian machine. - -2006-02-04 Tom Tromey - - PR java/25676: - * builtins.c (max_builtin): Skip floating point 'max'. - (min_builtin): Skip floating point 'min'. - (check_for_builtin): Never return NULL_TREE. - -2006-02-04 Tom Tromey - - PR java/26097: - * expr.c (push_type): Avoid side effect in gcc_assert. - -2006-02-04 Roger Sayle - - * decl.c (java_init_decl_processing): Create char_type_node as a - regular INTEGER_TYPE node. - (push_promoted_type): Preserve TYPE_STRING_FLAG on types. - * typeck.c (convert): No longer check for CHAR_TYPEs but instead - test for char_type_node and promoted_char_type_node as special - instances of INTEGER_TYPE tree codes. - (promote_type,build_java_signature): Likewise. - * jcf-write.c (adjust_typed_op): Likewise. - * mangle.c (mangle_type): Likewise. - * parse.y (do_unary_numeric_promotion): No longer handle CHAR_TYPE. - * parse.h (JINTEGRAL_TYPE_P): Likewise. - -2006-02-04 Andreas Tobler - - * expr.c (java_stack_swap): Revert gcc_assert patch. - -2006-02-03 Ben Elliston - - * java-gimplify.c: Use gcc_assert and gcc_unreachable throughout. - * typeck.c: Likewise. - * verify-impl.c: Likewise. - * class.c: Likewise. - * decl.c: Likewise. - * jcf-parse.c: Likewise. - * constants.c: Likewise. - * check-init.c: Likewise. - * jcf-write.c: Likewise. - * verify-glue.c: Likewise. - * mangle.c: Likewise. - * expr.c: Likewise. - * lang.c: Likewise. - * boehm.c: Likewise. - -2006-02-01 Jan Hubicka - - * decl.c (end_java_method): Kill hack disabling unit-at-a-time. - * lang.c (java_init_options): Set no_unit_at_a_time_default. - -2006-01-30 Andrew Haley - - PR java/21428 - * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this"). - -2006-01-21 Joseph S. Myers - - * jv-scan.c (version), jcf-dump.c (version), gjavah.c (version): - Update copyright notice dates. - -2006-01-16 Rafael Ávila de Espíndola - - * jvspec.c (lang_specific_spec_functions): Remove. - -2006-01-06 Tom Tromey - - * gcj.texi (Arrays): Added more documentation for - JvNewObjectArray. - (Primitive types): Correct information about primitive classes. - (Reference types): New node. - (Index): New node. - -2005-12-16 Alexandre Oliva - - * jcf-parse.c (set_source_filename): Set the decl source location - even when returning early. - -2005-12-15 Tom Tromey - Andrew Haley - - PR java/25429 - * parse.y (resolve_expression_name): Don't generate accessor - methods for constant fields. - -2005-12-13 Andrew Haley - - PR java/25366 - PR java/25368 - * class.c (maybe_layout_super_class): Update current_class before - calling do_resolve_class. - -2005-12-12 H.J. Lu - - PR java/25330 - * jcf-write.c (write_classfile): Use PID in temporary class - file. Save/restore errno when reporting error. - -2005-12-10 Terry Laurenzo - - PR java/9861 - * mangle.c (mangle_method_decl): Mangle Java methods by prepending 'J' - to bare_function_type and including the return type - * builtins.c (initialize_builtins) : Change builtin mangled name - constants to conform to new mangling scheme - -2005-12-08 Andrew Haley - - PR libgcj/25265 - * java-tree.h (enum java_tree_index): Add JTI_SOFT_NOSUCHFIELD_NODE. - (soft_abstractmethod_node): New. - * expr.c (build_field_ref): Add in-line check for missing field. - * decl.c (java_init_decl_processing): Add soft_nosuchfield_node. - -2005-12-07 Rafael Ávila de Espíndola - - * Make-lang.in (java.all.build, java.install-normal): Remove. - -2005-12-07 Rafael Ávila de Espíndola - - * Make-lang.in: Remove all dependencies on s-gtype, except for - gt-java-parse.h. - -2005-12-07 Richard Sandiford - - * class.c (build_utf8_ref, emit_register_classes): Use - switch_to_section and get_section. - -2005-12-06 Tom Tromey - - PR java/25283: - * parse.y (patch_new_array_init): Revert previous patch. - (lookup_method_invoke): Use size-less array type when creating an - anonymous constructor. - -2005-12-05 Tom Tromey - - * parse.y (patch_new_array_init): Don't set length on array. - -2005-12-02 Richard Guenther - - * java-gimplify.c (java_gimplify_labeled_block_expr): Use - buildN instead of build. - * class.c (finish_class): Likewise. - * expr.c (java_create_object): Likewise. - -2005-11-28 Tom Tromey - - PR java/18278: - * expr.c (build_jni_stub): Unwrap the return value. - * java-tree.h (soft_unwrapjni_node): New define. - (enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE. - * decl.c (java_init_decl_processing): Initialize - soft_unwrapjni_node. - -2005-11-24 Bryce McKinlay - - * gcj.texi (gij options): Add -Xss documentation. - -2005-11-08 Wil Mahan - - PR java/23617 - * zextract.c (read_zip_archive): Fix out of memory error when - reading jar files with zip-style comments. - -2005-11-07 Terry Laurenzo - - * gjavah.c (HANDLE_CODE_ATTRIBUTE): Only define for ELF Object - formats. - * gjavah.c (decompile_method): Add ATTRIBUTE_UNUSED - -2005-10-12 Nathan Sidwell - Wil Mahan - - PR java/23620 - * class.c (make_class): Create empty binfo here. - (set_super_info): Only create binfo if we have superclasses. - -2005-10-03 Ranjit Mathew - - PR java/24127 - * parse.y (method_header): Make the result of the rule a NULL_TREE - when a parsing error occurs. - -2005-09-29 Tom Tromey - - PR java/24120: - * jcf-io.c (memoized_dirlist_hash): New function. - (caching_stat): Use it. - -2005-09-21 Ranjit Mathew - - PR java/21418 - * class.c (inherits_from_p): Try to lay out super class - if it is not already laid out. - (maybe_layout_super_class): Handle the case where SUPER_CLASS - is a NULL_TREE. - -2005-09-18 James A. Morrison - - * builtins.c (max_builtin, min_builtin, abs_builtin, - java_build_function_call_expr): Use fold_buildN. - * class.c (layout_class_method): Likewise. - * expr.c (java_truthvalue_conversion, build_java_jsr, - build_java_arrayaccess, expand_java_arrayload, expand_iinc, - build_java_binop, build_field_ref, expand_compare, - build_known_method_ref, build_invokevirtual, - process_jvm_instruction): Likewise. - * parse.y (patch_binop, patch_exit_expr): Likewise. - * typeck.c (convert_ieee_real_to_integer): Likewise. - (convert): Don't call fold after convert_ieee_real_to_integer. - -2005-09-14 Bryce McKinlay - - PR java/23891 - * parse.y (maybe_create_class_interface_decl): Set TYPE_PACKAGE for - the newly created type. Set import lists here, not in create_class. - (jdep_resolve_class): Set current_class. - (do_resolve_class): Use current_class's TYPE_PACKAGE to determine - the current package context, not ctxp->package. - (cicp_cache): Removed. - (class_in_current_package): Simplify implementation using TYPE_PACKAGE. - * jcf-parse.c (give_name_to_class): Set TYPE_PACKAGE. - * java-tree.h (TYPE_PACKAGE): New macro. - (struct lang_type): New member 'package'. - -2005-09-09 Andrew Haley - - PR libgcj/23182 - * expr.c (pop_type_0): If the expected type is object or ptr - (i.e. void*), return the type of the object we just popped from - the stack. - -2005-09-06 Andrew Pinski - - * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's - BLOCK_EXPR_BODY before returning the new BIND_EXPR. - -2005-09-06 Kazu Hirata - - * check-init.c, decl.c, expr.c, gcj.texi, java-tree.h, - jcf-parse.c, jcf.h, parse.h, parse.y, typeck.c: Fix comment - typos. Follow spelling conventions. - -2005-09-05 Ranjit Mathew - - PR java/23431 - * typeck.c (lookup_do): Look up interfaces for the original class, - not the base class. - * parse.y (java_check_regular_methods): Fix diagnostic message for - more restrictive overriding of a method from an interface. - -2005-08-16 Tom Tromey - - * class.c (make_class_data): Always emit JV_STATE_PRELOADING for - class' initial state. - -2005-08-16 Ranjit Mathew - - PR java/22113 - * lex.c (do_java_lex): Define MAX_TOKEN_LEN. Avoid overflowing - `literal_token' for large numeric input tokens. - -2005-08-16 Ranjit Mathew - - PR java/19870 - * parse.y (nested_field_access_p): Rename to nested_member_access_p - and expand to handle method accesses across nested classes. - (build_outer_method_access_method): Rename to - build_nested_method_access_method. Minor adjustments to comments. - (resolve_expression_name): Use the newly-renamed - nested_member_access_p method. - (resolve_qualified_expression_name): Likewise. - (patch_method_invocation): Also consider static methods for access - method generation. Minor adjustments to comments. - (maybe_use_access_method): Use the more general - nested_memeber_access_p to determine access across nested class - boundaries. Allow THIS_ARG to be NULL (for static methods). - -2005-08-15 Tom Tromey - - PR java/23300. - * expr.c (build_field_ref): Don't generate otable reference when - DECL_FIELD_OFFSET is 0. - * class.c (maybe_layout_super_class): Pass outer class to - do_resolve_class. - -2005-08-15 Tom Tromey - - * java-tree.h (LABEL_IN_SUBR): Removed. - (LABEL_IN_SUBR): Likewise. - (LABEL_IS_SUBR_START): Likewise. - (LABEL_SUBR_START): Likewise. - (LABEL_SUBR_CONTEXT): Likewise. - (LABEL_CHANGED): Likewise. - (LABEL_RETURN_LABEL): Likewise. - (LABEL_RETURN_TYPE_STATE): Likewise. - (LABEL_RETURN_LABELS): Likewise. - (RETURN_MAP_ADJUSTED): Likewise. - (LABEL_PENDING_CHAIN): Likewise. - -2005-08-15 Tom Tromey - - * Make-lang.in (JAVA_OBJS): Removed verify.o - (java/verify.o): Removed. - * verify.c: Removed. - * lang.c (flag_new_verifier): Removed. - (java_post_options): Updated. - * java-tree.h (flag_new_verifier): Removed. - (verify_jvm_instructions): Removed. - * expr.c (pop_type_0): Assume flag_new_verifier is true. - (build_java_check_indexed_type): Likewise. - (expand_java_arraystore): Likewise. - (expand_java_arrayload): Likewise. - (pop_arguments): Likewise. - (expand_byte_code): Likewise. - (process_jvm_instruction): Likewise. - -2005-08-10 Andrew Haley - - * java-gimplify.c (java_gimplify_modify_expr): Fix any pointer - type mismatches to make legal GIMPLE. - -2005-08-10 Robin Green - - PR java/23230: - * parse.y (maybe_use_access_method): Generalize check from - java.lang.Object to any superclass of current_class - -2005-08-08 Nathan Sidwell - - * class.c (build_class_ref): Wrap the primary class type in a - NOP_EXPR. - * parse.y (java_complete_lhs) : Extract the - primary class type from the NOP_EXPR in which it was placed. - -2005-07-28 Diego Novillo - - * expr.c (expand_load_internal): Fix missing parens in - predicate. - -2005-07-28 Andrew Haley - - * expr.c (expand_load_internal): Convert to destination type. - -2005-07-22 Manfred Hollstein - - * verify-impl.c (check_class_constant): Fix uninitialised warnings. - (check_constant): Likewise. - (check_wide_constant): Likewise. - -2005-07-20 Giovanni Bajo - - Make CONSTRUCTOR use VEC to store initializers. - * check-init.c (check_init): Update to cope with VEC in - CONSTRUCTOR_ELTS. - * class.c (make_field_value, make_method_value, get_dispatch_table, - make_class_data, emit_symbol_table, emit_catch_table, - emit_assertion_table): Use build_constructor_from_list instead of - build_constructor. - * constants.c (build_constants_constructor): Likewise. - * java-gimplify.c (java_gimplify_new_array_init): Update to cope with - VEC in CONSTRUCTOR_ELTS. - * java-tree.h (START_RECORD_CONSTRUCTOR, PUSH_SUPER_VALUE, - PUSH_FIELD_VALUE, FINISH_RECORD_CONSTRUCTOR): Create a VEC instead - of a TREE_LIST. - * jcf-write.c (generate_bytecode_insns): Update to cope with VEC in - CONSTRUCTOR_ELTS. - * parse.y (build_new_array_init): Use build_constructor_from_list - instead of build_constructor. - (patch_new_array_init): Update to cope with VEC in - CONSTRUCTOR_ELTS. - (array_constructor_check_entry): Likewise. - -2005-07-12 Tom Tromey - - * jvspec.c (lang_specific_driver): Put filelist_filename first on - command line. - -2005-07-12 Tom Tromey - - PR java/19674: - * parse-scan.y (interface_member_declaration): Added - empty_statement. - -2005-07-08 Daniel Berlin - - * java-tree.h (LABEL_RETURN_LABELS): Use decl_non_common. - (LABEL_PENDING_CHAIN): Ditto. - (LABEL_PC): Ditto. - (DECL_BIT_INDEX): Ditto. - -2005-07-07 Bryce McKinlay - - PR java/18119 - * parse.y (inner_class_accessible): New function. Logic moved from - check_inner_class_access. - (check_inner_class_access): Use inner_class_accessible. - (resolve_inner_class): Simplify arguments. Create circularity hash - here. Keep looking for classes if we found one that was inaccessible. - Return the inaccessible class only if there is no other match. - (do_resolve_class): Update for new resolve_inner_class arguments. - Don't create circularity_hash here. - -2005-07-07 Bryce McKinlay - - PR java/21045 - * parse.y (add_exception_to_throws): New function. - (purge_unchecked_exceptions): Removed. - (get_constructor_super): Renamed from verify_constructor_super. Now - returns the super constructor after verification. - (java_complete_expand_method): Don't use purge_unchecked_exceptions - or save/restore the exception list. - (check_thrown_exceptions): Add uncaught exceptions in anonymous - class initializers and constructors to the throws clause of the method. - -2005-07-05 Bryce McKinlay - - PR java/19674 - * parse.y (interface_member_declaration): Allow empty statements in - interface declarations. - -2005-07-05 Paolo Bonzini - - * Makefile.in (parse.o): Adjust dependencies. - * parse.y: Include tree-dump.h. - -2005-07-02 Joseph S. Myers - - * class.c, decl.c, expr.c: Use '+' flag instead of %J. Use 'q' - flag for quoting. - -2005-07-01 Andrew Pinski - - * parse.y (issue_warning_error_from_context): Call - pp_output_formatted_text to be able to get the buffer. - -2005-06-30 Andrew Pinski - - * parse.y (issue_warning_error_from_context): Update for the - renaming of pp_format_text to pp_format. - -2005-06-28 Paul Brook - - * decl.c (java_init_decl_processing): Call - default_init_unwind_resume_libfunc. - -2005-06-27 Tom Tromey - - PR java/21540, PR java/13788: - * parse.y (java_complete_lhs) : Use - fold_constant_for_init. - (patch_binop): Added 'folding' argument. Updated all callers. - (patch_unaryop) : New case. - (fold_constant_for_init) : Likewise. - (fold_constant_for_init) : Fix sense of test. - -2005-06-25 Jan Hubicka - - * builtins.c (define_builtin): Accept new flags parameter. - (initialize_builtins): Mark the builtins const and nothrow accordingly. - -2005-06-25 Kelley Cook - - * all files: Update FSF address in copyright headers. - -2005-06-24 Tom Tromey - - * verify-impl.c (verify_instructions_0): Correctly handle - situation where PC falls off end. - -2005-06-23 Bryce McKinlay - - PR java/20697 - * parse.y (find_most_specific_methods_list): Remove special case for - inner classes. - -2005-06-15 Tom Tromey - - PR libgcj/21906: - * class.c (make_method_value): Use soft_abstractmethod_node for - abstract method. - * java-tree.h (soft_abstractmethod_node): New define. - (JTI_SOFT_ABSTRACTMETHOD_NODE): New enum constant. - * decl.c (java_init_decl_processing): Initialize - soft_abstractmethod_node. - -2005-06-13 Geoffrey Keating - - * Make-lang.in (rule for installing gcj.1): Depends on installdirs. - -2005-06-13 Per Bothner - - * expr.c (int highest_label_pc_this_method, - start_label_pc_this_method): New globals. - (lookup_label): Add start_label_pc_this_method to pc for label, and - update highest_label_pc_this_method. This prevents conflicts between - labels from different methods. - * java-tree.h: Declare new globals. - * jcf-parse.c (parse_class_file): If needed bump - start_label_pc_this_method and reset highest_label_pc_this_method. - -2005-06-13 Tom Tromey - - PR java/21844: - * parse.y (nested_field_access_p): Handle case where outer field - is inherited by enclosing class. - -2005-06-12 Per Bothner - - * class.c (inherits_from_p): Do load_class if needed. - -2005-06-09 Kaveh R. Ghazi - - * gjavah.c (error): Add ATTRIBUTE_PRINTF_1. - * java-tree.h (parse_error_context): Move... - * parse.h (parse_error_context): ... here, add ATTRIBUTE_GCC_DIAG. - * parse.y (parse_warning_context): Add ATTRIBUTE_GCC_DIAG. - * verify-impl.c (debug_print): Add ATTRIBUTE_PRINTF_1. - -2005-06-08 Roger Sayle - - * typeck.c (convert): Only clear TREE_OVERFLOW on INTEGER_CST nodes. - -2005-06-06 Jakub Jelinek - - * jv-scan.c (fatal_error, warning, warning0): Use gmsgid instead of - msgid for argument name. - * gjavah.c (error): Likewise. - * java-tree.h (parse_error_context): Likewise. - * parse.y (parse_error_context, parse_warning_context, - issue_warning_error_from_context): Likewise. - -2005-06-01 Tom Tromey - - PR java/21722: - * class.c (build_static_field_ref): Don't fold constant fields if - current class is from a .class file and we're using indirect - dispatch. - -2005-05-31 Kaveh R. Ghazi - - * java/verify-glue.c: Don't include errors.h and include toplev.h. - * java/Make-lang.in: Updates dependencies. - -2005-05-26 Ranjit Mathew - - PR java/19870. - * java-tree.h (OUTER_FIELD_ACCESS_IDENTIFIER_P): Rename to - NESTED_FIELD_ACCESS_IDENTIFIER_P. - (FIELD_INNER_ACCESS): Rename to FIELD_NESTED_ACCESS. - (FIELD_INNER_ACCESS_P): Rename to FIELD_NESTED_ACCESS_P. - * jcf-write.c (generate_classfile): Use - NESTED_FIELD_ACCESS_IDENTIFIER_P instead of - OUTER_FIELD_ACCESS_IDENTIFIER_P. - * parse.y (build_outer_field_access): Rename to - build_nested_field_access. Support static fields and outer-to-inner - class accesses. - (outer_field_access_p): Rename to nested_field_access_p. Support - static fields and generalise to outer-to-inner class and sibling - inner class accesses. - (outer_field_expanded_access_p): Rename to - nested_field_expanded_access_p and support static fields. - (outer_field_access_fix): Rename to nested_field_access_fix and - support static fields. - (build_outer_field_access_expr): Rename to - build_nested_field_access_expr and support static fields. - (build_outer_field_access_methods): Rename to - build_nested_field_access_methods and support static fields. For - static fields, generate accessors without class instance parameters. - (build_outer_field_access_method): Rename to - build_nested_field_access_method and support static fields. - (build_outer_method_access_method): Use - NESTED_FIELD_ACCESS_IDENTIFIER_P instead of - OUTER_FIELD_ACCESS_IDENTIFIER_P. - (resolve_expression_name): Consider static field accesses across - nested classes. - (resolve_qualified_expression_name): Likewise. - (java_complete_lhs): Use nested_field_access_fix instead of - outer_field_access_fix. - (patch_unary_op): Rename outer_field_flag to nested_field_flag. - Use nested_field_expanded_access_p instead of - outer_field_expanded_access_p. Use nested_field_access_fix instead - of outer_field_access_fix. - (check_thrown_exceptions): Use NESTED_FIELD_ACCESS_IDENTIFIER_P - instead of OUTER_FIELD_ACCESS_IDENTIFIER_P. - -2005-05-26 Bryce McKinlay - - * decl.c (GCJ_BINARYCOMPAT_ADDITION, - GCJ_BOOTSTRAP_LOADER_ADDITION): Removed. - (FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER, - MINOR_BINARYCOMPAT_ABI_VERSION): New. - (GCJ_CURRENT_BC_ABI_VERSION): Use new method to calculate version ID. - (parse_version): Calculate version ID using new method. Use bit-flags - for flag_indirect_dispatch and flag_bootstrap_classes. - -2005-05-25 Richard Henderson - - PR libgcj/21692 - * Make-lang.in (java/mangle.o): Depend on LANGHOOKS_DEF_H. - * class.c (build_class_ref): Set DECL_CLASS_FIELD_P and - DECL_CONTEXT; avoid pushdecl_top_level. - (build_dtable_decl): Set DECL_VTABLE_P and DECL_CONTEXT. - (layout_class): Don't SET_DECL_ASSEMBLER_NAME. - (layout_class_method): Likewise. - * decl.c (java_mark_cni_decl_local): New. - (java_mark_class_local): Use it. - * java-tree.h (DECL_LOCAL_CNI_METHOD_P): New. - (DECL_CLASS_FIELD_P, DECL_VTABLE_P): New. - (struct lang_decl_func): Add local_cni; - (struct lang_decl_var): Add class_field, vtable. - (java_mangle_decl): Declare. - * lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New. - * mangle.c: Remove dup obstack.h; include langhooks-def.h. - (mangle_obstack_1): New. - (java_mangle_decl): Remove obstack argument. Call mangle_class_field, - mangle_vtable, and mangle_local_cni_method_decl. Fall back to - lhd_set_decl_assembler_name for things that don't need mangling. - (mangle_class_field): Rename from java_mangle_class_field, make - static, don't call init_mangling or finish_mangling. - (mangle_vtable): Similarly. - (mangle_local_cni_method_decl): New. - (init_mangling): Remove obstack argument. Use &mangle_obstack_1, - gcc_assert, and MANGLE_RAW_STRING. - (finish_mangling): Use gcc_assert, remove if 0 debugging code. - -2005-05-25 DJ Delorie - - * class.c (set_constant_value): Move warning control from if() to - warning(OPT_*). - -2005-05-24 Richard Henderson - - * builtins.c (define_builtin): Don't call make_decl_rtl. - * constants.c (build_constant_data_ref): Likewise. - * class.c (build_utf8_ref): Likewise. - (build_fieldref_cache_entry, build_static_field_ref): Likewise. - (get_dispatch_table, layout_class_method): Likewise. - (build_class_ref): Likewise. Don't set DECL_SIZE or DECL_SIZE_UNIT - by hand. - (make_local_function_alias): Don't SET_DECL_ASSEMBLER_NAME. - (make_method_value): Use METHOD_ABSTRACT instead of DECL_RTL_SET_P - to determine if we need a non-zero address. - * decl.c (builtin_function): Don't call make_decl_rtl. - (give_name_to_locals): Don't SET_DECL_ASSEMBLER_NAME. - * expr.c (build_known_method_ref): Don't call make_decl_rtl. - * resource.c (compile_resource_data): Likewise. - * parse.y (resolve_field_access): Re-word comment to avoid - building DECL_RTL. - -2005-05-24 Richard Henderson - - * class.c (registered_class): Take it out of class_roots; turn into - a vec of trees. - (register_class): Make static. Don't duplicate decl node. Use - VEC_safe_push. - (emit_register_classes): Use VEC_iterate. Use output_constant - instead of assemble_integer. Don't call mark_decl_referenced - directly. - * java-tree.h (register_class): Remove decl. - -2005-05-19 Paolo Bonzini - - PR java/17845 - - * parse.y (register_package, package_list): Remove. - (package_declaration): Do not call register_package. - (do_resolve_class): Do not use package_list. - -2005-05-15 Gerald Pfeifer - - * jcf-write.c (generate_bytecode_insns) : Remove - unused variable. - -2005-05-15 Tom Tromey - - PR java/21519: - * jcf-write.c (generate_bytecode_insns) : Don't call - NOTE_PUSH. - -2005-05-12 Aaron Luchko - - * gcj.texi: Add '-verify', '-noverify', and '-verifyremote'. - -2005-05-11 Tom Tromey - - * gcj.texi (Code Generation): Document -fbootstrap-classes. - * decl.c (GCJ_BOOTSTRAP_LOADER_ADDITION): New macro. - (parse_version): Use it. - * lang.opt (-fbootstrap-classes): New option. - -2005-05-10 Paolo Bonzini - - PR java/21436 - * class.c (maybe_layout_super_class): Look for imports in this_class. - * parse.h (ctxp_for_generation_last): New. - (do_resolve_class): Add a parameter. - * parse.y (ctxp_for_generation_last): New. - (java_pop_parser_context): Add at end of list. - (find_in_imports, find_in_imports_on_demand): Look in ctxp - if the TYPE_IMPORT_LIST or respectively the TYPE_IMPORT_DEMAND_LIST of - the given type are NULL. - (do_resolve_class): Look into the imports of the new second parameter. - Adjust recursive calls. - (resolve_class, resolve_inner_class, find_as_inner_class): Adjust - calls to do_resolve_class. - (create_class): Set the TYPE_IMPORT_LIST and TYPE_IMPORT_DEMAND_LIST. - (java_complete_class): Do not do that here. - -2005-05-03 Thomas Fitzsimmons - - PR java/20309 - * Make-lang.in (java): Add gjnih. - (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. - (GJNIH_OBJS): New variable. - (gjnih$(exeext)): New target. - (JAVA_MANFILES): Add gjnih.1. - (java.uninstall): Add gjnih.1. - (java.mostlyclean): Add gjnih. - (java.maintainer-clean): Add gjnih.1. - (java/gjavah-jni.o): New target. - (.INTERMEDIATE): Add gjnih.pod. - (gjnih.pod): New target. - * config-lang.in (stagestuff): Add gjnih. - * gcj.texi (Top): Add gjnih node. - (Invoking gcjh): Add descriptions of -force, -old, -trace, -J and - -bootclasspath options. - (Invoking gjnih): New node. - * gjavah.c Initialize flag_jni to 1 if JNI_DEFAULT is defined. - (TOOLNAME): New macro. - (error): Replace hard-coded gcjh with TOOLNAME. - (process_file): Likewise. - (usage): Likewise. - (version): Likewise. - (help): Likewise. Add help output for -force, -old, -trace and -J - options. - (OPT_FORCE, OPT_OLD, OPT_TRACE): New macros. - (options): Add force, old, trace and J fields. - (main): Handle -force, -old, -trace and -J options. - -2005-05-03 Tom Tromey - - PR java/21245: - * gjavah.c (main): Unlink output file on error. - -2005-05-03 Kazu Hirata - - * constants.c, jvgenmain.c, lang.opt, resource.c: Update - copyright. - -2005-04-29 Tom Tromey - - * expr.c (build_jni_stub): Updated for change to build_block. - -2005-04-29 Andrew Pinski - - * expr.c (force_evaluation_order): Declare 'saved' earlier. - -2005-04-28 Andrew Haley - - PR java/19285 - * java-tree.h (soft_resolvepoolentry_node): New. - (alloc_constant_fieldref): Declare. - * expr.c (expand_java_field_op): Don't call class_init for - accesses to static fields with indirect dispatch. - * builtins.c (initialize_builtins): Add "__builtin_expect". - * decl.c (soft_resolvepoolentry_node): New variable. - (java_init_decl_processing): Create a decl for - "_Jv_ResolvePoolEntry". - * class.c (build_fieldref_cache_entry): New function. - (build_static_field_ref): Rewrite for indirect dispatch. - * constants.c (find_name_and_type_constant_tree): New function. - (alloc_constant_fieldref): Likewise. - (build_constants_constructor): Handle CONSTANT_Fieldref and - CONSTANT_NameAndType. - - PR java/21115 - * expr.c (force_evaluation_order): Convert outgoing args smaller - than integer. - -2005-04-27 Bryce McKinlay - - * gcj.texi (libgcj Runtime Properties): Remove obsolete - gnu.gcj.runtime.NameFinder.* system properties. Update documentation - for gnu.gcj.runtime.NameFinder.use_addr2line and gnu.gcj.progname. - -2005-04-25 Kaveh R. Ghazi - - * gjavah.c, jcf-dump.c, jv-scan.c, jvgenmain.c: Replace calls - to `unlock_stream' with `unlock_std_streams'. - -2005-04-25 Jakub Jelinek - - * Make-lang.in (java/decl.o, java/resource.o): Depend on $(EXPR_H) - instead of just expr.h. - -2005-04-24 Kaveh R. Ghazi - - * gjavah.c (main): Unlock the stdio streams. - * jcf-dump.c (main): Likewise. - * jv-scan.c (main): Likewise. - * jvgenmain.c (main): Likewise. - -2005-04-23 DJ Delorie - - * class.c, decl.c, expr.c, jcf-io.c, jcf-parse.c, jv-scan.c, - parse.y: Adjust warning() callers. - -2005-04-21 Bryce McKinlay - - * gcj.texi (Object fields): Change "Integer" to "Int" in example - contructor. - -2005-04-20 Bryce McKinlay - - * gcj.texi: Fix typos and bogus example. - -2005-04-19 Kazu Hirata - - * except.c: Fix a comment typo. - -2005-04-19 Julian Brown - - * decl.c (finish_method): Revert patch from 2005-04-13 for breaking - indirect dispatch with PIC. - -2005-04-18 Andrew Haley - - * java-except.h (struct eh_range.handler): Remove unused field. - (handle_nested_ranges): Remove function declaration. - (sanity_check_exception_range): Add function declaration. - * verify.c (verify_jvm_instructions): Remove call to - handle_nested_ranges. - * verify-glue.c (verify_jvm_instructions_new): Call - sanity_check_exception_range. - * except.c (link_handler, eh_range_freelist, link_handler, - handle_nested_ranges): Remove. - (add_handler): Rewrite. - (sanity_check_exception_range): New function. - (print_ranges): New function. - -2005-04-13 Julian Brown - - * decl.c (finish_method): Give methods once-only linkage. - -2005-04-11 Richard Sandiford - - * lang.opt: Refer to the GCC internals documentation instead of c.opt. - -2005-04-07 Kaveh R. Ghazi - - * java-tree.h: Don't use PARAMS(). - -2005-04-07 Per Bothner - - * class.c (push_class): By default, suppress debug output. - (finish_class): Enable debug output for classes we're emitting. - -2005-04-07 Andrew Haley - - * gcj.texi: Correct gcj-dbtool instructions. - -2005-04-04 Kazu Hirata - - * gcj.texi: Fix a typo. - * lang.c: Fix a comment typo. - -2005-04-01 Thomas Fitzsimmons - - * gcj.texi (Invoking gij): Add descriptions of new -X options. - Mention recognized-and-ignored compatibility options. - (Memory allocation): Add descriptions of JvMalloc, JvRealloc and - JvFree. - (About CNI): Add Memory allocation section. - -2005-04-01 Tom Tromey - - * decl.c (java_init_decl_processing): Fix types of - _Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject, - _Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray, - _Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ. - -2005-03-31 Jan Hubicka - - * Make-lang.in (class.o, decl.o): Depend on cgraph.h. - * class.c: Include cgraph.h - (make_local_functoin_alias): Mark aslias as needed. - * resource.c: Include cgraph.h - (compile_resource_data): Go via cgraph interface. - -2005-03-30 Ian Lance Taylor - - * parse.y (maybe_yank_clinit): Don't crash if bbody is NULL. - -2005-03-30 Tom Tromey - - * jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where - inner_class_info_index==0 or outer_class_info_index==0. - -2005-03-29 Tom Tromey - - * gcj.texi (libgcj Runtime Properties): Document - gnu.gcj.runtime.endorsed.dirs. - -2005-03-24 Anthony Green - - * gcj.texi (Invoking gcj-dbtool): Document new LIBDIR option to - 'gcj-dbtool -p'. - -2005-03-23 Tom Tromey - - * decl.c (GCJ_CURRENT_BC_ABI_VERSION): New define. - (parse_version): Use it. - -2005-03-23 Joseph S. Myers - - * lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove. - -2005-03-18 Andrew Haley - - PR java/20522 - * decl.c (update_aliases): Don't update variables that are about - to die. - (maybe_poplevels): Add comment. - -2005-03-17 Bryce McKinlay - - PR java/20502 - * jcf-parse.c (duplicate_class_warning): New function. - (java_parse_file): Call duplicate_class_warning if - CLASS_FROM_CURRENTLY_COMPILED_P is already set. - (parse_zip_file_entries): Likewise. Also set - CLASS_FROM_CURRENTLY_COMPILED_P. - -2005-03-16 Andrew Haley - - * expr.c (expand_java_arrayload): Don't generate a - NullPointerException based on the type of the node. - (build_java_array_length_access): Likewise. - -2005-03-15 Zack Weinberg - - * Make-lang.in (TEXI_JAVA_FILES): Add gcc-vers.texi. - -2005-03-11 Tom Tromey - - * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. - (libgcj Runtime Properties): Document the default .db. - -2005-03-10 Ranjit Mathew - - PR java/20312 - * parse.y (checks_throws_clauses): Check exceptions list even when - the base class does not come from a source file being compiled. - (java_complete_lhs): Remove unused variable 'wfl'. - -2005-03-09 Ranjit Mathew - - PR java/20338 - * decl.c (finish_method): Emit _Jv_InitClass for private static - methods inside inner classes as well. - -2005-03-08 Julian Brown - * Revert patch from 2005-03-08 for causing bootstrap failure on - ppc-darwin. - -2005-03-08 Julian Brown - - * decl.c (finish_method): Give methods once-only linkage. - -2005-03-07 Ranjit Mathew - - * lang.c (flag_new_verifier): Enable by default, regardless of ABI. - -2005-03-07 Bryce McKinlay - - * verify-glue.c (vfy_is_assignable_from): Perform static check using - can_widen_reference_to if the C++ ABI is in use. - (vfy_get_interface_count, vfy_get_interface): Remove unused functions. - * verify-impl.c (debug_print, make_utf8_const, init_type, copy_type, - type_isresolved, init_state, set_pc, state_get_pc, - _Jv_BytecodeVerifier): Clean up unused and disabled functions. - (verify_fail): Report the current PC from the verifier context. - (free_state): Remove #if 0 block to enable this function. - (free_verifier_context): Call free_state on state_list iterator - values before freeing them. - * expr.c (pop_type_0): Pop correct type for error message when stack - contains a multi-word type. - -2005-03-07 Ranjit Mathew - - * expr.c (build_java_array_length_access): Remove !flag_new_verifier - for known NULL array length access. - -2005-03-07 Tom Tromey - - * gcj.texi (Invoking gcj-dbtool): Document '-f'. - -2005-03-06 Kazu Hirata - - * jcf-dump.c, jcf-io.c, jcf-reader.c, lang.c, parse.h, - typeck.c: Update copyright. - -2005-03-06 Ranjit Mathew - - Remove xref code. - * xref.c, xref.h: Remove file. - * Make-lang.in (java/xref.o): Remove. - * java-tree.h (flag_emit_xref, do_not_fold): Remove declaration. - * lang.c (flag_emit_xref): Remove definition. - * parse.h (DECL_END_SOURCE_LINE, DECL_INHERITED_SOURCE_LINE): Remove. - * typeck.c (convert): Remove use of do_not_fold. - * parse.y (do_not_fold): Remove definition. - (parser grammar): Remove xref code. - (maybe_create_class_interface_decl, create_class): Likewise. - (register_fields, method_header, finish_method_declaration): Likewise. - (declare_local_variables, source_end_java_method): Likewise. - (java_complete_expand_classes): Do not set do_not_fold. - (java_complete_expand_method): Remove xref code. - (java_expand_classes, resolve_field_access, patch_invoke): Likewise. - (java_complete_tree, java_complete_lhs, patch_assignment): Likewise. - (patch_binop, build_string_concatenation, patch_array_ref): Likewise. - (patch_synchronized_statement, patch_throw_statement): Likewise. - (maybe_build_class_init_for_field): Likewise. - -2005-03-05 Kazu Hirata - - * expr.c (build_expr_wfl, expr_add_location): Use TYPE_P - instead of IS_NON_TYPE_CODE_CLASS. - -2005-03-04 Andrew Haley - - PR java/18362 - * class.c (set_method_index): Don't set method_index if it is - NULL_TREE. - (layout_class_method): Don't complain about "non-static method foo - overrides static method" in the case of indirect dispatch. - -2005-03-02 Kaveh R. Ghazi - - * jcf-io.c (caching_stat): Use __extension__ to avoid pedantic - warning. - * Make-lang.in: Don't elide warnings in jcf-io.c. - -2005-03-01 Per Bothner - - PR java/8608 - * check-init.c (wfl): Remove static. - (final_assign_error, check_init): Replace calls to parse_error_context - by plain error. - (check_init): Save, set, and restore input_location for each exp. - -2005-03-01 Per Bothner - - * jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) - if HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE is defined. - * jcf-dump.c (HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE): Print contents. - -2005-03-01 Per Bothner - - * java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro. - -2005-02-23 Thomas Fitzsimmons - - PR libgcj/16923 - * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and - JvVMOption. - -2005-02-22 Tom Tromey - - PR java/20056: - * verify-impl.c (EITHER): New define. - (types_compatible): Handle it. - (check_field_constant): Use it. - -2005-02-18 Tom Tromey - - PR java/20056: - * verify-impl.c (types_equal): Fixed test. - - PR java/20056: - * verify-glue.c (vfy_class_has_field): New function. - * verify.h (vfy_class_has_field): Declare. - * verify-impl.c (check_field_constant): Added 'putfield' - argument. - (verify_instructions_0): Updated. - (types_equal): New function. - -2005-02-14 Tom Tromey - - PR java/19921: - * jcf-write.c (generate_bytecode_insns) : Note the - stack effect of multianewarray. - -2005-02-14 Andrew Haley - - PR java/19907 - * expr.c (expand_byte_code): Call promote_arguments(). - (promote_arguments): New function. - * decl.c (check_local_unnamed_variable): Remove special case for - new verifier. - (find_local_variable): Promote all boolean types to int - when searching for local variable decls. - -2005-02-12 Kazu Hirata - - * builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c, - parse-scan.y: Update copyright. - -2005-02-11 Per Bothner - - PR java/15543 - * parse-scan.y (input_location): Remove variable. - (main_input_filename): New - replaces input_filename, which isn't - settable if USE_MAPPED_LOCATION. - * lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE, - so we don't reference input_location or wfl_operator in that case. - * jv-scan.c (expand_location): Remove - no longer used. - (main): Set main_input_filename rather than input_filename. - -2005-02-09 Richard Henderson - - * builtins.c (initialize_builtins): Call build_common_builtin_nodes. - * decl.c (java_init_decl_processing): Initialize const_ptr_type_node. - -2005-02-08 Marcin Dalecki - - * expr.c (add_type_assertion): Use the proper enumeration type, - since this is what htab_find_slot() is expecting. - -2005-02-06 Joseph S. Myers - - * gcj.texi: Update copyright dates. - -2005-02-02 Tom Tromey - - * gcj.texi (libgcj Runtime Properties): Default library_control - to 'cache'. - -2005-02-02 Ranjit Mathew - - PR java/15543 - * parse-scan.y (formal_parameter): Use $2 (type) instead of $$ - (modifiers) when square brackets are present in a declaration for - a final paramter. - * jv-scan.c (main): Set input_filename and input_line. - -2005-02-01 Tom Tromey - - PR java/19742: - * gjavah.c (get_field_name): Don't override name for JNI header. - -2005-02-01 Roger Sayle - - * jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR - of unsigned types using iushr and lushr JVM bytecodes. - -2005-02-01 Ranjit Mathew - - PR java/19738 - * gjavah.c (jni_print_float): Do not emit floating-point - initialiser for a static final field. - (jni_print_double): Likewise. - -2005-02-01 Mark Mitchell - - Revert: - 2005-01-31 Mark Mitchell - * gjavah.c (print_field_info): Mark static data members of - floating-point type with "__extension__". - -2005-01-31 Mark Mitchell - - * gjavah.c (print_field_info): Mark static data members of - floating-point type with "__extension__". - -2005-02-01 Ranjit Mathew - - PR java/9157 - * parse.y (build_string_concatenation): Remove redundant if. - (patch_conditional_expr): Attempt to patch_string() the condition - of a ?: as well, in addition to its other operands. - -2005-01-25 Tom Tromey - - * Make-lang.in (java/java-tree-inline.o): Removed. - -2005-01-25 Ranjit Mathew - - PR java/19070 - * parse.y (patch_binop): Allow comparisons against NULL only - if the other operand is of a reference type. - -2005-01-24 Tom Tromey - - * java-tree.h (gcj_abi_version): Declare. - * class.c (make_class_data): Push gcj_abi_version into "next" - field. Renamed field. - * decl.c (gcj_abi_version): New global. - (parse_version): New function. - (java_init_decl_processing): Call it. Renamed 'next' field. - Include version.h. - (GCJ_BINARYCOMPAT_ADDITION): New define. - -2005-01-24 Roger Sayle - - PR java/19295 - * jcf-write.c (generate_bytecode_insns): Conversions between - integer types of the same precision shouldn't generate widening - or narrowing conversion bytecodes. - -2005-01-22 Kazu Hirata - - * java-except.h, java-tree.h: Remove unused prototypes. - -2005-01-20 Andrew Pinski - - PR java/18091: - * jcf-write.c (perform_relocations): Don't call memcpy if source - and destination are the same. - -2005-01-17 Tom Tromey - - * verify-impl.c (get_short): Sign extend. - (get_int): Likewise. - -2005-01-12 Ranjit Mathew - - * expr.c (build_jni_stub): Replace mistaken use of TYPE_SIZE_UNIT - with TYPE_SIZE. - -2005-01-10 Ranjit Mathew - - * verify.c: Revert to the version before the BC-ABI merge. - -2005-01-10 Ranjit Mathew - - PR java/19277 - * check-init.c (check_init): Take care of references that do not - have an explicit final variable declaration (e.g. array length - access) for pre/post in/de-crement operators. - -2005-01-08 Mark Wielaard - - * parse.y (process_imports): Allocate (and free) original_name only - when not already defined. - * jcf-parse.c (read_class): Free results of find_class() and - lrealpath(). - (java_parse_file): Keep pointer to head of file_list and free when - done. Free result of lrealpath(). - -2005-01-05 Tom Tromey - - * gcj.texi (Standard Properties): java.ext.dirs is now used. - -2004-12-20 Andrew Haley - - * typeck.c: Use fold_convert for ints and booleans. - -2004-12-17 Andrew Haley - - PR java/18931 - * typeck.c (convert): Use a CONVERT_EXPR when converting to - BOOLEAN_TYPE or CHAR_TYPE. - (convert_to_boolean, convert_to_char) : Remove. - * convert.h (convert_to_boolean, convert_to_char) : Remove. - * expr.c (expand_load_internal): Do type conversion if type is not - as required. - -2004-12-13 Danny Smith - - PR target/18459 - * class.c (emit_register_classes): Use TARGET_USE_JCR_SECTION. - Update comment. - -2004-12-07 Andrew Haley - - PR java/18811: - * jcf-parse.c (load_class): Remove sanity test for missing inner - class file. - -2004-12-06 Tom Tromey - - * Make-lang.in (JAVA_MANFILES): Added gcj-dbtool. - (java.uninstall): Likewise. - (java.maintainer-clean): Likewise. - (.INTERMEDIATE): Likewise. - (java.install-man): Likewise. - (gcj-dbtool.pod): New target. - * gcj.texi (Code Generation): Document -findirect-dispatch. - (libgcj Runtime Properties): Document - gnu.gcj.precompiled.db.path. - (Top): Link to "Invoking gcj-dbtool". - -2004-12-06 Tom Tromey - - PR java/14853: - * java-tree.h (extract_field_decl): Declare. - * parse.y (extract_field_decl): Renamed from - strip_out_static_field_access_decl. No longer static. - * check-init.c (get_variable_decl): Unwrap COMPOUND_EXPRs. - -2004-12-03 Tom Tromey - - * lang.c (flag_new_verifier): Define. - (java_post_options): Set flag_new_verifier if indirect dispatch - is being used. - * lang.opt (fnew-verifier): Removed. - -2004-12-03 Tom Tromey - - PR bootstrap/14614: - * Make-lang.in (java.install-common): Only install transformed - gcjh if gcj-cross exists. - -2004-12-03 Andrew Haley - - PR java/18812 - * except.c (link_handler): Patch 'outer' field of siblings of the - range we're demoting. - -2004-12-03 Andrew Haley - - PR java/18697 - * class.c (layout_class_method): Don't fail to override a method - simply because it has DECL_ARTIFICIAL set. - -2004-12-02 Tom Tromey - - PR java/16675: - * parse.y (craft_constructor): Special case null_pointer_node. - -2004-12-02 Tom Tromey - - PR java/18741: - * java-gimplify.c (java_gimplify_expr): Don't call - SET_EXPR_LOCATION unless wrapped tree is an expression. - -2004-11-27 Per Bothner - - * jcf-parse.c (set_source_filename): Improvement to Andrew's fix: - Fix fencepost error in 'i', which got executed one too many times. - Also, fold memcpy into explicit loop, as originally intended. - Also, free temporary 'buf' which otherwise leaks. - -2004-11-27 Per Bothner - - * expr.c (build_expr_wfl): Only declare last_file and last_filenode - local static variables if not USE_MAPPED_LOCATION. - -2004-11-27 Kazu Hirata - - * class.c, decl.c, expr.c: Fix comment typos. - -2004-11-26 Andrew Pinski - - PR java/18305 - * decl.c (end_java_method): Call - attach_init_test_initialization_flags on all the init_decls. - * parse.y (attach_init_test_initialization_flags): Move to ... - * expr.c (attach_init_test_initialization_flags): here and - support BIND_EXPR also. - * java-tree.h (attach_init_test_initialization_flags): Prototype. - * jcf-parse.c (parse_class_file): Don't disable class init - optimization. - -2004-11-25 Joseph S. Myers - - * gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote - in diagnostics. - -2004-11-24 Richard Henderson - - * verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type, - vfy_string_type, vfy_throwable_type): Use ANSI declaration form. - -2004-11-24 Tom Tromey - - * verify.c (defer_merging): Don't use C++-style comment. - * verify.h (java_opcode): Added java_opcode_end. - * class.c (build_class_ref): Remove C++ comment and old FIXME. - - * verify-impl.c (vfy_push_type): Removed bogus "return". - (initialize_stack): Use vfy_alloc and vfy_free. - (verify_instructions_0): Likewise. - - * Merged gcj-abi-2-dev-branch to trunk. - -2004-11-24 Andrew Haley - - * jcf-parse.c (parse_class_file): Set file_start_location. - -2004-11-10 Tom Tromey - - * class.c (make_field_value): Don't call build_static_field_ref. - (build_static_field_ref): Don't emit direct references when using - indirect dispatch. - - * gcj.texi (Invoking gij): Document -verbose. Put -verbose and - -verbose:class into man page synopsis. - -2004-11-09 Tom Tromey - - * expr.c (build_java_arraystore_check): Still generate check if - element type is itself an array. - -2004-11-08 Tom Tromey - - * java-tree.h (soft_check_assignment_node): Removed. - (enum java_tree_index): Removed JTI_SOFT_CHECK_ASSIGNMENT_NODE. - * decl.c (java_init_decl_processing): Don't initialize - soft_check_assignment_node. - -2004-11-05 Tom Tromey - - * class.c (layout_class_methods): Don't add Miranda methods when - using indirect dispatch. - -2004-11-05 Bryce McKinlay - - * class.c (make_class_data): Call emit_assertion_table to set the - 'assertion_table' field. - (build_signature_for_libgcj): Move here from expr.c. - (add_assertion_table_entry): New function. Callback for assertion - hashtable traversal. - (emit_assertion_table): New. Take class argument, and generate - assertion table DECL based on the TYPE_ASSERTIONS hashtable. - * decl.c (init_decl_processing): Define assertion_entry_type record. - Push 'assertion_table' class field instead of 'verify'. - * expr.c (type_assertion_eq): Compare 'assertion_code' field. - (type_assertion_hash): Include 'assertion_code' in hash. - (add_type_assertion): Rewritten. Take class and assertion_code - arguments. Add assertions to the TYPE_ASSERTIONS hashtable. - (can_widen_reference_to): Use new add_type_assertion() arguments. - * java-tree.h (java_tree_index): Add JTI_ASSERTION_ENTRY_TYPE, - JTI_ASSERTION_TABLE_TYPE. Remove JTI_VERIFY_IDENTIFIER_NODE. - (verify_identifier_node): Removed. - (assertion_entry_type, assertion_table_type): New. - (ASSERTION_TYPES_COMPATIBLE, ASSERTION_IS_INSTANTIABLE): New. Type - assertion code definitions. - (struct type_assertion): Add assertion_code. Rename 'source_type' and - 'target_type' to 'op1' and 'op2'. - (add_type_assertion): Declare. - (lang_printable_name_wls): Remove unused definition. - * verify-glue.c: (vfy_is_assignable_from): New. Call add_type_assertion - to emit runtime assertion. - (vfy_note_stack_type): Clean up non-C90 declarations. - (vfy_note_local_type): Likewise. - * verify.h (vfy_is_assignable_from): Declare. - * verify-impl.c (is_assignable_from_slow): Remove unused function. - (ref_compatible): Rename arguments. Call vfy_is_assignable_from() - instead of is_assignable_from_slow(). - (types_compatible): Reinstate ref_compatible() call. - -2004-11-04 Tom Tromey - - * class.c (build_static_field_ref): Reverted previous patch. - - * class.c (build_static_field_ref): Don't emit direct references - when using indirect dispatch. - -2004-11-03 Tom Tromey - - * expr.c (expand_java_arrayload): Set lhs_type_node. - (expand_java_arraystore): Set rhs_type_node. - -2004-11-02 Tom Tromey - - * jcf-parse.c (compute_class_name): Use filename length from zip - directory, not strlen. - - * expr.c (expand_invoke): Mark new interface methods as abstract. - -2004-11-01 Tom Tromey - - * verify-impl.c (push_jump): Removed check for uninitialized - objects. - (push_exception_jump): Likewise. - (handle_ret_insn): Likewise. - (handle_jsr_insn): Likewise. - (state_check_no_uninitialized_objects): Removed. - - * decl.c (check_local_unnamed_variable): Recognize - promoted-to-int parameters when using the new verifier. - * expr.c (expand_java_arraystore): Explicitly request array type - when using new verifier. - (expand_java_arrayload): Likewise. - (invoke_build_dtable): Don't pass object_type_node as - expression argument to build_java_indirect_ref. - (build_java_check_indexed_type): Do nothing. - (build_java_arraystore_check): Handle case where array doesn't - have array type. - (build_java_array_length_access): Likewise. - (expand_invoke): Handle case where interface overrides a method - from Object. - (pop_type_0): Always succeed for reference types. - (process_jvm_instruction): Don't pop a value in a dead - exception handler. - (pop_arguments): Convert arguments to correct types. - -2004-10-29 Andrew Haley - - * jcf-parse.c (give_name_to_class): Remove line that was - incorrectly merged. - -2004-10-29 Andrew Haley - - * jcf-parse.c (set_source_filename): Add code to build new sfname. - -2004-10-20 Andrew Haley - - * decl.c (end_java_method): Don't expand if flag_syntax_only. - -2004-10-26 Tom Tromey - - * verify.h (vfy_notify_verified): Removed. - * verify-glue.c (vfy_notify_verified): Removed. - -2004-10-26 Tom Tromey - - * verify-impl.c (debug_print_state): Declare `i' before code. - (merge_types): Modify `t' when it is null_type. - -2004-10-26 Tom Tromey - - * verify-impl.c (type_print): Renamed from print. Now static and - takes an argument. - (debug_print_state): Use type_print. - -2004-10-25 Tom Tromey - - * expr.c (build_invokeinterface): Compute correct offset for - index into interface methods. - -2004-10-20 Tom Tromey - - * java-tree.h (verify_jvm_instructions_new): Declare. - - * jvspec.c (jvgenmain_spec): Remove -fnew-verifier from cc1 - command line. - - * verify-impl.c (verify_instructions): Correctly handle wide - types on the stack. - * verify-glue.c (vfy_get_class_name): Use DECL_NAME. - (vfy_get_component_type): Strip pointer types. - (vfy_find_class): Use get_type_from_signature. Strip pointer - types. - Include java-except.h. - -2004-10-20 Bryce McKinlay - - * verify-impl.c (type_array_elementpop_raw, vfy_pop_type_t, - vfy_push_type_t, set_variable, add_new_state, merge_into, - handle_jsr_insn, branch_prepass, check_class_constant, - check_wide_constant, get_one_type, compute_static_types, - verify_instructions_0): Clean up C99 declarations after statements. - -2004-10-20 Tom Tromey - - * verify-impl.c (merge_refs): Compare reference against iterator, - not ref2. - - * verify-glue.c (vfy_tag): Mask off resolved flag. - -2004-10-19 Tom Tromey - - * verify-impl.c (verify_instructions): Call vfy_note_local_type. - (init_state_with_stack): Initialize `this_type' in state. - (verify_method): Use debug_print. - * verify-glue.c (vfy_is_primitive): Removed debugging print. - (vfy_note_stack_depth): Reverted last patch. - (vfy_note_stack_type): Note pointer to Object, not Object. - (vfy_note_local_type): Likewise. - - * verify.h (vfy_note_instruction_seen): Declare. - * verify-glue.c (verify_jvm_instructions_new): Set - BCODE_EXCEPTION_TARGET on target instruction. - (vfy_note_instruction_seen): New function. - * verify-impl.c (FLAG_INSN_SEEN): New define. - (verify_instructions_0): Set flag on instruction. Save state for - PC=0 later. - (verify_instructions): Call vfy_note_instruction_seen. - - * verify-glue.c (vfy_note_stack_depth): Fix off-by-one error. - (verify_jvm_instructions_new): Call method_init_exceptions, - add_handler, and handle_nested_ranges. - * verify-impl.c (verify_method): Return 1 on success. - (verify_instructions_0): Save the state at PC=0. - - * verify-impl.c (init_type_from_class): Set is_resolved and - ref_next on new ref_intersection. - (init_type_from_string): Likewise. - -2004-10-15 Bryce McKinlay - - * expr.c (expand_bytecode): Use verify_jvm_instructions_new - if flag_new_verifier is set. - * java-tree.h (flag_new_verifier): Declare. - * lang.opt (fnew-verifier): New option. - * verify-impl.c: Work around namespace pollution by undef'ing - 'current_class'. - (struct verifier_context): Make 'bytecode' const. - (verify_fail_pc): Pass -1 PC argument to vfy_fail. - (types_compatible): For the BC-ABI, always consider reference types - compatible. - (check_class_constant): Use vfr->current_class. - (check_constant): Likewise. - (check_wide_constant): Likewise. - (check_field_constant): Check for 'L' at start of type name. - (get_one_type): Return pointer instead of type. Set type result in - caller via passed type pointer. - (compute_argument_types): Update to use new get_one_type arguments. - (compute_return_type): Likewise. - (make_verifier_context): New. Allocate and initialize 'vfr'. - (free_verifier_context): New. Free 'vfr' and its contents. - (verify_method): Remove ATTRIBUTE_UNUSED. Call make_verifier_context - and free_verifier_context. - -2004-10-15 Tom Tromey - - * verify-glue.c (vfy_note_local_type): Mark argument as unused. - * verify.h (vfy_fail): Fixed formatting. - - * verify-impl.c (vfr): Fixed comment formatting. - (collapse_type): New function. - (verify_instructions): Notify compiler about type map. - * verify.h (vfy_note_stack_depth): Updated. - (vfy_note_stack_type): Likewise. - (vfy_note_local_type): Likewise. - (vfy_unsuitable_type, vfy_return_address_type, vfy_null_type): - Declare. - * verify-glue.c (vfy_note_stack_depth): Correctly size type - state. Added `method' argument. - (vfy_note_stack_type): Renamed from vfy_note_type. Added `method' - argument. - (vfy_note_local_type): New function. - (vfy_unsuitable_type): Likewise. - (vfy_return_address_type): Likewise. - (vfy_null_type): Likewise. - - * verify.h (VFY_IN_GCC): Removed. - (VFY_WANT_TYPEMAP): Removed. - * verify-impl.c (verify_instructions_0): Removed useless "\". - (struct state) : Uncomment. - -2004-10-13 Bryce McKinlay - - * verify-impl.c: Formatting fixes. Reformat C++-style comments to - C-style. - -2004-10-06 Bryce McKinlay - - * Make-lang.in (verify.o): Re-enabled this target. - * verify-glue.c (vfy_get_interface_count): Add ATTRIBUTE_UNUSED. - (vfy_get_interface): Likewise. - (verify_jvm_instructions_new): Renamed from verify_jvm_instructions. - * verify.h (verify_jvm_instructions_new): Declare. - * verify-impl.c (free_state): Temporarily comment out unused - function. - -2004-10-06 Tom Tromey - - * java-tree.h (JV_STATE_READ): New enum value. - -2004-10-06 Bryce McKinlay - - * verify.h: New file. - -2004-10-05 Bryce McKinlay - - * verify-impl.c, verify-glue.c, verify.h: New files. - * Make-lang.in: Add rules for verify-impl.o and verify-glue.o. - -2004-09-24 Andrew Haley - - * decl.c (check_local_unnamed_variable): Always use the PARM_DECL - for a slot if it's of pointer type. - -2004-09-14 Tom Tromey - - * class.c (make_class_data): Correctly initialize "state" field. - Initialize "engine" field. - * decl.c (java_init_decl_processing): Add "engine" field. - -2004-09-10 Andrew Haley - - PR java/12760 - * expr.c (build_invokeinterface): Use fast method for interface - dispatch. - * java-tree.h (enum java_tree_index): Add JTI_ITABLE_TYPE, - JTI_ITABLE_PTR_TYPE. - (struct lang_type): Add itable_methods, itable_decl, itable_syms_decl. - (emit_symbol_table): Add new arg, element_size. - * decl.c (java_init_decl_processing): Initialize Class.itable. - * class.c (GEN_TABLE): New macro. - (gen_indirect_dispatch_tables): Use it. Add itable. - (make_class_data): Add new arg for emit_symbol_table(). - Emit itable. - (add_miranda_methods): Make sure search_class has been parsed. - (emit_symbol_table): Add new arg, element_size. - -2004-09-06 Andrew Haley - - * verify.c (merge_types): Return Object for all merges of - interfaces. - * expr.c (add_type_assertion): Don't generate assertions when - source type is array of Object. - -2004-09-03 Andrew Haley - - * class.c (finish_class): Nullify TYPE_VERIFY_METHOD. - - * lang.c (java_post_options): Force flag_verify_invocations if - we're not using indirect dispatch. - - * expr.c (pop_type_0): Move test for interfaces before call to - can_widen_reference_to(). - (build_signature_for_libgcj): Remove generation of canonical array - type. - (add_type_assertion): Canonicalize both arrays. - Don't assert that type X can be assigned to Object. - Don't assert that type X an be assigned to type X. - Don't assert that Object can be assigned to type X. - (can_widen_reference_to): Warn whenever we generate an assertion. - (process_jvm_instruction): Use throwable_type_node for the type of - an exception class. - -2004-09-01 Andrew Haley - - * decl.c (java_init_decl_processing): Change - verify_identifier_node to "__verify". - * expr.c (add_type_assertion): Use verify_identifier_node for name. - * java-tree.h (verify_identifier_node): Change to "__verify". - - * expr.c (build_signature_for_libgcj): New function. - (add_type_assertion): Use it to construct signatures for - source_type and target_type. - -2004-08-27 Andrew Haley - - * java-tree.h (enum java_tree_index): Add JTI_VERIFY_IDENTIFIER_NODE. - (verify_identifier_node): New. - (TYPE_VERIFY_METHOD): New. - (struct type_assertion): New type. - * expr.c (type_assertion_eq): New function. - (type_assertion_hash): New function. - (add_type_assertion): New function. - (can_widen_reference_to): Call add_type_assertion(). - * decl.c (java_init_decl_processing): Add verify_identifier_node. - * class.c (make_class_data): Initialize TYPE_VERIFY_METHOD (type). - (finish_class): Output TYPE_VERIFY_METHOD (type). - - * decl.c (end_java_method): Nullify unused fields. - -2004-08-17 Andrew Haley - - * verify.c (defer_merging): Quieten. - * jcf-parse.c (load_class): Only try to open a class file if it's - java.lang.Object or if it's part of the current compilation. - Check that the class we just tried to load is the class we just - loaded. Quieten. - (java_parse_file): Set flag_verify_invocations off if we're - compiling from .class. - (parse_zip_file_entries): Abort if we try to read a dummy class. - * expr.c (can_widen_reference_to): Quieten. - (build_invokevirtual): Abort if we try to invokevirtual an - interface. - (expand_invoke): Don't build a non-interface call to an interface. - (build_instanceof): Don't do premature optimization if - flag_verify_invocations is not set. - * class.c (set_super_info): Disable code that inherits TYPE_DUMMY - from superclass. - (build_static_field_ref): Add correct type conversion for - field_address. - (add_miranda_methods): Disable generation of Miranda methods for - dummy classes. - (layout_class_method): Don't complain about non-static method - overrides static method with dummy classes. - -2004-08-13 Tom Tromey - - * class.c (build_static_field_ref): Re-enable atable lookups for - static fields. - - * parse.y (strip_out_static_field_access_decl): Indentation fix. - -2004-08-11 Tom Tromey - - * gcj.texi (libgcj Runtime Properties): Document new properties. - -2004-08-06 Andrew Haley - - * jcf-parse.c (load_class): Check that we really have loaded the - class we're looking for. - -2004-07-19 Andrew Haley - - * verify.c (verify_jvm_instructions): Comment change only. - - * typeck.c (build_java_array_type): Add size field to array name. - - * java-tree.h (LOCAL_SLOT_P): New. - (update_aliases): Add PC argument. - (pushdecl_function_level): New function. - - * java-gimplify.c (java_gimplify_expr): Handle VAR_DECL, - MODIFY_EXPR, and SAVE_EXPR. - (java_gimplify_modify_expr): New function. - - * expr.c (push_type_0): Call find_stack_slot() to create temporary. - (expand_iinc): Pass PC to update_aliases(). - (STORE_INTERNAL): Likewise. - (process_jvm_instruction): Likewise. - - * decl.c (base_decl_map): New variable. - (uniq): New variable. - (update_aliases): Rewrite with more thorough checking. - (debug_variable_p): New function. - (push_jvm_slot): Don't initialize local variable. Don't pushdecl. - (check_local_named_variable): Delete whole function. - (initialize_local_variable): New function. - (check_local_unnamed_variable): Add checks and comments. - (find_local_variable): Rewrite. - (java_replace_reference): New function. - (function_binding_level): New variable. - (pushdecl_function_level): New function. - (maybe_pushlevels): Set DECL_LOCAL_END_PC. - (maybe_pushlevels): Call pushdecl() on each of the new decls. - (start_java_method): Reset uniq. Create base_decl_map. Set - function_binding_level. - (end_java_method): Null unused fields to save memory. - -2004-06-29 Andrew Haley - - * except.c (expand_start_java_handler): Push a new binding level. - Don't build a TRY_CATCH_EXPR now, we'll do it later. Call - register_exception_range() to register where we'll do it. - (expand_end_java_handler): Remove old bogus code. Replace with - new logic that simply builds TRY_CATCH_EXPRs and inserts them at - the top of the expression we're curently building. - (maybe_end_try): Delete. - * decl.c (binding_level.exception_range): New field. - (clear_binding_level): Add field exception_range. Reformat. - (poplevel): Call expand_end_java_handler(). - (poplevel): Call java_add_stmt only if functionbody is false. - (maybe_poplevels): Don't call maybe_end_try() from here. - (end_java_method): Clear no longer used trees in function decl. - (register_exception_range): New function. - * java-tree.h (register_exception_range, struct eh_range): Declare. - -2004-06-22 Andrew Haley - - * class.c (gen_indirect_dispatch_tables): Set the DECL_OWNER of - the otable. - * check-init.c (get_variable_decl): Teach check-init about - FIELD_DECLs addressed via the otable. - * jcf-parse.c (load_class): Check CLASS_LOADED_P, not - CLASS_PARSED_P. - -2004-05-28 Andrew Haley - - * jcf-parse.c (load_class): Don't try to read a class that we've - already read. - - * expr.c (build_invokeinterface): Use the old-fashioned way of - doing indirect dispatch: look up interfaces by name. - * java-tree.h (enum java_tree_index): Add - JTI_SOFT_LOOKUPINTERFACEMETHODBYNAME_NODE - * decl.c (java_init_decl_processing): Add - soft_lookupinterfacemethodbyname_node. - - * gjavah.c (print_method_info): Final methods have vtable entries, - so gjavah needs to output them. - * class.c (layout_class_method): Generate vtable entries for final - methods. - * parse.y (invocation_mode): Use INVOKE_VIRTUAL for indirect - dispatch, even if a method is final. - -2004-05-25 Andrew Haley - - * class.c (build_symbol_entry): Convert the names of constructors - to init_identifier_node when generating an entry for the indirect - dispatch table. - - * expr.c (build_known_method_ref): Generate indirect calls for - all methods marked DECL_EXTERNAL or TREE_PUBLIC. - -2004-05-24 Andrew Haley - - * expr.c (build_known_method_ref): Make sure ARRAY_REF access to - atable element is of the right type. - - * class.c (build_static_field_ref): Cast pointer to correct type - for field. - -2004-04-20 Bryce McKinlay - - * Merged with HEAD as of 20040514. Diff against - gcj-abi-2-merge-20040514. - -2004-04-16 Andrew Haley - - * verify.c (check_pending_block): Disable subroutine checks. - (defer_merging): New function. - (merge_types): If types are dummy, use defer_merging to combine them. - (verify_jvm_instructions): If invocation is invokeinterface and - target is dummy, assume target really is an interface. - - * parse.y (patch_invoke): Break out call to java_create_object. - - * lang.c (flag_verify_invocations): New. - - * jcf-parse.c (load_class): If we've already failed to load a - class, don't try again. - (load_class): If we can't find a .class file, don't fail, but emit - a warning. - (parse_class_file): Don't act on dummy methods. - - * java-tree.h (flag_verify_invocations): New. - (TYPE_DUMMY): New. - (lang_type.dummy_class): New field. - (java_create_object): New function. - (METHOD_DUMMY): New. - - * expr.c (build_field_ref): Widen field offset. - (pop_type_0): If the type in stack_type_map is a TREE_LIST, check - that each of its elements is compatible with the one we're - popping. - (pop_type_0): Issue a warning to say that we need to generate a - runtime check. - (java_create_object): New function. - (build_field_ref): Only generate hard refs if we're not using - indirect dispatch. - (expand_java_field_op): If we're using !verify_invocations and we - see a missing field, generate a decl for it. - - (expand_invoke): If a class doesn't have the method we seek and - we're using !flag_verify_invocations, generate a decl for the - method now. - - (build_known_method_ref): Always use indirect dispatch via the - atable for static methods. - - (expand_java_NEW): Break out object creation into new function, - java_create_object. - - (can_widen_reference_to): Issue a warning to say that we need to - generate a runtime check. - - * class.c (set_super_info): Inherit TYPE_DUMMY from sureclass. - (make_method_value): Also use index for interfaces. - (make_class_data): Skip dummy field for inherited data. - Don't build method array for dummy methods. - Set size_in_byte to -1 when using inirect dispatch - Don't build a hard class ref if we don't have a hard ref to our - superclass, or if we're using inirect dispatch. - Null out dispatch tables. - - (layout_class_method): Don't complain about non-static method - overrides static method is method is artificial. - - (build_static_field_ref): Disable atable references to static - fields for the time being. - - (layout_class_methods): Check for CLASS_INTERFACE as - well as CLASS_ABSTRACT. - -2004-11-24 Steven Bosscher - - * class.c (make_class_data): Don't check flag_inline_functions. - * lang.c (flag_really_inline): Remove unused flag. - (java_handle_option): Don't set it here. Remove special handling - of flag_inline_functions for Java. - (java_init): Don't set flag_inline_trees here. Already done... - (java_post_options): ...here. Don't clear flag_inline_functions. - -2004-11-24 Steven Bosscher - - * java-gimplify.c (java_gimplify_labeled_block_expr): New function. - (java_gimplify_exit_block_expr): New function. - (java_gimplify_expr): Use them to gimplify EXIT_BLOCK_EXPR and - LABELED_BLOCK_EXPR. - * java-tree.def (LABELED_BLOCK_EXPR): Moved from tree.def. - (EXIT_BLOCK_EXPR): Likewise. - * java-tree.h (LABELED_BLOCK_LABEL): Moved from tree.h. - (LABELED_BLOCK_BODY): Likewise. - (EXIT_BLOCK_LABELED_BLOCK): Likewise. - * jcf-write.c (generate_bytecode_insns): Don't handle the unused - EXIT_BLOCK_RETURN operand. Use EXIT_BLOCK_LABELED_BLOCK instead of - TREE_OPERAND. - * lang.c (java_tree_inlining_walk_subtrees): Handle EXIT_BLOCK_EXPR. - (java_dump_tree): Use LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, and - EXIT_BLOCK_LABELED_BLOCK instead of TREE_OPERAND. Don't handle the - second operand of EXIT_BLOCK_EXPR. - * parse.y (find_expr_with_wfl): Use LABELED_BLOCK_BODY instead of - TREE_OPERAND. - (build_bc_statement): Use build1 to build EXIT_BLOCK_EXPR nodes. - -2004-11-23 Ben Elliston - - * xref.h (xref_flag_value): Remove. - (xref_set_data, xref_get_data): Likewise. - (xref_set_current_fp): Likewise. - (XREF_NONE): Likewise. - (XREF_GET_DATA): Likewise. - * xref.c (xref_flag_value): Remove. - (xref_set_data, xref_get_data): Likewise. - (xref_set_current_fp): Likewise. - -2004-11-23 Ben Elliston - - * gjavah.c (output_directory): Make static. - (temp_directory): Likewise. - -2004-11-15 Tom Tromey - - * decl.c (instn_ptr_type_node): Removed. - (lineNumbers_ptr_type_node): Removed. - (jint_type): Removed. - (jint_ptr_type): Removed. - -2004-11-09 Andrew Pinski - - PR java/15576 - * check-init.c (check_init): Ignore DECL_EXPR. - * expr.c (always_initialize_class_p): Reenable. - (build_class_init): Use a variable to store the decl. Also use - boolean_false_node instead of integer_zero_node. - * parse.y (attach_init_test_initialization_flags): Add a decl_expr - to the block. - -2004-11-08 Tom Tromey - - PR java/16843: - * gjavah.c (HANDLE_END_FIELD): Call print_field_info when - generating a JNI header. - (print_field_info): Handle JNI headers. - (jni_print_float): Likewise. - (jni_print_double): Likewise. - -2004-11-08 Andrew Pinski - - * decl.c (end_java_method): Remove duplicated code. - -2004-11-06 Zack Weinberg - Gerald Pfeifer - - * lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H - as well. - -2004-11-02 Bryce McKinlay - - PR java/17265 - * class.c: Reinstate 2004-08-18 patch. - (make_local_function_alias): Don't create an alias for extern (native) - functions. - -2004-10-22 Eric Botcazou - - PR java/17265 - * class.c (make_local_function_alias): Revert 2004-08-18 change. - (make_method_value): Likewise. - -2004-10-21 Andrew Haley - - PR java/18091: - * jcf-parse.c (set_source_filename): Add code to build new sfname. - -2004-10-20 Andrew Haley - - * decl.c (end_java_method): Don't expand if flag_syntax_only. - Remove duplicated code block. - -2004-10-18 Steven Bosscher - - * Make-lang.in (java/parse.o-warn, java/parse-scan.o-warn): - New rules to work around old Bison warnings. - -2004-10-17 Steven Bosscher - - * class.c (ident_subst): Always alloca buffer. - * java-opcodes.h (LAST_AND_UNUSED_JAVA_OPCODE): Add this dummy - opcode after including javaop.def. - * jcf-dump.c (CHECK_PC_IN_RANGE): Return 0 from the arm of the - conditional expression that exits, to avoid warnings. - * verify.c (CHECK_PC_IN_RANGE): Mark the __GNUC__ definition as - a user of an extension. - * win32-host.c: Move check down to have non-empty file when - WIN32 is not defined. - - * Make-lang.in (java-warn): Add STRICT_WARN. - (java/jcf-io.o-warn): Don't have Werror for this file. - * jcf-io.c (caching_stat): Add FIXME for non-POSIX scandir use. - -2004-10-16 Hans-Peter Nilsson - - * expr.c (expr_add_location): Move declaration to before all - statements. - * parse.y (java_expand_classes): Ditto. - * lex.c (java_peek_unicode): Ditto. - -2004-10-16 Ranjit Mathew - - * check-init.c: Use %<, %> and %q for quoting in diagnostics, - if possible, else convert `foo' to 'foo'. - * class.c: Likewise. - * decl.c: Likewise. - * expr.c: Likewise. - * jcf-io.c: Likewise. - * jcf-parse.c: Likewise. - * lang.c: Likewise. - * lex.c: Likewise. - * parse.h: Likewise. - -2004-10-16 Ranjit Mathew - - * parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and - rename parameter 'msg' to 'msgid' in function declaration. - (issue_warning_error_from_context): Likewise. - (yyerror): Rename parameter 'msg' to 'msgid'. - (all over): Use new quoting style for diagnostics. - -2004-10-15 Kazu Hirata - - * boehm.c, builtins.c, java-except.h, jcf-io.c, jcf-path.c, - jcf.h, lang-specs.h, lex.c, lex.h, resource.c, win32-host.c: - Update copyright. - -2004-10-14 Matt Austern - - * lang.c (java_tree_inlining_walk_subtrees): Last arg is struct - pointer_set_t* now. - -2004-10-13 Tom Tromey - - PR java/15578: - * lang.opt (--extdirs): Document. - * jvspec.c (lang_specific_driver): Recognize -encoding and - -extdirs. - -2004-10-06 Ulrich Weigand - - * parse.y (issue_warning_error_from_context): Use va_list * - instead of va_list parameter. - (parse_error_context): Update call. - (parse_warning_context): Likewise. - -2004-10-05 Zack Weinberg - - * parse.y, parse-scan.y: Add list of diagnostic messages to - insulate translation template from version of yacc/bison used - to compile the grammar. - -2004-10-05 Ranjit Mathew - - Prepare for %q, %< and %> in diagnostic message strings. - * java-tree.h (parse_error_context): remove ATTRIBUTE_PRINTF_2. - Name second parameter 'msgid'. - * parse.y: Additionally include pretty-print.h and diagnostic.h. - (issue_warning_error_from_context): Use pretty-printer functions - instead of vsprintf for constructing formatted messages. Rename - parameter 'msg' to 'msgid'. - (parse_error_context): Rename parameter 'msg' to 'msgid'. - (parse_warning_context): Likewise. - -2004-10-05 Andrew Haley - - PR java/17779 - * jcf-parse.c (parse_zip_file_entries): If a class has a - superclass and a TYPE_SIZE of zero, lay it out. - -2004-09-30 Andrew Haley - - PR java/17733 - * jcf-parse.c (compute_class_name): Rewrite. - -2004-10-01 Jan Hubicka - - * java.c (java_expand_body): Update call of tree_rest_of_compilation. - -2004-10-01 Kazu Hirata - - * lex.c: Fix a comment typo. - -2004-10-01 Kazu Hirata - - * java-tree.h: Fix a comment typo. - -2004-09-30 Per Bothner - - Simplify lexer. Implement --enable-mapped-location support. - * jcf-parse.c (parse_class_file): Use linemap_line_start. - (parse_source_file_1): Pass filename as extra parameter, so we can call - linemap_add and set input_location here, rather than in both callers. - (read_class): Pass copied filename to parse_source_file_1. - Don't initialize wfl_operator - only needed for source compilation. - (read_class, jcf_parse): Call linemap_add with LC_LEAVE. - * lex.h: Remove a bunch of debugging macros. - * lex.h (struct_java_line, struct java_error): Remove types. - (JAVA_COLUMN_DELTA): Remove - use java_lexer.next_colums instead. - (struct java_lc_s): Remove prev_col field. - (struct java_lexer): New fields next_unicode, next_columns, and - avail_unicode. New position field, and maybe token_start field. - Don't need hit_eof field - use next_unicode == -1 instead. - (JAVA_INTEGERAL_RANGE_ERROR): Rename to JAVA_RANGE_ERROR. - (JAVA_RANGE_ERROR, JAVA_FLOAT_ANGE_ERROR): Update accordingly. - * parse.h: Various changes for USE_MAPPED_LOCATION. - (EXPR_WFL_EMIT_LINE_NOTE): XXX - (BUILD_EXPR_WFL, EXPR_WFL_ADD_COL): Remove no-longer-used macros. - (struct parser_ctxt): New file_start_location field. - Remove p_line, c_line fields since we no longer save lines. - Remove elc, lineno, and current_jcf fields - no longer used. - * parse.y: Updates for USE_MAPPED_LOCATION and new lexer. - Don't use EXPR_WFL_ADD_COL since that isn't trivial with - source_location and is probably not needed anymore anyway. - Use new expr_add_Location function. - (SET_EXPR_LOCATION_FROM_TOKEN): New convenience macro. - (java_pop_parser_context): Minor cleanup. - (java_parser_context_save_global, java_parser_context_restore_global, - java_pop_parser_context): Save/restore input_location as a unit. - (issue_warning_error_from_context): If USE_MAPPED_LOCATION take - a source_location instead of a wfl context node. - (check_class_interface_creation): input_filename is not addressable. - (create_artificial_method): Calling java_parser_context_save_global - and java_parser_context_restore_global is overkill. Instead, - temporarily set input_location from class decl. - (java_layout_seen_class_methods): Set input_location from method decl. - (fix_constructors): Make more robust if no EXPR_WITH_FILE_LOCATION. - (finish_loop_body): Likewise. - * lex.c: Updates for USE_MAPPED_LOCATION. Use build_unknwon_wfl. - (java_sprint_unicode): Take a character, not index in line. - (java_sneak_uncode): Replaced by java_peek_unicode. - (java_unget_unicode): No longer used. - (java_allocate_new_line. java_store_unicode): Removed, since we - no longer remember "lines". - (java_new_lexer): Update for new data structures. - (java_read_char): Move unget_value checking to java_read_unicode. - (java_get_unicode, java_peek_unicode, java_next_unicode): New more - efficient functions that are used directly when lexing. - (java_read_unicode_collapsing_terminators): No longer needed. - (java_parse_end_comment, java_parse_escape_sequence, do_java_lex): - Re-organize to use java_peek_unicode to avoid java_unget_unicode. - (java_parse_escape_sequence): Rewrite to be simpler / more efficient. - (do_java_lex): Lots of movings around to avoid java_unget_unicode, - combine switch branches, and test for common token kinds earlier. - (java_lex_error): Rewrite. - * jv-scan.c (expand_location): New function, copied from tree.c. - (main): Set ctxp->filename instead of setting input_filename directly. - -2004-09-30 Per Bothner - - More cleanup for --enable-mapped-location. - * class.c (push_class): If USE_MAPPED_LOCATION don't set - input_location here. Instead do it in give_name_to_class. - (build_class_ref): Set DECL_ARTIFICIAL, for the sake of dwarf2out. - * expr.c (expand_byte_code): Call linemap_line_start. - * expr.c (build_expr_wfl): If USE_MAPPED_LOCATION, change final - parameters to a source_location. Don't need EXPR_WFL_FILENAME_NODE. - (expr_add_location): New function, if USE_MAPPED_LOCATION. - * class.c (maybe_layout_super_class): Adjust build_expr_wfl call - to USE_MAPPED_LOCATION case. - - * java-tree.h (JAVA_FILE_P, ZIP_FILE_P): Remove unused macros. - * jcf-parse.c (java_parse_file): Don't set input_filename. - Use IS_A_COMMAND_LINE_FILENAME_P to check for duplicate filenames. - Create a list of TRANSLATION_UNIT_DECL. - (current_file_list): Is now a TRANSLATION_UNIT_DECL chain. The - reason is so we can set a DECL_SOURCE_LOCATION for each file. - (java_parse_file): Don't set unused ZIP_FILE_P, JAVA_FILE_P.. - Create line-map LC_ENTER/LC_LEAVE entries for archive itself. - (file_start_location): New static. - (set_source_filename): Avoid extra access to input_filename macro. - Concatenate new name with class's package prefix. - (set_source_filename, give_name_to_class): Update. - (give_name_to_class): Set class's "line 0" input_location here. - (parse_class_file): Set input_location as a unit. - - * jcf-parse.c (load_class): Sanity test if missing inner class file. - -2004-09-29 Per Bothner - - * java-tree.h: Redefine some macros and add some declaration - to handle the USE_MAPPED_LOCATION case. - * parse.h (EXPR_WFL_QUALIFICATION): Use operand 1, not 2. - * java-tree.h (EXPR_WFL_FILENAME_NODE): Use operand 2, not 1. - * java-tree.def (EXPR_WITH_FILE_LOCATION): Only need two operands in - USE_MAPPED_LOCATION case, since EXPR_WFL_FILENAME_NODE is gone. - - * check-init.c (check_init): Handle USE_MAPPED_LOCATION case. - * decl.c (finish_method, java_add_stmt): Likewise. - * java-gimplify.c (java-gimplify.c): Likewise. - * jcf-write.c (generate_bytecode_insns): Likewise. - * lang.c (java_post_options): Likewise - call linemap_add. - -2004-09-29 Andrew Haley - - PR java/17007 - * parse.y (patch_binop): Don't mess with the TREE_SIDE_EFFECTS of the - result of TRUNC_MOD_EXPR. - (patch_unaryop): Likewise for CONVERT_EXPR, which may throw. - * decl.c (java_init_decl_processing): Mark - soft_lookupinterfacemethod_node and soft_instanceof_node pure. - -2004-09-28 Tom Tromey - - PR java/15710: - * class.c (add_miranda_methods): Load superinterface if not - already loaded. - -2004-09-28 Andrew Haley - - PR java/17586 - * jcf-parse.c (load_class): Don't try to read a class that we've - already read. - -2004-09-28 Andrew Haley - - * jcf-parse.c (load_class): Back out previous broken patch. - -2004-09-28 Andrew Haley - - PR java/17586 - * jcf-parse.c (load_class): Don't try to read a class that we've - already read. - Check that we really did read the right class. - -2004-09-25 Tom Tromey - - PR java/17500: - * parse.y (create_artificial_method): Use add_method_1. - -2004-09-25 Kazu Hirata - - * expr.c, jcf-dump.c, parse-scan.y, parse.y: Fix - comment typos. - * gcj.texi: Fix typos. - -2004-09-24 Tom Tromey - - PR java/15656: - * parse.y (class_instance_creation_expression): Set `$$' to NULL - in error parts of rule. - (unary_expression): Don't call error_if_numeric_overflow when $1 - is NULL. - -2004-09-24 Tom Tromey - - PR java/16789: - * parse.y (resolve_qualified_expression_name): Set - CAN_COMPLETE_NORMALLY on first call when chaining static calls. - * expr.c (force_evaluation_order): Check for empty argument list - after stripping COMPOUND_EXPR. - -2004-09-23 Andrew Haley - - PR java/16927: - * parse.y (java_complete_lhs): Call patch_string() on Operand 1 of - COND_EXPRs. - -2004-09-23 Tom Tromey - - PR java/17329: - * java-gimplify.c (java_gimplify_expr) : Ignore case - where operand is null. - -2004-09-23 Tom Tromey - - PR java/17380: - * parse.y (not_accessible_p): Allow access to protected members - even when class is not static. - -2004-09-22 Kelley Cook - - * Make-lang.in: Revert the gcc-none.o change. - -2004-09-22 Nathan Sidwell - - * parse.y (patch_anonymous_class): VEC_space returns true if there - is space. - -2004-09-21 Matt Austern - - Fix bootstrap. - * gjavah.c (free_method_name_list): Fix function definition so - it's a proper C prototype. - -2004-09-21 Tom Tromey - - PR java/17575: - * gjavah.c (free_method_name_list): New method. - (main): Call it. - -2004-09-17 Jeffrey D. Oldham - Zack Weinberg - - * java-tree.def: Use tree_code_class enumeration constants - instead of code letters. - * java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for - new tree-class enumeration constants. - -2004-09-13 Tom Tromey - - PR java/17216: - * class.c (layout_class_method): Put synthetic methods into the - vtable. - -2004-09-11 Andrew Pinski - - * Make-lang.in (java/ggc-none.c): Change dependency - for ggc.h into $(GGC_H). - -2004-09-11 Mohan Embar - - * Make-lang.in (java/win32-host.o): Add dependency on - coretypes.h. - * win32-host.c: Add includes for coretypes.h, jcf.h - -2004-09-11 Mohan Embar - - * Make-lang.in (GCJH_OBJS): Change dependency from - ggc-none.o to java/ggc-none.o - (JCFDUMP_OBJS): Likewise. - (java/ggc-none.o): New target. - -2004-08-25 Nathan Sidwell - - * boehm.c (get_boehm_type_descriptor): Adjust build_int_cst calls. - * class.c (build_utf8_ref, build_static_field_ref, - make_field_value, make_method_value, get_dispatch_table, - make_class_data, emit_symbol_table, emit_catch_table): Likewise. - * constants.c (get_tag_node, build_ref_from_constant_pool, - build_constants_constructor): Likewise. - * decl.c (java_init_decl_processing): Likewise. - * expr.c (build_java_array_length_access, build_newarray, - expand_java_multianewarray, expand_java_pushc, expand_iinc, - build_java_binop, build_field_ref, expand_java_add_case, - expand_java_call, build_known_method_ref, build_invokevirtual, - build_invokeinterface, build_jni_stub): Likewise. - * java-gimplify.c (java_gimplify_new_array_init): Likewise. - * jcf-parse.c (get_constant): Likewise. - * lex.c (do_java_lex): Likewise. - * parse.y (patch_binop, patch_unaryop, patch_cast, - build_newarray_node, patch_newarray): Likewise. - * resource.c (compile_resource_data): Likewise. - * typeck.c (build_prim_array_type): Likewise. - -2004-08-24 Nathan Sidwell - - * decl.c (java_init_decl_processing): Adjust - initialize_sizetypes call. - -2004-08-23 Nathan Sidwell - - * jv-scan.c (fancy_abort): Add. - -2004-08-20 Nathan Sidwell - - * expr.c (build_java_arrayaccess): Use convert to change - len's type. - -2004-08-19 Bryce McKinlay - - * class.c (make_local_function_alias): Allocate extra space for 'L' - in name buffer. Reported by Thomas Neumann. - -2004-08-19 Nathan Sidwell - - * parse.h (JAVA_RADIX10_FLAG): Rename to ... - (JAVA_NOT_RADIX10_FLAG): ... here. Invert meaning. - * lex.c (do_java_lex): Adjust. - (error_if_numeric_overflow): Likewise. - -2004-08-18 Andrew Pinski - - * class.c (make_local_function_alias): Only make a new decl if we - support alias attribute on all decls. - -2004-08-18 Bryce McKinlay - - * class.c (make_local_function_alias): New function. Create local - alias for public method DECL. - (make_method_value): Use make_local_function_alias. - * parse.y (craft_constructor): Don't special-case anonymous classes. - Always set ctor_name to init_identifier_node. - (lookup_method_invoke): Call layout_class_method when creating - anonymous class constructor. - -2004-08-18 Richard Henderson - - * java-gimplify.c (java_gimplify_expr): Move '2' handling into - default case. Treat '<' similarly. Update for - is_gimple_formal_tmp_var name change. - -2004-08-17 Andrew Haley - - * lang.c (lang_printable_name): Obey verbose flag. - * parse.y (constructor_circularity_msg): Set VERBOSE arg for - lang_printable_name(). - (verify_constructor_circularity, get_printable_method_name, - check_abstract_method_definitions, java_check_regular_methods, - java_check_abstract_methods, check_inner_class_access, - fix_constructors, patch_method_invocation, patch_return): - Likewise. - * expr.c (pop_type_0): Likewise. - - * java-tree.h (lang_printable_name_wls): Delete. - -2004-08-16 Tom Tromey - - PR java/8473: - * parse.y (primary): Changed for initialized and uninitialized - array creations. - (array_access): Handle array_creation_initialized. - (array_creation_expression): Split into - array_creation_initialized and array_creation_uninitialized. - -2004-08-16 Andrew Haley - - * jcf-write.c (find_constant_index): Canonicalize NaNs when - generating bytecode. - -2004-08-16 Elliot Lee - - PR java/9677 - * jcf-parse.c (java_parse_file): Handle filenames with embedded - spaces, and quoted filelists. - -2004-08-15 Nathan Sidwell - - * boehm.c (get_boehm_type_descriptor): Use build_int_cst. - * class.c (build_utf8_ref, build_static_field_ref, - make_field_value, make_method_value, get_dispatch_table, - make_class_data, emit_symbol_table, emit_catch_table): Likewise. - * constants.c (get_tag_node, build_ref_from_constant_pool, - build_constants_constructor): Likewise. - * decl.c (java_init_decl_processing): Likewise. - * expr.c (build_java_array_length_access, build_newarray, - expand_java_multianewarray, expand_java_pushc, expand_iinc, - build_java_binop, build_field_ref, expand_java_add_case, - expand_java_call, build_known_method_ref, build_invokevirtual, - build_invokeinterface, build_jni_stub): Likewise. - * java-gimplify.c (java_gimplify_new_array_init): Likewise. - * jcf-parse.c (get_constant): Likewise. - * lex.c (do_java_lex): Likewise. - * parse.y (patch_binop, patch_unaryop, patch_cast, - build_null_of_type, patch_newarray): Likewise. - * resource.c (compile_resource_data): Likewise. - * typeck.c (build_prim_array_type): Likewise. - -2004-08-10 Bryce McKinlay - - * java-gimplify.c (java_gimplify_new_array_init): Use create_tmp_var. - Don't create BLOCK here or call java_gimplify_block. - -2004-08-09 H.J. Lu - - * java-tree.h (flag_deprecated): Removed. - * lang.opt (Wdeprecated): Use existing Var(warn_deprecated). - * parse.y (check_deprecation): Check warn_deprecated instead of - flag_deprecated. - -2004-08-06 Kelley Cook - - * lang.c (flag_emit_class_files, flag_filelist_file, flag_redundant, - flag_use_divide_subroutine, flag_use_boehm_gc, flag_store_check, - flag_hash_synchronization, flag_assert, flag_jni, flag_newer, - flag_check_references, flag_extraneous_semicolon, flag_deprecated, - flag_force_classes_archive_check, flag_optimize_sci, - flag_indirect_dispatch): Remove explicit declarations. - * lang.opt: Add implicit declare/define/assign. Remove obsolete - final comment. - -2004-08-05 Michael Chastain - - PR bootstrap/14893 - * Make-lang.in (java.install-man): Install from either build - tree or source tree, whichever has the file first. - -2004-08-05 Nathan Sidwell - - * jcf-parse.c (get_constant): Adjust force_fit_type call. - * lex.h (SET_LVAL_NODE_TYPE): Remove. - * lex.c (java_perform_atof): Use SET_LVAL_NODE directly. - (do_java_lex): Likewise. Adjust force_fit_type call. - -2004-08-04 Roger Sayle - Andrew Haley - - * typeck.c (convert_ieee_real_to_integer): Call fold on the range - checking trees as they're being built. - (convert): Call convert_ieee_real_to_integer if we're - converting a constant, even if we're writing a class file. - -2004-08-02 Bryce McKinlay - - PR java/16701 - * parse.y (fold_constant_for_init): Call resolve_field_access with - correct current_class context. - -2004-08-01 Roger Sayle - - * decl.c (update_aliases, initialize_local_variable): Replace calls - to build with calls to buildN. - * java-gimplify.c (java_gimplify_modify_expr): Likewise. - * java-tree.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Likewise. - * parse.h (BUILD_THROW): Likewise. - * parse.y (switch_expression, synchronized_statement, - catch_clause_parameter, array_creation_expression, - conditional_expression, make_qualified_name, - resolve_qualified_expression_name, patch_method_invocation, - patch_invoke, build_method_invocation, build_new_invocation, - build_assignment, patch_assignment, build_binop, patch_binop, - build_string_concatenation, build_incdec, patch_unaryop, - patch_cast, build_array_ref, build_newarray_node, patch_newarray, - patch_return, build_if_else_statement, build_labeled_block, - build_new_loop, build_loop_body, build_bc_statement, - build_assertion, encapsulate_with_try_catch, build_try_statement, - build_try_finally_statement, patch_synchronized_statement, - emit_test_initialization): Likewise, replace build with buildN. - -2004-07-28 Eric Christopher - - * lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete. - (java_unsafe_for_reeval): Ditto. - -2004-07-26 - - * parse.y (build_super_invocation): Adjust declaration order to - avoid declaration after statement. - -2004-07-25 Bernardo Innocenti - - * decl.c: Rename all identifiers named `class' to `cl'. - -2004-07-25 Richard Henderson - - * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P. - -2004-07-23 Mike Stump - - * boehm.c (set_bit): Improve type safety wrt unsignedness. - * gjavah.c (throwable_p, decode_signature_piece, - print_full_cxx_name, print_include, add_namelet, add_class_decl, - process_file): Likewise. - * jcf-dump.c (main): Likewise. - * jcf-io.c (read_zip_member): Likewise. - * jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant, - give_name_to_class, get_class_constant): Likewise. - * jcf-write.c (find_constant_wide, push_long_const, - generate_classfile): Likewise. - * lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise. - * parse.y (read_import_dir): Likewise. - * typeck.c (parse_signature_type): Likewise. - * verify.c (verify_jvm_instructions): Likewise. - * zextract.c (find_zip_file_start, read_zip_archive): Likewise. - -2004-07-23 Thomas Fitzsimmons - - * Make-lang.in: Replace rmic and rmiregistry references with - grmic and grmiregistry. - * gcj.texi: Likewise. - -2004-07-20 Andrew Haley - - PR java/16431. - * verify.c (verify_jvm_instructions): Comment change only. - - * typeck.c (build_java_array_type): Add size field to array name. - - * java-tree.h (LOCAL_SLOT_P): New. - (update_aliases): Add PC argument. - (pushdecl_function_level): New function. - - * java-gimplify.c (java_gimplify_expr): Handle VAR_DECL, - MODIFY_EXPR, and SAVE_EXPR. - (java_gimplify_modify_expr): New function. - - * expr.c (push_type_0): Call find_stack_slot() to create temporary. - (expand_iinc): Pass PC to update_aliases(). - (STORE_INTERNAL): Likewise. - (process_jvm_instruction): Likewise. - - * decl.c (base_decl_map): New variable. - (uniq): New variable. - (update_aliases): Rewrite with more thorough checking. - (debug_variable_p): New function. - (push_jvm_slot): Don't initialize local variable. Don't pushdecl. - (check_local_named_variable): Delete whole function. - (initialize_local_variable): New function. - (check_local_unnamed_variable): Add checks and comments. - (find_local_variable): Rewrite. - (java_replace_reference): New function. - (function_binding_level): New variable. - (pushdecl_function_level): New function. - (maybe_pushlevels): Set DECL_LOCAL_END_PC. - (maybe_pushlevels): Call pushdecl() on each of the new decls. - (start_java_method): Reset uniq. Create base_decl_map. Set - function_binding_level. - (end_java_method): Null unused fields to save memory. - -2004-07-20 Nathan Sidwell - - * class.c (add_interface_do): Remove. - (set_super_info, interface_of_p, maybe_add_interface, - add_interface, make_class_data, layout_class, - add_miranda_methods): Adjust BINFO accessors and addition. - * expr.c (can_widen_reference_to, lookup_field): Adjust BINFO - accessors. - * jcf-write.c (generate_classfile): Likewise. - * parse.y (patch_anonymous_class, check_inner_circular_reference, - check_circular_reference, java_complete_class, - check_abstract_method_definitions, - java_check_abstract_method_definitions, - check_interface_throws_clauses, java_check_abstract_methods, - lookup_java_interface_method2, - find_applicable_accessible_methods_list): Adjust BINFO accessors - and addition. - * typeck.c (find_method_in_interfaces): Adjust BINFO accessors. - -2004-07-18 Roger Sayle - - * builtins.c (max_builtin, min_builtin, - java_build_function_call_expr): Replace calls to build with buildN. - * class.c (build_class_ref, build_static_field_ref, - get_dispatch_table, make_class_data, layout_class_method): Likewise. - * constants.c (build_ref_from_constant_pool): Likewise. - * decl.c (update_aliases, push_jvm_slot, poplevel, finish_method, - add_stmt_to_compound): Likewise. - * except.c (build_exception_object_ref, expand_end_java_handler): - Likewise. - * java-gimplify.c (java_gimplify_case_expr, - java_gimplify_default_expr, java_gimplify_block, - java_gimplify_new_array_init, java_gimplify_try_expr): Likewise. - * jcf-write.c (generate_bytecode_insns): Likewise. - * typeck.c (convert_ieee_real_to_integer): Likewise. - -2004-07-17 Joseph S. Myers - - * java-tree.h (builtin_function): Declare. - -2004-07-16 Steven Bosscher - - * parse.y (java_complete_expand_methods, java_expand_classes): Don't - abuse restore_line_number_status. - -2004-07-15 Frank Ch. Eigler - - g++/15861 - * jcf-parse.c (java_emit_static_constructor): Specify default - priority. - -2004-07-13 Per Bothner - - * java-tree.h (all_class_filename): Remove useless macro. - (enum java_tree_index): Remove JTI_ALL_CLASS_FILENAME constant. - (BUILD_FILENAME_IDENTIFIER_NODE): Remove useless macro. - * parse.y (java_parser_context_restore_global): Replace - BUILD_FILENAME_IDENTIFIER_NODE by plain get_identifier. - * jcf-parse.c (read_class, java_parse_file): Likewise. - -2004-07-12 Bryce McKinlay - - PR java/16474 - gjavah.c (print_field_info): Emit constant only if field is static. - -2004-07-11 Roger Sayle - - * expr.c (java_truthvalue_conversion, flush_quick_stack, - java_stack_swap, java_stack_dup, build_java_athrow, build_java_jsr, - build_java_ret, build_java_throw_out_of_bounds_exception, - build_java_array_length_access, java_check_reference, - build_java_arrayaccess, build_java_arraystore_check, build_newarray, - build_anewarray, expand_java_multianewarray, expand_java_arraystore, - expand_java_arrayload, build_java_monitor, expand_java_return, - expand_load_internal, expand_java_NEW, build_get_class, - build_instanceof, expand_java_CHECKCAST, expand_iinc, - build_java_soft_divmod, build_java_binop, build_field_ref, - expand_compare, expand_java_goto, expand_java_switch, - expand_java_add_case, build_class_init, build_known_method_ref, - invoke_build_dtable, build_invokevirtual, build_invokeinterface, - expand_invoke, build_jni_stub, expand_java_field_op, - java_expand_expr, expand_byte_code, STORE_INTERNAL, - force_evaluation_order, emit_init_test_initialization): Convert - calls to "build" into calls to the prefered "buildN" functions. - -2004-07-11 Joseph S. Myers - - * java-tree.h (set_block): Remove. - * lang.c (java_clear_binding_stack): New. - (LANG_HOOKS_CLEAR_BINDING_STACK): Define. - * decl.c (struct binding_level): Remove this_block. - (clear_binding_level): Likewise. - (poplevel): Don't handle this_block. - (set_block): Remove. - -2004-07-10 Bryce McKinlay - - * class.c (common_enclosing_context_p): Remove statement with no - side-effects. - -2004-07-09 Bryce McKinlay - - PR java/8618 - * parse.y (create_anonymous_class): Remove 'location' argument. Use - the WFL from TYPE_NAME to get line number for the decl. Fix comment. - (craft_constructor): Inherit access flags for implicit constructor - from the enclosing class. - (create_class): Fix comment typo. - (resolve_qualified_expression_name): Pass type of qualifier to - not_accessible_p, not the type in which target field was found. - (not_accessible_p): Handle inner classes. Expand protected - qualifier-subtype check to enclosing instances, but don't apply this - check to static members. Allow protected access to inner classes - of a subtype. Allow private access within common enclosing context. - (build_super_invocation): Get WFL line number info from current - class decl. - (build_incomplete_class_ref): Update for new create_anonymous_class - signature. - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Use - common_enclosing_instance_p. - * class.c (common_enclosing_context_p): New. Determine if types - share a common enclosing context, even across static contexts. - (common_enclosing_instance_p): Renamed from - common_enclosing_context_p. Determines if types share a common - non-static enclosing instance. - * java-tree.h (common_enclosing_instance_p): Declare. - * jcf-write.c (get_method_access_flags): New. Surpress private flag - for inner class constructors. - (generate_classfile): Use get_method_access_flags. - -2004-07-09 Bryce McKinlay - - * class.c (interface_of_p): Check for null TYPE_BINFO. - -2004-07-09 Nathan Sidwell - - * class.c (make_class): Do not create binfo here. - (set_super_info): Create it here. - * java-tree.h (CLASS_HAS_SUPER): Cope with lack of a binfo. - -2004-07-08 Richard Henderson - - * expr.c (case_identity, get_primitive_array_vtable, - java_expand_expr, emit_init_test_initialization): Remove. - * java-tree.h (java_expand_expr): Remove. - * lang.c (LANG_HOOKS_EXPAND_EXPR): Remove. - -2004-07-07 Per Bothner - - * class.c (build_static_field_ref): Add a NOP_EXPR; otherwise we - get internal error due to mismatched types. - - * gcj.texi (Invoking gij): Document new -verbose:class flag. - - * gcj.texi (Linking): New node. Document -lgij usage. - -2004-07-07 Nathan Sidwell - - * java-tree.h (CLASSTYPE_SPUER): Adjust BINFO macros. - (TYPE_NVIRTUALS, TYPE_VTABLE): Likewise. - * java/class.c (set_super_info, class_depth, interface_of_p, - maybe_add_interface, add_interface, make_class_data, - layout_class, add_miranda_methods): Adjust BINFO macros. - * expr.c (can_widen_reference_to, lookup_field): Likewise. - * jcf-write.c (generate_classfile): Likewise. - * parse.y (patch_anonymous_class, - check_inner_circular_reference, check_circular_reference, - java_complete_class, check_abstract_method_definitions, - java_check_abstract_method_definitions, - check_interface_throws_clauses, java_check_abstract_methods, - lookup_java_interface_method2, - find_applicable_accessible_methods_list): Likewise. - * typeck.c (find_method_in_interface): Likewise. - * verify.c (merge_types): Likewise. - -2004-07-06 Nathan Sidwell - - * java-tree.h (CLASS_HAS_SUPER_FLAG): Use BINFO_FLAG_1. - * class.c (add_interface_do): Use BINFO_VIRTUAL_P. - -2004-07-05 Nathan Sidwell - - * class.c (make_class): Use make_tree_binfo. - (set_super_info, add_interface_do): Likewise. - * java-tree.h (CLASS_HAS_SUPER_FLAG): Expect a BINFO. - -2004-07-04 Ranjit Mathew - - * verify.c: Correct array element access formatting thinko. - -2004-07-04 Ranjit Mathew - - * verify.c: Insert a short blurb at the start referring to the JVMS. - (merge_type_state): Remove redundant nested if statement. - (verify_jvm_instructions): Ensure current_subr is initialised to - NULL_TREE. - Minor formatting fixes all over the place. - -2004-07-02 Richard Henderson - - * jcf-write.c (generate_bytecode_insns ): Rewrite. - -2004-07-01 Richard Henderson - - * class.c (registerClass_libfunc): Remove. - (init_class_processing): Don't set it. - (emit_register_classes): Take list_p parameter. Fill it in - with _Jv_RegisterClass calls. - * decl.c (java_init_decl_processing): Don't call - init_resource_processing. - * jcf-parse.c (java_emit_static_constructor): New. - (java_parse_file): Call it. - * resource.c (registerResource_libfunc): Remove. - (init_resource_processing): Remove. - (write_resource_constructor): Take list_p parameter. Fill it in - with _Jv_RegisterResource calls. - * java-tree.h: Update prototypes. - -2004-06-29 Bryce McKinlay - - PR java/1262 - * class.c (layout_class_method): Do not override package-private - method if its in a different package. - (split_qualified_name): Move here from parse.y. Rename from - breakdown_qualified. Add comment. - (in_same_package): Move here from parse.y. Add comment. - * java-tree.h (break_down_qualified, in_same_package): Declare. - (in_same_package): Likewise. - * parse.y (breakdown_qualified, in_same_package): Moved to class.c. - Callers updated. - -2004-06-29 Andrew Haley - - * except.c (expand_start_java_handler): Push a new binding level. - Don't build a TRY_CATCH_EXPR now, we'll do it later. Call - register_exception_range() to register where we'll do it. - (expand_end_java_handler): Remove old bogus code. Replace with - new logic that simply builds TRY_CATCH_EXPRs and inserts them at - the top of the expression we're curently building. - (maybe_end_try): Delete. - * decl.c (binding_level.exception_range): New field. - (clear_binding_level): Add field exception_range. Reformat. - (poplevel): Call expand_end_java_handler(). - (poplevel): Call java_add_stmt only if functionbody is false. - (maybe_poplevels): Don't call maybe_end_try() from here. - (end_java_method): Clear no longer used trees in function decl. - (register_exception_range): New function. - * java-tree.h (register_exception_range, struct eh_range): Declare. - -2004-06-28 Bryce McKinlay - - * jcf-write.c (get_classfile_modifiers): Formatting fixes. - -2004-06-27 Ranjit Mathew - - Formatting fixes. - * expr.c (class_has_finalize_method): Fix method name indentation. - (expand_java_call): Remove K&R style parameter declaration. - (expand_invoke): Fix statement indentation. - (expand_java_field_op): Likewise. - * parse-scan.y: Fix typo. - (reset_report): Fix method name indentation. - * parse.y (unresolved_type_p, build_expr_block): Remove extra blank - line. Fix typos. - * verify.c (verify_jvm_instructions): Document parameters, insert - page break. - * lang.c (lang_init_source): Fix method name indentation. - * class.c (common_enclosing_context_p): Likewise. - (emit_symbol_table): Fix parameter list indentation. - * decl.c (add_stmt_to_compound, java_add_stmt): Remove K&R style - parameter declaration. - * constants.c: Fix copyright notice indentation. - * typeck.c (find_method_in_superclasses): Fix parameter list - indentation. - (find_method_in_interfaces): Likewise. - * zextract.c (makelong): Fix method name indentation. - -2004-06-26 Bryce McKinlay - - PR java/15715. - * parse.y (create_interface): Set correct access modifiers for - interfaces. - * jcf-write.c (get_classfile_modifiers): New function. - (generate_classfile): Use get_classfile_modifiers, not - get_access_flags. - -2004-06-26 Bryce McKinlay - - * parse.y (register_incomplete_type): Set JDEP_ENCLOSING for "super" - dependency to current parser context, not NULL_TREE, for top-level - classes. - (jdep_resolve_class): Enable member access check for all inner - class dependencies. - -2004-06-26 Bryce McKinlay - - * parse.y (qualify_and_find): Pass type decl, not identifier, to - load_class. - -2004-06-26 Bryce McKinlay - - PR java/15734 - * expr.c (expand_java_field_op): Ensure that target class for static - field access has been loaded. - -2004-06-26 Bryce McKinlay - Ranjit Mathew - - PR java/1207, java/16178 - * jcf-parse.c (load_class): Return immediately if passed a type decl - where CLASS_FROM_SOURCE_P is set. Remove FIXME. - * parse.y (do_resolve_class): Remove checks for CLASS_FROM_SOURCE_P - before calling load_class. - (qualify_and_find): Likewise. - (find_in_imports_on_demand): Likewise. - (find_applicable_accessible_methods_list): Likewise. - -2004-06-24 Bryce McKinlay - - * parse.y (java_layout_seen_class_methods): Don't call load_class - on class defined by source parser. - -2004-06-23 Bryce McKinlay - - * parse.y (set_nested_class_simple_name_value): Removed. - (java_complete_expand_class): Remove calls to - set_nested_class_simple_name_value. - -2004-06-22 Andrew Haley - Ranjit Mathew - - Fixes PR java/16113. - * decl.c (force_poplevels): Remove call to expand_end_bindings. - -2004-06-22 Ranjit Mathew - - * parse.y (create_class): Correct diagnostic message about - java.lang.Object extending anything else. - -2004-06-21 Richard Kenner - - * class.c (build_class_ref): Add new operand for COMPONENT_REF. - (build_static_field_ref): Likewise and add new operands for ARRAY_REF. - * constants.c (build_ref_from_constant_pool): Likewise. - * expr.c (build_java_array_length_access): Likewise. - (build_get_class, build_field_ref, build_known_method_ref): Likewise. - (invoke_build_dtable, build_invokevirtual): Likewise. - (build_invokeinterface, java_expand_expr): Likewise. - (emit_init_test_initialization): Likewise. - * java-gimplify.c (java_gimplify_new_array_init): Likewise. - * parse.y (make_qualifed_name, build_array_ref): Likewise. - -2004-06-21 Andrew Haley - - * java-gimplify.c (java_gimplify_block): set TREE_USED on the new - block. - -2004-06-21 Joseph S. Myers - - * jcf.h (struct JCF): Change java_source, right_zip and finished - to unsigned int. - * lex.h (struct java_lexer): Change hit_eof, read_anything, - byte_swap and use_fallback to unsigned int. - * parse.h (struct _jdep): Change flag0 to unsigned int. - -2004-06-17 Ranjit Mathew - - Fixes PR java/13948 - * parse.y (java_layout_seen_class_methods): Ensure class is loaded - before trying to lay out its methods. - * jcf-parse.c (read_class): Track parsed files using canonical paths - obtained via lrealpath from libiberty. - (java_parse_file): Likewise. - (parse_source_file_1): Rename formal parameter to reflect its - modified purpose. Minor formatting fix. - -2004-06-15 Paolo Bonzini - - * class.c (emit_register_classes): Make the function uninlinable, - do not set current_function_cannot_inline. - * resource.c (write_resource_constructor): Do not reset - flag_inline_functions around rest_of_compilation. - -2004-06-08 Andrew Pinski - - PR java/15769 - * expr.c (java_truthvalue_conversion): Handle - UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR, - ORDERED_EXPR, and UNORDERED_EXPR as comparison operators, - i.e. return the expression. - -2004-06-03 Mark G. Adams - - * gjavah.c: Include version.h - -2004-05-31 Bryce McKinlay - - * jcf-write.c (generate_bytecode_conditional): Correct handling - of unordered conditionals. Add comment. - -2004-05-29 Ranjit Mathew - Per Bothner - - * java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a - local variable was initialised upon declaration. - * parse.y (declare_local_variables): Set DECL_LOCAL_FINAL_IUD if - variable was final and initialised upon declaration. - * check-init.c (check_final_reassigned): Give error only if a blank - final is not definitely unassigned or if an initialised final is - reassigned. - (check_bool_init): Respect JLS2 16.1.7 requirements for boolean - assignment expressions. Remove case MODIFY_EXPR, label do_default. - (check_init): Perform initialised-variable-removing-optimisation - only on non-final local variables. - -2004-05-28 Bryce McKinlay - - * jcf-write.c (generate_bytecode_conditional): Handle binops - UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, - and LTGT_EXPR. - (generate_bytecode_insns): Likewise. - -2004-05-28 Bryce McKinlay - - * check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR, - UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR. - -2004-05-28 Bryce McKinlay - - * gcj.texi (Object allocation): Remove _Jv_AllocBytes. - (Mixing with C++): Document JvAllocBytes and RawDataManaged. - -2004-05-26 Bryce McKinlay - - * decl.c (struct binding_level): Add GTY marker. Compile - binding_depth unconditionally. - (current_binding_level, free_binding_level, global_binding_level): - Likewise. - (clear_binding_level): Unconditionally set binding_depth. - (make_binding_level): Use ggc_alloc_cleared, not xmalloc. - -2004-05-26 Bryce McKinlay - - * lex.c (java_new_lexer): Set 'encoding'. - (java_read_char): Improve error message for unrecognized characters. - * lex.h (struct java_lexer): New field 'encoding'. - -2004-05-23 Paolo Bonzini - - * Make-lang.in: Link in $(LIBCPP) instead of mkdeps.o. - -2004-05-21 Mark Wielaard - - * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not - extern. - -2004-05-19 Paolo Bonzini - - * typeck.c: Remove non-printable character 160. - -2004-05-17 Ranjit Mathew - - * check-init.c: Correct minor typos. - -2004-05-13 Diego Novillo - - * Make-lang.in, expr.c, java-gimplify.c: Rename - tree-simple.[ch] to tree-gimple.[ch]. - -2004-05-14 Ranjit Mathew - - * java-gimplify.c (java_gimplify_expr): Correct minor typos. - -2004-05-13 Diego Novillo - - Merge from tree-ssa-20020619-branch. See - ChangeLog.tree-ssa for details. - - * Make-lang.in, builtins.c, check-init.c, class.c, - constants.c, decl.c, except.c, expr.c, java-except.h, - java-tree.def, java-tree.h, jcf-parse.c, jcf-write.c, - lang.c, lang.opt, parse.y, resource.c: Merged. - * java-gimplify.c: New file. - -2004-05-10 Andrew Haley - - * parse.y (create_class): Set TYPE_VFIELD. - * decl.c (java_init_decl_processing): Likewise. - - * expr.c (build_invokevirtual): Remove DECL_VINDEX offset adjustment. - * class.c (make_method_value): Replace DECL_VINDEX with call to - get_method_index(). - (get_dispatch_vector): Likewise. - (layout_class_method): Likewise. - Replace set of DECL_VINDEX with call to set_method_index(). - (set_method_index): New function. - (get_method_index): New function. - * java-tree.h (set_method_index): New function decl. - (get_method_index): New function decl. - -2004-05-10 Andrew Pinski - - * parse.y (check_pkg_class_access): Add new argument - and use it when cl is NULL to call lookup_cl on it. - (parser_check_super_interface): Do not call lookup_cl. - Pass this_decl to check_pkg_class_access and NULL - instead of lookup_cl. - (parser_check_super): Update for change in - check_pkg_class_access. - (do_resolve_class): Likewise. - (process_imports): Likewise. - (find_in_imports_on_demand): Likewise. - (resolve_qualified_expression_name): Likewise. - -2004-05-06 Ranjit Mathew - - Fixes PR java/9685, PR java/15073 - * parse.y (accessibility_string): New method. - (not_accessible_field_error): Use accessibility_string() - instead of java_accstring_lookup(). - (resolve_qualified_expression_name): Check with - check_pkg_class_access() before allowing access using - qualified names. - Fix comment typo. - Use check_pkg_class_access() instead of not_accessible_p() - for unqualified types. - (not_accessible_p): Use DECL_CONTEXT (member) instead of - REFERENCE for package-private access checking. - (patch_method_invocation): Use accessibility_string() instead - of java_accstring_lookup(). - -2004-04-30 Ranjit Mathew - - Fixes PR java/15133 - * gjavah.c (struct method_name): Add member is_native. - (overloaded_jni_method_exists_p): Match candidate method only if - it is native. - (print_method_info): Initialise is_native flag from the method's - access flags. - -2004-04-30 Roger Sayle - - * builtins.c (java_builtins): Add acos, asin, ceil and floor. - (initialize_builtins): Likewise, define acos, asin, ceil and floor. - -2004-04-22 Roger Sayle - - * resource.c (write_resource_constructor): Guard call to possibly - NULL targetm.asm_out.constructor with targetm.have_ctors_dtors. - -2004-04-19 Bryce McKinlay - - * class.c (make_class_data): Add new field aux_info. - * decl.c (java_init_decl_processing): Push type and decl for - `aux_info'. - -2004-04-15 Bryce McKinlay - - * expr.c (expand_java_NEW): Don't use size argument for - _Jv_AllocObject calls. - * parse.y (patch_invoke): Likewise. - -2004-04-12 Bryce McKinlay - - * expr.c (build_invokeinterface): Remove unused variables to - fix warnings. - -2004-04-12 Bryce McKinlay - - * class.c (get_interface_method_index): New function. Return dispatch - index for interface method. - (make_method_value): For interface methods, set index field to - iface dispatch index, not DECL_VINDEX. - * expr.c (build_invokeinterface): Use get_interface_method_index. - -2004-03-31 Richard Kenner - - * jcf-write.c (generate_bytecode_insns): Use TYPE_UNSIGNED. - -2004-03-31 Andrew Haley - - PR java/14104 - * jcf-io.c (opendir_in_zip): Tidy up error handling. - -2004-03-30 Zack Weinberg - - * builtins.c, expr.c, jcf.h, parse.h: Use new shorter - form of GTY markers. - -2004-03-25 Marcus Meissner - - PR java/14689: - * jcf-path.c (jcf_path_extdirs_arg): Add missing closedir. - -2004-03-23 Tom Tromey - - PR java/14315: - * jcf-write.c (make_class_file_name): Don't report if mkdir - failed with EEXIST. - -2004-03-23 Tom Tromey - - * gcj.texi (Extensions): Document GCJ_PROPERTIES. - -2004-03-20 Kazu Hirata - - * class.c, gjavah.c, lang.c: Fix comment typos. - * gcj.texi: Fix typos. - -2004-03-19 Per Bothner - - * gcj.texi (Code Generation): Document new flags and assert defaults. - - * class.c (assume_compiled_node_struct): Rename type to - class_flag_node_struct, as it is now also used for enable_assertions. - Rename assume_compiled_node typedef. Rename excludep field to value. - (find_assume_compiled_node): Rename function to find_class_flag_node. - Minor optimization - avoid needless strlen. - (add_assume_compiled): Some tweaking and optimization. - Rename and generalize to add_class_flag takem an extra parameter. - (add_assume_compled): New just calls add_class_flag. - (add_enable_assert, enable_assertions): New functions. - (enable_assert_tree): New static. - * java-tree.h (add_enable_assert, enable_assertions): New declarations. - * lang.opt (fenable-assertions, fenable-assertions=, - fdisable-assertions, fdisable-assertions=): New options. - * lang.c (java_handle_option): Handle new options. - * parse.y (build_incomplete_class_ref): Handle class$ in an inner - class in an interface - create helper class nested in outer interface. - (build_assertion): Short-circuit if enable_assertions is false. - -2004-03-18 Richard Kenner - - * java-tree.h: Changes throughout to add checking to macros - and numerous whitespace changes. - (VAR_OR_FIELD_CHECK): New macro. - * jcf-write.c (get_access_flags): Use FIELD_PUBLIC, METHOD_PUBLIC, - FIELD_FINAL, and METHOD_FINAL instead of CLASS_PUBLIC and CLASS_FINAL. - -2004-03-16 Per Bothner - - * jcf-jump.c (options): New --print-constants option. - * gcj.texi (Invoking jcf-dump): Document --print-constants. - - * jcf-dump.c (flag_print_constant_pool): Default to off. - (print_constant_terse_with_index): New helper function. - (various places): Check flag_print_constant_pool where missing. - (main): If verbose set flag_print_constant_pool. - (HANDLE_INNERCLASSES_ATTRIBUTE): Null inner class name is anonymous. - -2004-03-15 Andrew Haley - - PR java/14581 - * parse.y (java_complete_lhs): Check that final variable has an - initializer. - -2004-03-12 Andrew Haley - - PR java/14551 - * typeck.c (convert): Clear TREE_OVERFLOW after an integer - conversion. - -2004-02-29 Roger Sayle - - * jcf-parse.c (java_parse_file): Handle the case that input_filename - is NULL. - -2004-02-27 Per Bothner - - * parse.y (build_assertion): Re-do 02-25 change following Jeff Sturm - suggestion: Use build_incomplete_class_ref. - This fixes PR java/13508, java/11714. - -2004-02-27 Kazu Hirata - - * java/parse.h: Update copyright. - -2004-02-26 Andrew Haley - - PR java/14231: - * parse.y (check_interface_throws_clauses): Check for - !METHOD_INVISIBLE (iface_method). - * class.c (layout_class_methods): Check for CLASS_INTERFACE as - well as CLASS_ABSTRACT. - -2004-02-25 Per Bothner - - * parse.y (build_assertion): If we're in an inner class, create the - class$ helper routine in the outer class. - -2004-02-19 Richard Henderson - - * parse.y (switch_label): Use make_node for DEFAULT_EXPR. - -2004-02-16 Geoffrey Keating - - * Make-lang.in (java.install-man): Add extra dependencies. - -2004-02-13 Geoffrey Keating - - * Make-lang.in: Install man pages under the same names - (possibly transformed) as the program they document. - -2004-02-10 Joseph S. Myers - - * gjavah.c: Include "intl.h". - (error): New function. - (main): Call gcc_init_libintl. - (get_field_name, throwable_p, print_c_decl, print_full_cxx_name, - print_stub_or_jni, process_file, main): Use error rather than - fprintf. - (print_method_info, usage, help, version, main): Mark strings for - translation with _. Avoid splitting up sentences. Send - information messages to stdout. - * jcf-dump.c: Include "intl.h". - (main): Call gcc_init_libintl. - (process_class, usage, help, version, main, CHECK_PC_IN_RANGE): - Mark error, usage and version messages for translation with _. - Avoid splitting up sentences. - * jv-scan.c: Include "intl.h". - (fatal_error, warning): Change parameter s to msgid. Translate - messages. - (main): Call gcc_init_libintl. - (usage, help, version): Mark error, usage and version messages for - translation with _. Avoid splitting up sentences. - * jvgenmain.c: Include "intl.h". - (main): Call gcc_init_libintl. - (usage, main): Mark error messages for translation with _. - * Make-lang.in (GCJH_OBJS, JVSCAN_OBJS, JCFDUMP_OBJS, - JVGENMAIN_OBJS): Add intl.o. - (java/jcf-dump.o, java/gjavah.o, java/jv-scan.o, - java/jvgenmain.o): Update dependencies. - -2004-02-08 Per Bothner - - * parse.y (resolve_qualified_expression_name): In case of inaccessible - class don't use not_accessible_field_error, which can get confused. - -2004-02-05 Kelley Cook - - Make-lang.in (po-generated): Delete. - -2004-02-05 Kazu Hirata - - * Make-lang.in (java/decl.o, java/expr.o, java/parse.o): - Depend on target.h. - * decl.c: Include target.h. - (start_java_method): Replace PROMOTE_PROTOTYPES with - targetm.calls.promote_prototypes. - * expr.c: Include target.h. - (pop_arguments): Replace PROMOTE_PROTOTYPES with - targetm.calls.promote_prototypes. - * parse.y: Include target.h. - (start_complete_expand_method): Replace PROMOTE_PROTOTYPES - with targetm.calls.promote_prototypes. - -2004-02-04 Kazu Hirata - - * typeck.c: Update copyright. - -2004-02-02 Tom Tromey - - * decl.c (java_init_decl_processing): Remove duplicate - gnu/gcj/RawData. - -2004-01-30 Kelley Cook - - * Make-lang.in (doc/gcj.dvi): Use $(abs_docdir). - -2004-01-28 Andrew Pinski - - * expr.c (build_field_ref): Move variable - definition up. - -2004-01-28 Andrew Haley - - * expr.c (build_field_ref): Widen field offset. - -2004-01-27 Andrew Haley - - java/13273 - * parse.y (check_interface_throws_clauses): Make sure class_decl - has been loaded. - -2004-01-22 Jeff Sturm - - PR java/13733 - * parse.y (patch_assignment): Don't modify lhs_type for - reference assignments. - -2004-01-20 Kelley Cook - - * Make-lang.in: Replace $(docdir) with doc. - (java.info, java.srcinfo, java.man, java.srcman): New rules. - (java.install-man): Revamp rule. - -2004-01-20 Kelley Cook - - * Make-lang.in (JAVA_INSTALL_NAME, JAVA_TARGET_INSTALL_NAME, - GCJH_TARGET_INSTALL_NAME): Define via a immediate $(shell) - instead of deferred backquote. - -2004-01-16 Andrew Pinski - - * typeck.c (find_method_in_interfaces): Move variable - definition up. - -2004-01-16 Andrew Haley - - PR java/13273: - * typeck.c (shallow_find_method): New. - (find_method_in_superclasses): New. - (find_method_in_interfaces): New. - (lookup_do): Rewrite. - * java-tree.h (SEARCH_ONLY_INTERFACE): Delete. - - * jcf-parse.c (read_class): Save and restore output_class. - * decl.c (java_expand_body): Set output_class from fndecl. - -2004-01-15 Michael Chastain - - * class.c (gen_indirect_dispatch_tables): Fix string length - calculations. - -2004-01-15 Kelley Cook - - * Make-lang.in (parse.c, parse-scan.c): Always build in doc directory. - (java.srcextra): Copy above back to source directory if requested. - (po-generated): Delete reference to $(parsedir). - (java/parse.o, java/parse-scan.o): Delete reference to $(parsedir). - Use implicit rule. - -2004-01-14 Jan Hubicka - - * lang.c (java_estimate_num_insns_1): Fix bug in MODIFY_EXPR cost - estimation. - -2004-01-09 Mark Mitchell - - * java-tree.h (java_expand_expr): Change prototype. - * expr.c (java_expand_expr): Add alt_rtl parameter. - -2004-01-09 Andrew Haley - - PR java/12755: - * parse.y (java_fix_constructors): Set output_class. - (java_reorder_fields): Likewise. - (java_layout_classes): Likewise. - (java_expand_classes): Generate indirect dispatch tables. - (java_expand_classes): Set output_class. - (java_finish_classes): Likewise. - * lang.c (java_init): Turn on always_initialize_class_p if we're - using indirect dis[atch. - (java_decl_ok_for_sibcall): Use output_class, not current_class. - (java_get_callee_fndecl): Use class local atable. - * jcf-parse.c - (always_initialize_class_p): Decl moved to java-tree.h. - (HANDLE_CLASS_INFO): Set output_class. - (read_class): Likewise. - (parse_class_file): Call gen_indirect_dispatch_tables. - (parse_zip_file_entries): Set output_class. - (java_parse_file): Set output_class. Don't emit symbol tables. - * java-tree.h (output_class): New. - Remove global declarations for otable, atable, and ctable. - (always_initialize_class_p): moved here from decl.c. - (DECL_OWNER): New. - (TYPE_ATABLE_METHODS, TYPE_ATABLE_SYMS_DECL, TYPE_ATABLE_DECL, - TYPE_OTABLE_METHODS, TYPE_OTABLE_SYMS_DECL, TYPE_OTABLE_DECL, - TYPE_CTABLE_DECL, TYPE_CATCH_CLASSES): New. - (struct lang_type): Add otable_methods, otable_decl, - otable_syms_decl, atable_methods, atable_decl, atable_syms_decl, - ctable_decl, catch_classes, type_to_runtime_map. - * expr.c (build_field_ref): Make otable, atable, and ctable class - local rather than global. - (build_known_method_ref): Likewise. - (build_invokeinterface): Likewise. - (java_expand_expr): Pass runtime type (rather than actual type) to - expand_start_catch. - * except.c (prepare_eh_table_type): Create TYPE_TO_RUNTIME_MAP for - this class. Look up each class in that map to delete duplicates. - (expand_end_java_handler): Pass runtime type (rather than actual - type) to expand_start_catch. - * decl.c: (always_initialize_class_p): Decl moved to java-tree.h. - (do_nothing): New. - (java_init_decl_processing): Rearrange things. Remove global - declarations of otable, atable, and ctable. - (java_init_decl_processing): Make lang_eh_runtime_type do_nothing. - (java_expand_body): Set output_class. - * constants.c (build_constant_data_ref): Use output_class, not - current_class. - (alloc_name_constant): Likewise. - * class.c (gen_indirect_dispatch_tables): New. - (build_class_ref): Generate hard reference to superclass, even if - using indirect dispatch. - (build_static_field_ref): Use class local atable. - (make_class_data): Generate hard reference to superclass, even if - using indirect dispatch. - Generate symbolic references to interfaces when using indirect - dispatch. - (make_class_data): Emit otable, atable, and ctable. - Make otable, atable, and ctable class local rather than global. - (emit_catch_table): Make otable, atable, and ctable class local - rather than global. - -2003-12-25 Andrew Pinski - - * parse.y (catch_clause_parameter): Fix typo. - - PR java/13404 - * parse.y: (catch_clause_parameter): Return early if $3, aka - formal_parameter, is null. - -2003-12-20 Kazu Hirata - - * class.c: Remove uses of "register" specifier in - declarations of arguments and local variables. - * decl.c: Likewise. - * expr.c: Likewise. - * gjavah.c: Likewise. - * jcf-dump.c: Likewise. - * jcf-io.c: Likewise. - * jcf-parse.c: Likewise. - * jcf-write.c: Likewise. - * keyword.h: Likewise. - * parse.y: Likewise. - * typeck.c: Likewise. - * verify.c: Likewise. - -2003-12-06 Kelley Cook - - * Make-lang.in (GCJ_CROSS_NAME): Delete. - (java.install_common, java.install-man): Adjust for above. - (java.uninstall): Likewise. - -2003-12-03 Michael Koch - - * class.c (make_class_data): - Push field value to 'hack_signers' instead of 'signers'. - * decl.c (java_init_decl_processing): - Push field 'hack_signers' instead of 'signers'. - -2003-12-03 Zack Weinberg - - * lex.h: Check both HAVE_ICONV and HAVE_ICONV_H before - including iconv.h. - -2003-12-03 Ralph Loader - - PR java/12374: - * parse.y (qualify_ambiguous_name): Remove lots of broken - field access processing - there's no need to do that here, - because we have resolve_field_access. Remove - RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else. - * java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't - used. - -2003-12-01 Jeff Sturm - - Fix PR java/13237 - * parse.y (java_complete_lhs): Save location prior to patching - CALL_EXPR. - -2003-11-25 Mohan Embar - - PR java/12548 - * resource.c (write_resource_constructor): Append - "_resource" to constructor identifier name. - -2003-11-25 Jeff Sturm - - Fix PR java/13183. - * constants.c (cpool_for_class): New function. - (outgoing_cpool): Remove global variable. - (alloc_name_constant): Use cpool_for_class. - (build_constants_constructor): Likewise. - * decl.c (java_expand_body): Set current_class. - * java-tree.h (outgoing_cpool) Remove declaration. - (init_outgoing_cpool): Likewise. - * jcf-parse.c (init_outgoing_cpool): Remove function. - (parse_class_file): Don't call init_outgoing_cpool. - * parse.y (java_complete_expand_methods): Don't call - init_outgoing_cpool. Don't save outgoing_cpool. - (java_expand_classes): Don't restore outgoing_cpool. - (java_finish_classes): Likewise. - -2003-11-24 Mohan Embar - - * Make-lang.in: (java.install-common) Add - symlink for $(target_noncanonical)-gcjh for - native builds. - -2003-11-20 Joseph S. Myers - - * Make-lang.in (java.extraclean): Delete. - -2003-11-20 Joseph S. Myers - - * Make-lang.in (check-java): Add. - -2003-11-19 Jeff Sturm - - Fix PR java/13024. - * except.c (prepare_eh_table_type): Allocate variable-sized - buffer `buf' with alloca. - -2003-11-17 Jeff Sturm - - Fix PR java/12857. - - decl.c (java_init_decl_processing): Don't initialize - class_not_found_type_node, no_class_def_found_type_node. - - java-tree.h (JTI_CLASS_NOT_FOUND_TYPE_NODE, - JTI_NO_CLASS_DEF_FOUND_TYPE_NODE): Remove from java_tree_index. - (class_not_found_type_node, no_class_def_found_type_node): - Don't define. - - parse.y (build_dot_class_method_invocation): Add this_class - argument. Qualify method invocations to a different class. - (create_new_parser_context): Initialize saved_data_ctx to 0. - (java_parser_context_save_global): Initialize saved_data_ctx to 1. - (build_dot_class_method): Don't load classes. Register - incomplete types. - (build_incomplete_class_ref): Special cases for interfaces - and inner classes. Move build_dot_class_method call to here... - (patch_incomplete_class_ref): ...from here. Pass current_class - to build_dot_class_method_invocation. - (build_assertion): Pass class_type to - build_dot_class_method_invocation. - (encapsulate_with_try_catch): Handle EXPR_WITH_FILE_LOCATION node. - -2003-11-17 Jeff Sturm - - Fix PR java/12739. - * java-tree.h (BLOCK_EMPTY_P): Define. - * parse.y (java_complete_lhs): Check for empty blocks - in TRY_FINALLY_EXPR case. - -2003-11-17 Andrew Haley - - * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New. - (struct lang_decl_var:freed): New variable. - * decl.c (poplevel): Mark local vars that have gone out of scope. - (push_jvm_slot): Don't use the RTL of a var that has gone out of - scope. - -2003-11-16 Jason Merrill - - * Make-lang.in (java.tags): Create TAGS.sub files in each directory - and TAGS files that include them for each front end. - -2003-11-15 Tom Tromey - - * gjavah.c (print_stub_or_jni): Pass `env' to FatalError. - -2003-11-12 Jason Merrill - - PR optimization/12547 - * lang.c (java_tree_inlining_walk_subtrees): Just walk - BLOCK_EXPR_BODY directly. - -2003-11-12 Andrew Haley - - PR java/11045 - * parse.y (fold_constant_for_init): Check that we really do have a - constant. - - PR java/11533 - * lang.c (merge_init_test_initialization): Clear DECL_INITIAL for - init_test_decls being inlined. - - PR java/12890: - * parse.y (do_resolve_class): Check return value from - breakdown_qualified(). - -2003-11-11 Tom Tromey - - PR java/12915: - * parse.y (merge_string_cste): Handle case where we have a - pointer that happens to be zero, not null_pointer_node. - -2003-11-10 Tom Tromey - - * jcf-parse.c (classify_zip_file): Correctly compare - filename_length against length of manifest file's name. - -2003-11-08 Tom Tromey - - PR java/12894: - * jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file. - -2003-11-06 Andrew Haley - - * expr.c (java_stack_swap): Make sure destination stack slots are - of the correct type. - -2003-11-03 Kelley Cook - - * Make-lang.in (dvi): Move targets to $(docobjdir). - (gcj.dvi): Simplify rule and adjust target. - (gcj.info): Simplify rule. - (gcj.pod): New intermediate rule. - (gcjh.pod): Likewise. - (jv-scan.pod): Likewise. - (jcf-dump.pod): Likewise. - (gij.pod): Likewise. - (jv-convert.pod): Likewise. - (rmic.pod): Likewise. - (rmiregistry.pod): Likewise. - (gcj.1): Delete. - (gcjh.1): Delete. - (jv-scan.1): Delete. - (jcf-dump.1): Delete. - (gij.1): Delete. - (jv-convert.1): Delete. - (rmic.1): Delete. - (rmiregistry.1): Delete. - -2003-11-02 Jeff Sturm - - Fixes PR java/12866. - * parse.y (resolve_qualified_expression_name): Move test - for outer field access methods from here... - (check_thrown_exceptions) ...to here. - -2003-11-01 Kelley Cook - - * .cvsignore: Delete. - -2003-10-28 Frank Ch. Eigler - - * verify.c (verify_jvm_instructions): Don't warn about legal - eh binding regions generated for example by jdk 1.4.1. - -2003-10-24 David S. Miller - - * jcf-parse.c (jcf_parse): Fix args to fatal_error(). - -2003-10-22 Andrew Haley - - * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. - (java_get_callee_fndecl): New. - - * jcf-parse.c (java_parse_file): Call emit_catch_table(). - - * java-tree.h (ctable_decl): New. - (catch_classes): New. - (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES. - - * decl.c (java_init_decl_processing): Add catch_class_type. - Add ctable_decl. - Add catch_classes field. - - * class.c (build_indirect_class_ref): Break out from - build_class_ref. - (make_field_value): Check flag_indirect_dispatch. - (make_class_data): Ditto. - Tidy uses of PUSH_FIELD_VALUE. - Add field catch_classes. - (make_catch_class_record): New. - - * java-tree.h (PUSH_FIELD_VALUE): Tidy. - -2003-10-22 Kazu Hirata - - * jcf-write.c: Follow spelling conventions. - * parse.y: Likewise. - -2003-10-22 Kazu Hirata - - * ChangeLog: Fix typos. - * expr.c: Fix comment typos. - * jcf-write.c: Likewise. - * lang.c: Likewise. - * lex.c: Likewise. - * mangle.c: Likewise. - * parse-scan.y: Likewise. - * parse.y: Likewise. - -2003-10-22 Tom Tromey - - * expr.c (expand_byte_code): Only warn about dead bytecode when - extra_warnings is set. - -2003-10-22 Bryce McKinlay - - Fix for PR java/12586. - * mangle.c (find_compression_record_match): Don't iterate through - package namespace elements unless they all match compression_table - entries. - -2003-10-20 Kelley Cook - - * Make-lang.in (info): Honor $(parsedir) and $(docobjdir). - (generate-manpages): Likewise. - (java.maintainer-clean): Likewise. - (gcj.info): Likewise. - (gcj.1): Likewise. - (gcjh.1): Likewise. - (jv-scan.1): Likewise. - (jcf-dump.1): Likewise. - (gij.1): Likewise. - (jv-convert.1): Likewise. - (rmic.1): Likewise. - (rmiregistry.1): Likewise. - (java.install-man): Likewise. - (parse-scan.o): Move and define complete compile line. - (parse.o): Likewise. - (jcf-tree-inline.o): Move. - -2003-10-20 Mark Mitchell - - * Make-lang.in (info): Update dependencies. - (java.install-info): Remove. - ($(srcdir)/java/gcj.info): Replace with ... - ($(docobjdir)/gcj.info): ... this. - -2003-10-14 Nathanael Nerode - - * Make-lang.in: Replace uses of $(target_alias) with - $(target_noncanonical). - -2003-10-09 Tom Tromey - - * decl.c (java_init_decl_processing): Declare signers field. - * class.c (make_class_data): Set signers field. - -2003-10-09 Jason Merrill - - * parse.y (patch_assignment): Use make_node to create a BLOCK. - * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a - POINTER_TYPE. - -2003-10-06 Mark Mitchell - - * Make-lang.in (java.info): Replace with ... - (info): ... this. - (java.dvi): Replace with ... - (dvi): ... this. - (java.generated-manpages): Replace with ... - -2003-10-03 Kelley Cook - - * builtins.c, jcf.h, jvspec.c: Remove PARAMS macros. - -2003-10-01 Andrew Haley - - * jcf-parse.c (java_parse_file): Write otable and atable. - * java-tree.h (atable_methods): New. - (atable_decl): New. - (atable_syms_decl): New. - (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL, - JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*. - (symbol_*type): Rename method_symbol* to symbol*type. - (emit_offset_symbol_table): Delete. - (emit_symbol_table): New. - (get_symbol_table_index): New. - (atable_type): New. - * expr.c (build_field_ref): Handle flag_indirect_dispatch. - (build_known_method_ref): Likewise. - (get_symbol_table_index): Rename from get_offset_table_index. - Parameterize to allow re-use by differing types of symbol table. - (build_invokevirtual): Pass table to get_offset_table_index. - * decl.c (java_init_decl_processing): Push types and decls for - atable and atable_syyms. - * class.c (build_static_field_ref): Handle flag_indirect_dispatch. - (make_class_data): Add new fields atable and atable_syms. - (emit_symbol_table): Rename from emit_offset_symbol_table. - Parameterize to allow re-use by different types of symbol table. - (build_symbol_entry): Renamed from build_method_symbols_entry. - -2003-09-30 Roger Sayle - - * jcf-write.c (generate_bytecode_insns): Implement evaluate-once - semantics for SAVE_EXPR, by caching the result in a temporary. - -2003-09-28 Richard Henderson - - * check-init.c (check_init): Save and restore input_location - instead of file and line separately. - * decl.c (java_expand_body): Likewise. - * jcf-write.c (generate_bytecode_insns): Likewise. - * parse.y (safe_layout_class): Likewise. - * jcf-parse.c (read_class, parse_class_file): Likewise. - (java_parse_file): Use %H for warning locator. - -2003-09-28 Roger Sayle - - * expr.c (java_check_reference): Use the semantics of COND_EXPRs - with void-type branches instead of using a COMPOUND_EXPR. - -2003-09-28 Jeff Sturm - - * decl.c (java_optimize_inline, dump_function): Remove. - * java-tree.h (java_optimize_inline): Remove declaration. - * jcf-parse.c (java_parse_file): Assume flag_unit_at_a_time is set. - * parse.y (source_end_java_method, java_expand_classes): - Likewise. Remove dead code. - -2003-09-27 Roger Sayle - - * lang.c (java_init_options): Set flag_evaluation_order. - * expr.c (force_evaluation_order): Don't attempt to force - evaluation order of binary operations using save_expr. - * parse.y (java_complete_lhs): No longer need to call - force_evaluation_order when constructing binary operators. - -2003-09-27 Alexandre Petit-Bianco - Bryce McKinlay - - PR java/1333: - * parse.y (not_accessible_field_error): New function. - (resolve_expression_name): Check field access permissions. - (resolve_qualified_expression_name): Use - not_accessible_field_error. - (resolve_qualified_expression_name): Likewise. - -2003-09-24 Rainer Orth - - * class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value. - -2003-09-23 Roger Sayle - - * jcf-write.c (generate_bytecode_insns): Optimize binary operations - with equal operands without side-effects. - -2003-09-22 Jeff Sturm - - * decl.c (java_init_decl_processing): Don't emit otable decls - if flag_indirect_dispatch is not set. - -2003-09-21 Richard Henderson - - * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, - resource.c: Revert. - -2003-09-21 Richard Henderson - - * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, - resource.c: Update for DECL_SOURCE_LOCATION rename and change to const. - -2003-09-20 Richard Henderson - - * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics. - -2003-09-18 Roger Sayle - - * expr.c (java_truthvalue_conversion): Remove FFS_EXPR case. - * check-init.c (check_init): Likewise. - -2003-09-18 Roger Sayle - - * jcf-write.c (generate_bytecode_insns): Add support for fconst_2. - -2003-09-16 Andrew Haley - - * jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR. - -2003-09-17 Ranjit Mathew - - Fixes PR java/9577 - * mangle.c (find_compression_record_match): Skip - over a "6JArray" (the array template mangled string) - IDENTIFIER_NODE. - (mangle_array_type): Correct minor typo. - (atms): Move definition to the beginning. - -2003-09-16 Bryce McKinlay - - * class.c (add_miranda_methods): Ensure super-interfaces are laid - out. Fix for PR java/12254. - -2003-09-11 Richard Henderson - - * parse.y (source_end_java_method): Update for new - cgraph_finalize_function argument. - -2003-09-09 Richard Henderson - - * parse.y (source_end_java_method): Update call to - cgraph_finalize_function. - -2003-09-03 Jeff Sturm - - * decl.c (java_expand_body): New function. - * expr.c (build_class_init): Set DECL_IGNORED_P. - * java-tree.h (start_complete_expand_method, - java_expand_body): Declare. - * jcf-parse.c (cgraph.h): Include. - (java_parse_file): Handle flag_unit_at_a_time. - * lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING, - LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define. - (java_estimate_num_insns): Use walk_tree_without_duplicates. - (java_start_inlining): New function. - * parse.h (java_finish_classes): Declare. - * parse.y: Include cgraph.h. - (block): Don't special-case empty block production. - (craft_constructor): Set DECL_INLINE. - (source_end_java_method): Handle flag_unit_at_a_time. - Replace inline code with call to java_expand_body. - (start_complete_expand_method): Remove static modifier. - (java_expand_method_bodies): Patch function tree for - class initialization and/or synchronization as needed. - Don't begin RTL expansion yet. - (java_expand_classes): Check flag_unit_at_a_time before - calling finish_class. - (java_finish_classes): New function. - (java_complete_lhs): Ensure COMPOUND_EXPR has non-NULL type. - (patch_assignment): Set DECL_CONTEXT on temporary variable. - (emit_test_initialization): Set DECL_IGNORED_P. - -2003-09-03 Roger Sayle - - * builtins.c (enum builtin_type): Delete unused enumeration. - * Make-lang.in (java/builtins.o): Remove built-types.def dependency. - -2003-08-28 Tom Tromey - - * gcj.texi (Extensions): Document gcjlib URLs. - -2003-08-20 Tom Tromey - - * gcj.texi (Extensions): Added xref. - (libgcj Runtime Properties): Document - gnu.gcj.runtime.VMClassLoader.library_control. - -2003-08-20 Andrew Haley - - * except.c (prepare_eh_table_type): Use new encoding for exception - handlers when using -fno-assume-compiled. - -2003-08-13 Tom Tromey - - * gcj.texi (Invoking gij): Document -X and -?. - -2003-08-13 Mohan Embar - - * Make-lang.in: Added missing win32-host.o to JAVA_OBJS, - GCJH_OBJS, JCFDUMP_OBJS - * win32-host.c: Removed the unnecessary and broken dependency - on jcf.h - -2003-08-11 Tom Tromey - - * parse.y (java_check_regular_methods): Typo fixes. Call - check_interface_throws_clauses. Use - check_concrete_throws_clauses. - (check_interface_throws_clauses): New function. - (check_concrete_throws_clauses): New function. - (hack_is_accessible_p): New function. - (find_most_specific_methods_list): Added FIXME. - * typeck.c (lookup_do): Use `flags' argument to decide what to - do. Reimplemented. - (lookup_argument_method_generic): New function. - (lookup_argument_method2): Removed. - * jcf.h (ACC_INVISIBLE): New define. - * jcf-write.c (generate_classfile): Skip invisible methods. - * class.c (add_miranda_methods): New function. - (layout_class_methods): Use it. - (get_access_flags_from_decl): Use ACC_INVISIBLE. - * java-tree.h (METHOD_INVISIBLE): New define. - (lang_decl_func) [invisible]: New field. - (lookup_argument_method_generic): Declare. - (SEARCH_INTERFACE): New define. - (SEARCH_SUPER): Likewise. - (SEARCH_ONLY_INTERFACE): Likewise. - (SEARCH_VISIBLE): Likewise. - (lookup_argument_method2): Removed declaration. - -2003-08-05 Tom Tromey - - Fix for PR java/11600: - * parse.y (java_complete_lhs): See whether we're calling a method - on an array. - (check_thrown_exceptions): Added `is_array_call' argument; - fixed `clone' checking; updated all callers. - -2003-08-05 Steven Bosscher - - * java-tree.h (DECL_ESTIMATED_INSNS): Remove (moved to tree.h). - -2003-08-03 Tom Tromey - - * java-tree.h (METHOD_TRANSIENT): Removed. - * decl.c (pushdecl): Removed some dead code. - * class.c (get_access_flags_from_decl): Can't have transient - method. - (add_method_1): Can't have a transient method. - -2003-07-28 Andreas Jaeger - - * jvspec.c: Convert to ISO C90 prototypes. - -2003-07-25 Nathan Sidwell - - * decl.c (force_poplevels): Fix warning call. - -2003-07-25 Gabriel Dos Reis - - * expr.c (expand_java_field_op): Don't use xxx_with_decl - (expand_java_field_op): Likewise. - * class.c (layout_class_method): Likewise - (emit_register_classes): Likewise. - * decl.c (pushdecl): Likewise. - (poplevel): Likewise. - (force_poplevels): Likewise. - (give_name_to_locals): Likewise. - * check-init.c (check_for_initialization): Likewise. - -2003-07-24 Jason Merrill - - * java-tree.h: Move boolean_type_node et al to the back end. - -2003-07-19 Kaveh R. Ghazi - - * class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary - casts. - -2003-07-19 Neil Booth - - * lang.opt: Don't show -MD_ and -MDD_. - -2003-07-18 Neil Booth - - * lang-options.h: Remove. - * lang.opt: Add help text. - -2003-07-15 Kazu Hirata - - * expr.c: Remove the last argument to expand_assignment(). - -2003-07-09 Jan Hubicka - - * java-tree.h (DECL_NUM_STMTS): Rename to... - (DECL_ESTIMATED_INSNS): ... this. - * lang.c (java_estimate_num_insns, java_estimate_num_insns_1): - New static functions. - (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define. - * parser.y (add_stmt_to_compound): Do not account statements. - -2003-07-08 Mark Wielaard - - * gcj.texi: CNI now expands to Compiled Native Interface. - -2003-07-08 Rainer Orth - - * Make-lang.in (java/gcj.dvi): Use PWD_COMMAND. - -2003-07-07 Nathan Sidwell - - * expr.c (expand_byte_code): Adjist emit_line_note call. - -2003-07-06 Neil Booth - - * lang.c (java_handle_option): Don't handle filenames. - -2003-07-02 Zack Weinberg - - * jcf-path.c: Don't default-define PATH_SEPARATOR nor - DIR_SEPARATOR. - Use FILENAME_CMP. - * jcf-write.c: Don't default-define DIR_SEPARATOR. - * jcf.h: Delete COMPARE_FILENAMES definition. - -2003-07-02 Neil Booth - - * lang.c (java_init_options): Update prototype. - -2003-07-01 Nathan Sidwell - - * decl.c (poplevel): Adjust define_label call. - -2003-06-27 Zack Weinberg - - * gjavah.c (flag_jni): Make non-static. - * parse-scan.y (ctxp): Make non-static. - - * class.c (build_method_symbols_entry) - * expr.c (get_offset_table_index) - * jcf-parse.c (jcf_parse): - Mark the definition static, matching the forward declaration. - -2003-06-26 Neil Booth - - * lang.c (java_handle_option): Don't check for missing arguments. - -2003-06-20 Nathan Sidwell - - * class.c (push_class): Use a location_t to save place. - (emit_register_classes): Set input_location. Adjust - expand_function_end call. - * resource.c (write_resource_constructor): Likewise. - * decl.c (end_java_method): Adjust expand_function_end call. - * parse.y (source_end_java_method): Likewise. - -2003-06-17 Robert Abeles - - * lang.c (java_handle_option): Likewise. - -2003-06-16 Neil Booth - - * lang.c (java_handle_option): Special-casing of optional - joined arguments no longer needed. - * lang.opt: Update switches that take optional argument. - -2003-06-15 Neil Booth - - * lang.opt: Declare Java. - * lang.c (java_init_options): Update. - -2003-06-15 Neil Booth - - * lang.c (version_flag): Rename to v_flag to avoid clash w/ toplev.h. - -2003-06-14 Neil Booth - - * lang-specs.h: Rewrite -MD and -MMD to append an underscore. - * lang.c (java_handle_option): -MD and -MMD have an underscore. - * lang.opt: -MD and -MMD have an underscore. - -2003-06-14 Nathan Sidwell - - * class.c (emit_register_classes): Adjust init_function_start - call. - * decl.c (complete_start_java_method): Likewise. - * resource.c (write_resource_constructor): Likewise. - -2003-06-14 Neil Booth - - * Make-lang.in: Update to use options.c and options.h. - * lang.c: Include options.h not j-options.h. - (java_handle_option): Abort on unrecognized option. - (java_init_options): Request Java switches. - -2003-06-11 Neil Booth - - * Make-lang.in: Handle mostlyclean. - -2003-06-11 Tom Tromey - - * lang.c (java_handle_option): Update dependency_tracking for - OPT_MF case. - - * lang.c (java_handle_option): OPT_fbootclasspath_ can take an - empty argument. - -2003-06-10 Andrew Haley - - * 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 - -2003-06-10 Andrew Haley - - * lang.c (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. - (java_decl_ok_for_sibcall): New. - -2003-06-09 Neil Booth - - * 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. - -2003-06-09 Nathan Sidwell - - * java-tree.h (DECL_FUNCTION_LAST_LINE): New. - (struct lang_decl_func): Add last_line field. - * parse.h (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, - DECL_SOURCE_LINE_LAST): Remove. - * parse.y (missing_return_error, finish_method_declaration, - lookup_cl, start_artificial_method_body, source_end_java_method, - start_complete_expand_method): Adjust. - -2003-06-08 Tom Tromey - - * jvspec.c (jvgenmain_spec): Added `*' after fassume-compiled and - fno-assume-compiled. - -2003-06-08 Roger Sayle - - * builtins.c (define_builtin_type, builtin_types): Delete. - (define_builtin): Rewritten to take just the built-in code, - the function's name, type and fallback library function name. - All built-ins used by Java are implicit and BUILT_IN_NORMAL. - (initialize_builtins): Overhaul to define the GCC builtins - used by gcj manually, providing the Java run-time's - implementations as the fallback library function. - -2003-06-08 Anthony Green - - * parse.y (patch_cast): Fix conversions from floating-point to - integral types. - -2003-06-08 Neil Booth - - * Make-lang.in: Update. - * lang.c: Include opts.h. Define cl_options_count and cl_options. - -2003-06-07 Neil Booth - - * lang.c (java_init_options): Update. - -2003-06-05 Jan Hubicka - - * Make-lang.in: Add support for stageprofile and stagefeedback - -2003-05-31 Roger Sayle - - * lang.c (java_init_options): Prescribe wrap-around two's - complement arithmetic overflow by setting flag_wrapv. - -2003-05-29 Roger Sayle - - * builtins.c (cos_builtin, sin_builtin, sqrt_builtin): Delete. - (builtin_record): Add an additional builtin_code field to - record which GCC built-in corresponds to the Java function. - (java_builtins): Add new entries for atan, atan2, exp, log, - pow and tan. - (max_builtin, min_builtin, abs_builtin): Perform constant - folding on the resulting tree. - (java_build_function_call_expr): Likewise, perform constant - folding on the resulting tree. - (initialize_builtins): The NULL creators are now allowed in - the java_builtins table, which is now terminated by an entry - with builtin_code == END_BUILTINS. - (check_for_builtin): Likewise. If the matching creator is - NULL, construct the call using java_build_function_call_expr - directly with the decl for the corresponding builtin_code. - -2003-05-23 Nathanael Nerode - - * win32-host.c: Normalize copyright boilerplate. - -2003-05-16 Kaveh R. Ghazi - - * parse.y (print_int_node): Use string concatentation on - HOST_WIDE_INT_PRINT_* format specifier to collapse multiple - function calls into one. - -2003-05-13 Zack Weinberg - - * jcf-parse.c, jcf-write.c, lex.c: Replace all calls to - fatal_io_error with calls to fatal_error; add ": %m" to the end of - all the affected error messages. - -2003-05-13 Richard Henderson - - * class.c (layout_class_method): Set DECL_EXTERNAL. - * decl.c (java_mark_decl_local, java_mark_class_local): New. - * java-tree.h (java_mark_class_local): Declare. - * jcf-parse.c (parse_class_file): Use it. - * parse.y (java_expand_classes): Likewise. - -2003-05-04 Nathan Sidwell - - * Make-lang.in (java/parse.o, java/parse-scan.o): Depend on input.h. - * lex.h: #include input.h. - * jv-scan.c (input_filename): Remove. - -2003-05-02 Tom Tromey - - PR java/10491: - * gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. - (handle_inner_classes): New function. - -2003-05-01 Tom Tromey - - PR java/10459: - * parse.y (finish_for_loop): Do nothing if update expression is a - EXPR_WFL_NODE wrapping nothing. - (java_complete_lhs) : Likewise. - -2003-05-02 Nathan Sidwell - - * lex.h (input_lineno): Remove declaration. - * parse-scan.y: #include input.h. - (input_filename): Remove declaration. - (input_location): Add definition. - (input_line): Remove definition. - -2003-05-01 Nathan Sidwell - - * lex.h (lineno): Rename to ... - (input_line): ... here - * parse-scan.y (lineno): Rename to ... - (input_line): ... here. - (reset_report): Rename lineno to input_line. - * check-init.c (check_init): Likewise. - * class.c (push_class): Likewise. - * decl.c (complete_start_java_method, end_java_method): Likewise. - * expr.c (expand_byte_code): Likewise. - * jcf-parse.c (give_name_to_class, parse_class_file): Likewise. - * jcf-write.c (generate_bytecode_insns): Likewise. - * lex.c (java_init_lex, java_allocate_new_line, - do_java_lex): Likewise. - * parse.h (YYNOT_TWICE): Likewise. - * parse.y (empty_statement, expression_statement, - java_pop_parser_context, java_parser_context_save_global, - yyerror, register_fields, method_header, safe_layout_class, - find_in_imports_on_demand, create_artificial_method, - source_end_java_method, start_complete_expand_method, - build_thisn_assign, java_complete_lhs, - maybe_absorb_scoping_block): Likewise. - -2003-04-20 Mohan Embar - - * jcf-io.c (find_class): use DIR_SEPARATOR instead of - '/' when computing java source filename - -2003-04-13 Tom Tromey - - * gjavah.c (print_c_decl): Indentation fix. - -2003-04-12 Zack Weinberg - - * class.c (make_field_value, make_method_value, get_dispatch_table) - (make_class_data, emit_offset_symbol_table) - * constants.c (build_constants_constructor) - * java-tree.h (START_RECORD_CONSTRUCTOR) - * parse.y (maybe_build_array_element_wfl): - Use build_constructor. - -2003-04-10 Eric Blake - - PR java/10253: - * parse.y (string_convert_int_cst): Always use at least one digit - in string conversion. Remove ASCII dependence. - (merge_string_cste): Fix merging of 3-byte UTF-8 characters. - -2003-03-16 Mohan Embar - - * Make-lang.in: added win32-host.c - * jcf.h: defined macro JCF_OPEN_EXACT_CASE which - resolves to open() on non-Win32 platforms and - Win32-specific jcf_open_exact_case() on Win32 - * jcf-io.c (find_class): use JCF_OPEN_EXACT_CASE - when trying .java and .class files - * win32-host.c: added to repository. Defines - Win32-specific jcf_open_exact_case() - -2003-04-10 Andrew Haley - - * jcf-write.c (struct jcf_partial): num_jsrs: new field. - (maybe_free_localvar): Renamed from localvar_free. - Add new arg, really. - (generate_bytecode_insns): Set new variable, jsrs. - Only free local vars if no jsr insns have been emittted. - Call maybe_free_localvar, not localvar_free. - -2003-03-30 Joseph S. Myers - - * gcj.texi: Remove @ at start of file. - -2003-03-25 Tom Tromey - - * parse.y (create_interface): Call CHECK_DEPRECATED. - -2003-03-23 Zack Weinberg - - * Make-lang.in: Link jcf-dump against $(LDEXP_LIB). - -2003-03-21 Zack Weinberg - - * javaop.h (jfloat, jdouble): Make them structures mirroring - the bit fields of IEEE float and double respectively. - (JFLOAT_FINITE, JFLOAT_QNAN_MASK, JFLOAT_EXP_BIAS, - JDOUBLE_FINITE, JDOUBLE_QNAN_MASK, JDOUBLE_EXP_BIAS): New. - (union Word, union DWord): Delete. - (WORD_TO_FLOAT, WORDS_TO_DOUBLE): Update to match. - - * gjavah.c (java_float_finite, java_double_finite, F_NAN_MASK, - D_NAN_MASK): Delete. - (jni_print_float, jni_print_double): New. Generate - hexadecimal floating constants. - (print_field_info): Use jni_print_float/double. - - * jcf-dump.c: Include math.h. Use ldexp/frexp to assemble - finite floating point numbers for output; special case - non-finite floats. - -2003-03-19 Nathanael Nerode - - * lang.c (java_dump_tree): Change return type from 'int' to 'bool'. - Replace 0 and 1 with true and false in return statements. - -2003-03-19 Tom Tromey - - * lex.c (do_java_lex): Renamed from java_lex. - (java_lex): New function. - Include timevar.h. - -2003-03-13 Tom Tromey - - * parse.y (resolve_inner_class): Error if qualifier is a primitive - type. - -2003-03-04 Andrew Haley - - * gjavah.c (is_first_data_member): New global variable. - (print_c_decl): If it's the first data member, align it as the - superclass. - (process_file): Set is_first_data_member. - -2003-03-11 Tom Tromey - - * parse.y (resolve_field_access): Initialize class if field is - found in another static field. - * expr.c (build_class_init): Don't optimize out initialization of - implemented interface. - -2003-03-11 Andrew Haley - - * jcf-io.c (caching_stat): Initialize origsep to remove compiler - warning. - -2003-03-10 Ranjit Mathew - - * jcf-io.c (caching_stat): Account for both DIR_SEPARATOR - and DIR_SEPARATOR_2 for a target. - Correct minor typos. - - * jcf-write.c (make_class_file_name): Take both DIR_SEPARATOR - and DIR_SEPARATOR_2 for a target into account. - -2003-03-08 Neil Booth - - * lang.c (java_init): Update prototype, move code to java_post_options. - (java_post_options): Similarly. - -2003-03-05 Ranjit Mathew - - * jcf.h (COMPARE_FILENAMES): New macro similar to "strcmp" to - compare file name components depending on the case-sensitivity - or otherwise of the host file system. - - * jcf-path.c (add_entry): Use COMPARE_FILENAMES instead of - "strcmp" to compare file name components. - Use IS_DIR_SEPARATOR instead of comparing directly against - DIR_SEPARATOR. - (jcf_path_extdirs_arg): Use IS_DIR_SEPARATOR instead of - comparing directly against DIR_SEPARATOR. - -2003-03-04 Tom Tromey - - * Make-lang.in (java.tags): New target. - -2003-03-01 Roger Sayle - - * java/builtins.c (builtin_type): Handle DEF_FUNCTION_TYPE_VAR_3. - (initialize_builtins): Handle DEF_FUNCTION_TYPE_VAR_3. - -2003-03-01 Tom Tromey - - * parse.y (jdep_resolve_class): Only check deprecation if we found - a decl. - -2003-02-28 Tom Tromey - - PR java/9695: - * class.c (maybe_layout_super_class): Always pass a WFL to - do_resolve_class. - * parse.y (do_resolve_class): Updated comment to explain - parameters. - -2003-02-26 Tom Tromey - - * jcf-write.c (generate_classfile): Check whether class is - deprecated before writing attribute count. - -2003-02-25 Roger Sayle - - * java/decl.c (java_init_decl_processing): Get soft_fmod_node from - built_in_decls[BUILT_IN_FMOD] rather than define it ourselves. - -2003-02-23 Tom Tromey - - * lang-options.h: Added -Wdeprecated. - * gcj.texi (Warnings): Document -Wdeprecated. - * java-tree.h (flag_deprecated): Declare. - * lang.c (lang_W_options): Added deprecated. - (flag_deprecated): New global. - * chartables.h: Rebuilt. - * gen-table.pl (process_one): Look at whitespace. - (print_tables): Define LETTER_SPACE, LETTER_MASK. - * parse.h (CLEAR_DEPRECATED): New macro. - (CHECK_DEPRECATED_NO_RESET): New macro. - * jcf-parse.c (handle_deprecated): New function. - (HANDLE_DEPRECATED_ATTRIBUTE): New define. - * jcf-reader.c (get_attribute): Handle Deprecated attribute. - * parse.y (resolve_type_during_patch): Check deprecation. - (jdep_resolve_class): Likewise. - (process_imports): Likewise. - (resolve_expression_name): Likewise. - (check_deprecation): Strip arrays from decl. Check - flag_deprecated. - (patch_method_invocation): Also check the particular constructor - for deprecation. - (register_fields): Use CHECK_DEPRECATED_NO_RESET in loop. - * jcf-write.c (append_deprecated_attribute): New function. - (generate_classfile): Generate deprecated attribute when - appropriate. - * lex.c (java_parse_doc_section): Return type now void. Rewrote. - (java_lex) [case '*']: Simplify logic. - (java_start_char_p): Use LETTER_MASK. - (java_part_char_p): Likewise. - (java_space_char_p): New function. - -2003-02-20 Nathan Sidwell - - Change base class access representation. - * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC. - (add_interface_do): Likewise. - -2003-02-12 Ranjit Mathew - - * decl.c (java_init_decl_processing): Change - soft_lookupjnimethod_node to reflect the change in - signature of _Jv_LookupJNIMethod in libjava/jni.cc - * expr.c (build_jni_stub): Calculate and pass the size - on the stack of the arguments to a JNI function. Use - new target macro MODIFY_JNI_METHOD_CALL to allow a - target to modify the call to a JNI method. - -2003-02-08 Roger Sayle - - * jcf-io.c (java_or_class_file): Use libiberty's lbasename - instead of basename to avoid compiler warnings on Tru64. - -2003-02-04 Joseph S. Myers - - * gcj.texi: Update to GFDL 1.2. - -2003-01-31 Andrew Haley - - * parse.y (java_expand_classes): Scan the whole class list looking - for access methods that haven't yet been expanded. - -2003-01-31 Adrian Bunk - - Fix for java/4269: - - * jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO - to fix bootstrap on sparc-unknown-netbsdelf1.5. - * jcf-parse.c: Likewise. - -2003-01-31 Mark Wielaard - - * gjavah.c (throwable_p): Allocate 1 more byte for string. - -2003-01-31 Nathan Sidwell - - * class.c (make_class): Use BINFO_ELTS. - (set_super_info): Likewse. - (add_interface_do): Likewise. - -2003-01-30 Tom Tromey - - * jcf-parse.c (read_class): Update identifier's class value if it - changed during parsing. - -2003-01-30 Loren James Rittle - - * Make-lang.in (po-generated): Find the targets in $(parsedir). - Propagate change to all other rules as required. - (java/parse-scan.o): Add explicit dependency on - $(parsedir)/java/parse-scan.c . - -2003-01-29 Tom Tromey - - * parse.y (patch_assignment): Only transform the rhs of an - assignment when compiling to native. - -2003-01-28 Tom Tromey - - * jcf-write.c (generate_bytecode_conditional): Typo fixes. - -2003-01-28 Tom Tromey - - * lex.c (java_lex): Don't include UEOF as part of token. - (java_read_unicode): Error if \u sequence prematurely terminated. - -2003-01-27 Tom Tromey - - * parse.y (java_check_regular_methods): Check for construct after - checking types in throws clause. - -2003-01-24 Tom Tromey - - * class.c (build_static_field_ref): Only a String or numeric field - can fold to a constant. - -2003-01-23 Tom Tromey - - * jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of - file name in resource buffer. - -2003-01-23 Tom Tromey - - * expr.c (build_known_method_ref): Use method's context to find - method table index. - -2003-01-23 Tom Tromey - - * constants.c (set_constant_entry): Allocated cleared memory. - -2003-01-22 Tom Tromey - - * java-tree.h: Don't use PARAMS. - * resource.c: Add prototypes for all functions. - (write_resource_constructor): Use `const char *' to avoid - warning. - -2003-01-22 Nathanael Nerode - - * jcf-parse.c (process_zip_dir): Remove unused variable. - -2003-01-22 Tom Tromey - - * expr.c (build_invokeinterface): Abort if method's context is not - an interface. - -2003-01-22 Tom Tromey - - * gcj.texi (Input and output files): Mention non-class entries. - * decl.c (java_init_decl_processing): Call - init_resource_processing. - * java-tree.h (compile_resource_data, write_resource_constructor, - compile_resource_file, init_resource_processing): Declare. - * config-lang.in (gtfiles): Added resource.c. - * Make-lang.in (gt-java-resource.h): New target. - (JAVA_OBJS): Added resource.o. - (java/resource.o): New target. - * resource.c: New file. - * class.c (compile_resource_file): Moved to resource.c. - (registerResource_libfunc): Likewise. - (utf8_decl_list): Mark with GTY; now static. - * jcf-parse.c (classify_zip_file): New function. - (parse_zip_file_entries): Use it; compile .properties files. - (process_zip_dir): Use classify_zip_file and compute_class_name. - Don't write class name into zip directory. - (java_parse_file): Call write_resource_constructor. - (compute_class_name): New function. - * jcf-io.c (read_zip_member): Reindented. - -2003-01-21 Tom Tromey - - * class.c (supers_all_compiled): New function. - (make_class_data): Use it. - -2003-01-21 Tom Tromey - - * parse.y (method_header): Native method can't be strictfp. - No method can be transient or volatile. - -2003-01-21 Kaveh R. Ghazi - - Make-lang.in (jvspec.o-warn): Add -Wno-error. - -2003-01-18 Kazu Hirata - - * check-init.c: Fix comment typos. - * class.c: Likewise. - * constants.c: Likewise. - * decl.c: Likewise. - * except.c: Likewise. - * expr.c: Likewise. - * java-except.h: Likewise. - * java-tree.h: Likewise. - * javaop.h: Likewise. - * jcf-dump.c: Likewise. - * jcf-io.c: Likewise. - * jcf-parse.c: Likewise. - * jcf-write.c: Likewise. - * lang.c: Likewise. - * mangle.c: Likewise. - * typeck.c: Likewise. - * verify.c: Likewise. - -2003-01-18 Kaveh R. Ghazi - - * Make-lang.in (java/jcf-write.o): Depend on $(TM_P_H). - * jcf-write.c: Include "tm_p.h". - -2003-01-17 Kaveh R. Ghazi - - * jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*. - -2003-01-16 Kaveh R. Ghazi - - * builtins.c (java_build_function_call_expr): Renamed from - build_function_call_expr. All callers changed. - - * Make-lang.in (java/jcf-parse.o): Depend on $(TM_P_H). - * jcf-parse.c: Include tm_p.h. - - * jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned - warning. - -2003-01-14 Tom Tromey - - * class.c (make_class_data): Check that super is compiled before - building class reference to it. - -2003-01-14 Andrew Haley - - * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a - varargs function -- correct. - -2003-01-14 Andrew Haley - - * decl.c (java_init_decl_processing): Temporarily back out previous patch. - -2003-01-14 Andrew Haley - - * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a - varargs function -- correct. - - * parse.y (patch_assignment): Copy the rhs of an assignment into a - temporary if the RHS is a reference. - -2003-01-11 Kaveh R. Ghazi - - * Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf. - * keyword.h: Regenerated. - - * All Files: Convert to ISO C style function definitions. - -2003-01-09 Nathanael Nerode - - * parse.y (check_pkg_class_access): ANSIfy definition. - -2003-01-09 Kaveh R. Ghazi - - * decl.c, parse-scan.y, parse.y: Don't cast return value of - xmalloc et al. - - * class.c, gjavah.c, parse.y, verify.c: Don't use PTR. - -2003-01-09 Geoffrey Keating - - Merge from pch-branch: - - 2002-12-02 Geoffrey Keating - - * Make-lang.in (java/gjavah.o): Update dependencies. - * gjavah.c: Include ggc.h. - - 2002-08-16 Geoffrey Keating - - * Make-lang.in (GCJH_OBJS): Add ggc-none.o. - (JCFDUMP_OBJS): Add ggc-none.o. - (java/jcf-dump.o): Depend on GGC_H. - * jcf-reader.c (jcf_parse_constant_pool): Use ggc_alloc to allocate - CPool substructures. - * jcf-parse.c (process_zip_dir): Use ggc_alloc to allocate JCFs. - * jcf-dump.c: Include ggc.h. - - 2002-08-08 Geoffrey Keating - - * jcf.h (union cpool_entry): New. - (struct CPool): Use gengtype to mark. Change field 'data' to be - an array of unions. - (struct JCF): Use gengtype to mark. - (CPOOL_UINT): Update for new cpool_entry type. - (CPOOL_USHORT1): Likewise. - (CPOOL_USHORT2): Likewise. - (CPOOL_FINISH): Use GC to free cpool subfields. - * parse.h (struct parser_ctxt): Mark field current_jcf. - * lex.c (java_init_lex): Use GC to allocate struct JCF. - * jcf-parse.c (HANDLE_CONSTANT_Utf8): Update for new cpool_entry type. - (main_jcf): Use gengtype to mark. - (ggc_mark_jcf): Delete. - (get_constant): Update for new cpool_entry type. - (give_name_to_class): Likewise. - (get_class_constant): Likewise. - (init_outgoing_cpool): Use GGC to allocate struct CPool. - (java_parse_file): Use GGC to allocate struct JCF. - (init_jcf_parse): Don't call ggc_add_root. - * jcf-reader.c (jcf_parse_constant_pool): Update for new - cpool_entry type. - * java-tree.h (current_jcf): Use gengtype to mark. - (CPOOL_UTF): Update for new cpool_entry type. - (outgoing_cpool): Use gengtype to mark. - (struct lang_type): GC struct JCF and struct CPool. - * config-lang.in (gtfiles): Add jcf.h. - * constants.c (find_tree_constant): New. - (set_constant_entry): Allocate cpool subfields using GGC. Update - for new cpool_entry type. - (find_constant1): Update for new cpool_entry type. - (find_constant2): Likewise. - (find_utf8_constant): Use find_tree_constant. - (find_class_or_string_constant): Remove unnecessary cast to jword. - Update for new cpool_entry type. - (count_constant_pool_bytes): Update for new cpool_entry type. - (write_constant_pool): Likewise. - (alloc_name_constant): Use find_tree_constant. - (build_constants_constructor): Update for new cpool_entry type. - - 2002-08-08 Geoffrey Keating - - * parse.y (mark_parser_ctxt): Delete. - (goal): Don't use ggc_add_root. - (create_new_parser_context): Use GC to allocate struct parser_ctxt. - (java_pop_parser_context): Let GC free parser_ctxt. - (java_parser_context_resume): Likewise. - * parse.h (struct parser_ctxt): Use gengtype to mark. - (ctxp): Likewise. - (ctxp_for_generation): Likewise. - * lex.h (struct java_lc_s): Mark for gengtype. - (java_lexer): Rearrange for gengtype. - * config-lang.in (gtfiles): Add lex.h, parse.h. - -2003-01-09 Kaveh R. Ghazi - - * All Files: Remove PARAMS macro. - - * expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c, - jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or - `__STDC__' macros. - - * jv-scan.c, parse.y: Remove VPARAMS, VA_OPEN, VA_FIXEDARG and - VA_CLOSE. - -2003-01-09 Christian Cornelssen - - * Make-lang.in (java.install-common, java.uninstall, - java.install-info, java.install-man): Prepend $(DESTDIR) - to destination paths in all (un)installation commands. - (java.install-common): Rewrite $(LN) command to support - DESTDIR with "ln" as well as with "ln -s". - -2003-01-08 Nathanael Nerode - - * java-tree.h: Protect against multiple inclusion. - -2003-01-07 Tom Tromey - - * class.c (add_assume_compiled): Don't adjust parent if we're - already at the root of tree. - -2003-01-05 Kaveh R. Ghazi - - * lang.c (dump_compound_expr): Prototype. - -2003-01-03 Tom Tromey - - Fix for PR java/8712: - * expr.c (build_instanceof): Build an NE_EXPR, not a COND_EXPR, - when simply checking against `null'. - -2003-01-03 Tom Tromey - - * gcj.texi (Standard Properties): Document http.proxyHost and - http.proxyPort. - - * gcj.texi (GNU Classpath Properties): Document new properties. - -2003-01-02 Steven Bosscher - - * java/jcf-reader.c, java/jvgenmain.c, java/keyword.gperf, - java/lang-options.h, java/mangle.c, java/mangle_name.c, - java/xref.c, java/zextract.c,java/zipfile.h: Fix copyright years. - -2003-01-01 Steven Bosscher - - * Make-lang.in, boehm.c, buffer.c, - buffer.h, builtins.c, class.c, - config-lang.in, constants.c, - convert.h, decl.c, except.c, - expr.c, java-except.h, - java-tree.h, javaop.def, - jcf-parse.c, jcf-write.c, - jv-scan.c, jvgenmain.c, - jvspec.c, keyword.gperf, - keyword.h, lang-options.h, - lang-specs.h, lang.c, lex.c, - lex.h, mangle.c, mangle_name.c, - parse-scan.y, parse.h, parse.y, - typeck.c, verify.c, xref.c, - xref.h: Replace "GNU CC" with - "GCC" in the copyright header. - - * check-init.c, gjavah.c, javaop.h, - jcf-depend.c, jcf-dump.c, jcf-io.c, - jcf-path.c, jcf-reader.c, jcf.h, - zextract.c, zipfile.h: These files are - "part of GCC". Also say "GCC" not "GNU CC". - -2002-12-30 DJ Delorie - - * Make-lang.in: Protect against texi2pod/pod2man failing. - -2002-12-28 Joseph S. Myers - - * gcj.texi: Use @copying. - -2002-12-27 Mark Mitchell - - * gjavah.c (print_name_for_stub_or_jni): Adjust call to - print_cxx_classname. - (print_cxx_classname): Add add_scope parameter. - (print_class_decls): Do not emit a semicolon after the extern - "Java" block. - (process_file): Adjust calls to print_cxx_classname. - -2002-12-23 Joseph S. Myers - - * gcj.texi: Include Cover Texts in man page. - -2002-12-23 Jeff Sturm - - * class.c (build_static_field_ref): Check FIELD_FINAL. - - * constants.c (alloc_class_constant): Use TYPE_CPOOL_DATA_REF - instead of current_constant_pool_data_ref. - * java-tree.h (current_constant_pool_data_ref): Undefine. - (JTI_CURRENT_CONSTANT_POOL_DATA_REF): Remove. - * jcf-parse.c (init_outgoing_cpool): Don't initialize - current_constant_pool_data_ref. - - * except.c (prepare_eh_table_type ): Use DECL_NAME of class type, - not build_internal_class_name. - - * parse.y (patch_incomplete_class_ref): Always emit `class$' method. - Use it when class ref isn't certain to be compiled. - -2002-12-23 Joseph S. Myers - - * gcj.texi: Include gcc-common.texi. - * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Depend on - $(srcdir)/doc/include/gcc-common.texi. - -2002-12-22 Anthony Green - - * gcj.texi (Limitations): Add note about org.xml.sax and - org.w3c.dom. - -2002-12-20 Tom Tromey - - * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Handle case - where minimum case value is Integer.MIN_VALUE. - Fixes PR java/8955. - -2002-12-18 Andrew Haley - - * parse.y (patch_invoke): Force evaluation order when `check' is - set. For PR libgcj/8945. - -2002-12-16 Mark Mitchell - - * gcj.texi: Change version number to 3.4. - -2002-12-05 Ranjit Mathew - Andrew Haley - - * parse.y (source_end_java_method): Remove custom encoding of line - numbers for a function decl before passing it to the back end. - -2002-12-03 Andrew Haley - - * class.c (make_class_data): New field, "chain". - * decl.c (java_init_decl_processing): Likewise. - -2002-12-02 Tom Tromey - - For PR java/8740: - * parse.y (do_resolve_class): Handle qualified name via - recursion. - -2002-11-30 Zack Weinberg - - * boehm.c, buffer.c, builtins.c, check-init.c, class.c, - constants.c, decl.c, except.c, expr.c, gjavah.c, jcf-depend.c, - jcf-dump.c, jcf-io.c, jcf-parse.c, jcf-path.c, jcf-write.c, - jv-scan.c, jvgenmain.c, jvspec.c, lang.c, mangle.c, mangle_name.c, - parse-scan.y, parse.y, typeck.c, verify.c, xref.c, zextract.c: - Include coretypes.h and tm.h. - * Make-lang.in: Update dependencies. - -2002-11-27 Kaveh R. Ghazi - - * decl.c (java_init_decl_processing): Use `LL' on 64-bit constant. - -2002-11-25 Diego Novillo - - * jcf-reader.c: Don't expand JCF_readu4 inside the - expansion of JCF_SKIP. - -2002-11-25 Diego Novillo - - * jcf-reader.c: Don't expand JCF_readu4 inside the - expansion of JCF_SKIP. - -2002-11-22 Tom Tromey - - * parse.y (patch_binop): Cast right hand side of shift expression - to `int'. Fixes PR java/8676. - -2002-11-22 Ranjit Mathew - Andrew Haley - - * gcc/java/jcf-write.c (write_classfile): Remove target - class file, if it exists, before renaming the temporary - class file to it. - -2002-11-19 Jason Thorpe - - * jvspec.c (lang_specific_spec_functions): New. - -2002-11-18 Tom Tromey - - Fix for PR java/7912: - * expr.c (can_widen_reference_to): Allow cast of array to - Cloneable or Serializable. - * java-tree.h (java_lang_cloneable_identifier_node): Declare. - (java_io_serializable_identifier_node): Likewise. - * parse.y (java_lang_cloneable, java_io_serializable): Removed. - (valid_ref_assignconv_cast_p): Use new identifier nodes. - * lex.c (java_init_lex): Don't initialize java_lang_cloneable and - java_io_serializable. - * decl.c (java_init_decl_processing): Initialize - java_lang_cloneable_identifier_node and - java_io_serializable_identifier_node. - (java_lang_cloneable_identifier_node): New global. - (java_io_serializable_identifier_node): Likewise. - -2002-11-14 Jens-Michael Hoffmann - - * buffer.c: Remove unnecessary casts. - * check-init.c: Likewise. - * class.c: Likewise. - * constants.c: Likewise. - * decl.c: Likewise. - * except.c: Likewise. - * gjavah.c: Likewise. - * jcf-io.c: Likewise. - * jcf-parse.c: Likewise. - * jcf-path.c: Likewise. - * jvspec.c: Likewise. - * lang.c: Likewise. - * lex.c: Likewise. - * verify.c: Likewise. - -2002-11-06 Tom Tromey - - * gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in - a JNI header. - -2002-11-05 Tom Tromey - - Fix for PR java/6388. - * lex.h (JAVA_INTEGRAL_RANGE_ERROR): Wrap in do...while. - * java-tree.h (enum java_tree_index): New values - JTI_DECIMAL_INT_MAX_NODE, JTI_DECIMAL_LONG_MAX_NODE. - (decimal_int_max, decimal_long_max): New defines. - * lex.c (yylex): Rewrote range checking. Sign extend literals. - (error_if_numeric_overflow): Rewrote range checking. - * decl.c (java_init_decl_processing): Initialize decimal_int_max, - decimal_long_max. - -2002-11-02 Tom Tromey - - * java-tree.h: Move JV_STATE_ERROR before JV_STATE_DONE. - - * class.c (make_method_value): Put class name, not signature, into - `throws' field. For PR java/8415. - -2002-10-24 Tom Tromey - - * gcj.texi (Invoking gij): Document --showversion. - (Standard Properties): java.library.path now set. - -2002-10-23 Tom Tromey - - * gjavah.c (decode_signature_piece): In JNI mode, print - `jobjectArray' when array depth is nonzero. - Fixes PR java/8296. - -2002-10-15 Andrew Haley - - * parse.y (patch_invoke): Call force_evaluation_order on a static - arg list. - (resolve_qualified_expression_name): Call force_evaluation_order - on a arg list that is part of a Qualified Expression Name. - - * lang.c (dump_compound_expr): New. - (java_dump_tree): New. - -2002-10-20 Ranjit Mathew - - * gcj.texi: Added item describing the GCJ runtime property - "gnu.gcj.progname". - -2002-10-15 Richard Henderson - - * jcf-parse.c (get_constant): Fix type warning. - -2002-10-15 Andrew Haley - - * java-tree.h (java_inlining_merge_static_initializers): Declare. - (java_inlining_map_static_initializers): Declare. - -2002-10-14 Andrew Haley - - * tree-inline.c (remap_block): All local class initialization - flags go in the outermost scope. - (expand_call_inline): Call java_inlining_map_static_initializers. - (expand_call_inline): Call java_inlining_merge_static_initializers. - * java/lang.c (merge_init_test_initialization): New. - (java_inlining_merge_static_initializers): New. - (inline_init_test_initialization): New. - (java_inlining_map_static_initializers): New. - -2002-10-11 Mark Wielaard - - * gcj.texi (Compatibility): Add Limitations and Extensions section. - -2002-10-10 Kaveh R. Ghazi - - * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. - -2002-10-09 Kaveh R. Ghazi - - * parse.y (merge_string_cste): Add parentheses around & within |. - -2002-10-08 Tom Tromey - - * parse.y (variable_declarator_id): Simplify error path for - array declarator error. For PR java/8003. - -2002-10-08 Zack Weinberg - - * gjavah.c, jcf-dump.c, jv-scan.c: Globally replace GCCBUGURL with - bug_report_url. - -2002-10-08 Andrew Haley - - * parse.y (attach_init_test_initialization_flags): Check for - error_mark_node. - -2002-10-07 Anthony Green - - * parse.y (merge_string_cste): Fix bug in string concatenation. - -2002-10-03 Michael Koch - - * gcj.texi (Standard properties): - Change default of java.awt.toolkit to gnu.awt.gtk.GtkToolkit. - -2002-10-02 Roger Sayle - - PR optimization/6627 - * lang.c (java_init): If storing the vbit in function - pointers, ensure that force_align_functions_log is atleast - one to aid compatability with g++ vtables. - -2002-10-01 Nathan Sidwell - - * jcf-dump.c (print_constant, case CONSTANT_float): Don't fall - foul of type-based aliasing. - -2002-09-30 Anthony Green - - * gcj.texi (Invoking jv-scan): Fix texinfo. - -2002-09-28 Anthony Green - - * gcj.texi (Invoking jv-scan): Add --no-assert documentation. - (Code Generation): Add -fno-assert documentation. - * jv-scan.c (flag_assert): New global. - (options): Add assert option. - (help): Add --no-assert documentation. - * parse-scan.y (flag_assert): New global. - * lang.c (lang_f_options): Add -fassert/-fno-assert support. - (flag_assert): New global. - * java-tree.h (flag_assert): New global. - * lex.c (java_lex): Obey flag_assert. - * jvspec.c (jvgenmain_spec): Strip -fassert/-fno-assert when - calling cc1. - -2002-09-26 Andrew Haley - - * expr.c (build_java_array_length_access): Check for null pointer. - * expr.c (expand_java_arrayload): Likewise. - -2002-09-21 Richard Henderson - - * jcf-parse.c (get_constant): Decode from IEEE no matter - what the target format. - -2002-09-20 Kazu Hirata - - * ChangeLog: Follow spelling conventions. - * class.c: Likewise. - * decl.c: Likewise. - * expr.c: Likewise. - * gjavah.c: Likewise. - * java-tree.h: Likewise. - * jcf-dump.c: Likewise. - * jcf-parse.c: Likewise. - * jvspec.c: Likewise. - * lang.c: Likewise. - * mangle.c: Likewise. - * parse.y: Likewise. - -2002-09-17 Tom Tromey - - * lex.c (java_read_unicode_collapsing_terminators): Handle case - where \r appears at EOF. Fixes PR java/7950. - -2002-09-16 Volker Reichelt - - * jvspec.c (lang_specific_driver): Remove unused variable. - -2002-09-16 Geoffrey Keating - - * java-tree.h (union lang_tree_node): Add chain_next option. - -2002-09-16 Richard Henderson - - * jcf-parse.c (get_constant): Runtime check for IEEE format; - use new real.h interface. - * jcf-write.c (find_constant_index): Use new real.h interface. - * lex.c (IS_ZERO): Use REAL_VALUES_EQUAL. - -2002-09-15 Kazu Hirata - - * lang.c: Follow spelling conventions. - -2002-09-11 Per Bothner - - * parse.y (fold_constant_for_init): If a VAR_DECL, convert numerical - constant to the type of the field. - (java_complete_tree): Remove now-redundant code. - - * parse.y (fold_constant_for_init): 'null' is not a constant expr. - -2002-09-03 Jesse Rosenstock - - For PR java/5794: - * verify.c (verify_jvm_instructions) [OPCODE_jsr]: Only push the - return label if a ret instruction for the jsr has been reached. - -2002-09-09 Ranjit Mathew - - * parse.y (DIR_SEPARATOR): Don't define. - (check_class_interface_creation): Use IS_DIR_SEPARATOR. - -2002-08-28 Andrew Haley - - * verify.c (verify_jvm_instructions): Allow exception handler - inside code that is being protected, but generate a warning. - * except.c (link_handler): Initialize `expanded' in new eh_range. - (binding_depth, is_class_level, current_pc): Declare extern. - -2002-09-01 Mark Wielaard - - * gcj.texi: Add chapter about system properties. - Fixed some typos. - -2002-08-26 Tom Tromey - - * parse.y (try_builtin_assignconv): Allow narrowing primitive - conversion if RHS_TYPE is byte, short, or char. - -2002-08-22 Tom Tromey - - * gcj.texi (Invoking gij): Document -cp and -classpath. - -2002-08-21 Tom Tromey - - * Make-lang.in (java/jcf-path.o): Use $(datadir), not - $(prefix)/share. For PR libgcj/7633. - - For PR java/6005 and PR java/7611: - * lang.c (LANG_HOOKS_CAN_USE_BITFIELDS_P): New define. - (java_can_use_bit_fields_p): New function. - -2002-08-16 Tom Tromey - - * gcj.texi (Class Initialization): Mention class initialization of - arrays. - -2002-07-30 Andrew Haley - - * Make-lang.in (java-tree-inline.o): New. - (JAVA_OBJS): Add java-tree-inline.o. - * parse.y (source_end_java_method): Call java_optimize_inline. - (java_expand_method_bodies): Save method's tree in - DECL_SAVED_TREE. - (add_stmt_to_compound): Keep track of the number of statments. - * lang.c (java_init): Enable flag_inline_trees. - (java_post_options): If flag_inline_functions is on, enable - flag_inline_trees instread. - (decl_constant_value): New. - (java_tree_inlining_walk_subtrees): New. - * java-tree.h (DECL_NUM_STMTS): New macro. - (java_optimize_inline): Declare. - * expr.c (java_expand_expr): Allow a BLOCK to return a value. - Handle a LABEL_EXPR. - * decl.c (build_result_decl): If we already have a DECL_RESULT - don't make another. - (dump_function): New. - (java_optimize_inline): New. - (dump_function): New. - -2002-08-13 Jesse Rosenstock - - For PR java/7483: - * parse.y (build_assertion): Invert return from - desiredAssertionStatus. - -2002-08-08 Bryce McKinlay - - * jcf-write.c (get_access_flags): Return correct access flags for - private and protected inner classes. - -2002-08-08 Nathan Sidwell - - * java/Make-lang.in (java.mostlyclean): Remove coverage files. - -2002-08-05 Geoffrey Keating - - * mangle_name.c: Don't include obstack.h twice. - * xref.c: Don't include obstack.h. - -2002-08-04 Geoffrey Keating - - * class.c: (permanent_obstack): Delete declaration. - * constants.c: (permanent_obstack): Delete declaration. - * except.c: (permanent_obstack): Delete declaration. - * expr.c: (permanent_obstack): Delete declaration. - * jcf-parse.c: (permanent_obstack): Delete declaration. - (saveable_obstack): Delete declaration. - * parse.h: (permanent_obstack): Delete declaration. - * typeck.c: (permanent_obstack): Delete declaration. - -2002-08-04 Joseph S. Myers - - * gcj.texi (version-gcc): Increase to 3.3. - -2002-07-22 Tom Tromey - - * lex.c (java_lex): Check for `e' or `E' after 0. - -2002-07-21 Richard Henderson - - * lang.c (java_unsafe_for_reeval): New. - (LANG_HOOKS_UNSAFE_FOR_REEVAL): New. - -2002-07-21 Neil Booth - - * jcf-path.c (GET_ENV_PATH_LIST): Remove. - (jcf_path_init): Use GET_ENVIRONMENT. - -2002-07-10 Roger Sayle - Zack Weinberg - - * builtins.c (initialize_builtins): Remove defines that - handled C/C++ specific junk hereby removed from builtins.def. - -2002-07-07 Neil Booth - - * lang.c (java_post_options): Update prototype. - -2002-07-05 Roger Sayle - - * builtins.c (initialize_builtins): Ignore the additional - parameter to DEF_BUILTIN. Handle more C/C++ specific junk in - the builtins.def file. - -2002-07-01 Tom Tromey - - For PR libgcj/7073: - * parse.y (patch_incomplete_class_ref): Handle VOID_TYPE - specially. - -2002-07-01 Roger Sayle - - * java/decl.c (builtin_function): Accept additional parameter. - (java_init_decl_processing): Pass an additional NULL_TREE - argument to builtin_function. - -2002-06-29 T.J. Mather - - * gcj.texi: Fixed gcj invocation example so that it compiles. - -2002-06-26 Kaveh R. Ghazi - - * lex.c (java_init_lex): Avoid incorrect hardcoded constant 11. - * parse.y (mark_parser_ctxt): Likewise. - (check_modifiers, declare_local_variables): Avoid incorrect - hardcoded constant 10. - - * lex.c (java_read_char): Avoid "comparison is always true" - warning. - -2002-06-25 Andreas Schwab - - * expr.c (JSR): Avoid undefined operation on PC. - -2002-06-21 Kaveh R. Ghazi - - * decl.c (clear_binding_level): Const-ify. - -2002-06-13 Akim Demaille - - * parse.y (class_declaration, interface_declaration): Make sure - all their rules have an action, in order to avoid meaningless `$$ - = $1' and their type clashes. - -2002-06-11 Tom Tromey - - * jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC. - * parse-scan.y (statement_without_trailing_substatement): Added - assert_statement. - (assert_statement): New rule. - * java-tree.h (struct lang_type) [assertions]: New field. - (TYPE_USES_ASSERTIONS): New macro. - (CLASS_USES_ASSERTIONS): Likewise. - (FIELD_SYNTHETIC): New define. - * lex.c (java_lval;): Added ASSERT_TK. - * parse.y (ASSERT_TK): Added. - (statement_without_trailing_substatement): Added assert_statement. - (assert_statement): New rule. - (build_assertion): New function. - (maybe_generate_pre_expand_clinit): Create and initialize - $assertionsDisabled. - (lookup_package_type): Removed decl. - * keyword.h: Rebuilt. - * keyword.gperf (assert): New token. - -2002-06-10 Akim Demaille - - * parse.y (interface_type_list, class_member_declaration) - (unary_expression_not_plus_minus): Remove duplicate %type. - Whitespace changes. - -2002-06-09 Tom Tromey - - * Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H. - - * parse.y (method_header): Give error message in all cases. - Fixes PR java/6865. - -2002-06-10 Bryce McKinlay - - Don't use RTL inlining. Fix for PR java/6820. - * lang.c (LANG_HOOKS_POST_OPTIONS): Define. - (flag_really_inline): New. - (java_decode_option): Set flag_really_inline if -finline-functions - is seen. - (java_post_options): New function. Turn off inlining unless - flag_really_inline is set. - -2002-06-10 Bryce McKinlay - - * gjavah.c (throwable_p): Accept argument as either a classname or - signature fragment. Create null-terminated classname string for super - when calling itself recursively. - (decode_signature_piece): Skip first character from class name - signature when calling throwable_p. - -2002-06-08 H.J. Lu (hjl@gnu.org) - - * jcf-path.c (jcf_path_init): Allocate 1 more byte for string. - -2002-06-04 Tom Tromey - - * jcf-write.c (perform_relocations): Optmize a goto to a goto. - -2002-06-04 Michael Koch - - * gcj.texi (Input Options): Fixed typo. - -2002-06-04 Zack Weinberg - - * java-tree.h, class.c, expr.c, jcf-parse.c, parse.y, - typeck.c, verify.c: Remove all #if JAVA_USE_HANDLES blocks, - all mention of CLASS_TO_HANDLE_TYPE or HANDLE_TO_CLASS_TYPE, - and all now-pointless local variables. Rename other local - variables to reflect their not being handles. - - * java-tree.h, jcf-dump.c, jcf-io.c: Remove all - #if JCF_USE_STDIO blocks. - - * parse.y: Add missing semicolon at end of rule. - -2002-06-03 Geoffrey Keating - - * check-init.c (attach_initialized_static_class): Delete, unused. - * parse.y: Use htab_t instead of struct hashtable, update - all uses. - * java-tree.h: Include hashtab.h instead of hash.h. - (struct lang_decl_func): Use htab_t, set up for gengtype. - (struct init_test_hash_entry): Delete. - (struct treetreehash_entry): New. - (java_treetreehash_find): New - (java_treetreehash_new): New prototype. - (java_treetreehash_create): New prototype. - (java_mark_tree): Delete prototype. - (java_hash_hash_tree_node): Delete prototype. - (java_hash_compare_tree_node): Delete prototype. - (attach_initialized_static_class): Delete prototype. - * expr.c (build_class_init): Update to use java_treetreehash - functions. - (java_expand_expr): Update to use htab_t. - (emit_init_test_initialization): Likewise. - * decl.c (java_mark_tree): Delete. - * class.c (init_test_hash_newfunc): Delete. - (java_hash_hash_tree_node): Delete. - (java_hash_compare_tree_node): Delete. - (add_method_1): Update to use java_treetreehash functions. - (JAVA_TREEHASHHASH_H): New macro. - (java_treetreehash_hash): New function. - (java_treetreehash_compare): New function. - (java_treetreehash_find): New function. - (java_treetreehash_new): New function. - (java_treetreehash_create): New function. - * Make-lang.in (JAVA_TREE_H): Replace hash.h by HASHTAB_H. - - * Make-lang.in (java/parse.o): Depend on debug.h. - * java-tree.h (struct lang_identifier): Use gengtype. - (union lang_tree_node): New. - (struct lang_decl_func): Use gengtype. - (struct lang_decl_var): Likewise. - (struct lang_decl): Likewise. - * parse.y: Include debug.h. - * lang.c (LANG_HOOKS_MARK_TREE): Delete. - - * lang.c (struct language_function): New dummy structure. - - * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Set - descriminator for DECL_LANG_SPECIFIC. - (struct lang_decl_func): Rename from struct lang_decl. - (enum lang_decl_desc): New. - (struct lang_decl): Make it a union. Update all the accessor macros. - (struct lang_type): Use gengtype. - * class.c (add_method_1): Set descriminator for DECL_LANG_SPECIFIC. - * decl.c (java_dup_lang_specific_decl): All lang_decl structures - are now the same size. - (lang_mark_tree): Use gengtype to mark TYPE_LANG_SPECIFIC; - use discriminator to mark DECL_LANG_SPECIFIC. - - * Make-lang.in (gt-java-builtins.h): New rule. - (java/builtins.o): Add dependency on gt-.h. - * builtins.c: Use gengtype for roots. - (union string_or_tree): Use gengtype. - (struct builtin_record): Use gengtype. - * config-lang.in (gtfiles): Add builtins.c. - - * Make-lang.in (gt-java-class.h, gt-java-constants.h, - gt-java-decl.h, gt-java-expr.h, gt-java-jcf-parse.h, - gt-java-jcf-write.h, gt-java-lang.h, gt-java-mangle.h, - gt-java-parse.h, gtype-java.h): Add rules to generate. - (parse.o): Add dependency on gt-java-parse.h, gt-java.h. - (class.o): Add dependency on gt-*.h. - (constants.o): Likewise. - (decl.o): Likewise. - (expr.o): Likewise. - (jcf-parse.o): Likewise. - (jcf-write.o): Likewise. - (lang.o): Likewise. - * config-lang.in (gtfiles): New. - * class.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. - * constants.c: Replace uses of ggc_add_* with GTY markers. - Include gt-*.h. - * decl.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. - * expr.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. - * java-tree.h: Replace uses of ggc_add_* with GTY markers. - * jcf-parse.c: Replace uses of ggc_add_* with GTY markers. - Include gt-*.h. - * jcf-write.c: Replace uses of ggc_add_* with GTY markers. - Include gt-*.h. - * lang.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. - * mangle.c: Replace uses of ggc_add_* with GTY markers. Include - gt-*.h. - * parse.y: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. - Include gtype-java.h. - -2002-06-02 Tom Tromey - - Fix for PR java/5913: - * parse.y (patch_binop): Call patch_string on op1. - -2002-06-02 Tom Tromey - - Fix for PR java/1343, PR java/6336: - * parse.y (make_nested_class_name): Remove extraneous `else'; fix - formatting. Changed return type. - (anonymous_class_counter): Moved to top of file. - (maybe_make_nested_class_name): Append number to class name for - function-local classes. - -2002-05-28 Zack Weinberg - - * decl.c, jcf-parse.c, parse.y, typeck.c: Include real.h. - * Make-lang.in: Update dependency lists. - -2002-05-18 Mark Mitchell - - * gjavah.c (throwable_p): Do not free the name of the class after - passing it to find_class. - * java-tree.h (CLASS_BEING_LAIDOUT): Remove duplicate definition. - * jcf-io.c (dirent.h): Include it. - (fnmatch.h): Likewise. - (compare_path): New function. - (java_or_class_file): Likewise. - (memoized_dirlist_entry): New type. - (memoized_dirlist_lookup_eq): New function. - (memoized_dirlists): New variable. - (caching_stat): New function. - (memoized_class_lookup_eq): New function. - (memoized_class_lookups): Likewise. - (find_class): Use memoized_class_lookups and caching_stat. - * jcf.h (JCF_USE_SCANDIR): Define. - * parse.y (java_expand_classes): Write the class files in reverse - order. - -2002-05-16 Rainer Orth - - * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. - -2002-05-13 Mark Mitchell - - * jcf-write.c (write_classfile): Unlink the temporary file if it - cannot be renamed. Use concat to build up the name of the - temporary file. - -2002-05-08 Mark Mitchell - - * jcf-write.c (write_classfile): Write the file to a - temporary file and then rename it. - -2002-05-07 Tom Tromey - - * gjavah.c (throwable_p): Use xstrdup, not strdup. - - Fix for PR java/1200: - * gjavah.c (throwable_p): New function. - (decode_signature_piece): Use it. A `WeakReference' isn't the - same as a `jweak'. - Include hashtab.h. - (gcjh_streq): New function. - -2002-05-07 Andreas Jaeger - - * parse.y (finish_for_loop): Fix if statement. - -2002-05-06 Tom Tromey - - Fix for PR java/5941: - * parse.y (finish_for_loop): Set SUPPRESS_UNREACHABLE_ERROR for - loop update expression. - (java_complete_lhs): Use SUPPRESS_UNREACHABLE_ERROR. - * java-tree.h (SUPPRESS_UNREACHABLE_ERROR): New macro. - -2002-05-04 Mark Wielaard - - For PR java/6519: - * parse.y (build_string_concatenation): Return just op1 only when op2 - is null and op1 is a STRING_CST, otherwise always construct a - StringBuffer. - -2002-04-27 Tom Tromey - - For PR java/6382: - * parse.y (string_convert_int_cst): New function. - (merge_string_cste): Use it. - -2002-04-25 Neil Booth - - * java-tree.h (java_parse_file): Update. - (java_set_yydebug): Remove. - * jcf-parse.c (yydebug): Remove. - (java_set_yydebug): Die. - (java_parse_file): Update. - * lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. - -2002-04-24 Tom Tromey - - For PR java/6425: - * parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose - EXPR_WFL_QUALIFICATION of qual_wfl. - -2002-04-23 Per Bothner - - * expr.c (PRE_JSR): Call NOTE_LABEL for return address. - * java-tree.h (BCODE_RETURN_TARGET): Removed - never set. - (BCODE_TARGET): Remove BCODE_RETURN_TARGET. - -2002-04-23 Tom Tromey - - For PR java/6314: - * jvspec.c (lang_specific_driver): Use --resource, not -R. Also - recognize `-fcompile-resource='. - * gcj.texi (Invoking gcj): Use --resource, not -R. Expanded text - a bit. - -2002-04-22 Alexandre Petit-Bianco - - * jcf-parse.c: (yyparse): Don't prepend "./" to relative - paths. Fixes PR java/2791. - -2002-04-19 Andrew Haley - - * jcf-write.c (push_long_const): lo, hi: New variables. - Use rshift_double to extract the high part of a 64-bit long. - Use WORD_TO_INT to extract the low part. - - * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned - HOST_WIDE_INT for num. Use JPOOL_UINT to get it. - CONSTANT_Double: Use JPOOL_UINT to get both halve of a double. - -2002-04-18 Neil Booth - - * typeck.c (incomplete_type_error): Remove. - -2002-04-18 Bryce McKinlay - - * 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. - -2002-04-16 Mark Wielaard - - * jcf-write.c (generate_bytecode_insns): Only write const_0 if not - negative zero. - -2002-04-16 Bryce McKinlay - - Fix for PR java/6294: - * parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner - interfaces. - -2002-04-15 Bryce McKinlay - - Fix for PR java/6085: - * parse.y (patch_method_invocation): Always use build_access_to_thisn - to get enclosing "this" argument for inner-class constructor - invocation. Pass correct arguments to build_access_to_thisn. - -2002-04-10 Andreas Jaeger - - * gcj.texi (Input Options): Fix extdirs patch. - -2002-04-10 Anthony Green - - * jcf-path.c (jcf_path_init) : Clean up local extdirs declaration. - -2002-04-09 Anthony Green - - * gcj.texi (Input Options): Add --extdirs documentation. - * jcf-dump.c (OPT_extdirs): New macro. - (options): Add extdirs option. - (help): Describe --extdirs. - (main): Handle OPT_extdirs. - * gjavah.c (OPT_extdirs): New macro. - (options): Add extdirs option. - (help): Describe --extdirs. - (main): Handle OPT_extdirs. - * jcf-path.c (jcf_path_init): Add extdirs support. - (jcf_path_extdirs_arg): New function. - (extensions): New variable to hold extensions path entries. - * jvspec.c: Remove -fextdirs= when compiling main(). - * lang.c (java_decode_option): Handle -fextdirs=. - * jcf.h (jcf_path_extdirs_arg): Declare new function. - * Make-lang.in: Compile jcf-path with version info for use in - identifying the appropriate libgcj.jar. - -2002-04-08 Tom Tromey - - For PR libgcj/5303: - * .cvsignore: Added rmic.1 and rmiregistry.1. - * gcj.texi (Top): Link to new nodes. - (Invoking rmic): New node. - (Invoking rmiregistry): Likewise. - * Make-lang.in (java.generated-manpages): Added rmic.1 and - rmiregistry.1. - (java.maintainer-clean): Likewise. - ($(srcdir)/java/rmic.1): New target. - ($(srcdir)/java/rmiregistry.1): Likewise. - (java.install-man): Handle rmic.1 and rmiregistry.1. - -2002-04-08 Bryce McKinlay - - * gcj.texi (Invocation): Update JvAttachCurrentThread documentation. - Add note about handling uncaught exceptions. Add an exception handler - to example. - -2002-04-08 Bryce McKinlay - - * parse.y (resolve_qualified_expression_name): Clear "from_super" flag - after using it to patch CALL_EXPR. - -2002-04-08 Bryce McKinlay - - * gcj.texi (Invocation): Document CNI invocation API. - -2002-04-04 Neil Booth - - * expr.c (truthvalue_conversion): Rename. Update. - (expand_compare): Update. - * java-tree.h (java_truthvalue_conversion): New. - * lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine. - -2002-04-01 Neil Booth - - * java-tree.h (java_mark_addressable): New. - * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. - * typeck.c (mark_addressable): Rename, update. - -2002-04-01 Neil Booth - - * expr.c (build_java_binop): Update. - * java-tree.h (java_signed_type, java_unsigned_type, - java_signed_or_unsigned_type): Update. - * lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, - LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. - * parse.y (patch_binop): Update. - * typeck.c (signed_or_unsigned_type, unsigned_type, - signed_type): Update. - -2002-03-31 Neil Booth - - * lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. - (java_dummy_print): Remove. - (lang_print_error): Rename. Exit early if inhibiting output. - (inhibit_error_printing_function): New. - (java_init): Don't set hook. - (lang_init_source): Use new boolean. - -2002-03-29 Martin Kahlert - - * parse.y (do_resolve_class): Fix infinite recursion. - -2002-03-29 Tom Tromey - - * parse.y (check_inner_circular_reference): Ignore incomplete - types. - -2002-03-29 Neil Booth - - * Make-lang.in (builtins.o): Update. - * boehm.c (get_boehm_type_descriptor): Update. - * builtins.c: Include langhooks.h. - * decl.c (java_init_decl_processing): Update. - * java-tree.h (java_type_for_mode, java_type_for_size): New. - * lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE): - Redefine. - * typeck.c (type_for_mode, type_for_size): Update. - -2002-03-29 Martin Kahlert - - * lex.c (java_new_lexer): Alias "646" to DEFAULT_ENCODING. - -2002-03-28 Tom Tromey - - * except.c (expand_end_java_handler): If the handler type is NULL, - use java.lang.Throwable. Fixes PR java/5986. - -2002-03-28 Alexandre Petit-Bianco - - Fix for PR java/4715: - * jcf-parse.c (parse_source_file_3): New function. - (read_class): Call it. - (java_parse_file): Likewise. - -2002-03-28 Jan Hubicka - - * java/lang.c (java_init_options): Set flag_trapping_math to 0. - -2002-03-28 Bryce McKinlay - - * parse.y (resolve_package): Initialize "decl". - (lookup_package_type): Remove unused function. - -2002-03-28 Bryce McKinlay - - Fix for PR java/5993: - * parse.y (resolve_package): Return the decl if resolution was - successful. Don't special case "java.lang" and "java.lang.reflect" - packages. Set type_name to the merged identifier. - (resolved_qualified_expression_name): Print error using "name" if - resolve_package returns NULL_TREE. - -2002-03-27 Tom Tromey - - * expr.c (expand_invoke): Don't generate null pointer check if - we're calling . - -2002-03-27 Neil Booth - - * expr.c (java_lang_expand_expr): Rename java_expand_expr, - fix prototype. - * java-tree.h (java_lang_expand_expr): Similarly. - * lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine. - (java_init): Don't set hook. - -2002-03-27 Bryce McKinlay - - Fix for PR java/5850: - * parse.y (lookup_field_wrapper): Call itself recursively for enclosing - context if field was not found in the current scope. - * expr.c (lookup_field): Don't look in enclosing contexts. - -2002-03-26 Tom Tromey - - Fix for PR java/5942: - * parse.y (init_src_parse): Added sanity check. - * parse.h (struct parser_ctxt) [modifier_ctx]: Array has 12 - elements, not 11. - -2002-03-26 Neil Booth - - * decl.c (lang_mark_tree): Rename java_mark_tree. - * java-tree.h (java_mark_tree): New. - * java-lang.c (LANG_HOOKS_MARK_TREE): Redefine. - -2002-03-25 Zack Weinberg - - * lex.c: Change java_perform_atof to take normal parameters - instead of a pointer to a parameter block. Call it directly - from java_lex. - -2002-03-22 Mark Wielaard - - Fix for PR java/5368: - * parse.y (resolve_qualified_expression_name): Use decl not field_decl - when printing error message. - -2002-03-25 Neil Booth - - * decl.c (maybe_build_cleanup): Remove. - -2002-03-22 Tom Tromey - - Andrew Haley - - * expr.c (build_field_ref): Don't build a check if the field is a - member of `this'. - -2002-03-21 Eric Blake - - Fix for PR java/6026: - * lex.c (java_lex): Fix parsing of consecutive floats. - -2002-03-21 Tom Tromey - - * parse.y (build_access_to_thisn): Stop when FROM is not an inner - class. - -2002-03-21 Neil Booth - - * cp-tree.h (pushdecl, pushlevel, poplevel, set_block, - insert_block, getdecls, kept_level_p, global_bindings_p): New. - -2002-03-20 Nic Ferrier - - * gcj.texi: @code{gcj} becomes @command{gcj}. - @code{gcc} becomes @command{gcc}. - GcjRaw changed to gnu.gcc.RawData. - -2002-03-20 Neil Booth - - * decl.c (start_java_method): Use new hook. - * lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. - (java_init): Remove old hook. - -2002-03-18 Alexandre Petit-Bianco - - * builtins.c (define_builtin): Do nothing if `type' is null. - Fixes PR java/5876. - -2002-03-18 Bryce McKinlay - - * parse.y (parser_check_super_interface): Fix error message - grammar/order. - -2002-03-17 Kaveh R. Ghazi - - * jcf-parse.c (get_constant): Delete unused variables. - -2002-03-17 Neil Booth - - * java-tree.h (java_parse_file): New. - * jcf-parse.c (yyparse): Rename java_parse_file. - * lang.c (LANG_HOOKS_PARSE_FILE): Redefine. - -2002-03-16 Bryce McKinlay - - * parse.y (craft_constructor): Return the constructor decl. - (java_expand_classes): Update comments. - (lookup_method_invoke): Call fix_constructors immediately for - anonymous class. Fixes PR java/5935. - -2002-03-15 Anthony Green - - * jcf-parse.c (yyparse): Don't emit class registration - constructor when compiling resource files. - -2002-03-12 Kaveh R. Ghazi - - * lang.c (java_tree_code_type, java_tree_code_length, - tree_code_name): Delete. - (tree_code_type, tree_code_length, tree_code_name): Define. - (java_init): Don't try to copy into the various tree_code - arrays. - -2002-03-12 Tom Tromey - - * jcf-parse.c (get_constant) [CONSTANT_String]: String values are - UTF-8, not UCS-2. Fixes PR java/5923. - - * parse.y (qualify_ambiguous_name): Handle case where QUAL_WFL is - a call_expr wrapped in a convert. Fixes PR java/5848. - -2002-03-12 Bryce McKinlay - - * jcf-write.c (write_classfile): Improve error strings. - -2002-03-11 Eric Blake - - * lex.c: Adjust comments to GNU standards. - -2002-03-11 Eric Blake - - Fix for PR java/5902: - * lex.c (java_lex): Fix parsing of literals. - -2002-03-11 Bryce McKinlay - - * parse.y (patch_assignment): Wrap the right-hand-side with a save_expr - to prevent it getting evaluated twice in the store checking case. - * expr.c (build_java_arraystore_check): Unwrap SAVE_EXPR's when - examining OBJECT. - -2002-03-09 Bryce McKinlay - - * decl.c (java_init_decl_processing): Make sure class_type_node - alignment is not less than 64 bits if hash synchronization is enabled. - -2002-03-08 Per Bothner - - * parse.y (java_complete_lhs): Check if patch_assignment - returned an error-mark. - - * parse.y (try_builtin_assignconv): Don't special-case zero. - -2002-03-08 Per Bothner - - Fix for PR java/5812. - * expr.c (build_java_jsr): Take pc arguments, and do lookup_label - here instead of in JSR macro. Likewise with load_type_state call. - Do the latter on if the return_pc has been verified (the jsr returns). - (JSR): Now just call build_java_jsr. - -2002-03-07 Jeff Sturm - - * java/Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define. - (java.install-common): Link native driver to - JAVA_TARGET_INSTALL_NAME. - -2002-03-05 David Billinghurst - - * builtins.c(cos_builtin): method_return_type ATTRIBUTE_UNUSED - * builtins.c(sin_builtin): Likewise - * builtins.c(sqrt_builtin): Likewise - -2002-03-03 Zack Weinberg - - * java/expr.c, java/jcf-parse.c, java/lex.c: - Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef - REAL_ARITHMETIC blocks unconditional. Delete some further - #ifdef blocks predicated on REAL_ARITHMETIC. - -2002-03-03 Kaveh R. Ghazi - - * class.c (init_class_processing): Use ARRAY_SIZE in lieu of - explicit sizeof/sizeof. - * decl.c (java_init_decl_processing): Likewise. - * jcf-parse.c (init_jcf_parse): Likewise. - * parse.y (init_src_parse): Likewise. - -2002-03-02 Per Bothner - - Make --CLASSPATH by a synonym for --classpath and -classpath. - Implement --bootclasspath. - * jcf-path.c (classpath_u): Rename static variable to classpath_user. - (classpath_l): Remove. - (jcf_path_CLASSPATH_arg): Remove. - (jcf_path_bootclasspath_arg): New function. - (jcf_path_seal): Simplify accordingly. - - * jcf.h (jcf_path_bootclasspath_arg): New declarations. - (jcf_path_CLASSPATH): Remove declaration. - * jvspec.c (jvgenmain_spec): Also accept -fbootclasspath*. - (lang_specific_driver): Translate -bootclasspath. - * lang-options.h: Add --bootclasspath. Update --CLASSPATH. - * lang.c (decode_lang_options): Do jcf_path_init first. - Handle -fCLASSPATH same as -fclasspath. Also process -fbootclasspath. - * gjavah.c: Also handle --bootclasspath. - Handle --CLASSPATH as a synonum for --classpath. - * jcf-dump.c: Likewise. - - "." is not part of system path, but is the default for --classpath. - * jcf-path.c (jcf_path_init): Don't add "." to sys_dirs. - (jcf_path_seal): Add "." if no CLASSPATH specified. - - * gcj.texi: Document changes. - -2002-03-01 Bryce McKinlay - - * expr.c (build_java_arraystore_check): Fix formatting. - -2002-02-28 Alexandre Petit-Bianco - - Fix for PR java/5758, java/5632: - * jcf-parse.c (load_class): Renamed local variable, consider `.' an - inner-class separator too. - * parse.y (do_resolve_class): New local `decl_result.' - Progressively build a name for what can have been loaded. - -2002-02-28 Bryce McKinlay - - * expr.c (java_array_data_offset): Removed function. - (JAVA_ARRAY_LENGTH_OFFSET): Removed macro. - (build_java_array_length_access): Obtain "length" value using a - COMPONENT_REF, instead of INDIRECT_REF and arithmetic. - (build_java_arrayaccess): Correct comment. Access "data" using a - COMPONENT_REF, and return an ARRAY_REF instead of an INDIRECT_REF. - (build_java_arraystore_check): New function. - (expand_java_arraystore): Use build_java_arraystore_check. - * parse.y (patch_assignment): Simplify code to insert a store check - when lvalue is an ARRAY_REF. Use build_java_arraystore_check. - * check-init.c (check_init): Update to reflect that an array length - access is now a COMPONENT_REF. - * gcj.texi (Code Generation): Improve documentation of - -fno-bounds-check. Add documentation for -fno-store-check. - * java-tree.h (flag_store_check): Declare. - (build_java_arraystore_check): Declare. - * lang.c (flag_store_check): Initialize to 1. - (lang_f_options): Add store-check option. - * jvspec.c: Don't pass store-check option to jvgenmain. - * lang-options.h: Add help string for -fno-store-check. - -2002-02-28 Neil Booth - - * decl.c (copy_lang_decl): Rename java_dup_lang_specific_decl. - * java-tree.h (java_dup_lang_specific_decl): New. - * lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. - -2002-02-27 Zack Weinberg - - * builtins.c, decl.c: Delete traditional-mode-related code - copied from the C front end but not used, or used only to - permit the compiler to link. - -2002-02-22 Tom Tromey - - Fix for PR java/2369: - * jvspec.c (verify_class_name): New function. - (lang_specific_driver): Call it. - (JAVA_START_CHAR_P): New macro. - (JAVA_PART_CHAR_P): Likewise. - -2002-02-22 Per Bothner - - * class.c: Change vtable to be more compatible with g++ v3 abi. - (get_dispatch_table): Prepend offset-to-top (always 0) and - type_info pointer (currently unimplemented hence NULL) to vtable. - Specifically, prepend offset-to-top and typeinfo ptr (currently null). - (make_class_data): Variable dtable_start_offset is sizeof 2 pointers. - Adjust vtable pointers by dtable_start_offse - i.e. skip new words. - (build_dtable_decl): Add declarations for new fields. - -2002-02-20 Per Bothner - - * parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call - to finit$ (otherwise generate_bytecode_insns drops it). However, we - don't need to set it on the COMPOUND_EXPR - the caller does that. - -2002-02-20 Nic Ferrier - - * gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option - `--CLASSPATH' becomes `--classpath.' - * gjavah.c: Likewise. - * jcf-dump.c: Likewise. - * lang-options.h: Likewise. - * lang.c: Likewise. - * jcf-path.c: Updated comment. - (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' - (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' - * jcf.h (jcf_path_CLASSPATH_arg): Ditto. - (jcf_path_CLASSPATH_arg): Ditto. - (classpath_u): Updated leading comment. - -2002-02-20 Per Bothner - - * builtins.c (check_for_builtin): New function. - (build_call_or_builtin): Remove. - * java-tree.h: Update accordingly. - * expr.c (expand_invoke): Use build + check_for_builtin instead - of build_call_or_builtin. - * parse.y (patch_invoke): Likewise. This avoids needlessly creating - a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER - flag (which had caused jcf-write to incorrectly emit invokevirtual). - -2002-02-17 Tom Tromey - - * java-tree.h (TYPE_STRICTFP): New macro. - (struct lang_type) [strictfp]: New field. - (CLASS_STRICTFP): New macro. - (METHOD_STRICTFP): New macro. - (struct lang_decl) [strictfp]: New field. - * parse.y (method_header): Disallow strictfp constructor or - abstract method. - (STRICT_TK): Move before MODIFIER_TK. - * parse.h (CLASS_MODIFIERS): Added ACC_STRICT. - (METHOD_MODIFIERS): Likewise. - (INTERFACE_MODIFIERS): Likewise. - * jcf-write.c (get_access_flags): Likewise. - * class.c (set_class_decl_access_flags): Recognize ACC_STRICT. - (add_method_1): Likewise. - (get_access_flags_from_decl): Likewise. - * jcf-dump.c (print_access_flags): Print in standard order. Also, - recognize strictfp flag. - * jcf.h (ACC_STRICT): New define. - -2002-02-12 David Billinghurst - - * class.c(build_utf8_ref): Move declaration of decl_size - -2002-02-07 Tom Tromey - - * gcj.texi (Input Options): --CLASSPATH does not suppress system - path. - -2002-02-04 Anthony Green - - * class.c (build_utf8_ref): Put UTF-8 constants into merged - sections if available. - -2002-02-04 Bryce McKinlay - - * parse.y (java_expand_classes): Fix typo in static field loop. - -2002-02-02 Richard Henderson - - * class.c (add_field): Mark static fields external. - (build_class_ref): Remove redundant set. - * parse.y (java_expand_classes): Mark static fields of classes - to be compiled as local. - * jcf-parse.c (parse_class_file): Likewise. - -2002-02-02 Nic Ferrier - - * gcj.texi (About CNI): New node. - -2002-02-01 Craig Rodrigues - - PR java/5080 - * jcf-parse.c : Check for HAVE_LOCALE_H before using - setlocale() with LC_CTYPE as a parameter. - * jv-scan.c: Same. - -2002-01-31 Joseph S. Myers - - * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): - Follow GNU Coding Standards for --version. - -2002-01-28 Tom Tromey - - * expr.c (build_jni_stub): Ensure storage for `meth' is - generated. - * parse.y (java_complete_expand_methods): Set - current_function_decl before building JNI stub. - -2002-01-26 Andreas Tobler - - * gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not - BUILT_IN_SQRTF. - -2002-01-22 Tom Tromey - - * decl.c (java_init_decl_processing): Use add_predefined_file. - Predefine RawData.java. - (predef_filenames): Removed. - (java_init_decl_processing): Don't register predef_filenames. - * jcf-parse.c (add_predefined_file): New function. - (predefined_filename_p): Rewrote. - (predefined_filename_p): No longer static. - * decl.c (java_init_decl_processing): Call initialize_builtins. - * Make-lang.in (JAVA_OBJS): Added builtins.o. - (java/builtins.o): New target. - * builtins.c: New file. - * parse.y (patch_invoke): Use build_call_or_builtin. - * java-tree.h (build_call_or_builtin): Declare. - (initialize_builtins): Declare. - (java_set_exception_lang_code): Removed unused declaration. - (PREDEF_FILENAMES_SIZE): Removed. - (java_tree_index): Added JTI_PREDEF_FILENAMES. - (predef_filenames): New define. - (add_predefined_file): Declare. - (predefined_filename_p): Declare. - * expr.c (expand_invoke): Use build_call_or_builtin. - -2002-01-22 Kaveh R. Ghazi - - * parse.y (patch_switch_statement): Fix format specifier. - -2002-01-16 Tom Tromey - - More for PR java/5365: - * gjavah.c (print_stub_or_jni): Cause exception to be thrown by - default. - (process_file): Generate include for - java.lang.UnsupportedOperationExceptions. - -2002-01-15 Andreas Jaeger - - * .cvsignore: Add man pages. - -2002-01-15 Tom Tromey - - Fix for PR java/5365: - * gjavah.c (process_file): Turn class name into a file name. - -2002-01-14 Matthias Klose - - * gcj.texi: Fix whitespace and formatting errors in the - synopsis of the man pages. Update copyright. - -2002-01-14 Tom Tromey - - For PR libgcj/5303: - * Make-lang.in (java.install-man): Handle jv-convert man page. - (java.generated-manpages): Added jv-convert.1. - (java.uninstall): Remove jv-convert.1. - (java.maintainer-clean): Likewise. - ($(srcdir)/java/jv-convert.1): New target. - * gcj.texi (Top): Link to jv-convert node. - (Individual utilities): Likewise. - (Invoking jv-convert): New node. - -2001-01-10 Jeff Sturm - Martin Kahlert - - * jcf-parse.c (get_constant): Don't swap lo/hi for big - endian targets when HOST_BITS_PER_WIDE_INT >= 64. - -2002-01-03 Graham Stott - - * class.c (compile_resource_file): Update copyright date. - Constify filename parameter. - (java-tree.h): Update copyright date. - (compile_resource_file): Constify filename parameter. - -2002-01-03 Graham Stott - - * gcc/jcf-parse.c: Update copyright date. - (yyparse): Constify resource_filename. - -2002-01-02 Kaveh R. Ghazi - - * parse.y (src_parse_roots): Don't needlessly zero init. - -2001-12-31 Tom Tromey - - * parse.y (dump_java_tree): New function. - (source_end_java_method): Call it. - (end_class_declaration): Likewise. - * lang.c (java_decode_option): Call dump_switch_p. - -2001-12-28 Tom Tromey - - * gen-table.pl: Don't process characters after \uffff. Added - comment pointing to input file. - -2001-12-28 Kaveh R. Ghazi - - * gen-table.pl: Const-ify output. Document the location of a - suitable unicode input file. - - * chartables.h: Regenerate. - -2001-12-26 Kaveh R. Ghazi - - * chartables.h: Const-ify. - * gjavah.c (options): Likewise. - * jcf-dump.c (options): Likewise. - * jv-scan.c (options): Likewise. - * lex.c (java_start_char_p, java_part_char_p): Likewise. - * parse.y (binop_lookup): Likewise. - -2001-12-23 Kaveh R. Ghazi - - * Make-lang.in (keyword.h): Pass -C to gperf to const-ify - the static arrays that are output. - * jvspec.c (jvgenmain_spec): Make static. - * keyword.gperf (struct java_keyword, java_keyword): Const-ify. - * keyword.h: Regenerate. - * lang.c (string_option, process_option_with_no, lang_f_options, - lang_W_options): Const-ify. - * lex.c (java_lex): Likewise. - -2001-12-21 Richard Henderson - - * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into .. - (get_boehm_type_descriptor): ... here. Arrange for the - TREE_TYPE to get set properly. - -2001-12-21 Richard Henderson - - * class.c (compile_resource_file): Set TREE_PUBLIC on the constructor - only if the target requires collect2. - - * class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL. - -2001-12-20 Tom Tromey - - For PR java/4509: - * parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute - CAN_COMPLETE_NORMALLY for the node. - * jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't - generate code for second branch if first branch can't complete - normally. - (generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to - the loop head if the loop body can't complete normally. - -2001-12-20 Tom Tromey - - For PR java/4766: - * jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle - case where `finally' clause can't complete normally. - -2001-12-20 Tom Tromey - - Fixes PR java/5057: - * parse.y (analyze_clinit_body): Added this_class parameter. - Check for more cases where we must keep . - (maybe_yank_clinit): Cleaned up flow control. - -2001-12-20 Bryce McKinlay - - * decl.c (java_init_decl_processing): Don't initialize - finit_leg_identifier_node. - * java-tree.h (java_tree_index): Remove JTI_FINIT_LEG_IDENTIFIER_NODE. - (finit_leg_identifier_node): Remove. - (ID_FINIT_P): Don't check for JTI_FINIT_LEG_IDENTIFIER_NODE. - -2001-12-20 Bryce McKinlay - - * mangle.c (mangle_member_name): Don't special-case for - NO_DOLLAR_IN_LABEL. - * mangle_name.c (unicode_mangling_length): Likewise. - (append_unicode_mangled_name): Likewise. - * parse.y (make_nested_class_name): Remove dead NO_DOLLAR_IN_LABEL - code. - -2001-12-20 Bryce McKinlay - - * expr.c (build_java_array_length_access): Don't force null pointer - check unless flag_check_references is set. - -2001-12-20 Tom Tromey - - Fix for PR java/3417: - * parse.y (patch_assignment): Added special processing for - `return'. - (patch_return): Don't convert booleans to integers, and don't - special-case `null'. - -2001-12-20 Joseph S. Myers - - * config-lang.in (diff_excludes): Remove. - -2001-12-17 Joseph S. Myers - - * gcj.texi: Update link to GCC manual. - -2001-12-17 Tom Tromey - - * parse.y (link_nested_class_to_enclosing): Removed useless - statement. - -2001-12-16 Tom Tromey - - * mangle.c (mangle_method_decl): Never emit `C2' constructor. - Fixes PR java/5088. - -2001-12-16 Joseph S. Myers - - * ChangeLog, Make-lang.in, class.c, expr.c, gcj.texi, java-tree.h, - jcf-parse.c, jcf-write.c, lex.c, parse.h, parse.y, verify.c: Fix - spelling errors. - -2001-12-16 Kaveh R. Ghazi - - * lex.c (java_read_unicode, java_lex): Use hex_p/hex_value. - -2001-12-16 Bryce McKinlay - - * decl.c (java_init_decl_processing): Build otable_type correctly. - otable_decl is an otable_type. - -2001-12-15 Bryce McKinlay - - * java-tree.h (otable_methods, otable_decl, otable_syms_decl, - otable_type, otable_ptr_type, method_symbol_type, - method_symbols_array_type, method_symbols_array_ptr_type): New - field/global tree definitions. - (flag_indirect_dispatch): New flag. - * decl.c (java_init_decl_processing): Initialize new otable and - otable_syms type nodes and decls. Add new field "index" to - method_type_node. - * class.c (build_method_symbols_entry): New function. - (make_method_value): Set "index" to to method's vtable index for - virtual methods when indirect-dispatch is not used. - (make_class_data): For indirect-dispatch, don't emit the dtable_decl, - and set vtable_method_count to -1. Set otable and otable_syms field - if indirect-dispatch is used and there was something to put in them. - (build_method_symbols_entry): New function. - (emit_offset_symbol_table): New function. - * expr.c (get_offset_table_index): New function. - (build_invokevirtual): Build array reference to otable at the index - returned by get_offset_table_index, and use the result as the vtable - offset. - (build_invokeinterface): Similar. - * jcf-parse.c (yyparse): If indirect-dispatch, call - emit_offset_symbol_table at the end of compilation, after all classes - have been generated. - * jvspec.c: Don't pass findirect-dispatch to jvgenmain. - * lang.c (flag_indirect_dispatch): Define. - (lang_f_options): Add indirect-dispatch flag. - -2001-12-14 Matthias Klose - - * gcj.texi: Markup for man page generation. Document missing - options printed by --help. - Terminate description of gij's -ms option with a dot. - * Make-lang.in ($(srcdir)/java/*.1): New targets. - (java.generated-manpages java.install-man, java.uninstall, - java-maintainer-clean) Updated. - -2001-12-14 Hans Boehm - - * class.c (get_dispatch_table): Fix java vtable layout - for TARGET_VTABLE_USES_DESCRIPTORS. - * decl.c (java_init_decl_processing): Initialize - alloc_no_finalizer_node, finalize_identifier_node. - * expr.c (class_has_finalize_method): New function. - (expand_java_NEW): Generate calls for finalizer-free allocation. - (build_invokevirtual): Fix java vtable layout for - TARGET_VTABLE_USES_DESCRIPTORS. - * java-tree.h (enum java_tree_index): New entries: - JTI_ALLOC_NO_FINALIZER_NODE, JTI_FINALIZE_IDENTIFIER_NODE. - (alloc_no_finalizer_node, finalize_deintifier_node): New macros. - (class_has_finalize_method): declare. - (HAS_FINALIZER_P): New macro. - * parse.y (patch_invoke): Generate calls for finalizer-free - allocation. - -2001-12-12 Matthias Klose - - * Make-lang.in: JAVA_INSTALL_NAME, JAVA_CROSS_NAME: Remove - whitespace at end of line. - -2001-12-11 Tom Tromey - - * lex.c (java_init_lex): Define wfl_to_string as - gnu.gcj.runtime.StringBuffer unless generating bytecode. - -2001-12-11 Jeff Sturm - - * class.c (make_method_value): Use null_pointer_node to - represent empty exception table. - -2001-12-10 Tom Tromey - - * check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT. - -2001-12-10 Douglas B. Rupp - - * Make-lang.in (jvspec.o): Add $(OUTPUT_OPTION). - -2001-12-09 Per Bothner - - * check-init.c (current_switch_has_default): New static field. - (check_init): Case DEFAULT_EXPR: Set current_switch_has_default. - Case SWITCH_EXPR: Save/restore current_switch_has_default. If no - DEFAULT_EXPR seen, simulate a default alternative that copies state. - -2001-12-09 Tom Tromey - - * check-init.c (check_init): Don't allow pre- or post- increment - or decrement of final variable. - (final_assign_error): Minor error message rewording. - -2001-12-08 Tom Tromey - - * java-tree.h: Fixed typo. - - * gjavah.c (decompile_method): Don't decompile to `return this' - for static methods. - - * gjavah.c (cxx_keywords): Re-sorted. - * lex.c (cxx_keywords): Re-sorted. - - * gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything - else. - - * gjavah.c (print_namelet): Clear subnamelets. - (HANDLE_METHOD): Set `method_printed' earlier. - -2001-12-07 Tom Tromey - - * lang.c (lang_f_options): Added - optimize-static-class-initialization. - (java_decode_option): Removed special case. - -2001-12-07 Per Bothner - - * check-init.c (check_init): Fix typo freeing memory twice. - -2001-12-05 Per Bothner - - Restore support for static class initialization optimization. - * java-tree.h (STATIC_CLASS_INIT_OPT_P): Re-enable. - * check-init.c (check_int): At end of BLOCK handle initialization - blocks, which used to be done in java_complete_expand_method but did - not handle the case where check_for_initialization might allocate - more than a word of bits. - * decl.c (lang_make_tree): The smic field is now a tree. - * expr.c (build_class_init): Set DECL_FUNCTION_INIT_TEST_CLASS field. - * java-tree.h (DECL_FUNCTION_INIT_TEST_TABLE): New macro. - - * parse.y (emit_test_initialization): Combine hash_lookup calls. - - * java-tree.h (DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND): - Change from a hash table to a list. - (struct_lang_decl): Change field 'smic' to match. - * class.c (add_method_1): Initialize - DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND to null list. - * parse.y (adjust_init_test_initialization): Removed - inlined into - - (java_expand_method_bodies): -here, since 'smic' is now a list. - (patch_invoke): Add to 'smic' list, instead of hash_lookup. - - * check-init.c (WORD_SIZE): Use BITS_PER_UNIT. - - * class.c (java_hash_compare_tree_node): Fix casts. - -2001-12-04 Per Bothner - - * check-init.c: Handle definite unassignment to finals in addition - to definite assignment. - (loop_current_locals): New field. - (num_current_locals, int start_current_locals, num_current_words): - Make static. - (SET_P, CLEAR_P, SET_BIT): Add needed but missing parentheses. - (ASSIGNED_P, UNASSIGNED_P, SET_ASSIGNED, SET_UNASSIGNED, - CLEAR_ASSIGNED, CLEAR_UNASSIGNED): New macros. - (get_variable_decl, check_final_reassigned): New functions. - (check_init, check_bool_init): Modify as needed for checking finals. - (check_for_initialization): Take extra parameter and return void. - Do extra start-up logic to check final fields for assignment. - * parse.y (check_static_final_variable_assignment_flag, - reset_static_final_variable_assignment_flag, check_final_assignment, - check_final_variable_local_assignment_flag, - reset_final_variable_indirect_assignment_flag, - reset_final_variable_global_assignment_flag): Remove functions. - (java_complete_expand_methods, outer_field_access_fix, - patch_assignment): Remove no-longer used logic. - * java-tree.h (DECL_FIELD_FINAL_IUD): Change usage and comments. - * parse.y (register_fields, java_complete_tree): Update accordingly. - - * check-init.c (ALLOC_WORDS/FREE_WORDS): Use xmalloc/free, not alloca. - (DECLARE_BUFFERS, RELEASE_BUFFERS, ALLOC_BUFFER, FREE_BUFFER): New. - (check_cond_init, check_bool2_init): Use DECLARE_BUFFERS. - - * java-tree.h (STATIC_CLASS_INIT_OPT_P): Temporarily turn off. - - * java-tree.h (DECL FINAL): New bit-field. - (METHOD_FINAL, FIELD_FINAL, CLASS_FINAL): Define as DECL_FINAL. - (LOCAL_FINAL_P): Use DECL_FINAL rather than old LOCAL_FINAL. - (DECL_INIT_CALLS_THIS): New macro. - (struct lang_decl): New bit-field init_calls_this. - (DECL_FUNCTION_ALL_FINAL_INITIALIZED, DECL_FIELD_FINAL_LIIC, - DECL_FIELD_FINAL_IERR, LOCAL_FINAL, TYPE_HAS_FINAL_VARIABLE - (DECL_BIT_INDEX): Change to use pointer_alias_set since we now - use it for both local variables and final fields. - (struct lang_decl_var): Remove bit-fields final_liic, final_ierr, - and local_final. - (struct lang_type): Remove hfv bit-field. - (check_for_initialization): Change to return void. - - * java-tree.h (IS_ARRAY_LENGTH_ACCESS): New macros. - * expr.c (build_java_array_length_access): Set IS_ARRAY_LENGTH_ACCESS. - * check-init.c (final_assign_error): New helper function. - (check_final_reassigned, check_init): Use it. - (check_init): Also check IS_ARRAY_LENGTH_ACCESS for ARRAY.length. - - * java-tree.h (struct lang_decl, struct lang_decl_var): Change all - bit-fields to unsigned. - -2001-12-03 Per Bothner - - * parse.y (patch_binop): Minor constant folding. - - * parse.y (build_current_thisn): Shorter 'buffer'. - -2001-12-03 Per Bothner - - * decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR - instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR. - * jcf-write.c (generate_bytecode_insns): Remove support for - CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR as they are no longer used. - * check-init.c (check_init): Likewise. - -2001-12-03 Per Bothner - - * verify.c (subroutine_nesting): New function. - (verify_jvm_instructions): Use it to fix logic for checking that - we're done with the current subroutine. - - * verify.c (verify_jvm_instruction): For OPCODE_checkcast and - OPCODE_instanceof use POP_TYPE macro for better diagnostics. - -2001-12-03 Per Bothner - - * jcf.h: Fix obvious typo in comment. - * typeck.c (build_null_signature): Add comment. - -2001-12-03 Neil Booth - - * expr.c: Remove leading capital from diagnostic messages, as - per GNU coding standards. - * jcf-io.c: Similarly. - * jcf-parse.c: Similarly. - * jv-scan.c: Similarly. - * jvspec.c: Similarly. - * mangle.c: Similarly. - -2001-12-02 Tang Ching-Hui - Alexandre Petit-Bianco - - * expr.c (build_java_arrayaccess): Call save_expr on array for - correct evaluation order, modified comment, fixed indentation. - * parse.y: (patch_assignment): Correctly extract the array base - from the tree generate by build_java_arrayaccess, added comments. - (patch_array_ref): Remove SAVE_EXPR on ARRAY_REF. - Fixes PR java/3096, PR java/3803, PR java/3965. - -2001-12-01 Neil Booth - - * expr.c (expand_byte_code): Remove trailing periods from messages. - * jcf-parse.c (load_class, jcf_parse): Similarly. - * jcf-write.c (generate_classfile): Similarly. - * lex.c (java_lex): Similarly. - -2001-11-30 Bryce McKinlay - - * class.c (add_interface_do): Set BINFO_VPTR_FIELD. - -2001-11-29 Joseph S. Myers - - * Make-lang.in (java.generated-manpages): New dummy target. - -2001-11-27 Rainer Orth - - * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks - ASM_FINAL_SPEC. - (lang_specific_pre_link): Use set_input to set input_filename. - Append `main' here. - * jvgenmain.c (usage): Append literal `main' to CLASSNAME. - (main): Fix definition. - Strip `main' from classname. - Fixes PR java/227. - -2001-11-18 Roger Sayle - - * parse.h (java_expand_switch): Remove old prototype. - -2001-11-18 Tom Tromey - - Fix for PR java/1401: - * jcf-write.c (generate_bytecode_insns) [binop]: Handle case where - arg0 is null. - (generate_bytecode_insns) [MODIFY_EXPR]: Handle `OP=' case - correctly. - -2001-11-18 Neil Booth - - * lang.c (finish_parse): Rename to java_finish. - (LANG_HOOKS_FINISH, java_finish): New. - -2001-11-15 Neil Booth - - * decl.c (init_decl_processing): Rename java_init_decl_processing. - * java-tree.h: New prototype. - * lang.c (java_init): Update prototype. Combine with old init_parse. - -2001-11-13 Tom Tromey - - * gjavah.c (method_signature): New global. - (HANDLE_METHOD): Set it. - (decompile_return_statement): New function. - (decompile_method): Use it. - (print_method_info): Removed `synth' argument. - -2001-11-09 Neil Booth - - * java-tree.h (java_set_yydebug): New. - * jcf-parse.c (set_yydebug): Rename java_set_yydebug. - * lang.c (LANG_HOOKS_SET_YYDEBUG): Override. - (print_lang_decl, print_lang_type, print_lang_identifier, - print_lang_statistics, lang_print_xnode): Remove. - -2001-11-09 Neil Booth - - * jcf-parse.c (init_lex): Remove. - * lang.c (language_string, lang_identify): Remove. - (struct lang_hooks): Constify. - (LANG_HOOKS_NAME): Override. - (init_parse): Update. - -2001-11-08 Andreas Franck - - * Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle - program_transform_name the way suggested by autoconf. - (java.install-common): Also transform auxiliary program names with - program_transform_name. - -2001-11-08 Tom Tromey - - * parse.y (trap_overflow_corner_case): New rule. - (unary_expression): Use it. - * lex.c (java_init_lex): Don't set minus_seen. - (yylex): Don't use minus_seen. Communicate overflow to parser for - it to handle. - (error_if_numeric_overflow): New function. - * parse.h (minus_seen): Removed field. - (JAVA_RADIX10_FLAG): New define. - -2001-11-07 Tom Tromey - - Patch for PR java/1414: - * parse.y (case_label_list): New global. - (goal): Register case_label_list with GC. - (java_complete_lhs): Save new case on case_label_list. - (patch_switch_statement): Check for duplicate case labels. - -2001-11-07 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Removed unused third argument. - (java_complete_lhs): Removed unused third argument to patch_assignment. - -2001-11-06 Neil Booth - - * lang.c: Include langhooks-def.h. - * Make-lang.in: Update. - -2001-10-31 Zack Weinberg - - * Make-lang.in: Replace $(INTL_TARGETS) with po-generated. - -2001-10-29 Bryce McKinlay - - * mangle.c (find_compression_record_match): Don't match compression - records for package name elements unless they occur at the start of - the name. Fix for PR java/4717. - -2001-10-25 Bryce McKinlay - - * expr.c (expand_java_field_op): Don't special-case references to - java.lang.PRIMTYPE.TYPE. - (build_primtype_type_ref): Removed. - * java-tree.h (build_primtype_type_ref): Remove prototype. - * parse.y (maybe_build_primttype_type_ref): Removed. - (complete_function_arguments): Don't special-case references to - java.lang.PRIMTYPE.TYPE. - (patch_assignment): Likewise. - (array_constructor_check_entry): Likewise. - -2001-10-24 Alexandre Petit-Bianco - - * mangle.c (static tree compression_table): Fixed leading comment. - * parse.h (struct parser_ctxt): Fixed field comment. - * parse.y (check_pkg_class_access): New prototype, fixed leading - comment, new parameter used to emit error only if passed as true. - (parse_check_super): Pass extra argument to check_pkg_class_access. - (do_resolve_class): Likewise. - (process_imports): Likewise. - (read_import_dir): Fixed indentation. - (find_in_imports_on_demand): New local class_type_name. Local - node_to_use deleted. while loop changed into for loop. Report - multiple definition only for accessible classes. Improved error - message. - (start_complete_expand_method): Local `ptr' removed. DECL_ARGUMENTS - assigned to parameter list, fixed indentation. while loop changed - into for loop, restore TREE_CHAIN on local `tem' before the next - iteration. - -2001-10-23 Richard Kenner - - * lang.c (lang_get_alias_set): Deleted. - -2001-10-21 Kaveh R. Ghazi - - * gjavah.c (jni_print_char): Fix thinko in last change. - - * gjavah.c (jni_print_char, decode_signature_piece): Use - safe-ctype macros and/or fold extra calls into fewer ones. - * lex.c (java_read_unicode, java_lex): Likewise. - * lex.h (JAVA_START_CHAR_P, JAVA_PART_CHAR_P, JAVA_ASCII_DIGIT, - JAVA_ASCII_HEXDIGIT, JAVA_ASCII_LETTER): Likewise. - * mangle_name.c (append_unicode_mangled_name, - unicode_mangling_length): Likewise. - -2001-10-17 Richard Henderson - - * Make-lang.in (java/lang.o): Depend on langhooks.h. - -2001-10-15 Alexandre Petit-Bianco - - * lang.c (langhooks.h): Included. - (LANG_HOOKS_INIT): Redefined. - (LANG_HOOKS_INIT_OPTIONS): Likewise. - (LANG_HOOKS_DECODE_OPTION): Likewise. - (struct lang_hooks lang_hooks): New initialization. - -2001-10-11 Per Bothner - - * parse.y (patch_synchronized_statement): Use a TRY_FINALLY_EXPR - rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair. - The former is simpler, and jcf-write.c handles it better. - (java_complete_lhs): No longer need to handle CLEANUP_POINT_EXPR - or WITH_CLEANUP_EXPR. - * jcf-write.c: Revert Alex's change from 2000-10-18. It is no - longer needed, as we already handle empty TRY_FINALLY_EXPR bodies fine. - - * parse.y (patch_if_else_statement): If the condition is constant, - optimize away the test. - -2001-10-09 Alexandre Petit-Bianco - - * parse.y (patch_cast): Call patch_string on the first operand of - the incoming node, update it if necessary. Fixes PR java/4510. - -2001-10-09 Bryce McKinlay - - * parse.y (find_as_inner_class): Don't disregard the enclosing scope - when name qualifier matches a package name. - -2001-10-08 Tom Tromey - - Fix for PR java/4489: - * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Always - force a new label when computing `body_block'. - -2001-10-07 Kaveh R. Ghazi - - * jcf-io.c (format_uint): Const-ify. - * lang.c (java_tree_code_type, java_tree_code_length): Likewise. - * lex.c (java_get_line_col): Likewise. - * parse.y (build_incdec): Likewise. - -2001-10-05 Alexandre Petit-Bianco - - * parse.y (register_incomplete_type): Set JDEP_SUPER to be given - a NULL enclosing context if appropriate. Fixes PR java/4466. - -2001-10-03 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Use lvalue's original TYPE when - building the final COMPOUND_EXPR. - (try_reference_assignconv): Fixed leading comment. - -2001-09-26 Alexandre Petit-Bianco - - * parse.y (check_final_variable_indirect_assignment): For - COMPOUND_EXPR, return only if finals were found initialized - properly, if not, keep on checking. - (check_final_variable_global_assignment_flag): New local - error_found, set when appropriate and used to decide whether to - report uninitialized finals. Fixed typo in comment. - -2001-09-22 Alexandre Petit-Bianco - - * decl.c (init_decl_processing): Fixed typo in predef_filenames - last three initializations. Fixes PR java/4360. - -2001-09-21 Richard Henderson - - * class.c (get_dispatch_table): Handle function descriptors. - (build_dtable_decl): Likewise. - * expr.c (build_invokevirtual): Likewise. - -2001-09-20 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Build class initialization - when static finals are used to qualify method invocation. - Fixes PR java/4366. - -2001-09-19 Alexandre Petit-Bianco - - * parse.h: (WFL_STRIP_BRACKET): Re-written using - build_type_name_from_array_name. - (STRING_STRIP_BRACKETS): New macro. - * parse.y (build_type_name_from_array_name): New function. - (array_creation_expression:): Accumulate []s instead of [s. - (cast_expression:): Accumulate []s instead of [s after cast type - name. - (build_array_from_name): Local string deleted, use - build_type_name_from_array_name. - (build_unresolved_array_type): Accumulate []s instead of [s after - type name. - (register_fields): Fixed comment. - (resolve_class): Local name, base deleted, new locals tname and - array_dims. Use build_type_name_from_array_name. Use array_dims to - build array type. - (purify_type_name): Use STRING_STRIP_BRACKETS. - -2001-09-18 Andreas Jaeger - - * parse.y: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout. - * jv-scan.c: Likewise. - -2001-09-17 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Inner class creation context - check not enforced within constructors. Fixes PR java/1873. - -2001-09-16 Tom Tromey - - * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Call - NOTE_PUSH for single-case push. Fixes PR java/4189. - -2001-09-13 Alexandre Petit-Bianco - - * java-tree.h (TYPE_IMPORT_LIST): New macro. - (TYPE_IMPORT_DEMAND_LIST): Likewise. - (struct lang_type): New fields import_list and import_demand_list. - * parse.y (java_complete_class): Initialize TYPE_IMPORT_LIST and - TYPE_IMPORT_DEMAND_LIST with ctxp counterparts. - (do_resolve_class): New local saved_enclosing_type, initialized, - passed as parameter to find_in_imports and find_in_imports_on_demand. - (find_in_imports): Added paramater enclosing_type, use its - TYPE_IMPORT_LIST when applicable. - (find_in_imports_on_demand): Added parameter enclosing_type, use - its TYPE_IMPORT_DEMAND_LIST when applicable. Reorganized locals - declaration and initialization. - (fold_constant_for_init): Switch/restore current_class to the - appropriate context. - -2001-09-13 Mark Mitchell - - * verify.c (verify_jvm_instructions): Fix typo. - -2001-09-13 Kaveh R. Ghazi - - * expr.c (expand_invoke): Const-ification. - * parse.y (patch_method_invocation): Likewise. - -2001-09-12 Kaveh R. Ghazi - - * gjavah.c (cxx_keywords): Const-ification. - * keyword.gperf (java_keyword): Likewise. - * lang.c (java_tree_code_name): Likewise. - * lex.c (cxx_keywords): Likewise. - * parse.y (java_parser_context_suspend, merge_string_cste): Likewise. - -2001-09-11 Richard Henderson - - * parse.h (ctxp_for_generation): Mark extern. - -2001-09-10 Richard Henderson - - * class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl. - -2001-09-07 Matt Kraai - - * typeck.c (java_array_type_length, build_prim_array_type): - Represent empty arrays by NULL index. - -2001-09-06 Alexandre Petit-Bianco - - * java-tree.h (compile_resource_file): Grouped with other prototypes. - * jvspec.c (lang_specific_driver): Removed unused local `ptr.' - -2001-09-06 Anthony Green - - * class.c (O_BINARY): Define if necessary. - (registerResource_libfunc): Declare. - (init_class_processing): Initilize registerResource_libfunc. - (compile_resource_file): New function. - * java-tree.h (resource_name): Declare. - (compile_resource_file): Declare. - * jcf-parse.c (yyparse): Handle compiling java resource files. - * lang.c (java_decode_option): Handle -fcompile-resource option. - * jvspec.c (lang_specific_driver): Handle -R flag for compiling - resource files. - * gcj.texi (Code Generation): Add documentation for -R flag. - -2001-09-05 Alexandre Petit-Bianco - - * jcf-write.c (generate_classfile): Issue an error in case of - field/initial value mismatch. - * parse.y (analyze_clinit_body): Keep if an array is - being initialized and we're generating bytecode. - (java_complete_lhs): In MODIFY_EXPR section: added comments, - set DECL_INITIAL properly when appropriate. - Fixes PR java/4230 - Fixes PR java/4204 - -2001-09-01 Per Bothner - - * parse.y (maybe_yank_clinit): A field without an initializer is not - relevant. All initializers except static final and constant require - , regardless of flag_emit_class_files. - -2001-08-31 Per Bothner - - * class.c (set_constant_value): When not emitting class files, then a - String ConstantValue is a utf8const_ptr_type. - -2001-08-30 Per Bothner - - * jcf-write.c (generate_classfile): Check that field is primitive - or string before emitting ConstantValue attribute. - -2001-08-30 Per Bothner - - * parse.y (resolve_qualified_expression_name): If creating a - COMPOUND_EXPR, set it's type correctly. - -2001-08-30 Per Bothner - - * jcf-io.c (open_class): Set filename field. - - * jcf-parse,c (parse_class_file): Set current_function_decl - for better error message when Code attribute is missing. - - * lang.c (put_decl_node, lang_print_error): Re-arrange for - better diagnostics, especially for constructors. - -2001-08-30 Per Bothner - - * jcf-write.c (generate_classfile): Don't write ConstantValue - attribute if field is not final, for compatibility with jdk. - - * jcf-write.c (generate_classfile): Convert ConstantValue values - to correct type. Work-around for front-end bug. - * class.c (set_constant_value): Error if constant has wrong type. - -2001-08-30 Per Bothner - - * jcf-dump.c (print_constant): Fix fencepost error so "Float" and - "Double" are printed at verbosity 1. - - * jcf-dump.c (main): Disable flag_print_attributes if --javap. - - * jcf-dump.c (SPECIAL_IINC): Remove unneeded casts to long. - -2001-08-30 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Don't verify final re-assignment here. - (java_complete_lhs): Verify assignments to finals calling - patch_assignment. Verify re-assignments to finals before calling - patch_assignment. - -2001-08-29 Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): Allow final locals in CASE_EXPRs. - Fixes PR java/1413 - -2001-08-28 Alexandre Petit-Bianco - - * lex.c (java_lex): new local found_hex_digits. Set and then used - in test to reject invalid hexadecimal numbers. - * parse.y (java_complete_tree): Prevent unwanted cast with - initialized floating point finals. - (patch_binop): Emit a warning when detecting a division by zero, - mark result not constant, don't simplify non integer division. - -2001-08-28 Per Bothner - - * jcf-write.c (generate_bytecode_insns): For increments and - decrements just recurse to push constant. Improvement on Mark's patch. - -2001-08-28 Mark Mitchell - - * jcf-write.c (generate_bytecode_insns): Generate an integer to - real conversion for increments and decrements of reals. - -2001-08-27 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Handle unresolved - qualified expressions, prevent numerical qualifiers, fixed typo. - Fixes PR java/4141 - -2001-08-24 Alexandre Petit-Bianco - - * parse.y (check_deprecation): Handle TYPE_DECL in a special case, - don't report anything but deprecated class when marked so. Handle - VAR_DECL. - (patch_method_invocation): Check deprecation on methods and types. - (patch_binop): code becomes an enum tree_code, added default: to - switch to handle that. Detect division by zero, try to fold and - return before using a subroutine. - -2001-08-23 Alexandre Petit-Bianco - - * jcf-parse.c (yyparse): Set magic to 0, don't issue error for a - file smaller than 4 bytes. - * parse.y (check_inner_circular_reference): New function. - (check_circular_reference): Likewise. - (array_initializer:): Accept {,}. - (java_check_circular_reference): Rewritten using - check_circular_reference and check_inner_circular_reference. - (java_complete_expand_method): Unconditionally save and restore - the unpurged exception list. - (build_dot_class_method_invocation): Unmangle signature parameter. - -2001-08-21 Tom Tromey - - * decl.c (init_decl_processing): Add `throws' field to method - descriptor. - * class.c (make_method_value): Compute `throws' field for method. - -2001-08-22 Alexandre Petit-Bianco - - * parse.y (resolve_inner_class): Keep local_enclosing to NULL if - circularity is detected. - (ctors_unchecked_throws_clause_p): Fixed leading comment. - -2001-08-17 Richard Henderson - - * class.c (emit_register_classes): Add align parameter to - call to assemble_integer. - -2001-08-16 Alexandre Petit-Bianco - - * jcf-parse.c (load_class): New locals saved and class_loaded. If - loading a class_or_name fails, try considering an innerclass name - and load the enclosing context. - * parse.y (resolve_inner_class): New function. - (find_as_inner_class): Added leading comment. - (register_incomplete_type): Keep the current context as enclosing - context for JDEP_FIELD dependencies. - (do_resolve_class): Locals new_class_decl and super initialized to - NULL. Call resolve_inner_class, explore the enclosing context - superclass if necessary. - Fixes PR java/4007 - -2001-08-16 Tom Tromey - - * jcf-dump.c (main): Updated for change to jcf_path_seal. - * gjavah.c (main): Updated for change to jcf_path_seal. - * lang.c (version_flag): New global. - (java_decode_option): Recognize `-version'. - (java_init): Update for change to jcf_path_seal. - * jcf.h (jcf_path_seal): Added `print' argument. - * jcf-path.c (jcf_path_seal): Added `print' argument. - -2001-08-13 Zack Weinberg - - * Make-lang.in (java/decl.o): Update dependencies. - * decl.c: Include libfuncs.h, don't include toplev.h. - -2001-08-12 Alexandre Petit-Bianco - - * decl.c (init_decl_processing): exception_type_node, - class_not_found_type_node, and no_class_def_found_type_node - initialized. predef_filenames augmented accordingly. - instinit_identifier_node initialized. - * java-tree.def (INSTANCE_INITIALIZERS_EXPR): Entry removed. - * java-tree.h (enum java_tree_index): New entries - JTI_EXCEPTION_TYPE_NODE, JTI_CLASS_NOT_FOUND_TYPE_NODE, - JTI_NO_CLASS_DEF_FOUND_TYPE_NODE, JTI_INSTINIT_IDENTIFIER_NODE. - (exception_type_node): New macro. - (class_not_found_type_node): Likewise. - (no_class_def_found_type_node): Likewise. - (instinit_identifier_node): Likewise. - (PREDEF_FILENAMES_SIZE): Adjusted. - (TYPE_HAS_FINAL_VARIABLE): Fixed typo. - (struct lang_type): Fixed typo in bitfield name. - (DECL_INSTINIT_P): New macro. - (ID_INSTINIT_P): Likewise. - * jcf-write.c (generate_classfile): instinit$ bears the Synthetic - attribute. - * parse.y (encapsulate_with_try_catch): New function. - (generate_instinit): Likewise. - (build_instinit_invocation): Likewise. - (ctors_unchecked_throws_clause_p): Likewise. - (add_instance_initializer): Deleted. - (build_instance_initializer): Likewise. - (in_instance_initializer): Likewise. - (check_method_redefinition): instinit$ not to be verified. - (java_complete_expand_methods): Generate instinit$, simplified code. - (build_dot_class_method): Eliminated unnecessary locals. Use - encapsulate_with_try_catch, removed unnecessary code. - (fix_constructors): New local iii. Use build_instinit_invocation. - (patch_method_invocation): Added comment. - (maybe_use_access_method): Don't consider instinit$. - (find_applicable_accessible_methods_list): Shorten the search for - instinit$ too. - (java_complete_lhs): case INSTANCE_INITIALIZERS_EXPR removed. - (patch_return): Use DECL_INSTINIT_P instead of in_instance_initializer. - (patch_throw_statement): Likewise. Fixed typo. - -2001-08-12 David Edelsohn - - Revert: - 2001-08-02 Rainer Orth - * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks - ASM_FINAL_SPEC. - (lang_specific_pre_link): Use set_input to set input_filename. - Append `main' here. - * jvgenmain.c (usage): Append literal `main' to CLASSNAME. - (main): Fix definition. - Strip `main' from classname. - Fixes PR java/227. - -2001-08-11 Zack Weinberg - - * lex.h: Don't include setjmp.h. Don't define - SET_FLOAT_HANDLER or prototype set_float_handler. - -2001-08-09 Alexandre Petit-Bianco - - * expr.c (java_lang_expand_expr): Call `expand_end_bindings' and - `poplevel' in the right order. - -2001-08-09 Richard Henderson - - * Make-lang.in (class.o): Depend on TARGET_H. - * class.c (emit_register_classes): Use target hooks instead of - assemble_constructor and assemble_destructor. - -2001-08-08 Alexandre Petit-Bianco - - * check-init.c (flags.h): Include - (check_init): Don't report uninitialized static class - initialization flags, don't free bit index when doing static class - initialization optimization. - (check_for_initialization): Return type changed to `unsigned int.' - (attach_initialized_static_class): New function. - * class.c (add_method_1): Create the initialized static class - table if necessary. - (finish_class): Always emit deferred inline methods. - * decl.c (emit_init_test_initialization): Moved to expr.c - (complete_start_java_method): Don't traverse - DECL_FUNCTION_INIT_TEST_TABLE. - (lang_mark_tree): Mark hash tables in function decls. - * expr.c (emit_init_test_initialization): Moved from decl.c. - (build_class_init): Create LAG_DECL_SPECIFIC for the static class - initialization flag, set DECL_CONTEXT and - LOCAL_CLASS_INITIALIZATION_FLAG. - (java_lang_expand_expr): Emit initialization code for static class - initialized flags when entering block, if necessary. - * gcj.texi (-fno-optimize-static-class-initialization): Documented. - * java-tree.h (flag_optimize_sci): New global variable declaration. - (DECL_FUNCTION_INITIALIZED_CLASS_TABLE): New macro. - (DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND): Likewise. - (LOCAL_FINAL_P): Fixed typo in comment. - (FINAL_VARIABLE_P): Likewise. - (LOCAL_CLASS_INITIALIZATIO_FLAG): New macro. - (LOCAL_CLASS_INITIALIZATIO_FLAG_P): Likewise. - (struct lang_decl): New fields `ict', `smic' and `cif.' - (check_for_initialization): New returned value for global. - (attach_initialized_static_class): New global function. - (STATIC_CLASS_INIT_OPT_P): New macro. - * lang-options.h (-fno-optimize-static-class-initialization): New flag. - * lang.c (java_decode_option): Handle - `-fno-optimize-static-class-initialization' - * parse.y (start_complete_expand_method): New function. - (java_expand_method_bodies): Likewise. - (attach_init_test_initialization_flags): Likewise. - (adjust_init_test_initialization): Likewise. - (emit_test_initialization): Likewise. - (java_complete_expand_methods): Nullify abstract and native method - bodies. - (java_complete_expand_method): New locals `fbody', `block_body' - and `exception_copy.' Reorganized: directly return on empty method - bodies, call `start_complete_expand_method', remember definitely - initialized static class in function, don't expand method bodies. - (java_expand_classes): Call `java_expand_method_bodies' before - `finish_class' when compiling to native. - (resolve_expression_name): Use `orig' after building outer class - field access. - (patch_invoke): Remember static method invocations. - -2001-08-06 Richard Henderson - - * class.c (emit_register_classes): Pass a symbol_ref and priority - to assemble_constructor. - -2001-08-02 Alexandre Petit-Bianco - - * java-tree.h (all_class_filename): New macro. - (enum java_tree_index): New enum `JTI_ALL_CLASS_FILENAME.' - (BUILD_FILENAME_IDENTIFIER_NODE): Fixed leading comment. Link - newly created IDENTIFIER_NODE to `all_class_filename.' - -2001-08-01 Jeff Sturm - - * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): - Use ggc_add_tree_root to register roots. - -2001-07-31 Alexandre Petit-Bianco - - * check-init.c (check_init): WITH_CLEANUP_EXPR node to use its - second operand calling check_init. - * decl.c (complete_start_java_method): Swaped second and third - arguments while creating WITH_CLEANUP_EXPR node. - * jcf-write.c (generate_bytecode_insns): Use second operand - instead of third when handling WITH_CLEANUP_EXPR. - * parse.y (java_complete_lhs): Expand second operand of - WITH_CLEANUP_EXPR nodes. - (patch_synchronized_statement): Swaped second and third arguments - while creating WITH_CLEANUP_EXPR node. - -2001-07-18 Alexandre Petit-Bianco - - * parse.y (create_interface): Avoid cyclic inheritance report when - syntax error encountered during class definition. - Fixes PR java/2956 - -2001-08-02 Rainer Orth - - * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks - ASM_FINAL_SPEC. - (lang_specific_pre_link): Use set_input to set input_filename. - Append `main' here. - * jvgenmain.c (usage): Append literal `main' to CLASSNAME. - (main): Fix definition. - Strip `main' from classname. - Fixes PR java/227. - -2001-07-18 Tom Tromey - - For PR java/2812: - * lex.h: Use HAVE_ICONV, not HAVE_ICONV_H. - * lex.c (java_new_lexer): Use ICONV_CONST. - (java_read_char): Likewise. - * Make-lang.in (jc1$(exeext)): Link against LIBICONV. - (jv-scan$(exeext)): Likewise. - -2001-07-17 Alexandre Petit-Bianco - - * parse.h (INTERFACE_INNER_MODIFIERS): Disallow `private.' - * parse.y (check_class_interface_creation): Allow `private' if the - enclosing is not an interface. - (create_interface): Interface tagged public if the enclosing - context is an interface. - (create_class): Class tagged public if the enclosing context - is an interface. - Fixes PR java/2959 - -2001-07-17 Alexandre Petit-Bianco - - * class.c (push_class): Set DECL_SIZE to `integer_zero_node.' - Fixes PR java/2665 - -2001-07-14 Tim Josling - - * check-init.c (check_init): Remove references to EXPON_EXPR. - -2001-07-13 Alexandre Petit-Bianco - - * parse.y (java_complete_lsh): Set CAN_COMPLETE_NORMALLY and unset - TREE_CONSTANT_OVERFLOW of CASE_EXPR value. - Fixes PR java/3602 - -2001-07-13 Tom Tromey - - * jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 - invocation. - -2001-07-12 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Don't override primary if one - is already provided, but let this$ be built. Fixed comment. - -2001-07-12 Alexandre Petit-Bianco - - * parse.y (empty_statement:): Report empty statement error only - when found at class declaration level. - Fixes PR java/3635 - -2001-07-12 Tom Tromey - - * expr.c (expand_load_internal): New function. - (LOAD_INTERNAL): Use it. - -2001-07-11 Alexandre Petit-Bianco - - * parse.y (verify_constructor_super): Compare anonymous class ctor - args with `valid_method_invocation_conversion_p.' - Fixes PR java/3285 - -2001-07-10 Alexandre Petit-Bianco - - * lang-specs.h: Forbit the use if `-femit-class-file{s}' without - `-fsyntax-only.' Fixes PR java/3248 - -2001-07-10 Alexandre Petit-Bianco - - * jcf-io.c (find_class): Clarified error message. Fixes PR java/2603 - -2001-07-10 Alexandre Petit-Bianco - - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): No `this' is fine if the - current function is static. Fixes PR java/1970 - -2001-07-09 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Add enclosing context to ctor - calls if necessary. Fixes PR java/2953 - -2001-07-09 Alexandre Petit-Bianco - - * parse.y (resolve_package): Abort if qualified expression member - isn't right. - (qualify_ambiguous_name): Don't qualify as type if `this' in use. - Fixes PR java/1391 - -2001-07-07 Zack Weinberg - - * verify.c: Don't use // comments. - -2001-07-05 Tom Tromey - - * lang.c (flag_assume_compiled): Removed. - * java-tree.h (flag_assume_compiled): Removed. - * lang-options.h: Removed -ffile-list-file, -fuse-boehm-gc, - -fhash-synchronization, -fuse-divide-subroutine, - -fcheck-references, -femit-class-file, -femit-class-files, - -fassume-compiled. Updated --encoding information. Changed - -foutput-class-dir to `-d'. - -2001-07-04 Daniel Berlin - - * jcf-parse.c (parse_class_file): Add lineno parameter to - debug_start_source_file call. - -2001-07-04 Joseph S. Myers - - * gcj.texi: Use gpl.texi. - * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Update - dependencies and use doc/include in search path. - -2001-07-03 Jeff Sturm - - * parse.y (fix_constructors): Test if a CALL_EXPR invokes - `this'. If so, don't build instance initializers. - -2001-07-03 Alexandre Petit-Bianco - - * parse.y (resolve_expression_name): Improved error message for - inner class cases. Fixes PR java/1958 - -2001-06-28 Gabriel Dos Reis - - * lang.c: #include diagnostic.h - (lang_print_error): Add a `diagnostic_context *' parameter. - (java_dummy_print): Likewise. - * Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h - -2001-06-27 Alexandre Petit-Bianco - - * jcf-parse.c (gcc_mark_jcf): Test for a finished JCF. - * jcf.h (typedef struct JCF): New bitfield `finished.' - (JCF_FINISH): Set `finished.' - (JCF_ZERO): Reset `finished.' - Fixes PR java/2633 - -2001-06-27 Alexandre Petit-Bianco - - * parse.y (class_body_declaration:): Don't install empty instance - initializers. - Fixes PR java/1314 - -2001-06-27 Alexandre Petit-Bianco - - * class.c (set_super_info): Call `set_class_decl_access_flags.' - (set_class_decl_access_flags): New function. - * java-tree.h (set_class_decl_access_flags): New prototype. - * jcf-parse.c (handle_innerclass_attribute): Read and set access flags. - (parse_class_file): New local `decl_max_locals.' Take wide types - into account to compute DECL_MAX_LOCALS. - * parse.y (type_import_on_demand_declaration:): Ignore duplicate - imports on demand. - -2001-06-22 Jan van Male - - * zipfile.h: Use GCC_JCF_H instead of JCF_H. - -2001-06-20 Alexandre Petit-Bianco - - * class.c (java_hash_tree_node): Fixed indentation in leading comment. - * parse.y (do_resolve_class): Moved comments out to leading comment - section. Removed local `start', New local `_ht' and - `circularity_hash.' Record `enclosing' in hash table and search - it to detect circularity. Use `enclosing' as an argument to - `lookup_cl.' Free the hash table when done. - -2001-06-19 Tom Tromey - - * lex.c (java_read_char): Disallow invalid and overlong - sequences. Fixes PR java/2319. - -2001-06-05 Jeff Sturm - - * decl.c (create_primitive_vtable): Don't call make_decl_rtl. - -2001-06-04 Alexandre Petit-Bianco - - * expr.c (force_evaluation_order): Match wrapped ctor calls, locate - arguments accordingly. - -2001-06-02 Joseph S. Myers - - * gcj.texi: Move contents to just after title page. - -2001-06-01 Alexandre Petit-Bianco - - * parse.y (type_literals:): Use `build_incomplete_class_ref' with - builtin type. - (patch_incomplete_class_ref): Build the class ref, build the class - init if necessary, complete the tree. - Fixes PR java/2605 - -2001-05-31 Alexandre Petit-Bianco - - * parse.y (lookup_field_wrapper): Test `name' code. - (resolve_qualified_expression_name): Test `qual_wfl' code. - (qualify_ambiguous_name): Handle `CONVERT_EXPR', fixe indentation, - handle `qual_wfl' by code. - (maybe_build_primttype_type_ref): Test `wfl' code. - -2001-05-23 Theodore Papadopoulo - - * Make-lang.in ($(srcdir)/java/gcj.info): Added dependencies on - fdl.texi. - (java/gcj.dvi): Use TEXI2DVI instead of custom tex calls. Create - the dvi file in the java directory. - -2001-05-25 Sam TH - - * gen-table.pl javaop.h jcf.h lex.h, - parse.h: Fix header include guards. - -2001-05-23 Joseph S. Myers - - * jv-scan.c (version): Update copyright year. - -2001-05-21 Per Bothner - - * jcf-parse.c (read_class): If class is from .class or .zip file - and it's already been read, don't push/pop parser context. - -2001-05-18 Per Bothner - - * jvspec.c (lang_specific_pre_link): Re-arrange the linker - command line so the jvgenmain-generated main program comes first. - -2001-05-15 Tom Tromey - - * class.c (build_utf8_ref): Don't generate identifier based on - utf8const contents. - -2001-05-12 Richard Henderson - - * java-tree.def (JAVA_EXC_OBJ_EXPR): New. - * expr.c (java_lang_expand_expr): Expand it. - (process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of - calling build_exception_object_ref. - * parse.y (catch_clause_parameter): Likewise. - (build_dot_class_method): Likewise. - (try_reference_assignconv): Likewise. - * check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR. - * jcf-write.c (generate_bytecode_insns): Likewise. - -2001-05-07 Alexandre Petit-Bianco - - * parse.y (build_unresolved_array_type): Set - EXPR_WFL_QUALIFICATION on the newly created wfl. - Fixes PR java/2538. Fixes PR java/2535. - -2001-05-07 Alexandre Petit-Bianco - - * parse.y (fix_constructors): Removed unnecessary assignment to - local. Moved assignment to `this$', fixed comments and - indentation. - (build_wfl_wrap): Fixed indentation. - Fixes PR java/2598, java/2579 and java/2658. - -2001-05-03 Mo DeJong - - * lex.c (java_new_lexer): Call iconv_close on temp handle used to - check for byte swap. - -2000-05-02 Jeff Sturm - - * expr.c (build_class_init): Move MODIFY_EXPR - outside of COND_EXPR. Remove variable `call'. - -2001-05-02 Kaveh R. Ghazi - - * decl.c: NULL_PTR -> NULL. - * jcf-write.c: Likewise. - -2001-05-01 Tom Tromey - - * Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'. - (java/gcj.dvi): Added $(srcdir) to TEXINPUTS. - * gcj.texi: Updated copyright text. Include fdl.texi. - (Top): Link to new node. - -2001-05-01 Per Bothner - - * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon. - -2001-05-01 Per Bothner - - * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the - import_list contains the name, not the TREE_PURPOSE. - -2001-04-29 Kaveh R. Ghazi - - * jcf-io.c (read_zip_member): Cast to long in comparison with - signed value. - - * jvspec.c (lang_specific_driver): Initialize variables. - - * mangle.c (find_compression_record_match): Likewise. - - * typeck.c (build_null_signature): Provide static prototype. Mark - parameter with ATTRIBUTE_UNUSED. - - * verify.c (verify_jvm_instructions): Initialize variable. - -2001-04-27 Bryce McKinlay - - * parse.y (do_resolve_class): Check for cyclic inheritance during - inner class resolution. - -2001-04-27 Per Bothner - - * parse.y (java_expand_classes): Don't change ctxp_for_generation - while iterating, since that could cause gc to lose stuff. - -2001-04-26 Per Bothner - - Fix method search wrt scope of inner classes to match JLS2. - * typeck.c (build_null_signature): New static function. - (has_method): New function. Uses build_null_signature and lookup_do. - * java-tree.h (has_method): New declaration. - * parse.y (find_applicable_accessible_methods_list): Do not search - context of inner classes here. - (patch_method_invocation): Search scope, ie. current and outer clases, - for method matching simple name, to find class. - -2001-04-26 Per Bothner - - * jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): - Fix thinko: If a single case, use if_icmpeq, not ifeq. - - * constants.c (find_methodref_with_class_index): New function. - (find_methodref_index): Use find_methodref_with_class_index. - * java-tree.h (find_methodref_with_class_index): New declaration. - * jcf-write.c (generate_bytecode_insns case CALL_EXPR): Don't change - DECL_CONTEXT, instead use new find_methodref_with_class_index function. - If context changed from interface to class, don't use invokeinterface. - -2001-04-25 Per Bothner - - * verify.c (verify_jvm_instructions): For field instructions, - check that field index is valid. For invoke instructions, check that - method index is valid. - -2001-04-25 Alexandre Oliva - - * config-lang.in (target_libs): Copy from $libgcj_saved. - -2001-04-25 Bryce McKinlay - - * decl.c (init_decl_processing): Add new class "protectionDomain" - field. - * class.c (make_class_data): Set initial value for "protectionDomain". - -2001-04-22 Kaveh R. Ghazi - - * jvspec.c (lang_specific_driver): Fix memory allocation - deficit, by using concat in lieu of xmalloc/sprintf. - -2001-04-20 Per Bothner - - Fixes to compile multiple .class files at once. - * decl.c (init_decl_processing): Don't set CLASS_LOADED_P. - * java-tree.h (CLASS_PARSED_P): New macro. - (CLASS_LOADED_P): Re-define to use TYPE_SIZE and CLASS_PARSED_P. - * jcf-parse.c (jcf_parse_source): Inline into read_class. - (read_class): Avoid some code duplication. - Don't call JCF_FINISH for a .class file - might be needed later. - (jcf_parse): Don't call layout_class here. Check/set CLASS_PARSED_P - rather than CLASS_LOADED_P, since latter implies class laid out. - (yyparse): Do layout_class and JCF_FINISh here instead, in pass 2. - * parse.y: Don't need to set CLASS_LOADED_P for array types. - -2001-04-11 Kaveh R. Ghazi - - * Make-lang.in (java/boehm.o): Depend on toplev.h. - - * boehm.c: Include toplev.h. - -2001-04-06 Tom Tromey - Alexandre Petit-Bianco - - Fix for PR gcj/1404 and PR gcj/2332: - * parse.y (build_array_from_name): If we use the type_wfl then - accumulate dimensions from the original type as well. - (build_unresolved_array_type): Don't modify TYPE_OR_WFL in place. - -2001-04-06 Tom Tromey - - * parse.y (analyze_clinit_body): Return true if the second operand - of a METHOD_EXPR is nonzero. - -2001-04-06 Tom Tromey - - * Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build - directory. - ($(srcdir)/java/parse.c): Likewise. - -2001-04-05 Alexandre Petit-Bianco - - * gcj.texi: Use `which-gcj' instead of `which-g77.' - (version-gcc): Initialized. - (which-gcj): Likewise. - -2001-04-04 Alexandre Petit-Bianco - - * java-tree.h (struct lang_decl): New macro - `DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.' - * parse.y (build_instance_initializer): New function. - (add_instance_initializer): Use it. - (java_fix_constructors): Set `current_class' before fix pass. - (fix_constructors): Just return if already fixed. Move `super()' - invocation ahead. Use `build_instance_initializer.' - Fixes PR java/1315. - -2001-04-04 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Pass field's - DECL_CONTEXT to `not_accessible_p.' - (not_accessible_p): Changed parameters order in `inherits_from_p' - invocation. - -2001-03-27 Andrew Haley - - * lang-options.h: Add flag_check_references. - -2001-04-04 Per Bothner - - * java-tree.h (CONSTANT_VALUE_P): New macro. - * jcf-write.c (generate_classfile): Use CONSTANT_VALUE_P. - * parse.y (maybe_build_class_init_for_field): New static function. - (resolve_expression_name, resolve_field_access): Use - maybe_build_class_init_for_field instead of build_class_init - This does not do the init if the field is compile-time-constant. - (resolve_field_access): Simplify. - - * parse.y (fold_constant_for_init): Merge test into switch. - -2001-04-03 Zack Weinberg - - * Make-lang.in (buffer.o, check-init.o, class.o): Don't depend - on gansidecl.h. - * buffer.c, jvgenmain.c: Don't include gansidecl.h. - -2001-04-02 Zack Weinberg - - * expr.c (pop_type_0): Save the result of the first - lang_printable_name call in a scratch buffer, so it - won't be clobbered by the second call. - -2001-03-30 Alexandre Petit-Bianco - - * parse-scan.y (array_type:): Rewritten. - (type_declaration:): `empty_statement' replaces `SC_TK.' - (class_member_declaration:): `empty statement' added. - (method_body:): Simplified. - (static_initializer:): Likewise. - (primary_no_new_array:): Use `type_literals.' - (type_literals:): New rule. - (dims:): Set and update `bracket_count.' - Fixes PR java/1074. Fixes PR java/2412. - -2001-03-28 Hans Boehm - - * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.' - (get_boehm_type_descriptor): Set type on returned value to be a - pointer length integer. - -2001-03-28 Kaveh R. Ghazi - - * expr.c (pop_type_0): Call `concat' rather than building the - string manually. - (pop_type): Add format specifier in call to `error'. - - * parse.y (patch_method_invocation): Avoid casting away - const-ness. - -2001-03-28 Jeffrey Oldham - - * jvgenmain.c (do_mangle_classname): End string constant with '\0'. - -2001-03-28 Richard Henderson - - IA-64 ABI Exception Handling: - * Make-lang.in (except.o): Don't depend on eh-common.h. - * check-init.c (check_init): Handle EXC_PTR_EXPR. - * decl.c (init_decl_processing) [throw_node]: No _Jv_Sjlj_Throw. - [soft_exceptioninfo_call_node]: Remove. - [eh_personality_libfunc, lang_eh_runtime_type]: New. - (end_java_method): No emit_handlers. - * except.c (java_set_exception_lang_code): Remove. - (method_init_exceptions): Don't call it. - (prepare_eh_table_type): No CATCH_ALL_TYPE. - (build_exception_object_ref): New. - (expand_end_java_handler): Update for except.h name changes. - (emit_handlers, expand_resume_after_catch): Remove. - * expr.c (java_lang_expand_expr): Update for except.h name changes. - (process_jvm_instruction): Use build_exception_object_ref. - * java-tree.h (JTI_SOFT_EXCEPTIONINFO_CALL_NODE): Remove. - (soft_exceptioninfo_call_node): Remove. - (build_exception_object_ref): Declare. - * jcf-write.c (generate_bytecode_insns) [CALL_EXPR]: No - soft_exceptioninfo_call_node. Move processing ... - [EXC_PTR_EXPR]: ... here. - * parse.h (BUILD_ASSIGN_EXCEPTION_INFO): Remove dead code. - * parse.y (catch_clause_parameter): Use build_exception_object_ref. - (source_end_java_method): No java_set_exception_lang_code or - emit_handlers. - (build_dot_class_method): Use build_exception_object_ref. - (try_reference_assignconv): Check EXC_PTR_EXPR not - soft_exceptioninfo_call_node. - -2001-03-28 Richard Henderson - - * java-tree.h (throw_node): Define as a single member of - java_global_trees instead of a separate array. - (JTI_THROW_NODE): New. - * decl.c (throw_node): Don't declare. - (init_decl_processing): Init a scalar throw_node. - Don't register it for gc. - * check-init.c (check_init): Reference scalar throw_node. - * expr.c (build_java_athrow): Likewise. - * jcf-write.c (generate_bytecode_insns): Likewise. - * parse.h (BUILD_THROW): Likewise. - -2001-03-28 Richard Henderson - - * decl.c (end_java_method): Do not save and restore - flag_non_call_exceptions. - * parse.y (source_end_java_method): Likewise. - * lang.c (flag_exceptions): Don't declare. - (java_init_options): Set flag_non_call_exceptions. Set - flag_exceptions here ... - (java_init): ... not here. - -2001-03-27 Richard Henderson - - * expr.c, parse.h: Use USING_SJLJ_EXCEPTIONS instead of - exceptions_via_longjmp. - - * lang.c (flag_new_exceptions): Don't declare it. - (java_init_options): Or set it. - -2001-03-27 Richard Henderson - - * decl.c (end_java_method): Rename asynchronous_exceptions to - flag_non_call_exceptions. - * parse.y (source_end_java_method): Likewise. - -2001-03-27 Kaveh R. Ghazi - - * Make-lang.in: Depend on $(SYSTEM_H), not system.h. - -2001-03-26 Mark Mitchell - - * parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE. - -2001-03-26 Alexandre Petit-Bianco - - * parse.y (find_as_inner_class): Follow current package - indications not to mistakingly load an unrelated class. - -2001-03-25 Kaveh R. Ghazi - - * constants.c (PUTN): Use memcpy, not bcopy. - - * lex.c (java_read_char): Use memmove, not bcopy. - - * parse.y (java_parser_context_resume): Use memcpy, not bcopy. - -2001-03-23 Per Bothner - - * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE - macro for better error pin-pointing. - * java-tree.h: Fix typo in comment. - - * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. - Don't include jsr/goto in exception range. - Check if start and end of exception range are the same (also TRY_EXPR). - Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. - However, do emit the following goto even if try_block is empty. - Defer freeing exception_decl until after the finalizer, to make - sure the local isn't reused in the finalizer. Fixes PR java/1208. - - * parse.y (java_complete_lhs): If the try-clause is empty, just - return the finally-clause and vice versa. - -2001-03-23 Alexandre Petit-Bianco - - * gcj.texi (Input Options): documented the check for attribute - `gnu.gcc.gccj-compiled' and the `-fforce-classes-archive-check' flag. - * java-tree.h (flag_force_classes_archive_check): Declared extern. - * jcf-parse.c (HANDLE_GCJCOMPILED_ATTRIBUTE): New macro. - (jcf_parse): Check for the right classes archive if necessary. - * jcf-reader.c (get_attribute): Define `MATCH_ATTRIBUTE' and use it. - (jcf_parse_fields): Fixed indentation. - * jcf-write.c (append_gcj_attribute): New function. - (generate_classfile): Compute the attribute count, invoke - `append_gcj_attribute'. - * jcf.h (typedef struct JCF): `seen_in_zip' and `java_source' - turned into bit-fields. New bit-field `right_zip.' - (JCF_ZERO): Set `right_zip' to zero. - * lang-options.h (-fforce-classes-archive-check): Added flag. - * lang.c (flag_force_classes_archive_check): New flag. - (lang_f_options): New entry `force-classes-archive-check.' - Fixes PR java/1213. - -2001-02-07 Andrew Haley - - * gcj.texi (Configure-time Options): Add -fcheck-references. - * expr.c (build_java_indirect_ref): New function. - (java_check_reference): New function. - (build_java_array_length_access): Use build_java_indirect_ref to - check for null references. - (build_java_arrayaccess): Likewise. - (build_get_class): Likewise. - (build_field_ref): Likewise. - (invoke_build_dtable): Likewise. - (build_invokeinterface): Likewise. - * lang.c (lang_f_options): Add flag_check_references. - * jvspec.c (jvgenmain_spec): Add flag_check_references. - * java-tree.h (flag_check_references): New variable. - * lang.c (flag_check_references): Likewise. - * parse.y (patch_invoke): Use java_check_reference. - (patch_assignment): Allow for extra nesting in - _Jv_CheckArrayStore. - -2001-03-23 Bryce McKinlay - - * gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. - * lex.c (cxx_keywords): Likewise. - -2001-03-21 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Broaden `length' - recognition. Help MODIFY_EXPR be resolved as expression names. - Fixes PR java/2066. Fixes PR java/2400. - -2001-03-21 Bryce McKinlay - - * gjavah.c (process_file): Mark interface definitions with - "__attribute__ ((java_interface))". - -2001-03-21 Alexandre Petit-Bianco - - * class.c (layout_class): Fixed push_super_field's second - argument. Fixes PR java/2333. - (jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's - too early to lay innerclasses out. - -2001-03-20 Tom Tromey - Alexandre Petit-Bianco - - * parse.y (patch_assignment): Handle the case of a SAVE_EXPR - inside an array reference. Insertion of the array store check - rewritten. Fixes PR java/2299. - -2001-03-20 Tom Tromey - - * lex.c (java_read_unicode): Only accept leading `u's. - -2001-03-20 Tom Tromey - - * jcf-parse.c (read_class): Initialize `class'. - -2001-03-20 Matt Kraai - - * jcf_parse.c (jcf_parse): Eliminate unused variable. - -2001-03-19 Mark Mitchell - - * class.c (build_class_ref): Use SET_DECL_ASSEMBLER_NAME. - (layout_class): Likewise. - (layout_class_method): Likewise. - (emit_register_classes): Likewise. - * decl.c (builtin_function): Likewise. - (give_name_to_locals): Likewise. - -2001-03-19 Per Bothner - - * jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P - before trying to load an inner class. - - Fixes to process to command-line .class files in two passes. - * java-tree.h (JAVA_FILE_P, CLASS_FILE_P, ZIP_FILE_P): New flags. - (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P): Rename to .. - (CLASS_FROM_CURRENTLY_COMPILED_P): ... because it is more general now. - * class.c (is_compiled_class): Fix for renamed flag. - * parse.y (maybe_create_class_interface_decl): Likewise. - * jcf-parse.c (yyparse): Also set if compiling .class files. - * jcf-parse.c (read_class); Read current_class. - (jcf_parse): Make static. - (load_inner_classes): New function, with code moved from jcf_parse, - because we need to inner classes after the command-line files are read. - (yyparse): Set finput to NULL when it doesn't need to be closed. - Reduce use of main_jcf (basically only for archive) and - use finput instead of main_jcf->read_state. - Inline jcf_figure_file_type into yyparse. - Set JAVA_FILE_P, CLASS_FILE_P, or ZIP_FILE_P on filename list name. - Defer load_inner_classes and parse_class_file to a second pass, - after we've correctly mapped command-line .clas fiels to classes. - (jcf_figure_file_type): Removed. - * jcf.h (JCF_ZIP, JCF_CLASS, JCF_SOURCE): Removed flags. - (JCF_ZERO): Also clear zipd field. - * zipfile.h: Conditionalize on JCF_H insread of JCF_ZIP. - -2001-03-18 Matt Kraai - - * jcf-parse.c (yyparse): Change ch from char * to char. - -2001-03-19 Per Bothner - - * jvspec.c (lang_specific_driver): Check for .zip and .jar files. - Add constructed filelist-file at end, following -xjava. Thus any .o - and library files are not affected by the -xjava. Also wrap - explicit @FILE with -xjava and -xnone. - -2001-03-19 Andrew Haley - - * class.c (build_static_field_ref): Call make_decl_rtl() after - setting the DECL_EXTERNAL flag. - -2001-03-17 Per Bothner - - * decl.c (clear_binding_level): Fix initializer (broke 03-15). - - * jcf-write.c (generate_bytecode_insns): Handle emitting iinc - when result is is needed (target is STACK_TARGET). - - * parse.h (JDEP_SOLV): Removed. - * parse.y (register_incomplete_type): Use JDEP_TO_RESOLVE instead. - - * parse.y (incomplete_class_list): Removed. - (obtain_incomplete_type): Don't use or set incomplete_class_list. - It doesn't work if resolve_class changes the name of an array type - that is on the list and then someone else looks for the modified name. - Also, seems liable to break when compiling multiple source files at - once. So the simplest is to just remove incomplete_class_list - - it is only a minor space win and it is not even clear it saves time. - - * parse.y (resolve_class): Remove unneeded promote_type. - -2001-03-15 Per Bothner - - * java-tree.h (BLOCK_IS_IMPLICIT): New flag. - * parse.h (BLOCK_EXPR_ORIGIN): Removed macro. - * parse.y (declare_local_variables, maybe_absorb_scoping_blocks): - Use BLOCK_IS_IMPLICIT rather than BLOCK_EXPR_ORIGIN. - - * jcf-parse.c (yyparse): Set/reset input_filename for source file. - * parse.y (java_expand_classes): Likewise. - - * parse.y (expand_start_java_method): Was only called once and had a - misleading name, so inline in caller java_complete_expand_method. - (enter_a_block): Likewise inline in enter_block and remove. - - Remove junk from when gcc/java was created (by copying from C/C++). - * decl.c (keep_next_level_flag, keep_next_if_subblocks): Remove. - (struct binding_level): Remove fields keep, keep_if_subblocks, - more_cleanups_ok, have_cleanups (which have never been used). - (pushlevel, poplevel): Remove related useless code. - - * class.c (make_class_data): The class_dtable_decl (i.e. the - vtable for Class) should be external, except when compiling Class. - - * jvspec.c (lang_specific_driver): Fix -C handling. - Check -save-temps to see if temp @FILE should be deleted. - Follow-up to/fix for February 16 patch. - - * verify.c (verify_jvm_instructions): Better error msgs for dup. - (type_stack_dup): Remove no-longer neded error check. - -2001-03-15 Bryce McKinlay - - * mangle.c (mangle_record_type): Rename 'from_pointer' argument - to 'for_pointer'. If this type is for a pointer (argument) mangling, - don't surround the element with 'N..E' if the type name is - unqualified. - -2001-03-14 Mark Mitchell - - * class.c (build_static_field_ref): Use COPY_DECL_RTL, - DECL_RTL_SET_P, etc. - (make_method_value): Likewise. - (get_dispatch_table): Likewise. - - * decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. - -2001-03-07 Tom Tromey - - * config-lang.in (lang_requires): Define. - -2001-03-07 Brad Lucier - - * typeck.c (convert): Check flag_unsafe_math_optimizations, - not flag_fast_math. - -2001-03-05 Per Bothner - - Fix a problem where rest_of_decl_compilation applied to - class_dtable_decl causes problems because it was done too early, - before output file was opened. - * decl.c (init_decl_processing): Remove init of class_dtable_decl. - * class.c (class_dtable_decl): Add macro - element of class_roots. - (make_class_data): Define class_dtable_decl. - * java-tree.h (JTI_CLASS_DTABLE_DECL, class_dtable_decl): Removed. - -2001-03-01 Zack Weinberg - - * java/class.c, java/decl.c, java/java-tree.h: Replace all - uses of 'boolean' with 'bool'. - -2001-03-01 Zack Weinberg - - * lang-specs.h: Add zero initializer for cpp_spec field to all - array elements. - -2001-02-16 Per Bothner - - Handle compiling multiple input files at once, and @FILE syntax. - * gcj.texi: Updated documentation to match. - * java-tree.h (flag_filelist_file, init_src_parse): New declarations. - * jcf-parse.c (parse_source_file): Split into ... - (parse_source_file_1): New function - and: - (parse_source_file_2): New function. - (yyparse): On -ffilelist-file, open and scan named file. - On first pass over files, only do parse_source_file_1. - A new second pass calls parse_source_file_2 for each file to compile. - (init_jcf_parse): Call init_src_parse. - * jvspec.c (INDIRECT_FILE_ARG): New flag. - (lang_specific_driver): Support @FILELIST-FILE syntax, as well - as multiple input file combined in one compilation. - * lang-options.h: Add -ffilelist-file - * lang.c (flag_filelist_file): New flag variable. - (lang_f_options): Handle -ffilelist-file. - * lex.c (java_init_lex): Don't clear ctxp->incomplete_class. - * parse.h (struct parse_ctxt): Remove fields incomplete_class and - gclass_list - use global fields of src_parse_roots instead. - * parse.y (src_parse_roots): New array. - (incomplete_class_list, gclass_list): New macros. - (push_parser_context, java_pop_parser_context, - java_parser_context_resume): Don't fiddle with deleted fields. - (various): Use incomplete_class gclass_list and global macros - instead of parse_ctxt fields - the lists are global. - (init_src_parse): New function. - -2001-02-23 Richard Kenner - - * decl.c (set_block): Set NAMES and BLOCKS from BLOCK. - -2001-02-20 Alexandre Petit-Bianco - - * parse.y (check_inner_class_access): Moved declaration of local - `enclosing_decl_type' to the right location. - -2001-02-19 Bryce McKinlay - - * parse.y (parser_check_super_interface): Don't call - check_pkg_class_access for an inner interface. - (parser_check_super): Don't call check_pkg_class_access for inner - class. - (do_resolve_class): Simplify enclosing type loop. Don't call - check_pkg_class_access if CL and DECL are not set. - (find_in_imports_on_demand): Set DECL if class_type needed to be - loaded. Don't call check_pkg_class_access for an inner class. - (check_inner_class_access): Rewritten to implement member access - rules as per spec 6.6.1. - (check_pkg_class_access): Handle the empty package correctly. - (in_same_package): New function. Determine if two classes are in the - same package. - -2001-02-18 Bryce McKinlay - - * typeck.c (build_java_array_type): Don't try to poke a public `clone' - method into array types. - * parse.y (patch_method_invocation): Bypass access check on clone call - to array instance. - -2001-02-15 Alexandre Petit-Bianco - - * expr.c (build_instanceof): Check for arrays when trying fold to - false. - -2001-02-15 Jim Meyering - - * Make-lang.in (java.install-common): Depend on `installdirs'. - (java.install-info): Likewise. - -2001-02-15 Bryce McKinlay - - * Make-lang.in (jvspec.o): Modify rule to match that of cp/g++spec.o. - -2001-02-14 Tom Tromey - Alexandre Petit-Bianco - - Fix for PR java/1261. - * typeck.c (build_java_array_type): Add public `clone' method to - arrays. - * parse.y (resolve_qualified_expression_name): Use current_class - when checking for inaccessibility. - (patch_method_invocation): Fixed error message when accessibility - denied. Added `from_super' argument. - -2001-02-14 Alexandre Petit-Bianco - - * parse.y (resolve_class): Don't build a fake decl. Use the one - already built. - * typeck.c (build_java_array_type): Build and assign decl to array - type. - -2001-02-14 Alexandre Petit-Bianco - - * parse.y (not_accessible_p): Changed leading comment. Added extra - `where' argument. Use it to enforce protected access rules. - (resolve_qualified_expression_name): Added extra argument to - not_accessible_p. - (patch_method_invocation): Use argument `primary' to provide - not_accessible_p with an extra argument. - (lookup_method_invoke): Added extra argument to not_accessible_p. - (search_applicable_method_list): Likewise. - -2001-02-13 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Try to resolve as - an inner class access only if `decl' is a TYPE_DECL. - -2001-02-13 Alexandre Petit-Bianco - - * decl.c (classdollar_identifier_node): Initialize. - * java-tree.h (enum java_tree_index): New entry - `JTI_CLASSDOLLAR_IDENTIFIER_NODE.' - (classdollar_identifier_node): New macro. - (ID_CLASSDOLLAR_P): Likewise. - * parse.y (build_dot_class_method): Use `classdollar_identifier_node.' - (build_dot_class_method_invocation): Likewise. - (find_applicable_accessible_methods_list): `class$' can't be - inherited. - -2001-02-09 Raja R Harinath - - * Make-lang.in (java/mangle_name.o): Add 'make' prereqs. - -2001-02-09 Alexandre Petit-Bianco - - * Manke-lang.in (JVGENMAIN_OBJS): Added `errors.o' - * jvgenmain.c (error): Reversed 2001-02-09 patch. `error' is now - gone. - -2001-02-09 Alexandre Petit-Bianco - - * mangle_name (append_unicode_mangled_name): Emit `_' or `U' - outside of the `__U' sequence too. - (unicode_mangling_length): Count `_' or `U' outside of the `__U' - sequence too. - -2001-02-09 Alexandre Petit-Bianco - - * jvgenmain.c (error): Reversed 2001-02-01 deletion. - -2001-02-08 Alexandre Petit-Bianco - - * Make-lang.in (JAVA_OBJS): Added java/mangle_name.o - (JVGENMAIN_OBJS): Likewise. - * java-tree.h (append_gpp_mangled_name): New prototype. - * jcf-parse.c (ggc_mark_jcf): Argument now `void *.' - Removed cast calling `gcc_add_root.' - * jvgenmain.c (mangle_obstack): New global, initialized. - (main): Use it. - (do_mangle_class): Constify local `ptr.' - Removed macro `MANGLE_NAME.' Removed cast in `for.' Call - append_gpp_mangle_name and update `count' if necessary. - Use `mangle_obstack.' - * mangle.c (append_unicode_mangled_name): Removed. - (append_gpp_mangled_name): Likewise. - (unicode_mangling_length): Likewise. - (mangle_member_name): Return type set to `void.' - (mangle_field_decl): Don't append `U' in escaped names. - (mangle_method_decl): Likewise. - (mangle_member_name): Just use `append_gpp_mangled_name.' - * mangle_name.c: New file. - -2001-02-07 Per Bothner - - * check-init.c (check_init): Fix TRY_FINALLY_EXPR logic. - - * check-init.c (check_init): Don't call done_alternative after - processing loop code, as a LOOP_EXPR never terminates normally. - -2001-02-08 Joseph S. Myers - - * gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. - -2001-02-07 Alexandre Petit-Bianco - - * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field - DECLs. - -2001-02-06 Tom Tromey - - * lex.c (java_new_lexer): Longer error message. - -2001-02-05 Jeff Sturm - Alexandre Petit-Bianco - - * typeck.c (build_prim_array_type): Added leading comment. - (build_java_array_type): Moved locals out of - block. Always create the `data' field, fixed alignment to match - C++. - -2001-02-04 Tom Tromey - - * expr.c (java_lang_expand_expr): Don't bother recomputing - `length'. Use rest_of_decl_compilation, not make_decl_rtl. - Fixes PR java/1866. - -2001-02-05 Alexandre Petit-Bianco - - * parse.y (process_imports): Save the original name of the import - for better error report. - -2001-02-04 Bryce McKinlay - - * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list - of macros used when compiling jvspec.c. - * jvspec.c (lang_specific_driver): Link with the shared - libgcc by default. - -2001-02-04 Richard Kenner - - * check-init.c (check_init): Call internal_error instead of fatal. - * expr.c (java_lang_expand_expr): Likewise. - * jcf-parse.c (get_constant): Likewise. - * mangle.c (java_mangle_decl): Likewise. - * parse.y (make_nested_class_name, java_complete_lhs): Likewise. - (operator_string): Likewise. - * check-init.c (check_init): Call abort instead of fatal. - * class.c (build_class_ref): Likewise. - * constants.c (write_constant_pool): Likewise. - * decl.c (start_java_method): Likewise. - * expr.c (push_type, java_stack_pop, java_stack_swap): Likewise. - (java_stack_dup, encode_newarray_type): Likewise. - (build_java_array_length_access): Likewise. - (build_java_check_indexed_type, expand_java_pushc): Likewise. - (build_java_soft_divmod, build_invokeinterface): Likewise. - * java-tree.h (INNER_CLASS_P): Likewise. - * jcf-parse.c (parse_signature, get_name_constant): Likewise. - (give_name_to_class, get_class_constant): Likewise. - * jcf-write.c (CHECK_PUT, CHECK_OP, get_access_flags): Likewise. - (find_constant_index, generate_bytecode_conditional): Likewise. - (generate_bytecode_insns, perform_relocations): Likewise. - * lex.c (java_unget_unicode, java_lex): Likewise. - * mangle.c (mangle_type, mangle_record_type): Likewise. - (mangle_pointer_type, mangle_array_type, init_mangling): Likewise. - (finish_mangling): Likewise. - * parse.h (MARK_FINAL_PARMS): Likewise. - * parse.y (pop_current_osb, unreachable_stmt_error): Likewise. - (obtain_incomplete_type, java_complete_class): Likewise. - (java_check_regular_methods, java_complete_expand_method): Likewise. - (cut_identifier_in_qualified, check_deprecation): Likewise. - (patch_invoke, find_applicable_accessible_methods_list): Likewise. - (java_complete_lhs, lookup_name_in_blocks): Likewise. - (check_final_variable_indirect_assignment, build_unaryop): Likewise. - * typeck.c (set_local_type, parse_signature_type): Likewise. - (parse_signature_string, build_java_signature): Likewise; - (set_java_signature): Likewise. - * verify.c (type_stack_dup, CHECK_PC_IN_RANGE): Likewise. - * class.c (add_method): Call fatal_error instead of fatal. - (build_static_field_ref): Likewise. - * expr.c (build_known_method_ref, expand_invoke): Likewise. - * jcf-parse.c (get_constant, jcf_parse): Likewise. - * lex.c (java_new_new_lexer): Likewise. - * jv-scan.c (main): Likewise. - (fatal_error): Renamed from fatal. - * jcf-parse.c (yyparse): Call fatal_io_error instead of - pfatal_with_name. - * jcf-parse.c (jcf_parse_source): Call fatal_io_error, not fatal. - (yyparse): Likewise. - * jcf-write.c (make_class_file_name, write_classfile): Likewise. - * lex.c (java_get_line_col): Likewise. - * jcf-parse.c (load_class): Make errors non-fatal. - * lex.c (byteswap_init, need_byteswap): Only #ifdef HAVE_ICONV. - -2001-02-01 Bryce McKinlay - - * jvgenmain.c (class_mangling_suffix): Remove unused string. - (error): Remove unused function. - (main): Don't use "__attribute__ alias" on generated class symbol. - -2001-01-30 Alexandre Petit-Bianco - - * jcf-parse.c (init_jcf_parse): Added cast to ggc_add_root's last - argument. - * parse.y (finish_method_declaration): Code accounting for WFLed - method DECL_NAMEs deleted. - (check_abstract_method_definitions): Likewise. - (resolve_type_during_patch): Layout resolved type. - * typeck.c (lookup_do): Removed unused local. - -2001-01-30 Bryce McKinlay - - * java-tree.h: Remove JTI_INTEGER_NEGATIVE_ONE_NODE. - * decl.c (init_decl_processing): Use integer_minus_one_node, not - integer_negative_one_node. - * expr.c (build_java_binop): Likewise. - -2001-01-24 Jeff Sturm - - * zextract.c (read_zip_archive): Read file_offset before writing - zipd and consequently clobbering the header contents. - -2001-01-27 Kaveh R. Ghazi - - * Make-lang.in: Remove all dependencies on defaults.h. - * decl.c: Don't include defaults.h. - * expr.c: Likewise. - * parse.y: Likewise. - -2001-01-25 Alexandre Petit-Bianco - - * ChangeLog (2001-01-21): Fixed typo. - * class.c (layout_class_method): Code accounting for WFLed - method DECL_NAMEs deleted. - * constant.c (find_methodref_index): Likewise. - * decl.c (lang_mark_tree): Mark `wfl' field in struct lang_decl. - * java-tree.h (DECL_FUNCTION_WFL): New macro. - (struct lang_decl): New field `wfl'. - (java_get_real_method_name): Prototype deleted. - * mangle.c (mangle_method_decl): Code accounting for WFLed - method DECL_NAMEs deleted. - * parse.h (GET_METHOD_NAME): Macro deleted. - * parse.y (reset_method_name): Deleted. - (method_header): Set DECL_FUNCTION_WFL. - (check_abstract_method_header): Code accounting for WFLed method - DECL_NAMEs deleted. - (java_get_real_method_name): Deleted. - (check_method_redefinition): Code accounting for WFLed method - DECL_NAMEs deleted. Use DECL_FUNCTION_WFL. - (java_check_regular_methods): Likewise. - (java_check_abstract_methods): Likewise. - (java_expand_classes): Don't call `reset_method_name.' - (search_applicable_method_list): Use DECL_NAMEs instead of - GET_METHOD_NAME. - * typeck.c (lookup_do): Code accounting for WFLed method - DECL_NAMEs deleted. - -2001-01-25 Richard Earnshaw - - * lex.c (java_read_char): Check for EOF from getc first. - -2001-01-23 Alexandre Petit-Bianco - - * class.c (layout_class): Don't lay the superclass out if it's - already being laid out. - * jcf-parse.c (handle_innerclass_attribute): New function. - (HANDLE_INNERCLASSES_ATTRIBUTE): Invoke - handle_innerclasses_attribute. - (jcf_parse): Don't load an innerclasses if it's already being - laid out. - * jcf-write.c (append_innerclass_attribute_entry): Static - `anonymous_name' and its initialization deleted. `ocii' and `ini' - to be zero for anonymous classes. - -2001-01-23 Alexandre Petit-Bianco - - * class.c (set_constant_value): Set DECL_FIELD_FINAL_IUD if - necessary. - * jcf-parse.c (set_source_filename): Use - MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC if necessary. - -2001-01-23 Alexandre Petit-Bianco - - * expr.c (build_jni_stub): Set DECL_CONTEXT on `meth_var' so it - gets a unique asm name. - -2001-01-23 Alexandre Petit-Bianco - - * jcf-parse.c (HANDLE_END_METHODS): Nullify current_method. - (HANDLE_START_FIELD): Invoke MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC - if necessary. - (HANDLE_SYNTHETIC_ATTRIBUTE): New macro. - * jcf-reader.c (get_attribute): Handle `Synthetic' attribute. - * parse.y (lookup_package_type_and_set_next): Deleted. - (resolve_package): Removed unnecessary code. - (find_applicable_accessible_methods_list): `finit$' can't be - inherited. - * verify.c (pop_argument_types): Added missing prototype. - -2001-01-23 Bryce McKinlay - - * config-lang.in: Disable java by default. - -2001-01-23 Tom Tromey - - * gcj.texi (Copying): New node. - Added copyright information. - -2001-01-21 Per Bothner - - Various fixes to allow compiling a compressed .jar/.zip archive. - * zipfile.h (struct ZipFileCache): Replace by struct ZipFile. - (struct ZipFile): Add fields name and next (from ZipFileCache). - (struct ZipDirectory): New field zipf points to owning ZipFile. - * jcf.h (struct ZipDirectory): Add forward declaration. - (struct JCF): Declare zipd field to have type struct ZipDirectory. - Remove seen_in_zip and zip_offset fields. - (JCF_SEEN_IN_ZIP): New macro. - * zextract.c (read_zip_archive): Set ZipDirectory's zipf field. - * jcf-io.c: Change all ZipFileCache to ZipFile. - (read_zip_member): New function. - (open_in_zip): Call read_zip_member. - * jcf-parse.c (find_in_current_zip): Remove function. - (read_class): Merge in find_in_current_zip functionality. - Call read_zip_member if needed. - (parse_zip_file_entries): Use read_zip_member. - (process_zip_dir): Update for removed and added JCF fields. - (jcf_figure_file_type): Re-use, don't copy initial ZipFile struct. - -2001-01-21 Per Bothner - - Minor optimization of static ggc roots. - * jcf-parse.c (parse_roots): New static field. - (current_field, current_method, current_file_list): Replace by macros - naming fields of parse_roots. - (init_jcf_parse): Combine 3 ggc_add_tree_root calls to 1. - * class.c (class_roots): New static field. - (registered_class, fields_ident, info_ident, class_list): - New macros naming fields of parse_roots. - (build_static_field_ref): Don't register roots here. - (layout_class): Static field list replaced by macro class_list. - (init_class_processing): Call ggc_add_tree_root for 4 roots. - Initialize fields_ident and info_ident here. - -2001-01-21 Per Bothner - - * jcf-parse.c (ggc_mark_jcf): New function. - (init_jcf_parse): Register current_jcf as ggc root. - -2001-01-21 Per Bothner - - * lang.c (put_decl_node): Print method's name. - -2001-01-21 Per Bothner - - * verify.c (VERIFICATION_ERROR_WITH_INDEX): New macro. - (verify_jvm_instructions): Use it, for better error messages on loads. - -2001-01-21 Per Bothner - - * verify.c (merge_type_state): Still may have to merge even if - LABEL_VERIFIED (label). - -2001-01-21 Per Bothner - - * parse.y (method_header): Don't set the DECL_NAME of a FUNCTION_DECL - to a EXPR_WITH_FILE_LOCATION - that is just too fragile and wrong. - -2001-01-19 Per Bothner - - * expr.c (pop_type_0): Only return object_ptr_type_node on mismatch - if expeting an interface type. Refines Tom's change of 2000-09-12. - -2001-01-18 Per Bothner - - * gcj.texi (Input Options): Mention .java files. - -2001-01-17 Alexandre Petit-Bianco - - * lang-options.h (-Wunsupported-jdk11): Removed. - * lang.c (flag_not_overriding): Deleted. - (flag_static_local_jdk1_1): Likewise. - (lang_W_options): Removed "unsupported-jdk11" entry. - * parse.y (java_check_methods): Removed dead code. - -2001-01-17 Tom Tromey - - Changes suggested by Per Bothner: - * gcj.texi (Input Options): Don't mention input files. - (Code Generation): Updated --main information. - (Invoking jcf-dump): Mention that --javap is incomplete. - From Alexandre Petit-Bianco: - (Warnings): Don't mention -Wunsupported-jdk11. - My stuff: - (Compatibility): Mention JDK 1.2-ness of libraries. - (Resources): Mention resources used when writing gcj. - -2001-01-17 Tom Tromey - - * gcj.texi: New file. - * Make-lang.in ($(srcdir)/java/gcj.info): New target. - (java.info): Depend on gcj.info. - (java/gcj.dvi): New target. - (java.dvi): Depend on gcj.dvi. - (java.install-info): Wrote. - -2001-01-16 Jeff Sturm - - * expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after - having called make_decl_rtl. - -2001-01-14 Per Bothner - - Various patches to emit better messages on verification errors. - * expr.c (push_type_0): Return error indication on stack overflow, - instead of callinfg fatal. - (push_type): Now just call push_type_0 (nd fatal on overflow). - (pop_type_0): Return detailed error message (in a char** argument). - (pop_type): If pop_type_0 fails, print error message. - (pop_argument_types): Moved to verify.c. - * verify.c (pop_argument_types): Moved from expr.c. - Return a (possible) error message, rather than void. - (POP_TYPE, POP_TYPE_CONV, PUSH_TYPE, PUSH_PENDING): New macros. - (verify_jvm_instruction): Use new macros, improving error messages. - For case OPCODE_astore use object_ptr_type_node. - * java-tree.h (TYPE_UNDERFLOW, TYPE_UNEXPECTED): New macros. - (pop_type_0, push_type_0, pop_argument_types): Update accordingly. - - * parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is - constant, return body without wrapper. (Improves constant folding.) - * lex.c (build_wfl_node): Clear TREE_TYPE from returned node. - -2001-01-13 Per Bothner - - * expr.c (expand_java_field_op): Assigning to a final field outside - an initializer does not violate JVM spec, so should be warning, not - error. (Sun's verifier does not complain - though MicroSoft's does.) - -2001-01-12 Joseph S. Myers - - * gjavah.c (version), jcf-dump.c (version): Update copyright year - to 2001. - -2001-01-11 Bryce McKinlay - - * parse.y (resolve_expression_name): Permit instance variables from - enclosing context in super constructor call. - (resolve_qualified_expression_name): Permit enclosing class's qualified - "this" in super constructor call. - -2001-01-10 Mark Mitchell - - * class.c (build_utf8_ref): Remove last argument in call to - make_decl_rtl; use make_function_rtl instead of make_decl_rtl. - (build_class_ref): Likewise. - (build_static_field_ref): Likewise. - (get_dispatch_table): Likewise. - (layout_class_method): Likewise. - (emit_register_classes): Likewise. - * constants.c (build_constant_data_ref): Likewise. - * decl.c (builtin_function): Likewise. - (create_primitive_vtable): Likewise. - * expr.c (build_known_method_def): Likewise. - (build_jni_stub): Likewise. - (java_lang_expand_expr): Likewise. - -2001-01-10 Tom Tromey - - * jvspec.c (jvgenmain_spec): Omit -fencoding from cc1 invocation. - -2001-01-08 Alexandre Petit-Bianco - - * java-tree.h (lang_printable_name_wls): New prototype. - * lang.c (put_decl_name): Removed dead code. Use DECL_CONTEXT - rather than `current_class' to print type name. Don't prepend type - names when printing constructor names. - (lang_printable_name_wls): New function. - * jcf-parse.c (jcf_parse_source): Pass NULL `file' argument to - `build_expr_wfl', alway set EXPR_WFL_FILENAME_NODE. - * parse.y (patch_method_invocation): Message tuned for constructors. - (not_accessible_p): Grant `private' access from within - enclosing contexts. - -2001-01-07 Alexandre Petit-Bianco - - All files with updated copyright when applicable. - * Make-lang.in (JVGENMAIN_OBS): Removed java/mangle.o. - * class.c (mangle_class_field): Function removed. - (append_gpp_mangled_type, mangle_static_field, mangle_field): Likewise. - (utf8_cmp, cxx_keyword_p): Moved to lex.c. - (build_class_ref): Call `java_mangle_class_field' instead of - `mangle_class_field.' - (build_dtable_decl): Rewritten to call `java_mangle_vtable.' - (layout_class): Call `java_mangle_decl' instead of - `mangle_static_field.' - (cxx_keywords): Initialized static array moved to `lex.c.' - (layout_class_method): Changed leading comment. Simplified to - call `java_mangle_decl.' Local `ptr' moved in for loop body. - * decl.c (lang_mark_tree): Mark field `package_list.' - * java-tree.h (TYPE_PACKAGE_LIST): New macro. - (struct lang_type): New field `package_list.' - (unicode_mangling_length): Prototype removed. - (append_gpp_mangled_name, append_gpp_mangled_classtype, - emit_unicode_mangled_name): Likewise. - (cxx_keyword_p): New prototype. - (java_mangle_decl, java_mangle_class_field, - java_mangle_class_field_from_string, java_mangle_vtable): Likewise. - * jcf-parse.c (jcf_parse_source): Constify `file' argument to - `build_expr_wfl.' - * jvgenmain.c (main_method_prefix): Global variable removed. - (main_method_suffix): Likewise. - (do_mangle_classname): New function. - (main): Call it. Format changed to accommodate new mangling scheme. - * lex.c: (utf8_cmp): Conditionally prototyped. - (cxx_keywords): Moved from class.c, conditionally defined. - (utf8_cmp, cxx_keyword_p): Likewise. - * mangle.c (obstack.h, ggc.h): Included. - (mangle_field_decl): New function. - (mangle_method_decl, mangle_type, mangle_pointer_type, - mangle_array_type, mangle_record_type, - find_compression_pointer_match, find_compression_array_match, - find_compression_record_match, - find_compression_array_template_match, set_type_package_list, - entry_match_pointer_p, emit_compression_string, init_mangling, - finish_mangling, compression_table_add, mangle_member_name): Likewise. - (mangle_obstack): New global. - (MANGLE_RAW_STRING): New macro. - (unicode_mangling_length): Turned static. - (append_unicode_mangled_name): Renamed from - `emit_unicode_mangled_name.' Turned static. `mangle_obstack' - replaces `obstack', removed from the parameter list. - (append_gpp_mangled_name): Turned static. `mangle_obstack' - replaces parameter `obstack', removed from the parameter list. Call - `append_unicode_mangled_name' instead of `emit_unicode_mangled_name. - (append_gpp_mangled_classtype): Removed. - (compression_table, compression_next): New static variables. - * parse.y (temporary_obstack): Extern declaration removed. - -2001-01-05 Alexandre Petit-Bianco - - * parse.y (patch_binop): Compute missing type in error situations. - -2001-01-05 Bryce McKinlay - - * class.c (make_class_data): Push initial value for "arrayclass". - * decl.c (init_decl_processing): Add new class field "arrayclass". - -2001-01-05 Bryce McKinlay - - From patha@softlab.ericsson.se: - * parse.y (switch_label): Use build, not build1, to construct - DEFAULT_EXPR. - -2001-01-04 Neil Booth - - * lang.c (lang_decode_option): Change -MA to -MP. - * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target): - Update to new prototype; do quote targets. - (jcf_dependency_write): Update. - -2000-12-22 Bryce McKinlay - - Shorten primitive array allocation path: - * decl.c (init_decl_processing): Use _Jv_NewPrimArray not _Jv_NewArray - to create new primitive arrays. - * expr.c (build_newarray): If generating native code, call - soft_newarray_node with a reference to the primitive TYPE identifier - instead of type_value. - -2000-12-17 Bryce McKinlay - - Fix for PRs gcj/312 and gcj/253: - * parse.y (valid_ref_assignconv_cast_p): Load classes for source and - dest if they arn't already. - * class.c (layout_class): Call maybe_layout_super_class on - superinterfaces also, but only if compiling from bytecode. - - Fix for PR gcj/373: - * parse.y (create_class): Set ACC_STATIC if class is declared in an - interface. - -2000-12-15 Tom Tromey - - * jcf-parse.c (jcf_parse_source): Set wfl_operator if not already - set. - -2000-12-14 Andrew Haley - - * boehm.c (mark_reference_fields): Change test to correctly detect - bitmap overflow. - -2000-12-15 Andreas Jaeger - - * config-lang.in (lang_dirs): Added. - -2000-12-15 Alexandre Petit-Bianco - - * parse.y (end_artificial_method_body): Fixed undefined behavior. - Credits go to rth for finding it. - -2000-12-13 Mike Stump - - * parse.y (check_static_final_variable_assignment_flag): Fix spelling. - -2000-11-07 Tom Tromey - - * Make-lang.in (JAVA_LEX_C): Added chartables.h. - * lex.c (java_ignorable_control_p): Removed. - (java_letter_or_digit_p): Removed. - (java_start_char_p): New function. - (java_read_char): Return `int', not `unicode_t'. Changed - callers. - (java_read_unicode): Likewise. - (java_read_unicode_collapsing_terminators): Likewise. - (java_get_unicode): Likewise. - (java_new_lexer): Initialize hit_eof. - (java_parse_end_comment): Take `int' argument. - (java_parse_doc_section): Likewise. - (java_parse_escape_sequence): Don't allow backlash-newline. - Return `int'. - * lex.h (JAVA_DIGIT_P): Removed. - (_JAVA_LETTER_OR_DIGIT_P): Removed. - (_JAVA_IDENTIFIER_IGNORABLE): Removed. - (JAVA_START_CHAR_P): Renamed from JAVA_ID_CHAR_P. - (JAVA_PART_CHAR_P): New macro. - (UEOF): Now -1. - (JAVA_CHAR_ERROR): Now -2. - (java_lexer): New field `hit_eof'. - * chartables.h: New file. - * gen-table.pl: new file. - -2000-11-20 Tom Tromey - Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): Only allow compound assignment of - reference type if type is String. - -2000-12-09 Alexandre Petit-Bianco - - * Make-lang.in (java/jcf-path.o:): libgcj.jar replaces libgcj.zip. - jcf-path.c: Likewise. - -2000-12-09 Anthony Green - - * zipfile.h (ZipDirectory): Declare size, uncompressed_size, - filestart and filename_length as int values. - -2000-12-07 Mo DeJong - - * jcf-io.c (find_class): Correct the logic that tests to see if a - .java file is newer than its .class file. The compiler was - incorrectly printing a warning when file mod times were equal. - -2000-12-07 Zack Weinberg - - * jvgenmain.c: Use ISPRINT not isascii. - -2000-12-06 Alexandre Petit-Bianco - - * parse.y (end_artificial_method_body): Fixed typo. - -2000-12-04 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Pick the correct enclosing - context when creating inner class instances. - Fixes gcj/332. - -2000-11-26 Joseph S. Myers - - * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): - Update copyright year to 2000. - -2000-11-23 Anthony Green - - * jcf-parse.c (init_jcf_parse): Register current_file_list root. - Move current_file_list out of yyparse and make it static. - - * expr.c: Declare quick_stack and tree_list_free_list as static - (init_expr_processing): Register quick_stack and - tree_list_free_list roots. - -2000-11-22 Alexandre Petit-Bianco - - * parse.y (build_outer_field_access): New local `decl_ctx', use - it. Check for field's context and current class immediate outer - context inheritance. - (outer_field_access_p): Consider fields inherited from the last - enclosing context. - (build_access_to_thisn): Stop at the last enclosing context if - necessary. - Fixes gcj/367. - -2000-11-23 J"orn Rennecke - - * Make-lang.in (jvspec.o): Depend on $(CONFIG_H). - -2000-11-22 Bryce McKinlay - - * jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the - scratch buffer. - -2000-11-20 Tom Tromey - - * 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. - -2000-11-20 Tom Tromey - - * 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. - -2000-11-20 Tom Tromey - - * lex.c (yylex): Recognize floating point constants with leading - 0. - -2000-11-19 Kaveh R. Ghazi - - * java-tree.h (cyclic_inheritance_report): Constify. - * parse.y (cyclic_inheritance_report): Likewise. - -2000-11-17 Zack Weinberg - - * parse.y (goal): Remove call to ggc_add_string_root. - -2000-11-16 Zack Weinberg - - * jcf-parse.c (get_constant), parse.y (do_merge_string_cste): - Create string in scratch buffer, then pass to build_string. - -2000-11-13 Joseph S. Myers - - * parse.y (issue_warning_error_from_context): Add - ATTRIBUTE_PRINTF. - -2000-11-11 Anthony Green - - * jcf-parse.c (process_zip_dir): Add finput parameter. - (jcf_figure_file_type): Call process_zip_dir with appropriate - argument. - -2000-11-10 Kaveh R. Ghazi - - * decl.c (copy_lang_decl): Use memcpy, not bcopy. - * jcf-parse.c (jcf_figure_file_type): Likewise. - -2000-11-09 Joseph S. Myers - - * parse.y (create_new_parser_context): Use memset () instead of - bzero (). - -2000-11-08 Tom Tromey - - * gjavah.c (process_file): Only include gcj/cni.h when generating - CNI stubs. - -2000-11-07 Joseph S. Myers - - * expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c - (init_outgoing_cpool), lex.c (java_init_lex): Use memset () - instead of bzero (). - -2000-11-05 Tom Tromey - - * lex.h (JAVA_FLOAT_RANGE_ERROR): Typo fix. - * lex.c (IS_ZERO): New define. - (java_perform_atof): Error on floating point underflow. - -2000-11-04 Tom Tromey - - * lex.c (java_parse_escape_sequence): Only read two octal - characters if the first one is greater than 3. Don't allow - "octal" numbers to include the digits 8 or 9. - -2000-11-05 Joseph S. Myers - - * Make-lang.in (java.distdir): Remove. - -2000-11-03 Tom Tromey - - * Make-lang.in (java.dvi): New target. - Partial fix for PR other/567. - - * lang-options.h: Mention -Wout-of-date. - * jcf-dump.c (flag_newer): New global. - * gjavah.c (flag_newer): New global. - * jcf-io.c (find_class): Only warn when flag_newer set. - * lang.c (flag_newer): New global. - (struct string_option): New declaration. - (lang_W_options): New global. - (process_option_with_no): New function. - (lang_decode_option): Use it. - - * class.c (cxx_keyword_p): Accept keywords with trailing `$'s. - * gjavah.c (cxx_keyword_subst): Handle any number of trailing - `$'. - - * lex.h (_JAVA_IDENTIFIER_IGNORABLE): New macro. - (JAVA_ID_CHAR_P): Also try java_ignorable_control_p. - * lex.c (java_read_unicode): Removed `term_context' argument. - Recognize any number of `u' in `\u'. - (java_read_unicode_collapsing_terminators): New function. - (java_get_unicode): Use it. - (java_lineterminator): Removed. - (yylex): Produce error if character literal is newline or single - quote. Return if eof found in middle of `//' comment. EOF in - `//' comment is only an error if pedantic. - (java_ignorable_control_p): New function. - (java_parse_end_comment): Return if eof found in middle of - comment. - Include flags.h. - * jv-scan.c (pedantic): New global. - -2000-10-31 Alexandre Petit-Bianco - - * parse.y (outer_field_access_p): Inherited fields aren't - consider outer fields. - (maybe_build_thisn_access_method): Use - PURE_INNER_CLASS_TYPE_P instead of INNER_CLASS_TYPE_P. - (resolve_expression_name): Trigger an error if a static field - is being accessed as an outer field. - -2000-10-29 Alexandre Petit-Bianco - - * Make-lang.in (LIBGCJ_ZIP_FILE): Define with `$(prefix)'. - Fixes gcj/365. - -2000-10-27 Zack Weinberg - - * Make-lang.in: Move all build rules here from Makefile.in, - adapt to new context. Wrap all rules that change the current - directory in parentheses. Expunge all references to $(P). - When one command depends on another and they're run all at - once, use && to separate them, not ;. Add OUTPUT_OPTION to - all object-file generation rules. Delete obsolete variables. - - * Makefile.in: Delete. - * config-lang.in: Delete outputs= line. - -2000-10-25 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): NULLify this_arg when already - inserted. - (maybe_use_access_method): Handle call to methods unrelated to the - current class. Fixed comment. - Fixes gcj/361. - -2000-10-24 Alexandre Petit-Bianco - - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Check inherited type in - scope. - -2000-10-24 Tom Tromey - - * lex.c (java_new_lexer): Initialize new fields. Work around - broken iconv() implementations. - (java_read_char): Swap bytes if required. Use fallback decoder if - required. - (byteswap_init, need_byteswap): New globals. - (java_destroy_lexer): Only close iconv handle if it is in use. - * lex.h (java_lexer): New fields read_anything, byte_swap, - use_fallback. - Made out_buffer unsigned. - -2000-10-24 Alexandre Petit-Bianco - - * parse.y (register_incomplete_type): Include JDEP_FIELD as a case - where an enclosing context can be set on the jdep. - (do_resolve_class): Fixed identation. - -2000-10-21 Kaveh R. Ghazi - - * gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define - - * jcf-reader.c (peek_attribute, skip_attribute): Only define - when requested. - - * parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN. - - * verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void. - -2000-10-18 Alexandre Petit-Bianco - - * jcf-write.c (OP1): Update `last_bc'. - (struct jcf_block): Fixed indentation and typo in comments. New - field `last_bc'. - (generate_bytecode_insns): Insert `nop' if `jsr' immediately - follows `monitorenter'. - * parse.y (patch_synchronized_statement): New local `tmp'. Call - `patch_string'. - Fixes gcj/232. - -2000-10-16 Tom Tromey - - * jvspec.c (lang_specific_driver): Recognize -MF and -MT. - * lang-specs.h: Added %{MA}, %{MF*}, %{MT*}. - * lang-options.h: Added -MA, -MT, -MF.. - * lang.c (lang_decode_option): Recognize -MA, -MT, -MF. - (DEPEND_TARGET_SET): New macro. - (DEPEND_FILE_ALREADY_SET): Likewise. - (init_parse): Handle new flags. - * jcf.h (jcf_dependency_print_dummies): Declare. - * Make-lang.in (s-java): Added mkdeps.o. - * Makefile.in (BACKEND): Added mkdeps.o. - (../gcjh$(exeext)): Added mkdeps.o. - (../jcf-dump$(exeext)): Added mkdeps.o. - * jcf-depend.c: Include mkdeps.h. - (struct entry, dependencies, targets, MAX_OUTPUT_COLUMNS, - add_entry): Removed. - (jcf_dependency_reset): Rewrote. - (dependencies): New global. - (jcf_dependency_set_target): Rewrote. - (jcf_dependency_add_target): Likewise. - (jcf_dependency_add_file): Likewise. - (munge): Removed. - (print_ents): Removed. - (jcf_dependency_write): Rewrote. - (print_dummies): New global. - (jcf_dependency_print_dummies): New function - (jcf_dependency_write): Call deps_dummy_targets if required. - -2000-10-18 Alexandre Petit-Bianco - - * gjavah.c (add_class_decl): Removed unused variables `tname', - `tlen' and `name_index'. - * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): New macro. - * jcf-parse.c (jcf_parse_source): Use it and set EXPR_WFL_FILENAME - in `wfl_operator' with value. - (yyparse): Use BUILD_FILENAME_IDENTIFIER_NODE. - (jcf_figure_file_type): Fixed identation. - * lex.c (java_get_line_col): Use EOF. Tuned `^' placement. - * parse.y (analyze_clinit_body): New function. - (static_initializer:): Reset `current_static_block'. - (java_parser_context_restore_global): Set EXPR_WFL_FIILENAME_NODE in - `wfl_operator' with new value. - (lookup_cl): Use EXPR_WFL_FILENAME. - (maybe_yank_clinit): Handle bogus bodies, call - analyze_clinit_body. - (build_outer_field_access): Access to this$ built from - current_class, not its outer context. - (build_access_to_thisn): Fixed leading comment. Tidied things up. - (resolve_qualified_expression_name): Handle `T.this' and `T.this.f()'. - (patch_method_invocation): Use `is_static_flag' when already - initialized. - (patch_newarray): Removed assignment in ternary operator. - -2000-10-17 Alexandre Petit-Bianco - - * except.c (free_eh_ranges): Don't free `whole_range'. - -2000-10-15 Anthony Green - - * decl.c (init_decl_processing): Call init_class_processing before - anything else. - -2000-10-13 Alexandre Petit-Bianco - - * check-init.c (check_init): Fixed leading comment. Use - LOCAL_FINAL_P. - * decl.c (push_jvm_slot): Use MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. - (give_name_to_locals): Likewise. - (lang_mark_tree): Handle FIELD_DECL. Register `am' and `wfl' - fields in lang_decl_var. - * java-tree.h (DECL_FUNCTION_SYNTHETIC_CTOR, - DECL_FUNCTION_ALL_FINAL_INITIALIZED): New macros. - (FIELD_INNER_ACCESS): Removed ugly cast, macro rewritten. - (FIELD_INNER_ACCESS_P, DECL_FIELD_FINAL_IUD, DECL_FIELD_FINAL_LIIC, - DECL_FIELD_FINAL_IERR, DECL_FIELD_FINAL_WFL): New macros. - (LOCAL_FINAL): Rewritten. - (LOCAL_FINAL_P, FINAL_VARIABLE_P, CLASS_FINAL_VARIABLE_P - MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): New macros. - (struct lang_decl): Fixed comments. Added `synthetic_ctor' and - `init_final' fields. - (struct lang_decl_var): Fixed leading comment. Added `am', `wfl', - `final_uid', `final_liic', `final_ierr' and `local_final' fields. - (TYPE_HAS_FINAL_VARIABLE): New macro. - (struct lang_type): Added `afv' field. - * parse.y (check_static_final_variable_assignment_flag): New function. - (reset_static_final_variable_assignment_flag): Likewise. - (check_final_variable_local_assignment_flag): Likewise. - (reset_final_variable_local_assignment_flag): Likewise. - (check_final_variable_indirect_assignment): Likewise. - (check_final_variable_global_assignment_flag): Likewise. - (add_inner_class_fields): Use LOCAL_FINAL_P. - (register_fields): Handle local finals and final variables. - (craft_constructor): Set DECL_FUNCTION_SYNTHETIC_CTOR. - (declare_local_variables): Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. - (source_start_java_method): Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC - on local finals. - (java_complete_expand_methods): Loop to set - TYPE_HAS_FINAL_VARIABLE. Call - `reset_final_variable_local_assignment_flag' and - `check_final_variable_local_assignment_flag' accordingly before - and after constructor expansion. Call - `reset_static_final_variable_assignment_flag' - before expanding and after call - `check_static_final_variable_assignment_flag' if the - current_class isn't an interface. After all methods have been - expanded, call `check_final_variable_global_assignment_flag' and - `check_static_final_variable_assignment_flag' if the current class - is an interface. - (maybe_yank_clinit): Fixed typo in comment. - (build_outer_field_access_methods): Removed old sanity check. Use - FIELD_INNER_ACCESS_P. Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. - Don't create access methods for finals. - (resolve_field_access): Use `CLASS_FINAL_VARIABLE_P'. - (java_complete_tree): Likewise. Reset DECL_FIELD_FINAL_IUD if - existing DECL_INIT has been processed. - (java_complete_lhs): Likewise. - (check_final_assignment): Filter input on `lvalue''s TREE_CODE. - Test for COMPONENT_REF to get to the FIELD_DECL. Implemented new - logic. - (patch_assignment): Use LOCAL_FINAL_P. - (fold_constant_for_init): Reset DECL_FIELD_FINAL_IUD if - DECL_INITIAL is nullified. - Fixes gcj/163. - -2000-10-13 Kaveh R. Ghazi - - * Make-lang.in (parse.c, parse-scan.c): Create atomically. - - * Makefile.in (parse.c, parse-scan.c): Likewise. - -2000-10-12 Mark Mitchell - - * class.c (temporary_obstack): Remove. - (make_class): Don't mess with obstascks. - (push_class): Likewise. - (set_super_info): Likewise. - (add_method_1): Likewise. - (add_method): Likewise. - (add_field): Likewise. - (build_utf8_ref): Likewise. - (build_class_ref): Likewise. - (build_static_field_ref): Likewise. - (finish_class): Likewise. - (push_super_field): Likewise. - (layout_class): Likewise. - (layout_class_methods): Likewise. - (init_class_processing): Likewise. - * constants.c (get_tag_node): Likewise. - (build_constant_data_ref): Likewise. - * decl.c (ggc_p): Remove. - (copy_lang_decl): Use ggc_alloc. - (complete_start_java_method): Don't mess with obstacks. - (start_java_method): Likewise. - (end_java_method): Likewise. - * except.c (link_handler): Use xmalloc. - (free_eh_ranges): New function. - (method_init_exceptions): Use it. - (add_handler): Use xmalloc. - (expand_start_java_handler): Don't mess with obstacks. - (prepare_eh_table_type): Likewise. - (expand_end_java_handler): Likewise. - * expr.c (push_value): Likewise. - (create_label_decl): Likewise. - (build_jni_stub): Likewise. - (java_lang_expand_expr): Likewise. - (note_instructions): Use xrealloc. - (java_push_constant_from_pool): Don't mess with obstacks. - (process_jvm_instruction): Likewise. - * java-tree.h (cyclic_inheritance_report): Remove duplicate - declaration. - * jcf-parse.c (get_constant): Don't mess with obstacks. - (read_class): Likewise. - (jcf_parse): Likewise. - * lex.c (expression_obstack): Remove. - (java_lex): Don't use obstack_free. - * parse.h (exit_java_complete_class): Don't mess with obstacks. - (MANGLE_OUTER_LOCAL_VARIABLE_NAME): Adjust. - (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID): Likewise. - (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STRING): Likewise. - * parse.y (gaol): Add more GC roots. - (add_inner_class_fields): Adjust calls to MANGLE_* macros. - (lookup_field_wrapper): Likewise. - (obtain_incomplete_type): Don't mess with obstacks. - (build_alias_initializer_parameter_list): Adjust calls to MANGLE_* - macros. - (craft_constructor): Don't mess with obstacks. - (safe_layout_class): Likewise. - (java_complete_class): Likewise. - (source_end_java_method): Likewise. - (build_outer_field_access_methods): Likewise. - (build_outer_method_access_method): Likewise. - (maybe_build_thisn_access_method): Likewise. - (build_dot_class_method_invocation): Likewise. - (java_complete_tree): Likewise. - (java_complete_lhs): Likewise. - (do_merge_string_cste): Likewise. - (patch_string_cst): Likewise. - (array_constructor_check_entry): Likewise. - * typeck.c (build_java_array_type): Likewise. - (parse_signature_string): Likewise. - (build_java_signature): Likewise. - -2000-10-12 Tom Tromey - - Fix for PR gcj/356: - * gjavah.c (add_class_decl): Don't special-case inner classes. - (add_namelet): Likewise. - -2000-10-11 Rodney Brown - - * java-tree.h: Constify current_encoding. - * lang.c: Constify current_encoding. - -2000-10-10 Jeff Sturm - - * jvgenmain.c (class_mangling_suffix): Omit `.'. - (main): Use `$' when NO_DOLLAR_IN_LABEL is not set, otherwise `.'. - -2000-10-10 Alexandre Petit-Bianco - - * expr.c (java_lang_expand_expr): Reinstall 1999-08-14 Anthony's - patch. Fixes gcj/340. - -2000-10-10 Tom Tromey - - * lex.c (java_new_lexer): Initialize out_first and out_last - fields. - * lex.h (java_lexer): Added out_buffer, out_first, out_last. - -2000-10-09 Alexandre Petit-Bianco - - * parse.y (pop_current_osb): New function. - (array_type:): Use `dims:', changed actions - accordingly. Suggested by Anthony Green. - (array_creation_expression:): Used pop_current_osb. - (cast_expression:): Likewise. - (search_applicable_method_list): Fixed indentation. - -2000-10-08 Anthony Green - - * parse.y (array_type_literal): Remove production. - (type_literals): Refer to array_type, not array_type_literal. - -2000-10-07 Alexandre Petit-Bianco - - Patch contributed by Corey Minyard. - * decl.c (check_local_named_variable): New function. - (tree check_local_unnamed_variable): Likewise. - (find_local_variable): Splitted. Call check_local_{un}named_variable. - -2000-10-07 Anthony Green - - * class.c (layout_class): Handle case where superclass can't be - layed out yet. - -2000-10-07 Joseph S. Myers - - * Makefile.in (keyword.h): Refer to GNU FTP site for updated - gperf. - -2000-10-05 Tom Tromey - - * jvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'. - * jvgenmain.c (class_mangling_prefix): Removed. - (class_mangling_suffix): New global. - (main): Use it. - * gjavah.c (cxx_keyword_subst): Mangle C++ keywords by appending - `$'. - (print_method_info): Handle overrides for static and final - methods. - (process_file): Generate declaration for class object field. - * class.c (cxx_keywords): New array. - (utf8_cmp): New function. - (cxx_keyword_p): New function. - (layout_class_method): Mangle C++ keywords by appending `$'. - (mangle_field): New function. - (mangle_class_field): Use mangle_field. Mangle class name as - `class$'. - (mangle_static_field): Use mangle_field. - -2000-10-03 Alexandre Petit-Bianco - - * decl.c (find_local_variable): Removed uncessary type check and - fixed range check typo. From Corey Minyard. - -2000-09-13 Alexandre Petit-Bianco - - * decl.c (give_name_to_locals): New local `code_offset'. Call - `maybe_adjust_start_pc'. - * expr.c (note_instructions): New function. - (expand_byte_code): Don't collect insn starts here. - (peek_opcode_at_pc): New function. - (maybe_adjust_start_pc): Likewise. - * java-tree.h (maybe_adjust_start_pc): Declare. - (note_instructions): Likewise. - * jcf-parse.c (parse_class_file): Call `note_instructions'. - -2000-09-13 Alexandre Petit-Bianco - - * parse.y (field_access:): Fixed indentation. - (qualify_ambiguous_name): Properly qualify `this.a[b].c'. - -2000-09-07 Tom Tromey - - Fix for PR gcj/307: - * parse.y (patch_binop): Use JNUMERIC_TYPE_P, not - JPRIMITIVE_TYPE_P, for arithmetic operators. - (patch_method_invocation): Indentation fix. - (try_builtin_assignconv): Handle boolean specially. Fixed typo. - (valid_builtin_assignconv_identity_widening_p): Handle boolean. - (do_unary_numeric_promotion): Cleaned up code. - (valid_cast_to_p): Handle boolean correctly. - -2000-09-27 Tom Tromey - - * lex.c (java_read_unicode): Reset bs_count when finished with - `\u' sequence. - -2000-10-01 Mark Mitchell - - Convert to GC. - * Make-lang.in (s-java): Don't depend on ggc-callbacks.o. - * Makefile.in (BACKEND): Don't include ggc-callbacks.o. - (typeck.o): Depend on ggc.h. - * class.c (add_method_1): Use GC functions for allocation. - (init_class_processing): Register roots. - * decl.c (ggc_p): Set to 1. - (pending_local_decls): Make it static. - (push_jvm_slot): Use GC functions for allocation. - (init_decl_processing): Register roots. - (give_name_to_locals): Use GC functions for allocation. - (lang_mark_tree): New function. - * java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC - functions for allocation. - * jcf-parse.c (jcf_parse_source): Use ggc_strdup. - * lex.c (java_lex): Use build_string, rather than replicating it - inline. - * parse.y (goal): Add more roots. - (mark_parser_ctxt): New function. - * typeck.c: Include ggc.h. - -2000-09-29 Alexandre Petit-Bianco - - * parse.y (maybe_yank_clinit): Also keep if its body - contains something else than MODIFY_EXPR. - -2000-09-23 Mark Mitchell - - * Make-lang.in (JAVA_SRCS): Include java-tree.h. - * Makefile.in (parse.o): Depend on ggc.h. - (class.o): Likewise. - (constants.o): Likewise. - (decl.o): Likewise. - (expr.o): Likewise. - (jcf-parse.o): Likewise. - (jcf-write.o): Likewise. - (mangle.o): Likewise. - * class.c: Include ggc.h. - (build_static_field_ref): Register GC roots. - (layout_class): Likewise. - (init_class_processing): Likewise. - * constants.c: Include ggc.h. - (current_constant_pool_data_ref): Remove. - (tag_nodes): Move it to ... - (get_tag_node): ... here. Register GC roots. - * decl.c: Include ggc.h. Remove many global tree definitions. - (throw_node): Define. - (java_global_trees): Likewise. - (predef_filenames): Make the size a constant. - (init_decl_processing): Adjust accordingly. - (init_decl_processing): Call init_jcf_parse. Register GC roots. - * expr.c: Include ggc.h. - (init_expr_processing): Register GC roots. - (build_invokeinterface): Likewise. - * java-tree.h: Replace extern tree declarations with macros. - (java_global_trees): New variable. - (java_tree_index): New enumeration. - (init_jcf_parse): Declare. - * jcf-parse.c: Include ggc.h. - (current_class): Remove declaration. - (main_class): Likewise. - (all_class_list): Likewise. - (predefined_filename_p): Adjust for constant size of - predef_filenames. - (init_jcf_parse): New function. - * jcf-write.c: Include ggc.h. - (generate_classfile): Register GC roots. - (append_synthetic_attribute): Likewise. - (append_innerclass_attribute_entry): Likewise. - * lang.c: Include ggc.h. - (lang_print_error): Register GC roots. - * parse.h (struct parser_ctxt): Rename fields to avoid conflicts - with macros. - * parse.y: Include ggc.h. - (wfl_operator): Remove. - (goal): Register GC roots. - (java_pop_parser_context): Adjust for new field names. - (java_parser_context_save_global): Likewse. - (java_parser_context_restore_global): Likewise. - (java_parser_context_suspend): Likewise. - (java_parser_context_resume): Likewise. - (verify_constructor_circularity): Register GC roots. - (lookup_cl): Likewise. - (java_reorder_fields): Likewise. - (build_current_this): Likewise. - (class_in_current_package): Likewise. - (argument_types_convertible): Likewise. - (patch_cast): Rename wfl_op parameter to avoid macro conflicts. - -2000-09-14 Tom Tromey - - * lex.h: Use HAVE_ICONV_H, not HAVE_ICONV. - -2000-09-13 Tom Tromey - - * jcf-parse.c: Include . - * jv-scan.c: Include . - -2000-09-12 Tom Tromey - - * expr.c (pop_type_0): Return `Object' if trying to merge two - interface types. - * verify.c (merge_types): Don't return `TYPE_UNKNOWN' for - interface types; `Object' is always a valid supertype. - -2000-09-12 Tom Tromey - - Fix for PR gcj/33: - * jv-scan.c (help): Document --encoding. - (options): Added `encoding' entry. - (OPT_ENCODING): New define. - (main): Handle --encoding. - Include if nl_langinfo exists. - * lang-options.h: Document --classpath, --CLASSPATH, --main, and - --encoding. - * jcf-parse.c Include if we have nl_langinfo. - (parse_source_file): Correctly call java_init_lex. Added `finput' - argument. Use nl_langinfo to determine default encoding. - * java-tree.h (current_encoding): Declare. - * parse.y (java_parser_context_restore_global): Don't restore - `finput'. - (java_parser_context_save_global): Don't set `finput' field. - (java_pop_parser_context): Don't restore `finput'. Free old lexer - if required. - * lang.c (current_encoding): New global. - (lang_decode_option): Recognize `-fencoding='. - (finish_parse): Don't close finput. - * parse.h (struct parser_ctxt): Removed `finput' and - `unget_utf8_value' fields. Added `lexer' field. - (java_init_lex): Fixed declaration. - * lex.c (java_new_lexer): New function. - (java_destroy_lexer): Likewise. - (java_read_char): Added `lex' argument. Handle iconv case. - (java_read_unicode): Added `lex' argument. Count backslashes in - lexer structure. - (java_init_lex): Added `finput' and `encoding' arguments. Set - `lexer' field in ctxp. - (BAD_UTF8_VALUE): Removed. - (java_lex): Handle seeing UEOF in the middle of a string literal. - * lex.h: Include if HAVE_ICONV defined. - (java_lexer): New structure. - (UNGETC): Removed. - (GETC): Removed. - (DEFAULT_ENCODING): New define. - (java_destroy_lexer): Declare. - -2000-09-12 Tom Tromey - - Fix for PR gcj/343: - * lex.c (java_init_lex): Initialize java_io_serializable. - * parse.y (java_io_serializable): New global. - (valid_ref_assignconv_cast_p): An array can be cast to - serializable. - -2000-09-10 Zack Weinberg - - * decl.c, expr.c: Include defaults.h if not already included. - Don't define the *_TYPE_SIZE macros. - -2000-09-09 Geoffrey Keating - - * typeck.c (build_java_array_type): Correct first parameter - in ADJUST_FIELD_ALIGN invocation. - -2000-09-06 Tom Tromey - - * lang-specs.h: Also recognize `-femit-class-files'. - -2000-09-05 Alexandre Petit-Bianco - - * verify.c (merge_types): Load the types to merge if necessary. - -2000-09-02 Anthony Green - - * jcf-io.c: Include zlib.h. - (open_in_zip): Read compressed class file archives. - * zipfile.h (ZipDirectory): Add uncompressed_size and - compression_method fields. - * zextract.c (read_zip_archive): Collect file compression info. - -2000-08-15 Bryce McKinlay - - * parse.y (do_resolve_class): Also explore superclasses of - intermediate enclosing contexts when searching for inner classes. - -2000-08-11 Alexandre Petit-Bianco - - * parse.y (variable_declarator_id:): Better error message. - (expression_statement:): Use YYNOT_TWICE. - (cast_expression:): Likewise. - (assignment:): Likewise. - -2000-08-11 Alexandre Petit-Bianco - - * parse.y (do_merge_string_cste): New locals. Create new - STRING_CSTs each time, use memcpy. Fixes gcj/311. - -2000-08-07 Hans Boehm - - * boehm.c (mark_reference_fields): Set marking bits for all words in - a multiple-word record. - (get_boehm_type_descriptor): Use the procedure marking descriptor for - java.lang.Class. - -2000-08-31 Mike Stump - - * Make-lang.in (jc1$(exeext), gcjh$(exeext), jv-scan$(exeext), - jcf-dump$(exeext)): Make parallel safe. - -2000-08-29 Zack Weinberg - - * jcf-parse.c (set_source_filename): Constify a char *. - * jcf-write.c (append_innerclasses_attribute, - make_class_file_name): Constify a char *. Don't recycle a - variable for an unrelated purpose. - * parse.y: (build_alias_initializer_parameter_list): Constify a char *. - (breakdown_qualified): Do not modify IDENTIFIER_POINTER strings. - -2000-08-29 Alexandre Petit-Bianco - - * expr.c (can_widen_reference_to): Fixed indentation. - * java-tree.h (CLASS_METHOD_CHECKED_P): Added leading comment. - * parse.y: `finit$' replaces `$finit$' in comments. - (try_builtin_assignconv): Fixed leading comment. - -2000-08-25 Greg McGary - - * gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE. - -2000-08-24 Greg McGary - - * lang.c (lang_decode_option): Use ARRAY_SIZE. - * parse.y (BINOP_LOOKUP): Likewise. - -2000-08-22 Andrew Haley - - * javaop.h (WORD_TO_INT): Mask lower 32 bits of a jword before - sign extending. Fixes gcj/321. - * jcf-parse.c (get_constant): Mask lower 32 bits of a jint before - combining to make a jlong. Fixes gcj/321. - -2000-08-21 Nix - - * lang-specs.h: Do not process -o or run the assembler if - -fsyntax-only. - -2000-08-16 Andrew Haley - - * typeck.c (build_java_array_type): Rewrite code to do array - alignment. Take into account back-end macros when aligning array - data. Remove setting of TYPE_USER_ALIGN; Java doesn't allow the - user to set alignment. Fixes gcj/252 and 160. - -2000-08-09 Tom Tromey - - * parse.y (check_abstract_method_definitions): Now return `int'. - Check implemented interfaces. Fixes PR gcj/305. - - * parse.y (patch_switch_statement): Disallow `long' in switch - expressions. Fixes PR gcj/310. - -2000-08-15 Alexandre Petit-Bianco - - * decl.c (finit_leg_identifier_node): New global. - (init_decl_processing): Use `finit$' to initialize - finit_identifier_node. Use `$finit$' to initialize - finit_leg_identifier_node. - * expr.c (expand_java_field_op): Use ID_FINIT_P. - * java-tree.h (finit_identifier_node): Changed attached comment. - (finit_leg_identifier_node): New declaration. - (ID_FINIT_P): Take finit_identifier_node and - finit_leg_identifier_node into account. This is a backward - compatibility hack. - -2000-08-14 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_conditional): Re-installed lost - Jan 6 2000 patch. - (generate_bytecode_insns): Check `nargs' before emitting it. - * verify.c (merge_type_state): Fixed typo. - * ChangeLog: Fixed typo in some jcf-write.c entries mentioning - generate_bytecode_{conditional,insns}. - -2000-08-13 Anthony Green - - * check-init.c (check_init): Add case for BIT_FIELD_REF (required - for -pg builds). - -2000-08-10 Alexandre Petit-Bianco - - * class.c (maybe_layout_super_class): Fixed indentation. - * java-tree.h (CLASS_METHOD_CHECKED_P): New macro. - (java_check_methods): New function declaration. - * jcf-parse.c (get_constant): Let `char_len' go up to 3. Use `str' - instead of `str_ptr'. - * jcf-write.c (generate_bytecode_insns): Emit number the of args - of a `invokeinterface' at the right time. - * parse.h (WFL_STRIP_BRACKET): New macro. - (SET_TYPE_FOR_RESOLUTION): Use it. - * parse.y (build_unresolved_array_type): Reuse `type_or_wfl'. - (check_class_interface_creation): Don't check for cross package - innerclass name clashes. - (method_header): Behave properly if MDECL is `error_mark_node'. - (method_declarator): Return `error_mark_node' if bogus current - class. - (resolve_class): Apply WFL_STRIP_BRACKET on `cl' if necessary. - (resolve_and_layout): New local `decl_type', set and used. Call - java_check_methods. - (java_check_methods): New method. - (java_layout_classes): Use it. - (resolve_qualified_expression_name): No EH check necessary in - access$. - (java_complete_lhs): Use VAR_DECL's DECL_INITIAL when evaluating - `case' statement. - (patch_assignment): Set DECL_INITIAL on integral final local. - -2000-08-08 Alexandre Petit-Bianco - - * java-tree.h (flag_extraneous_semicolon): New extern. - * lang-options.h: (-Wextraneous-semicolon): New option. - * lang.c (flag_redundant): Fixed typo in leading comment. - (flag_extraneous_semicolon): New global. - (lang_decode_option): Set `flag_extraneous_semicolon' when - -Wall. Decode `-Wextraneous-semicolon'. - * parse.y (type_declaration:): Removed `SC_TK' hack, added - `empty_statement' rule. - (class_body_declaration): Likewise. - (method_body:): Accept `;' as a method body. - (static_initializer:): Removed `SC_TK' hack. - (constructor_block_end:): Likewise. - (empty_statement:): Report deprecated empty declaration. Fixes - gcj/295 - -2000-08-07 Alexandre Petit-Bianco - - * parse.y (build_dot_class_method_invocation): Changed parameter - name to `type'. Build signature from `type' and convert it to a - STRING_CST if it's an array. - (patch_incomplete_class_ref): `build_dot_class_method_invocation' - to use `ref_type' directly. - -2000-08-06 Ovidiu Predescu - - * lang-options.h: Added a comma after the last element to avoid - syntax errors when other languages define additional options. - -2000-08-04 Zack Weinberg - - * Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist. - * Makefile.in: Add BACKEND; delete OBJS, OBJDEPS. - (jc1): Link with $(BACKEND). - (jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND). - -2000-08-02 Zack Weinberg - - * jvspec.c: Adjust type of second argument to - lang_specific_driver, and update code as necessary. - - * class.c (build_dtable_decl): Initialize dummy. - -2000-08-01 Alexandre Petit-Bianco - - * parse.y (maybe_yank_clinit): When generating bytecode: non empty - method bodies not to rule out discarding `'; don't use - to initialize static fields with constant initializers. - -2000-08-01 Alexandre Petit-Bianco - - * gjavah.c (print_method_info): Added `synth' parameter. Skip - synthetic methods. - (method_synthetic): New global. - (HANDLE_METHOD): Recognize synthetic method and tell - `print_method_info' about it. - (HANDLE_END_METHOD): Do not issue an additional `;\n' if we're - processing a synthetic method. - * jcf-reader.c (skip_attribute): New function. - ( skip_attribute): Likewise. - -2000-08-01 Alexandre Petit-Bianco - - * parse.y (build_outer_field_access): Fixed comments. - (fix_constructors): Emit the initialization of this$ before - calling $finit$. - (resolve_qualified_expression_name): Build an access to `decl' if - necessary. - -2000-07-31 Alexandre Petit-Bianco - - * parse-scan.y (curent_class): Non longer const. - (inner_qualifier, inner_qualifier_length): Deleted. - (current_class_length): New global. - (bracket_count): Fixed typo in leading comment. - (anonymous_count): New global. - (class_instance_creation_expression:): Handle anonymous classes. - (anonymous_class_creation:): New rule. - (push_class_context): Rewritten. - (pop_class_context): Likewise. - (INNER_QUALIFIER): Macro deleted. - (report_class_declaration): call `push_class_context' when - entering the function. `fprintf' format modified not to use - INNER_QUALIFIER. - (report_class_declaration): Assign `package_name' and - `current_class' to NULL separately. - -2000-07-31 Alexandre Petit-Bianco - - * expr.c (build_invokeinterface): Call layout_class_methods on - target interface. - -2000-07-27 Tom Tromey - Anthony Green - Alexandre Petit-Bianco - - * class.c (make_class_data): Create vtable for abstract classes. - (get_dispatch_table): Changed to cope with abstract classes. - -2000-07-27 Tom Tromey - - * parse.y (patch_method_invocation): Don't reverse the argument - list when dealing with anonymous class constructors. Fixed typo in - comment. - -2000-07-27 Alexandre Petit-Bianco - - * parse.y (build_alias_initializer_parameter_list): Reverse - crafted list when building aliases for anonymous class - constructors. - -2000-07-25 Alexandre Petit-Bianco - - * parse.y (jdep_resolve_class): Don't bother checking potential - innerclass access if `decl' is NULL. - (find_in_imports_on_demand): TREE_PURPOSE of `import' contains the - WFL. - -2000-07-25 Alexandre Petit-Bianco - - * parse.c: Remove (again.) - -2000-07-24 Alexandre Petit-Bianco - - * parse.y (find_as_inner_class): Removed 2000-07-19 patches. - * jcf-parse.c (HANDLE_INNERCLASSES_ATTRIBUTE): Local `decl' moved - outside the `if' statement, alias to innerclass removed, `decl' - used to mark the class complete. - -2000-07-21 Alexandre Petit-Bianco - - * parse.y (simple_name:): Fixed typo in error message. - -2000-07-21 Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): LOOP_EXPR:, SWITCH_EXPR: the node - or its first operand can be error marks. - -2000-07-20 Alexandre Petit-Bianco - - * parse.h (SET_TYPE_FOR_RESOLUTION): Use GET_CPC. - * parse.y (method_header): Likewise. - -2000-07-19 Alexandre Petit-Bianco - - * parse.y (process_imports): Consider that one might be trying to - import an innerclass. Fixes gcj/254 - -2000-07-19 Alexandre Petit-Bianco - - * parse.y (find_as_inner_class): Handle the case where the - enclosing context of an innerclass has been loaded as bytecode. - -2000-07-19 Alexandre Petit-Bianco - - * parse.y (simple_name:): Reject `$' in type names. - (resolve_type_during_patch): Use `type' as a second - argument to resolve_no_layout. Fixes gcj/257. - -2000-07-18 Bryce McKinlay - - * parse.y (find_most_specific_methods_list): Select the only - non-abstract method even if max has been set. - Fixes gcj/285, gcj/298. - -2000-07-18 Jeff Sturm - - * lang-specs.h: Added %(jc1) to java compiler options. - -2000-07-14 Zack Weinberg - - * .cvsignore: New file. - -2000-07-13 Alexandre Petit-Bianco - - * parse.y (not_accessible_p): Access granted to innerclasses - (indirectly) extending the reference type. Fixes gcj/249. - -2000-07-13 Alexandre Petit-Bianco - - * parse.y (patch_method_invocation): Fixed comment. - (maybe_use_access_method): Build this$s to the context of the - target method, or a type that extends it. Fixes gcj/242. - -2000-07-13 Mark Mitchell - - * parse.c: Remove. - -2000-07-13 Alexandre Petit-Bianco - - * parse.y (fold_constant_for_init): Avoid bullish conversion. - -2000-07-13 Tom Tromey - - * lang-specs.h: Added %{I*}. - -2000-07-13 Zack Weinberg - - * lang-specs.h: Use the new named specs. Remove unnecessary braces. - -2000-07-12 Mark Mitchell - - * parse-scan.c: Remove. - -2000-07-10 Alexandre Petit-Bianco - - * class.c (set_super_info): Handled protected inner classes. - (common_enclosing_context_p): Bail early if arguments aren't both - inner classes. - (get_access_flags_from_decl): Handle private and protected inner - classes. - * java-tree.h (TYPE_PROTECTED_INNER_CLASS): New macro. - (CLASS_PROTECTED): Likewise. - (struct lang_type): New bitfield `poic'. - * parse.y (jdep_resolve_class): Call check_inner_class_access on - inner classes only. - (check_inner_class_access): Renamed arguments, added - comments. Handles protected inner classes (fixes gcj/225) - (not_accessible_p): Fixed comments. Avoid handling inner classes. - -2000-07-10 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Verify qualified - access to `this'. Fixes gcj/239. - -2000-07-10 Alexandre Petit-Bianco - - * jcf-write.c (generate_classfile): Don't install ConstantValue - for null pointers. - -2000-07-07 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Handle inner class - access. Fixes gcj/256. - -2000-07-07 Alexandre Petit-Bianco - - * jcf-write.c (generate_classfile): Properly install the - ConstantValue attribute and the initial value constant pool index - on string constants. - * parse.y (java_complete_lhs): Keep DECL_INITIAL when emitting - class files. - -2000-07-06 Alexandre Petit-Bianco - - * parse.h (BUILD_PTR_FROM_NAME): Surround with a do/while - construct. - * parse.y (find_as_inner_class): Fixed typo. - (do_resolve_class): Explore enclosing contexts when searching for - innerclasses. Removed curly brackets around BUILD_PTR_FROM_NAME. - (check_inner_class_access): Check `decl' which can be null in case - of previous errors. - -2000-07-05 Alexandre Petit-Bianco - - * java-tree.h (java_debug_context): Declared `extern'. - (safe_layout_class): Likewise. - * parse.y (resolve_field_access): Field must be `static' in order - to be replaced by its initial value. Added comments. - (find_applicable_accessible_methods_list): Fixed typo. - (find_most_specific_methods_list): Methods found in innerclasses - take over methods founds in the enclosing contexts. - (java_complete_tree): Loosen restrictions on the type of DECLs - that can be replaced by their initialization values. - (valid_ref_assignconv_cast_p): Removed call to `enclosing_context_p'. - -2000-07-05 Tom Tromey - - * Make-lang.in (PARSE_DIR): New macro. - (PARSE_RELDIR): Likewise. - (PARSE_C): Likewise. - (PARSE_SCAN_C): Likewise. - ($(PARSE_C)): New target. - ($(PARSE_SCAN_C)): Likewise. - (SET_BISON): New macro. - (BISONFLAGS): Likewise. - (JAVABISONFLAGS): Likewise. - -2000-07-02 Bryce McKinlay - - * gjavah.c (HANDLE_METHOD): Call print_method_info with a NULL stream - argument on the first pass for CNI as well as JNI. - (print_method_info): Set up method name on the first pass only. - -2000-07-01 Alexandre Petit-Bianco - - * parse.y (parser_qualified_classname): Removed parameter - `is_static'. - (create_interface): Removed first passed parameter to - parser_qualified_classname. - (create_class): Likewise. Don't install alias on static - innerclasses. Fixes gcj/275. - -2000-07-01 Alexandre Petit-Bianco - - * parse.y (maybe_generate_pre_expand_clinit): Don't build a - debugable statement with empty_stmt_node. Fixes gcj/272 - -2000-07-01 Alexandre Petit-Bianco - - * expr.c (build_instanceof): Layout type after it's loaded. Fixes - gcj/271. - -2000-06-29 Alexandre Petit-Bianco - - * jcf-write.c (push_long_const): Appropriately cast short negative - constant to jword. - -2000-06-29 Alexandre Petit-Bianco - - * parse.y (verify_constructor_super): Use loop variable - `m_arg_type' initialized with `mdecl_arg_type'. - -2000-06-29 Tom Tromey - - * parse.y (resolve_field_access): Handle case where `type_found' - is NULL. - -2000-06-27 Alexandre Petit-Bianco - - * expr.c (lookup_field): The same field can be found through two - different interface. Don't declare it ambiguous in that case. - -2000-06-27 Tom Tromey - - * lex.c (java_lineterminator): Don't recognize \r after \n. If \r - follows \r, then unget it at a lower level. - -2000-06-26 Tom Tromey - - * parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to - java_complete_tree. - -2000-06-25 Tom Tromey - - * parse.y (for_statement): Wrap expression in a WFL if it is a - constant. For PR gcj/268. - -2000-06-25 Alexandre Petit-Bianco - - * parse.y (do_resolve_class): Minor optimiztion in the package - list search. Removed unnecessary test and return statement. - (valid_ref_assignconv_cast_p): Order of arguments to - enclosing_context_p fixed. - -2000-06-24 Tom Tromey - - * expr.c (lookup_field): Print error and return error_mark_node if - field reference is ambiguous. - - * parse.y (check_abstract_method_definitions): Also check if - `other_method' is abstract. - -2000-06-23 Alexandre Petit-Bianco - - * class.c (set_super_info): Handle ACC_PRIVATE for (inner) - classes. - * java-tree.h (TYPE_PRIVATE_INNER_CLASS): New macro. - (struct lang_type): New field `pic'. - (CLASS_PRIVATE): New macro. - * parse.y (check_inner_class_access): New function. - (jdep_resolve_class): Call it. - -2000-06-23 Tom Tromey - - * parse.y (patch_incomplete_class_ref): Initialize the returned - class. For PR gcj/260. - -2000-06-21 Alexandre Petit-Bianco - - * except.c (prepare_eh_table_type): Use `CATCH_ALL_TYPE'. - -2000-06-20 Alexandre Petit-Bianco - - * check-init.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for - Java specific checks. - * expr.c (build_instanceof): CLASS_INTERFACE and CLASS_FINAL usage - screened by DECL_P. - * java-tree.def (CASE_EXPR): Marked 'e'. - (DEFAULT_EXPR): Likewise. - * jcf-parse.c (set_source_filename): CLASS_COMPLETE_P usage - screened by DECL_P. - * jcf-write.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for - Java specific checks. - (generate_bytecode_insns): Test try_block for BLOCK before using - BLOCK_EXPR_BODY. - * parse.y (build_wfl_wrap): Added `location' argument. Set - EXPR_WFL_LINECOL accordingly. - (dim_expr:): Wrap constants with WFLs. - (method_declarator): Use TREE_TYPE not TYPE_NAME on GET_CPC. - (resolve_package): Check for `stmt' not being a BLOCK before - building a debuggable statement with it. - (make_qualified_primary): Added extra parameter to build_wfl_wrap - invocation. - (resolve_field_access): Make sure `decl' is a DECL before treating - it as such. - (maybe_build_primttype_type_ref): Make sure `wfl''s node is an - IDENTIFIER_NODE before treating it as such. - (patch_new_array_init): Make sure `elt' is a TREE_LIST before - treating it as such. - (find_applicable_accessible_methods_list): CLASS_INTERFACE macro - to be applied only on non array types. - -2000-06-16 Per Bothner - - * java-tree.h (LABEL_RETURN_LABELS, LABEL_PENDING_CHAIN): Don't - define in terms of DECL_RESULT, as that fails when --enable-checking. - -2000-06-15 Kaveh R. Ghazi - - * jcf-write.c (CHECK_PUT): Add static prototype. Make pointer - types the same in comparison. - (CHECK_OP): Add static prototype. - -2000-06-13 Jakub Jelinek - - * typeck.c (build_java_array_type): Set TYPE_USER_ALIGN. - * parse.y (java_complete_class): Set DECL_USER_ALIGN. - * parse.c: Rebuilt. - -2000-06-11 Kaveh R. Ghazi - - * decl.c (create_primitive_vtable): Prototype. - - * jcf-write.c (generate_bytecode_insns): Initialize variable - `saved_context'. - - * lang.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED. - -2000-06-09 Bryce McKinlay - - * parse.y (find_applicable_accessible_methods_list): Use a hashtable - to track searched classes, and do not search the same class more than - once. Call find_applicable_accessible_methods_list on immediate - superclass, instead of search_applicable_method_list on all ancestors. - Fix for PR gcj/238. - -2000-06-09 Bryce McKinlay - - * parse.y (register_fields): Permit static fields in inner classes - if they are final. Fix for PR gcj/255. - -2000-06-06 Alexandre Petit-Bianco - - * parse.h (REGISTER_IMPORT): Use `chainon' to link new entries. - * parse.y (find_in_imports): Returned type changed to void, - leading comment fixed. - (register_package): New function. - (qualify_and_find): Likewise. - (package_declaration:): Use `register_package'. - (single_type_import_declaration:): Removed local variable - `node'. Added missing `;' for consistency. - (type_import_on_demand_declaration:): Use `chainon' to link new - entries. - (lookup_field_wrapper): Lookup local variables defined in outer - contexts first. - (java_complete_class): Don't reverse the list of imported on demand. - (do_resolve_class): Reorganized. Removed local variable - `original_name'. Call `qualify_and_find' with the current package - name, invoke `find_in_imports_on_demand' right after. Call - `qualify_and_find' with the packages we've seen so far. Fixed - operations numbering in comments. - (java_expand_class): Don't reverse `package_list'. - (find_most_specific_methods_list): New local variables `abstract' - and `candidates'. Use them to pick the right method. - -2000-06-06 Tom Tromey - - * parse.y (check_modifiers_consistency): Don't subtract out - `PUBLIC_TK' from argument to THIS_MODIFIER_ONLY. - -2000-06-04 Philipp Thomas - - * Makefile.in (INTLLIBS): New. - (LIBS): Add above. - (DEPLIBS): Ditto. - -2000-06-02 Alexandre Petit-Bianco - - * class.c (get_dispatch_table): Build the vtable dummy entry list - element with a null purpose. Fixed leading comment. - (build_dtable_decl): Build an accurate dtable type when appropriate - and use it. - -2000-06-02 Richard Henderson - - * lang.c (lang_get_alias_set): New. - -2000-05-31 Alexandre Petit-Bianco - - * parse.y (resolve_field_access): Complete the DECL_INITIAL tree - before using it as the accessed field. - -2000-05-31 Tom Tromey - - * java-tree.h (boolean_array_vtable, byte_array_vtable, - char_array_vtable, short_array_vtable, int_array_vtable, - long_array_vtable, float_array_vtable, double_array_vtable): - Declare. - * expr.c (get_primitive_array_vtable): New function. - (create_primitive_vtable): New function. - (java_lang_expand_expr): Enable code to statically generate - arrays. - * decl.c (init_decl_processing): Create primitive vtables. - (boolean_array_vtable, byte_array_vtable, char_array_vtable, - short_array_vtable, int_array_vtable, long_array_vtable, - float_array_vtable, double_array_vtable): Define. - -2000-05-26 Zack Weinberg - - * java/parse.y (find_applicable_accessible_methods_list): - Don't add an uninitialized value to the list. - -2000-05-25 Tom Tromey - - * parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC - when trying to see if field's class should be initialized. Always - initialize field's declaring class, not qualified class. - For PR gcj/162. - - * parse.y (array_constructor_check_entry): Pass `wfl_value', not - `wfl_operator', to maybe_build_primttype_type_ref. - Fixes PR gcj/235. - -2000-05-23 Bryce McKinlay - - * parse.y (patch_method_invocation): Don't try to lookup methods - in primitive types. - -2000-05-02 Alexandre Petit-Bianco - - * parse.y (resolve_field_access): Call the appropriate - before accessing the length of a static array. Craft a decl for - the field while its time. Fixes PR gcj/129. - -2000-05-01 Alexandre Petit-Bianco - - * parse.y (resolve_package): Correctly set `*next' (was off by - one.) - (resolve_qualified_expression_name): Fixed comment. - -2000-04-27 Alexandre Petit-Bianco - - * jcf-parse.c (jcf_parse_source): Reset current_class and - current_function_decl to NULL before parsing a new file. - -2000-04-27 Alexandre Petit-Bianco - - * parse.y (block_end:): If the collected block doesn't feature a - statement, insert an empty statement. - -2000-04-17 Alexandre Petit-Bianco - - * parse.y (maybe_yank_clinit): New function. - (maybe_generate_pre_expand_clinit): Always link at the - end of the list of methods belonging to a class. - (java_complete_expand_method): Check whether is really - necessary and expand it accordingly. - -2000-04-17 Alexandre Petit-Bianco - - * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be - processed by the method's switch statement. - -2000-05-19 Tom Tromey - - * java-tree.h: Added init state enum. - * decl.c (emit_init_test_initialization): Initialize class - initialization check variable by looking at class' state. - -2000-05-19 Tom Tromey - - * java-tree.h (build_instanceof): Declare. - (build_get_class): Declare. - * parse.y (patch_binop): Use build_instanceof. - * expr.c (build_instanceof): New function. If class is final, - don't make a function call. - (expand_java_INSTANCEOF): Use it. - (build_get_class): New function. - -2000-05-18 Alexandre Oliva - - * jcf-write.c (generate_classfile): Scan the source_file for - slashes with the right pointer variable. - -2000-05-17 Andrew Cagney - - * lang.c (lang_decode_option): Update -Wunused flags by calling - set_Wunused. - * decl.c (poplevel): Replace warn_unused with warn_unused_label. - -2000-05-09 Zack Weinberg - - * check_init.c (check_init): Constify local char *. - * class.c (push_class): Constify local char *. - * java_tree.h: Update prototypes. - * jcf-io.c (open_class): Constify filename parameter and - return value. - (find_class): Remove redundant string copy. Cast return from - open_class. - * jcf-parse.c (read_class, parse_class_file, yyparse): - Constify local char *. - * jcf-write.c (generate_bytecode_insns, generate_classfile): - Constify local char *. - * jcf.h (JCF): Constify filename and classname. - (JCF_FINISH): Cast args to FREE to char * when appropriate. - * lang.c (init_parse): Constify parameter and return value. - * lex.c (java_get_line_col): Constify filename parameter. - * parse.h: Constify parser_ctxt.filename. Update prototypes. - * parse.y (java_parser_context_suspend, - issue_warning_error_from_context, safe_layout_class): Constify - local char *. - * parse.c: Regenerate. - -2000-05-08 Tom Tromey - - * expr.c (build_jni_stub): Cache the result of - _Jv_LookupJNIMethod. - -2000-05-05 Alexandre Petit-Bianco - - * decl.c (predef_filenames_size): Now 7. - (predef_filenames): New seventh entry. - -2000-05-04 Tom Tromey - - * boehm.c (mark_reference_fields): Don't mark RawData fields. - Keep track of when we've seen a reference field after a - non-reference field. - (get_boehm_type_descriptor): Handle case where we see - non-reference fields but no trailing reference field. - * decl.c (rawdata_ptr_type_node): Define. - (init_decl_processing): Initialize rawdata_ptr_type_node. - * java-tree.h (rawdata_ptr_type_node): Declare. - -2000-05-04 Kaveh R. Ghazi - - * jcf-dump.c (SPECIAL_IINC): Ensure arguments match format - specifiers in calls to fprintf. - -2000-05-03 Andrew Haley - - * expr.c (build_java_jsr): Use emit_jump, not expand_goto. - - * javaop.h (WORD_TO_INT): New function. - (IMMEDIATE_s4): Use WORD_TO_INT. - * jcf.h (JPOOL_INT): Ditto. - - * gjavah.c (decode_signature_piece): Don't treat `$' as namespace - separator. - -2000-04-19 Tom Tromey - - * class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE - on native function. - * jcf-parse.c (parse_class_file): Call build_jni_stub for native - JNI methods. - * expr.c (build_jni_stub): New function. - * lang-specs.h: -fjni and -femit-class-file are incompatible. - * parse.c: Rebuilt. - * parse.y (java_complete_expand_methods): Expand a native method - and call build_jni_stub if -fjni given. - * lang-options.h: Document -fjni. - * lang.c (flag_jni): New global. - (lang_f_options): Added `jni' entry. - * java-tree.h (soft_lookupjnimethod_node, - soft_getjnienvnewframe_node, soft_jnipopsystemframe_node): - Declare. - (flag_jni): Declare. - (build_jni_stub): Declare. - (struct lang_decl): Added `native' flag. - (METHOD_NATIVE): Redefined to use `native' field of lang specific - structure. - * decl.c (soft_lookupjnimethod_node, soft_getjnienvnewframe_node, - soft_jnipopsystemframe_node): New globals. - (init_decl_processing): Set them. _Jv_InitClass only takes one - argument. - - * java-tree.def: Put into `C' mode. - -2000-04-27 Tom Tromey - - Fix for PR gcj/2: - * expr.c (expand_invoke): Generate check to see if object pointer - is null in nonvirtual invocation case. - * java-tree.h (soft_nullpointer_node): Declare. - * decl.c (soft_nullpointer_node): New global. - (init_decl_processing): Initialize soft_nullpointer_node. - * parse.y (invocation_mode): Return INVOKE_NONVIRTUAL for `final' - or `private' methods. - (patch_invoke): Handle INVOKE_NONVIRTUAL case. - -2000-04-26 Alexandre Petit-Bianco - - * decl.c (complete_start_java_method): Don't call _Jv_InitClass - from - -2000-04-26 Tom Tromey - - * zextract.c (find_zip_file_start): New function. - (read_zip_archive): Use it. - -2000-04-25 Alexandre Petit-Bianco - - * parse.y (register_incomplete_type): Handle JDEP_ANONYMOUS. - -2000-04-24 Alexandre Petit-Bianco - - * class.c (common_enclosing_context_p): New function. - * java-tree.h (common_enclosing_context_p): Added prototype. - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Relaxed test to allow - classes sharing an outer context with the current instance. - * parse.y (build_access_to_thisn): Fixed leading comment. - (verify_constructor_super): New local `supper_inner'. Skip - enclosing context argument in the case of inner class constructors. - (patch_method_invocation): Insert proper context as second - parameter to pure inner class constructor super invocations. - -2000-04-24 Alexandre Petit-Bianco - - * parse.y (end_class_declaration): Reset the interface number - counter. - -2000-04-24 Alexandre Petit-Bianco - - * parse.y (source_start_java_method): Deleted unnecessary code. - (patch_method_invocation): Fixed comment. - -2000-04-24 Robert Lipe - - * parse.h (_jdep): Member `kind' now ENUM_BITFIELD. - -2000-04-23 Tom Tromey - - * boehm.c (mark_reference_fields): Use int_byte_position. - -2000-04-22 Tom Tromey - - * boehm.c (mark_reference_fields): Only call byte_position on - non-static fields. - -2000-04-22 Tom Tromey - - * boehm.c (mark_reference_fields): Added `last_view_index' - argument. Use DECL_FIELD_OFFSET to determine field's offset. - -2000-04-20 Mo DeJong - - * parse.h (INTERFACE_INNER_MODIFIERS): New macro. - * parse.y (check_class_interface_creation): Fixed comments. Select - permitted modifiers for (inner) interfaces. Changed error message - to report rejected modifiers used with local classes. - -2000-04-20 Alexandre Petit-Bianco - - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Immediate inner classes - of directly inherited type considered in scope. - * parse.y (do_resolve_class): Search inherited classes for inner - classes. - -2000-04-20 Tom Tromey - - * parse.y (not_accessible_p): Use member's class, not current - class, when doing inheritance check for protected reference. - Fixes PR gcj/124. - -2000-04-20 Jason Schroeder - - * jcf-dump.c (SPECIAL_IINC): Fixed typo printing iinc instruction. - -2000-04-19 Alexandre Petit-Bianco - - * parse.y (lookup_field_wrapper): Search for final local aliases. - (resolve_expression_name): Let lookup_field_wrapper search for - final local aliases. Force the value of `name' if one is found. - (qualify_ambiguous_name): CONVERT_EXPR is enough to now we have - an expression name. Fixed comments. - -2000-04-19 Alexandre Petit-Bianco - - * parse.y (yyerror): `msg' can be null, don't use it in that case. - -2000-04-19 Tom Tromey - - * gjavah.c (cxx_keyword_subst): Avoid potential infinite loop. - -2000-04-18 Alexandre Petit-Bianco - - * parse.y (maybe_make_nested_class_name): Use `obstack_grow0'. - -2000-04-18 Tom Tromey - - PR gcj/211: - * gjavah.c (utf8_cmp): Changed return value. - (cxx_keyword_subst): Handle all C++ keywords. Allocate new return - result. - (cxx_keywords): New global. - (get_field_name): Handle new result of cxx_keyword_subst. - (print_method_info): Likewise. - -2000-04-17 Bryce McKinlay - - * gjavah.c (print_name_for_stub_or_jni): Don't prefix method names - with a newline, for CNI. - (print_stub_or_jni): Print a space or newline before method name for - CNI as well as JNI. - (print_cxx_classname): Don't write leading "::" in CNI stub method. - (process_file): Include gcj/cni.h if generating CNI stubs. - -2000-04-16 Tom Tromey - - * gjavah.c (decompile_method): Use print_field_name. - Fixes PR gcj/205. - -2000-04-14 Alexandre Petit-Bianco - - * parse.y (java_expand_classes): Reverse the package list once. - (java_complete_lhs): PLUS_EXPR: don't try rhs and lhs at string - reduction. - (patch_binop): New temp `cn'. Call patch_string on LHS/RHS of - the `==' and `!=' operators. - -2000-04-05 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): At invocation time, - always relate an interface method to the type of its selector. - -2000-04-05 Tom Tromey - - Fix for PR gcj/2: - * expr.c (expand_invoke): Generate check to see if object pointer - is null in nonvirtual invocation case. - * java-tree.h (soft_nullpointer_node): Declare. - * decl.c (soft_nullpointer_node): New global. - (init_decl_processing): Initialize soft_nullpointer_node. - * parse.y (invocation_mode): Return INVOKE_NONVIRTUAL for `final' - or `private' methods. - (patch_invoke): Handle INVOKE_NONVIRTUAL case. - -2000-04-05 Tom Tromey - - Fix for PR gcj/140: - * parse.y (check_final_assignment): Recognize assignments to the - `length' field of an array when generating class files. - -2000-04-05 Alexandre Petit-Bianco - - * class.c (decl_hash): Prototype removed. - (decl_compare): Likewise. - -2000-04-05 Tom Tromey - - * parse.h (THIS_MODIFIER_ONLY): Changed meaning of `v' parameter. - * parse.y (check_modifiers_consistency): Check for final/volatile - clash. Fixes PR gcj/164. - -2000-04-05 Alexandre Petit-Bianco - - * class.c: (java_hash_hash_tree_node): Renamed from `decl_hash', - made global. - (java_hash_compare_tree_node): Renamed from `decl_compare, made - global. - (add_method_1): Use `java_hash_hash_tree_node' and - `java_hash_compare_tree_node'. - * java-tree.h: (java_hash_hash_tree_node): Prototyped. - (java_hash_compare_tree_node): Likewise. - * parse.y (find_applicable_accessible_methods_list): Create, - delete and use a hash table to remember already searched interfaces. - -2000-04-03 Matt Welsh - - * jcf-depend.c (add_entry): Fixed bug where list was always replaced - with latest entry. - -2000-04-04 Kaveh R. Ghazi - - * boehm.c (mark_reference_fields, set_bit): Prototype. - (set_bit): Un-ANSI-fy definition. - - * class.c (init_test_hash_newfunc, decl_hash, decl_compare): - Prototype. - - * decl.c (emit_init_test_initialization): Likewise. - - * gjavah.c (jni_print_char): Likewise. - - * parse.y (create_new_parser_context): Likewise. - -2000-03-30 Alexandre Petit-Bianco - - * expr.c (java_lang_expand_expr): Added Anthony's Thu Jan 6 2000 - patch missing hunk. Fixed indentation. - -2000-03-30 Tom Tromey - - * gjavah.c (D_NAN_MASK): Only define as word-reversed when - HOST_FLOAT_WORDS_BIG_ENDIAN and HOST_WORDS_BIG_ENDIAN disagree. - -2000-03-28 Alexandre Petit-Bianco - - * parse-scan.y (pop_class_context): Reset `inner_qualifier_length' - when negative *before* using it as an array index. - * ChangeLog: Fixed typo. - -2000-03-28 Alexandre Petit-Bianco - - * parse-scan.y (pop_class_context): Reset `inner_qualifier_length' - to 0 when it reaches -1. - -2000-03-27 Alexandre Petit-Bianco - - * jcf-parse.c (get_constant): Properly cast `num' during the - invocation of `add_double'. - * jcf-write.c (push_long_const): Properly cast `lo' before - comparing it to short bounds. - * parse-scan.y (interface_declaration:): Rule re-arrange so that - `interface_body:' is reduced after the current interface is - pushed. - -2000-03-26 Tom Tromey - - * jvspec.c (jvgenmain_spec): Add `%{<...}' construct for each - Java-specific `-f' option. - -2000-03-26 Richard Kenner - - * decl.c (init_decl_processing): Only call initialize_sizetypes once. - Adjust order of making types. - Make bitsize_*_node values. - -2000-03-25 Richard Kenner - - * class.c (make_field_value): Use byte_position. - * expr.c (JAVA_ARRAY_LENGTH_OFFSET): Use byte_position. - (java_array_data_offset): Likewise. - * java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Add case to - bzero call. - -2000-03-22 Alexandre Petit-Bianco - - * parse.y (check_abstract_method_definitions): New local - `end_type_reached'. Make sure we also consider `end_type'. - (java_check_abstract_method_definitions): Make sure we eventually - consider `java.lang.Object'. - (maybe_use_access_method): Don't use access method if not in the - context of a pure inner class or if the method's context is right. - (find_applicable_accessible_methods_list): New static flag - `object_done'. Don't search abstract classes as interfaces. Fixed - indentation. Fixed the `java.lang.Object' only search. Search - class interface(s) first, then fully search enclosing contexts. - (find_most_specific_methods_list): Pick the closest candidate when - they're all abstract. - -2000-03-20 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: - properly initialize `finished_label'. Don't emit gotos for empty - try statements. - -2000-03-19 Martin v. Löwis - - * except.c (emit_handlers): Clear catch_clauses_last. - -2000-03-17 Alexandre Petit-Bianco - - * parse.y (check_method_types_complete): New function. - (create_class): Reset anonymous class counter only when seeing an - non inner classe. - (java_complete_class): JDEP_METHOD: Don't recompute signature - if incomplete. - -2000-03-17 Alexandre Petit-Bianco - - * class.c (build_static_ref): Fixed indentation in comment. - * java-tree.def (TRY_EXPR): Fixed typo in name. - (CLASS_LITERAL): Likewise. - * java-tree.h: (TYPE_DOT_CLASS): New macro. - (struct lang_type): New field `dot_class'. - * jcf-write.c (generate_bytecode_insns): Fixed error message. - (generate_classfile): Method `class$' is synthetic. - * parse.y (build_do_class_method): New function. - (build_dot_class_method_invocation): Likewise. - (java_complete_expand_methods): Expand TYPE_DOT_CLASS if necessary. - (resolve_qualified_expression_name): Handle CLASS_LITERAL. - (qualify_ambiguous_name): Likewise. - (patch_incomplete_class_ref): Invoke synthetic method if necessary. - (build_try_statement): Fixed leading comment. - -2000-03-17 Richard Kenner - - * class.c (make_field_value): Properly handle sizes. - (get_dispatch_vector): Use tree_low_cst and host_integerp. - (layout_class_method): Count using trees. - * decl.c (push_promoted_type): Set TYPE_{MIN,MAX}_VALUE with copy_node. - * expr.c (java_array_data_offset): Use int_bit_position. - (build_newarray, build_anewarray): Use host_integerp and tree_low_cst. - (build_invokevirtual): Use tree_low_cst and do computations with trees. - -2000-03-16 Tom Tromey - - * lang.c (flag_hash_synchronization): New global. - (lang_f_options): Added `hash-synchronization'. - * lang-options.h: Mention -fhash-synchronization. - * java-tree.h (flag_hash_synchronization): Declare. - * expr.c (java_lang_expand_expr): Only push `sync_info' value when - hash table synchronization is disabled. - * decl.c (init_decl_processing): Only push `sync_info' value when - hash table synchronization is disabled. - * class.c (make_class_data): Only push `sync_info' field when hash - table synchronization is disabled. Removed dead code. - -2000-03-16 Tom Tromey - - * lang.c (lang_decode_option): Enable -Wunused when -Wall given. - -2000-03-15 Alexandre Petit-Bianco - - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Disregard anonymous - classes. - * parse.y (patch_method_invocation): Handle anonymous classes - creation in static context. - -2000-03-15 Alexandre Petit-Bianco - - * parse.h (INNER_ENCLOSING_SCOPE_CHECK): New macro. - * parse.y (resolve_qualified_expression_name): Use it. - (patch_method_invocation): Likewise. - -2000-03-15 Alexandre Petit-Bianco - - * parse.y (register_incomplete_type): JDEP_ENCLOSING set - depending on the type of dependency which dictates what the - current class is. - (unresolved_type_p): Resolved types limited to the current class. - -2000-03-15 Tom Tromey - - * decl.c (init_decl_processing): Set type of `sync_info' to be - pointer to Object. - - * boehm.c (get_boehm_type_descriptor): Correctly compute `bits'. - Correctly compute bit number for current slot. Zero `high' and - `low' in DS_LENGTH case. Don't skip inherited fields. Use - mark_reference_fields. - (mark_reference_fields): New function. - -2000-03-14 Alexandre Petit-Bianco - - * parse.y (register_incomplete_type): Fixed initialization of - JDEP_ENCLOSING. - -2000-02-28 Alexandre Petit-Bianco - - * parse-scan.y (inner_qualifier, inner_qualifier_length): New - static globals. - (push_class_context, pop_class_context): New function. - (class_body:): Call pop_class_context. - (interface_body:): Likewise. - (INNER_QUALIFIER): New macro. - (report_class_declaration): Changed output format and use - INNER_QUALIFIER. Call push_class_context. - -2000-02-14 Andrew Haley - - * check-init.c (check_init): Add new cases for unary and binary - tree nodes. - -2000-03-13 Alexandre Petit-Bianco - - * parse.y (resolve_package): Set `next' once a type name has been - progressively discovered. - (resolve_qualified_expression_name): Propagate resolution only if - there are remaining qualifiers. Take into account `q' might have - been cleared after re-qualification. - * parse.y (patch_method_invocation): New local `resolved'. - Section dealing with qualified expression rewritten to use - resolve_field_access. - -2000-03-13 Alexandre Petit-Bianco - - * parse.h (PUSH_CPC): Fixed indentation. - (DEBUG_CPC): New macro. - (SET_CPC_INITIALIZER_STMT, SET_CPC_STATIC_INITIALIZER_STMT, - SET_CPC_INSTANCE_INITIALIZER_STMT): New macros. - * parse.y (class_body_declaration:): Use - SET_CPC_INSTANCE_INITIALIZER_STMT. - (method_declaration:): Check for null current_function_decl. - (static_initializer:): Use SET_CPC_STATIC_INITIALIZER_STMT. - (java_parser_context_pop_initialized_field): Better handling of - empty lists. - (maybe_make_nested_class_name): Mark nested class name as - qualified when necessary. - (end_class_declaration): Don't call java_parse_context_resume when - one or more error occurred. - (add_inner_class_fields): Use SET_CPC_INITIALIZER_STMT. - (register_fields): Use SET_CPC_STATIC_INITIALIZER_STMT and - SET_CPC_INITIALIZER_STMT. - (method_header): Check for inner classes declaring static methods. - (resolve_qualified_expression_name): Handle situation where `this' - is implied. - -2000-03-13 Hans Boehm - - * typeck.c (build_prim_array_type): Correctly set the high word too. - -2000-03-09 Alexandre Petit-Bianco - - * parse.y (java_complete_expand_methods): Leave out of - ordinary methods. - (maybe_generate_pre_expand_clinit): Put at the end of the - list of methods for interfaces. - -2000-03-07 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Properly handle expressions - using `null'. - -2000-03-07 Alexandre Petit-Bianco - - * parse.y (check_final_assignment): Extended to process - COMPOUND_EXPR. - (patch_assignment): Have check_final_assignment called only once. - -2000-03-07 Alexandre Petit-Bianco - - * java-tree.h (IS_INIT_CHECKED): New flag. - * check-init.c (check_init): Test and set IS_INIT_CHECKED. - * parse.y (patch_string): Call force_evaluation_order on the - completed string concatenation tree. - * expr.c (force_evaluation_order): Call force_evaluation_order on - function's arguments too. - -2000-03-06 Richard Kenner - - * decl.c (emit_init_test_initialization): Mark KEY as unused. - * expr.c (build_newarray): Cast TREE_INT_CST_LOW to HOST_WIDE_INT. - (build_anewarray): Likewise. - * parse.y (patch_newarray): Likewise. - * parse.c: Regenerated. - -2000-03-06 Bryce McKinlay - - * decl.c (init_decl_processing): Added new class fields `depth', - `ancestors', and `idt' to class_type_node. Use - _Jv_LookupInterfaceMethodIdx for soft_lookupinterfacemthod_node. - * class.c (make_class_data): Push initial values for new fields. - * java-tree.h: Updated prototype for `build_invokeinterface'. - * expr.c (build_invokeinterface): Changed parameters to accept - `method' tree. Calculate index of `method' in its declaring - interface. Build call to _Jv_LookupInterfaceMethodIdx. - (expand_invoke): Call `build_invokeinterface' with new parameters. - * parse.y (patch_invoke): Call `build_invokeinterface' with new - parameters. - -2000-03-06 Bryce McKinlay - - * typeck.c (lookup_do): Search superinterfaces first - when looking up an interface method. From Godmar Back - - -2000-03-06 Tom Tromey - - * Make-lang.in (JAVA_SRCS): Added boehm.c, lex.c. - -2000-03-02 Alexandre Petit-Bianco - - * java-tree.h (lookup_argument_method2): Declared. - (safe_layout_class): Prototype moved from parse.h. - * parse.h (safe_layout_class): Prototype moved to java-tree.h. - * parse.y (java_check_regular_methods): Local `super_class' gone. - Call lookup_argument_method2 instead of lookup_argument_method. - Perform modifier match for methods found declared in implemented - interfaces. Fixed indentation problem. Overriding/hiding error - report to take place only for methods found in classes. - * typeck.c (lookup_argument_method): Changed leading - comment. Re-written by calling lookup_do. - (lookup_argument_method2): New function. - (lookup_java_method): Re-written by calling lookup_do. - (lookup_do): New function. - -2000-03-02 Alexandre Petit-Bianco - - * check-init.c (check_init): Removed dead code. Handle (blank) - final variables. - * parse.y (declare_local_variables): New local `final_p', set it - and use it to initialize LOCAL_FINAL. - (check_final_assignment): Only check FIELD_DECLs. - -2000-02-17 Tom Tromey - - * Makefile.in (JAVA_OBJS): Added boehm.o. - (boehm.o): New target. - * Make-lang.in (JAVA_SRCS): Added boehm.c. - * java-tree.h (flag_use_boehm_gc): Declare. - (get_boehm_type_descriptor): Declare. - * lang.c (lang_f_options): Added `use-boehm-gc'. - (flag_use_boehm_gc): New global. - * lang-options.h: Added -fuse-boehm-gc. - * boehm.c: New file. - * class.c (get_dispatch_table): If class uses a Boehm type - descriptor, put it in the vtable. - (make_class_data): Removed dead code. - -2000-03-03 Per Bothner - - * decl.c (init_decl_processing): Initialize sizetype properly. - -2000-03-01 Alexandre Petit-Bianco - - * java-tree.h (LOCAL_CLASS_P): New flag usage and macro. - (PURE_INNER_CLASS_DECL_P, PURE_INNER_CLASS_TYPE_P): New macros. - * jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. - * jcf-parse.c (HANDLE_INNERCLASSES_ATTRIBUTE): Likewise. - (jcf_parse): New local `current'. Load innerclasses seen in outer - context being processed. - * jcf-reader.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. - * jcf-write.c (append_innerclasses_attribute): New function. - (append_innerclasses_attribute_entry): Likewise. - (get_access_flags): Handle static classes. Set anonymous and local - classes to be private. - (generate_classfile): Attribute count adjusted. Call - append_innerclasses_attribute. - * parse.h (SKIP_THIS_AND_ARTIFICIAL_PARMS): Use - PURE_INNER_CLASS_TYPE_P. - * parse.y (parser_qualified_classname): New parameter `is_static', - produce non qualified name accordingly. - (block_statement:): Set LOCAL_CLASS_P when declaring local class. - (create_interface): Added argument to parser_qualified_classname. - (create_class): Added argument to parser_qualified_classname. Setup - alias for top level classes. Use PURE_INNER_CLASS_DECP_P. - (add_inner_class_fields): Fixed indentation. - (method_declarator): Use PURE_INNER_CLASS_DECP_P. - (method_declarator): Fixed typo in comment. - (craft_constructor): Use PURE_INNER_CLASS_DECP_P. - (build_current_thisn): Likewise. - (patch_method_invocation): Likewise. - -2000-03-01 Martin von Löwis - - * decl.c (current_function_decl): Move to toplev.c. - -2000-02-28 Richard Kenner - - * java-tree.h (LABEL_PC): Relect name changes in ../tree.h. - (DECL_BIT_INDEX): Use underlying representation. - * parse.h (DECL_INHERITED_SOURCE_LINE): Likewise. - -2000-02-27 Richard Kenner - - * expr.c (build_java_ret): Pass proper type to size_binop. - -2000-02-25 Anthony Green - - * expr.c (build_class_init): Mark the decl to be ignored by - check_init. - * java-tree.h (DECL_BIT_INDEX): Move definition from check-init.c - * check-init.c: Move DECL_BIT_INDEX to java-tree.h - * class.c (init_test_hash_newfunc): New function. - (decl_hash): New function. - (decl_compare): New function. - * decl.c (emit_init_test_initialization): New function. - (complete_start_java_method): Traverse the init test hashtable, - calling emit_init_test_initialization. - (always_initialize_class_p): Define. - * expr.c (build_class_init): Use initialization tests when - emitting class initialization code. - (always_initialize_class_p): Declare. - * jcf-parse.c (parse_class_file): Set always_initialize_class_p to - 1. - * java-tree.h: Include hash.h. - (DECL_FUNCTION_INIT_TEST_TABLE): Define. - (struct lang_decl): Add init_test_table field. - (init_test_hash_entry): Define. - -2000-02-25 Alexandre Petit-Bianco - - * gjavah.c (main): Avoid using `argi' to report unimplemented - options. - -2000-02-25 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: - initialize locals to avoid warnings. Local `exception_type' moved - into if statement. - -2000-02-25 Alexandre Petit-Bianco - - * parse.y (resolve_expression_name): Use `orig' as a second - argument to resolve_field_access. - (resolve_field_access): Removed unnecessary code when dealing with - static fields. - -2000-02-23 Alexandre Petit-Bianco - - * class.c (push_super_field): Don't push the field twice. - * jcf-parse.c (parse_source_file): Call java_reorder_fields. - * parse.h (java_reorder_fields): Prototyped. - * parse.y (java_reorder_fields): New function. - (java_layout_class): Simplified not to worry about re-ordering. - -2000-02-23 Tom Tromey - - * gjavah.c (print_name): In JNI case, correctly quote string. - (print_method_info): Don't handle overrides in JNI mode. - -2000-02-22 Alexandre Petit-Bianco - - * parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned - value type set to `boolean_type_node'. - -2000-01-18 Joerg Brunsmann - - * jcf-dump.c (main): Test for correct condition after - output file creation. - -2000-02-19 Anthony Green - - * jcf-depend.c (add_entry): Fix test for first list entry. - -2000-02-19 Richard Kenner - - * class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT. - * constants.c (build_constants_constructor): Likewise. - -2000-02-19 Anthony Green - - * jcf-depend.c (add_entry): Add entries to the end of the list. - -1999-11-03 Pekka Nikander - - * decl.c (INT_TYPE_SIZE): Define if necessary. - (expand_java_return): Handle the case of a native integer smaller - than a JVM integer. - -2000-02-18 Martin von Löwis - - * gjavah.c (help): Use GCCBUGURL. - * jv-scan.c (help): Likewise. - * jcf-dump.c (help): Likewise. - -2000-02-17 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): Don't generate empty - `finally' clauses. - -2000-02-17 Alexandre Petit-Bianco - - * jcf-parse.c (load_class): Call `fatal' if no file containing - the target class are found. - -2000-02-16 Zack Weinberg - - * Makefile.in (PARSE_C, PARSE_SCAN_C): Move dependencies on - lex.c, lex.h, and PARSE_H to... - (parse.o, parse-scan.o): ...here, respectively. - - * lex.c: Split out code that may trigger SIGFPE from yylex() - to its own function. - * lex.h (JAVA_FLOAT_RANGE_ERROR): Don't set value. - -2000-02-16 Kaveh R. Ghazi - - * Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h. - -2000-02-15 Alexandre Petit-Bianco - - * parse.y (outer_field_access_p): Stop in time when outer contexts - are exhausted. - (resolve_qualified_expression_name): Properly qualify *everything* - after a package.type to be resoled as expression names. - (find_applicable_accessible_methods_list): Save/restore `class' to - isolate it from a possible outer context search. - -2000-02-15 Tom Tromey - - * gjavah.c (jni_print_char): New function. - (print_full_cxx_name): Use it. - (decode_signature_piece): Likewise. - (print_cxx_classname): Likewise. - -2000-02-15 Kaveh R. Ghazi - - * Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with - version.o. - (jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h. - - * gjavah.c: Include version.h. - - * jcf-dump.c: Likewise. - - * jv-scan.c: Likewise. - -2000-02-12 Alexandre Petit-Bianco - - * parse.y (outer_field_access_fix): First parameter now a tree - node. Check for assignment to final. First argument to - build_outer_field_access_fix modified to accommodate prototype. - (build_outer_field_access): Don't check for assignment to final - here. - (java_complete_lhs): MODIFY_EXPR case: Check for `error_mark_node' - possibly returned by outer_field_access_fix. Changed - outer_field_access_fix's first argument. - (check_final_assignment): $finit$'s context is OK. - (patch_unaryop): Use node instead of its line/column value when - calling outer_field_access_fix. - -2000-02-11 Alexandre Petit-Bianco - - * parse.y (interface_declaration:): No longer tagged - . Re-installed default action. - (class_member_declaration:): Handle inner interfaces. - (interface_member_declaration): Handle inner interfaces and - classes. - (create_interface): Push error if one seen. Suspend parsing - context when processing an inner interface. - (register_fields): Inner class static field limitations not to - apply to inner interfaces. - -2000-02-10 Alexandre Petit-Bianco - - * jcf-parse.c (load_class): Update `java_error_count' when a - class' file can't be found. - (parse.y): Avoid (byte)code generation when errors seen. - -2000-02-10 Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): Handle TRUNC_DIV_EXPR. Ensure `fatal' - decodes a valid node. - (patch_binop): Handle TRUNC_DIV_EXPR. - -2000-02-10 Alexandre Petit-Bianco - - * parse.y (resolve_package): New local `acc'. Try to progressively - build and guess a package and type name. - -2000-02-10 Alexandre Petit-Bianco - - * parse.y (find_applicable_accessible_methods_list): Load and - layout the search class if necessary. - (java_complete_tree): Keep to original type of the folded initial - value. - -2000-02-09 Alexandre Petit-Bianco - - * class.c (layout_class): Set and test CLASS_BEING_LAIDOUT. - Generate error message if circularity is detected. New static - local `list'. - * java-tree.h (CLASS_BEING_LAIDOUT): New flag usage, new macro. * - * jcf-write.c (generate_bytecode_insns): Very simply handle - SAVE_EXPR. - * parse.y (java_check_circular_reference): Use - `cyclic_inheritance_report' during report, if necessary. - (java_complete_lhs): fixed comment with `THROW_EXPR:' case. Avoid - walking NEW_ARRAY_INIT twice. - -2000-02-09 Tom Tromey - - * parse.y (check_class_interface_creation): Allow inner classes to - be `private' or `protected', check modifiers' consistency. Prevent - block local classes from bearing any modifiers. - -2000-02-10 Kaveh R. Ghazi - - * except.c (check_start_handlers): Re-add prototype lost in last - patch. - (maybe_start_try): Remove excess argument to `check_start_handlers'. - -2000-02-09 Andrew Haley - - * decl.c (clear_binding_level): Remove excess initializer. - (maybe_poplevels): Remove unused variable. - (force_poplevels): Ditto. - (struct binding_level): Add comment. - -2000-02-07 Alexandre Petit-Bianco - - * jcf-write.c (generate_classfile): Don't consider - pre-initialization with reference value (use instead.) - * parse.y (java_fix_constructors): No generated constructor for - interfaces. - (build_outer_field_access): Removed debug message. - (outer_field_expanded_access_p): Adapted to bytecode generation. - (build_outer_field_access_method): Use fix_method_argument_names. - (build_outer_method_access_method): Fixed indentation. Added - comment. Handle access method generation for static and also void - methods. - (build_access_to_thisn): Inserted debug message. - (maybe_build_thisn_access_method): Use fix_method_argument_names. - (resolve_qualified_expression_name): Fixed comment. - (not_accessible_p): Adapted to bytecode generation. Added comment. - (patch_method_invocation): Added comment. - (maybe_use_access_method): Fixed leading comment. Handle static - methods. - (java_complete_lhs): Don't shortcut handling of initialized upon - declaration String type static fields when generating bytecode. - (patch_unaryop): Handle outer field access when generating - bytecode. - -2000-02-03 Alexandre Petit-Bianco - - * java-tree.h (FIELD_THISN): New macro. - * jcf-write.c (append_synthetic_attribute): New function. - (generate_classfile): Set "Synthetic" attribute on this$, - val$ fields, access$ and $finit$ methods. Fixed indentation. - * parse.y (add_inner_class_fields): Set FIELD_THISN for created - this$ fields. - (build_outer_field_access): Turned on access functions usage and - generation when compiling to bytecode. - (maybe_use_access_method): Likewise. - -2000-01-25 Andrew Haley - - * java-except.h (struct eh_range): Add `expanded' field. - (maybe_start_try): Add end_pc arg. - (maybe_end_try): Ditto. - * java-tree.h (force_poplevels): new function. - * expr.c (expand_byte_code): Don't call maybe_start_try or - maybe_end_try. - * except.c (add_handler): Reset expanded. - (expand_start_java_handler): Set expanded. - (check_start_handlers): Don't expand a start handler that's - already been expanded. - (maybe_start_try): Add end_pc arg. Only expand a handler which - ends after end_pc. - (expand_end_java_handler): call force_poplevels. - (force_poplevels): new function. - * decl.c (binding_level): Add start_pc of binding level. - (maybe_pushlevels): Call maybe_start_try when pushing binding - levels. - (maybe_poplevels): Call maybe_end_try when popping binding levels. - (LARGEST_PC): Define. - (clear_binding_level): Use LARGEST_PC. - - * java-tree.h (DEBUG_JAVA_BINDING_LEVELS): new define. - * decl.c (DEBUG_JAVA_BINDING_LEVELS): new define. - (binding_depth, is_class_level, current_pc): new variables. - (struct binding_level): ditto. - (indent): new function. - (push_jvm_slot): add debugging info. - (maybe_pushlevels): ditto. - (maybe_poplevels): ditto. - (pushlevel): ditto. - (poplevel): ditto. - (start_java_method): ditto. - (give_name_to_locals): comment only. - * except.c (binding_depth, is_class_level, current_pc): - new variables. - (expand_start_java_handler): add debugging info. - (expand_end_java_handler): ditto. - -2000-02-05 Kaveh R. Ghazi - - * gjavah.c (overloaded_jni_method_exists_p): Add prototype. - (print_name_for_stub_or_jni, process_file): Constify a char*. - -2000-02-03 Tom Tromey - - * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input. - -2000-01-31 Scott Bambrough - - * gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to - assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is - defined to be 1. - -2000-02-02 Alexandre Petit-Bianco - - * java-tree.def (INSTANCE_INITIALIZERS_EXPR): New tree code. - * java-tree.h (TYPE_II_STMT_LIST): New macro. - (struct lang_type): New field `ii_block'. - * lex.c (java_init_lex): Use CPC_INITIALIZER_LIST, - CPC_STATIC_INITIALIZER_LIST and CPC_INSTANCE_INITIALIZER_LIST. - * parse.h (struct parser_ctxt): New field `instance_initializers'. - (CPC_INITIALIZER_LIST, CPC_STATIC_INITIALIZER_LIST, - CPC_INSTANCE_INITIALIZER_LIST, CPC_INITIALIZER_STMT, - CPC_STATIC_INITIALIZER_STMT, CPC_INSTANCE_INITIALIZER_STMT): New - macros. - * parse.y (add_instance_initializer): New function. - (in_instance_initializer): New static global. - (class_body_declaration:): Link instance initializer block. - (static_initializer:): Use CPC_STATIC_INITIALIZER_STMT. - (array_creation_expression:): Remove unused local. - (java_parser_context_push_initialized_field): Fixed leading - comment. Use CPC_STATIC_INITIALIZER_LIST, CPC_INITIALIZER_LIST and - CPC_INSTANCE_INITIALIZER_LIST. - (java_parser_context_pop_initialized_field): Likewise. - (add_inner_class_fields): Use CPC_INITIALIZER_STMT. - (register_fields): Use CPC_STATIC_INITIALIZER_STMT and - CPC_INITIALIZER_STMT. - (fix_constructors): New local `class_type'. Use it. Call - add_instance_initializer. - (java_complete_lhs): New case INSTANCE_INITIALIZERS_EXPR. - (patch_return): Forbid return in instance initializers. - (patch_throw_statement): Enforce exception handling in the context - of instance initializers. - -2000-02-03 Tom Tromey - - * Make-lang.in (java.mostlyclean): Remove executables in - `mostlyclean'. - -2000-01-31 Scott Bambrough - - * gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when - HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1. - (java_float_finite): Convert to use union Word from javaop.h. - (java_double_finite): Convert to use union DWord from javaop.h. - -2000-02-02 Tom Tromey - - * gjavah.c (options): Added `jni' entry. - (help): Document -jni. - (flag_jni): New global. - (process_file): Handle JNI output. Don't print text from - -prepend, -add, etc, when generating stubs. Only remove `.class' - suffix if it actually exists. - (main): Create a `.c' file when run with `--jni --stubs'. Create - correct output file name with `--jni'. - (print_include): Mangle header name differently in JNI case. - (HANDLE_METHOD): In JNI mode, call print_method_info to generate - method list. - (print_method_info): Handle JNI case. Put signature info into - method name. Handle case when STREAM is NULL. - (print_name_for_stub_or_jni): New function. - (print_stub_or_jni): Renamed from `print_stub'. Handle JNI. - (print_cxx_classname): Handle JNI. - (print_full_cxx_name): Likewise. - (decode_signature_piece): Likewise. - (overloaded_jni_method_exists_p): New function. - (struct method_name): Added `signature' and `sig_length' fields. - (HANDLE_END_FIELD): Do nothing in JNI mode. - -2000-02-02 Tom Tromey - - * jv-scan.c: Include version.c, . - (LONG_OPT, OPT_HELP, OPT_VERSION): New macros. - (options): New array. - (usage): New function. - (version): New function. - (main): Use getopt_long to parse command line. - * jcf-dump.c: Include version.c, . - (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION, - OPT_JAVAP): New macros. - (options): New array. - (usage): Return `void'. Changed message. - (help): New function. - (version): New function. - (main): Use getopt_long_only to parse command line. - * gjavah.c: Include . - (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP, - OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M, - OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros. - (options): New array. - (java_no_argument): Removed. - (help): Updated with missing options. - (main): Use getopt_long_only to parse command line. - (usage): Changed message. - -2000-02-01 Alexandre Petit-Bianco - - * java-tree.def (NEW_ANONYMOUS_ARRAY_EXPR): New tree code. - * parse.h (ANONYMOUS_ARRAY_BASE_TYPE, ANONYMOUS_ARRAY_DIMS_SIG, - ANONYMOUS_ARRAY_INITIALIZER): New access macros. - * parse.y (array_creation_expression:): Handle anonymous arrays. - (build_array_from_name): Don't set `ret_name' if null. - (resolve_qualified_expression_name): New case NEW_ANONYMOUS_ARRAY_EXPR. - (qualify_ambiguous_name): Likewise. - (java_complete_expand_class): Likewise. - -2000-02-01 Alexandre Petit-Bianco - - * java-tree.def (SYNCHRONIZED_EXPR): Fixed typo. - * parse.h (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID): New macro. - (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STR): Likewise. - (SKIP_THIS_AND_ARTIFICIAL_PARMS): Use DECL_FINIT_P. - (AIPL_FUNCTION_FINIT_INVOCATION): Replaces - AIPL_FUNCTION_COMPLETED_INVOCATION. - (AIPL_FUNCTION_CTOR_INVOCATION): Replaces - AIPL_FUNCTION_INVOCATION_READY. - (AIPL_FUNCTION_DECLARATION): New enum entry. - * parse.y (reorder_static_initialized): New function. - (java_parser_context_pop_initialized_field): Use it. - (add_inner_class_fields): Use - MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID. Comment - augmented. Install marker after last alias initializer, if any. - (generate_finit): Fixed typo. Don't try to retain only the used - fields. - (method_header): Compute and set DECL_FUNCTION_NAP. - (method_declarator): Fixed comment. Insert alias initializer in - parameter list. - (build_alias_initializer_parameter_list): Fixed leading - comment. New case for AIPL_FUNCTION_DECLARATION. Old enum value - replaced by new ones. Use MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID. - (java_complete_expand_class): Code to retain only used aliases - removed. - (java_complete_expand_methods): New local `first_decl'. Generate - $finit$ first, then expand the constructors, regular methods and - . - (java_complete_expand_method): Don't report error on missing - return statement if previously detected bogus. - (fix_constructors): Don't patch constructor parameters list. - (patch_method_invocation): Use new AIPL enum values. Reverse - alias initializer list for anonymous classes. - -2000-01-30 Anthony Green - - * jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to - determine how many stack slots to pop. - -2000-01-29 Alexandre Petit-Bianco - - * parse.y (formal_parameter:): Set `$$' to NULL_TREE for better - error handling/recovery. - * java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment. - -2000-01-28 Alexandre Petit-Bianco - - * java-tree.h (ARG_FINAL_P, FIELD_LOCAL_ALIAS, - FIELD_LOCAL_ALIAS_USED): New macros. - (DECL_FUNCTION_NAP): New macro. - (struct lang_decl): New field `nap'. - (TYPE_FINIT_STMT_LIST, TYPE_CLINIT_STMT_LIST): New macros. - (struct lang_type): New fields `finit_stmt_list' and - `clinit_stmt_list'. - (CLASS_HAS_FINIT_P): Defined using TYPE_FINIT_STMT_LIST. - * parse.h (MANGLE_OUTER_LOCAL_VARIABLE_NAME): New macro. - (SKIP_THIS_AND_ARTIFICIAL_PARMS, MARK_FINAL_PARMS, - UNMARK_FINAL_PARMS, CRAFTED_PARAM_LIST_FIXUP): New macros. - (AIPL_FUNCTION_CREATION, AIPL_FUNCTION_COMPLETED_INVOCATION, - AIPL_FUNCTION_INVOCATION_READY): New enum fields. - (BUILD_THROW): Macro line separator re-indented. - * parse.y (end_class_declaration): New function. - (maybe_generate_pre_expand_clinit): New name for - java_pre_expand_clinit. Create off TYPE_CLINIT_STMT_LIST, - pre-expand static fields. - (maybe_generate_clinit): Function deleted. - (check_for_static_method_reference): Prototype's parameter list - indented. - (generate_finit): New name for maybe_generate_finit. Changed - leading comment. Function rewritten to use - TYPE_FINIT_STMT_LIST. Call build_alias_initializer_parameter_list. - (build_alias_initializer_parameter_list): New function. - (java_parser_context_pop_initialized_field): Likewise. - (add_inner_class_fields): Likewise. - (type_declaration:): Call end_class_declaration. - (class_member_declaration:): Likewise. - (formal_parameter_list:): Fixed typos. - (formal_parameter:): Use ARG_FINAL_P to mark created tree list - element. Improved error handling. - (block_statement:): Call end_class_declaration. - (anonymous_class_creation:): Likewise. - (create_anonymous_class): Fixed comments. - (create_class): Call add_inner_class_fields. - (register_fields): Set FIELD_LOCAL_ALIAS according to ARG_FINAL_P. - (method_header): Use MARK_FINAL_PARMS. - (finish_method_declaration): Use UNMARK_FINAL_PARMS. - (method_declarator): Propagate final argument flag. - (craft_constructor): New local `artificial'. Call - build_alias_initializer_parameter_list. Use - CRAFTED_PARAM_LIST_FIXUP, assign DECL_FUNCTION_NAP. - (source_start_java_method): Mark parm decls with LOCAL_FINAL if - necessary. - (complete_expand_class): Get rid of unused outer context local - alias fields. - (java_complete_expand_methods): Fixed leading - comment. Generate/pre-expand first. Changed method - expansion order to regular, $finit$, constructors, . - (java_complete_expand_method): Set current_function_decl. - (fix_constructors): Fix constructor parameter list to account for - outer context local alias initializers. - (verify_constructor_super): Use SKIP_THIS_AND_ARTIFICIAL_PARMS. - (resolve_expression_name): Lookup outer context local aliases. New - local `access', use it. - (patch_method_invocation): Patch inner class ctor invocation with - outer context local aliases initialization values. $finit$ - invocation patching now includes things generated with - build_alias_initializer_parameter_list. - (argument_types_convertible): Use SKIP_THIS_AND_ARTIFICIAL_PARMS. - (build_super_invocation): Likewise. - (patch_assignment): Changed comment. - -2000-01-27 Andrew Haley - - * jcf-write.c (emit_goto): RESERVE 3 bytes for insn. - (emit_if): Ditto. - (emit_jsr): Ditto. - -2000-01-25 Kaveh R. Ghazi - - * parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string - concatenation. - (OBSOLETE_MODIFIER_WARNING2): New macro allowing two args. - - * parse.y (register_fields): Don't pass a format specifier to - OBSOLETE_MODIFIER_WARNING. - (check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2 - instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format - specifier. - (check_modifiers): Change function into a macro. - (check_class_interface_creation): Pass a literal format string. - -2000-01-21 Kaveh R. Ghazi - - * buffer.h: PROTO -> PARAMS. - * check-init.c: Likewise. - * class.c: Likewise. - * constants.c: Likewise. - * convert.h: Likewise. - * decl.c: Likewise. - * except.c: Likewise. - * expr.c: Likewise. - * gjavah.c: Likewise. - * java-except.h: Likewise. - * java-tree.h: Likewise. - * jcf-depend.c: Likewise. - * jcf-dump.c: Likewise. - * jcf-parse.c: Likewise. - * jcf-path.c: Likewise. - * jcf-reader.c: Likewise. - * jcf-write.c: Likewise. - * jcf.h: Likewise. - * jv-scan.c: Likewise. - * jvgenmain.c: Likewise. - * jvspec.c: Likewise. - * lang.c: Likewise. - * lex.c: Likewise. - * lex.h: Likewise. - * parse-scan.y: Likewise. - * parse.h: Likewise. - * parse.y: Likewise. - * typeck.c: Likewise. - * verify.c: Likewise. - * xref.c: Likewise. - * xref.h: Likewise. - * zextract.c: Likewise. - * zipfile.h: Likewise. - -2000-01-18 Alexandre Petit-Bianco - - * class.c (make_class): Use MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC. - (is_compiled_class): Remove test on TYPE_LANG_SPECIFIC, use TYPE_JCF. - * constants.c (build_constant_data_ref): Check for cached - current_constant_pool_data_ref. Cache current_constant_pool_data_ref - in TYPE_CPOOL_DATE_REF. - * java-tree.h (TYPE_JCF, TYPE_CPOOL, TYPE_CPOOL_DATA_REF, - MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC:) New macros. - (struct lang_type): New fields `cpool' and `cpool_data_ref'. - (LOCAL_FINAL): New macro. - * jcf-parse.c (init_outgoing_cpool): Always allocate new outgoing - constant pool -- don't try to reuse. - (parse_zip_file_entries): Use TYPE_JCF, don't lazily allocate - TYPE_LANG_SPECIFIC. - (find_in_current_zip): Use TYPE_JCF. - * parse.h (java_check_final): Prototype removed. - * parse.y (create_class): Reversed Jan 12, 2000 extra argument patch. - (maybe_create_class_interface_decl, - check_class_interface_creation): Likewise. - (java_expand_finals): Function removed. - (class_declaration:): Reversed Jan 12, 2000 extra argument patch. - (block_statement:): Fixed comment. - (anonymous_class_creation:): Likewise. - (check_class_interface_creation): Reversed Jan 12, 2000 extra - argument patch. - (check_class_interface_creation): Loosened error report on (inner) - public class declarations. CPC_INNER_P replaces GET_CPC_LIST. - (link_nested_class_to_enclosing): Reversed Jan 12, 2000 patch. - (maybe_create_class_interface_decl): Reversed Jan 12, 2000 extra - argument patch. - (create_interface): Likewise. - (anonymous_class_counter): New static global. - (create_anonymous_class): Reversed Jan 12, 2000 extra argument - patch. Fixed comments. - (create_class): Reversed Jan 12, 2000 extra argument patch. Reset - anonymous_class_counter when declaring a toplevel class. - (craft_constructor): Fixed constructor name when handling - anonymous classes. Anonymous class constructors to feature hidden - this$ parameter. - (java_fix_constructors): Added comment. - (java_check_final): Function removed. - (java_complete_expand_methods): Fixed comment. Don't generate - class data, save its outgoing constant pool instead. - (verify_constructor_super): Skip anonymous class constructor - hidden this$ parameter. - (java_expand_classes): New local `saved_ctxp'. Removed call to - java_expand_finals and java_check_final. Expand anonymous class - constructors. Generate class data. - (build_super_invocation): Skip anonymous class hidden this$ - parameter. - * typeck.c (build_java_signature): Use TYPE_SIGNATURE and - MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC. - (set_java_signature): Likewise. - -2000-01-18 Joerg Brunsmann - - * gjavah.c: Delete ACC_VISIBILITY define. - * jcf.h: Add ACC_VISIBILITY define. - * parse.y: final: rule tagged . - (java_check_regular_methods): Use ACC_VISIBILITY define for - default package access check. - (local_variable_declaration_statement): Use final: rule. - -2000-01-17 Joerg Brunsmann - - * parse.y (format_parameter:): Use final: rule instead of modifiers:. - (final:): New rule. - -2000-01-17 Tom Tromey - - * gjavah.c (print_field_info): Allow non-static final fields. - -2000-01-14 Alexandre Petit-Bianco - - * parse.h (enum jdep_code): New entry `JDEP_ANONYMOUS'. - * parse.y (patch_anonymous_class): New function. - (create_anonymous_class): Register incomplete type when the - class/interface to extends/implement isn't known yet. - (parser_check_super_interface): Simplify argument to CLASS_INTERFACE. - (verify_constructor_super): Tuned error message. - -2000-01-14 Alexandre Petit-Bianco - - * java-tree.h (FOR_LOOP_P): Replaces IS_FOR_LOOP_P. - (ANONYMOUS_CLASS_P): New macro. - (TYPE_SIGNATURE, TYPE_JCF): New macros. - (INNER_CLASS_TYPE_P): Fixed typo in leading comment. - * parse.y (create_class): Added leading argument. - (maybe_create_class_interface_decl, - check_class_interface_creation): Likewise. - (craft_constructor): New function. - (verify_constructor_super): Added argument in prototype. - (class_declaration:): Inserted leading argument. - (for_begin:): Use FOR_LOOP_P. - (anonymous_class_creation): Create WFL of the anonymous class to - instantiate. Call build_new_invocation. Added comments. - (check_class_interface_creation): Handle parameter `anonymous' in - verbose mode class creation announce. - (link_nested_class_to_enclosing): Exclude anonymous classes. - (maybe_create_class_interface_decl): Don't set DECL_CONTEXT on - anonymous class, even though they appear to have an enclosing - context. - (create_interface): Pass extra argument to - check_class_interface_creation. - (create_anonymous_class): Set ANONYMOUS_CLASS_P to 1. - (create_class): Call check_class_interface_creation and - maybe_create_class_interface_decl with extra new argument. Don't - add private this$ to anonymous classes. - (method_declarator): Insert hidden this$ to anonymous class - constructors. - (java_fix_constructors): Deleted code creating default - constructor. Call craft_constructor instead. - (java_check_regular_methods): Set `saw_constructor' to 1 for - anonymous classes. - (fix_constructors): Pass extra argument to verify_constructor_super. - (verify_constructor_super): New local `sdecl', use it. Search for - matching constructor (possibly featuring arguments) in super - class. - (lookup_method_invoke): Craft constructor according to arguments - list when dealing with anonymous class constructors. - (build_super_invocation): Pass arguments to anonymous class super - constructors. - (search_loop): Use FOR_LOOP_P. - (labeled_block_contains_loop_p): Likewise. - -2000-01-12 Alexandre Petit-Bianco - - * class.c (set_super_info): Set CLASS_STATIC when appropriate. - (enclosing_context_p): New function. - (get_access_flags_from_decl): Handle CLASS_STATIC. - (maybe_layout_super_class): Extra first argument passed to - do_resolve_class. - (layout_class_method): Use ID_FINIT_P, DECL_CLINIT_P and - ID_INIT_P. - * decl.c (access0_identifier_node): New global. - (init_decl_processing): access0_identifier_node initialized. - (pushdecl): Set DECL_CONTEXT only on non type decls. - * expr.c (lookup_field): Lookup inner class fields in enclosing - contexts. - (expand_invoke): Use ID_INIT_P. - (expand_java_field_op): Use DECL_CLINIT_P. - * java-tree.def (CLASS_LITERAL): New tree code. - * java-tree.h (DECL_FUNCTION_ACCESS_DECL, - DECL_FUNCTION_INNER_ACCESS, FIELD_INNER_ACCESS): New macros. - (struct lang_decl): New field `inner_access'. - (enclosing_context_p): Prototyped. - (DECL_INIT_P, DECL_FINIT_P, DECL_CLINIT_P, ID_INIT_P, ID_FINIT_P, - ID_CLINIT_P): New macros. - (CLASS_STATIC): New macro. - (CLASS_ACCESS0_GENERATED_P): New macro. - (OUTER_FIELD_ACCESS_IDENTIFIER_P, INNER_CLASS_DECL_P, - TOPLEVEL_CLASS_DECL_P, INNER_CLASS_TYPE_P, TOPLEVEL_CLASS_TYPE_P, - INNER_CLASS_P): New macros. - (DECL_INNER_CLASS_LIST): New macro. - * jcf-parse.c (yyparse): Avoid the use of ANSI string - concatenation. - * jcf-write.c (generate_bytecode_insns): binop: Change the type of - the shift value to int. Fixed typo in comment. - * lex.c (inst_id, wpv_id): Initialize. - * mangle.c (unicode_mangling_length): Take `$' into account. - * parse.h (DRECOVER, RECOVER): Terminate properly. - (IDENTIFIER_INNER_CLASS_OUTER_FIELD_ACCESS): New macro. - (typedef struct _jdep): New field `enclosing'. - (JDEP_ENCLOSING): New macro. - (IS_CLINIT): Deleted (DECL_CLINIT_P replaces it.) - (struct parser_ctxt): New fields `marker_beginning', `marked_end'. - (GET_CPC_LIST, CPC_INNER_P, GET_CPC, GET_CPC_UN, GET_CPC_UN_MODE, - GET_CPC_DECL_NODE, GET_ENCLOSING_CPC, GET_NEXT_ENCLOSING_CPC, - GET_ENCLOSING_CPC_CONTEXT): New macros. - (PUSH_CPC, PUSH_ERROR, POP_CPC): New macros. - (do_resolve_class): Added extra argument in prototype. - * parse.y (resolve_class): Added extra argument in prototype. - (maybe_create_class_interface_decl): Likewise. - (maybe_use_access_method, build_wfl_wrap): New functions. - (java_complete_expand_classes, java_complete_expand_class): - Likewise. - (java_parser_context_push_initialized_field, - java_parser_context_suspend, java_parser_context_resume): - Likewise. - (maybe_make_nested_class_name, make_nested_class_name, - set_nested_class_simple_name_value, - link_nested_class_to_enclosing, find_as_inner_class, - find_as_inner_class_do, check_inner_class_redefinition, - build_thisn_assign, build_current_thisn, build_access_to_thisn, - maybe_build_thisn_access_method, build_outer_field_access, - build_outer_field_access_methods, build_outer_field_access_expr, - build_outer_method_access_method, build_new_access_id, - build_outer_field_access_method, outer_field_access_p, - outer_field_expanded_access_p, outer_field_access_fix, - build_incomplete_class_ref, patch_incomplete_class_ref, - create_anonymous_class): Likewise. - (inst_id, wpv_id): New static global variables. - (synchronized:): New rule, tagged . - (type_declaration:): No longer tagged . Call POP_CPC in sub - rules. - (anonymous_class_creation:): New rule, tagged . - (NEW_TK): Tagged . - (type_literals, array_type_literal): New rules, tagged . - (class_declaration:): Removed action when reducing by class_body: - (class_body:): Set DECL_END_SOURCE_LINE and rule's returned value - using GET_CPC in sub-rules. - (class_member_declaration): Handle inner classes. - (method_declaration): When reducing method_header:, reset - current_function_decl when appropriate. - (method_declarator:): Set the number of formal parameter to 0 for - method declared without arguments. - (constructor_declarator:): Likewise. - (static_initializer:): List of elements kept in a list. - (static:): Rule modifiers: replaces MODIFIER_TK. Enforce correct - use of the keyword `static' for type declarations. - (block_statement:): Handle inner class declarations. - (primary_no_new_array:): Use type_literals:. Fixed comment. Handle - type qualified `this'. - (class_instance_creation_expression): Use anonymous_class_creation: - to handle inner class instances creation. Handle qualified `new'. - (something_dot_new): Added appropriate actions. - (create_new_parser_context): New function. - (java_push_parser_context, java_parser_context_save_global, - java_parser_context_suspend): Use create_new_parser_context. - (check_modifiers): Changed leading comment. - (check_class_interface_creation): Handle interclasses. - (add_superinterfaces): Fixed comment. - (create_interface): Build qualified name from the raw_name instead - of its matching WFL. Push the initialized fields list. raw_name added - as an extra argument to maybe_create_class_interface_decl. - (create_class): Build qualified name from the raw_name instead of - its matching WFL. Removed assignment to current_parsed_class_un. - Call PUSH_ERROR before returning an error. Suspend the current - parser context when processing an inner class. Push the - initialized fields list. raw_name added as an extra argument to - maybe_create_class_interface_decl. Add the private this$ - field. - (duplicate_declaration_error_p): Use GET_CPC when calling find_field. - (register_fields): Get the class type from GET_CPC and handle - previous errors. Added code to handle the creation of static - fields in inner classes. Initialized fields initialization - statements kept in a list of lists. - (maybe_generate_finit): Initialized fields initialization - statements kept in a list of lists. Use GET_CPC. - (maybe_generate_clinit): Likewise. - (method_header): Use GET_CPC and GET_CPC_UN. - (parser_qualified_classname): Handle inner classes. - (register_incomplete_type): Set JDEP_ENCLOSING using GET_CPC. - (java_fix_constructors): Hide pointer to enclosing context - instance in constructor list when dealing with inner classes. - (jdep_resolve_class): Call resolve_class with extra first argument - JDEP_ENCLOSING. - (resolve_class): Add enclosing context as a first extra argument - to do_resolve_class. - (do_resolve_class): Call find_as_inner_class. Handle WFLs - properly. - (resolve_no_layout): Extra argument added to resolve_class - invocation. - (reset_method_name): Use DECL_CLINIT_P, DECL_FINIT_P. - (java_get_real_method_name): Use GET_CPC_UN. - (check_abstract_method_definitions): Use DECL_CLINIT_P. - (java_check_abstract_methods): Handle static method declared in - inner classes by an error. - (java_check_regular_methods): Use DECL_CLINIT_P. - (source_start_java_method): Also set DECL_MAX_LOCALS. - (create_artificial_method): Call java_parser_context_save_global - and java_parser_context_restore_global instead of saving/restoring - the context by hand. - (expand_start_java_method): Improved verbose mode message. - (java_complete_expand_methods): Fixed leading comment. Use - DECL_CLINIT_P. - (fix_constructors): Added assignment to this$ if necessary. - (java_expand_classes): Call java_complete_expand_classes instead - of java_complete_expand_methods. - (make_qualified_primary): Simplified. - (merge_qualified_name): Optimized for missing left or right parts. - (resolve_expression_name): Handle access to outer class fields from - interclasses. - (resolve_qualified_expression_name): New macro - RESTORE_THIS_AND_CURRENT_CLASS, used. Handle creation of inner - classes. Report error on non appropriate qualification of - `new'. Handle qualified `this'. - (not_accessible_p): Allow access to outer class private fields from - inner classes. - (patch_method_invocation): Handle method invocations through - access methods and inner class constructor invocations. - (find_applicable_accessible_methods_list): Search enclosing - contexts of an inner class. - (search_applicable_methods_list): Fixed typo. - (argument_types_convertible): Handle inner class constructors' - hidden outer context reference argument. - (qualify_ambiguous_name): Handle qualified `this'. - (java_complete_lhs): Handle use of field accessed through - artificial access methods in various cases of assignments. Handle - CLASS_LITERAL node. - (check_final_assignment): Use DECL_CLINIT_P. - (valid_ref_assignconv_cast_p): Handle the destination being an - enclosing context of the source. - (patch_unaryop): Handle use of field accessed through artificial - access methods. - (patch_return): Use DECL_CLINIT_P. - (patch_throw_statement): Use DECL_CLINIT_P. - (check_thrown_exceptions): Use DECL_FINIT_P and DECL_INIT_P. - * verify.c (verify_jvm_instructions): Use ID_CLINIT_P and - ID_INIT_P. - -2000-01-16 Anthony Green - - * parse.y (build_string_concatenation): Only use - StringBuffer(String) shortcut if String arg is constant. - -2000-01-12 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): binop: Change the type of - the shift value to int. Fixed typo in comment. - -2000-01-11 Mumit Khan - - * jcf-path.c: Delete PATH_SEPARATOR and DIR_SEPARATOR macros. - * jcf-write.c: Likewise. - * parse.y: Likewise. - * parse.c: Regenerate. - -2000-01-09 Anthony Green - - * jcf-write.c (generate_bytecode_insns): Emit invokeinterface - bytecodes in the correct order. - -2000-01-09 Kaveh R. Ghazi - - * Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS). - -2000-01-06 Anthony Green - - * expr.c (java_lang_expand_expr): Switch to permanent obstack - before building constant array decl. - -2000-01-06 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_conditional): Fixed indentation in - method invocation and typo in conditional expression. - (generate_bytecode_insns): COND_EXPR can be part of a binop. Issue - the appropriate NOTE_POP. - * parse.y (patch_binop): Shift value mask to feature the right - type. - -1999-12-30 Kaveh R. Ghazi - - * class.c (assume_compiled, assume_compiled_node): Add static - prototype. - (add_assume_compiled): Use xmalloc/xstrdup, not malloc/strdup. - - * jcf-dump.c (ARRAY_NEW_NUM): Cast long to int in switch. - - * jvgenmain.c (usage): Add static prototype with ATTRIBUTE_NORETURN. - - * parse.h (OBSOLETE_MODIFIER_WARNING): Rename parameter `modifier' - to `__modifier' to avoid stringifying it. - - * parse.y (verify_constructor_circularity): Don't call a variadic - function with a non-literal format string. - (java_check_abstract_methods): Move unreachable code inside - `continue' statement. - (lookup_method_invoke): Call xstrdup, not strdup. - - * expr.c (expand_java_field_op): Avoid the use of ANSI string - concatenation. - - * jcf-parse.c (yyparse): Likewise. - - * jv-scan.c (main): Likewise. - -1999-12-30 Kaveh R. Ghazi - - * parse.h (ABSTRACT_CHECK, JCONSTRUCTOR_CHECK, - ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, - ERROR_CAST_NEEDED_TO_INTEGRAL): Avoid the use of ANSI string - concatenation. - - * parse.y (synchronized, variable_redefinition_error, - check_class_interface_creation, create_interface, create_class, - method_header, finish_method_declaration, - check_modifiers_consistency, method_declarator, - complete_class_report_errors, check_abstract_method_definitions, - java_check_regular_methods, check_throws_clauses, - java_check_abstract_methods, read_import_dir, - check_pkg_class_access, declare_local_variables, fix_constructors, - cut_identifier_in_qualified, resolve_expression_name, - resolve_qualified_expression_name, patch_method_invocation, - java_complete_lhs, patch_assignment, try_builtin_assignconv, - patch_binop, patch_array_ref, patch_newarray, build_labeled_block, - patch_exit_expr, patch_exit_expr, patch_switch_statement, - patch_try_statement, patch_synchronized_statement, - patch_throw_statement, check_thrown_exceptions, - patch_conditional_expr): Likewise. - -1999-12-24 Alexandre Petit-Bianco - - * Makefile.in (LIBDEPS): Added gcc's errors.o - (../jcf-dump$(exeext):): Link with gcc's errors.o - (../gcjh$(exeext):): Likewise. - * expr.c (expand_java_NEW): Layout the entire target type instead of - laying out its methods only. - (lookup_field): Layout the class after having loaded it. - * java-tree.h (java_debug_context): Declared. - * jcf-io.c (toplev.h): Included. - (find_class): Removed assignment to jcf's outofsynch - field. Force source file to be read if newer than its matching - class file. Tweaked debug messages. - * jcf-parse.c (jcf_out_of_synch): Deleted. - (read_class): Call to jcf_out_of_synch removed. - * jcf.h (typedef struct JCF): Field `outofsynch' deleted. - (jcf_out_of_synch): Prototype deleted. - * parse.h (struct parser_ctxt): `minus_seen', `java_error_flag', - `deprecated' and `class_err': integer turned into bit-fields. - New bit-fields `saved_data_ctx' and `saved_data'. Fixed comments. - * parse.y (package_list): New global. - (package_declaration:): Record newly parsed package name. - (extra_ctxp_pushed_p): Static global deleted. - (java_parser_context_save_global): Create buffer context for the - purpose of saving globals, if necessary. - (java_parser_context_restore_global): Pop context pushed for the - purpose of saving globals, if necessary. - (java_debug_context_do): New prototype and function. - (java_debug_context): Likewise. - (do_resolve_class): Use already parsed package names to qualify - and lookup class candidate. - (java_pre_expand_clinit): Removed unnecessary local variable. - -1999-12-17 Tom Tromey - - * gjavah.c (decode_signature_piece): Print "::" in JArray<>. This - fixes PR gcj/119. - (process_file): Use `\n\' at end of each line in string. - -1999-12-16 Alexandre Petit-Bianco - - * expr.c (expand_invoke): Layout the loaded class before - attempting to use it. - (expand_java_field_op): Allow final field assignments to take - place in $finit$. - * typeck.c (convert): Return error_mark_node if expr is null. - -1999-12-14 Alexandre Petit-Bianco - - * class.c (class_depth): Return -1 if the class doesn't load - properly. - * expr.c (can_widen_reference_to): Check for errors during depth - computation and return 0 accordingly. - * jcf-parse.c (parse_source_file): Call java_fix_constructors to - create default constructors and add an other error check. - * parse.h (java_fix_constructors): Prototyped. - * parse.y (java_pre_expand_clinit): Likewise. - (build_super_invocation): Re-prototyped to feature one argument. - (java_check_circular_reference): Directly use `current'. - (java_fix_constructors): New function. - (java_check_regular_methods): Don't create default constructors - here, but abort if none were found. - (java_complete_expand_methods): Pre-process calling - java_pre_expand_clinit. - (java_pre_expand_clinit): New function. - (fix_constructors): build_super_invocation invoked with the - current method declaration as an argument. - (build_super_invocation): Use the context of the processed method - decl argument instead of current_class. - * typeck.c (lookup_java_method): Take WFLs in method names into - account. - -1999-12-14 Per Bothner - - * class.c (make_class_data): flag_keep_inline_functions to keep - private methods in the method array. - -1999-12-15 Anthony Green - - * check-init.c (check_init): Take into account both types of - `throw's when checking for uninitialized variables. - -1999-12-10 Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): Force conversion of array - dimensions to int_type_node, that's what runtime's ABI expects. - -1999-12-10 Alexandre Petit-Bianco - - * parse.h (EXPR_WFL_QUALIFICATION): Temporary uses the third - operand of a WFL, until the Java front-end gets fixed with regard - to Mark Mitchell's gcc/tree.h patch (1999-12-04.) - -1999-12-10 Andrew Haley - - * parse.h (BUILD_THROW): Add support for sjlj-exceptions. - decl.c (init_decl_processing): Add _Jv_Sjlj_Throw. - expr.c (build_java_athrow): Add support for sjlj-exceptions. - java-tree.h: Ditto. - jcf-write.c: Ditto. - -1999-12-08 Alexandre Petit-Bianco - - * expr.c (java_lang_expand_expr): Switch to permanent obstack - before calling expand_eh_region_start and expand_start_all_catch. - * except.c (expand_start_java_handler): Switch to permanent - obstack before calling expand_eh_region_start. - (expand_end_java_handler): Switch to permanent obstack before - calling expand_start_all_catch. - -1999-12-5 Anthony Green - - * decl.c (init_decl_processing): Mark throw_node as a noreturn - function with side effects. - (init_decl_processing): Mark all memory allocating DECLs with - DECL_IS_MALLOC. - -1999-12-01 Alexandre Petit-Bianco - - * except.c (expand_end_java_handler): Call - expand_resume_after_catch and end_catch_handler. - -1999-11-30 Anthony Green - - * verify.c (verify_jvm_instructions): Create new return label - chain if non existent (don't rely on the verified state of the jsr - target.) - -1999-11-30 Alexandre Petit-Bianco - - * jcf-write.c (generate_bytecode_insns): Fixed indentation for - COMPOUND_EXPR and FIX_TRUNC_EXPR cases. - - * parse.y (patch_assignment): Removed bogus final class test on - lhs when checking on whether to emit an ArrayStoreException runtime - check. - * expr.c (expand_java_arraystore): Likewise. - -1999-11-28 Anthony Green - - * decl.c (find_local_variable): Reuse single slot decls when - appropriate. - -1999-11-24 Alexandre Petit-Bianco - - * jcf-parse.c (saw_java_source): Global variable removed. - (read_class): Don't use `saw_java_source'. Added extra braces. - (yyparse): Code setting `saw_java_source' removed. - -1999-11-24 Mark Mitchell - - * except.c (emit_handlers): Zero catch_clauses after emitting them. - -1999-11-23 Alexandre Petit-Bianco - - * verify.c (merge_type_state): Non verified subroutines being - considered more than once to trigger passive type merge. - -1999-11-23 Alexandre Petit-Bianco - - * parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE - in case of error. Error message tuned. - -1999-11-21 Anthony Green - - * constants.c (find_methodref_index): Unwrap method names before - inserting them in the constant pool. - - * jcf-parse.c (jcf_parse): Display `interface' when appropriate. - - * class.c (assume_compiled_node): New typedef. - (assume_compiled_tree): New static data. - (find_assume_compiled_node): New function. - (add_assume_compiled): New function. - (assume_compiled): New function. - * class.c (make_class_data): Use assume_compiled. - (is_compiled_class): Use assume_compiled. - - * java-tree.h (add_assume_compiled): Declare. - - * lang.c (lang_decode_option): Parse new options. - -1999-11-17 Alexandre Petit-Bianco - - * class.c (layout_class): Always convert TYPE_SIZE_UNIT to - int_type_node: that's what `_Jv_AllocObject' expects. - -1999-11-11 Alexandre Petit-Bianco - - * parse.y (lookup_method_invoke): Use lang_printable_name to - reliably build the type name during error report. Fixes PR gcj/97. - -1999-11-09 Tom Tromey - - * jcf-path.c: Include . - (jcf_path_init): Search for libjava.zip. Fixes PR gcj/84. - (DIR_UP): New macro. - -1999-11-09 Alexandre Petit-Bianco - - * parse.y (source_end_java_method): Resume permanent allocation, - reversing Apr 27 1998 patch. - (patch_string_cst): Pop obstacks after having pushed the permanent - ones. - -1999-11-05 Tom Tromey - - * class.c (finish_class): Emit inlined methods if any native - methods exist in the class. Fixes PR gcj/85. - -1999-11-04 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Handle PLUS_EXPR. - (qualify_ambiguous_name): Likewise. - -1999-11-03 Godmar Back - - * typeck.c: (lookup_java_method): search all inherited - interfaces when looking up interface method. - -1999-11-01 Alexandre Petit-Bianco - - * parse.y (method_header:): Issue error message for rule `type - error'. - (synchronized:): Error report when not using synchronized. - -1999-11-01 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Prevent `this' from - being used before the superclass constructor has been called. - (complete_function_arguments): Use CALL_EXPLICIT_CONSTRUCTOR_P - instead of `CALL_THIS_CONSTRUCTOR_P'. - -1999-10-30 Todd T. Fries - - * check-init.c: Fix typo in comment. - -1999-10-29 Alexandre Petit-Bianco - - * class.c (add_method_1): Set DECL_INLINE to 1 for private, static - and final method. - -1999-10-29 Alexandre Petit-Bianco - - * parse.y (expression_statement:): Call function to report - improper invocation of a constructor. - (parse_ctor_invocation_error): New function. - -1999-10-26 Mark Mitchell - - * decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call - remember_end_note. - -1999-10-21 Tom Tromey - - * jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set - in generated `main'. - -1999-10-21 Alexandre Petit-Bianco - - * parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR. - (qualify_ambiguous_name): Likewise. - -1999-10-20 Alexandre Petit-Bianco - - * parse.y (java_complete_tree): fold_constant_for_init to work on - permanent_obstack. - (java_complete_lhs): Likewise. - (array_constructor_check_entry): Complete an initializer element - on permanent_obstack. - -1999-10-19 Tom Tromey - - * jcf-parse.c (parse_source_file): Call jcf_dependency_add_file. - From Mike Moreton . - -1999-10-15 Greg McGary - - * java-tree.h (flag_bounds_check): Remove extern decl. - * lang.c (flag_bounds_check): Remove global variable. - (lang_f_options): Remove "bounds-check" entry. - (lang_init_options): Default flag_bounds_check to "on". - -1999-10-14 Tom Tromey - - * jvgenmain.c (usage): New function. - (main): Use it. Also, handle `-D' options. - * jvspec.c (lang_specific_driver): Recognize -D. - (jvgenmain_spec): Added `%{D*}' to jvgenmain invocation. - - * jvspec.c (jvgenmain_spec): Use `%umain', not just `%u'. - -1999-10-14 Kaveh R. Ghazi - - * jcf-dump.c (print_constant, disassemble_method): Don't call a - variadic function with a non-literal format string. - - * parse-scan.y (report_main_declaration): Likewise. - - * parse.h (ERROR_CAST_NEEDED_TO_INTEGRAL): Likewise. - - * parse.y (read_import_dir, patch_assignment, patch_binop, - patch_array_ref): Likewise. - - * typeck.c (build_java_array_type): Likewise. - - * verify.c (verify_jvm_instructions): Likewise. - -1999-10-12 Alexandre Petit-Bianco - - * jcf-write.c (RELOCATION_VALUE_1): Fixed integer value from 0 to 1. - -1999-10-07 Anthony Green - - * jcf-write.c (generate_classfile): Use UNSAFE_PUTx in cases - where CHECK_PUT may fail for valid reasons. - - * jcf-write.c (UNSAFE_PUT1, UNSAFE_PUT2, UNSAFE_PUT3, - UNSAFE_PUTN): New macros. - -1999-10-04 Tom Tromey - - * lex.h (BUILD_OPERATOR2): Return ASSIGN_ANY_TK in `lite' case as - well. Fixes Java PR gcj/59. - * parse-scan.y (yyerror): Report errors. - -1999-09-24 Glenn Chambers - - * decl.c (insert_block): Remove unconditional `abort'. - -1999-09-24 Bernd Schmidt - - * decl.c (builtin_function): No longer static. New arg CLASS. Arg - FUNCTION_CODE now of type int. All callers changed. - Set the builtin's DECL_BUILT_IN_CLASS. - -1999-09-23 Tom Tromey - - * jvspec.c (lang_specific_driver): Don't read spec file if - -fsyntax-only given. - -1999-09-22 Tom Tromey - - * lang-specs.h: Added `%(jc1)' to the jc1 spec. - - * javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally. - (WORDS_TO_LONG): Likewise. - (WORDS_TO_DOUBLE): Likewise. - -1999-09-14 Alexandre Petit-Bianco - - * jcf-write.c (RELOCATION_VALUE_0): New macro. - (RELOCATION_VALUE_1): Likewise. - (emit_iinc, emit_reloc, push_constant1, push_constant2, - push_in_const, push_long_const): Prototyped. - (push_constant1): Argument `index' is of type HOST_WIDE_INT. - (push_constant2): Likewise. - (push_int_const): Cast find_constant1's integer arguments to `jword'. - (find_constant_wide): Cast find_constant2's integer arguments to - `jword'. - (find_constant_index): Cast find_constant2's and find_constant2's - integer arguments to `jword'. - (emit_pop): Argument `value' is of type HOST_WIDE_INT. - (emit_switch_reloc): Use RELOCATION_VALUE_0. - (emit_if): Use RELOCATION_VALUE_1. - (emit_goto): Likewise. - (emit_jsr): Likewise. - (generate_bytecode_insns): Use RELOCATION_VALUE_0. Cast second - argument to push_long_const to HOST_WIDE_INT. - -1999-09-15 Andreas Schwab - - * Makefile.in (parse.o): Depend on $(JAVA_TREE_H). - -1999-09-20 Nick Clifton - - * lang.c (lang_decode_option): Extend comment. - -1999-09-16 Alexandre Petit-Bianco - - * parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK - instead of fndecl. - -1999-09-16 Kaveh R. Ghazi - - * gjavah.c (get_field_name, print_method_info, print_include, - add_namelet): Use xmalloc, not malloc. - - * jcf-depend.c (add_entry): Likewise. Use xstrdup, not strdup. - (munge): Use xrealloc, not realloc, trust xrealloc to handle a - NULL pointer. - - * jcf-io.c (open_in_zip, find_class): Use xstrdup, not strdup. - - * jcf-parse.c (jcf_out_of_synch, yyparse): Likewise. - - * jcf-path.c (add_entry): Likewise. - - * jcf.h (ALLOC, REALLOC): Use xmalloc/xrealloc, not malloc/realloc. - - * jv-scan.c (xmalloc): Remove definition. - - * jvgenmain.c (xmalloc): Likewise. - - * jvspec.c (lang_specific_driver): Use xcalloc, not xmalloc/bzero. - - * lex.c (java_store_unicode): Use xrealloc, not realloc. - - * parse-scan.y: Use concat, not of xmalloc/assign/strcpy. Use - concat, not xmalloc/sprintf. - (java_push_parser_context): Use xcalloc, not xmalloc/bzero. - (xstrdup): Remove definition. - - * parse.y (duplicate_declaration_error_p, - constructor_circularity_msg, verify_constructor_circularity, - check_abstract_method_definitions, java_check_regular_methods, - java_check_abstract_methods, patch_method_invocation, - check_for_static_method_reference, patch_assignment, patch_binop, - patch_cast, array_constructor_check_entry, patch_return, - patch_conditional_expr): Use xstrdup, not strdup. - - * zextract.c (ALLOC): Use xmalloc, not malloc. - -1999-09-12 Kaveh R. Ghazi - - * Make-lang.in (jvspec.o): Depend on system.h and gcc.h. - - * jvspec.c: Include gcc.h. Don't include gansidecl.h. - (do_spec, lang_specific_pre_link, lang_specific_driver, - input_filename, input_filename_length): Don't declare. - (main_class_name, jvgenmain_spec, lang_specific_driver): - Constify a char*. - (lang_specific_driver): All calls to the function pointer - parameter now explicitly call `fatal'. - -1999-09-11 Alexandre Petit-Bianco - - * parse.y (find_applicable_accessible_methods_list): Search - abstract classes as interfaces. - -1999-09-09 Alexandre Petit-Bianco - - * class.c (finish_class): We're now outside a valid method - declaration. Tell the rest of gcc so. - -1999-09-08 Bruce Korb autogen@linuxbox.com - - * Makefile.in: Give the gperf user a hint about why "gperf -F" fails. - -1999-09-07 Tom Tromey - - * gjavah.c (add_class_decl): Generate include for gcj/array.h, not - java-array.h. - (decode_signature_piece): Don't emit "::" in JArray<>. - (print_namelet): Only print trailing `;' when printing a class. - -1999-09-10 Bernd Schmidt - - * java-tree.h: Delete declarations for all tree nodes now moved to - global_trees. - * decl.c: Delete their definitions. - -1999-09-04 Mark Mitchell - - * Make-lang.in (jc1): Depend on ggc-callbacks.o. - * Makefile.in (OBJS): Add ggc-callbacks.o. - (OBJDEPS): Likewise. - -1999-09-03 Tom Tromey - - * parse.y (strip_out_static_field_access_decl): Return operand if - it satisfies JDECL_P. - -1999-09-02 Tom Tromey - - * gjavah.c (decode_signature_piece): Emit "::" in JArray<>. - Handle nested arrays, like `[[I'. - -1999-09-02 Kaveh R. Ghazi - - * class.c (finish_class): Remove unused parameter, all callers - changed. - - * expr.c (build_java_athrow): Change return type to void. - (java_lang_expand_expr): Make sure each case in switch returns a - value. - - * java-tree.h (finish_class): Fix prototype to take void args. - - * jcf-dump.c (usage): Mark with ATTRIBUTE_NORETURN. - (main): Issue return from main, not exit. - - * jcf-parse.c (parse_class_file): Fix call to `finish_class'. - - * jcf.h (jcf_unexpected_eof): Mark with ATTRIBUTE_NORETURN. - - * jv-scan.c (main): Issue return from main, not exit. - - * parse.y (check_abstract_method_definitions, - java_check_abstract_method_definitions): Add static prototypes. - (java_complete_expand_methods): Fix call to `finish_class'. - - * verify.c (verify_jvm_instructions): Initialize variables `oldpc' - and `prevpc'. - -1999-08-30 Kaveh R. Ghazi - - * lang.c (language_string): Constify. - -1999-08-30 Kaveh R. Ghazi - - * Makefile.in (LIBS): Fix definition so we link with $(CLIB). - Remove hacks for stuff which comes from libiberty. - - * Make-lang.in: Likewise. - -1999-08-30 Hans-Peter Nilsson - - * Makefile.in (xref.o): Depend on xref.c explicitly. - -1999-08-29 Kaveh R. Ghazi - - * java-tree.h (lang_printable_name): Constify a char*. - - * lang.c (lang_printable_name): Likewise. - -1999-08-27 Jeffrey A Law (law@cygnus.com) - - * gjavah.c, jcf-write.c, verify.c: Do not use C++ style - comments in C code. - -1999-08-26 Tom Tromey - - * gjavah.c (print_cxx_classname): Print "::" before qualified - name. - -1999-08-26 Alexandre Petit-Bianco - - * parse.y (lookup_cl): Changed leading comment. Now does its best - to set the column number. - (qualify_ambiguous_name): Take WFL wrappers into account. - -1999-08-25 Gregg Townsend - - * verify.c (verify_jvm_instructions): Don't check instruction - validity beyond end of method. - -1999-08-25 Tom Tromey - - * jvspec.c (lang_specific_driver): Correctly handle --help again. - -1999-08-25 Kaveh R. Ghazi - - * gjavah.c (print_name, print_base_classname, utf8_cmp, - cxx_keyword_subst, generate_access, name_is_method_p, - get_field_name, print_field_name, super_class_name, print_include, - decode_signature_piece, print_class_decls, usage, help, - java_no_argument, version, add_namelet, print_namelet): Add static - prototype. - (print_base_classname, utf8_cmp, cxx_keyword_subst, - name_is_method_p): Constify a char*. - (get_field_name): Likewise. Prefer xstrdup over malloc/strcpy. - Provide a final else clause in an if-else-if. - (print_field_info): Add missing final arg in function call to - `print_field_name'. - (print_method_info, decompile_method, decode_signature_piece, - print_c_decl, print_full_cxx_name, print_stub, - print_mangled_classname, super_class_name, print_include, - add_namelet, add_class_decl, print_class_decls, process_file, - help): Constify a char*. - - * jcf-write.c (jcf_handler, push_constant1, push_constant2, - push_int_const, find_constant_wide, find_constant_index, - push_long_const, field_op, maybe_wide, emit_dup, emit_pop, - emit_iinc, emit_load_or_store, emit_load, emit_store, emit_unop, - emit_binop, emit_reloc, emit_switch_reloc, emit_case_reloc, - emit_if, emit_goto, emit_jsr, call_cleanups, - make_class_file_name): Add static prototypes. - (generate_bytecode_return, generate_bytecode_insns): Pass a - NULL_PTR, not a NULL_TREE. - - * jv-scan.c: Include "jcf.h". - (main): Declare using DEFUN macro. - - * jvspec.c (find_spec_file, lang_specific_pre_link, - lang_specific_driver): Add prototypes. - (find_spec_file): Constify a char*. - - * keyword.gperf (hash, java_keyword): Add prototypes. - - * lang.c (lang_print_error): Add static prototype. - (lang_init): Prefer memcpy over bcopy to avoid casts. - - * lex.c (yylex): Add static prototype. - - * parse-scan.y: Include "lex.c" earlier. - - * parse.h: Remove redundant declaration for `yylex'. - - * parse.y (java_decl_equiv, binop_compound_p, search_loop, - labeled_block_contains_loop_p): Add static prototypes. - (not_accessible_p): Make static to match prototype. - - * verify.c (start_pc_cmp): Don't needlessly cast away const. - -1999-08-22 Alexandre Petit-Bianco - - * parse.y (check_method_redefinition): Changed leading comment. - (check_abstract_method_definitions): New function. - (java_check_abstract_method_definitions): New function. - (java_check_regular_methods): Call it. - (verify_constructor_super): Fixed indentation. - (lookup_method_invoke): Likewise. - -1999-08-19 Alexandre Petit-Bianco - - * parse.y (method_header): Return a null pointer if the current - class node is null. - (finish_method_declaration): Return if the current function decl - is null. - (source_start_java_method): Likewise. - (java_method_add_stmt): Likewise. - -1999-08-18 Alexandre Petit-Bianco - - * class.c (emit_register_class): Removed unnecessary call to - start_sequence. - * parse.y (labeled_block_contains_loop_p): Removed unused local - variable. - -1999-08-17 Alexandre Petit-Bianco - - * parse.y (java_refold): Added prototype. - -1999-08-17 Alexandre Petit-Bianco - - * parse.y (BINOP_COMPOUND_CANDIDATES): New macro. - (java_stabilize_reference): Removed unnecessary `else'. - (java_complete_lhs): Set flag to remember boolean. Call - java_refold. Added comments. - (java_decl_equiv): New function. - (binop_compound_p): Likewise. - (java_refold): Likewise. - (patch_unaryop): Striped static field access assigned to decl and - op. Changed promotion scheme for ++/-- operators. - (search_loop): New function. - (labeled_block_contains_loop_p): Likewise. - (patch_loop_statement): Call labeled_block_contains_loop_p. Added - comment. - (patch_bc_statement): Call search_loop. Fixed comment. - -1999-08-14 Anthony Green - - * expr.c (java_lang_expand_expr): Mark static array data as - referenced. - -1999-08-10 Rainer Orth - - * jvgenmain.c (main): NUL-terminate name_obstack. - -1999-08-10 Kaveh R. Ghazi - - * check-init.c (check_bool2_init, done_alternative): Add static - prototypes. - - * class.c (add_interface_do, maybe_layout_super_class): Likewise. - (add_method, build_utf8_ref, build_class_ref, - append_gpp_mangled_type, layout_class_method): Constify a char*. - - * decl.c (push_promoted_type, make_binding_level): Add static - prototypes. - (push_promoted_type, pushdecl): Constify a char*. - - * except.c (find_handler_in_range, link_handler, - check_start_handlers): Add static prototypes. - - * expr.c (process_jvm_instruction): Constify a char*. - - * gjavah.c (main): Constify a char*. - - * java-tree.h (verify_jvm_instructions, process_jvm_instruction): - Constify a char*. - - * jcf-depend.c (free_entry, add_entry, munge, print_ents): Add - static prototypes. - (add_entry, jcf_dependency_set_target, jcf_dependency_add_target, - munge, print_ents): Constify a char*. - - * jcf-dump.c (disassemble_method): Constify a char*. - (print_constant_pool, print_exception_table): Add static prototypes. - (print_constant, print_exception_table, main, disassemble_method): - Constify a char*. - - * jcf-io.c (find_classfile, find_class): Likewise. - - * jcf-parse.c (JPOOL_UTF_DATA, find_in_current_zip): Likewise. - (set_source_filename, predefined_filename_p): Add static prototypes. - (set_source_filename, get_constant, get_class_constant, - find_in_current_zip): Constify a char*. - - * jcf-path.c (free_entry, append_entry, add_entry, add_path): Add - static prototypes. - (add_entry, add_path, jcf_path_classpath_arg, - jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. - - * jcf-reader.c (get_attribute, jcf_parse_preamble, - jcf_parse_constant_pool, jcf_parse_class, jcf_parse_fields, - jcf_parse_one_method, jcf_parse_methods, - jcf_parse_final_attributes): Add static prototypes. - (get_attribute): Constify a char*. - - * jcf.h (find_class, find_classfile, jcf_dependency_set_target, - jcf_dependency_add_target, jcf_path_classpath_arg, - jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. - - * jv-scan.c (main): Constify a char*. - (gcc_obstack_init): Add prototype arguments. - - * jvgenmain.c (gcc_obstack_init): Likewise. - (main): Constify a char*. - - * lang.c (put_decl_string, put_decl_node, java_dummy_print): Add - static prototypes. - (put_decl_string, lang_print_error): Constify a char*. - (lang_init): Remove redundant extern prototype. - - * mangle.c (emit_unicode_mangled_name): Constify a char*. - - * typeck.c (convert_ieee_real_to_integer, parse_signature_type): - Add static prototypes. - (get_type_from_signature): Constify a char*. - - * verify.c (check_pending_block, type_stack_dup, start_pc_cmp ): - Add static prototypes. - (start_pc_cmp): Prefer PTR over GENERIC_PTR. - (verify_jvm_instructions): Constify a char*. - - * xref.c (xref_flag_value): Likewise. - - * xref.h (xref_flag_value): Likewise. - - * zextract.c (makeword, makelong): Add static prototypes. - (makeword, makelong): Constify a uch*. - -1999-08-09 Kaveh R. Ghazi - - * lang.c (java_dummy_print): Constify a char*. - (lang_print_error): Likewise. - (lang_init): Remove redundant prototype for `print_error_function'. - (lang_init_source): Likewise. - (lang_identify): Constify a char*. - -1999-08-09 Tom Tromey - - * javaop.h (WORD_TO_FLOAT): only inline if building with gcc. - (WORDS_TO_LONG): Likewise. - (WORDS_TO_DOUBLE): Likewise. - -1999-08-04 Kaveh R. Ghazi - - * Makefile.in (lang.o): Depend on $(RTL_H) $(EXPR_H). - - * expr.c (java_stack_pop, java_array_data_offset, - build_java_throw_out_of_bounds_exception, case_identity, - build_java_check_indexed_type): Add static prototypes. - (linenumber_table, expand_invoke, expand_java_field_op, - build_primtype_type_ref, expand_byte_code): Constify a char*. - - * java-tree.h (build_primtype_type_ref, linenumber_table): - Constify a char*. - (java_lang_expand_expr): Add prototype. - - * lang.c: Include rtl.h and expr.h. Remove extern prototype for - `java_lang_expand_expr'. - - * lex.c (java_lex_error): Constify a char*. - (java_get_unicode, java_read_char, java_allocate_new_line, - java_unget_unicode, java_sneak_unicode): Prototype. - - * parse-scan.y (current_class, package_name, method_declarator, - report_class_declaration, yyerror): Constify a char*. - - * parse.h (java_report_errors): Prototype. - (yyerror): Constify a char*. - - * parse.y (classitf_redefinition_error, check_modifiers, - parse_jdk1_1_error, lookup_package_type, - lookup_package_type_and_set_next, get_printable_method_name, - purify_type_name): Constify a char*. - (build_super_invocation, maybe_generate_finit, - verify_constructor_super, parser_add_interface, - add_superinterfaces, jdep_resolve_class, note_possible_classname, - java_complete_expand_methods, java_expand_finals, - cut_identifier_in_qualified, java_stabilize_reference, - do_unary_numeric_promotion, operator_string, do_merge_string_cste, - merge_string_cste): Prototype. - (single_type_import_declaration, yyerror, - variable_redefinition_error, build_array_from_name, - build_unresolved_array_type, check_class_interface_creation, - resolve_class, complete_class_report_errors, - note_possible_classname, read_import_dir, - find_in_imports_on_demand, resolve_package, fix_constructors, - check_deprecation, lookup_method_invoke, - maybe_build_primttype_type_ref, array_constructor_check_entry): - Constify a char*. - (java_complete_expand_methods, java_expand_finals): Make static. - (convert_narrow): Remove static prototype. - -1999-08-03 J"orn Rennecke - - * Makefile.in (decl.o): Depends on $(srcdir)/../defaults.h. - -1999-08-02 Richard Henderson - - * decl.c: Include defaults.h instead of expr.h. - * parse.y: Likewise. - -1999-08-02 Jakub Jelinek - - * java/decl.c (start_java_method): Change all uses of - PROMOTE_PROTOTYPES, so that it tests it as a C expression. - Ensure expr.h is included. - * java/expr.c (pop_arguments): Ditto. - * java/parse.y (expand_start_java_method): Ditto. - -1999-08-01 Kaveh R. Ghazi - - * Makefile.in (ALL_CFLAGS): Add '-W -Wall'. - -1999-07-31 Bernd Schmidt - - * decl.c: Include "function.h". - * except.c: Likewise. - * parse.y: Likewise. - * Makefile.in: Update dependencies. - -1999-07-30 Kaveh R. Ghazi - - * expr.c (build_java_soft_divmod): Provide a default case in switch. - (java_lang_expand_expr): Mark parameters `target', `tmode' and - `modifier' with ATTRIBUTE_UNUSED. - - * gjavah.c (process_file): Add braces around ambiguous `else'. - - * jcf-dump.c (print_access_flags, localvar_free): Change return - type to void. - - * parse.y (java_complete_expand_method): Initialize variable - `exception_copy'. - (resolve_qualified_expression_name): Likewise for `field_decl'. - (patch_method_invocation): Likewise for `class_to_search'. - (qualify_ambiguous_name): Likewise for `name' and `ptr_type'. - (patch_assignment): Likewise for `lhs_type'. - - * verify.c (verify_jvm_instructions): Remove unused variable - `caller'. - -1999-07-25 Richard Henderson - - * decl.c (va_list_type_node): New. - -1999-07-25 Anthony Green - - * gjavah.c (print_stub): New function. - (METHOD_IS_NATIVE): New macro. - (print_mangled_classname): Make static. - (HANDLE_END_FIELD): Don't emit fields during stub generation. - (process_file): Perform stub generation. - (HANDLE_METHOD): Don't emit class decls during stub - generation. - (HANDLE_END_METHOD): Take into account stub generation. - (print_method_info): Handle stub generation. - (print_stub): New function. - (print_cxx_classname): Make signature consistant with others. - (help): Describe -stubs option. - (main): Create stub file. - (version): Use version.c. - (print_full_cxx_name): New function. - (print_c_decl): Use print_full_cxx_name. - -1999-07-22 Alexandre Petit-Bianco - - * check-init.c (check_init): Handle MAX_EXPR. - -1999-07-15 Andrew Haley - - * lang.c (flag_use_divide_subroutine): New variable. - * typeck.c: (convert_ieee_real_to_integer): Bounds check - fp-to-integer conversion. - (convert): Call convert_ieee_real_to_integer when flag_fast_math - is not set. - - * expr.c (build_java_soft_divmod): New function. - (build_java_binop): Call build_java_soft_divmod if - flag_use_divide_subroutine is set. - * decl.c: soft_idiv_node, soft_irem_node, soft_ldiv_node, tree - soft_lrem_node: new builtin functions. - (init_decl_processing) Initialize the new builtins. - * java-tree.h soft_idiv_node, soft_irem_node, soft_ldiv_node, tree - soft_lrem_node: new builtin functions. - (build_java_soft_divmod): New function. - * parse.y: Call build_java_soft_divmod if - flag_use_divide_subroutine is set. - * parse.c: Rebuilt. - - * jvspec.c (lang_specific_driver): Always allow an extra arg (for - a --specs= arg) even if not linking. - * lang-options.h (DEFINE_LANG_NAME ("Java")): Add - -fuse-divide-subroutine - -1999-07-20 Alexandre Petit-Bianco - - * parse.y (resolve_and_layout): Check methods only once. - (resolve_qualified_expression_name): Verify thrown exceptions - compatibility. - (check_thrown_exceptions): Reject exceptions thrown in - initializer. Error message tuned. - -1999-07-14 Andrew Haley - - * expr.c (expand_expr): Do not return the last statement in a - block as the block's value. - -1999-07-03 Alexandre Petit-Bianco - - * expr.c (force_evaluation_order): Save the COMPOUND_EXPR'ed - CALL_EXPR, to avoid order of evaluation changes. - -1999-07-02 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Do not use - IDENTIFIER_LOCAL_VALUE when name is a STRING_CST. - -1999-07-01 Alexandre Petit-Bianco - - * check-init.c (check_init): Handle MAX_EXPR. - * expr.c (force_evaluation_order): Force method call arguments to - be evaluated in left-to-right order. - * parse.y (qualify_ambiguous_name): Loop again to qualify - NEW_ARRAY_EXPR properly. - -1999-06-30 Alexandre Petit-Bianco - - * parse.y (patch_invoke): Resolve unresolved invoked method - returned type. - (qualify_ambiguous_name): STRING_CST to qualify expression for - type name resolution. - -1999-06-24 Andrew Haley - - * class.c (finish_class): Whenever a deferred method is - output, rescan the list of methods to see if a new candidate for - output can be found. - -1999-06-28 Tom Tromey - - * jvspec.c (lang_specific_driver): Recognize --help. - -1999-06-25 Alexandre Petit-Bianco - - * parse.y (resolve_package): Fixed bogus return statement. - (patch_method_invocation): Resolve method invocation beginning with - a package name qualifier. - -1999-06-25 Kaveh R. Ghazi - - * Make-lang.in (java.stage1): Depend on stage1-start. - (java.stage2): Likewise for stage2-start. - (java.stage3): Likewise for stage3-start. - (java.stage4): Likewise for stage4-start. - -1999-06-24 Alexandre Petit-Bianco - - * parse.y (java_complete_lhs): When doing cross referencing, don't - try to keep file location on a WFL expanded as a CALL_EXPR. - -1999-06-23 Alexandre Petit-Bianco - - * parse.y (finish_method_declaration): Insert a RETURN_EXPR when - compiling to class file a void method with an empty method body. - As a side effect, the bytecode backend will generate the - appropriate `return' instruction. - -1999-06-22 Alexandre Petit-Bianco - - * parse.y (lookup_package_type_and_set_next): New function prototype. - (resolve_package): Search current and imported packages. - (lookup_package_type_and_set_next): New function. - -1999-06-22 Andrew Haley - - * verify.c (verify_jvm_instructions): Check for pending blocks - before invalid PC test and opcode switch, not after. - -1999-06-21 Andrew Haley - - * except.c (find_handler_in_range): The upper limit for exception - ranges is exclusive, not inclusive: (start <= pc < end). - (link_handler): find child pointer which points to outer by - searching sibling list: previous code incorrectly assumed that - outer->outer->first_child must point to outer. - * verify.c (verify_jvm_instructions): FIXME added to code for - `athrow'. - (verify_jvm_instructions): Do not assume that the last block - processed in a subroutine is a block which ends with a `ret' - instruction. With some control flows it is possible that the last - block ends with an `athrow'. - -1999-06-14 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Reorganized the post - evaluation of non WFL leading expression nodes. - -1999-06-11 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Handle ARRAY_REF after - CONVERT_EXPR. - -1999-06-10 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Handle qualified expression - beginning with a STRING_CST. - -1999-06-10 Alexandre Petit-Bianco - - * parse.y (register_fields): Set DECL_INITIAL on both - pre-initialized static and public fields. - (resolve_field_access): Static field access expressions to always - use pointer types. - (qualify_ambiguous_name): Work out buried CALL_EXPR for proper - qualification. CONVERT_EXPR to be resolved as an expression name. - (java_complete_lhs): Identify and access qualified final - initialized field in switch statement case expression. - (fold_constant_for_init): Pre-initialized field decl constant to - be folded. - -1999-06-07 Alexandre Petit-Bianco - - * parse.y (note_possible_classname): Mark returned node with - QUALIFIED_P only if the original class name contained a '/'. - -1999-06-05 Anthony Green - - * Make-lang.in (gcjh): More parallel build fixes. - -1999-06-03 Mike Stump - - * Make-lang.in (JCF_DUMP_SOURCES, jvgenmain): Fix parallel builds. - -1999-06-02 Anthony Green - - * except.c (link_handler): Chain exception handlers in order. - -1999-06-02 Anthony Green - - * expr.c (expand_byte_code): Fill unreachable bytecode regions - with nops and process as usual in order to always set correct EH - ranges. Emit detailed warnings about unreachable bytecodes. - -1999-06-02 Anthony Green - - * class.c (build_utf8_ref): Mark cinit and utf8 tree nodes as - constant. - -1999-05-28 Alexandre Petit-Bianco - - * parse.y (lookup_field_wrapper): Unified returned value to NULL - or the searched field decl. - -1999-05-28 Alexandre Petit-Bianco - - * parse.y (fold_constant_for_init): Convert numerical constant - values to the type of the assigned field. - -1999-05-27 Alexandre Petit-Bianco - - * expr.c (lookup_field): Relaxed the test on class loading error - detection. - * parse.y (fold_constant_for_init): Enabeled old code. - -1999-05-26 Alexandre Petit-Bianco - - * parse.y (valid_ref_assignconv_cast_p): Let `_Jv_CheckCast' - decide the validity of the cast of a java.lang.Cloneable reference - to an array. - (patch_conditional_expr): Fixed first argument passed to - binary_numeric_promotion. - -1999-05-26 Alexandre Petit-Bianco - - * parse.y (qualify_ambiguous_name): Take into account that a - CONVERT_EXPR might specify a type as a WFL. - -1999-05-25 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Save the rhs before using it as an - argument to _Jv_CheckArrayStore. - -1999-05-25 Alexandre Petit-Bianco - - * lex.c (java_parse_doc_section): Fixed `tag' buffer size. - -1999-05-24 Alexandre Petit-Bianco - - * lex.c (java_lex): Accepts `+' or `-' after the beginning of a - floating point literal only when the exponent indicator has been - parsed. - -1999-05-22 Alexandre Petit-Bianco - - * parse.y (formal_parameter:): Construct argument tree list - element even if a yet unsupported final parameter was encountered. - -1999-05-18 Alexandre Petit-Bianco - - * parse.y (finish_method_declaration): Issue errors for native or - abstract methods declared with a method body, as well as for non - native or non abstract methods with no method body. - -1999-05-19 Kaveh R. Ghazi - - * class.c (build_utf8_ref): Initialize variable `field'. - - * decl.c (init_decl_processing): Initialize variable `field'. - - * expr.c (build_known_method_ref): Mark parameters `method_type', - `method_signature' and `arg_list' with ATTRIBUTE_UNUSED. - (process_jvm_instruction): Likewise for parameter `length'. - - * jvspec.c (lang_specific_driver): Mark variables `saw_math', - `saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with - ATTRIBUTE_UNUSED. - - * parse.y (maybe_generate_clinit): Remove unused variable - `has_non_primitive_fields'. - (find_in_imports_on_demand): Initialize variables `node_to_use' - and `cl'. - (patch_binop): Likewise for variable `prom_type'. - (patch_unaryop): Likewise for variable `prom_type'. - - * verify.c (verify_jvm_instructions): Likewise for variable `last'. - - * xref.c (xref_table): Add missing initializer. - -1999-05-14 Tom Tromey - - * java-except.h (struct eh_range): Removed unused `next' member. - * verify.c (verify_jvm_instructions): Call check_nested_ranges - after adding all exception handlers. Sort exception ranges in - order of start PC. - (struct pc_index): New structure. - (start_pc_cmp): New function. - * except.c (add_handler): Return `void'. Don't call link_handler; - instead construct an ordinary linked list and do range - coalescing. - (check_nested_ranges): New function. - (link_handler): Changed interface to allow merging of eh_ranges. - Split overlapping ranges. Return `void'. - -1999-05-17 Alexandre Petit-Bianco - - * parse.y (constructor_block_end:): New rule, tagged . - (constructor_body:): Use `constructor_block_end' instead of - `block_end'. - -1999-05-17 Alexandre Petit-Bianco - - * parse.y (statement_nsi:): Pop `for' statement block. - (java_complete_lhs): Labeled blocks containing no statement are - marked as completing normally. - -1999-05-14 Alexandre Petit-Bianco - - * xref.c (xref_set_current_fp): New function, defined. - * xref.h (xref_set_current_fp): New function, prototyped. - -1999-05-14 Alexandre Petit-Bianco - - * check-init.c (check_init): Take into account that - LABELED_BLOCK_STMT can be empty. - -1999-05-13 Alexandre Petit-Bianco - - * parse.y (java_check_regular_methods): Warning check on not - overriding methods with default access in other packages does not - apply to `'. - (java_complete_lhs): If block body is an empty_stmt_node, replace - it by NULL_TREE. This prevents gcc from generating an irrelevant - warning. - -1999-05-13 Alexandre Petit-Bianco - - * check-init.c (check_init): Removed code accepting to see things - falling through default:, when doing xrefs. - * java-tree.h (do_not_fold): New global variable, declared. - * parse.y (do_not_fold): New global variable, defined. - (java_complete_expand_method): Set `do_not_fold' to the value of - `flag_emit_xref'. When doing xrefs: copy the thrown exceptions, - and reinstall them after them have been purged; do not check for - initializations; do not issue missing return errors. - (java_complete_lhs): Do not attempt to patch INSTANCEOF_EXPR nodes - when doing xrefs. - (patch_binop): Skip the fold part when doing xrefs. - (build_string_concatenation): Skip the concatenation part when - doing xrefs. - (patch_synchronized_statement): Do not generate a try-finally when - doing xrefs. - (patch_throw_statement): When doing xrefs, do not call BUILD_THROW - and keep the location where the throw was seen. - * typeck.c (convert): When `do_not_fold' is set, do not attempt - any treatment on the converted node an simply return a NOP_EXPR of - the targeted type. - * xref.c (xref_get_data): New function, defined. - * xref.h (xref_get_data): New function, declared. - (XREF_GET_DATA): Use xref_get_data. - -1999-05-13 Kaveh R. Ghazi - - * gjavah.c (print_include): Cast the result of `strlen' to int - when comparing against a signed value. - (add_namelet): Likewise. - -1999-05-12 Kaveh R. Ghazi - - * expr.c (expand_invoke): Mark parameter `nargs' with - ATTRIBUTE_UNUSED. - (PRE_LOOKUP_SWITCH): Likewise for variable `match'. - - * jcf-io.c (jcf_unexpected_eof): Mark parameter `count' with - ATTRIBUTE_UNUSED. - - * jcf-reader.c (get_attribute): Cast a value to long - when comparing against a signed expression. Likewise. - - * lex.h: Never define HOST_WIDE_INT, HOST_BITS_PER_WIDE_INT or - HOST_BITS_PER_CHAR. - -1999-05-11 Andrew Haley - - * parse.y (source_end_java_method): If the current method contains - any exception handlers, force asynchronous_exceptions: this is - necessary because signal handlers in libjava may throw exceptions. - * decl.c (end_java_method): Ditto. - -1999-05-11 Tom Tromey - - * Make-lang.in (jvspec.o): Don't define WITH_THREAD_x or WITH_GC_x - flags. - * jvspec.c (THREAD_NAME): Removed. - (GC_NAME): Likewise. - (MATHLIB): Likewise. - (WITHLIBC): Likewise. - (GCLIB): Likewise. - (THREADLIB): Likewise. - (MATH_LIBRARY): Likewise. - (lang_specific_driver): Don't add `-l' options to command line. - Instead, add a single --specs option. Recognize `-L' options and - use them to search for spec file. - (find_spec_file): New function. - (SPEC_FILE): New define. - -1999-05-11 Dave Brolley - - * lang-options.h: -MD, -MMD, -M and -MM not needed here for - cpplib-enabled build. - -1999-05-05 Per Bothner - - * class.c (make_field_value): DECL_INITIAL may be a string literal; - temporarily zero it while calling rest_of_decl_compilation. - - * java-tree.h (string_ptr_type_node): Add declaration. - * decl.c: Define and initialize string_ptr_type_node. - * parse.y (patch_string_cst): Use string_ptr_type_node. - - * parse.h (LOOP_HAS_LABEL_P, LOOP_HAS_LABEL_SKIP_P): Removed. - * parse.y (for_statement): Now unconditionally exit_block. - (finish_labeled_statement): No longer exit_block if for-loop. - (patch_loop_statement): Check harder if the loop is already labeled. - - * parse.y (patch_initialized_static_field): Removed function. - (maybe_generate_clinit): Removed special handling for interfaces. - (java_complete_expand_methods): Do a preliminary java_complete_tree - on to determine if it can be removed. - (java_complete_expand_method): Remove special handling for . - (java_complete_lhs): For BLOCK and EXPR_WITH_FILE_LOCATION - optimize if we get back empty_stmt_node. - For MODIFY_EXPR, re-do checking of static initializers. - (fold_constant_for_init): Don't return immediate if VAR_DECL. - For VAR_DECL, pass correct context. - - * verify.c (verify_jvm_instructions): Better error messages. - -1999-05-03 Tom Tromey - - * parse-scan.y (interface_declaration): Call - report_class_declaration for interfaces. - -1999-04-30 20:54 -0400 Zack Weinberg - - * Makefile.in: Remove -v from bison command lines. - -1999-04-30 Alexandre Petit-Bianco - - * check-init.c (check_init): Exclude a case of error when doing - xrefs. - * class.c (layout_class_method): Don't generate the error message - twice when compiling from source. - * lang-options.h: Added `-Wredundant-modifers' and - `-Wunusupported-jdk11' flags and help text. - * lang.c (lang_decode_option): Added support for - `-Wunsupported-jdk11' and `-Wredundant-modifiers'. - flag_static_local_jdk11 and flag_redundant set accordingly. - * lex.c (java_lex): Call BUILD_OPERATOR on CCB_TK. - * parse.h (EXPR_WFL_ADD_COL): New macro. - (DECL_END_SOURCE_LINE): Likewise. - (DECL_INHERITED_SOURCE_LINE): Likewise. - * parse.y (static_ref_err): New function, prototyped. - (CCB_TK): Now tagged . - (class_body:): Remember the location of the closing '}' of a class - definition when doing xrefs. - (block:): Likewise. - (block_end:): Likewise. - (create_class): Remember the location of the inherited class - identifier when doing xrefs. - (register_fields): Added test on first operand of `init' before - testing it TREE_CODE. - (method_header): Store the location of the class identifier in the - class decl when doing xrefs. - (finish_method_declaration): Don't combine first/last method line - when doing xref. - (java_check_regular_methods): Warning check on not overriding - methods with default access on other packages move before check on - static methods. Initialization of `aflags' also moved up. - (resolve_expression_name): Call static_ref_err to report the error. - (static_ref_err): New function, implemented. - (resolve_field_access): Returned simplified static field access - when doing xrefs. - (resolve_qualified_expression_name): Check for illegal use of - static fields in a non static context. Call static_ref_err to - report error in various places. - (java_complete_tree): Do not fold initialized static fields when - doing xrefs. - (java_complete_lhs): Likewise. - -1999-04-29 Anthony Green - - * expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to - create internal labels. - (lookup_label): Ditto. - -1999-04-24 Alexandre Petit-Bianco - - * class.c (layout_class_method): Generate 's rtl for - interfaces. - * decl.c (complete_start_java_method): Don't call _Jv_InitClass - for interfaces' . - * expr.c (lookup_field): Search for fields in interfaces. - (expand_invoke): Fixed indentation. - (expand_java_field_op): Likewise. Use IS_CLINIT. - * parse.h (JPRIMITIVE_TYPE_OR_VOID_P): Macro removed. - (IS_CLINIT): New macro. - * parse.y (type_declaration:): Call maybe_generate_clinit after an - interface was parsed. - (maybe_generate_clinit): Don't generate if the current class is an - interface with only fields of primitive types. - (reset_method_name): Use IS_CLINIT. - (java_complete_expand_method): Expand when it exists for - interfaces. Use IS_CLINIT. - (resolve_expression_name): Use DECL_CONTEXT instead of - current_class to build static field references. - (java_complete_lhs): Use IS__CLINIT. Don't use SAVE_EXPR on - ARRAY_REF when doing xreferencing. - (check_final_assignment): Fixed typo in leading comment. Use - IS_CLINIT. - (patch_array_ref): Don't fully expand array references when - xreferencing. - (patch_return): Use IS_CLINIT. - (patch_throw_statement): Likewise. - -1999-04-22 Tom Tromey - - * Make-lang.in (JAVA_SRCS): Added check-init.c. - -1999-04-21 Alexandre Petit-Bianco - - * decl.c (predef_filenames, predef_filenames_size): New globals - (init_decl_processing): predef_filenames and predef_filenames_size - initialized. - * java-tree.h (predef_filenames, predef_filenames_size): Declared - extern. - * jcf-parse.c (predefined_filename_p): New function. - (yyparse): Check that files on the command line are specified only - once and issue a warning otherwise. - * parse.h (JPRIMITIVE_TYPE_OR_VOID_P): New macro. - * parse.y (source_end_java_method): Nullify NOP method bodies, to - avoid a gcc warning with -W -Wall turned on. - (java_expand_classes): Abort if errors were encountered. - (java_complete_lhs): If the cross reference flag is set, wrap - field DECL node around a WFL when resolving expression name. - -1999-04-19 Alexandre Petit-Bianco - - * lang.c (lang_decode_option): Fixed returned value when parsing - `-fxref=...' and `-Wall'. - * parse.y (source_end_java_method): Do not generate code when - flag_emit_xref is set. - (resolve_expression_name): Do not build static field access when - flag_emit_xref is set. - (resolve_field_access): No special treatment on `length' when - flag_emit_xref is set. Do not build qualified static field access - when flag_emit_xref is set. - (patch_invoke): Keep the method DECL as operand 0 of the CALL_EXPR - when flag_emit_xref is set. - (patch_assignment): Do not generate array store runtime check when - flag_emit_xref is set. - * xref.c (xref_flag_value): Fixed function declaration - indentation. - (xset_set_data): New function. - * xref.h (xref_set_data): Added prototype for new function. - (typedef struct xref_flag_table): New field data. - (XREF_GET_DATA): New macro. - -1999-04-19 Tom Tromey - - * xref.h (enum): Removed trailing comma. - - * parse.y (resolve_qualified_expression_name): Added missing - `break'. - -1999-04-15 Anthony Green - - * gjavah.c: New prototypes for java_float_finite and - java_double_finite. - -1999-04-12 Alexandre Petit-Bianco - - * parse.y (patch_unaryop): Fixed ++/-- operator check on array - references. - -1999-04-06 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (TREE_H): Add tree-check.h. - (RTL_H): Add genrtl.h. - -1999-04-06 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Added ArrayStoreException runtime - check. - -1999-04-06 Per Bothner - - * expr.c (pop_type_0): New function. - (pop_type): Use pop_type_0. - * java-tree.h (pop_type_0): New declaration. - * verify.c (verify_jvm_instructions): Check return instructions. - - * parse.y (patch_binop): Don't fold if non-constant and emiting - class files. - -1999-04-05 Kaveh R. Ghazi - - * Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H). - - * gjavah.c: Include math.h earlier. Include tree.h/java-tree.h. - (main_jcf): Don't define. - (process_file): Don't set `main_jcf'. - - * java-tree.h (main_jcf): Don't declare. - - * jcf-parse.c (main_jcf): Add static definition. - - * lang.c (main_jcf): Don't define. - -1999-04-05 Kaveh R. Ghazi - - * class.c (add_method_1): Cast the argument of `bzero' to PTR. - - * decl.c (copy_lang_decl): Likewise for `bcopy'. - - * jcf-depend.c: Include "config.h", not . - - * jcf-parse.c (jcf_figure_file_type): Cast the arguments of - `bcopy' to PTR. - - * jcf-path.c: Include "config.h", not . - - * lex.c: Don't include various system header files. - (java_init_lex): Cast the argument of `bzero' to PTR - - * parse-scan.y (java_push_parser_context): Likewise. - - * parse.y (java_push_parser_context): Likewise. - (patch_bc_statement): Match format specifier to variable argument. - - * xref.c: Don't include . - -1999-04-05 Alexandre Petit-Bianco - - * parse.y (struct parser_ctxt *ctxp): Now global. - (declare_local_variables): Use WFL compound value for the - declaration source line value, when doing cross-referencing. - -1999-03-31 Tom Tromey - - * gjavah.c (print_field_info): Allow constants of other types. - (print_include): Generate include when new name is proper prefix - of already printed name. - (add_namelet): Likewise. - (cxx_keyword_subst): New function. - (print_method_info): Use it. - (print_field_name): New function. - (get_field_name): New function. - (print_field_info): Use get_field_name and print_field_name. - -1999-03-31 Kaveh R. Ghazi - - * Makefile.in (keyword.h): Generate using gperf language 'C', not - 'KR-C', so gperf uses the `const' keyword on strings. - - * keyword.gperf (java_keyword): Const-ify a char*. - -1999-03-30 Alexandre Petit-Bianco - - * parse.y (patch_bc_statement): Fixed identation and a bogus - `printf' format. - -1999-03-30 Alexandre Petit-Bianco - - * parse.y (patch_assignment): Allow static variables in other - classes to be assigned. - -1999-03-28 Kaveh R. Ghazi - - * class.c (maybe_add_interface): Remove unused variable - `interface_binfo'. - (make_class_data): Use = for assignment, not ==. Likewise. - (emit_register_classes): Remove unused variable `decl'. - - * lex.c: Fix comment so as not to contain an embedded `/*'. - - * verify.c (verify_jvm_instructions): Remove unused variable - `self_type'. - -1999-03-27 Per Bothner - - * parse.y (complete_loop_body): Rename to finish_loop_body. - (complete_labeled_statement): Rename to finish_labeled_statement. - (complete_for_loop): Rename to finish_for_loop. - (complete_method_declaration): Rename to finish_method_declaration. - - * java-tree.h (continue_identifier_node): New global node. - * decl.c: Define and initialize continue_identifier_node. - * parse.y (generate_labeled_block): Remove - no longer needed. - (build_loop_body): Use continue_identifier_node for continue block. - (finish_labeled_statement): Also do pop_labeled_block actions. - (java_complete_lhs): POP_LOOP even if error. - (build_labeled_block): Special handling for continue_identifier_node. - (patch_loop_statement): Re-organize. - (patch_bc_statement): Re-write. - -1999-03-27 Alexandre Petit-Bianco - - * parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count - using a WFL compound value. - * parse.y (xref.h): Include. - (maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the - WFL compound value. - (register_fields): Set WFL compound value to lineno if doing - xrefs. - (java_complete_expand_method): Call expand_xref if flag_emit_xref - is set. - * xref.c (system.h, jcf.h, parse.h, obstack.h): Include. - * xref.h (expand_xref): Prototype renamed from xref_generate. - -1999-03-27 Alexandre Petit-Bianco - - * parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK. - (GET_CURRENT_BLOCK): New macro. - * parse.y (current_static_block): New global variable. - (method_body:): Define action. - (complete_method_declaration): Set current_function_decl to NULL - when work on the current method is done. - (declare_local_variables): Use GET_CURRENT_BLOCK. - (java_method_add_stmt): Likewise. - (java_complete_expand_method): Disable the use of `this' when - expanding . - (enter_a_block): If no current method exist, use - current_static_block to link static initializer blocks. - (exit_block): Rewritten to use current_static_block when no current - method decl exists. - (lookup_name_in_blocks): Use GET_CURRENT_BLOCK. - (patch_return): Forbid the use of `return' in static initializers. - (patch_throw_statement): Fixed indentation. Issue specific error - for uncaught thrown checked exception in static initializer - blocks. Removed FIXME. - -1999-03-25 Zack Weinberg - - * java/Make-lang.in: Remove all references to gcj.o/gcj.c. - Link gcj from gcc.o. - -1999-03-23 Alexandre Petit-Bianco - - * parse.y (find_applicable_accessible_methods_list): When dealing - with interface: ensure that a given interface or java.lang.Object - are searched only once. - -1999-03-23 Kaveh R. Ghazi - - * gjavah.c (print_c_decl): Remove unused argument `flags'. - - * jcf-dump.c (print_access_flags): Add braces around if-else. - - * jvspec.c (lang_specific_driver): Wrap variable `len' in macro - COMBINE_INPUTS. - - * lex.c (build_wfl_node): Add static prototype. - - * lex.h (build_wfl_node): Remove static prototype. - - * parse.y: Include lex.c early enough to declare everything needed. - Ensure calls to `build_wfl_node' pass the proper arguments. - (create_class): Remove unused variable `super_decl'. - (get_printable_method_name): Initialize variable `name'. - -1999-03-22 Alexandre Petit-Bianco - - * Changelog: Fixed 1999-03-22 typos. - * lang.c (lang_decode_option): Fixed typo in error string in the - XARG section. - -1999-03-22 Alexandre Petit-Bianco - - * Makefile.in (JAVA_OBJS): Added entry xref.o. - (xref.o): New rule. - * java-tree.h (flag_emit_xref): Declared extern. - * lang.c (xref.h): Included. - (flag_emit_xref): New global variable. - (lang_decode_option): Added support for -fxref. - * xref.c: Created. - * xref.h: Likewise. - -1999-03-21 Manfred Hollstein - - * Make-lang.in ($(GCJ)$(exeext)): Add intl.o to list of files to be - linked with. - -1999-03-21 Kaveh R. Ghazi - - * Makefile.in (jcf-dump.o): Depend on $(CONFIG_H) - $(srcdir)/../system.h and $(JAVA_TREE_H). - (jcf-io.o): Depend on $(JAVA_TREE_H). - (mangle.o): Likewise. - - * check-init.c (check_cond_init): Add static prototype. - - * class.c (build_java_method_type, hashUtf8String, - make_field_value, get_dispatch_vector, get_dispatch_table, - append_gpp_mangled_type, mangle_static_field): Likewise. - (strLengthUtf8): Hide unused definition. - (hashUtf8String): Const-ify. - (make_field_value): Un-ANSI-fy. - - * constants.c: Move inclusion of jcf.h above java-tree.h. - (set_constant_entry, find_class_or_string_constant, - find_name_and_type_constant, get_tag_node, - build_constant_data_ref): Add static prototype. - - * decl.c (push_jvm_slot, builtin_function, - lookup_name_current_level): Likewise. - (builtin_function): Const-ify. - - * except.c (expand_start_java_handler, expand_end_java_handler): - Add static prototype. - - * expr.c (flush_quick_stack, push_value, pop_value, - java_stack_swap, java_stack_dup, build_java_athrow, - build_java_jsr, build_java_ret, expand_java_multianewarray, - expand_java_arraystore, expand_java_arrayload, - expand_java_array_length, build_java_monitor, expand_java_pushc, - expand_java_return, expand_java_NEW, expand_java_INSTANCEOF, - expand_java_CHECKCAST, expand_iinc, expand_java_binop, note_label, - expand_compare, expand_test, expand_cond, expand_java_goto, - expand_java_call, expand_java_ret, pop_arguments, expand_invoke, - expand_java_field_op, java_push_constant_from_pool): Likewise. - - (decode_newarray_type, expand_iinc): Un-ANSI-fy. - (build_java_arraynull_check): Mark parameters `node' and `type' - with ATTRIBUTE_UNUSED. - (note_label): Likewise for parameter `current_pc'. - (expand_java_call, expand_java_ret): Hide unused definition. - - * java-tree.h (make_class, build_constants_constructor, - java_set_exception_lang_code, pop_labeled_block, emit_handlers, - init_outgoing_cpool, register_class, emit_register_classes, - java_layout_seen_class_methods): Prototype. - (unicode_mangling_length): Const-ify. - (append_gpp_mangled_name, append_gpp_mangled_classtype, - emit_unicode_mangled_name, format_int, format_uint, - jcf_trim_old_input, jcf_print_utf8, jcf_print_char, - jcf_print_utf8_replace, open_class): Prototype. - - * jcf-dump.c: Include "config.h", not . Don't include - . Include tree.h/java-tree.h. - (utf8_equal_string usage, process_class): Add static prototype. - (open_class): Don't prototype this here. - (utf8_equal_string): Match arguments to format specifiers. - (HANDLE_CODE_ATTRIBUTE, BRANCH, JSR, RET, LOOKUP_SWITCH, - TABLE_SWITCH, disassemble_method): Likewise. - - * jcf-io.c: Include tree.h/java-tree.h. - (open_class, find_classfile, jcf_print_utf8, - jcf_print_utf8_replace): Const-ify. - - * jcf-parse.c (parse_zip_file_entries, process_zip_dir, - parse_class_file): Add static prototype. - (find_in_current_zip): Match definition to existing static - prototype. - - * jcf-write.c: Include jcf.h before tree.h/java-tree.h. - (alloc_chunk, append_chunk, append_chunk_copy, gen_jcf_label, - finish_jcf_block, define_jcf_label, get_jcf_label_here, - put_linenumber, localvar_alloc, localvar_free, get_access_flags, - write_chunks, adjust_typed_op, generate_bytecode_conditional, - generate_bytecode_return, perform_relocations, init_jcf_state, - init_jcf_method, release_jcf_state, generate_classfile): - Add static prototype. - (emit_unop): Mark parameter `type' with ATTRIBUTE_UNUSED. - (make_class_file_name): Const-ify. - - * jcf.h (find_classfile): Const-ify. - - * jv-scan.c (reset_report): Remove prototype. - - * jvgenmain.c: Include jcf.h/tree.h/java-tree.h. - (error): Rewrite to allow varargs. - - * lang.c (lang_f_options): Const-ify. - - * lex.c (java_parse_escape_sequence): Add static prototype. - (java_allocate_new_line): Match definition to existing static - prototype. - - * mangle.c Include tree.h/java-tree.h. - (unicode_mangling_length, emit_unicode_mangled_name, - append_gpp_mangled_name, append_gpp_mangled_classtype): Const-ify. - - * parse.h (jdep_code): Remove trailing comma in enumeration. - (java_get_line_col): Move prototype outside of !JC1_LITE test. - (reset_report): Add prototype. - - * verify.c (push_pending_label, merge_types): Add static - prototypes. - - * zipfile.h (opendir_in_zip, open_in_zip): Prototype. - -1999-03-19 Alexandre Petit-Bianco - - * parse.y (find_applicable_accessible_methods_list): Extend the - search to superinterfaces when relevant. - (search_applicable_methods_list): New function. - -1999-03-18 Alexandre Petit-Bianco - - * class.c (unmangle_classname): Implemented stricter testing - before setting the QUALIFIED_P flag on an identifier. - -1999-03-16 Per Bothner - - * parse.y (java_complete_lhs): Call force_evaluation_order - after patch_newarray. - (patch_binop): Don't call fold if there are side effects. - -1999-03-16 Alexandre Petit-Bianco - - * parse.y (java_stabilize_reference): Use save_expr instead of - building a SAVE_EXPR node. - (java_complete_lhs): Patch the resulting string of the `+=' - operator (if necessary) and complete the RHS after having built - the cast. - -1999-03-15 Per Bothner - - * class.c (make_class): Don't set CLASS_P here (because - this function is also called by build_java_array_type). - (push_class): Set CLASS_P here instead. - * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. - - * jcf-dump.c (print_access_flags): Take extra parameter to indicate - context. If the context is class, perfer "super" over "synchronized". - * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. - - * parse.y (create_class): Don't call parser_check_super here; - it is not robust. Always wait until later. - - * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to - match what JDK 1.2 does), but don't set ACC_PUBLIC. - -1999-03-13 Per Bothner - - * lex.c (java_read_char): UNGET invalid non-initial utf8 character. - * lex.h (UNGETC): Change misleading macro. - -1999-03-12 Alexandre Petit-Bianco - - * parse.y (java_stabilize_reference): Return NODE when patching a - COMPOUND_EXPR. - (java_complete_lhs): Put parenthesis around truth values. - -1999-03-12 Alexandre Petit-Bianco - - * class.c (layout_class_method): Don't make rtl for interface - methods. - * parse.h (GET_TYPE_NAME): New macro. - * parse.y (if_then_statement:): Fixed indentation. - (if_then_else_statement:): Likewise. - (for_statement:): Fixed spacing. - (try_statement:): Fixed indentation. - (create_interface): Don't force interfaces to be abstract. - (method_header): Abstract methods are OK in interfaces. - (declare_local_variables): Fixed typo in comment. - (java_complete_expand_method): Fixed indentation. - (resolve_qualified_expression_name): Use GET_TYPE_NAME to report - non accessible fields. - (java_stabilize_reference): New function. - (java_complete_lhs): Fixed indentation. Use - java_stabilize_reference in compound assignment. Insert the - cast. If not processing `+' fix string constants before processing - binop. - -1999-03-12 Kaveh R. Ghazi - - * constants.c (find_class_or_string_constant): Cast variable `j' - to a `jword' when comparing against one. - - * expr.c (java_lang_expand_expr): Remove unused variables - `has_finally_p' and `op0'. - - * gjavah.c (print_field_info): Cast a value to jint when comparing - against one. Likewise for a jlong. - (add_namelet): Likewise cast a `sizeof' to an int when comparing - against a signed quantity. - - * jcf-dump.c (print_signature_type): Remove unused variable `digit'. - (print_signature): Don't needlessly dereference variable `str' - - * jcf-reader.c (get_attribute): Mark variables `max_stack' and - `max_locals' with ATTRIBUTE_UNUSED. - (jcf_parse_class): Likewise for variable `index'. - - * parse.h (reverse_jdep_list): Remove static prototype. - - * parse.y (build_jump_to_finally): Remove prototype and definition. - (reverse_jdep_list): Add static prototype. - - * typeck.c (convert_ieee_real_to_integer): Remove unused variables - `assignment' and `expr_decl'. - - * verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'. - -1999-03-12 Andrew Haley - - * jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes; - we'll need a directory separator and a null character. - -1999-03-10 Per Bothner - - * jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %. - -Tue Mar 9 11:52:08 1999 Alexandre Petit-Bianco - - * parse.y (method_header): Don't set ACC_ABSTRACT flags on - interfaces. - -1999-03-05 Per Bothner - - * lex.c (java_parse_end_comment): Take extra parameter (next char). - - * class.c (build_utf8_ref): Fix possible name class/ambiguity. - - * class.c (layout_class_method): A static method in a base class - is never overridden, so treat it like it doesn't exist. - However, do complain about private non-static method overriding - public static method. - - * parse.y: Don't set unused INITIALIZED_P flag. - * java-tree.h (INITIALIZED_P): Removed no-longer needed flag. - - * parse.y (find_expr_with_wfl): Optimize tail-calls. - (build_array_from_name): Re-order &index[string] to &string[index]. - - * parse.y (java_complete_lhs): Don't call patch_assignment if rhs is - error_mark (it might catch more errors, but it is more likely to lose). - -1999-03-06 Kaveh R. Ghazi - - * Makefile.in (jcf-parse.o): Depend on $(PARSE_H). - (parse-scan.o): Depend on toplev.h. - - * class.c (make_method_value): Add prototype. Make it static. - Remove unused second argument, caller changed. - - * expr.c (java_lang_expand_expr): Remove unused variable - `return_label'. - - * java-tree.h: Don't prototype find_in_current_zip. - Add prototypes for verify_constant_pool, start_java_method, - end_java_method, give_name_to_locals, expand_byte_code, - open_in_zip, set_constant_value, find_constant1, find_constant2, - find_utf8_constant, find_string_constant, find_class_constant, - find_fieldref_index, find_methodref_index, write_constant_pool, - count_constant_pool_bytes and encode_newarray_type. - - * jcf-dump.c: Remove unused variable `LONG_temp'. - - * jcf-parse.c: Include parse.h. - (jcf_parse_source): Remove unused parameter, all callers changed. - (jcf_figure_file_type): Add static prototype. - (find_in_current_zip): Likewise. Also remove unused parameter, - all callers changed. - (read_class): Initialize variable `saved_pos'. - - * jcf-reader.c (jcf_parse_preamble): Mark variables - `minor_version' and `major_version' with ATTRIBUTE_UNUSED. - - * lex.c (java_is_eol): Wrap prototype and definition in !JC1_LITE. - (java_init_lex): Wrap variable `java_lang_imported' in !JC1_LITE. - (java_parse_doc_section): Initialize variable `seen_star'. - (java_lex): Wrap variable `number_beginning' in !JC1_LITE. - (java_lex_error): Mark parameters `msg' and `forward' with - ATTRIBUTE_UNUSED. - (java_get_line_col): Mark parameters `filename' and `line' with - ATTRIBUTE_UNUSED. - - * parse-scan.y: Include toplev.h. - (yyerror): Mark parameter `msg' with ATTRIBUTE_UNUSED. - - * parse.h: use `struct JCF', not plain `JCF'. - (java_parser_context_save_global, java_expand_classes - java_parser_context_restore_global, java_parse): Add prototypes. - - * typeck.c (convert_ieee_real_to_integer): Remove unused variable - `node'. - -1999-02-24 Per Bothner - - * check-init.c (check_init): COPYN takes word count, not bit count. - -1999-02-26 Per Bothner - - * typeck.c (convert_ieee_real_to_integer): Use save_expr instead of - explicit build_decl. (Avoids crash in reload when optimizing.) - -1999-02-25 Per Bothner - - * decl.c (complete_start_java_method): Handle synchronized method - even when compiling from bytecode. - -1999-02-26 Tom Tromey - - * gjavah.c (add_class_decl): Only generate `#include' if outer - class is not the name of the class we are processing. Correctly - append `.h' in #include. - (process_file): Clean up newlines around generated `#include's. - (decode_signature_piece): Correctly handle inner classes. - (struct include): New structure. - (all_includes): New global. - (print_include): New function. - (add_class_decl): Use it. - (process_file): Likewise. - (add_class_decl): Generate include for java-array.h if array - seen. - (process_file): Don't generate java-array.h include. - - * gjavah.c (add_namelet): Check for standard package names here. - (add_class_decl): Don't check for standard package names here. - -1999-02-25 Tom Tromey - - * parse.y (read_import_dir): Use `|=', not `+=', to set `found'. - When reading a zip file, only use strncmp if both strings are - bigger than the buffer length. Initialize `k' when looping - through zip file. - -1999-02-24 Tom Tromey - - * gjavah.c (struct namelet): New structure. - (add_namelet): New function. - (print_namelet): New function. - (print_class_decls): Use add_namelet and print_namelet to generate - namespaces and not classes. - (method_printed): New global. - (HANDLE_END_METHOD): Examine method_printed. - (print_method_info): Set method_printed when required. Print - error if function to be ignored is marked virtual. Handle $finit$ - method. - (METHOD_IS_FINAL): New macro. - (print_field_info): Use it. - (HANDLE_METHOD): Clear method_printed. - (method_pass): New global. - (HANDLE_END_FIELD): Call add_class_decl on the first pass. - (process_file): Do two passes over both fields and methods. - (HANDLE_METHOD): Examine method_pass. - (root): New global. - (add_class_decl): New function. - (print_class_decls): Don't scan over entire constant pool. - -1999-02-23 Tom Tromey - - * jvspec.c (lang_specific_driver): Recognize -fsyntax-only and - disable linking in that case. - -1999-02-20 Tom Tromey - - * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, - not 0x1f. - -1999-02-21 Per Bothner - - * decl.c (build_result_decl), java-tree.h: New method. - (complete_start_java_method): Handle synchronized methods. - Don't build DECL_RESULT here. (Ordering dependency problem.) - (start_java_method): Call build_result_decl here instead ... - * parse.y (java_complete_expand_method): ... and here. - (expand_start_java_method): Don't call complete_start_java_method here. - (java_complete_expand_method): Call it here instead. - * parse.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Moved to .. - * java-tree.h: ... here. - - * expr.c (force_evaluation_order): Fix typo, don't handle ARRAY_REF. - * parse.y (java_complete_lhs): Don't call force_evaluation_order - for ARRAY_REF - it doesn't work when array bounds are checked. - (patch_array_ref): Handle it here instead. - - * jcf-write.c (generate_classfile): Emit "Exceptions" attribute. - -1999-02-19 Per Bothner - - Force left-to-right evaluation of binary operations etc. - * expr.c (force_evaluation_order), java-tree.h: New function. - * parse.y (java_complete_lhs): Pass binary operations, procedure - calls, and ARRAY_REFs to force_evaluation_order. - (various): Set TREE_SIDE_EFFECTS more carefully. - - Tolerate random (non-UTF8) encoding in comments without complaining. - * lex.c (java_read_char): Return 0xFFFE if bad UTF8 encoding. - (java_is_eol): Handle '\r' followed by '\n' instead of vice versa. - - * parse.y (resolve_qualified_expression_name): Handle error_mark. - (java_complete_node case EXPR_WITH_FILE_LOCATION): Likewise. - - * parse.y (java_complete_lhs): Ignore an empty statement in a - COMPOUND_EXPR. Don't complain about empty statement after return. - -1999-02-19 Per Bothner - - * parse.y (obtain_incomplete_type): Don't wrap unknown types - in TREE_LIST - just chain the POINTER_TYPEs together. - (resolve_class): If type already resolved, return decl. - After resolving, update TREE_TYPE(class_type), and name (if array). - * parse.h (do_resolve_class), parse.y: Make non-static. - * class.c (maybe_layout_super_class): Take this_class argument. - Do do_resolve_class if necessary. - (layout_class, layout_class_methods): Adjust calls appropriately. - * parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED, - JDEP_RESOLVED_P): Redefined for new TREE_LIST-less convention. - * typeck.c (build_java_array_type): Don't call layout_class. - -1999-02-17 Alexandre Petit-Bianco - - * parse.y (check_pkg_class_access): Allow private class access - within the same package. - (strip_out_static_field_access_decl): New function. - (patch_unaryop): Call strip_out_static_field_access_decl on ++/-- - operator argument before testing its nature. - -1999-02-03 Per Bothner - - * java-tree.def (FINALLY_EXPR): Removed. (Now uses TRY_FINALLY_EXPR.) - (TRY_EXPR): Simplify - it no longer has a finally clause. - * check-init.c (check_init): Handle TRY_FINALLY_EXPR. - Simpler handling of TRY_EXPR, which no longer has a finally clause. - * expr.c (java_lang_expand_expr): Likewise. - * java-tree.h (CATCH_EXPR_GET_EXPR): Removed - no longer needed. - * parse.h (java_get_catch_block), parse.y: Removed - no longer needed. - * parse.y (java_complete_lhs): Add support for TRY_FIANLLY_EXPR. - (build_try_statement): Remove finally parameter and handling. - (build_try_finally_statement): New function. - (patch_try_statement): No longer need to support finally clause. - (try_statement): Update grammar action rules. - * jcf-write.c (generate_bytecode_insns): Handle TRY_FINALLY_EXPR. - Simpler handling of TRY_EXPR, which no longer has a finally clause. - -1998-11-26 Andrew Haley - - * jcf-parse.c (get_constant): Add braces around computation of 'd' - when REAL_ARITHMETIC is not defined. [Oct 26 fix got overwritten -PB] - -1999-02-17 Andrew Haley - - * class.c (build_utf8_ref): Back out broken patch which was - intended to to output signatures using '.' as a separator. - - * class.c (make_class_data): Output signatures using '.' as a - separator, rather than '/'. - (mangled_classname): Likewise. - (make_field_value): Likewise. - (make_method_value): Likewise. - * constants.c (alloc_class_constant): Likewise. - * expr.c (build_invokeinterface): Likewise. - -1999-02-11 Alexandre Petit-Bianco - - * parse.y (valid_builtin_assignconv_identity_widening_p): Got rid - of an ancient workaround. - -1999-02-10 Jeffrey A Law (law@cygnus.com) - - * jvspec.c (xmalloc): Kill the prototype. It does not belong - here anymore. - -1999-02-10 Alexandre Petit-Bianco - - * lex.c (yylex): Encode \0 as UTF8. - -1999-02-10 Tom Tromey - - * jvspec.c (lang_specific_driver): Use libgcj, not libjava. - * Makefile.in (jcf-path.o): Define LIBGCJ_ZIP_FILE. - (libgcj_zip): Renamed. - * jcf-path.c (add_entry): Use LIBGCJ_ZIP_FILE, not - LIBJAVA_ZIP_FILE. - (jcf_path_init): Use LIBGCJ_ZIP_FILE. - - * jvspec.c (THREAD_NAME): Renamed -lqthreads to -lgcjcoop. - (GC_NAME): Renamed -lgc to -lgcjgc. - -1999-02-09 Alexandre Petit-Bianco - - * lex.c (java_lang_cloneable): Initialize. - * parse.y (java_lang_cloneable): New static variable. - (qualify_ambiguous_name): Take CONVERT_EXPR into account when - doing one more qualification round. - (valid_ref_assignconv_cast_p): Reject null source or - destination. Allow an array to be cast into java.lang.Cloneable. - (patch_cast): Swapped two first arguments to first call to - valid_ref_assignconv_cast_p. - -1999-02-08 Alexandre Petit-Bianco - - * parse.h: DECL_P renamed JDECL_P. - * parse.y: DECL_P replaced by JDECL_P. - (build_array_from_name): Always use pointer's type. - (patch_bc_statement): Extra code to search continue target in a - for loop. Fixed comments. Continue target is current loop when - unlabeled. - -1999-02-05 Andrew Haley - - * class.c (make_class_data): The superclass of an interface should - be null, not class Object. - - * lex.c (java_lex): Sign extend hex literals. - -1999-02-04 Andrew Haley - - * class.c (build_utf8_ref): Output signatures using '.' as a - separator, rather than '/'. - (make_class_data): Likewise. - -1999-02-03 Marc Espie - - * Make-lang.in ($(GCJ)(exeext)): Remove choose-temp.o, pexecute.o and - mkstemp.o. Get them from libiberty now. - -1999-02-02 Jeffrey A Law (law@cygnus.com) - - * jcf-io.c: Do not include sys/stat.h or sys/wait.h - -1999-02-02 Kaveh R. Ghazi - - * jvspec.c (xmalloc): Fix the prototype to match the one obtained - from libiberty.h - -1999-02-02 Per Bothner - - Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'. - * jcf-write.c (generate_bytecode_return): New function. - (generate_bytecode_insns): Use it, for RETURN_EXPR. - - * jcf-write.c (generate_bytecode_insns): For REAL_CST that is 0 or 1, - generate special [fd]const_[01] instructions. - - * jcf-parse.c (yyparse): Don't emit_register_classes if -fsyntax-only. - - * verify.c (verify_jvm_instructions): Do INVALIDATE_PC after - handling OPCODE_lookupswitch or OPCODE_tableswitch. - -1999-02-01 Per Bothner - - * parse.y (patch_method_invocation): Handle calling static methods, - even in the form EXPR.METHOD(ARGS), not just TYPE.METHOD(ARGS). - - * parse.y (java_complete_lhs): Don't complain about unreachable - exit condition in a do-while statement. - -1999-01-29 Alexandre Petit-Bianco - - * lex.c (java_read_char): Fixed utf8 decoding. - (java_unicode_2_utf8): Fixed utf8 encoding in the 0x800-0xffff - range. - * parse.y (valid_builtin_assignconv_identity_widening_p): Fixed - comments. Local variable `all_primitive' is gone. Broadened - acceptance of `0' to floating point targets. `long' can now be - widened to `double' or `float'. - (valid_method_invocation_conversion_p): Added leading - comment. Fixed tabulation. - (build_string_concatenation): Optimize out left or right empty - string constants. - -1999-01-28 Per Bothner - - * jcf-write.c (localvar_alloc): Only emit entry for - LocalVariableTable if debug_info_level > DINFO_LEVEL_TERSE. - (generate_bytecode_insns): Only call put_linenumber if - debug_info_level > DINFO_LEVEL_NONE. - * jvspec.c (lang_specific_driver): If no -O* or -g* option - is specified, add -g1 (for compatibility wih javac). - -1999-01-28 Hans-Peter Nilsson - - * java/Makefile.in: Add missing dependencies for jcf-dump.o, - gjavah.o, check-init.o, jv-scan.o - -1999-02-01 Kaveh R. Ghazi - - * Makefile.in (gjavah.o): Depend on $(CONFIG_H) and system.h. - - * gjavah.c: Include config.h and system.h. - - * javaop.h (inline): Don't define, its handled by system.h. - (WORD_TO_FLOAT, WORDS_TO_LONG, WORDS_TO_DOUBLE): Change these - from `inline' to `static inline'. - - * jcf.h (inline): Don't define, its handled by system.h. - - * lex.c (inline): Likewise. - -1999-01-31 Zack Weinberg - - * lang-specs.h: Map -Qn to -fno-ident. - -1999-01-29 Richard Henderson - - * check-init.c (check_init): Fix CLEANUP_POINT_EXPR typo. - -1999-01-29 Tom Tromey - - * parse.h (BUILD_APPEND): If ARG is a non-String object reference, - then cast it to Object before calling `append' method. - -1999-01-28 Per Bothner - - * check-init.c (check_bool2_init, check_bool_init, check_init): - Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. - * jcf-write.c (generate_bytecode_insns): Likewise. - -1999-01-28 Alexandre Petit-Bianco - - * jcf-parse.c (jcf_parse): Don't parse the same class file twice. - * parse.y (patch_cast): Allow a boolean to be cast into a - boolean. - -1999-01-27 Alexandre Petit-Bianco - - * parse.y: (class_declaration:): Fixed indentation. - (class_member_declaration:): Extra `;' after field declaration now - accepted. - (interface_declaration:): Removed debug messages in error reports. - (patch_binop): Nodes created and returned inherit the orignal - node's COMPOUND_ASSIGN_P flag value. - (patch_cast): Fix cast from char to floating point. - -1999-01-25 Andrew Haley - - * except.c, java-except.h (expand_resume_after_catch): new - function. - * expr.c (java_lang_expand_expr): call expand_resume_after_catch - to branch back to main flow of control after a catch block. - -1999-01-23 Kaveh R. Ghazi - - * Makefile.in (parse.o): Depend on $(CONFIG_H) and - $(srcdir)/../system.h. - (class.o): Depend on $(PARSE_H) and $(srcdir)/../output.h. - (jcf-parse.o): Depend on $(srcdir)/../toplev.h. - (jcf-write.o): Likewise. - (jv-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. - (mangle.o): Depend on $(srcdir)/../toplev.h. - (parse-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. - (zextract.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. - - * class.c: Include output.h and parse.h. - (mangled_classname): Add the `const' keyword to a char*. - (find_named_method): Hide unused function definition. - (build_utf8_ref): Change type of variable `c' to unsigned char. - Use ISALPHA/ISDIGIT instead of isalpha/isdigit. - (build_class_ref): Add the `const' keyword to a char*. - (layout_class_method): Remove unused variable `buf'. - - * decl.c (find_local_variable): Remove unused variable `rtl'. - (pushdecl): Likewise for variables `different_binding_level' and - `oldglobal'. - (pushlevel): Mark parameter `unused' with ATTRIBUTE_UNUSED. - (maybe_build_cleanup): Likewise for parameter `decl'. - - * except.c (expand_start_java_handler): Mark parameter `range' - with ATTRIBUTE_UNUSED. - - * expr.c: Include except.h. - (pop_type): Remove unused variable `i'. - (pop_value): Likewise for variables `n_words' and `i'. - (expand_java_arrayload): Likewise for variable `convert'. - (java_lang_expand_expr): Likewise for variables `op0', `type', - `mode', `unsignedp', `node' and `elements'. - (expand_byte_code): Likewise for variables `prev_eh_ranges' and - `eh_ranges'. - (process_jvm_instruction): Add a `const' qualifier to a char*. - - * gjavah.c (output_directory): Add the `const' keyword to a char*. - (temp_directory): Likewise. - (print_c_decl): Likewise. - (print_method_info): Likewise. - (decode_signature_piece): Likewise. - (print_mangled_classname): Likewise. - - * java-except.h: Provide prototypes for maybe_start_try, - maybe_end_try and add_handler. - - * java-tree.h (mangled_classname): Add the `const' keyword to a char*. - (parse_error_context): Likewise. Also add ATTRIBUTE_PRINTF_2. - (pushdecl_top_level, alloc_class_constant, unicode_mangling_length, - init_expr_processing, push_super_field, init_class_processing, - can_widen_reference_to, class_depth, verify_jvm_instructions, - maybe_pushlevels, maybe_poplevels, process_jvm_instruction, - set_local_type, merge_type_state, push_type, load_type_state, - add_interface, find_in_current_zip, append_gpp_mangled_classtype, - emit_unicode_mangled_name): Add prototypes. - - * jcf-dump.c (print_constant): Add the `const' keyword to a char*. - (print_signature_type): Use ISDIGIT, not isdigit. - (print_signature): Remove unused variable `j'. - - * jcf-io.c (jcf_filbuf_from_stdio): Cast the result of `fread' to - int when comparing against one. - - * jcf-parse.c: Include toplev.h. - - * jcf-write.c: Likewise. Don't include or . - (localvar_free): Remove unused variable `i'. - (generate_bytecode_conditional): Likewise for variable `kind'. - - * jv-scan.c: Include config.h and system.h. Remove redundant - OS header and gansidecl.h includes. - (warning): Add the `const' keyword to a char*. Also add - ATTRIBUTE_PRINTF_1 to the prototype. Check ANSI_PROTOTYPES, not - __STDC__, when determining whether to use ANSI-isms. - (fatal): Likewise. Also add ATTRIBUTE_UNUSED. - (xmalloc): Don't redundantly prototype here. - (main): Remove unused parameter `envp'. Also fix the arguments - passed to function `fatal' to match the format specifier. - - * lang.c (java_tree_code_name): Add the `const' keyword to a char*. - - * mangle.c: Include toplev.h. - (emit_unicode_mangled_name): Declare parameter `len'. - - * parse.y (parse_warning_context): Add the `const' keyword to a - char*. Also add ATTRIBUTE_PRINTF_2 to the prototype. Check - `ANSI_PROTOTYPES' not `__STDC__' for whether to use ANSI-isms. - (issue_warning_error_from_context): Add the `const' keyword to - a char*. - (parse_error_context): Likewise. Also check `ANSI_PROTOTYPES' - not `__STDC__' for whether to use ANSI-isms. - - * typeck.c (incomplete_type_error): Mark parameters `value' and - `type' with ATTRIBUTE_UNUSED. - (parse_signature_type): Use ISDIGIT, not isdigit. - - * verify.c (check_pending_block): Add the `const' keyword to a char*. - (verify_jvm_instructions): Likewise. Remove unused variables - `field_name' and `default_val'. - - * zextract.c: Include config.h and system.h. Remove redundant - OS header includes. - - * zipfile.h: Prototype `read_zip_archive'. - -1999-01-21 Andrew Haley - - * typeck.c (convert): Allow conversions to void type: some - optimizations in gcc do this. - -1999-01-21 Andrew Haley - - * typeck.c (convert_ieee_real_to_integer): New function. - (convert): When not using fast-math and using hardware fp, convert - an IEEE NaN to zero. - -1999-01-18 Andrew Haley - - * parse.y (patch_binop): Do a type conversion from signed to - unsigned and then back to signed when a ">>>" is found. - -1999-01-17 Alexandre Petit-Bianco - - * java-tree.h: (check_for_initialization): Added prototype. - * lex.c (java_parse_doc_section): `\n' breaks the `*/' string. - * parse.y (do_resolve_class): Removed unused locals. - (read_import_dir): Likewise. - (resolve_qualified_expression_name): Array creation - expressions are valid primary expressions. - (qualify_ambiguous_name): Likewise. - (patch_synchronized_statement): Removed unused local. - -1999-01-17 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (zextract.o): Add dependencies. - - * Makefile.in: Do not put ^Ls at the start of a line. - -1999-01-15 Per Bothner - - * expr.c (process_jvm_instruction): Coerce to correct Throwable - sub-type the result of the call that gets the exception value. - - * parse.y (java_complete_expand_methods): If flags_syntax_only, - don't call finish_class. - - * parse.y (java_check_regular_methods): If METHOD_PRIVATE, - clear found before continuing. - - * verify.c (verify_jvm_instructions): On an array load, allow - and handle top of stack to be TYPE_NULL. - - * gjavah.c (generate_access): Translate Java package private or - protected access to C++ public, but with a comment. - -1999-01-13 Andrew Haley - - * expr.c (generate_name): Name prefix changed to avoid clashes - with assembler temp labels. - - * parse.y (patch_synchronized_statement): Set TREE_SIDE_EFFECTS on - MODIFY_EXPR. Without this, code for the assignment may not be - generated at all and the synchronized statement will read an - uninitialized variable. - -1999-01-13 Alexandre Petit-Bianco - - * class.c (maybe_layout_super_class): Fixed returned value. - * lex.c: Added 1999 to the copyright. - (java_init_lex): Initialize java_lang_imported. - * lex.h: Added 1999 to the copyright. - * parse.h: Added 1999 to the copyright. - (REGISTER_IMPORT): Fixed typo in trailing macro. - (CURRENT_OSB): New macro. - (struct parser_ctxt): New fields osb_depth, osb_limit. - * parse.y (java_lang_id): New global variable. - (type_import_on_demand_declaration): Don't import java.lang.* twice. - (array_creation_expression:): Use CURRENT_OSB. - (dims:): Uses a stack to keep track of array dimensions. - (cast_expression:): Use CURRENT_OSB. - (find_expr_with_wfl): Return NULL if node found doesn't meet the - conditions. - (register_fields): Fixed typos in comment. - (check_method_redefinition): Fixed comment indentation. - (java_check_regular_methods): Set saved found wfl to NULL after - having reinstalled it in the previously found DECL_NAME. - -1999-01-10 Richard Henderson - - * gjavah.c (java_float_finite): Use a union to do type punning. - (java_double_finite): Likewise. - -1999-01-09 Per Bothner - - * parse.y (build_new_array_init): Don't set EXPR_WFL_LINECOL - on CONSTRUCTOR (since that trashes TREE_CST_RTL). - (patch_new_array_init): Clear TREE_CONSTANT also if INDIRECT_REF. - (register_fields): Set TREE_STATIC on NEW_ARRAY_INIT, not on - CONSTRUCTOR (which causes expand_expr to call output_constant_def). - * expr.c (java_lang_expand_expr): Check TREE_STATIC of NEW_ARRAY_INIT. - -1999-01-08 Per Bothner - - * check-init.c (check_init): If compiling to native, we don't - see THROW_EXPR. Instead, look for a call to throw_node (_Jv_Throw). - -1999-01-08 Tom Tromey - - * parse-scan.y (variable_declarator_id): Set or increment - bracket_count. - (bracket_count): New global. - (formal_parameter): Handle case where bracket pairs trail variable - declarator id. - -1999-01-07 Andrew Haley - - * jcf-parse.c (yyparse): variable len changed from a char to an - int to prevent overflow. - -1999-01-06 Per Bothner - - * java-tree.h: Declare read_class. - * jcf-parse.c (read_class): New function. - (load_class): Now just call read_class. - - * java-tree.h (java_parse_abort_on_error): Only return if new errors. - * jcf-parse.c (parse_source_file): Declare save_error_count, - which is needed by java_parse_abort_on_error macro, - * parse.y (java_layout_classes, java_expand_classes): Likewise. - - * parse.y (register_fields): Set TREE_STATIC flag of NEW_ARRAY_INIT - constructor, if initializing a static field. - (patch_new_array_init): Set TREE_CONSTANT if it is. - * expr.c (java_lang_expand_expr): For a static array constructor - of primitive elements, allocate the array itself statically. - Disabled until we can set the vtable field statically. - - * check-init.c: New file. Checks for definite assignment. - * Makefile.in (JAVA_OBJS): Add check-init.o. - * parse.y (java_complete_expand_method): Call check_for_initialization. - * parse.h (BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY): Moved to java-tree.h. - -1999-01-06 Graham - - * parse.y : include system.h instead of including - standard headers directly with the exception of . - -1999-01-06 Per Bothner - - * lex.h: Moved static function declarations to lex.c, - to shut up some -Wall warnings. - * lex.c: Static function declarations moved here. - * jcf-dump.c: Small fixes to shut up -Wall warnings. - -1999-01-05 Kaveh R. Ghazi - - * Make-lang.in ($(GCJ).o): Depend on prefix.h. - -1998-12-22 Per Bothner - - * expr.c (process_jvm_instruction): Do load_type_state after JSR. - * verify.c (verify_jvm_instructions): Fix off-by-one error. - - * jcf-write.c (CHECK_PUT): Add (void) cast to avoid -Wall warnings. - (localvar_alloc): Change return type to void, - (emit_unop): Remove unused variable size. - - * jcf-write.c (struct jcf_block): Add new union. - (PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC): New macros. - (call_cleanups): New functions. - (struct jcf_partial): New fields num_finalizers and return_value_decl. - (generate_bytecode_insns): Support CLEANUP_POINT_EXPR and - WITH_CLEANUP_EXPR. Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR. - * lang.c (lang_init): Call using_eh_for_cleanups. - * parse.y (java_complete_lhs): For SYNCHRONIZED_EXPR, defer - completing operands to patch_synchronized_statement. - Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR. - (patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and - WITH_CLEANUP_EXPR instead of TRY_EXPR. - -1998-12-20 John F. Carr - - * Make-lang.in: Comment out control-Ls; they upset some makes. - -1998-12-18 Tom Tromey - - * parse.y (check_class_interface_creation): Use DIR_SEPARATOR - consistently. - -1998-12-17 Tom Tromey - - * parse.y (DIR_SEPARATOR): New define. - (check_class_interface_creation): Use it. - - * parse-scan.y (report_main_declaration): Recognize - `java.lang.String' in argument to main. - -1998-12-16 Per Bothner - - * parse.y (create_interface): Remove bogus test. - -1998-12-16 Per Bothner - - * jcf-parse.c (get_constant): Set TREE_TYPE for string constants. - (HANDLE_CONSTANTVALUE): If flag_emit_class_files, call get_constant. - -1998-12-16 Tom Tromey - - * parse-scan.y (qualified_name): Use correct sprintf format. - -1998-12-15 Tom Tromey - - * gjavah.c (print_field_info): Changed how most negative number is - printed. - -1998-12-14 Per Bothner - - * parse.y (fold_constant_for_init): New function. - (resolve_expression_name): Don't replace static final - constant-initialized fields by its value. - (java_complete_lhs): New. Same as java_complete_tree, except does - not replace static final constant-initialized fields by their values. - (register_fields): If there is an initializer, set DECL_INITIAL and - MODIFY_EXPR_FROM_INITIALIZATION_P. - (java_complete_tree): For MODIFY_EXPR, use java_complete_lhs for lhs. - Only call patch_initialized_static_field if - MODIFY_EXPR_FROM_INITIALIZATION_P. - (patch_initialized_static_field): If not valid constant, clear - DECL_INITIAL. - - * parse.y (lookup_field_wrapper): Fix thinko. - - * parse.y (java_complete_tree): In EXPR_WITH_FILE_LOCATION, - set and restore global lineno. - -1998-12-14 Tom Tromey - - * gjavah.c (print_field_info): If value to print is the smallest - value of its size, then print as hex to avoid later warnings from - C++ compiler. - -1998-12-14 Tom Tromey - - * gjavah.c (decompile_method): Decompile `return null'. - (process_file): Generate `#pragma interface'. - (method_declared): New global. - (print_method_info): Set it. - (HANDLE_CODE_ATTRIBUTE): Only print it method_declared set. - (print_method_info): Handle abstract methods. - -1998-12-13 Per Bothner - - * parse.y (patch_method_invocation): If class_decl is null - (e.g. an array type), use original type. - - * parse.y (check_thrown_exceptions): Temporary hack to suppress - errors about uncaught exception from clone (of array, specifically). - -1998-12-13 Tom Tromey - - * gjavah.c (decompile_method): Handle all types of `return' - opcode. Decompile `return this' and `return'. - (method_access): New global. - (print_method_info): Set it. - (decompile_method): Don't decompile a synchronized method. - -1998-12-13 Tom Tromey - - * jcf-reader.c (jcf_parse_one_method): Recognize - HANDLE_END_METHOD. - * gjavah.c (HANDLE_END_METHOD): New macro. - (HANDLE_CODE_ATTRIBUTE): New macro. - (decompile_method): New function. - (print_method_info): Don't print `;\n' at end of function decl. - Include java-opcodes.h. - (decompiled): New global. - -1998-12-12 Per Bothner - - * class.c (build_class_ref): Handle PRIMTYPE.class if - flag_emit_class_files. - * expr.c (expand_java_field_op): Don't optimize java.lang.XXX.TYPE - if flag_emit_class_files. - * parse.y (java_complete_tree): Pre-liminary support for - COMPONENT_REF - only to handle PRIMCLASS.TYPE. - - * parse.y (patch_synchronized_statement): Don't call monitorexit - unless block CAN_COMPLETE_NORMALLY. Propagate that flag properly. - - * java-tree.h (DECL_LOCAL_STATIC_VALUE): Removed - no longer used. - - * zipfile.h (opendir_in_zip): New declaration. - * jcf-io.c (saw_java_source): Moved to jcf-parse.c. - (opendir_in_zip): New function, using code from open_in_zip. - (open_in_zip): Call opendir_in_zip. - (find_class): Remove no-longer-used do_class_file parameter, - but add source_ok parameter. Change logic so if we find a .java file, - we don't look for .class in later classpath emtries. - * jcf-parse.c (load_class): Pass saw_java_source to find_class. - (jcf_figure_file_type): Only call open_in_zip if correct magic number. - * gjavah.c: Update call to find_class. - * jcf-dump.c: Likewise. - - * jcf-write.c (put_linenumber): Handle duplicate line numbers. - (generate_bytecode_insns): For EXPR_WITH_FILE_LOCATION, do - nothing if body is empty_stmt_node. - Various little fixes so SP gets correctly adjusted. - For NEW_ARRAY_INIT, handle IGNORE_TARGET. - For CALL_EXPR, test if static first. - (generate_classfile): Ignore fields that are DECL_ARTIFICIAL, - such as the ones we create for Object and Class. - Set and restore current_function_decl. - * parse.y: Check/set IS_AN_IMPORT_ON_DEMAND_P in read_import_dir. - (note_possible_classname): New function. - (read_import_entry): Removed. Merged with read_import_dir. - (read_import_dir): Don't call find_class - that only gives us - the first classpath entry having the needed package. - Use the struct buffer data structure from buffer.h. - (read_import_dir, find_in_imports_on_demand): The remembered - class names now use '.' (not '/') as package separator. - - * parse.y (java_complete_expand_methods): Call write_classfile - here, and not in java_expand_classes (which only gets first class). - -1998-12-12 Alexandre Petit-Bianco - - * parse.y (): Do maybe_generate_clinit last. - (register_fields): If a static fields has an initializer, just - chain it on ctxp->static_initialized, and handle later. - (java_complete_expand_methods): Force first. - (resolve_expression_name, resolve_field_access): Just get DECL_INITIAL - - it's already been completed. - (patch_initialized_static_field): New function. - (java_complete_field): Call it. - -1998-12-12 Per Bothner - - * expr.c (encode_newarray_type, build_new_array): New functions. - * java-tree.h: Declare build_new_array. - * jcf-write.c (patch_newarray): Use build_new_array. - - * expr.c (java_lang_expand_exp): Support NEW_ARRAY_INIT. - * jcf-write.c (generate_bytecode_insns): Support NEW_ARRAY_INIT. - - * parse.y (patch_new_array_init): Re-organize. - Now is passed the actual array (pointer) type of the value. - Set the type of the CONSTRUCTOR to be an ARRAY_TYPE. - (patch_array_constructor): Removed - merged into patch_new_array_init. - (java_complete_tree): Update patch_new_array_init. - - * jcf-write.c (find_constant_index): New function. - (generate_bytecode_insns): Use find_constant_index. - (generate_classfile): Use find_constant_index for ConstantValue. - -1998-12-11 Tom Tromey - - * expr.c (invoke_build_dtable): Renamed dtable -> vtable. - * decl.c (init_decl_processing): Renamed dtable -> vtable. - * class.c (make_class_data): Renamed dtable -> vtable, and - dtable_method_count -> vtable_method_count. - -1998-12-10 Alexandre Petit-Bianco - - * decl.c (long_zero_node, float_zero_node, double_zero_node): New - global variables, initialized. - * java-tree.h (long_zero_node, float_zero_node, double_zero_node): - Declared new global variables. - * lex.c (java_lex): Return long_zero_node, float_zero_node, - double_zero_node, integer_zero_node upon direct matching. - * parse.y (purify_type_name): Added function prototype. - (duplicate_declaration_error_p): Consider new_type as potentially - being a incomplete type. Use purify_type_name on type string. - (method_header): saved_type: unused variable removed. Don't figure - return type if method name is invalid. - (java_complete_tree): Set CAN_COMPLETE_NORMALLY after `node' was - processed by patch_unaryop. - (patch_unaryop): Fixed typo in comment. Re-convert pre/post - increment/decrement node into its original type after binary - numeric promotion on its operands. - -1998-12-10 Alexandre Petit-Bianco - - * parse.y (array_initializer:): Array init operand is NULL_TREE - instead of a TREE_LIST of NULL_TREEs when parsing `{}'. `{,}' is - now an error. Fixed indentation problems. - (patch_string): Handle error_mark_node as an argument. - (patch_new_array_init): Fixed indentation problems. - (array_constructor_check_entry): Removed check on null wfl_value. - Return an error if wfl_value's walk returns an error. - -1998-12-09 Alexandre Petit-Bianco - - * java-tree.def (NEW_ARRAY_INIT): New Java tree code. - * lex.c (java_lex): Remember column position before advancing one - token. Retain location information on OCB_TK. - * lex.h (typedef struct java_lc): Added new field. - * parse.h (GET_SKIP_TYPE): New macro. - (QUAL_DECL_TYPE): Redefined using GET_SKIP_TYPE. - * parse.y (build_new_array_init, patch_new_array_init, - patch_array_constructor, maybe_build_array_element_wfl, - array_constructor_check_entry): New function prototypes. - (switch_block:): Tagged . - (OCB_TK): Tagged . - (array_initializer:): Installed actions. - (variable_initializer): Build location information on element if - necessary. - (switch_statement:): Fixed indentation typo. - (switch_block:): Redefined default action. - (java_complete_tree): Handle NEW_ARRAY_INIT in MODIFY_EXPR:. - (patch_assignment): Removed duplicate code. - (maybe_build_array_element_wfl, build_new_array_init, - patch_new_array_init, patch_array_constructor, - array_constructor_check_entry): New functions. - -1998-12-07 Alexandre Petit-Bianco - - * parse.y (array_initializer): Tagged . - (variable_initializer:): Use default rule. - (array_initializer:): Defined actions. - (variable_initializers:): Likewise. - (resolve_qualified_expression_name): Use DECL_CONTEXT to build - non-static field accesses. - (patch_invoke): Fixed indentation typo. - (java_complete_tree): Likewise. - (build_labeled_block): Changed leading comment. Generate an error - in case of duplicate loop labels. - (patch_conditional_expr): Patch results of string concatenation - operations. - -1998-12-06 Per Bothner - - * constants.c (find_methodref_index): When the class is an interface, - generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef. - - * decl.c (finit_identifier_node): Use "$finit$", rather than - "" (which Sun's verifier rejects). - * parse.y (maybe_generate_finit): Leave out meaningless final flag. - (generate_field_initialization_code): Removed. - (fix_constructors) Don't add call to $finit$ here (wrong order). - (patch_method_invocation): Add $finit$ call here. - - * java-tree.h (CALL_USING_SUPER): New macro. - * parse.y (patch_invoke): Remove im local variable. - (patch_method_invocation, patch_invoke): Don't pass super parameter. - (patch_invoke): Use CALL_USING_SUPER instead of from_super parameter. - (resolve_qualified_expression_name): Maybe set CALL_USING_SUPER. - - * jcf-write.c (get_access_flags): Fix typo ACC_PUBLIC -> ACC_FINAL. - - * parse.y (java_complete_tree): Don't complain about unreachable - statement if it is empty_stmt_node. - - * jcf-write.c (find_constant_wide): New function. - (push_long_const): Use find_constant_wide. - - * jcf-write.c (generate_bytecode_insn): Fix bug in switch handling. - (generate_bytecode_insn): Use correct dup variant for MODIFY_EXPR. - Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set. - Emit invokeinterface when calling an interface method. - Emit invokespecial also when calling super or private methods. - - * jcf-write.c (generate_classfile): Emit ConstantValue attributes. - -1998-12-06 Per Bothner - - * jcf-dump.c (INVOKE): If invokeinterface, print number of args. - -1998-12-03 Alexandre Petit-Bianco - - * java-tree.h (java_layout_seen_class_methods): New function - prototype. - (LAYOUT_SEEN_CLASS_METHODS): Macro removed. - * jcf-parse.c (parse_class_file): Call java_layout_seen_class_methods. - * parse.h (PROMOTE_RECORD_IF_COMPLETE): New macro. - * parse.y (method_declarator:): Defined action. - (issue_warning_error_from_context): input_filename saved, set to - the appropriate value and restored after java_error is called. - (build_unresolved_array_type): Fixed comment. - (register_fields): Use PROMOTE_RECORD_IF_COMPLETE. - (method_header): Deal with return type the same way type are - handled for fields and method's parameters and local variables - types are handled. - (check_method_redefinition): Removed extra CR. - (declare_local_variables): Use PROMOTE_RECORD_IF_COMPLETE. - (java_layout_seen_class_methods): New function. - (java_layout_classes): Call java_layout_seen_class_methods. - -1998-12-03 Per Bothner - - * parse,y (patch_synchronized_statement): Set CAN_COMPLETE_NORMALLY. - -1998-12-03 Per Bothner - - * jcf-dump.c (main): Fix error message. - * jcf-path.c (add_entry): Style fix. - -1998-12-02 Alexandre Petit-Bianco - - * class.c (layout_class_method): Call build_java_argument_signature - on constructors too. - * parse.y (check_method_redefinition): Use TYPE_ARGUMENT_SIGNATURE. - (patch_method_invocation): Define a primary when resolving an - expression name. Augmented comment on code checking illegal `this' - usage. Loosened it test by accepting NEW_CLASS_EXPR. - -1998-12-01 Alexandre Petit-Bianco - - * class.c (layout_class_method): Don't report error on non-static - overriding static if the method is private. - * java-tree.h (finish_class): Prototype added. - * lex.c (java_get_line_col): Handle col argument -2 value. - * parse.h: All static method declarations moved to parse.y. - * parse.y: Now contains all static method declarations previously - found in parse.h. - (find_expr_with_wfl, missing_return_error, - unreachable_stmt_error): New functions. - (java_get_real_method_name): Identify constructors bearing class - names in source code compiled classes only. - (java_complete_expand_methods): Call missing_return_error. - (invocation_mode): Private methods invoked as static methods. - (java_complete_tree): Call unreachable_stmt_error. - -1998-12-01 Tom Tromey - - * Makefile.in (+target): Removed. - (+xmake_file): Likewise. - (+tmake_file): Likewise. - (.NOEXPORT): Removed duplicate. - -1998-11-27 Kaveh R. Ghazi - - * Makefile.in (jc1, jv-scan): Link with $(SUBDIR_OBSTACK). - - * jv-scan.c: Fix xmalloc prototype. Provide an xmalloc definition. - - * jvgenmain.c: Remove the xmalloc prototype, we get it from - libiberty.h. Provide an xmalloc definition. - - * jvspec.c: Remove the xmalloc prototype. - - * parse-scan.y: Include config.h and system.h. Don't include - OS headers or gansidecl.h. Don't prototype xmalloc/xstrdup. - Provide an xstrdup definition. - -1998-11-26 Alexandre Oliva - - * jcf-path.c (add_entry): Recognize ".jar" too. - * lang-specs.h: Likewise. - -1998-11-26 Per Bothner - - * jcf-write.c (generate_bytecode_insns): In Call_EXPR, handle - soft_monitorenter_node, soft_monitorexit_node, throw_node. - - * jcf-write.c (generate_bytecode_insns): - Handle pre/post-increment/decrement of long. - - * jcf-write.c (generate_bytecode_insns): - Handle missing exception handler (finally for synchronized). - -1998-11-25 Per Bothner - - * java-tree.h (end_params_node): Declare global. - * decl.c (end_params_node): New global. - (init_decl_processing, start_java_method): Use end_params_node for - end of list of parameter types. Follows correct gcc conventions. - * expr.c (pop_argument_types, pop_arguments): Likewise. - * lang.c (put_decl_node): Likewise. - * typeck.c (various places): Likewise. - * class.y (various places): Likewise. - * parse.y (various places): Likewise. - - * parse.y (java_complete_tree): Move CAN_COMPLETE_NORMALLY. - (build_jump_to_finally): Add missing CAN_COMPLETE_NORMALLY. - - * class.c: Add #include flags.h, remove no-longer needed declaration. - - * class.c (layout_class_method): Remove commented-out code, re-format. - Don't add vtable entry (or index) for private methods. - * expr.c (expand_invoke): A private method is implicitly final. - * class.c (make_class_data): If inlining or optimizing, - skip private methods. - - * class.c (finish_class): New function. Calls existing methods, - but alls emits deferred inline functions. - * jcf-parse.c (parse_class_file): Call finish_class. - * parse.y (java_complete_expand_methods): Likewise. - - * expr.c (build_java_binop): Explicit default, to silence -Wall. - - * expr.c (CHECK_PC_IN_RANGE): Add void cast to kill warnings. - -1998-11-25 Marc Espie - - * jcf-write.c (generate_bytecode_conditional): Fix typo. - -1998-11-24 Per Bothner - - * (generate_classfile): Always write class access flag with - ACC_SUPER set. - -1998-11-24 Alexandre Petit-Bianco - - * class.c (maybe_layout_super_class): New function. - (layout_class): Reorganized. Loop on class methods dispatched into - a new function. Call maybe_layout_super_class. - (layout_class_methods, layout_class_method): New functions. - * expr.c (expand_java_NEW): Call layout_class_methods on loaded - class. - (expand_invoke): Likewise. - * java-tree.h (all_class_list): New global variable declared. - (layout_class_methods, layout_class_method): New function - prototypes. - (LAYOUT_SEEN_CLASS_METHODS): New macro. - * jcf-parse.c (all_class_list): New global variable. - (load_class): Extended what class_or_name can be. Use parser - context mechanism to save globals before calling jcf_parse. - (jcf_parse_source): Don't parse twice if HAS_BEEN_ALREADY_PARSED_P - is set on the file name. - (jcf_parse): Layout class methods when Object is loaded, otherwise - record class in all_class_list for delayed method layout. - (parse_class_file): Use LAYOUT_SEEN_CLASS_METHODS. - * lang.c (put_decl_node): Decode into the decl context - class name. - * lex.c (java_allocate_new_line): Use xmalloc. - * parse.h (INCOMPLETE_TYPE_P): Redefined to work with incomplete - pointers, not TREE_LIST elements. - (struct parser_ctxt): Fixed comment indentations, added comments - and reordered some fields. - (java_check_methods): Function prototype removed. - * parse.y (java_push_parser_context): Use xmalloc. - (java_parser_context_restore_global): Pop extra pushed ctxp only - when there's nothing next. - (maybe_create_class_interface_decl): Fixed comment, add new - created class decl to all_class_list. - (method_header): Use GET_REAL_TYPE on argument's types. - (method_declarator): Use GET_REAL_TYPE, change type to the real - type in TREE_LIST dependency node. Build argument list with the - real type. - (create_jdep_list): Use xmalloc. Removed allocation error message. - (obtain_incomplete_type): Fixed leading comment. Broadened - incoming argument meaning. - (register_incomplete_type): Use xmalloc. Removed allocation error - message. - (safe_layout_class): Fixed leading comment. - (jdep_resolve_class): Reversed if statement condition and switch - if and else bodies. - (resolve_and_layout): Fixed leading comment. Broadened incoming - argument meaning. - (complete_class_report_errors): New local variable name, for - clarity. purify_type_name used for all error cases. - (java_get_real_method_name): Stricter check on constructors. - (java_check_regular_methods): Reverse methods list only if not - already laid out. Layout artificial constructor. - (java_check_methods): Deleted. - (source_start_java_method): Obtain incomplete type for patchable - method arguments. - (java_layout_classes): Fixed leading comment. Use - LAYOUT_SEEN_CLASS_METHODS, use a loop to check methods. Added else - statement to layout operation, reuse LAYOUT_SEEN_CLASS_METHODS - before returning. Fixed comments. - (java_expand_classes): Check for errors up front. - (patch_method_invocation): Class to search is resolved and laid - out. - -1998-11-24 Per Bothner - - * expr.c (java_lang_expand_expr): Add missing emit_queue. - - * javaop.h (int8): Removed - not used. - (jbyte): Redefine portably with correct signedness. - - * jcf-write.c (generate_bytecode_insns): Don't free sw_state.cases. - - * jcf-write.c (generate_bytecode_insns): Fix typo - OPCODE_getstatic to OPCODE_getfield. - - * java-tree.def (CASE_EXPR, DEFAULT_EXPR): Kind is 'x', not '1'. - * parse.y (java_complete_tree): For CASE_EXPR and DEFAULT_EXPR, - set TREE_SIDE_EFFECTS (otherwise expand_expr may skip them). - -1998-11-19 Alexandre Petit-Bianco - - * jcf-parse.c (jcf_parse_source): Function returned type is - void. Added prototype. - (jcf_parse): Function returned type is void. - (yyparse): Remove call to fclose on the last parsed file. - - * java-tree.h (jcf_parse): Changed jcf_parse prototype. - -1998-11-18 Alexandre Petit-Bianco - - * class.c (unmangle_classname): Set QUALIFIED_P when appropriate. - (layout_class): Cope with methods featuring WFL in decl names. - * decl.c (unqualified_object_id_node): New global variable, - initialized. - (build_decl_no_layout): Removed. - * expr.c (build_primtype_type_ref): Handle Double. - (java_lang_expand_expr): Fixed indentations. - * java-tree.h (CLASS_METHOD_CHECKED_P): Flag deleted. - (flag_wall, flag_redundant, flag_not_overriding, - flag_static_local_jdk1_1, unqualified_object_id_node): Global - variable declarations. - (build_decl_no_layout): Removed prototype. - (java_get_real_method_name): Added prototype. - (IS_UNCHECKED_EXPRESSION_P): Renamed IS_UNCHECKED_EXCEPTION_P. - (java_parse_abort_on_error): Macro now just returns. - * jcf-parse.c (jcf_parse_source): Check fclose returned - value. Call emit_register_classes if java_report_errors returns - zero. - * lanc.c (flag_wall, flag_redundant, flag_not_overriding, - flag_static_local_jdk1_1): New integer flags. - (lang_decode_option): New flags set here. - * parse.h (GET_REAL_TYPE, GET_METHOD_NAME): New macros. - (OBSOLETE_MODIFIER_WARNING): Issue error message conditionally to - the flag_redundant variable. - (SET_TYPE_FOR_RESOLUTION): Consider Object being java.lang.Object - when parsing java.lang.Object class. - (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Added terminal - NULL_TREE to build. - (resolve_qualified_expression_name): Fixed indentation. - (patch_array_ref): Changed prototype. - (not_initialized_as_it_should_p): Prototype removed. - (java_report_errors): Added function prototype. - * parse.y (formal_parameter:): Changed error message for not yet - supported final parameters. - (class_type_list:): Set both PURPOSE and VALUE of created - TREE_LIST to be class_type. - (primary_no_new_array:): Handle class literals on primitive types. - (parse_warning_context): Reinstalled correct force_error and - do_warning flags setups. - (java_report_errors): Changed prototype. Return java_error_count - value. - (variable_redefinition_error): Consider treating variable type as - a fake pointer. - (create_interface): Warn about redundant abstract modifier if - flag_redundant is set. Changed error message. - (lookup_field_wrapper): Save/restore globals before/after looking - up field. - (duplicate_declaration_error_p): Consider treating declaration - type as a fake pointer. - (register_fields): Extract real type from dependency node. Check - for duplicate field declaration after type adjustment. Use - DECL_INITIAL to store static final initialized values. - (method_header): Extract real function type from dependency node. - (check_abstract_method_header): Use GET_METHOD_NAME. - (obtain_incomplete_type): Layout fake pointer type. - (safe_layout_class): Don't try to check for methods before layout. - (java_complete_class): Don't check for correct throws clause - elements inheritance here. - (resolve_and_layout): Broadened name parameter meaning. - (reset_method_name): Use GET_METHOD_NAME. - (java_get_real_method_name): New function. - (java_check_regular_methods): Don't check methods in - java.lang.Object. Verify lineage of throws clause elements. Use - flag_no_overriding in warning report. - (check_throws_clauses): Don't check if class was from - bytecode. Use IS_UNCHECKED_EXCEPTION_P macro. - (java_check_methods): Don't set CLASS_METHOD_CHECKED_P flag. - (declare_local_variables): Use flag_static_local_jdk1_1 to report - warning on unsupported final local variables. Use build_decl - instead of build_decl_no_layout. Get real local variable type from - dependency node. - (source_start_java_method): Get real parameter type from - dependency node. Call build_decl instead of build_decl_no_layout. - (java_layout_classes): Reverse tree and layout type and class as - required. Mark class as loaded when done. - (resolve_field_access): Fixed indentation. Restricted condition - leading to static field access code generation. Set field_type - decl's TREE_TYPE if QUAL_DECL_TYPE not available. - (resolve_qualified_expression_name): Initialize type_found to - null. Handle static field resolved during qualification. Fixed - layout on non primitive field decl types. - (not_accessible_p): Fixed typo in comment. - (patch_method_invocation): Resolve and layout class to search from - type. - (lookup_method_invoke): Keep integer constant 0 as is. Resolve and - layout non primitive type, if necessary. Make method node only to - report errors. - (find_applicable_accessible_methods_list): Consider WFL'ed method - decl names. Fixed indentation. - (argument_types_convertible): Resolve and layout target type if - necessary. - (java_complete_tree): Fixed indentation problems. Rewrote - CALL_EXPR thrown exceptions check. Re-installed further processing - of the assignment in certain cases. - (patch_assignment): Call maybe_build_primttype_type_ref to perform - inlining on class literals. - (valid_builtin_assignconv_identity_widening_p): Cope with constant - 0 literal. - (valid_method_invocation_conversion_p): Likewise. - (patch_string): Temporary disable forbidden use of `this' in - explicit constructor invocations when doing string concatenation - within their scope. - (patch_unaryop): Added comment. Reinstalled code to disable - further check on assignment operation with cast expression RHS. - (patch_switch_statement): Fixed indentation. - (build_try_statement): Call build_decl instead of - build_decl_no_layout. - (patch_synchronized_statement): Likewise. - (patch_throw_statement): Use IS_UNCHECKED_EXCEPTION_P instead of - IS_UNCHECKED_EXPRESSION_P. - (check_thrown_exceptions_do): Changed leading comment. Resolve and - layout argument exception type. - (purge_unchecked_exceptions): Use IS_UNCHECKED_EXCEPTION_P instead - of IS_UNCHECKED_EXPRESSION_P. - -1998-11-18 Anthony Green - - * jcf-parse.c (yyparse): Open class file in binary mode. - -1998-11-15 Per Bothner - - * jvgenmain.c: Need to #include "gansidecl.h" (to get PROTO). - - * jcf-write.c (perform_relocations): Move check out one loop. - -1998-11-15 Anthony Green - - * Make-lang.in: Fix reference to srcdir. - * jv-scan.c: Add missing xmalloc prototype. - * jvgenmain.c: Ditto. - -1998-11-15 Per Bothner - - * decl.c (error_mark_node), java-tree.h: New global. - * parse.y: Use empty_stmt_node instead of size_zero_node. - (build_if_else_statement): If missing else, use empty_stmt_node. - - * parse.y (not_initialized_as_it_should_p): Removed, with its callers. - (java_complete_expand_method): Complain if return is missing. - (java_check_regular_methods): Comment out incorrect error check. - (not_accessible_p): Fix incorrect handling of protected methods. - (patch_method_invocation): Pass correct context to not_accessible_p. - (find_applicable_accessible_methods_list): Likewise. - (qualify_ambiguous_name): If ARRAY_REF, it's an expression name. - (java_complete_tree): For CASE_EXPR and DEFAULT_EXPR, set - TREE_TYPE (to void_type_node); otherwise expand_expr crashes. - (patch_if_else_statement): Fix setting of CAN_COMPLETE_NORMALLY. - - * jcf-write.c (CHECK_OP, CHECK_PUT): Add some error checking. - (push_int_const): Remove reundant NOTE_PUSH. - (generate_bytecode_insns - case STRING_CST): Do NOTE_PUSH. - (- case SWITCH_EXPR): Fix code generation bug. - (- case PREDECREMENT_EXPR etc): Remove redundant NOTE_PUSH. - (generate_classfile): More robust for abstract methods. - -1998-11-15 Anthony Green - - * Makefile.in: jv-scan and jvgenmain all require libiberty. - * Make-lang.in: Ditto. - - * jv-scan.c: Remove xmalloc and xstrdup definitions. - * jvgenmain: Ditto. - -1998-11-15 Per Bothner - - * jcf-parse.c (HANDLE_EXCEPTIONS_ATTRIBUTE): New macro. - - * jcf-io.c (find_class): Simpler/cleaner structure fixes a bug. - -1998-11-14 Per Bothner - - Allow uses of interface types to verify. This is not really - type-safe, but it matches what Sun does, and is OK as long as - there are appropriate run-time checks. - * verify.c (merge_types): If merging two interface types, - just set the result to java.lang.Object. - * expr.c (pop_type): Any interface is matches by java.lang.Object. - -1998-11-13 Tom Tromey - - * gjavah.c (main): Handle --output-class-directory argument. - * jvspec.c (lang_specific_driver): Translate `-d' into - -foutput-class-dir. - * jcf.h (jcf_write_base_directory): Declare. - * lang.c (lang_decode_option): Recognize -foutput-class-dir. - * lang-options.h: Mention -foutput-class-dir. - * jcf-write.c (jcf_write_base_directory): New global. - (make_class_file_name): Put generated .class file into `-d' - directory, or into source directory if -d not given. Function now - static. - (write_classfile): Free class file name. Handle case where class - file name is NULL. - (DIR_SEPARATOR): New macro. - Include - - * Makefile.in (prefix): New macro. - -1998-11-12 Per Bothner - - * parse.y (patch_invoke): Do less if flag_emit_class_files. - * expr.c (build_known_method_ref): Don't check flag_emit_class_files - here (done in patch_invoke instead). - (case_identity): Moved here from parse.y. - - * java-tree.h (CAN_COMPLETE_NORMALLY): New macro. - * parse.y (java_complete_tree etc): Maybe set CAN_COMPLETE_NORMALLY. - * parse.y (java_complete_tree): Re-order COMPOUND_EXPR in BLOCK - so they can be efficiently scanned without recursion. - Error it ! CAN_COMPLETE_NORMALLY first part of COMPOUND_EXPR. - * expr.c (java_lang_expand_expr): Expand statements of COMPOUND_EXPR - in BLOCK iteratively, rather than recursively. - - * parse.y (do_unary_numeric_promotion): New function. - (patch_unaryop, patch_binop, patch_array_ref): Use it. - - * parse.y (patch_newarray): Various fixes. - - Re-do handling of switch statements (for proper block scoping). - * parse.y: Add just a single block for the enture switch block, - but don't create any "case blocks". - (group_of_labels): Rmeoved unneeded non-terminal. - CASE_EXPR and DEFAULT_EXPR are added to current block. - * expr.c (java_lang_expand_expr): Inline SWITCH_EXPR here. - Now also need to handle CASE_EXPR and DEFAULT_EXPR. - * java-tree.h (SWITCH_HAS_DEFAULT): New macro. - * parse.y (wfl_operator, print_int_node): Make non-static. - (java_complete_tree): CASE_EXPR and DEFAULT_EXPR are now processed - as part of recursive scan of block. - (java_expand_switch ): Removed - inlined into java_lang_expand_expr. - (patch_switch_statement): Most tests move dinto java_complete_tree. - - * parse.y: Make various production be non-typed (void). - * parse.y (parse_error): Merged into issue_warning_error_from_context. - * parse.y (add_stmt_to_compound): Don't create/change extra node. - (patch_method_invocation_stmt): Renamed to patch_method_invocation. - - * jcf-write.c (struct jcf_handler): New type. - (struct jcf_switch_state): New type. - (SWITCH_ALIGN_RELOC, BLOCK_START_RELOC): New relocation kinds. - (alloc_handler, emit_unop, emit_reloc): New functions. - (adjust_typed_op): Add extra parameter ("max type" offset). - (emit_switch_reloc, emit_case-reloc): New function. - (generate_bytecode_conditional): Handle REAL_TYPE comparisons. - (generate_bytecode_insns): Support REAL_CST, switch statements, - exception handling, method calls, object/array creation, and more. - - * class.c: Remove some unused variables. - * constants.c (find_string_constant): New function. - (count_constant_pool_bytes): Fix to correctly handle wide constants. - * decl.c (complete_start_java_method): Don't _Jv_InitClass - if flag_emit_class_files. - -1998-11-12 Tom Tromey - - * jcf-io.c (find_class): Added explanatory comment. - - * jcf-path.c (add_entry): Look for `.zip' at end of filename. Add - trailing slash to `.zip' entries. - - * jvspec.c (lang_specific_driver): Correctly handle case where - GC_NAME not defined. - -1998-11-11 Tom Tromey - - * jvspec.c (GC_NAME): New define. - (lang_specific_driver): Use GC_NAME. Add GC_NAME to command line - if required. - * Make-lang.in (jvspec.o): Define WITH_GC_. - -1998-11-11 Per Bothner - - * jcf-dump.c (TABLE_SWITCH): Fix typos. - -1998-11-11 Tom Tromey - - * jcf-dump.c (main): Correctly recognize `--'-style long options. - -1998-11-10 Alexandre Petit-Bianco - - * class.c (is_compiled_class): Call safe_layout_class for class - compiled from source. - * conver.h (convert_to_integer, convert_to_real, - convert_to_pointer): Added prototypes. - * decl.c (init_decl_processing): Non longer push the decls of - `methodtable', `constants', `Class', `Field', `dispatchTable' - `jexception' and `Method'. - * expr.c (build_invokeinterface): New function. - (expand_invoke): static variable CLASS_IDENT now in - build_invokeinterface. Use build_invokeinterface. - (expand_java_field_op): Moved code to inline - java.lang.PRIMTYPE.TYPE into a function. - (build_primtype_type_ref): New function. - * java-tree.def (INSTANCEOF_EXPR): New tree code. - * java-tree.h (CLASS_METHOD_CHECKED_P, METHOD_DEPRECATED, - FIELD_DEPRECATED, CLASS_DEPRECATED): New flag macros. - (DECL_CONSTRUCTOR_P): Fixed typo in comment. - (DECL_LOCAL_STATIC_VALUE): New macro. - (build_invokeinterface, build_primtype_type_ref): New function - prototypes. - (java_parse_abort_on_error): Macro rewritten. - * jcf-parse.c (current_method): Add comment to declaration. - (parse_zip_file_entries, process_zip_dir, void parse_source_file): - Function prototypes fixed. - (jcf_parse_source): push/pop parser context. save/restore global. - (parse_source_file): Fixed leading comment. Now take a - IDENTIFIER_NODE as an argument. Doesn't check methods, layout - classes and pop the parser context anymore. - (yyparse): Push parser context, save globals, parse the source - file, restore globals and pop the parser context when processing a - source file. - * jcf.h (VERBOSE_SKELETON): Replaces SOURCE_FRONTEND_DEBUG define. - * lex.c (java_parse_doc_section): New function. - (java_lex): Call java_parse_doc_section when appropriate. Build an - operator around INSTANCEOF_TK. - * lex.h (java_lineterminator, java_sprint_unicode, - java_unicode_2_utf8, java_lex_error, java_store_unicode): - Prototypes rewritten. - (java_parse_escape_sequence, java_letter_or_digit_p, - java_parse_doc_section, java_parse_end_comment, java_get_unicode, - java_read_unicode, java_store_unicode, java_read_char, - java_allocate_new_line, java_unget_unicode, java_sneak_unicode): - Added function prototypes. - * parse.h (VERBOSE_SKELETON): Replaces SOURCE_FRONTEND_DEBUG - define. - (JNULLP_TYPE_P, CHECK_METHODS, CHECK_DEPRECATED, REGISTER_IMPORT): - New macros - (struct parser_ctxt): New fields: deprecated, - current_parsed_class_un, gclass_list. - (fix_method_argument_names, issue_warning_error_from_context, - resolve_package, lookup_package_type): New function prototypes. - (resolve_expression_name): Fixed function prototype. - (find_applicable_accessible_methods_list): Fixed indentation, added - extra argument in prototype. - (check_final_assignment, build_null_of_type, check_deprecation, - check_method_redefinition, reset_method_name, - java_check_regular_methods, java_check_abstract_methods, - maybe_build_primttype_type_ref): New function prototype. - * parse.y (conver.h): Include. - (INSTANCEOF_TK): Tagged . - (single_type_import_declaration): Use REGISTER_IMPORT macro. - (relational_expression:): Build binop for instanceof. - (java_push_parser_context): Remember ctxp->gclass_list across - contexts. - (java_pop_parser_context): Simply return if no context - exists. Remember gclass_list across contexts. - (issue_warning_error_from_context): New function. - (parse_error_context): Don't setup ctxp->elc here. Call - issue_warning_error_from_context instead. - (parse_warning_context): Likewise. - (maybe_create_class_interface_decl): Removed DECL_ARTIFICIAL - setup. Link new class/interface to ctxp->gclass_list. - (add_superinterfaces): Register interface as incomplete if not - loaded. - (create_class): Remember class unqualified name in - ctxp->current_parsed_class_un. Check class deprecation. - (register_fields): Check field deprecation. Remember static final - field value in DECL_LOCAL_STATIC_VALUE. Changed comment in part - processing INIT. - (method_header): New local variable ORIG_ARG. Use unqualified - current class name for check on constructor errors. Promote return - type if of record type. Argument list fix moved in - fix_method_argument_names, called here. Check method deprecation. - (fix_method_argument_names): New function. - (method_declarator): Promote record typed arguments. - (safe_layout_class): Check class methods before layout. - (java_complete_class): Compute field layout when patched. - (do_resolve_class): Try to load class after having it renamed - after the package name. - (get_printable_method_name): Use DECL_CONTEXT. - (reset_method_name): New function. - (check_method_redefinition): Use reset_method_name. - (java_check_regular_methods): New local variable - SAVED_FOUND_WFL. Temporarily reinstall overriding/hiding method - names for error report. Check for compile-time error when method - found has default (package) access. - (java_check_abstract_methods): Now takes an interface DECL node as - an argument. Also reinstall real name on unchecked - overriding/hiding methods for error report. - (java_check_methods): Fixed leading comment. Get classes to verify - from ctxp->gclass_list. Use CHECK_METHODS macro and set - CLASS_METHOD_CHECKED_P on class verification. - (lookup_java_method2): Get real method name if necessary. - (find_in_imports): Don't check package class access here. - (resolve_package, lookup_package_type): New functions. - (java_layout_classes): Fixed leading comment. Take classes to be - laid out from ctxp->gclass_list. - (java_complete_expand_methods): Don't expand native and abstract - methods. - (java_expand_classes): New function. - (resolve_expression_name): Use additional argument ORIG. Retrieve - values of static final field of primitive types. - (resolve_field_access): Handles static final field of promotive - type. - (resolve_qualified_expression_name): Handle STRING_CST as - primaries and package name resolution. Check deprecation on found - decls. Set where_found and type_found on non static field resolved - during qualification. Layout non primitive field decl types. - (check_deprecation): New function. - (maybe_access_field): Simplified. - (patch_method_invocation_stmt): Local variable CLASS_TYPE - removed. Reverse method's argument when primary is a type. Don't - use CLASS_TYPE to report problems, use IDENTIFIER_WFL - instead. Include abstract class in the list of class searchable - for constructors. Use DECL_CONTEXT of found method for access - checks. Check method deprecation. - (patch_invoke): Pay extra care to NEW_CLASS_EXPR type call when - converting arguments. Handle INVOKE_INTERFACE. - (lookup_method_invoke): Search constructor using existing - infrastructure (don't rely on lookup_java_constructor anymore). - (find_applicable_accessible_methods_list): Extra argument flag - LC. Now include constructor in the search. - (qualify_ambiguous_name): Conditional expression are primaries. - (not_initialized_as_it_should_p): static final are always - initialized. - (java_complete_tree): Pass extra NULL argument to - resolve_expression_name. Stricter test to carry on patching - assignments. New case for INSTANCEOF_EXPR. - (complete_function_arguments): Inline PRIMTYPE.TYPE read access. - (check_final_assignment, maybe_build_primttype_type_ref): New - functions. - (patch_assignment): Detect resolved static finals and carry normal - assignment error check on them. Inline PRIMTYPE.TYPE read access. - (try_builtin_assignconv): Access constant 0 on all primitive - types. - (valid_builtin_assignconv_identity_widening_p): Accept identical - types. Accept all promoted type on int type. - (valid_ref_assignconv_cast_p): Accept a null pointer to be - assigned to a reference. - (valid_method_invocation_conversion_p): Accept to check null - pointers. - (build_binop): Merge declaration and initialization of local - variable BINOP. - (patch_binop): New case for INSTANCEOF_EXPR. NE_EXPR to accept all - numeric types. Improved validity test for qualify operators on - references. - (patch_unaryop): Broadened rejection test for PREDECREMENT_EXPR - and PREINCREMENT_EXPR. Also detect resolved static finals of a - primitive type and issue the appropriate error message. - (resolve_type_during_patch): Mark class loaded when resolved. - (patch_cast): Allow null to be cased to reference types. - (build_null_of_type): New function. - (patch_array_ref): Handle array on references correctly. - (patch_return): Removed unused local variable MODIFY. Force - boolean to be returned as integers. Allows null to be returned by - a function returning a reference. - * typeck.c (convert_to_integer, convert_to_real, - convert_to_pointer): Prototypes moved to convert.h - (lookup_argument_method): Use method real name, if necessary. - -1998-10-30 Tom Tromey - - * class.c (build_class_ref): Changed name of primitive classes to - start with `_Jv_'. - - * class.c (make_class_data): Renamed fields: nmethods to - method_count, method_count to dtable_method_count. Always set - `state' field to 0. - * decl.c (init_decl_processing): Likewise. - -1998-10-28 Alexandre Petit-Bianco - - * class.c (layout_class): Don't mangle , produce - __finit instead. Don't verify artificial methods. - * decl.c (finit_identifier_node): New declared global. - (init_decl_processing): finit_identifier_node initialized. - * java-tree.def (CONDITIONAL_EXPR): New Java tree code. - * java-tree.h (finit_identifier_node): Declared as extern. - (struct lang_decl): New field called_constructor. - (DECL_CONSTRUCTOR_CALLS): Access macro to called_constructor. - (CLASS_HAS_FINIT_P): New macro. - (CALL_CONSTRUCTOR_P): Leading comment changed. Macro now checks - explicit constructor invocation. - (CALL_EXPLICIT_CONSTRUCTOR_P, CALL_THIS_CONSTRUCTOR_P, - CALL_SUPER_CONSTRUCTOR_P): New macros. - (write_classfile): Added prototype. - * jcf-parse.c (jcf_parse_source): Parse and remember for - generation if the file was seen on the command line. - (parse_source_file): Don't write the class file here. - (yyparse): Loop on files rewritten. Set current_jcf. - (parse_zip_file_entries): Parse class file only if it was found. - * lang.c (init_parse): Don't open command line provided filename - here. - (lang_parse): Don't set main_jcf anymore. - * parse.h (ABSTRAC_CHECK): Capitalized arguments. - (JCONSTRUCTOR_CHECK): New macro. - (JBSC_TYPE_P): New macro. - (IN_TRY_BLOCK_P, EXCEPTIONS_P): Fixed leading comment. - (COMPLETE_CHECK_OP_2): New macro. - (struct parse_ctxt): New field explicit_constructor_p. - (check_class_interface_creation): Fixed prototype indentation. - (patch_method_invocation_stmt): Prototype reflects added argument. - (patch_invoke): Likewise. - (complete_method_declaration, build_super_invocation, - verify_constructor_circularity, - build_this_super_qualified_invocation, get_printable_method_name, - patch_conditional_expr, maybe_generate_finit, fix_constructors, - verify_constructor_super, create_artificial_method, - start_artificial_method_body, end_artificial_method_body, - generate_field_initialization_code): New function prototypes. - * parse.y: Fixed leading comment - (constructor_header:, constructor_body:, block_end:): Rules tagged - . - (type_declaration:): Call maybe_generate_finit. - (method_declaration:): Action for method_body: placed in new - function complete_method_declaration, called here. - (constructor_declaration:): Defined actions. Removed leading - FIXME. - (constructor_header:): New rule with action. - (constructor_body:): Rule rewritten using block_begin: and - block_end:. Defined actions. - (constructor_declarator:, explicit_constructor_invocation:): - Defined actions. - (block:): Use new rules block_begin: block_end:. - (block_begin:, block_end:): New rules and actions. - (block_statements:): Fixed error message for explicit - constructors. - (method_invocation:): Call build_this_super_qualified_invocation - if primary is `this' or `super' was seen. - (conditional_expression:): Action defined. - (extra_ctxp_pushed_p): New static global flag. - (java_parser_context_save_global): Create parser context if - necessary. Use extra_ctxp_pushed_p to remember it. - (java_parser_context_restore_global): Pop extra parser context if - one exists. - (build_array_from_name): Array on primitive types are marked - loaded. - (register_fields): Restore new name in field initializer - expression if type was altered. Non static fields initialized upon - declaration marked initialized. - (maybe_generate_finit): New function. - (maybe_generate_clinit): Use create_artificial_method, - start_artificial_method_body, end_artificial_method_body. Generate - debug info for enclosed initialization statements. - (method_header): Fixed leading comment. Check constructor - flags. Detect constructor declarations and set DECL_CONSTRUCTOR_P - accordingly. - (complete_method_declaration, constructor_circularity_msg, - verify_constructor_circularity): New functions. - (get_printable_method_name): New function. - (check_method_redefinition): Don't rename methods. Fix - declared constructor names. Error message for - constructors modified. - (java_check_regular_methods): Local variable seen_constructor - renamed saw_constructor. Skip verification on constructors. Create - default constructor with create_artificial_method. - (java_check_methods): Removed unnecessary empty line. - (create_artificial_method, start_artificial_method_body, - end_artificial_method_body): New functions. - (java_layout_classes): Changed leading comment. Reverse fields - list if necessary. Always layout java.lang.Object if being - defined. - (java_complete_expand_methods): Verify constructor circularity. - (java_complete_expand_method): Call fix_constructor on - constructors. Local variable no_ac_found removed. Restore - bindings if method body expansion failed. - (fix_constructors, verify_constructor_super, - generate_field_initialization_code): New function. - (java_expand_classes): Fixed leading comment. Write class file - here. - (resolve_expression_name): Check for illegal instance variable - usage within the argument scope of an explicit constructor - invocation. - (resolve_qualified_expression_name): Pass extra from_super flag - when invoking patch_method_invocation_stmt. New case for - conditional expression when used as a primary. Check for error - when acquiring super. - (patch_method_invocation_stmt): Added extra argument super. New - local variable is_static_flag. Set class_to_search according to - the nature of the constructor invocation. Don't add `this' - argument when expanding NEW_CLASS_EXPR. Check for illegal method - invocation within the argument scope of explicit constructor - invocation. Set is_static according to is_static_flag. Provide - extra `super' argument to patch_invoke invocation. - (patch_invoke): New argument from_super. Loop on arguments - indentation fixed. Pass from_super to invocation_mode. New switch - case INVOKE_SUPER. Fixed error message in switch default case. - Don't use CALL_CONSTRUCTOR_P but rather a test on the tree node - value. - (invocation_mode): Return INVOKE_SUPER mode when appropriate. - (lookup_method_invoke): Fixed prototypes in candidates list. Error - message takes constructors into account. - (find_applicable_accessible_methods_list): Fixed indentation. - (qualify_ambiguous_name): Take explicit constructor invocation - into account. Deal with a conditional expression as a primary to - a method call. - (java_complete_tree): Added local wfl_op3. New CONDITIONAL_EXPR - case. Added extra argument to patch_method_invocation_stmt. - Register calls made to explicit constructor `this'. Don't call - save_expr in ARRAY_REF case when emitting class files. Check for - illegal use of this when expanding explicit constructor invocation - arguments. - (complete_function_arguments): Set and reset parser context - explicit_constructor_p field value when appropriate. - (build_super_invocation, build_this_super_qualified_invocation): - New functions. - (patch_assignment): Fixed typo. - (patch_unaryop): Check on final fields occurs only when a decl - exits. - (patch_return): Take constructors into account. - (patch_conditional_expr): New function. - * typeck.c (build_java_signature): Removed unnecessary empty line. - -1998-10-28 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (jcf-dump, gcjh): Link in $(LIBS) too. - -1998-10-28 Tom Tromey - - * decl.c (init_decl_processing): Renamed fields. - * class.c (make_class_data): Renamed bfsize, nfields, nsfields, - interface_len, msize fields. - - * class.c (make_class_data): Removed subclass_head and - subclass_next fields. - * decl.c (init_decl_processing): Removed subclass_head and - subclass_next fields. - -1998-10-28 Jeffrey A Law (law@cygnus.com) - - * jcf-write.c (emit_load_or_store): Avoid implicit int arguments. - * mangle.c (emit_unicode_mangled_name): Similarly. - -1998-10-26 Nick Clifton - - * jcf-parse.c (get_constant): Place braces around code to compute - 'd' when REAL_ARITHMETIC is not defined. - -1998-10-25 H.J. Lu (hjl@gnu.org) - - * Make-lang.in (jv-scan$(exeext)): Add stamp-objlist to - dependency. - -1998-10-23 Tom Tromey - - * lang-specs.h: `.zip' files are input to jc1. - -1998-10-22 Per Bothner - - * jvspecs.c: Add (but don't enable) support for combining multiple - .class and .java input filenames to a single jc1 invocation. - Add support for -C flag (copile to .class files). - Translate -classpath and -CLASSPATH arguments. - * lang-specs.h: Don't set %2 spec. - -1998-10-22 Tom Tromey - - * jcf-path.c (add_entry): Don't add trailing separator if entry is - a .zip file. - (add_path): Don't add trailing separator to non-empty path - elements. - - * lang.c (lang_decode_option): Check for -fclasspath and - -fCLASSPATH before examining other `-f' options. - - * java-tree.h (finalize_identifier_node): Don't declare. - * class.c (make_class_data): Don't push "final" field. - * decl.c (init_decl_processing): Don't push "final" field. - (finalize_identifier_node): Removed. - (init_decl_processing): Don't set finalize_identifier_node. - - * config-lang.in (stagestuff): Added jcf-dump and jv-scan. - -1998-10-11 Anthony Green - - * Make-lang.in (java): Depend on jcf-dump and jv-scan. - (JV_SCAN_SOURCES): New macro. - (JCF_DUMP_SOURCES): Likewise. - (jcf-dump$(exeext)): New target. - (jv-scan$(exeext)): New target. - -1998-10-22 Tom Tromey - - * Makefile.in (LEX): Removed. - (LEXFLAGS): Likewise. - (SET_BISON): New macro. - (BISON): Removed. - ($(PARSE_C)): Use SET_BISON. Run bison from srcdir to avoid - spurious diffs in parse.c. - ($(PARSE_SCAN_C)): Likewise. - (PARSE_DIR): New macro. - (PARSE_C): Use it. - (PARSE_SCAN_C): Likewise. - (PARSE_RELDIR): New macro. - - * jcf-io.c (saw_java_source): Define here, not in jcf-parse.c. - - * jcf-io.c (find_class): Use saw_java_source to determine when to - look for `.java' file. - * jcf-parse.c (saw_java_source): New global. - (yyparse): Set it if `.java' file seen. - - * Make-lang.in (JAVA_SRCS): Added jcf-path.c. - (GCJH_SOURCES): Likewise. - * Makefile.in (datadir): New macro. - (libjava_zip): Likewise. - (JAVA_OBJS): Added jcf-path.o. - (../jcf-dump$(exeext)): Depend on and link with jcf-depend.o. - (../gcjh$(exeext)): Likewise. - (jcf-path.o): New target. - * java-tree.h (fix_classpath): Removed decl. - * jcf-parse.c (fix_classpath): Removed. - (load_class): Don't call fix_classpath. - * parse.y (read_import_dir): Don't call fix_classpath. - * lex.h: Don't mention classpath. - * lex.c (java_init_lex): Don't initialize classpath. - * jcf-io.c (classpath): Removed global. - (find_class): Use jcf_path iteration functions. Correctly search - class path for .java file. - (open_in_zip): New argument `is_system'. - * jcf-dump.c (main): Call jcf_path_init. Recognize all new - classpath-related options. - * lang.c (lang_decode_option): Handle -fclasspath, -fCLASSPATH, - and -I. - (lang_init): Call jcf_path_init. - * lang-options.h: Mention -I, -fclasspath, and -fCLASSPATH. - * lang-specs.h: Handle -I. Minor cleanup to -M options. - Correctly put braces around second string in each entry. - * gjavah.c (main): Call jcf_path_init. Recognize all the new - classpath-related options. - (help): Updated for new options. - * jcf.h: Declare functions from jcf-path.c. Don't mention - `classpath' global. - * jcf-path.c: New file. - - * jcf-depend.c: Include jcf.h. - - * jcf-write.c (localvar_alloc): Returns `void'. - (localvar_free): Removed unused variable. - - * lang.c (OBJECT_SUFFIX): Define if not already defined. - (init_parse): Use OBJECT_SUFFIX, not ".o". - -1998-10-21 Alexandre Petit-Bianco - - * class.c (emit_register_classes): Renamed from - emit_register_class. - * java-tree.h (emit_register_classes): Prototype renamed from - emit_register_class. - * jcf-parse.c (yyparse): Call emit_register_classes once before - returning. - * parse.y (java_expand_classes): No longer register classes. - -1998-10-20 Alexandre Petit-Bianco - - * class.c (is_compiled_class): New local variable - seen_in_zip. Identify classes found in currently compiled source - file(s). - * decl.c (complete_start_java_method): Fixed typo. - * java-tree.h (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P, - HAS_BEEN_ALREADY_PARSED_P, IS_A_COMMAND_LINE_FILENAME_P): New macros. - (CLASS_P): Moved around. - (java_parse_abort_on_error): Macro moved from jcf-parse.c - * jcf-parse.c (java_parse_abort_on_error): Macro moved to - java-tree.h - (jcf_parse_source): Changed leading comment. Removed unnecessary - fclose and CLASS_FROM_SOURCE_P marking. - (parse_source_file): New local variables remember_for_generation - and filename. Mark parsed file name identifier node. Removed block - executed when parse_only was null. Set remember_for_generation. - Use it as an argument to java_pop_parser_context. - (yyparse): New local variables several_files, list, next node and - current_file_list. Split ampersand separated file names into - current_file_list. Iterate through the list and parse accordingly. - * parse.h (java_pop_parser_context): New function prototype. - * parse.y (ctxp_for_generation): New static global variable. - (java_pop_parser_context): New argument generate. Link popped ctxp - to ctxp_for_generation list accordingly. - (java_complete_expand_methods): Fixed indentation. - (java_expand_classes): New function. - -1998-10-17 Per Bothner - - * Makefile.in: Link with libiberty.a instead of memmove.o. - -1998-10-16 Alexandre Petit-Bianco - - * lex.c (setjmp.h): No longer included. - * lex.h (setjmp.h): Included. - * parse.h (SET_TYPE_FOR_RESOLUTION): New macro. - (duplicate_declaration_error_p): Renamed from - duplicate_declaration_error. - (build_array_from_name): New function prototype. - * parse.y (setjmp.h): No longer included. - (variable_declarator_id): Define action. - (build_array_from_name): New function. - (duplicate_declaration_error_p): Renamed from - duplicate_declaration_error. Fixed leading comment. - (register_fields): Main `for' loop reorganized. Uses - SET_TYPE_FOR_RESOLUTION and build_array_from_name. - (method_declarator): Uses SET_TYPE_FOR_RESOLUTION and call - build_array_from_name. - (resolve_class): Set CLASS_LOADED_P on newly build array dimension - types. - (read_import_dir): Don't try to skip `.' and `..'. - (declare_local_variables): Uses SET_TYPE_FOR_RESOLUTION and - build_array_from_name. Main `for' loop reorganized. - (resolve_qualified_expression_name): When building access to a - field, use the type where the field was found, not its own type. - (maybe_access_field): Use field DECL_CONTEXT if the type where the - field was found is null. - (qualify_ambiguous_name): Sweep through all successive array - dimensions. - -1998-10-14 Alexandre Petit-Bianco - - * java-tree.h (pop_labeled_block, lang_printable_name, - maybe_add_interface, set_super_info, get_access_flags_from_decl, - interface_of_p, inherits_from_p, fix_classpath, - complete_start_java_method, emit_handlers, init_outgoing_cpool, - make_class_data, register_class, alloc_name_constant): New - function prototypes. - * lang.c (lang_decode_option): Set argc argument unused. Fixed - indentation. Added cast to remove warning. - (lang_printable_name): Set v argument unused. - (lang_print_error): Added argument to lang_printable_name call. - (java_dummy_print, print_lang_decl, print_lang_type, - print_lang_identifier, lang_print_xnode): All argument marked - unused. - * lex.c (java_unget_unicode): Removed unnecessary argument. - (java_allocate_new_line): Unused local variable is gone. - (java_read_char): Added parenthesis in expressions to remove - warnings. Added final return statement. - (java_read_unicode): Added parenthesis in expression to remove - warning. - (java_parse_end_comment): Fixed java_unget_unicode invocation. - (java_parse_escape_sequence): Likewise. - (java_lex): Unused local variables are gone. Fixed - java_unget_unicode invocation. - * lex.h (set_float_handler): Prototype added when JC1_LITE not - defined. - * parse.h (ERROR_CANT_CONVERT_TO_BOOLEAN): Fixed - lang_printable_name invocation in macro. - (ERROR_CANT_CONVERT_TO_NUMERIC, ERROR_CAST_NEEDED_TO_INTEGRAL): - Likewise. - (duplicate_declaration_error): Suppressed unused argument in - prototype. - (identical_subpath_p): Function declaration is gone. - (patch_invoke): Suppressed unused argument in prototype. - (patch_cast, build_labeled_block, check_thrown_exceptions): - Likewise. - * parse.y (setjmp.h): Included - (toplev.h): Likewise. - (field_declaration:): Suppressed unused local - (label_decl:): Fixed build_labeled_block invocation. - (java_pop_parser_context): Put extra parenthesis around assignment - in if. - (yyerror): Suppressed unused local variables. - (variable_redefinition_error): Fixed lang_printable_name - invocation. - (create_interface): Suppressed unused local variables. - (create_class): Likewise. - (duplicate_declaration_error): Suppressed unused argument. Fixed - lang_printable_name invocation. - (register_fields): Suppressed unused local variable. Fixed - duplicate_declaration_error invocation. - (method_header): Suppressed unused local variable. - (method_declarator, parser_check_super): Likewise. - (java_complete_class): Suppressed unused local variable. Fixed - fatal error message. - (complete_class_report_errors): Added default: in switch. - (java_check_regular_methods): Fixed lang_printable_name - invocations. - (check_throws_clauses): Likewise. - (java_check_abstract_methods): Suppressed unused local - variable. Fixed lang_printable_name invocation. - (read_import_entry): Added supplemental return statement. - (read_import_dir): Suppressed unused local variables. - (check_pkg_class_access, declare_local_variables): Likewise. - (source_start_java_method): Suppressed unused extern variable - declarations - (expand_start_java_method): Suppressed unused extern and local - variable declarations. - (java_complete_expand_methods): Likewise. - (java_complete_expand_method): Suppressed unused local variables. - (make_qualified_name): Likewise. - (resolve_qualified_expression_name): Added default: in - switch. Fixed lang_printable_name invocation. - (class_instance_creation_expression): Added parenthesis around - expressions. - (patch_method_invocation_stmt): Fixed lang_printable_name and - patch_invoke invocations. - (check_for_static_method_reference): Fixed lang_printable_name - invocation. - (patch_invoke): Suppressed unused arguments and local variables. - (lookup_method_invoke): Suppressed unused local variables. - (qualify_ambiguous_name): Added default: in switch. - (identical_subpath_p): Function removed. - (patch_assignment): Suppressed unused local variables. Suppressed - unnecessary if statement. Fixed lang_printable_name invocations. - (try_builtin_assignconv): Fixed lang_printable_name invocations. - (valid_ref_assignconv_cast_p): Parenthesis around - expression. Suppressed unused local variables. - (build_binop): Suppressed unused local variables. fixed - lang_printable_name invocations. - (string_constant_concatenation): Suppressed unused local - variables. - (patch_unaryop): Fixed lang_printable_name invocation. - (patch_cast): Suppressed unnecessary argument. Fixed - lang_printable_name invocation. - (patch_array_ref): Fixed lang_printable_name invocation. - (patch_newarray, patch_return, patch_if_else_statement): Likewise. - (build_labeled_block): Suppressed unused argument. - (generate_labeled_block): Fixed build_labeled_block invocation. - (build_loop_body): Suppressed unused local variables. - (patch_loop_statement): Likewise. - (patch_exit): Fixed lang_printable_name invocation. - (patch_switch_statement): Likewise. - (case_identity): First argument marked unused. - (patch_try_statement): Fixed lang_printable_name invocations. - (patch_synchronized_statement, patch_throw_statement): Likewise. - (check_thrown_exceptions): Fixed check_thrown_exceptions and - lang_printable_name invocations. - (check_thrown_exceptions_do): Suppressed unused argument. - -1998-10-14 Tom Tromey - - * jcf-write.c (write_classfile): Add output class file as target. - * lang-options.h: Added -MD, -MMD, -M, and -MM. - * jcf.h: Added declarations for dependency-tracking functions. - * lang-specs.h: Handle -M, -MM, MD, and -MMD. - * lang.c (lang_decode_option): Recognize -MD and -MMD. - (finish_parse): Call jcf_dependency_write. - (dependency_tracking): New global. - (DEPEND_SET_FILE): New define. - (DEPEND_ENABLE): New define. - (init_parse): Enable dependency tracking if required. - Include "flags.h". - * Makefile.in (JAVA_OBJS): Added jcf-depend.o. - (../jcf-dump$(exeext)): Depend on and link with jcf-depend.o. - (../gcjh$(exeext)): Likewise. - (jcf-depend.o): New target. - * Make-lang.in (JAVA_SRCS): Added jcf-depend.c. - (GCJH_SOURCES): Likewise. - * jcf-io.c (open_class): Call jcf_dependency_add_file. Added - dep_name argument. - (find_classfile): Added dep_name argument. - (find_class): Compute name of dependency. - (open_in_zip): Call jcf_dependency_add_file. - * gjavah.c (output_file): No longer global. - (usage): Don't mention "gjavah". - (help): Likewise. - (java_no_argument): Likewise. - (version): Likewise. - (main): Recognize and handle -M family of options. - (print_mangled_classname): Return is void. - (process_file): Handle case where output is suppressed. - (HANDLE_END_FIELD): Likewise. - (HANDLE_METHOD): Likewise. - * jcf-depend.c: New file. - -1998-10-13 Jeffrey A Law (law@cygnus.com) - - * java-tree.def: Add missing newline at EOF. - -1998-10-13 Tom Tromey - - * jcf-dump.c (process_class): Use FATAL_EXIT_CODE, not -1. - (main): Likewise. Exit with SUCCESS_EXIT_CODE at end of - function. - Include and "system.h". - (disassemble_method): Undefine RET to avoid clash with - config/i386/i386.h. - -1998-10-13 Alexandre Petit-Bianco - - * decl.c (runtime_exception_type_node, error_exception_type_node): - New global variables. - (init_decl_processing): Initialized. - * expr.c (java_lang_expand_expr): Set caught exception type to - null if catch handler argument doesn't exit. - * java-tree.def (SYNCHRONIZED_EXPR, THROW_EXPR): New Java specific - tree codes. - * java-tree.h (runtime_exception_type_node, - error_exception_type_node): Global variables declared. - (DECL_FUNCTION_THROWS): New macro. - (DECL_FUNCTION_BODY): Modified comment. - (DECL_SPECIFIC_COUNT): Likewise. - (struct lang_decl): New field throws_list. - (IS_UNCHECKED_EXPRESSION_P): New macro. - * lex.c (java_lex): Generate location information for THROW_TK. - * parse.h (PUSH_EXCEPTIONS, POP_EXCEPTIONS, IN_TRY_BLOCK_P, - EXCEPTIONS_P): New macros. - (enum jdep_code): New value JDEP_EXCEPTION. - (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT, - BUILD_ASSIGN_EXCEPTION_INFO, BUILD_THROW, SET_WFL_OPERATOR, - PATCH_METHOD_RETURN_ERROR): New macros. - (patch_method_invocation_stmt): Added new argument to prototype. - (patch_synchronized_statement, patch_throw_statement, - check_thrown_exceptions, check_thrown_exceptions_do, - purge_unchecked_exceptions, check_throws_clauses): New function - prototypes. - * parse.y Fixed typo in keyword section. - (throw:): Rule tagged . - (THROW_TK): Keyword tagged . - (method_header:): Last argument to call to method_header passed - from throws: rule. - (throws:, class_type_list:, throw_statement:, - synchronized_statement:, synchronized:): Defined actions. - (method_header): New local variable current. Register exceptions - from throws clause. - (java_complete_tree): Complete and verify exceptions from throws - clause. - (complete_class_report_errors): Error message on exceptions not - found - (java_check_regular_methods): Fixed typo. Shortcut on private - overriding methods. Changed error message on method - redefinition. Check for throws clause compatibility. - (check_throws_clauses): New function. - (java_check_abstract_methods): Use DECL_NAME for wfl or current - method. Changed error message on method redefinition. - (currently_caught_type_list): New static variable. - (java_complete_expand_methods): Purge unchecked exceptions from - throws clause list. Call PUSH_EXCEPTIONS before walk and - POP_EXCEPTIONS after. - (resolve_qualified_expression_name): Pass new argument as NULL to - patch_method_invocation_stmt. - (patch_method_invocation_stmt): New argument ref_decl. Invoke - PATCH_METHOD_RETURN_ERROR when returning with error. Reverse - argument list when appropriate. Use new argument if non null to - store selected method decl. - (patch_invoke): Convert if necessary args of builtin types before - forming CALL_EXPR. Argument list no longer reversed here. - (invocation_mode): Treat final methods as static methods. - (java_complete_tree): New cases for THROW_EXPR: and - SYNCHRONIZED_EXPR:. Check thrown exceptions when completing - function call. - (complete_function_arguments): No more RECORD_TYPE - conversion. Function parameter nodes no longer saved. - (valid_ref_assignconv_cast_p): Avoid handling null type. - (patch_binop): Fixed null constant reference handling. - (build_try_statement): Use BUILD_ASSIGN_EXCEPTION_INFO and - BUILD_THROW macros. - (patch_try_statement): Fixed comments. Record caught types in - list, push the list, expand try block and pop the list. - (patch_synchronized_statement, patch_throw_statement, - check_thrown_exceptions, check_thrown_exceptions_do, - purge_unchecked_exceptions): New functions. - * typeck.c (lookup_argument_method): Allow WFL in place of method - DECL_NAME during method definition check - -1998-10-09 Tom Tromey - - * gjavah.c (decode_signature_piece): New function. - (print_c_decl): Use it. Added `name_override' argument. - (print_method_info): Use name_override argument to print_c_decl. - (seen_fields): Removed. - (print_field_info): Don't update seen_fields. - (struct method_name): New structure. - (method_name_list): New global. - (print_method_info): Add new method to list of methods. - (name_is_method_p): New function. - (print_field_info): If field name has same name as method, then - change field name. - (process_file): Parse methods before fields. - (field_pass): New global. - (HANDLE_END_FIELD): Take field_pass into account. - -1998-10-07 Kaveh R. Ghazi - - * Makefile.in (keyword.h): Add -L KR-C -F ', 0' flags to gperf. - (keyword.h): Regenerate using gperf 2.7.1 (19981006 egcs). - -1998-10-03 Anthony Green - - * jvspec.c: Fix bug in jvgenmain_spec patch. - -1998-10-02 Alexandre Petit-Bianco - - * Makefile.in (lang.o:): Install dependency on java-tree.def. - * decl.c (soft_exceptioninfo_call_node): New global variable. - (init_decl_processing): Fixed indentation. soft_badarrayindex_node - takes extra integer argument. soft_exceptioninfo_call_node - initialized. - * except.c (java_set_exception_lang_code): New function - (method_init_exceptions): Called here. - (prepare_eh_table_type): New function. - (expand_end_java_handler): Called here. - * expr.c (build_java_throw_out_of_bounds_exception): Now features - one argument. Modified generation of call to - soft_badarrayindex_node to use new argument. - (build_java_arrayaccess): Pass faulty index value to - build_java_throw_out_of_bounds_exception. - (generate_name): New function. - (java_lang_expand_expr): New local variables node, current, - has_finally_p. Expand TRY_EXPR node. - (process_jvm_instruction): Replace top of the stack with thrown - object reference when entering exception handler. - * java-tree.def (TRY_EXPR, CATCH_EXPR, FINALLY_EXPR): New Java - specific tree codes. - * java-tree.h (soft_exceptioninfo_call_node): Declaration of new - global. - (DECL_SPECIFIC_COUNT): New macro. - (prepare_eh_table_type, java_set_exception_lang_code, - generate_name): New function declarations. - (match_java_method): Declaration deleted. - (FINALLY_EXPR_LABEL, FINALLY_EXPR_BLOCK, CATCH_EXPR_GET_EXPR): New - macros. - * lex.c (TRY_TK, CATCH_TK): Generate location information. - * parse.h (redefinition_error, refine_accessible_methods_list, - can_cast_to_p): Function declaration removed. - (classitf_redefinition_error, variable_redefinition_error, - parse_jdk1_1_error, find_applicable_accessible_methods_list, - find_most_specific_methods_list, argument_types_convertible, - enter_a_block, valid_builtin_assignconv_identity_widening_p, - valid_cast_to_p, valid_method_invocation_conversion_p, - try_reference_assignconv, add_stmt_to_compound, - build_jump_to_finally, build_tree_list, patch_try_statement, - java_get_catch_block): New function declarations. - * parse.y (string_buffer_type): Global variable deleted. - (group_of_labels, catches, catch_clause, catch_clause_parameter, - finally): Rules tagged . - (TRY_TK, CATCH_TK): Token tagged . - (class_body_declaration:, class_member_declaration:, - formal_parameter:, explicit_constructor_invocation:, - interface_member_declaration:, constant_declaration:, - primary_no_new_array:, class_instance_creation_expression:, - array_creation_expression:): Issue error on unsuported JDK1.1 - features. - (try_statement:, catches:, finally:): Define actions. - (catch_clause_parameter): New rule. - (catch_clause:): Use new rule catch_clause_parameter. - (parse_jdk1_1_error): New function. - (redefinition_error): Renamed classitf_redefinition_error. - (variable_redefinition_error): New function. - (check_class_interface_creation): Call - classitf_redefinition_error. - (java_complete_tree): Added error message on JDEP_TYPE: case. - (complete_class_report_errors): Fixed indentation. - (declare_local_variables): Call variable_redefinition_error. - (source_end_java_method): Call java_set_exception_lang_code and - emit_handlers where appropriate. - (java_method_add_stmt): Call add_stmt_to_block. - (add_stmt_to_block): New function. - (lookup_method_invoke): Fixed outside comment. new local variable - candicates. Call find_applicable_accessible_methods_list and - find_most_specific_methods_list when searching for a - method. Modified error report to list possible candidates when - applicable. - (find_applicable_accessible_methods_list, - find_most_specific_methods_list, argument_types_convertible): New - function. - (refine_accessible_methods_list): Function deleted. - (java_complete_tree): Handle TRY_EXPR. ARRAY_REF handling: save - expr (if applicable) before calling patch_array_ref. - (build_expr_block): Fixed BLOCK_EXPR_BODY assignment. - (enter_block): Fixed comment. - (enter_a_block): New function. - (patch_assignment): Reorganized. Call try_reference_assignconv for - references. Call valid_cast_to_p instead of can_cast_to_p. - (try_reference_assignconv, - valid_builtin_assignconv_identity_widening_p): New functions. - (valid_ref_assignconv_cast_p): Fixed inverted test on CLASS_FINAL. - (valid_cast_to_p, valid_method_invocation_conversion_p): New - functions. - (build_string_concatenation): Don't resolve StringBuffer. - (patch_cast): Fixed inverted arguments. - (patch_array_ref): Code to save array expr deleted. Call - valid_cast_to_p instead of can_cast_to_p. - (generate_labeled_block): Call generate_name. - (build_jump_to_finally, build_try_statement, java_get_catch_block, - patch_try_statement): New functions. - * typeck.c (match_java_method): Function deleted. - -1998-10-02 Anthony Green - - * jvspec.c: jvgenmain_spec uses different temporary file names. - -1998-10-02 Anthony Green - - * jvspec.c (lang_specific_driver): Fail if user specifies - --main= when not linking. - -1998-09-28 Tom Tromey - - * class.c (make_class_data): Push value for `thread' field. - * decl.c (init_decl_processing): Added `thread' field to class. - - * class.c (add_field): Always make static fields externally - visible. - -1998-09-26 Anthony Green - - * expr.c (build_java_athrow, - build_java_throw_out_of_bounds_exception, expand_invoke, - build_newarray, expand_java_multianewarray, build_java_monitor): - Update comments to reflect _Jv_* function names. - -1998-09-25 Per Bothner - - * decl.c (complete_start_java_method): DECL_RESULT is always promoted. - * decl.c (start_java_method): Handle PROMOTE_PROTOTYPES target macro. - * parse.y (expand_start_java_method): Likewise. - -1998-09-24 Per Bothner - - * expr.c (pop_arguments): Handle PROMOTE_PROTOTYPES target macro. - - * class.c (push_class): IDENTIFIER_SIGNATURE_TYPE is now POINTER_TYPE. - (add_field): No longer need to convert from RECORD_TYPE to pointer, - * expr.c: Remove no-longer-needed calls to promote_type. - * decl.c (give_name_to_locals): Liekwise. - * jcf-parse.c (get_class_constant): Compensate for new signatures. - * parse.y: Add/remove promote_type calls as appropriate. - * typeck.c (parse_signature_type): Returns POINTER_TYPE for objects. - (parse_signature_string): Likewise. - (build_java_array_type): Fix for now signature convenions. - - * lex.c (java_lex): Fix (from Alex) for JC1_LITE problem. - -1998-09-23 Tom Tromey - - * class.c (init_class_processing): libjava function renamed to - _Jv_RegisterClass. - -1998-09-22 Alexandre Petit-Bianco - - * expr.c (java_lang_expand_expr): New case for SWITCH_EXPR. - * java-tree.def: Fixed DEFTREECODE third argument. - (UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, NEW_CLASS_EXPR, THIS_EXPR, - CASE_EXPR, DEFAULT_EXPR): New tree codes for Java. - * java-tree.h: (IS_CRAFTED_STRING_BUFFER_P): New macro. - (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, - JAVA_THIS_EXPR): Now replaced by tree code definitions. - (CALL_CONSTRUCTOR_P): Now uses NEW_CLASS_EXPR. - * lang.c (java_tree_code_type, java_tree_code_length, - java_tree_code_name): New arrays. - (lang_init): Append Java tree node definitions to Gcc ones. - * lex.c (expression_obstack): Declared as extern when JC1_LITE - defined. - (java_init_lex): Initialize wfl_append, wfl_string_buffer, - wfl_to_string. - (java_lex): Allow declaration of empty string constants. Retain - location information on CASE_TK and DEFAULT_TK. - * parse.h (JFLOAT_TYPE_P, JINTEGRAL_TYPE_P, JNUMERIC_TYPE_P, - JPRIMITIVE_TYPE_P, JSTRING_TYPE_P, JSTRING_P, JREFERENCE_TYPE_P): - Modified to be more robust. - (BUILD_APPEND, BUILD_STRING_BUFFER): New macros. - (build_new_invocation, try_builtin_assignconv, - patch_switch_statement, string_constant_concatenation, - build_string_concatenation, patch_string_cst, patch_string, - java_expand_switch): New function declarations. - * parse.y: Rules related to switch and EH tagged . - (label_id): Set to NULL_TREE - (wfl_string_buffer, wfl_append, wfl_to_string): New static global - tree nodes. - (this_or_super:): Fixed indentation. - (statement:, statement_nsi:, statement_without_trailing_substatement:, - statement_expression:): Removed call to RULE on all sub-rules. - (switch_expression:, switch_labels:): New rules. - (switch_statement:, switch_block:, switch_block_statement_groups:, - switch_block_statement_group:, switch_labels:, switch_label:): - Defined actions. - (throw_statement:, synchronized_statement:, try_statement:): - Defined temporary actions. - (class_instance_creation_expression:): Call - build_new_invocation. Fixed indentation. - (field_access): Fixed indentation. - (method_invocation): Likewise. - (make_qualified_primary): Use THIS_EXPR. - (resolve_qualified_expression_name): Use NEW_CLASS_EXPR. When - resolving from SUPER, set *type_found. - (qualify_ambiguous_name): Use NEW_CLASS_EXPR. - (java_complete_tree): Removed unused local variable `location'. Case - for SWITCH_EXPR, sharing code with LOOP_EXPR. Use NEW_ARRAY_EXPR, - NEW_CLASS_EXPR, UNARY_PLUS_EXPR and THIS_EXPR. New string handling - on MODIFY_EXPR: and all binary operator tree code cases. Removed - STRING_CST: case. default: checks for patchable strings. - (complete_function_arguments): Transform string constant or - crafted StringBuffer if necessary. - (build_method_invocation): Fixed comments. - (build_new_invocation): New function. - (patch_assignment): Call try_builtin_assignconv to figure a valid - assignment conversion between builtin types. - (try_builtin_assignconv): New function. - (build_binop): Use URSHIFT_EXPR directly to call build. - (operator_string): Use UNARY_PLUS_EXPR. - (patch_binop): Use UNARY_PLUS_EXPR. Handle string concatenation - operator. - (do_merge_string_cste, merge_string_cste, - string_constant_concatenation, build_string_concatenation, - patch_string, patch_string_cst): New function. - (build_unary_op): Use UNARY_PLUS_EXPR and CONVERT_EXPR. - (patch_unaryop): Likewise. New test of valid ++/-- operands. - (build_newarray_node): Use NEW_ARRAY_EXPR. - (build_this): Use THIS_EXPR. - (build_return): Enable debug information on return statement. - (build_if_else_statement): Likewise. - (complete_labeled_statement): Fixed related comment. - (build_loop_body): Fixed comment. - (build_bc_statement): Enable debug information on break/continue - statements. - (patch_bc_statement): Fixed typos. Handle SWITCH statement - context. - (patch_switch_statement, case_identity, java_expand_switch): New - functions. - -1998-09-21 Per Bothner - - * buffer.h (BUFFER_INIT): New macro. - * jcf-write.c (struct jcf_partial): New type. Put global stuff here. - Pass (struct jcf_partial *state) to most functions. - (jcf_block, jcf_relocation): New types. - Support labels, branches, conditionals, loops. - -1998-09-21 Tom Tromey - - * decl.c (INT_TYPE_SIZE): Define as BITS_PER_WORD if not defined. - -1998-09-21 Per Bothner - - * decl.c (integer_type_node): Make it have INT_TYPE_SIZE. - * verify.c (verify_jvm_instructions): Use int_type_not (32 bits), - not integer_type_node (INT_TYPE_SIZ bits). - - * parse.y (patch_if_else_statement): Accept promoted_boolean_type_node. - - * jcf-reader.c (get_attribute): New HANDLE_EXCEPTION_TABLE hook. - * jcf-dump.c (print_exception_table): New function. - (disassemble_method): Better handling of wide instructions. - Make more robust for bad input. - -1998-09-30 Jeffrey A Law (law@cygnus.com) - - * jcf-write.c (OP2, OP4): Use "_i", not "_I" to avoid problems on - FreeBSD. - -1998-09-17 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (jcf-dump, jvgenmain): Link in memmove.o too. - -1998-09-17 Tom Tromey - - * Makefile.in ($(PARSE_H)): Removed target. - -1998-09-17 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (JAVA_OBJS): Add memmove.o - (memmove.o): New target & rules. - -1998-09-15 Tom Tromey - - * expr.c (expand_invoke): Don't generate a call to the class init - code. - -1998-09-14 Jeffrey A Law (law@cygnus.com) - - * Makefile.in: Add many missing dependencies. - * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h - as appropriate. - * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise. - * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise. - -1998-09-11 Per Bothner - - * decl.c (complete_start_java_method): If method is static (and - not private) call _Jv_InitClass. - * expr.c (expand_invoke): Don't call build_class_init. - - * jvspec.c (jvgenmain_spec): Fix spec for generated .o file. - -1998-09-10 Jeffrey A Law (law@cygnus.com) - - * Make-lang.in (GCJ): Define before using. - -1998-09-09 Jeffrey A Law (law@cygnus.com) - - * gjavah.c (java_no_argument): Renamed from no_argument to avoid - losing due to namespace pollution in GNU getopt.h - -1998-09-09 Tom Tromey - - * Make-lang.in (java.all.build): Don't mention jvgenmain or gcjh. - (java.all.cross): Likewise. - (java.rest.encap): Likewise. - -1998-09-08 Jeffrey A Law (law@cygnus.com) - - * gjavah.c (print_class_decls): Fix thinko in arglist - * jcv-io.c (find_classfile): Similarly. - -1998-09-07 Jeffrey A Law (law@cygnus.com) - - * Makefile.in (INCLUDES): Update for recent toplevel gcc changes. - -1998-09-05 Tom Tromey - - * Make-lang.in (java.maintainer-clean): Don't remove parse.h. - (java.mostlyclean): Remove parse.c and parse-scan.c, not parse.h. - * Makefile.in (PARSE_C): New macro. - (PARSE_H): Likewise. - (PARSE_SCAN_C): Likewise. - ($(PARSE_C)): Target renamed from parse.c. - ($(PARSE_SCAN_C)): Target renamed from parse-scan.c. - (clean): Remove parse-scan.c as well. - (parse.o): Depend on $(PARSE_C). - -1998-09-05 Anthony Green - - * README, license.terms: Removed. - - * Make-lang.in, Makefile.in, class.c, config-lang.in, constants.c, - decl.c, except.c, expr.c, gjavah.c, java-except.h, java-tree.h, - javaop.def, javaop.h, jcf-dump.c, jcf-io.c, jcf-parse.c, - jcf-reader.c, jcf-write.c, jcf.h, jvgenmain.c, jvspec.c, - keyword.gperf, keyword.h, lang-options.h, lang-specs.h, lang.c, - lex.c, lex.h, mangle.c, parse-scan.y, parse.h, parse.y, typeck.c, - verify.c, zextract.c, zipfile.h: Fixed copyright assignment, - and Java trademark attribution. - -1998-09-04 Tom Tromey - - * Makefile.in: Use gcjh, not gjavah. - * config-lang.in (stagestuff): Use gcjh, not gjavah. - * Make-lang.in: Changed gjavah to gcjh everywhere. - -1998-09-03 Per Bothner - - * gjavah.c: Support new -prepend -add -append flags. - (print_method_info): Method is not virtual if class is final. - -1998-09-03 Alexandre Petit-Bianco - - * jv-scan.c: Fixed copyright assignment. - * keyword.gperf: Likewise. - * keyword.h: Likewise. - * lex.c: Fixed copyright assignment. - (java_lex): Push unicode back when parsing '<'. - * lex.h: Fixed copyright assignment. - * parse-scan.y: Likewise. - * parse.h: Fixed copyright assignment. - (build_debugable_stmt, complete_for_loop): New function prototypes. - * parse.y: Fixed copyright assignment. - (for_statement:): Call complete_for_loop. Set EXIT_EXPR to be - size_zero_node when completing a loop with no exit condition. - (for_statement_nsi:): Define action. - (for_init:, for_update:): Return size_zero_node when empty. - (declare_local_variables): Call build_debugable_stmt. - (build_debugable_stmt): New function. - (build_loop_body): Build debugable statement around loop - condition part. - (complete_loop_body): Take into account the debugable statement - around the EXIT_EXPR. - (complete_loop_body): New function. - (patch_exit_expr): Fixed condition inversion. - -1998-09-02 Tom Tromey - - * Make-lang.in (jvspec.o): Use GCC_THREAD_FILE to compute correct - name of thread define. - * jvspec.c (THREAD_NAME): New macro. - (GCLIB): Likewise. - (THREADLIB): Likewise. - (lang_specific_driver): Recognize attempt to link with thread - library or gc library. Recognize -ljava on command line so it - isn't linked against more than once. - -1998-09-02 Alexandre Petit-Bianco - - * parse-scan.y (report_main_declaration): Name of the class - containing `main' can be a qualified name. - -1998-08-31 Tom Tromey - - * config-lang.in: Changed gjavac to gjc everywhere. - * Make-lang.in: Changed gjavac to gjc everywhere. - -1998-08-27 Alexandre Petit-Bianco - - * Make-lang.in (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): New variable. - (java.install-common:): Loop over JAVA_TARGET_INDEPENDENT_BIN_TOOLS - and install the files. - * Makefile.in (JAVA_OBJS_LITE): New variable. - (compiler:): Now include jv-scan as a dependency. - (../jv-scan$(exeext), parse-scan.c): New targets. - (../jcf-dump$(exeext)): Was jcf-dump$(exeext) before. - * config-lang.in (compilers): Removed gcj, gjavah from the list. - * jcf-parse.c (parse_source_file): Call java_layout_classes and - check for errors even if parse_only. - * lex.c (java_init_lex): Reorganized and skip parts if JC1_LITE is - defined. - (yylex): New function. Uses java_lex body. - (java_lex): Removed commented out statement. Remove local variable - literal. Use SET_LVAL_NODE_TYPE and SET_LVAL_NODE where - appropriate. Use macros FLOAT_TYPE_NODE, DOUBLE_TYPE_NODE, - DCONST0, SET_FLOAT_HANDLER, SET_REAL_VALUE_ATOF, - SET_LVAL_NODE_TYPE and GET_TYPE_PRECISION. Don't create STRING_CST - if JC1_LITE is defined. Use BUILD_ID_WFL to build identifiers. Use - SET_MODIFIER_CTX, SET_LVAL_NODE, BUILD_ID_WFL and GET_IDENTIFIER - where appropriate. - (java_lex_error): Empty if JC1_LITE is defined. - (java_get_line_col): Return 0 if JC1_LITE is defined. - * lex.h (JAVA_FLOAT_RANGE_ERROR, JAVA_INTEGRAL_RANGE_ERROR, - SET_MODIFIER_CTX): Moved into the section containing the macros - conditionally defined by JC1_LITE. - (BUILD_OPERATOR,BUILD_OPERATOR2): Just return the TOKEN - argument if JC1_LITE is defined. - (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT, REAL_VALUE_ATOF, - REAL_VALUE_ISINF, REAL_VALUE_ISNAN): Preset to values if JC1_LITE - is defined. - (DCONST0, SET_FLOAT_HANDLER, GET_IDENTIFIER, SET_REAL_VALUE_ATOF, - FLOAT_TYPE, DOUBLE_TYPE, SET_MODIFIER_CTX, GET_TYPE_PRECISION, - SET_LVAL_NODE, SET_LVAL_NODE_TYPE, BUILD_ID_WFL): New macros, set - to different values according to JC1_LITE. - * parse.h (int_fits_type_p, stabilize_reference): Prototype not - declared if JC1_LITE set. - (jdep_code, typedef struct _jdep, typedef struct _jdeplist): Not - defined if JC1_LITE not set. - (struct parser_ctx): Reorganized and skip the jc1 front end part - if JC1_LITE set. - (java_layout_classes): New function definition. - (java_push_parser_context, java_init_lex, yyparse, yylex, - yyerror): Prototype always declared. All other static function - prototypes declared only if JC1_LITE is not set. - * parse.y (yyparse, yylex, yyerror): No longer declared here. Now - declared in parse.h. - (java_layout_classes): New function. - (java_complete_expand_methods): No longer layout the class here. - * parse-scan.y: New file. - * jv-scan.c: New file. - -1998-08-25 Tom Tromey - - * gjavah.c (main): Handle -friend option. - (friend_specs): New global. - (generate_access): Handle friend_specs. - (process_file): Likewise. - (MAX_FRIENDS): New macro. - (friend_count): New global. - (print_cxx_classname): Added `prefix' argument. Ignore arrays. - Changed all callers. - -1998-08-24 Per Bothner - - * jcf-dump.c (process_class): Move JCF_FINISH use to main, - (main): Handle processing all the entries of a named .zip archive. - * jcf-io.c (jcf_trim_old_input): New function. - * jcf.h (GET_u2_le,GET_u4_le,JCF_readu2_le,JCF_readu4_le): New macros. - -1998-08-24 Per Bothner - - * lang.c (flag_assume_compiled): Make default be on. - -1998-08-21 Per Bothner - - * jcf-dump.c: Add bunches of flags to control output more. - (process_class): New function; support printing more than one class. - (main): Support new --print-main and --javap flags. - * jcf-reader.c (IGNORE_ATTRIBUTE): New hook. - * jcf.h (CPOOL_INDEX_IN_RANGE): New macro. - -1998-08-20 Per Bothner - - Change mangling of dispatch table to match C++ vtable (w/thunks). - * class.c (build_dtable_decl), java-tree.h: New function. - (make_class_data): Call it. - * decl.c (init_decl_processing): Likewise. - -1998-08-19 Warren Levy - - * decl.c (init_decl_processing): Use _Jv_NewObjectArray, not - soft_anewarray; adjust args passed. - * expr.c (build_anewarray): Adjust args for soft_anewarray_node to - match _Jv_NewObjectArray. - -1998-08-19 Alexandre Petit-Bianco - - * decl.c (push_labeled_block, pop_labeled_block): New functions. - * expr.c (loopup_label): Call create_label_decl. - (create_label_decl): New function. - (java_lang_expand_expr): Call expand_start_bindings with argument - set to zero. - * java-tree.h Added space after PROTO in function declarations - when necessary. - (IS_FOR_LOOP_P, IS_BREAK_STMT_P): New macros. - (create_label_decl, push_labeled_block): New function - declarations. - * lex.c (label_id): Initialize. - (SUPER_TK, THIS_TK, RETURN_TK): Merged common actions in final - switch. - * parse.h Added space after PROTO in function declarations when - necessary. - (LOOP_EXPR_BODY_MAIN_BLOCK, LOOP_EXPR_BODY_UPDATE_BLOCK, - LOOP_EXPR_BODY_CONDITION_EXPR, LOOP_EXPR_BODY_LABELED_BODY, - LOOP_EXPR_BODY_BODY_EXPR, LOOP_HAS_LABEL_P, LOOP_HAS_LABEL_SKIP_P, - PUSH_LABELED_BLOCK, POP_LABELED_BLOCK, PUSH_LOOP, POP_LOOP): New - macros. - (struct parser_ctxt): New fields current_loop, - current_labeled_block. - (build_if_else_statement, patch_if_else_statement, - add_stmt_to_compound, patch_exit_expr, build_labeled_block, - generate_labeled_block, complete_labeled_statement, - build_bc_statement, patch_bc_statement, patch_loop_statement, - build_new_loop, build_loop_body, complete_loop_body): New function - declarations. - * parse.y (java_warning_count): New global variable. - (label_id): New static variable. - (BREAK_TK, CONTINUE_TK): Token tagged . - (block:): Return size_zero_node when block is empty. - (empty_statement:): Return size_zero_node. - (statement:): Implement supplemental action when for_statement: is - reduced. - (label_decl:): New rule. - (labeled_statement:): Rewritten using label_decl. Actions - implemented. - (labeled_statement_nsi:): Likewise. - (if_then_statement): Actions implemented. - (while_expression): New rule. - (while_statement:): Rewritten using while_expression. Actions - implemented. - (while_statement_nsi:): Likewise. - (do_statement_begin:): New rule. - (do_statement:): Rewritten using do_statement_begin. Actions - implemented. - (for_statement:): Rewritten using for_begin. Actions implemented. - (for_statement_nsi:): Likewise. - (for_header:, for_begin:): New rules. - (for_init:): Actions implemented. - (statement_expression_list:, break_statement:, - continue_statement:): Likewise. - (yyerror): Count number of issued warning(s). - (java_report_errors): Report error(s) and/or warning(s). - (java_complete_class): Use build_java_argument_signature to - recompute completed method signature. - (java_check_regular_methods): New locals method_wfl and aflags. - Use method_wfl instead of lookup_cl during error reports. Fixed - indentation and modified some error messages. Use - lang_printable_name in method instead of the DECL_NAME. New code - to issue warnings on methods not overriding corresponding methods - private to a different package. - (java_method_add_stmt): Call add_stmt_to_compound. - (add_stmt_to_compound): New function. - (java_complete_tree): Handle LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, - LOOP_EXPR, EXIT_EXPR and COND_EXPR. - (build_if_else_statement, patch_if_else_statement, - build_labeled_block, generate_labeled_block, - complete_labeled_statement, build_new_loop, build_loop_body, - complete_loop_body, patch_loop_statement, build_bc_statement, - patch_bc_statement, patch_exit_expr): New functions. - * typeck.c (build_java_signature): Build argument signature before - enclosing it in between parenthesis. - -1998-08-17 Warren Levy - - * Make-lang.in (JAVA_SRCS): Created for dependencies * Makefile.in - (JAVA_OBJS): Added reminder comment - -1998-08-13 Nick Clifton - - * gjavah.c (D_NAN_MASK): Append LL to the constant to force it to - be interpreted as a long long. - -1998-08-13 Warren Levy - - * decl.c (init_decl_processing): Use _Jv_InitClass, not - soft_initialise_class. Use _Jv_NewMultiArray, not - soft_multianewarray. Use _Jv_ThrowBadArrayIndex, not - soft_badarrayindex. Use _Jv_CheckCast, not soft_checkcast. Use - _Jv_CheckArrayStore, not soft_checkarraystore. Use - _Jv_LookupInterfaceMethod, not soft_lookupinterfacemethod. - -1998-08-12 Per Bothner - - * decl.c, java-tree.h (this_identifier_node, super_identifier_node, - length_identifier_node): New global tree node constants. - * parse.y (kw_super, kw_this, kw_length): Removed globals. - Replace uses by super_identifier_node etc. - * lex.c (kw_super, kw_this, kw_length): Don't initialize. - - * parse.y (resolve_field_access): Don't special-case ".length" if - flag_emit_class_files. - (patch_array_ref): Leave as ARRAY_REF if flag_emit_class_files. - * jcf-write.c (generate_bytecode_insns): Handle ARRAY_REF opcode - and ARRAY.length. - -1998-08-11 Per Bothner - - * decl.c (init_decl_processing): Remove unused method_type_node fields. - * class.c (make_method_value): Remove init for removed fields. - - * class.c (layout_class): Use build_java_argument_signature. - * java-tree.h (TYPE_ARGUMENT_SIGNATURE): New macro. - - * typeck.c (push_java_argument_signature): Removed. Merged into ... - (build_java_argument_signature): Use TYPE_ARGUMENT_SIGNATURE cache. - (build_java_signature): Don't use push_java_argument_signature. - - * typeck.c (lookup_argument_method): New function. - * parse.y (java_check_regular_methods): Use lookup_argument_method - instead of lookup_java_method2 followed by lookup_java_method. - - * parse.y (check_method_redefinition): Minor optimization. - - * jcf-write.c (generate_bytecode_insns): Handle RETURN_EXPR, - MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, and RDIV_EXPR. - -1998-08-10 Tom Tromey - - * Make-lang.in (jc1$(exeext)): Don't depend on c-common.o or - c-pragma.o. - - * gjavah.c (java_float_finite): Use K&R-style definition. - (java_double_finite): Likewise. - (generate_access): Now returns void. Changed all callers. - (last_access_generated): Removed. - (process_file): Only make a single pass over the .class file. - -1998-07-29 Per Bothner - - * class.c (get_dispatch_table): Add extra dummy vtable entry, - for compatibility for G++ (with -fvtable-thunks). - * expr.c (build_invokevirtual): Add one for extra dummy vtable entry. - - * gjavah.c (process_file): Use public inheritance for super-class. - -1998-07-29 Alexandre Petit-Bianco - - * lex.c (java_init_lex): Initialize ctxp->package. - * parse.h (struct parser_ctxt): package and package_len replaced - by tree package, an identifier node. Field method_decl_list is - gone. Fixed comments. - (lookup_field_wrapper, merge_qualified_name, not_accessible, - class_in_current_package): New function prototypes. - * parse.y (array_type:): Set class loaded flag on primitive type - arrays. - (package_declaration:): Assign ctxp->package to the - identifier node. - (method_invocation:): Handle invocation of method qualified by - `super'. - (single_type_import_declaration:): Removed ambiguity check. - (java_pop_parser_context): New local variable `next'. Reset and - set IMPORT_CLASSFILE_NAME flags on current and previous import - list. - (java_accstring_lookup): Use new local macro COPY_RETURN. - (lookup_field_wrapper): New function. - (parser_qualified_classname): Use merge_qualified_name. - (parser_check_super_interface): Broaden error message. - (do_resolve_class): Check for qualified class name in the current - compilation unit if appropriate. - (process_imports): Check for already defined classes. - (check_pkg_class_access): Got rid of call to - get_access_flags_from_decl. - (java_complete_expand_methods): Call safe_layout_class based on - the current class size. - (make_qualified_primary): Build a WFL qualification on primary if - none exists. - (merge_qualified_name): New function. - (make_qualified_name): Use merge_qualified_name. - (resolve_expression_name): Use safe_lookup_field. - (resolve_field_access): Got rid of call to get_access_flags_from_decl. - (resolve_qualified_expression_name): Likewise. Check on resolved - element accessibility. - (not_accessible_p, class_in_current_package): New functions. - (maybe_access_field): Got rid of call to get_access_flags_from_decl. - (patch_method_invocation_stmt): Merged common pieces. Check - accessibility of invoked method. - (check_for_static_method_reference): Add returned type in error - message. - (invocation_mode): Get rid of bogus check on PRIVATE methods. - (refine_accessible_methods_list): Merged two conditions in test. - (java_complete_class): Sanity check on stabilize_ref gone. - * zextract.c (read_zip_archive): Cast lseek second argument to long. - -1998-07-28 Per Bothner - - * class.c (hashUtf8String): Fix - use new JavaSoft specification. - -1998-07-24 Tom Tromey - - * gjavah.c (F_NAN): Removed. - (F_NAN_MASK): New macro. - (F_POSITIVE_INFINITY): Removed. - (F_NEGATIVE_INFINITY): Likewise. - (java_float_finite): Rewrote. - (D_NAN_MASK): Renamed. - (java_double_finite): Rewrote. - (D_POSITIVE_INFINITY): Removed. - (D_NEGATIVE_INFINITY): Likewise. - - * jcf-dump.c (print_constant): [CONSTANT_Double, CONSTANT_Float] - If verbose, print underlying representation of value in hex. - -1998-07-24 Per Bothner - - * buffer.h, buffer.c: New files. - * Makefile.in (JAVA_OBJS): Add buffer.o. - - Support locals variables and writing their debug entries to .class. - * jcf-write.c: Simplify some by user new buffer type. - (vode_buffer_grow): Removed. - (struct localvar_info): New type. - (localsvars, localvartable): New buffers. - (localvar_alloc, localvar_free): New functions. - (generate_bytecode_insns): Handle local variables. - (generate_classfile): Write LocalVariableTable attribute. - -1998-07-24 Alexandre Petit-Bianco - - * jcf-io.c (open_in_zip): Check the zipfile magic number. - * zipfile.h (ZIPMAGIC): New macro. - -1998-07-24 Tom Tromey - - * Makefile.in (gjavah.o): Updated dependencies. - (jcf-dump.o): Likewise. - (all.indirect): Use ../gjavah. - (../gjavah$(exeext)): Likewise. - (clean): Don't remove gjavah. - (clean): Remove parse.c, not java/parse.c. - * Make-lang.in (java): Added gjavah. - (gjavah$(exeext)): New target. - (GJAVAH_SOURCES): New macro. - (java.all.build): Added gjavah. - (java.all.cross): Likewise. - (java.rest.encap): Likewise. - * config-lang.in (compilers, stagestuff): Added gjavah. - -1998-07-23 Tom Tromey - - * gjavah.c (java_float_finite): New function. - (java_double_finite): Likewise. - (F_POSITIVE_INFINITY): New macro. - (F_NEGATIVE_INFINITY): Likewise. - (F_NAN): Likewise. - (D_POSITIVE_INFINITY): Likewise. - (D_NEGATIVE_INFINITY): Likewise. - (D_NAN): Likewise. - (print_field_info): Use java_float_finite and java_double_finite. - -1998-07-23 Per Bothner - - * parse.y (method_header): Name "this" implicit argument. - -1998-07-22 Per Bothner - - * jcf-write.c: Write out LineNumberTable attribute in .class file. - (linenumber_buffer, linenumber_ptr, linenumber_limit): New statics. - (put_linenumber): New function. - (generate_bytecode_insns, generate_classfile): Write line numbers. - -1998-07-22 Alexandre Petit-Bianco - - * java-tree.h (CALL_EXPR_FROM_PRIMARY_P): Changed in PRIMARY_P. - (lookup_name, build_known_method_ref, build_class_init, - build_invokevirtual, invoke_build_dtable, match_java_method, - build_field_ref, pushdecl_force_head, build_java_binop, - binary_numeric_promotion, build_decl_no_layout, - build_java_arrayaccess, build_newarray, build_anewarray, - build_java_array_length_access, build_java_arraynull_check): New - extern function prototypes. - (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, - JAVA_THIS_EXPR, CALL_CONSTRUCTOR_P): Macro definition moved in - java-tree.h. - * jcf-parse.c (init_outgoing_cpool): Set current_constant_pool_data_ref - to NULL - * jcf.h (jcf_out_of_synch): New extern function prototype. - * parse.h: Static/global function implemented in parse.y - prototyped and declarations moved at the end of the file. - (DECL_P): Check that the argument isn't null. - (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, - JAVA_THIS_EXPR): No longer defined here. See java-tree.h - (QUAL_DECL_TYPE): New macro. - (PARAMS): Macro definition removed. - * parse.y: (yyparse, yyerror): Use PROTO instead of PARAMS. - (return_statement:): Call build_return. - (field_access:): Call make_qualified_primary in sub rule. - (method_invocation:): Build method invocation and call - make_qualified_primary when processing primaries. - (java_complete_class): Set IDENTIFIER_SIGNATURE_TYPE by calling - get_type_from_signature. - (java_check_regular_method): Extra integer 0 argument when calling - lookup_java_method2. - (lookup_java_interface_method2): Extra method DECL argument when - calling lookup_java_interface_method2. - (java_method_add_stmt): Set TREE_SIDE_EFFECTS on newly created - COMPOUND_EXPR node. - (java_complete_expand_method): Layout current class iff not - already done. Don't process interface's methods. - (java_complete_expand_method): Use super class only if it - exists. Use current class otherwise. - (make_qualified_primary): New function. - (resolve_expression_name): Process qualified expression or - expression from primary the same way. - (resolve_expression_name): Two last arguments to - resolve_field_access are now NULL_TREEs. - (resolve_field_access): New variable is_static. Local field must - be DECLs. is_static computed on field DECLs only. Append code in - where_found to the field access if necessary. Use QUAL_DECL_TYPE - to initialize field_type. - (resolve_qualified_expression_name): New local variable, - previous_call_static and is_static. Handle primaries with function - calls, casts, array references and `this'. `super' now handled as - `(super_class)this'. Use is_static to clarify boolean expressions. - Added code to handle case where a proper handle is required to - access a field. Use QUAL_DECL_TYPE where applicable. - (maybe_access_field): New function. - (patch_method_invocation_stmt): New arguments primary, where, - is_static. Branch of the test on CALL_EXPR_FROM_PRIMARY_P - deleted. Use `where' as a type to search from if specified. Check - for static method reference where forbidden. Append primary or - current_this to the argument list if not calling constructor nor - static methods. - (check_for_static_method_reference): New function. - (patch_invoke): Layout the class on which new is done if - necessary. - (lookup_method_invoke): Changed format to report errors on - methods. - (qualify_ambiguous_name): New local variable this_found. Now - handle things from primaries. Method call are considered - expression names. - (identical_subpath_p): NULL_TREE arguments to breakdown_qualified - changed into NULLs. - (not_initialized_as_it_should_p): Comply with the new DECL_P. - (java_complete_tree): New case fo RETURN_EXPR. Process function - call arguments in separate function. - (complete_function_arguments): New function. - (build_method_invocation): Don't use CALL_EXPR_FROM_PRIMARY_P - anymore. - (patch_assignment): Take the return function slot into account as - a RHS. Distinguish assignment from a return. - (valid_ref_assignconv_cast_p): Use build_java_argument_signature - when checking methods in interfaces. - (resolve_type_during_patch): NULL argument to unresolve_type_p - instead of NULL_TREE. - (patch_newarray): Fixed typo in comment. - (buid_this): Build a WFL with `kw_this' instead of a FIELD_DECL. - (build_return, patch_return): New functions. - * typeck.c (lookup_java_constructor): Fixed typo in comment. - -1998-07-21 Per Bothner - - * constants.c (find_name_and_type_constant, find_fieldref_index, - find_methodref_index): New methods. - * expr.c (build_invoke_non_interface): If flag_emit_class_files, - just return given method. Also, rename to build_known_method_ref. - (expand_invoke): Rename call to build_invoke_non_interface. - * java-tree.h, parse.h: Update prototype. - * parse.y, decl.c, jcf-parse.c: Suppress calls to back-end functions - (such as expand_expr_stmt) if flag_emit_class_files. - * jcf-write.c (RESERVE, OP1, OP2, OP4, NOTE_PUSH, NOTE_POP, - STACK_TARGET, IGNORE_TARGET): New macros. - (code_buffer, code_ptr, code_limit, code_S, code_SP_max): New globals. - (generate_bytecode_insn): New function to generate method's bytecode. - (generate_classfile): Node generate Code attribute for a method. - (code_buffer_grow, push_constant1, push_constant2, push_int_const, - push_long_const, field_op, adjust_typed_op, maybe_wide): - New functions used by generate_bytecode_insn. - - * typeck.c (signature_include_return): Remove variable. - (push_java_argument_signature, build_java_argument_signature): New. - (build_java_signature): Use push_java_argument_signature. - * parse.y: Use build_java_argument_signature instead of fiddling - with signature_include_return. - -1998-07-17 Tom Tromey - - * gjavah.c (print_c_decl): Always generate JArray<>* for array - types. - - * Makefile.in (all.indirect): Added gjavah$(exeext). - (gjavah$(exeext)): Added $(exeext). - (clean): Likewise. - -1998-07-16 Alexandre Petit-Bianco - - * class.c (layout_class): Call to java_layout_parsed_class replace - by safe_layout_class. - * expr.c (build_java_array_length_access): Removed static storage - class in the function definition. - (build_java_arraynull_check): Likewise. - Also fixed typos in two comments. - * lex.c (java_init_lex): Initialize static global kw_length. - (java_lex): Use BUILD_OPERATOR on RETURN_TK. - * lex.h (JAVA_FLOAT_RANGE_ERROR): Add extra argument to - java_lex_error. - (JAVA_INTEGRAL_RANGE_ERROR): Likewise. - * parse.h (resolve_no_layout): New static function declaration. - (get_identifier_in_static): Declaration removed. - (java_layout_parsed_class): Function name declaration changed to - safe_layout_class. - (build_newarray_node, patch_newarray, resolve_type_during_patch, - not_initialized_as_it_should_p, build_this): New static function - declarations. - (pushdecl_force_head, build_java_binop, int_fits_type_p, - binary_numeric_promotion, stabilize_reference, - build_decl_no_layout, build_java_arrayaccess): Extern function - declarations moved into their own section. - (build_newarray, build_anewarray, build_java_array_length_access, - build_java_arraynull_check): New extern function declarations. - (UNARY_PLUS_EXPR): Macro renamed into JAVA_UNARY_PLUS_EXPR. - (JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, JAVA_THIS_EXPR): New - fake tree codes. - (CALL_CONSTRUCTOR_P): New macro. - * parse.y (kw_length): New static global tree node. - (return_statement): Tagged . - (RETURN_TK): Tagged . - (variable_declarator_id:): Build variable declaration with an - empty initialization value if a syntax error was found in the - initialization part of the variable declaration. - (statement_without_trailing_substatement:): return_statement: now - uses the default rule. - (return_statement:): Temporarily fixed to return NULL_TREE. - (primary_no_new_array:): Call build_this when THIS_TK was parsed. - (class_instance_creation_expression:): Class creation rules now - call build_method_invocation upon reduction. - (array_creation_expression:): Rules call build_newarray_node upon - reduction. - (dim_exprs:): Build a list of dimension expressions. - (dim_expr:): Store location of the OSB_TK in the dimension - expression node. - (method_invocation:): Added a new error rule. - (build_unresolved_array_type): WFL argument may also be an array - on a primitive type. Name of the argument changed to reflect this. - (method_declarator): Insert argument type at the beginning of the - argument type list and later reverse the list. - (unresolved_type_p): Argument 'returned' may be optionally - NULL_TREE. - (java_layout_class_from_source): Function renamed - safe_layout_class. - (resolve_and_layout): Now call resolve_no_layout and - safe_layout_class. - (resolve_no_layout): New function. - (purify_type_name): New function. - (complete_class_report_errors): Call purify_type_name during error - report on a type not found. - (process_imports): error_found local variable doesn't need to be - initialized to zero. - (declare_local_variables): New local type_wfl. Fixed typo in error - message. type_wfl assigned to unresolved type and used to register - incomplete type. Build a WFL around the variable initialization - statement so that debug info can be generated on it. - (source_start_java_method): Reverse argument list after they've - been processed. - (current_this): New static global variable. - (java_complete_expand_methods): Set current_this when appropriate. - (resolve_expression_name): Build correct static and non static - field access bearing a simple name. - (resolve_field_access): Resolve the length field of arrays. Handle - f.m() cases. - (patch_method_invocation_stmt): Set the type of the method - invocation to error_mark_node. This value is later overridden by a - valid type, if any. Don't handle qualified constructor invocation - as qualified method invocation. Call lookup_method_invoke with its - new flag. It's no longer necessary to access the selected method - as the value of a tree list. Handle constructor invocation. - (patch_invoke): Reverse argument list when invoking non interface - methods. Insert call to new as the first argument of the - constructor. - (invocation_mode): Return a INVOKE_STATIC is the invoked method is - defined within a final class. Return INVOKE_STATIC if the invoked - method is a constructor. - (lookup_method_invoke): New lc argument is a flag to indicate a - constructor lookup. Now handle constructor lookup. Choose the most - specific method in case several were matching the invocation - requirements. Return a method decl instead of a tree list featuring - one single method decl element. - (refine_accessible_methods_list): New lc flag argument to - indicate that a constructor is being looked up. - (not_initialized_as_it_should_p): New function. - (java_complete_tree): Now process fake tree codes - JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR and JAVA_THIS_EXPR. Call - save_expr on resolved function call arguments. Case on - UNARY_PLUS_EXPR changed into a case on JAVA_UNARY_PLUS_EXPR. - (patch_assignment): LHS can be a field access expression. When - dealing with reference, lhs_type is the promoted type of the - rhs_type, not the RHS. Use not_initialized_as_it_should_p where - applicable. - (operator_string): JAVA_UNARY_PLUS_EXPR replaces UNARY_PLUS_EXPR. - (patch_binop): Use not_initialized_as_it_should_p where - applicable. - (build_unaryop): JAVA_UNARY_PLUS_EXPR replaces UNARY_PLUS_EXPR. - (patch_unaryop): Likewise. And use not_initialized_as_it_should_p - where applicable. - (resolve_type_during_patch): New function. - (patch_cast): Call resolve_type_during_patch to resolve type and - report error accordingly. - (patch_array_ref): Use not_initialized_as_it_should_p where - applicable. Array base expression is saved before being - used. Promote the type of an array elements if it contains non - builtin types. - (build_newarray_node, patch_newarray, build_this): New functions. - -1998-07-16 Tom Tromey - - * gjavah.c (print_c_decl): UTF8_GET increments pointer; don't - increment it in `for' statement. - (print_field_info): If number is inf or nan, don't print it. - (print_method_info): If method name is `delete', just ignore it. - (print_c_decl): Special-case jstringArray. - - * gjavah.c (help): New function. - (no_argument): New function. - (usage): Changed text. - (main): Rewrote argument handling. Now handles -v, --help, - --version. - (version): New function. - (found_error): New global. - (main): Return found_error. - (generate_access): Set found_error. - (print_c_decl): Likewise. - -1998-07-15 Tom Tromey - - * gjavah.c (print_c_decl): Don't print "," when examining field. - Skip type name when looking at "[L" types. - (process_file): Now static. - (generate_access): Now returns int. - (last_access_generated): New global. - (process_file): Clear last_access_generated; make multiple passes - over the class. - (print_field_info): Just return if generate_access returns true. - (print_method_info): Likewise. Also, allow functions to - pass through. - (print_c_decl): Added is_init argument. Print constructors - properly. - (print_cxx_classname): Use UTF8_GET to extract characters from - string. - (print_base_classname): New function. - (print_class_decls): New function. - (process_file): Use it. - (utf8_cmp): New function. - -1998-07-13 Nick Clifton - - * lang-options.h: Format changed to match changes in gcc/toplev.c - to implement a --help option. - -1998-07-10 Brendan Kehoe - - * decl.c (init_decl_processing): Revert change to dtable_type. - -1998-07-09 Per Bothner - - * java-tree.h (CLASS_P): Changed DECL_LANG_FLAG_7 -> TYPE_LANG_FLAG_4. - -1998-07-08 Brendan Kehoe - - * decl.c (init_decl_processing): Set CLASS_LOADED_P on dtable_type. - - * lang.c (lang_init): Default flag_exceptions to 1, without - checking to see if it's 2 first. - -1998-07-08 Jeffrey A Law (law@cygnus.com) - - * constants.c: Include "system.h". - * decl.c: Likewise. - * lang.c (flag_new_exceptions): Get via extern now. - (lang_init_options): New functions. Turn on flag_new_exceptions. - -1998-07-07 Alexandre Petit-Bianco - - * lex.c (java_lex): Return 0 when we see an invalid character in - the input. - - * lex.c (java_read_char): Specify extra argument when calling - java_lex_error. - (java_read_unicode, java_parse_end_comment, - java_parse_escape_sequence): Likewise, - (java_lex): Specify extra argument when calling - java_lex_error. Test that IDs are beginning with a legal character - for IDs. Handle invalid characters with an error message and a - call to java_lex_error. - (java_lex_error): Adjust column position by new argument - `forward'. Issue an error even if in the middle of reporting an - other error. - -1998-07-07 Brendan Kehoe - - * jcf-io.c (find_class): Zero out BUFFER before we use it, since - we don't explicitly put a null pointer when we're copying it. - -1998-07-07 Tom Tromey - - * gjavah.c (print_cxx_classname): New function. - (super_class_name): Likewise. - (print_super_fields): Removed. - (in_super): Removed. - (print_field_info): Never generate #defines. - (print_c_decl): Changed generated types to match JNI. No longer - print class name before method name. - (print_method_info): Print "static" before static methods. - Print "virtual" before non-final methods. - (usage): Use exit(1), not exit(-1). - (main): Likewise. - (print_field_info): Use %.17g to print a double. - (last_access): New globals. - (process_file): Initialize last_access. - (usage): Now static. - (ACC_VISIBILITY): New define. - (generate_access): New function. - (print_field_info): Call it. - (print_method_info): Likewise. Also, generate information for all - methods, not just native methods. Return void. - (print_c_decl): Return void. - (print_field_info): Return void. - -1998-07-02 Alexandre Petit-Bianco - - * Makefile.in (JAVABISONFLAGS): Specific flag for bison when - processing the jc1 grammar file. Prefix bison functions and - variables with java_. - (parse.c): Dependencies on parse.h and lex.h - * expr.c (build_java_arrayaccess): Function now global. - * java-tree.h: Comment reorganized to carry on previous - classification effort. - (RESOLVE_EXPRESSION_NAME_P, RESOLVE_PACKAGE_NAME_P, - RESOLVE_TYPE_NAME_P): New flags on WFLs. - * jcf-parse.c (parse_source_file): java_parse_source_file renamed - java_parse (new prefix java_ generated by bison). - (java_layout_parsed_class, java_register_parsed_class): Function - call removed. - (yyparse): Removed unnecessary call to init_outgoing_cpool. - * lex.c (static tree wfl_op): Variable deleted. - (java_init_lex): Initialize kw_super and kw_this. Initialize more - ctxp fields to NULL_TREE. - (java_lex): No longer create WFL for operators. Filename caching - mechanism deleted. Call BUILD_OPERATOR for `.', '(', '['. Strings - created as STRING_CST and later expanded. Removed extra argument - to BUILD_OPERATOR and BUILD_OPERATOR2. Build operators for THIS - and SUPER. - (build_wfl_node): Removed code in comments. - * lex.h (BUILD_OPERATOR, BUILD_OPERATOR2): No longer build a WFL but - store token and location data in the current bison token. - * parse.h: Removed pre-processor based symbol prefixes hack. Moved - static/extern function declaration at the beginning of the file. - (struct qualification): Data structure definition deleted. - (RESOLVE_CHAIN_REMAINDER): Macro definition deleted. - (qualify_ambiguous_name): Function declaration modified. Function - now returns nothing. - (build_array_ref, patch_array_ref, make_qualified_name, - resolve_qualified_expression_name, maybe_generate_clinit, - resolve_field_access): New static function declarations. - (build_java_arrayaccess): New extern function declaration. - (enum { RESOLVE_EXPRESION_NAME...}): Enum deleted. - (CALL_EXPR_PRIMARY): Macro deleted. - (EXPR_WFL_QUALIFICATION, QUAL_WFL, QUAL_RESOLUTION): New macros. - (struct parser_ctxt): Field initialized_final - removed. non_static_initialized, static_initialized: New fields. - * parse.y (static tree kw_super, static tree kw_this): New global - static. - (%union): tree wfl field of operator member replaced by int - location. WFLs are non longer created for operators. - (OSB_TK, DOT_TK, THIS_TK, SUPER_TK): Tagged . - (qualified_name:): Now calls make_qualified_name to build the - identifier. - (type_declaration:): Consider generating when class - parsing completed. - (variable_declarator:): Directly build an assignment node when the - variable is initialized when declared. - (this_or_super:): Build a WFL and set current location when THIS - or SUPER are parsed. - (expression_statement:): Wrap statement around a WFL. - (primary_no_new_array:): Fixed typo. Changed value returned by - THIS_TK because of its new type (temporary). - (dim_exprs:): Temporary fix because of OSB_TK's new type. - (field_access:): Build qualified name with SUPER. - (method_invocation:): Fixed returned value because of SUPER's new - type. - (array_access:): Use OSB_TK location information. - (post_increment_expression:, post_decrement_expression:, - unary_expression:, pre_increment_expression:, - pre_decrement_expression:, unary_expression_not_plus_minus:, - cast_expression:, multiplicative_expression:, - additive_expression:, shift_expression:, relational_expression:, - equality_expression:, and_expression:, exclusive_or_expression:, - inclusive_or_expression:, conditional_and_expression:, - conditional_or_expression:, assignment:): Use new location/token - information available on operators. - (create_class): Set super_decl_type to NULL_TREE when processing - java.lang.Object. - (register_fields): Field initialization is now a MODIFY_EXPR - node. Chain initialization code to the matching lists (according - to the field declaration modifiers). - (maybe_generate_clinit): New function. - (method_header): Don't set method's DECL_NAME to a WFL when adding - methods to java.lang.Object. - (resolve_and_layout): Now can return NULL_TREE if the type - resolution fails. Otherwise, return the class DECL instead of its - TYPE. - (check_method_redefinition): Don't patch method DECL_NAME if it - belongs to java.lang.Object. - (process_imports): Simply assign error_found to the value returned - by check_pkg_class_access. - (declare_local_variables): Don't use their init statements (if - any) when parsing error were previously found. Reuse MODIFY_EXPR - build during parsing as an init statement. - (java_method_add_stmt): Now return the current method body. - (java_layout_parsed_class, java_register_parsed_class): Functions - removed. - (java_complete_expand_methods): Initialize the constant pool on a - per class basis. Layout the classes before expanding their method - bodies. Don't try expand artificial constructor code if error were - found. Make the classes data and register them if no error were - found. - (java_complete_expand_method): Retrieve an artificial constructor - argument list before entering its body. Assign the top block to - the artificial constructor function body and set types of declared - blocks and compound statements to void. Walk method body if not an - artificial constructor. - (make_qualified_name, cut_identifier_in_qualified): New functions. - (resolve_expression_name): Fixed comments. Save/restore the - current class CLASS_LOADED_P flag value. Build non qualified - static field access and handle qualified expression names. - (resolve_field_access, resolve_qualified_expression_name): New - functions. - (patch_method_invocation_stmt): Use the new expression resolution - scheme, calling resolve_field_access when the function call is - resolved as an expression. - (qualify_ambiguous_name): Function rewritten to work on qualified - expression produced by make_qualified_name. - (java_complete_tree): Promote type when function's argument are - RECORD_TYPEs. While processing the MODIFY_EXPR case: don't patch - the assignment to discover further errors if RHS is a expression - name that fails to evaluate. Declare LHS initialized even though - the assignment failed. Don't use the location variable and removed - extra argument in patch function calls. Now handle the ARRAY_REF - case and build internal string representation when STRING_CSTs are - walked. - (build_method_invocation): Don't wrap function call around a WFL. - (build_assignment): Likewise. Use the operator location - information. - (patch_assignment): Handle array access LHSs. Handle error - provenance, resulting in a better error report. - (build_binop): Use op_location from operator as binop location - information. - (build_unaryop, build_incdec, build_cast): Likewise. - (patch_binop): Extract location information from the node. Fixed - typo in error message. - (patch_unary_op): Extract location information from the node. - (build_array_ref, patch_array_ref): New functions. - -1998-07-01 Tom Tromey - - * expr.c (expand_java_INSTANCEOF): Changed calling convention to - match _Jv_IsInstanceOf. - * decl.c (init_decl_processing): Use _Jv_NewArray, not - soft_newarray. Use _Jv_IsInstanceOf, not soft_instanceof. - -1998-06-30 Tom Tromey - - * decl.c (init_decl_processing): Functions are now named - _Jv_MonitorEnter and _Jv_MonitorExit, and return jint. - -1998-06-29 Per Bothner - - * java-tree.h (load_class): Add prototype. - * class.c (is_compiled_class): Add missing arg to load_class. - * expr.c (expand_java_NEW): Call load_class. - * parse.y (process_import): Removed bogus use of void return value. - -1998-06-25 Per Bothner - - * decl.c, java-tree.h (soft_athrow_node): Renamed to soft_node. - Function name is "_Jv_Throw" instead of "soft_athrow". - * decl.c, java-tree.h (soft_new_node): Renamed to alloc_object_node. - Function name is "_Jv_AllocObject" instead of "soft_new". - Takes an extra parameter (object size). - * expr.c: Update calls. - -1998-06-24 Per Bothner - - * lex.c (java_get_line_col): Handle end-of-file. - * except.c (expand_end_java_handler): Handle null type (i.e. finally). - -1998-06-24 Andrew MacLeod - - * lang.c (lang_init): Make -fexceptions the default. - * except.c (maybe_start_try, maybe_end_try): Don't do anything if - exception handling is not turned on. - -1998-06-23 Andrew MacLeod - - * lang.c (flag_new_exceptions): Make this this default. - * decl.c (end_java_method): Call emit_handlers. - * except.c (method_init_exceptions): Set language code and version. - (expand_start_java_handler): Enable exception, and call - expand_eh_region_start. - (expand_end_java_handler): Enable exception, and set up catch blocks. - (emit_handlers): New routine to generate the saved handlers. - * java-except.h (emit_handlers): Add prototype. - -1998-06-12 Per Bothner - - We used to have three different representations of the constant pool: - the CPool structure, the tree_constant_pool, and the constructures - used to build the Class object (which may need class and string - constants) in compiled code. None were appropriate for compiling - to .class files, so I did a major overhaul. - - First, the tree_constant_pool array was removed. Things were - modified to the CPool structure in the JCF could be used. - Second, a "capacity" field was added to the CPool, and functions - written to search for a matching constant, adding one if not found. - The code that generated the Class object was changed to use a CPool. - The actual TREE_LISTs used to build the CONSTRUCTORs used for - the static Class object are now only in build_constants_constructor. - Finally, I wrote code which can generate a .class file (including its - constant pool) from the RECORD_TYPE of a class. This is a big step - on the way to compiling Java source into .class files. - - * jcf-write.c: New file. Writes out a RECORD_TYPE as a .class file. - * Makefile.in (JAVA_OBJS): Added jcf-write.o. - - * java-tree.h (CPOOL_UTF, CONSTANT_ResolvedFlag, - CONSTANT_ResolvedString, CONSTANT_ResolvedClass): New macros. - (NAME_AND_TYPE_NAME, NAME_AND_TYPE_SIGNATURE, COMPONENT_REF_NAME, - COMPONENT_REF_NAME_AND_TYPE, COMPONENT_REF_SIGNATURE): Redefined. - (COMPONENT_REF_CLASS): Replaced by COMPONENT_REF_CLASS_INDEX. - (lang_type): Removed constant_pool field. - * jcf.h (CPool): Renamed size to count. Added field capacity. - (CPOO_COUNT, CPOOL_UINT, CPOOL_USHORT1, CPOOL_USHORT2, - CPOOL_FINISH, CPOOL_INIT, CPOOL_REINIT): New macros. - Rewrite some of the old JCF_XXX in terms of CPOOL_XXX macros. - - * constants.c (current_constant_pool_tags, current_constant_pool_data, - current_constant_pool_length), java-tree.h: Replaced by outgoing_cpool. - * constants.c (build_constants_constructor): Use new outgoing_cpool. - (set_constant_entry, find_constant1, find_constant2, - find_class_constant, count_constant_pool_bytes, write_constant_pool, - find_utf8_constant, find_class_or_string_constant): New functions. - - * jcf-parse.c (load_class): Don't save/restore tree-constant_pool. - (get_constant): Use current_jcf.cpool instead of tree_constant_pool. - (give_name_to_class, get_class_constant): Likewise. - * jcf-parse.c, java-tree.h (tree_constant_pool): Removed. - (get_name_and_type_constant, get_ref_constant): Removed. - * parse.h (parser_ctxt): Remove field tree_constant_pool. - * parse.y: Don't save/restore tree_constant_pool. - * verify.c (verify_jvm_instructions): Update for new approach. - * expr.c (expand_invoke, expand_java_field_op): Likewise. - - * lang-options.h: Added -femit-class-file, -femit-class-files. - * lang.c (flag_emit_class_files), java-tree.h: New flag. - (lang_f_options): Added "emit-class-file(s)". - - * expr.c (build_java_arrayaccess): Generate more efficient array - bounds checking, by using unsigned compare. - - * expr.c (expand_invoke): Re-arrange error checks to make more robust. - -1998-06-10 Alexandre Petit-Bianco - - * parse.h: New comment on the handling of unresolved type - identifiers. JDEPs are now part of the jdep_code enum. - (typedef struct jdep): Now use enum jdep_code or int, depending on - availability. Both are narrowed down to an 8 bits bitfield. - (CALL_EXPR_PRIMARY): Fixed comment. - -1998-06-10 Tom Tromey - - * Make-lang.in (java): Added gjavac and jvgenmain. - (java.start.encap): Depend on gjavac. - (java.rest.encap): Depend on jvgenmain. - - * Make-lang.in (JAVA_INSTALL_NAME): Name is gjavac, not c++. - (JAVA_CROSS_NAME): Likewise. - (java.all.build): Depend on jvgenmain and gjavac. - (java.all.cross): Depend on jvgenmain and gjavac-cross. - (jvgenmain$(exeext)): New target. - (java.install-common): Wrote. - * config-lang.in (compilers, stagestuff): Added gjavac and - jvgenmain. - -1998-06-10 Dave Brolley - - * lang.c (lang_decode_option): New argc/argv interface. - -1998-06-09 Alexandre Petit-Bianco - - * ChangeLog: Fixed entries not compliant with the Gnu Coding Standard. - * decl.c (build_decl_no_layout): New function. - * expr.c (java_lang_expand_expr): Layout declarations found in - blocks before they're pushed. - * jcf-parse.c (load_class): Save current line when parsing class - file. - (parse_source_file): Register class before expanding their - methods. - * lang.c (put_decl_node): Produce `null' when `void *' is - processed. - * lex.c (static tree wfl_op): New static global, for error report - on casts. - (java_init_lex): wfl_operator and wfl_op initialized - here. Filename caching added for wfl_op. Return wfl_op when `(' is - parsed. - * parse.h (build_unaryop, build_incdec, patch_unaryop, build_cast, - patch_cast, valid_ref_assignconv_cast_p, can_cast_to_p, - build_unresolved_array_type): New static function definitions. - (build_decl_no_layout): New extern function declared. - (OBSOLETE_MODIFIER_WARNING): Report error only if the WFL of the - faulty modifier exists. - (TYPE_INTERFACE_P, TYPE_CLASS_P): New macros. - (ERROR_CAST_NEEDED_TO_INTEGRAL): Error message tuned. - (UNARY_PLUS_EXPR): New fake operator. - (struct parser_ctxt): New field osb_number. - * parse.y (static tree wfl_operator): New static WFL for operator - bound error messages. - (DECR_TK, INCR_TK): Moved. - (OP_TK): Tagged . - (array_type:): Now call build_unresolved_array_type. - (dim_expr:): Count the number of '[' seen. - (post_increment_expression, post_decrement_expression, - pre_increment_expression, pre_decrement_expression, - unary_expression_not_plus_minus, unary_expression:): Actions are - now building the corresponding unary expressions. - (cast_expression:): Actions are now building cast expressions. - (build_unresolved_array_type): New function. - (create_interface): Reset the number of declared interfaces. - (create_class): Likewise. - (method_header): Methods declared within the scope of an interface - are now implicitly set public and abstract. - (java_complete_class): Variable's and parameter's type are patched - with a promoted type. - (declare_local_variables): Resolved non builtin types are promoted - before being used to build a variable decl. Removed type patch - posted on variable initialization statement. - (source_start_java_method): Use build_decl_no_layout to build the - decl of a parameter of incomplete type. - (java_register_parsed_class): Process interfaces too. Call - rest_of_decl_compilation on each processed class declarations. - (java_complete_expand_methods): Don't attempt to expand things in - interfaces. - (java_complete_tree): Process CONVERT_EXPR, even though it always - has a type. Propagate error_mark_node to node's type too. Promote - method's call argument type and return error_mark_node if - argument's completion didn't work. MODIFY_EXPR can have a WFL as a - RHS. Fixed bug in the handling of bogus RHS of a fixed type. Now - handle unary operator nodes. - (build_assignment): Added comment. - (print_int_node): New function. - (patch_assignment): New second argument. New error handling. Use - print_int_node. Handle references. Use can_cast_to_p to issue - different error message according to the context and check upon - the initialization of the RHS. - (can_cast_to_p, valid_ref_assignconv_cast_p): New functions. - (operator_string): Handle more operators. - (patch_binop): No longer use a function static - wfl_operator. Improved error message on shift distance. - (build_unaryop, build_incdec, build_cast, patch_unaryop, - patch_cast): New functions. - -1998-06-05 Per Bothner - - * jvspec.c: New file. - * Make-lang.in: New rules to build gjavac from jvspec.c and ../gcc.c. - - * java-tree.h (identifier_subst): Add declaration. - -1998-06-04 Tom Tromey - - * jvgenmain.c (main): Generate call to JvRunMain. - - * class.c (make_class_data): Push value for "sync_info" field. - * decl.c (init_decl_processing): Push "sync_info" field. - -1998-06-03 Per Bothner - - * typeck.c (build_java_array_type): Set TYPE_NAME to actual - Java (source) name, not signature. - Set TYPE_ALIGN to (at least) that of element_type. - -1998-06-02 Per Bothner - - * class.c: Moved classname-mangling-rekated code to ... - * mangle.c: ... this new file. - * jvgenmain.c: New program (needs mangle.c) to generate main program. - * Makefile.in: Update for above changes. - -1998-06-01 Alexandre Petit-Bianco - - * expr.c (truthvalue_conversion): Convert integer and floating - point value to their truth value. - * lex.c (java_lex): Handle the `null' literal. - * parse.h (JREFERENCE_TYPE_P, DECL_P): New macros. - (ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, - ERROR_CAST_NEEDED_TO_INTEGRAL, ERROR_VARIABLE_NOT_INITIALIZED): - New macros. - - * parse.y: Reorganization/documentation on token declaration. - (binop_lookup[]): New added new tree codes. - (relational_expression): Build corresponding binary operators. - (equality_expression, conditional_and_expression, - conditional_or_expression): Likewise. - (java_complete_class): Fix crash in debug message. - (java_complete_tree): Check initialization of method call - arguments. Further bogus node evaluation to detect more error - during assignments. Handles more binary operators. - (patch_assignment): Use DECL_P. - (build_binop): Fix crash when using URSHIFT_EXPR, a Java only tree - code. - (operator_string): Handle more case. Compacted source. - (patch_binop): Changed function comment. Checking for - uninitialized first operand takes the compound assignment into - account and uses DECL_P. Checking for uninitialized second operand - delayed to routine's end. Use macros to issue type bound error - messages and issue messages on both operands if their types are - different. Force fixed type into node. Handle all binary - operators. - -1998-05-27 Alexandre Petit-Bianco - - * java-tree.h (COMPOUND_ASSIGN_P, INITIALIZED_P): New macros. - * lex.c (java_lex): Use BUILD_OPERATOR and BUILD_OPERATOR2 to - build operator node and return tokens. - * lex.h (BUILD_OPERATOR, BUILD_OPERATOR2): New macros. - * parse.h (java_complete_tree): Changed returned type in prototype. - (build_method_invocation, build_assignment, patch_assignment, - patch_binop): New static function declarations. - (JFLOAT_TYPE_P, JNUMERIC_TYPE_P, JPRIMITIVE_TYPE_P, JSTRING_P, - BUILD_EXPR_WFL): New macros. - * parse.y (enum tree_code binop_lookup[]): New static for token to - TREE_CODE lookup. - (%union): Parser union has new sub-structure `operator'. - (ASSIGN_TK, MULT_ASSIGN_TK, DIV_ASSIGN_TK, REM_ASSIGN_TK, - PLUS_ASSIGN_TK, MINUS_ASSIGN_TK, LS_ASSIGN_TK, SRS_ASSIGN_TK, - ZRS_ASSIGN_TK, AND_ASSIGN_TK, XOR_ASSIGN_TK, OR_ASSIGN_TK, - ASSIGN_ANY_TK): Tokens tagged `operator'. - (EQ_TK, GTE_TK, ZRS_TK, SRS_TK, GT_TK, LTE_TK, LS_TK, BOOL_AND_TK, - AND_TK, BOOL_OR_TK, OR_TK, INCR_TK, PLUS_TK, DECR_TK, MINUS_TK, - MULT_TK, DIV_TK, XOR_TK, REM_TK, NEQ_TK, NEG_TK, REL_QM_TK, - REL_CL_TK, NOT_TK, LT_TK): Tokens tagged `operator'. - (assignment_operator:): Rule tagged `operator'. - (expression_statement:): Re-installed default rule. - (method_invocation:): Sub rules call build_method_invocation. - (postfix_expression:): Don't attempt to resolve name here. Just - return an ID. - (multiplicative_expression:): Sub-rules build corresponding binop - expression node. - (additive_expression:, shift_expression:, and_expression:, - exclusive_or_expression:, inclusive_or_expression:): Likewise. - (assignment:): Sub rule invoke build_assignment. - (assignment_operator:): Default rules on sub rules. - (force_error): Added documentation on this variable. - (declare_local_variables): Build initialization calling - build_assignment. - (expand_start_java_method): Removed unused rtx declaration. Mark - arguments as already initialized. - (java_method_add_stmt): Type of built COMPOUND_EXPR set to NULL. - (java_complete_expand_methods): Don't process next method if - completion of the previous one triggered errors. - (java_complete_expand_method): Call source_end_java_method if no - error were found during completion. - (resolve_expression_name): Use IDENTIFIER_LOCAL_VALUE to retrieve - locals declaratilon. Handle names found within a class. Return - error_mark_node when things aren't found. - (patch_method_invocation_stmt): Return error_mark_node on failures. - (patch_invoke): Removed unused local. Return the correct node. - (java_complete_tree): Now returns a value. The BLOCK section binds - local identifiers and the type of a BLOCK is now void. Assign the - result of operand completion on COMPOUND_EXPR. Assign the - encapsulated node of a WFL to the result of its completion, except - when the node is an identifier. Now handle MODIFY_EXPR and several - binary operators. Return error_mark_node on errors. - (build_method_invocation, build_assignment, patch_assignment, - build_binop, operator_string, patch_binop): New functions. - * typeck.c (binary_numeric_promotion): New function. - -1998-05-21 Per Bothner - - * class.c (identifier_subst): New convenience wrapper for ident_subst. - Replace most uses of ident_subst by identifier_subst. - - * class.c (push_class_static_dummy_field): Removed function. - (build_class_ref): Find Class object decl by looking up "CNAME.class", - instead of looking got "class" static field. Create that decl here. - (class_identifier_node): Removed; no longer needed. - (init_class_processing): Don't init class_identifier_node. - * jcf-parse.c (jcf_parse): Don't call push_class_static_dummy_field. - Do nreverse 0 times (instead of twice) for Object and Class. - * parse.y (java_layout_parsed_class): No push_class_static_dummy_field. - -1998-05-20 Per Bothner - - * jcf-parse.c (parse_class-file): Set lino to smallest line number, - while initializing linenumber_count and linenumber_table. - Do it before init_function_start (which calls emit_line_note). - * expr.c (expand_byte_code): Don't need to clear lineno here. - -1998-05-18 Tom Tromey - - * class.c (append_gpp_mangled_type): If `qualifications' is >=9, - then mangle number as _N_. - - * class.c (mangle_class_field): New function. - (build_class_ref): Set assembler name of class reference using - mangle_class_field. - (push_class_static_dummy_field): Likewise. - -1998-05-17 Michael Tiemann - - * parse.y (source_start_java_method): Use TREE_SET_CODE instead - of assigning to TREE_CODE. The latter method exploits a feature - of GCC that is not ANSI compliant. - -1998-05-12 Alexandre Petit-Bianco - - * decl.c (pushdecl_force_head): New function. - (pushlevel): Removed conditional printf. - (complete_start_java_method): Don't enter local variable scope if - function is compiled from source code. - * expr.c: parse.h now included - (java_lang_expand_expr): New function. - * jcf-io.c (find_class): Use SOURCE_FRONTEND_DEBUG instead of - printf. Terminate buffer when doing directories. - * jcf-parse.c (parse_source_file): Call lang_init_source before - parsing and before code generation. - * jcf.h (SOURCE_FRONTEND_DEBUG): Macro redefined to conditionally - use printf if the macro is defined. - * lang.c (lang_init): Install lang_expand_expr hook on - java_lang_expand_expr. - (java_dummy_print): New function. - (lang_init_source): New function. - * lex.c (java_lex): Remember location of an opening brace at the - second nesting level. - (java_is_eol): Unget character seen after a CR if it is EOF. - * parse.h: Now includes lex.h - (SOURCE_FRONTEND_DEBUG): Macro redefined to conditionally use - printf if the macro is defined. - (expand_start_java_method, build_expr_block, enter_block, - exit_block, lookup_name_in_blocks, maybe_absorb_scoping_blocks): - New static function declarations. - (pushdecl_force_head): New extern function declaration. - (INCOMPLETE_TYPE_P): New macro. - (JDEP_PARM, JDEP_TYPE): New entries in JDEPs enum. - (BLOCK_CHAIN_DECL, BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY, - BLOCK_EXPR_ORIGIN): New macros. - (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, - DECL_SOURCE_LINE_LAST): New macros. - (struct parser_ctxt): Removed field current_method_decl, redundant - with the field current_function_decl. Added fields - first_ccb_indent1 and pending_block. - * parse.y (method_body, literal, INT_LIT_TK, FP_LIT_TK, - BOOL_LIT_TK, CHAR_LIT_TK, STRING_LIT_TK, NULL_TK, VOID_TK): Rules - tagged - (SOURCE_FRONTEND_DEBUG): Used as macro accepting varargs. - (compilation_unit:): Cosmetic on sub rule. - (type_declaration:): Cosmetic on sub rules. Added an error rule. - (variable_initializer:): Installed default rule on expression:. - (method_declaration:): method_header: starts a new - method. method_body: installs the function body, absorbs blocks - emitted for temporary variable scopings, pops function's body block - and merges function's last statement lineno in DECL_SOURCE_LINE. - (method_body:): Installed default rules. - (block:): Call enter_block when an opening brace is seen. Absorb - scoping blocks and call exit_block when a closing brace is seen. - (block_statement:): Cosmetic changes. - (method_invocation:): Create WFL around CALL_EXPR node. - (patch_stage): Added comment around definition. - (method_header): Try to use first_ccb_indent1 as the first line of - the method, so BP debug info are emitted at the first opening - brace of the function. If the function has no body, use the - location of the function's name. Override currently defined method - name with the matching WFL so we can point redefinition errors - using the location where the function's name was declared. - (check_abstract_method_header): Interprets DECL_NAME as an - identifier or as a WFL, accordingly. - (java_complete_class): New cases for JDEP_TYPE and JDEP_PARM. - (check_method_redefinition): Use DECL_NAME as a WFL. Extract - location and name information out of it and reinstall DECL_NAME to - its original identifier node value. - (lookup_cl): Use DECL_SOURCE_LINE_FIRST (first line of the - function's source code). - (read_import_dir): Test the value returned by find_class and issue - a fatal accordingly. - (declare_local_variables): Push a new block for the scope of the - new variable(s) if code has been already generated at that nesting - level. Pinpoint redefinition errors using the variable id - WFLs. Generate initialization code if necessary. If the variable - type is incomplete, register a patch on its decl. - (source_start_java_method): Rewritten. Define a new block for the - function's parameters. Build parameter decl out of function's - arguments and register them for a patch if their types are - incomplete. - (expand_start_java_method): Includes the part of - source_start_java_method that was pushing the parameter decls and - completing the method start code. - (source_end_java_method): Removed call the expand_end_bindings and - poplevel (already taken care of). Reinstall function's arguments - and get function's last line of code before calling - expand_function_end. - (java_method_add_stmt): New comment before the function's - code. Complement the second operand of the current COMPOUND_EXPR - if necessary. - (java_complete_expand_methods): Don't generate debug info on line - zero when expanding a generated constructor. - (java_complete_expand_method): Set start and end line numbers for - a artificially generated constructor to one and manually call - enter_block and exit_block when defining it. For all methods: - expand function's start calling the new expand_start_java_method - and invoke java_complete_tree on the effective method's body, if - any. - (resolve_expression_name): Now use lookup_name_in_blocks to search - local variable decls and print out an error when variables are - undefined. - (patch_method_invocation_stmt): Inserted comment before the - function's code. - (lookup_method_invoke): Chain method's arguments using chainon - with the current arg list as a second argument. Inserted missing - IDENTIFIER_POINTER when reporting an error on methods not found. - (refine_accessible_methods_list): Don't retain constructors. - (patch_arguments): Function removed. - (java_complete_tree): Inserted comment before the function's - code. New case for BLOCKs. Moved the WFL case a bit - further. Complete function's arguments. - (build_expr_block, enter_block, exit_block, lookup_name_in_blocks, - maybe_absorb_scoping_blocks): New functions. - -1998-04-27 Alexandre Petit-Bianco - - * jcf-io.c (find_class): Reset jcf->java_source after JCF_ZERO, if - previously set. - * jcf-parse.c (parse_source_file, java_error_count): New forward - and extern declarations. - (java_parse_abort_on_error): Macro moved. - (jcf_parse_source): fatal called if fopen fails. Now calls - parse_source_file. - (parse_source_file): New parse_only parameter. Reflects the - elimination of the second pass. - (yyparse): parse_source_file called with argument set to 0. - * jcf.h (JCF_ZERO): Sets java_source to zero. - * lex.c (java_init_lex): pass argument is gone. Function modified - to be called once during the analysis of a file. - (java_unget_unicode): Fixed typo in fatal message. - (java_get_line_col): Likewise. - (java_lval): Likewise. String literals no longer built during - second pass. - * lex.h (JAVA_COLUMN_DELTA): Take the tabulation character into - account. - * parse.h (MODIFIER_WFL): New macro. - (parse_check_super, parser_check_super_interface): Now return int. - (parser_chain_incomplete_item, not_builtin_p, - complete_method_decl): Declarations removed. - (build_method_invocation_stmt, build_invoke): Renamed using the - `patch' instead of `build' - (register-incomplete_type, obtain_incomplete_type, - java_complete_tree, java_complete_expand_method, - unresolved_type_p, create_jdep_list): New function declarations. - (IC_TYPE, IC_DEPEND, DEPEND_DECL, DEPEND_WFL, BEGIN_ONLY_PASS, - END_ONLY_PASS, ELSE_ONLY_PASS): Macro deleted. - (jdep): New typedef on new struct _jdep. - (JDEP_DECL, JDEP_DECL_WFL, JDEP_KIND, JDEP_SOLV, JDEP_WFL, - JDEP_MISC, JDEP_APPLY_PATCH, JDEP_GET_PATCH, JDEP_CHAIN, - JDEP_TO_REVOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED, - JDEP_RESOLVED_P): New macros. - (JDEP_NO_PATCH, JDEP_SUPER, JDEP_FIELD, JDEP_METHOD, - JDEP_METHOD_RETURN, JDEP_METHOD_END, JDEP_INTERFACE, - JDEP_VARIABLE): New enum values and jdep kinds. - (jdeplist): New typedef on struct _jdeplist. - (CLASSD_FIRST, CLASSD_LAST, CLASSD_CHAIN, JDEP_INSERT): New - macros. - (CALL_EXPR_PRIMARY): New macro. - (struct parser_ctxt): Fields java_pass, current_method_decl, - method_decl_list deleted. New field jdeplist. - (INCOMPLETE_P): Macro deleted. - * parse.y (single_type_import_declaration:): Removed pass switch. - (type_import_on_demand_declaration): Likewise. - (field_declaration:): Removed pass switch on all sub rules. - (class_declaration:): Call the complete_class_decl removed on - class_body rules. - (method_declaration:): Removed second pass switch. No longer chain - methods decl when method_header reduced. - (method_header:): Sub rules no longer depend on pass switch. - (method_declarator:): Likewise. - (method_body:): Likewise. - (abstract_method_declaration:): Likewise. - (block_statement:): Likewise. - (local_variable_declaration:): Likewise. - (argument_list:): Likewise. - (method_invocation:): Likewise. Call to build_method_invocation_stmt - removed. Partial CLASS_EXPR tree node built instead. - (postfix_expression:): Removed pass switch on all sub rules. - (java_pop_parser_context): Free classd_list content. - (yyerror): Call obstrack_grow0 to finalize error message. - (check_class_interface_creation): Comment modified to reflect new - returned value meaning. Removed second pass switch. Return 1 if an - error was found, 0 otherwise. Adjust pointer on filename if a - leading path separator was found. - (maybe_create_class_interface_decl): Removed first pass switch - when linking the class decl to the class_list. Install a new - jdep_list for the class. - (add_superinterfaces): List of unresolved interfaces is - gone. Unresolved interfaces are directly added to the current - dependencies list. - (create_interface): Second pass shortcut removed. - ctpx->modifier_ctx access through MODIFIER_WFL. - (create_class): Second pass shortcut removed. Call to - register_incomplete_type replaces the call to - parser_chain_incomplete_item. - (complete_class_decl): Function removed. - (duplicate_declaration_error): New way of retrieving redeclared - item type. - (register_fields): Call to lookup_modifier_cl replaced by - MODIFIER_WFL. New way of handling unresolved type, using - unresolved_type_p and obtain_incomplete_type. - register_incomplete_type replaces call to parser_chain_incomplete_item. - (patch_stage): New static global variable. - (method_header): New way of handling unresolved type, using - unresolved_type_p and obtain_incomplete_type. patch_stage used to - indicates that the method decl needs to be patched. - (check_abstract_method_header): Call to lookup_modifier_cl - replaced by MODIFIER_WFL. - (method_declarator): Incomplete argument type are registered - calling register_incomplete_type. Patch on the declared method is - issued in that case. - (unresolved_type_p): New function. - (parser_check_super_interface): New comment to reflect function's - modified returned type (int). Function and has a new argument - this_wfl. Call to parse_error_context uses this_wfl instead of - relying on lookup_cl. - (parser_check_super): Comment reflects function's new returned - type (int). Function returns nonzero value on error. - (create_jdep_list, reverse_jdep_list, obtain_incomplete_type, - register_incomplete_type, jdep_resolve_class): New functions to - handle incomplete types in declarations. - (java_complete_class): Rewritten to work with the new incomplete - type handling scheme. - (complete_class_report_errors): Likewise. - (complete_method_decl): Removed: it jobs is now handled by - java_complete_class. - (do_resolve_class): Class loaded in not already loaded and not - found in Java source code. - (java_check_regular_methods, java_check_abstract_methods): Don't - call complete_method_decl anymore. - (lookup_modifier_cl, not_builtin_p): Functions deleted. - (read_import_dir): Got rid of the pass number dependency. - (declare_local_variables): New handling of unresolved types (patch - issued). - (source_start_java_method): New parameter level. Function called - with level set to 1 when argument types are potentially - unresolved. Called to complete the job with level set to 2 once - types are complete. - (source_end_java_method): Call to permanent_allocation - removed. Waiting to be replaced by a more suitable obstack - management. - (java_complete_expand_methods, java_complete_expand_method, - java_expand_finals): New functions. - (build_method_invocation_stmt): Renamed - patch_method_invocation_stmt. Extracts function call expression - (wfl) and arguments (args) from CALL_EXPR tree operands. - (build_invoke): Renamed patch_invoke. Fixed typo in fatal - call. Patch the function and argument operand of the CALL_EXPR - tree argument. - (patch_argument, java_complete_tree): New functions. - -1998-04-20 Per Bothner - - Recover from missing fields and methods (i.e. error instead of fatal). - * decl.c, java-tree.h (TYPE_identifier_node): New global constant. - * expr.c (expand_invoke): Recover from missing method. - (expand_java_field_op): Recover from missing field. - Inline references to java.lang.{Integer,Char,...}.TYPE. - * typeck.c (get_type_from_signature), java-tree.h: New function. - * class.c (add_method): Use get_type_from_signature. - (build_class_ref): Handle a class that was not found. - * typeck.c (convert): Handle conversion to pointers (for convenience). - * verify.c (verify_jvm_instructions): Use get_type_from_signature - instead of lookup_field to handle missing fields. - - * jcf-parse.c (process_zip_dir): Set java_source. - -1998-04-20 Brendan Kehoe - - * jcf-parse.c (set_source_filename): Use TYPE_NAME, not DECL_NAME. - -1998-04-14 Alexandre Petit-Bianco - - * jcf-parse.c (load_class): Don't change input_filename before - calling jcf_parse_source (but still do it before calling - jcf_parse). - (jcf_parse_source): Assign input_filename after having saved the - parser context. - * lex.c (java_init_lex): Chain a WFL node to the import on demand - list. ctxp->modifier_ctx zeroed according to its new - definition. ctxp->filename initialized. Removed - JAVA_MODIFIER_CTX_UNMARK. - (java_unget_unicode): Update the character based column position. - (java_allocate_new_line): ref_count not used anymore. Always free - ctxp->p_line. Initialize c_line->char_col to 0. - (java_get_unicode): Update the character based column position. - (java_lex): Use ctxp->elc to store current position in source - file, at the beginning of the parsed token. Set modifier_ctx entry - corresponding to the parse modifier to a WFL node. Return a WFL - node when an identifier is parsed. - (java_lex_error): Now uses ctxp->elc to store current position in - source. - (build_wfl_node, java_is_eol, java_get_line_col): New functions. - * lex.h (build_wfl_node): New function definitions. - (struct java_line): ref_count and next fields are gone. New field - char_col. - (JAVA_LINE_CHECK, JAVA_LINE_MARK, JAVA_LINE_CHAIN, - JAVA_LINE_UNMARK, ID_NAME, ID_CL): Macro definitions deleted. - (JAVA_COLUMN_DELTA): New macro. - (java_lc): New typedef on new struct _java_lc. - * parse.h (lookup_cl, lookup_modifier_cl): Changed returned types. - (parse_error_context, parse_warning_context): Changed prototypes. - (java_get_line_col): Added as an available global function. - (JAVA_MODIFIER_CTX_UNMARK): Macro removed. - (IC_DECL): Replaced by macro IC_TYPE - (DEPEND_WFL): New macro. - (THIS_MODIFIER_ONLY): Now works with WFL and only remembers the first - wrong modifier. - (exit_java_complete_class): Removed a commented out statement. - (struct parser_ctxt): Added comments on fields. modifier_ctx is - now an array of tree nodes. Deleted fields line_list and - e_line. New field elc, to replace e_line. - * parse.y (array_type:): Build WFL node. - (qualified_name:): Build a single WFL node out of two. Retain - the location information of the first node in the resulting node. - (package_declaration:): Use package name as a WFL node - (single_type_import_declaration:): Use imported name as a WFL node. - (type_import_on_demand_declaration:): Use root of the imported - packages as a WFL node. - (field_declaration:): Removed unused local variable cl. - (method_declaration:): Don't call JAVA_MODIFIER_CTX_UNMARK. - (yyerror): New static elc. Removed static error_line, error_pos. - New local code_from_source. Save ctxp->elc into elc at the first - pass. Call java_get_line_col to get a string of the line where - the error occurred. - (debug_line): Removed static function. - (parse_error_context, parse_warning_context): Parameter cl is now - a WFL node. Use its value to initialize ctxp->elc. - (redefinition_error): Parameter cl is now a WFL node. - (parse_add_interface): New parameter wfl. No longer call - lookup_cl, use wfl instead. - (check_class_interface_creation): Parameter cl is now a WFL node. - (maybe_create_class_interface_decl): Likewise. - (add_superinterfaces): New function. - (create_interface): Removed local cl, node, super_decl, - super_decl_type. Function now uses id as a WFL node. Better - warning/error report on obsolete or forbidden mix of - modifiers. Now calls add_superinterfaces to register interfaces. - (create_class): Removed local cl, node. Local variable id is used - as a WFL node. Better error report on forbidden modifier - mix. Uses add_superinterfaces to register interfaces. - (find_field): Argument cl is now a WFL node. Now store the WFL - node of a fields that needs to be checked for their - initialization. - (method_header): Local variable node non longer used. Local - variable id replaces cl. - (check_modifiers_consistency): Local variable cl is now a WFL - node. - (method_declarator): Local variable cl replaced by parameter id. - (parser_qualified_name): Now uses parameter name as a WFL node. - (parser_check_super_interface): New parameter wfl, for achieve - greater accuracy during error reports. - (parser_chain_incomplete_item): New parameter named location. Used, - along the decl, to construct the incomplete item node. - (java_complete_class): resolve_class now uses WFL node extracted - from the incomplete item node. Macro IC_TYPE replaces TREE_PURPOSE - where appropriate. - (complete_method_decl): Unresolved function's argument types are WFL. - (resolve_class): Parameter cl is now a WFL node. - (resolve_and_layout): Likewise. - (do_resolve_class): Likewise. Try first to use cl and then do the - lookup on the decl when calling check_pkg_class_access. - (complete_class_report_errors): Use IC_TYPE in place of - TREE_PURPOSE where appropriate. Use DEPEND_WFL on dependency - instead of doing a lookup over the decl. - (java_check_final): Use WFL info from field tree list. - (lookup_cl): Rewritten and returns a statically defined WFL node. - (lookup_modifier_cl): Now uses information from WFL nodes. - (process_imports): Likewise. - (read_import_dir): name and cl arguments replaced by a single WFL - node. Function modified accordingly. - (find_in_imports_on_demand): Now uses WFL node. - (check_pkg_class_access): cl argument is now a WFL node. - (declare_local_variables): Fixed to use WFL nodes. - (resolve_expression_name): Likewise. - (build_method_invocation_stmt): name_combo argument renamed - wfl. Function modified to use WFL nodes. - (build_invoke): cl used as a WFL node when calling build_expr_wfl. - (lookup_method_invoke): cl is now a WFL node. Added missing - IDENTIFIER_POINTER to class type decl name. - -1998-04-14 Dave Brolley - - * lang.c (init_parse): Now returns char* containing the filename. - -1998-04-10 Per Bothner - - * class.c (layout_class): Mangle repeated arg types to match cc1plus. - - * decl.c, java-tree.h (integer_four_node): New INTEGER_CST node. - * class.c (make_class_data): If flag_assume_compiled, initial class - state is CSTATE_PREPARED; make superclass and interfaces direct - references, rather than constant pool indexes. - -1998-04-09 Alexandre Petit-Bianco - - * parser.y: Include flags.h. Removed debug variable pl. - (method_declaration:): Uses ctxp->parser_ccb_indent instead of pl. - (block:): Likewise. - (labeled_statement_nsi:): Generate debug info when reducing - expression_statement:. - (check_pkg_class_access): get_access_flags_from_decl invocation - fixed for new CLASS_* flags location. - (source_end_java_method): Save/restore parser context when - entering/leaving this routine. Restore lineno to its right value - before calling expand_end_bindings. - (build_method_invocation_stmt): build_invoke called with the - current line information. - (build_invoke): New argument cl. Wrap the function call around a - wfl node. - (refine_accessible_methods_list): Changed comment, removed - unnecessary code. - * parse.h: Fixed typo in comments. - (CLASS_OR_INTERFACE): Handle the new CLASS_* flags location. - (JAVA_MAYBE_GENERATE_DEBUG_INFO): New macro. - (struct parser_ctxt): New fields ccb_indent, last_ccb_indent1, - parser_ccb_indent. - * lex.c (java_lex): Record the last closing curly bracket of a - function. - * jcf-parse.c (jcf_parse_source): Now calls - java_check_methods. Clarified comment, fixed typo. - -1998-04-09 Dave Brolley - - * lang.c (init_parse): Expose for non USE_CPPLIB builds. - (finish_parse): Expose for non USE_CPPLIB builds. - -1998-04-08 Jeffrey A Law (law@cygnus.com) - - * lang.c (lang_print_xnode): New function. - -1998-04-03 Per Bothner - - * decl.c (class_dtable_decl), java-tree.h: New tree node. - * class.c (get_dispatch_vector, get_dispatch_table): New functions - used to build a class's dispatch table. - (make_class_data): Generate dispatch table if flag_assume_compiled. - Set dtable of class object to address of class_dtable_decl. - - * decl.c (int_decl_processing): Make soft_badarrayindex_node - be volatile and have side effects - generates better code. - - * class.c, expr.c, parse.y: CLASS_INTERFACE, CLASS_FINAL, etc: - These flags were defined for TYPE_DECLs, but used on RECORD_TYPEs. - - * expr.c (expand_invoke): If class is final, method is - effectively final, so can call it directly. - - * java-tree.h (TYPE_NVIRTUALS, TYPE_VTABLE): New macros. - - * Makefile.in, Make-lang.in: Add missing $(exeext)s. - -1998-03-19 Alexandre Petit-Bianco - - * parse.y (build_method_invocation_stmt): Removed extra argument - to build_invoke. - -1998-03-16 Alexandre Petit-Bianco - - * expr.c (dtable_indent): Now static global. - (expand_invoke): Now call invoke_build_dtable and - build_invokevirtual. - (invoke_build_dtable, build_invokevirtual): New functions. - * jcf-io.c (find_class): Defer issuing a warning by setting - jcf->outofsynch to 1. - * jcf-parse.c (jcf_out_of_synch): New function. - (load_class): Test this_jcf.outofsynch flag and call - jcf_out_of_synch accordingly. - * jcf.h: (typedef struct JCF): New flag outofsynch. Fixed typo in - comment indentation. - * lex.c (java_get_unicode): Fixed code indentation. - (java_lex): Create string literal. Fixed typo. Removed several - premature obstack_free. - * parse.h: New enums for name resolution and invocation mode. - (struct qualification): New data structure. - (RESOLVE_CHAIN_REMAINDER, BUILD_PTR_FROM_NAME): New macros. - (do_resolve_class, build_method_invocation_stmt, - breakdown_qualified, qualify_ambiguous_name, resolve_and_layout, - debug_line, identical_subpath_p, invocation_mode, - refine_accessible_methods_list, build_invoke, - lookup_method_invoke): New functions declared. - (build_invokevirtual, invoke_build_dtable, match_java_method, - build_field_ref, jcf_out_of_synch): New references to external - functions. - (struct parse_ctxt): Removed artificial_constructor field. - * parse.y: (array_type:): Type defined for this rule. - (class_type:): Installed default rule for interface_type:. - (array_type:): Now build Java array type. - (qualified_name:): Now use obstack_grow0. - (method_declaration:): Skip the artificial constructor added to - the list, if any. - (abstract_method_declaration:): Execute the code only during pass 1. - (block:): Installed default rule in block_statements:. - (block_statement:): Add the statement to the method during pass 2. - (statement_expression): Installed default rule for - method_invocation:. - (argument_list:): Added code to build the argument list. - (method_invocation:): Added call to create the method invocation - node. - (yyerror): Now use obstack_grow0. Removed bogus obstack_free. - (debug_line): New function for debug. - (complete_class_decl): No longer do something during pass 1. - (method_header): Use BUILD_PTR_FROM_NAME. - (parser_qualified_classname): Use obstack_grow0. Removed bogus - obstack_free. - (parser_chain_incomplete_item): Use BUILD_PTR_FROM_NAME. Modified - function's main comment. - (java_complete_class): Set CLASS_LOADED_P on all fixed incomplete - classes. - (complete_method_decl): Use BUILD_PTR_FROM_NAME and promote types. - (resolve_class): Now works with arrays. - (do_resolve_class, resolve_and_layout): New functions. - (java_check_regular_methods): Reverse method list before and after - having processed it. No longer set ctxp->artificial_constructor. - (read_import_dir): Test jcf->outofsynch and call jcf_out_of_synch - accordingly. Fixed typo in issued error message. Now use - obstack_grow0. - (find_in_imports_on_demand): Now use obstack_grow0. - (declare_local_variables): Use BUILD_PTR_FROM_NAME. - (source_end_java_method): Call expand_expr_stmt instead of - expand_expr. Calls it before calling expand_function_end. - (java_method_add_stmt): Do nothing if errors were found during - parsing. - (java_layout_parsed_class): Set CLASS_LOADED_P and fixed typo. - (build_method_invocation_stmt, build_invoke, invocation_mode, - lookup_method_invoke, refine_accessible_methods_list, - qualify_ambiguous_name, breakdown_qualified, identical_subpath_p): - New functions. - * typeck.c (build_java_signature): Properly end method signature - if return type skipped. - (match_java_method): New function. - -1998-03-16 Per Bothner - - * jcf-io.c (find_classfile): If USE_JCF_STDIO, fopen in binary mode. - -1998-02-25 Alexandre Petit-Bianco - - * expr.c (build_invoke_non_interface): New function. - (methods_ident, ncode_ident): Now static globals. - (expand_invoke): Use build_invoke_non_interface. - * java-tree.h (struct lang_decl): New field function_decl_body. - (DECL_FUNCTION_BODY): New macro. - * jcf-parse.c (jcf_parse_source): Deeper check before setting - CLASS_FROM_SOURCE_P. - (parse_source_file): Fixed typos. Call java_layout_parsed_class - before starting pass 2. Call to java_generate_parsed_class replaced - by java_register_parsed_class. - * lex.c: Fixed typo in header. Some line width related formating. - * lex.h: Some line width related formating. - * parse.h (source_end_java_method, resolve_expression_name, - complete_class_decl, maybe_create_class_interface_decl, - check_class_interface_creation): New static function declarations. - (java_layout_parsed_class, java_method_add_stmt): New function - declarations. - (struct parser_ctxt): Field mark_class_generate removed. New - fields class_list and artificial_constructor. - * parse.y: Fixed typo in header. - (class_declaration:): Call complete_class_decl when class body - parsed. - (method_declaration:): Call source_end_java_method in pass 2 when - the method body is defined. - (postfix_expression:): Do expression name resolution on sub-rule - name during pass 2. - (create_class, create_interface): Merged common pieces. - (check_class_interface_creation, maybe_create_class_interface_decl): - New functions. - (complete_class_decl): New function. - (register_fields): Fixed line width related typo. - (method_header): Correctly skip first argument when fixing - argument line. Changed the loop. - (java_check_circular_reference): Now use ctxp->class_list. - (java_complete_class): Removed start/stop marking. - (java_check_regular_methods): Now takes a class decl as an - argument. Add default constructor if none were encountered. - (java_check_methods): Now use ctxp->class_list. Changed call to - java_check_regular_methods. - (source_start_java_method): Set DECL_ARG_TYPE for each function - arguments. - (source_end_java_method, java_method_add_stmt): New functions. - (java_generate_parsed_class): No longer exists. - (java_layout_parsed_class, java_register_parsed_class): New functions. - (resolve_expression_name): New function. - -1998-02-12 Alexandre Petit-Bianco - - * jcf-parse.c: (parse_source_file): Check on errors after init lex. - * lex.c: (java_init_lex): Defer ctxp->java_pass initialization - until pass initializations are done. Call read_import_dir with - pass set to 0. - * parse.h: (lookup_modifier_cl): New function declared. - (INTERFACE_FIELD_MODIFIERS): New macro. - (OBSOLETE_MODIFIER_WARNING): New macro. - * parse.y: (register_fields): Class type and current field name in - local variables. Check modifier(s) if adding field(s) to an interface. - (check_abstract_method_header): Now use OBSOLETE_MODIFIER_WARNING - and report errors using the faulty modifier line context. - (lookup_modifier_cl): New function. - (read_import_dir): Detect and report default import processing - failure. - -1998-02-11 Brendan Kehoe - - Add a pair of -fassume-compiled/-fno-assume-compiled options. - * class.c (is_compiled_class): Return 1 after making sure it - qualifies as loaded, if FLAG_ASSUME_COMPILED is set. - * lang-options.h: Add -fassume-compiled/-fno-assume-compiled. - * java-tree.h (flag_assume_compiled): Add decl. - * lang.c (lang_f_options): Add the flag. - (flag_assume_compiled): Add decl, default to 0. - -1998-02-11 Alexandre Petit-Bianco - - * class.c (class_depth): Call to load_class uses extra VERBOSE arg. - (is_compiled_class): Likewise. - (layout_class): Likewise. - (layout_class): Detect and lay out classes defined in source code. - (interface_of_p, add_interface_do, may_add_interface): New - function. - (add_interface): Now use add_interface_do. - (add_method_1): New function. - (add_method): Now use add_method_1. - (pushlevel): Debug message conditional to SOURCE_FRONTEND_DEBUG. - (complete_start_java_method): New function. - (start_java_mehod): Now call complete_start_java_method. - * expr.c (lookup_field): Call to load_class uses extra VERBOSE arg. - (expand_invoke): Likewise and fixed typo. - *gjava.c: (print_super_field): Use new argument to find_class - DO_CLASS_FILE. - (main): Likewise. - *java-tree.h: (CLASS_FROM_SOURCE_P): New flag on RECORD_TYPE. - (IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P, IS_A_CLASSFILE_NAME, - QUALIFIED_P, IS_AN_IMPORT_ON_DEMAND_P): New flags on - IDENTIFIER_NODE. - (CLASS_COMPLETE_P): New flag on TYPE_DECL. - (add_method_1, push_class): New prototypes. - *jcf-dump.c: find_class now uses new DO_CLASS_FILE argument. - *jcf-io.c: (open_in_zip): jcf now stores a pointer to the Zip - directory where the class was found. - (find_class): New argument DO_CLASS_FILE. Function find_class - modified accordingly. - *jcf-parse.c: (fix_class_path): New function. - (load_class): Use new VERBOSE argument. load_class now finds and - loads/parses .class/.java files. Save read_state of current_jcf - if necessary. - (java_parser_abort_on_error): New macro. - (jcf_parse_source, parse_source_file): New function. - (jcf_parse): Fixed typo. - (yyparse): Call parse_source_file () only. - (process_zip_dir): Fixed typo, fix zdir->filename_length when - writing the real class name back in the zip directory entry. - (find_in_current_zip): IDENTIFIER_CLASS_VALUE may be null. - (jcf_figure_file_type): Fixed bogus alloc and bcopy. - *jcf.h: (typedef struct JCF): New fields java_source and zipd. - (find_class): Prototype fixed. - *lex.c: Added 1998 time stamp. - Removed all static global variables, moved into the parser - context data structure.. Now include unistd.h if SEEK_SET not - defined. - (java_init_lex): Rewritten. - (java_sneak_unicode): Modified current unicode access in current line. - (java_unget_unicode): Likewise. - (java_allocate_new_line): New allocation management. - (java_read_char): Modified access and storage of unget_utf8_value. - New way of processing current unicode. - (java_store_unicode, java_read_unicode): Fixed typo in declaration. - (java_get_unicode): Now use the parser context. - (java_lineterminator): Likewise. - (java_lex): Now used java_lval argument (pointer to YYSTYPE), part - of the reentrant parser implementation. Function now use the - parser context data structure and java_lval. Fixed production of - the float and double constant "out of range" error message. Fixed - obstack use. Return integer value when hitting a modifier. Now - return type for TRUE, FALSE and other predefined types. Return - identifier as a TREE_LIST list containing the current line context - as the TREE_VALUE sub-node. - (java_unicode_2_utf8): Fixed typo in declaration. - (java_lex_error): Now use the parser context data structure. - *lex.h: Added 1998 time stamp. - (struct java_line): New fields ref_count and next. - (JAVA_LINE_CHECK, JAVA_LINE_MARK, JAVA_LINE_CHAIN, - JAVA_LINE_UNMARK, ID_NAME, ID_CL): New macros. - (JAVA_FLOAT_RANGE_ERROR, JAVA_INTEGRAL_RANGE_ERROR, UNGETC): Fixed. - *parse.h: Added 1998 time stamp. - (java_parse_source_file): Renamed from parse_source_file. - (YYERROR_NOW, YYNOT_TWICE): Fixed. - (CLASS_MODIFIERS, FIELD_MODIFIERS, METHOD_MODIFIERS, - INTERFACE_MODIFIER, INTERFACE_METHOD_MODIFIERS, - JAVA_MODIFIER_CTX_UNMARK, IC_DECL, IC_DEPEND, DEPEND_DECL, - THIS_MODIFIER_ONLY, ABSTRACT_CHECK, BEGIN_ONLY_PASS, - END_ONLY_PASS, ELSE_ONLY_PASS, exit_java_complete_class, - CLASS_OR_INTERFACE, INCOMPLETE_P): New macros. - (struct parser_ctxt): New data structure to keep the parser context. - *parse.y: Added 1998 time stamp, got rid of static global variables. - (java_error_count, ctxp): New global variables. - (%union): New value field. - (numeric_type, integral_type): Rules removed. - (primitive_type): Rule defined to handle integral, float, double and - boolean types. - (qualified_name, package_declaration, - single_type_import_declaration, type_import_on_demand_declaration, - modifiers, class_declaration, super, interfaces, - interface_type_list, class_body, field_declaration, - field_declaration, variable_declarators, variable_declarator, - variable_declarator_id, method_declaration, method_header, - formal_parameter_list, formal_parameter, method_body, block, - static, interface_declaration, extends_interfaces, - abstract_method_declaration, local_variable_declarators): Rules now - define actions. - (force_error, do_warning): New global statics. - (push_parser_context, parser_context_save_global, - parser_context_restore_global, pop_parser_context): New functions. - (yyerror): Now uses the global parser context. Fixed use of obstack. - (parse_error, parse_error_context, parse_warning_context, - java_accstring_lookup, redefinition_error, check_modifiers, - parser_add_interface, create_interface, create_class, find_field, - duplicate_declaration_error, register_fields, method_header, - check_modifiers_consistency, check_abstract_method_header, - method_declarator, parser_qualified_classname, - parser_check_super_interface, parser_check_super, - parser_chain_incomplete_item, java_check_circular_reference, - layout_class_from_source, java_complete_class, - complete_method_decl, resolve_class, complete_class_report_errors, - java_check_final, check_method_redefinition, - java_check_regular_methods, java_check_abstract_methods, - java_check_methods, lookup_java_interface_method2, - lookup_java_method2, lookup_cl, find_name_in_single_imports, - process_imports, find_in_imports, read_import_entry, - read_import_dir, find_in_imports_on_demand, - check_pkg_class_access, not_builtin_p, declare_local_variables, - source_start_java_method, java_generate_parsed_class): New - functions. - *typeck.c: (signature_include_return): New global variable. - (build_java_signature): Use SIGNATURE_INCLUDE_RETURN figure whether - to add the function returned type in the signature. - -1998-02-09 Brendan Kehoe - - * jcf-io.c (open_in_zip): Use strncmp and LEN. - -1998-01-29 Dave Brolley - - * Make-lang.in (java.info): Added. - (java.install-info): Added - -1998-01-27 Brendan Kehoe - - * Makefile.in (clean): Also remove java/parse.c. - -1998-01-26 Brendan Kehoe - - Add a pair of -fbounds-check/-fno-bounds-check options. - * lang.c (lang_decode_option): Add code to grok arguments. - (flag_bounds_check): Add decl. - (lang_f_options): New array w/ the option in it. - * java-tree.h (flag_bounds_check): Add decl. - * lang-options.h: New file. - * expr.c (build_java_arrayaccess): Use flag_bounds_check instead - of a static macro value. - (JAVA_ARRAY_EXCEPTION): Delete macro. - -1998-01-23 Per Bothner - - * typeck.c (build_java_array_type): Fix two bugs in previous change. - * expr.c (build_anewarray): Add missing promote_type. - -1998-01-22 Per Bothner - - Add array types with known length to optimize bounds checking. - * typeck.c (build_java_array_type): Take length parameter. - (java_array_type_length, build_prim_array_type): New functions. - * java-tree.h: Update for new functions. - * expr.c, typeck.c, verify.c: Update build_java_array_type calls. - * class.c: Use build_prim_array_type. - * expr.c (can_widen_reference_to): Handle known-length array types. - (verify_jvm_instructions): Keep track of integer push instructions - followed by newarray/anewarray, so we can build known-length arrays. - (JAVA_ARRAY_DATA_OFFSET): Replace by ... - (java_array_data_offset): New function. - (build_java_array_length_access): New function. Optimize if constant. - (build_java_arrayaccess): Constant fold bounds check. - (expand_java_newarray, expand_java_anewarray): Replaced by ... - (build_newarray, build_anewarray): New functions. - (ARRAY_NEW_NUM, ARRAY_NEW_PTR): Use build_{a,}newarray. - * verify.c (merge_types): Handle known-lengh array types. - -1998-01-19 Per Bothner - - * expr.c (expand_byte_code): Fix performace bug, which caused - searching linenumber_table to be linear rather than constant. - -1997-12-12 Per Bothner - - * Makefile.in (BISON, BISONFLAGS): Add missing macros. - - * decl.c, java-tree.h (soft_fmod_node): New global. - * decl.c (init_decl_processing): Define __builtin_fmod. - * expr.c (build_java_binop): Implement TRUNC_MOD_EXPR for REAL_TYPE - using __builtin_fmod. - -1997-12-04 Alexandre Petit-Bianco - - * keyword.h: New file, output of keyword.gperf as processed by - gperf. - * lex.c (java_lex_init): Initialize java_error_flag. - * parse.c (YYERROR_NOW): Uses java_error_flag. - * parse.y: New static java_error_flag. Useless definition of - buffer_error gone. - * parse.y (java_error): Portable error recovery using - java_error_flag (not yet completely tuned). - -1997-12-04 Brendan Kehoe - - * Makefile.in (parse.c): Use $(srcdir) for parse.y. - -1997-12-03 Alexandre Petit-Bianco - - * Makefile.in: (JAVA_OBJS): New object jcf-parse.o. - (parse.c, lex.c, keyword.h): New rules for Java source code - front-end. - * parse.c: Renamed into jcf-parse.c. - * jcf-parse.c (yyparse): Invoke the parser to process Java source code. - * keyword.gperf: New file, Java keywords. - * parse.y: New file, Java language grammar. - * parse.h: New file, Java language grammar definitions. - * lex.c: New file, Java language lexer. - * lex.h: New file, Java language lexer definitions. - -1997-12-03 Per Bothner - - * decl.c (clinit_identifier_node), java-tree.h: New global. - * java-tree.h (IS_METHOD_INIT_P, IS_METHOD_CLINIT_P): Removed. - * verify.c (verify_jvm_instructions): Inline use of removed macros. - * expr.c (expand_java_field_op): Check for invalid assignment - to final field. - - * jcf-reader.c (get_attribute): Test for wrong attribute length. - -1997-10-27 Per Bothner - - * verify.c (verify_jvm_instructions): When processing a handler, - attempt to set the current_subr to the right value. - (More complicated code combines Sep 17 and Oct 22 versions.) - -1997-10-24 Per Bothner - - * class.c (push_class): Figure out (guess) name of source file. - * parse.c (set_source_filename): Set DECL_SOURCE_FILE of class decl. - (give_name_to_class): Don't guess source name; use DECL_SOURCE_FILE. - (parse_class_file): Change return type from int to void. - Call debug_start_source_file/debug_end_source_file. - - * expr.c (build_java_binop): Fix masking 2nd operand. - * decl.c (init_decl_processing): Set sizetype first. - -1997-10-22 Per Bothner - - * verify.c (verify_jvm_instructions): Don't set current_subr to NULL. - (Revert Sep 17 change.) - -1997-10-21 Alexandre Petit-Bianco - - * parse.c (process_zip_dir): Skip ZIP entries not bearing the - .class extension in their name and fix thing so we don't process - them parse_zip_file_entries(). - (parse_zip_file_entries): Cleaned unused local variables. - -1997-10-20 Per Bothner - - * expr.c (can_widen_reference_to): Allows equal array element types. - (expand_byte_code): PRE_RET must expand OPERAND_VALUE (to get index). - * jcf-dump.c (RET): Get (and print) index. - - * verify.c (verify_jvm_instructions case OPCODE_anewarray): - Promote element type to POINTER_TYPE. - -1997-10-20 Alexandre Petit-Bianco - - * jcf-reader.c, parse.c: (parse_zip_file, process_zip_dir, - find_in_current_zip, jcf_figure_file_type): Moved from - jcf-reader.c to parse.c. - * zextract.c: (read_zip_archive): takes file_comment_length possible - field into account. - -1997-10-20 Per Bothner - - * verify.c (verify_jvm_instructions): Var can also be promoted to int. - - * verify.c (merge_types): Handle array types even better ... - -1997-10-17 Per Bothner - - * expr.c (java_stack_pop): Fix use of NULL_TREE for TYPE_SECOND. - - * java-tree.h (PUSH_FIELD): Set DECL_ARTIFICIAL. - * class.c (make_class_data): Don't build fields_decl if no fields. - When building fields_decl, skip if DECL_ARTIFICIAL. - - * expr.c (java_stack_swap): Update stack_type_map. - * verify.c (merge_types): Handle array types better. - -1997-10-15 Per Bothner - - * class.c (add_field): Don't promote short integral fields to - int any more (unless JAVA_PROMOTE_TO_INT), since Kaffe doesn't. - * expr.c (push_value): Promote and convert short integral values. - - * decl.c, java-tree.h (integer_two_node): New constant node. - * verify.c (merge_types): Check for TYPE_RETURN_ADDR. - -1997-10-15 Alexandre Petit-Bianco - - * class.c (append_gpp_mangled_type): Use function argument - unpromoted type to generate mangled name. - -1997-10-13 Alexandre Petit-Bianco - - * constants.c (build_constant_data_ref): Now uses current_class - instead of main_class. - (build_constants_constructor): Now uses current_class instead of - main_class. - * zipfile.h: (struct ZipFileCache): Now defined here. Declaration - of the global variable SeepZipFiles done here. - * zextract.c (read_zip_archive): extra_field optional field taken - into account while computing the position of the class file in the - archive. - * verify.c (verify_jvm_instructions): Use current_jcf to search - the constant pool. - * parse.c (load_class): First search for the class to load in the - current zip file. Saves current_jcf (restored before returning - from that function). Don't call JCF_FINISH in the class was found - in the current ZIP file. - (jcf_parse): If the class was found in the current ZIP file, save - its tree_constant_pool (for later reuse). - (parse_class_file): New function. Process each method defined in - the current class and record the class as to be later registered. - (yyparse): Rewritten. Figure the type of the current file and switch - accordingly. - * lang.c: New global variable current_jcf. - (lang_init): Removed compiling_from_source test (done later, in - yyparse). Removed call the jcf_parse (). - * jcf.h (JCF_ZIP, JCF_CLASS, JCF_SOURCE): New defined values. - (typedef struct JCF): New fields seen_in_zip (to mark a class found - in the current ZIP file) and zip_offset (offset to the class data in - the current zip file). - * jcf-reader.c: zipfile.h included. - localToFile: New ZipFileCache static global variable - (parse_zip_file_entries): New function. Browse the current ZIP - file directory and process each class found. - (process_zip_dir): New function. Register each class found in the - ZIP file directory. The class aren't parsed but a valid JCF is - link to each of them. - (find_in_current_zip): New function. Search for a class in the - current ZIP file directory. If found, prepare the class so that it - can be loaded. - (jcf_figure_file_type): New function. Examine the file structure - to figure a class file, a ZIP file. If none of these categories are - matched, a source file is assumed. - * jcf-io.c: Removed definition of ZipFileCache (moved in zipfile.h). - SeenZipFile: New global variable. - (open_in_zip): Use zipmember's length to accelerate the search for - a member. If zipmember was NULL and zip file successfully read, - return 0. - * java-tree.h: New global variable current_jcf declared. Added - declaration for current_constant_pool_tags, current_constant_pool_data, - current_constant_pool_length, current_constant_pool_data_ref. - (struct lang_type): Augmented with two fields. struct JCF *jcf (to - store the JCF of classes seen in a zip file) and tree *constant_pool - (to save a loaded class constant pool). current_class declared here. - * expr.c (expand_invoke): Use current_jcf instead of main_jcf to - retrieve method_ref_constant. - (PUSHC): java_push_constant_from_pool now uses current_jcf. - (OBJECT): get_class_constant now uses current_jcf. - (ARRAY_NEW_PTR): get_class_constant now uses current_jcf. - (ARRAY_NEW_MULTI): get_class_constant now uses current_jcf. - (expand_invoke): Now uses current_class instead of main_class - (build_class_init): Now uses current_class instead of main_class - * class.c: New static global variable registered_class. - (register_class): New function. - (emit_register_class): Modified to use registered_class instead of - main_class - (is_compiled_class): Now take into account class seen in the archive. - -1997-10-06 Per Bothner - - * except.h: Renamed to: java-except.h. - * parse.c, except.c, expr.c, verify.c: Update #include accordingly. - * except.c: Add semi-working (commented out) implementation. - - * expr.c (expand_iinc): Add needed flush_quick_stack. - * parse.c (set_source_filename): New function. - (give_name_to_class): Set input_filename from package.classname.java. - - * jcf-io.c (find_class): Don't look first in ".". - -1997-10-01 Alexandre Petit-Bianco - - * zextract.c (read_zip_archive): Now takes into account the - extra_field field. - * expr.c (can_widen_reference_to): Modified to handle sub-interfaces. - -1997-09-20 Per Bothner - - * constants.c, java-tree.h (build_internal_class_name): New function. - (alloc_class_constant): Re-implement using build_internal_class_name. - * class.c (make_class_data): Likewise. - * class.c (hashUtf8String): Make hash algorithm match String.hashCode. - -1997-09-17 Per Bothner - - * verify.c (verify_jvm_instructions): Temporarily set current_subr - to NULL before pushing an exception handler target. - - * expr.c (flush_quick_stack): Save from low stack indexes to high. - (java_stack_swap, java_stack_dup): Re-write to be safe from - clobbering registers. - (build_class_init): New function. - -1997-09-17 Alexandre Petit-Bianco - - * typeck.c (build_java_array_type): Temporary use - permanent_obstack to create the array 'length' field. - * expr.c (lookup_label): Temporay use permanent_obstack to create - label if not found. - * class.c (push_super_field): Tempory use permanent_obstack. - -1997-09-15 Alexandre Petit-Bianco - - * typeck.c (type_for_mode): Now handles double_type_node and - float_type_node. - * verify.c (verify_jvm_instructions): The instruction following - the wide bytecode is checked. OPCODE_ret added to the list of - wide. - -1997-09-11 Alexandre Petit-Bianco - - * class.c (make_class): Temporary use permanent_obstack. Set the - class CLASS_P field to 1. - (push_class): Temporary use permanent_obstack. - (set_super_info): Temporary use permanent_obstack. - (add_method): Temporary use permanent_obstack, set - METHOD_TRANSIENT(). - (add_field): Temporary use permanent_obstack. Sets - FIELD_VOLATILE() and FIELD_TRANSIENT(). - (build_class_ref): Temporary use permanent_obstack if the class - isn't compiled. - (build_static_field_ref): Temporary use permanent_obstack when - creating field's rtl. - (get_access_flags_from_decl): Handle ACC_VOLATILE, ACC_TRANSIENT, - ACC_SYNCHRONIZED, ACC_NATIVE, ACC_ABSTRACT flags for methods - and fields. Function finalized, as far as flag handling. - (push_class_static_dummy_field): Temporary use permanent_obstack. - (emit_register_class): Force generation of class registration at - -O3 or deeper. - * decl.c (end_java_method): Call permanent_allocation() before - returning. - * expr.c (can_widen_reference_to): Added comment to interface - handling, fixed typo. - (lookup_field): Now uses CLASS_P() to correct FIXME - (expand_invoke): Verification on public && !static && - !abstract moved into soft_lookupinterfacemethod (kaffe). - Use Object class dtable if objectref is an array when expanding - invokeinterface. - (java_push_constant_from_pool): Temporary use permanent_obstack - for CONSTANT_string - * parse.c (get_ref_constant): Temporary use permanent_obstack to - create constant references. - (get_constant): Temporary use permanent_obstack to create constant. - (load_class): Temporary use permanent_obstack to load class. - (jcf_parse): Temporary use permanent_obstack to perform class - layout. - * typeck.c: (parse_signature_string): Temporary use permanent_obstack. - (build_java_signature): Temporary use permanent_obstack. - * verify.c: (verify_jvm_instruction): removed unnecessary verification - on ACC_SUPER flag. - * java-tree.h (METHOD_NATIVE, METHOD_TRANSIENT): Defined. - (FIELD_VOLATILE, FIELD_TRANSIENT): Defined. - (CLASS_P): Defined - -1997-09-11 Per Bothner - - * class.c (append_gpp_mangled_type): Fix typo. - (emit_register_class): Use main_class to get class object, rather - than looking for no-longer-existing static decl starting with _CL. - * typeck.c (parse_signature_type): Promote array element type - if it is a RECORD_TYPE. - -1997-09-10 Per Bothner - - * class.c (push_class_static_dummy_field): New function. - (mangle_static_field): New. Do G++-style mangling of static fields. - (layout_class): Mandle static fields here, not in add_field. - (build_class_ref): The class object is now a dummy static field. - * decl.c (find_local_variable): Look for best, instead of first match. - * expr.c (push_type): Always promote_type, not just for RECORD_TYPE. - (build_java_athrow): Don't check here if exception is Throwable. - * java-tree.h (TYPE_UNSET): Renamed to TYPE_UNKNOWN. - (TYPE_USED): Removed. No longer used ... - * parse.c (jcf_parse): Call push_class_static_dummy_field. - * verify.c (push_pending_label): New function. - (push_pending_block): Renamed to check_pending_block. - (merge_types): Remove unneeded suuport for TYPE_UNUSED. - (verify_jvm_instructions): Only reset prev_eh_ranges (to force - re-checking possible handlers) after a store (less wasted work). - Check for null handler (finally) before calling add_handler. - Various changes to (finally?) correctly handle try/finally. - -1997-09-09 Brendan Kehoe - - * class.c: Include stdio.h. - -1997-09-04 Per Bothner - - * expr.c (expand_invoke): Use COMPOUND_EXPR (and TREE_SIDE_EFFECTS) - to make sure class is initialized before static/special invoke. - - * verify.c (verify_jvm_instructions): On a store instruction, - call find_local_variable to force pre-allocation of decl and rtx. - * decl.c (push_jvm_slot): Set DECL_REGISTER on stack slots. - -1997-09-03 Per Bothner - - * class.c (build_class_ref): Strip off "promoted_" if need be. - (make_field_value): Call build_java_signature when needed. - (layout_class): Don't make_function_rtl if METHOD_ABSTRACT. - * expr.c (build_java_athrow): Don't push_value of exception. - (build_java_binop): Implement COMPARE_L_EXPR and COMPARE_G_EXPR to - match specification of [fd]cmp[lg] for NaNs. - (expand_byte_code): Add support for exception handler ranges. - * except.c: Add skeleton for EH code-generation. - * verify.c (merge_types): Treat all promoted integral types as equal. - * constants.c (build_constants_constructor): To force creation of - current_constant_pool_data_ref, call build_constant_data_ref. - - * javaop.def (lload): Fix typo. - * jcf-dump.c (main): Clear filename to prevent possibly-bad free. - -1997-09-02 Brendan Kehoe - - * parse.c: Don't include function.h. - -1997-08-27 Per Bothner - - * except.[ch]: New files. - * Makefile.in (JAVA_OBJS): Add except.o - * expr.c: Temporary warning about unimplemented exceptions. - * verify.c: Verify exception handlers. - - * jcf-dump.c (disassemble_method): Print exception table. - -1997-08-27 Alexandre Petit-Bianco - - * expr.c (verify_jvm_instructions): Started a thorough - verification of invoke* bytecodes. - (expand_byte_code): flush quick stack if PC is the target of a - branch. and undef RET (conflicting with config/i386/i386.h). - (expand_java_arrayload): Fixed bogus cast, when Boolean type is - used. - (expand_invoke): Now handles invokeinterface and do more - verification according to the bytecode. - (lookup_field): Don't try to load the class if processing - dtable_type. - (can_widen_reference_to): Now handles interfaces. - * decl.c (init_decl_processing): New global variable - soft_lookupinterfacemethod_node, declared in java-tree.h. - Call set_super_info on string_type_node. - * java-tree.h (CLASS_INTERFACE, CLASS_ABSTRACT, CLASS_SUPER): Now - defined. - * class.c (set_super_info): Fills the CLASS_* flags according to - access_flags. - (get_access_flags_from_decl): Handles all class flags. - -1997-08-26 Per Bothner - - * class.c (add_method): Zero out newly-allocated DECL_LANG_SPECIFIC. - * parse.c (yyparse): Check for abstract method, and missing code. - * expr.c (expand_byte_code): Change interface. - * lang.c (put_decl_node): Print promoted types prettier. - * verify.c (verify_jvm_instruction): Change interface. - Partial support for scanning exception table. - For load instructions, handle promoted integral types. - -1997-08-21 Per Bothner - - * verify.c: New file, with contents moved from expr.c. - * expr.c: Bunch of stuff (mostly verification) moved to verify.c. - * typeck.c (is_array_type_p): Moved here from expr.c. - * java-tree.h: Add some now-needed function declarations. - * Makefile.in (JAVA_OBJS): Added verify.o. - -1997-08-20 Alexandre Petit-Bianco - - * class.c (add_method): Sets the METHOD_SYNCHRONIZED flag, sets the - METHOD_ABSTRACT flag. - - * java-tree.h (METHOD_SYNCHRONIZED): Set to DECL_LANG_FLAG_4. - (IS_METHOD_CLINIT_P, IS_METHOD_INIT_P): New macros. - (METHOD_ABSTRACT): Set to DECL_LANG_FLAG_5 - - * decl.c (soft_monitorenter_node, soft_monitorexit_node): New global - variables. - (start_java_method): Hook for SYNCHRONIZED methods. - - * expr.c (build_java_jsr, build_java_ret): New functions - (JSR,PRE): New macros - (PRE_TABLE_SWITCH, PRE_LOOKUP_SWITCH): Fixed and secured. - (verify_jvm_instructions): tableswitch, lookupswitch, - monitorenter, monitorexit, goto_w: verified. - (LOOKUP_SWITCH, TABLE_SWITCH): Fixed generation of default: label - (build_java_monitor): New function. - (MONITOR_OPERATION): Modified to call build_java_monitor() - (verify_jvm_instructions): Started a thorough verification of - invoke* bytecodes. - -1997-08-19 Per Bothner - - Support verification of jsr/ret subroutines (used for try/finally). - * decl.c (return_address_type_node): New type node. - * java-tree.h (LABEL_RETURN_LABEL, LABEL_RETURN_TYPE_STATE, - RETURN_MAP_ADJUSTED, LABEL_RETURN_LABELS, LABEL_IN_SUBR, - LABEL_SUBR_START, LABEL_SUBR_CONTEXT, BCODE_VERIFIED): New macros. - (TYPE_UNSET, TYPE_SECOND, TYPE_NULL, TYPE_RETURN_ADDR, TYPE_UNUSED, - TYPE_USED): New macros for special types in type_map. - - * java-tree.h (BCODE_JUMP_TARGET): Renamed to BCODE_TARGET. - (BCODE_BACKWARDS_TARGET, CODE_FORWARDS_TARGET): Replaced by - BCODE_JUMP_TARGET. - * expr.c (expand_byte_code): Fix logic to warn of unused instructions. - - * expr.c (can_widen_reference_to): New function. - (pop_type): Use it. - (merge_type_state): Support handling start of subroutine. - (push_pending_block): Return char* error message, instead of calling - fatal on an error. Also handle subroutines. - (verify_jvm_instructions): Handle errors from push_poending_block. - Support jsr and ret instructions. - -1997-08-19 Per Bothner - - * jcf-io.c (find_classfile): Fix thinko. - * jcf-dump.c: Add CONVERT2 (to match changed javaop.def). - -1997-08-12 Jason Merrill - - * Makefile.in (BISON): Remove. - -1997-08-07 Per Bothner - - * Makefile.in: Convert to autoconf. - * config-lang.in (outputs): Added java/Makefile. - - * Make-lang.in, lang-specs.h, config-lang.in, Makefile.in: - Rename cc1java to jc1. - - * lang.c (init_parse, finihs_parse): New functions #ifdef USE_CPPLIB. - * Makefile.in (INTERNAL_CFLAGS): Add @extra_c_flags. - - * class.c (class_depth): Do load_class if needed. - - Mostly better verification. - * decl.c (pushdecl): Set TYPE_STUB_DECL for a type. - (init_decl_processing): Change return type of soft_checkcast. - * expr.c (expand_java_CHECKCAST): Do push_value of the "casted" value. - * lang.c (put_decl_string, put_decl_node, lang_printable_name, - lang_print_error): New functions. - (lang_init): Set global hook print_error_function to lang_print_error. - * expr.c: In the type_map ptr_type_node is only used for null now. - (pop_type, merge_types): Hence ptr_type_node matches any reference. - (merge_types): Dererence pointer to record types before comparing. - (decode_newarray_type, merge_types): On error just return NULL. - (build_java_binop): Add preliminary implementation (with warning) - for COMPARE_L_EXPR and COMPARE_G_EXPR (i.e. [fd]cmp[lg]). - (lookup_label): Set DECL_IGNORED_P (for dwarf2out). - (expand_compare, expand_java_goto, expand_java_call): Don't - push_pending_block, since that only makes sense when verifying. - (merge_type_state): Different return codes. - (push_pending_block): A block may need to be verified more than once. - (expand_byte_code): Warn about unused code at code generation time. - (verify_jvm_instruction): Changed logic, since code may need to be - re-verified if type-state has changed. Also, better error handling. - Implement acmpeq, acmpne, pop, pop2, swap, checkcast, instanceof. - Improve newarray, anewarray, ?aload, athrow, - * java-tree.h (LABEL_CHANGED): New macro. - -1997-08-05 Alexandre Petit-Bianco - - * decl.c (soft_athrow_node): New global variable initialized. - * javaop.def (i2b, i2c, i2s): Invoke CONVERT2 - * typeck.c (convert): Added support for REAL_TYPE. - (convert_to_char): New function. - (convert): Handle CHAR_TYPE. - * expr.c (expand_java_arraystore): Modified because CHAR/BYTE/BOOLEAN/ - SHORT now expect INT but store as CHAR/BYTE/BOOLEAN/SHORT. - (expand_java_arrayload): CHAR/BYTE/BOOLEAN/SHORT now convert result to - promoted type. - (verify_jvm_instructions): Added break a the end of bogus unop: label. - (OPCODE_astore): Pop an int operand from the type stack - (OPCODE_astore): Push the promoted type onto the stack - (process_jvm_instruction): New macro CONVERT2 for i2c, i2s and i2b. - (JAVA_ARRAY_LENGTH_OFFSET, JAVA_ARRAY_DATA_OFFSET): Modified - to Use The Right Things. - (pop_type): Accept CHAR/BYTE/BOOLEAN/SHORT promoted type as - compatible with INT. BOOLEAN is made equivalent to BYTE. - (OPCODE_athrow, OPCODE_aconst_null, OPCODE_ifnull, - OPCODE_ifnonnull): Now supported. - (build_java_athrow): New function. - -1997-08-04 Per Bothner - - Rename method name to match G++ (and fix mangling). - * class.c (layout_class): Replace method name of by class name. - (make_method_value): Do inverse renaming of constructor from . - * java-tree.h (DECL_CONSTRUCTOR_P): New macro. - * typeck.c (lookup_java_constructor): New function. - * expr.c (expand_invoke): If method_name is , call - lookup_java_constructor to find constructor. - - * parse.c (get_constant): Handle CONSTANT_Float and CONSTANT_Double. - -1997-08-01 Alexandre Petit-Bianco - - * parse.c (get_class_constant): Modified to handle array "classes" - * typeck.c (set_local_type): Bug fixed when filling type_map[] with - wide type. - (convert): Modified to handle real type. - * java-tree.h (soft_badarrayindex_node, soft_anewarray_node, - soft_multianewarray, soft_newarray_node, soft_throw_node): New global - variables declared. - * decl.c (soft_badarrayindex_node, soft_anewarray_node, - soft_multianewarray, soft_newarray_node, soft_throw_node): New - global variables initialized. - (find_local_variable): Handles the case of a pointer - (end_java_method): Restore the use of one more scope - * expr.c (build_java_arraynull_check, build_java_arrayaccess, - build_java_array_length_access, expand_java_arrayload, - expand_java_arraystore, expand_java_array_length, - expand_java_multianewarray, expand_java_anewarray, - build_java_check_indexed_type, is_array_type_p, - build_java_throw_out_of_bound_exception): New functions. - (STORE_INTERNAL): Now forces type of the decl to be type of the value. - (OPCODE_arraylength, OPCODE_newarray, OPCODE_astore, - OPCODE_aload): Implemented code for verification. - (ARRAY_STORE, ARRAY_LOAD, ARRAY_LENGTH, ARRAY_NEW_PTR, ARRAY_NEW_NUM - ARRAY_NEW_MULTI): Macro defined. - (CONVERT): Modified to invoke convert(). - (case OPCODE_aload2): Fixed index typo from 2 to 1. - -1997-07-31 Per Bothner - - * class.c (push_class): Set DECL_ARTIFICIAL (for dbxout.c). - (build_class_ref, is_compiled_class): Handle pointer-to-record types. - (make_class_data): Field name needs '/' as package prefix. - * expr.c (type_stack_dup, java_stack_dup): Fix fencepost errors. - -1997-07-25 Per Bothner - - Implement debug information for local variables. - * java-tree.h (DECL_CODE_LENGTH, DECL_ARG_SLOT_COUNT, - DECL_LOCAL_SLOT_NUMBER, DECL_LOCAL_START_PC, DECL_LOCAL_END_PC, - DECL_LOCAL_SLOT_CHAIN): New macros. - (struct lang_decl_var): New type. - * parse.c (give_name_to_locals): Move to decl.c. - * decl.c (give_name_to_locals): Re-written to Do The Right Thing. - (start_java_method): Re-write parameter handling. - (pending_local_decls): New global variable. - (push_jvm_slot, maybe_pushlevels, maybe_poplevels): New functions. - (find_local_variable): Accept pc so we can skips decls not in range. - (struct binding_level): Add end_pc field. - * expr.c (expand_byte_code): Call maybe_pushlevels and maybe_poplevels. - (various): Change so current pc gets passed to find_local_variable. - - * decl.c (init_decl_processing): Re-arrange fields in - class_type_node and and method_type_node to match kaffe 0.9.1. - * class.c (make_method_value, make_class_data): Update - initializations to match. - -1997-07-16 Per Bothner - - * class.c (unicode_mangling_length, emit_unicode_mangled_name, - append_gpp_mangled_name, append_gpp_mangled_type): New functions. - (push_super_field): New function. - (make_class_data): Handle inheritance of class static initializer. - (layout_class): New name mangling. - * constants.c (build_constant_data_ref): Init type of data array - to a one-element array. - (build_constants_constructor): Set DECL_SIZE from complete array type. - * decl.c: Rename class_type, object_type etc to class_type_node, - object_type_node etc. Make former inherit from latter. - * expr.c (expand_invoke): Add cast of function address. - * java-tree.h (TYPE_ARRAY_ELEMENT, PUSH_SUPER_VALUE): New. - * parse.c (yyparse): Don't call layout_class here. - * typeck.c (build_java_array_type): Set TYPE_ARRAY_ELEMENT. - -1997-06-14 Per Bothner - - * decl.c, class.c: Update method type to match latest Kaffe snapshot. - * constants.c (lookup_name_constant): Renamed to alloc_name_constant. - (alloc_class_constant): New. - * expr.c (expand_invoke): Make sure method's class is initialized. - * class.c (interits_from_p, emit_register_class): New functions. - * parse.c (yyparse): Call emit_register_class. - -1997-06-09 Per Bothner - - * constants.c: New file, to handle constant pool. - * Makefile.in (JAVA_OBJS): Add constants.o. - * decl.c (init_decl_processing): Update, fix, finish various structs. - (pushdecl_top_level): New. - * parse.c (layout_class): Moved to class.c. - * expr.c (java_push_constant_from_pool): New function. - * class.c (build_class_ref): Make work fully - (make_class_data): Emit super-class, constant pool, interface vector. - -1997-06-03 Per Bothner - - java-tree.h (DECL_SIGNATURE, BCODE_EMITTED): Remove. - (LABEL_VERIFIED, BCODE_EXCEPTION_TARGET, TYPE_ARRAY_P): New. - * class.c (class_depth): New function. - (lookup_named_class): Replaced by new function lookup_class. - * decl.c (object_type_node, string_type_node): New. - Remove various types that we no longer need. - * expr.c (verify_jvm_instructions): New separate verifier pass. - (push_type, pop_type): New functions for verifier. - (type_stack_dup, pop_argument_types, merge_types): Likewise. - (expand_byte_code): Simplify, since we assume already verified. - (expand_invoke): Now mostly works. - * javaop.def: Rename ldc1->ldc, ldc2->ldc_w, ldc2w->ldc2_w. - * lang.c (main_class): Move to parse.c. Don't make_class yet. - * parse.c: Wait to allocate class object until we know its name. - (layout_class): Calculate DECL_VINDEX for each virtual method. - * typeck.c (get_array_type): Rename to ... - (build_java_array_type): ... and provide working implementation. - (build_java_signature): New function - build Java signature of type. - (set_java_signature): New function - cache signature with type. - (lookup_java_method): New function. - -1997-05-06 Per Bothner - - * class.c (ident_subst): Take extra SUFFIX parameter. - (add_field): Set DECL_ASSEMBLER_NAME of static fields; more. - (set_constant_value, build_static_field_ref, is_compiled_class): New. - (build_class_ref): Actually implement. - * decl.c, java-tree.h: Renamed some xx_type to xx_type_node. - * decl.c (builtin_function): New. - (init_decl_processing): Update for current Kaffe. Declare some - builtin Kaffe functions. - * expr.c (build_address_of): New. - (expand_java_NEW, expand_java_INSTANCEOF, expand_java_CHECKCAST): - Renamed (from expand_java_new etc), and added working implementations. - (build_field_ref): Now also handle static fields. - (expand_invoke): Implement invokestatic, and start implement rest. - * java-opcodes.h: Use javaop.def to avoid duplicated list. - * javaop.def: Rename invokevirt -> invokevirtual. - * lang.c (use_handles): Removed. - * parse.c: Add support for ConstantValue attribute. - Handle nested loading of a class. (JPOOL_UTF): New. - -1997-03-11 Per Bothner - - * expr.c (expand_java_pushc): Support #ifndef REAL_ARITHMETIC case. - -1997-02-27 Per Bothner - - * Make-lang.in (java.install-man): New empty rule. - * typeck.c (set_local_type): New function. - * expr.c (STORE_INTERNAL): Call find_local_variable, - not find_stack_slot. Call set_local_type. - -1997-02-12 Per Bothner - - * java-tree.h: Various new macros for constructing RECORD_TYPEs, - and building RECORD_TYPE CONSTRUCTORs. - Also support for creating Utf8Const objects from an INDETIFIER_NODE. - - * lang.c (use_handles): Change the default to 0. - * decl.c: Define and build class_type, field_type, utf8const_type. - * class.c (make_class_data, make_field_value, - get_access_flags_from_decl, build_class_ref, build_utf8_ref, - hashUtf8String, strLengthUtf8, mangled_classname: - Functions to build reflective data structures. - * parse.c (yyparse): Call make_class_data. - - * jcf-io.c (open_class, find_classfile): New functions. - * jcf-dump.c: Support reading classfile from explicitly-named - class file (without CLASSPATH searching). - -1996-10-24 Per Bothner - - * jcf-reader.c: Add parameter list to HANDLE_CONSTANT_Utf8. - * parse.c (JPOOL_UTF_LENGTH, JPOOL_UTF_DATA, HANDLE_CONSTANT_Utf8): - Override jcf-reader macros so CONSTANT_Utf8 becomes tree node here. - (get_constant): Now trivial for CONSTANT_Utf8. - - * jcf.h: Make NEW_CPOOL the default. - * jcf.h, jcf-reader.c, parse.c: Remove support for !NEW_CPOOL. - -1996-10-24 Per Bothner - - New directory. - + * gcj.texi: Bump @copying's copyright year. -Copyright (C) 1996-2013 Free Software Foundation, Inc. +Copyright (C) 2014 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/java/ChangeLog-2013 b/gcc/java/ChangeLog-2013 new file mode 100644 index 00000000000..5ab19210cb7 --- /dev/null +++ b/gcc/java/ChangeLog-2013 @@ -0,0 +1,22898 @@ +2013-12-19 Jakub Jelinek + + PR other/59545 + * class.c (hashUtf8String): Compute hash in unsigned type. + * javaop.h (WORD_TO_INT): Avoid signed integer overflow. + +2013-11-22 Andrew MacLeod + + * java-gimplify.c: Add required include files from gimple.h. + +2013-11-22 David Malcolm + + * class.c (maybe_layout_super_class): Update comment. + * decl.c (java_add_stmt): Remove use of input_filename macro. + * jcf-parse.c (set_source_filename): Remove use of + input_filename macro. + (parse_class_file): Remove use of input_line and input_filename + macros. + (java_parse_file): Remove use of input_filename macro. + +2013-11-18 Richard Sandiford + + * class.c, expr.c: Replace tree_low_cst (..., 0) with tree_to_shwi + throughout. + +2013-11-18 Richard Sandiford + + * class.c, expr.c: Replace host_integerp (..., 0) with + tree_fits_shwi_p throughout. + +2013-11-14 Andrew MacLeod + + * java-gimplify.c: Include only gimplify.h and gimple.h as needed. + +2013-11-14 Diego Novillo + + * builtins.c: Include stor-layout.h. + Include stringpool.h. + * class.c: Include stringpool.h. + Include stor-layout.h. + Include varasm.h. + * constants.c: Include stringpool.h. + Include stor-layout.h. + * decl.c: Include stor-layout.h. + Include stringpool.h. + Include varasm.h. + * except.c: Include stringpool.h. + Include stor-layout.h. + * expr.c: Include stringpool.h. + Include stor-layout.h. + * jcf-parse.c: Include stringpool.h. + * mangle.c: Include stringpool.h. + * resource.c: Include stringpool.h. + Include stor-layout.h. + * typeck.c: Include stor-layout.h. + Include stringpool.h. + * verify-glue.c: Include stringpool.h. + +2013-11-12 Andrew MacLeod + + * java-gimplify.c: Include gimplify.h. + +2013-11-07 Jeff Law + + * builtins.c (initialize_builtins): Provide __builtin_trap. + +2013-10-29 David Malcolm + + Patch autogenerated by refactor_symtab.py from + https://github.com/davidmalcolm/gcc-refactoring-scripts + revision 58bb219cc090b2f4516a9297d868c245495ee622 + + * decl.c (java_mark_decl_local): Update for conversion of symtab types + to a true class hierarchy. + +2013-10-14 David Malcolm + + * lang.c (java_handle_option): Update for introduction of + gcc::dump_manager. + +2013-09-25 Tom Tromey + + * Make-lang.in (jvspec.o): Remove. + (CFLAGS-java/jvspec.o): New variable. + ($(XGCJ)$(exeext), java_OBJS): Use java/jvspec.o + (java/jvspec.o-warn): Rename from jvspec.o-warn. + (JAVA_TREE_H, java/jcf-dump.o, java/boehm.o, java/builtins.o) + (java/class.o, java/constants.o, java/decl.o, java/except.o) + (java/expr.o, java/jcf-depend.o, java/jcf-parse.o) + (java/jvgenmain.o, java/lang.o, java/mangle.o, java/mangle_name.o) + (java/resource.o java/typeck.o, java/win32-host.o) + (java/verify-glue.o, java/verify-impl.o, java/zextract.o) + (java/java-gimplify.o, java/jcf-io.o, java/jcf-path.o): Remove. + +2013-09-25 Tom Tromey + + * Make-lang.in (jvspec.o): Don't use subshell. + +2013-06-05 Jan Hubicka + + * class.c (emit_register_classes_in_jcr_section): Use DECL_PRESERVE_P + instead of mark_decl_referenced. + +2013-05-29 Jan Hubicka + + * decl.c (java_mark_decl_local): Update for new symtab flags. + +2013-05-22 Matthias Klose + + * jvspec.c (jvgenmain_spec): Add %I to cc1 call. + +2013-05-16 Jason Merrill + + * Make-lang.in (jc1$(exeext)): Use link mutex. + +2013-05-06 Jakub Jelinek + + PR libgcj/57074 + * class.c (emit_symbol_table): Use array type of the + right size for the_syms_decl and its DECL_INITIAL, instead + of symbols_array_type. Set TREE_TYPE (the_syms_decl) to it. + (emit_assertion_table): Use array type of the right size + for table_decl and its DECL_INITIAL. + +2013-04-15 Gerald Pfeifer + + * gcj.texi (Configure-time Options): Refer to GCC, not gcc. + (Resources): Adjust reference to Mauve. + Remove link to java.sun.com. + Refer to GCC, not gcc. + +2013-04-09 Richard Biener + + * expr.c (build_java_binop): Pass a type to build_int_cst. + +2013-03-22 Kai Tietz + + * lang.c (put_decl_node): Don't iterate over end_params_node. + +2013-01-03 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2012-11-16 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * boehm.c: Use new vec API in vec.h. + * class.c: Likewise. + * constants.c: Likewise. + * decl.c: Likewise. + * expr.c: Likewise. + * java-tree.h: Likewise. + * jcf-parse.c: Likewise. + * resource.c: Likewise. + * verify-glue.c: Likewise. + +2012-11-15 Jan Hubicka + + * builtins.c (define_builtin): Accept ECF flags and + use set_call_expr_flags. + (initialize_builtins): Update. + +2012-10-01 Lawrence Crowl + + * Make-lang.in (JAVA_OBJS): Add dependence on hash-table.o. + (JCFDUMP_OBJS): Add dependence on hash-table.o. + (jcf-io.o): Add dependence on hash-table.h. + * jcf-io.c (memoized_class_lookups): Change to use type-safe hash table. + +2012-09-24 Lawrence Crowl + + * decl.c (java_init_decl_processing): Change to new double_int API. + * jcf-parse.c (get_constant): Likewise. + * boehm.c (mark_reference_fields): Likewise. + (get_boehm_type_descriptor): Likewise. + +2012-07-30 Laurynas Biveinis + + * jcf.h (CPool): Use the "atomic" GTY option for the tags field. + (bootstrap_method): Likewise for the bootstrap_arguments field. + +2012-07-16 Steven Bosscher + + * java-gimplify.c: Include dumpfile.h instead of tree-dump.h + * Make-lang.in: Fix dependencies. + +2012-07-11 Steven Bosscher + + * java-tree.h (force_evaluation_order): Remove prototype. + * expr.c (force_evaluation_order): Remove unused function. + +2012-07-11 Steven Bosscher + + * decl.c: Do not include libfuncs.h. + * class.c: Do not include defaults.h. + * jvgenmain.c: Likewise. + * magnle.c: Likewise. + * Make-lang.in (decl.o): Fix dependencies. + +2012-07-08 Steven Bosscher + + * verify.h: Do not include system.h and coretypes.h here. + * verify-impl.c: Include them here instead. + +2012-07-05 Uros Bizjak + + * jcf-io.c (read_zip_member): Initialize d_stream. + +2012-05-31 Steven Bosscher + + * resource.c: Do not include output.h. + +2012-05-21 John David Anglin + + PR java/52815 + * class.c (emit_register_classes_in_jcr_section): Revise placement + of #ifdef JCR_SECTION_NAME. + +2012-04-22 Jan Hubicka + + * class.c (build_utf8_ref): Do not mark varpool node as needed. + +2012-04-20 Jan Hubicka + + * class.c (make_local_function_alias): Do not mark symbol referenced. + +2012-04-11 Rainer Orth + + * jcf-dump.c (print_constant): Cast JPOOL_USHORT2, JPOOL_USHORT1 + results to long to match formats. + +2012-04-11 Andrew Haley + + * jcf-reader.c (jcf_parse_bootstrap_methods): Add + ATTRIBUTE_UNUSED. + +2012-04-11 Andrew Haley + + * jcf.h (bootstrap_method): New. + (BootstrapMethods): New. + (JCF): Add BootstrapMethods. + (enum cpool_tag): Add MethodHandle, MethodType, and InvokeDynamic. + * jcf-reader.c (jcf_parse_bootstrap_methods): New. + (jcf_parse_constant_pool): Handlers for MethodHandle, MethodType, + and InvokeDynamic. + (jcf_parse_bootstrap_methods): New. + * javaop.def (invokedynamic): New opcode. + * jcf-parse.c (get_constant): An unknown constant type should not + be an internal error, but a fatal one. Make it so. + * jcf-dump.c (HANDLE_BOOTSTRAP_METHODS_ATTRIBUTE): New. + (HANDLE_END_BOOTSTRAP_METHODS): New. + (print_constant): Handlers for MethodHandle, MethodType, and + InvokeDynamic. + +2012-04-02 Rainer Orth + + * class.c (emit_register_classes_in_jcr_section): Set DECL_USER_ALIGN. + Clear TREE_READONLY. + +2012-03-29 Steven Bosscher + + PR java/52730 + * class.c (emit_register_classes_in_jcr_section): New function. + (emit_Jv_RegisterClass_calls): New function, split out from ... + (emit_register_classes): ... here. Reorganize. Do not call + output_constant. + +2012-01-23 Andreas Schwab + + * lang.c (java_init_options_struct): Set + frontend_set_flag_trapping_math. + +2012-01-01 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2011-12-03 Matthias Klose + + * expr.c (SPECIAL_WIDE): Fix typo in message. + +2011-11-23 Jeffrey A Law (law@cygnus.com) + + * lang.c (java_init_options_struct): Disable optimizations + which assume a NULL pointer dereference will cause a fault. + +2011-11-07 Richard Henderson + + * builtins.c (compareAndSwapInt_builtin): Use can_compare_and_swap_p. + (compareAndSwapLong_builtin): Likewise. + (compareAndSwapObject_builtin): Likewise. + (VMSupportsCS8_builtin): Likewise. + +2011-11-02 Rainer Orth + + * Make-lang.in (jvspec.o): Pass SHLIB instead of SHLIB_LINK. + +2011-10-15 Tom Tromey + Dodji Seketeli + + * jcf-parse.c (set_source_filename): Adjust to the new map API. + +2011-10-11 Michael Meissner + + * class.c (build_static_field_ref): Delete old interface with two + parallel arrays to hold standard builtin declarations, and replace + it with a function based interface that can support creating + builtins on the fly in the future. Change all uses, and poison + the old names. Make sure 0 is not a legitimate builtin index. + * decl.c (java_init_decl_processing): Ditto. + * except.c (compareAndSwapLong_builtin): Ditto. + (compareAndSwapObject_builtin): Ditto. + (putVolatile_builtin): Ditto. + (define_builtin): Ditto. + (check_for_builtin): Ditto. + * expr.c (rewrite_arglist_getcaller): Ditto. + (expand_java_field_op): Ditto. + +2011-08-24 Joseph Myers + + * Make-lang.in (CFLAGS-java/jcf-io.o, CFLAGS-java/jcf-path.o): + New. + (java/jcf-io.o, java/jcf-path.o): Remove explicit compilation + rules. + +2011-08-18 Peter Collingbourne + + * expr.c (expand_invoke) Use the type of the method rewrite + target. + +2011-08-10 Rainer Orth + + * jcf-dump.c (print_constant): Cast first frexp arg. + +2011-08-08 Rainer Orth + + * Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS). + +2011-07-19 Richard Guenther + + * builtins.c (static): Use fold_build_pointer_plus. + * class.c (make_class_data): Likewise. + (build_symbol_entry): Likewise. + * except.c (build_exception_object_ref): Likewise. + * expr.c (build_java_arrayaccess): Likewise. + (build_field_ref): Likewise. + (build_known_method_ref): Likewise. + (build_invokevirtual): Likewise. + +2011-07-06 Richard Guenther + + * decl.c (java_init_decl_processing): + Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. + +2011-06-21 Andrew MacLeod + + * builtins.c: Add sync_ or SYNC__ to builtin names. + * expr.c: Add sync_ or SYNC__ to builtin names. + +2011-06-07 Richard Guenther + + * decl.c (java_init_decl_processing): Call build_common_nodes, + build_common_nodes_2 at the beginning. Remove then duplicate + initializations. + +2011-06-07 Richard Guenther + + * decl.c (java_init_decl_processing): Properly initialize + size_type_node. + +2011-05-30 Joern Rennecke + + PR middle-end/46500 + * expr.c: Include "tm.h" . + +2011-05-26 Nathan Froyd + + * decl.c (poplevel): Don't access TREE_TYPE of BLOCKs. + * expr.c (build_jni_stub): Likewise. + +2011-05-24 Joseph Myers + + * Make-lang.in ($(XGCJ)$(exeext)): Use libcommon-target.a instead + of prefix.o. + +2011-05-20 Joseph Myers + + * Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and + version.o. + (JCFDUMP_OBJS): Remove errors.o, version.o and intl.o. + (JVGENMAIN_OBJS): Remove errors.o and intl.o. + (java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H). + * jcf-dump.c: Include diagnostic.h. + (main): Initialize diagnostics. + * jvgenmain.c: Include diagnostic.h. + (main): Initialize diagnostics. + +2011-05-11 Nathan Froyd + + * java-tree.h (TYPE_ARGUMENT_SIGNATURE): Use TYPE_MINVAL. + +2011-05-07 Eric Botcazou + + * java-tree.h (global_bindings_p): Adjust prototype. + * decl.c (global_bindings_p): Return bool. + +2011-05-05 Nathan Froyd + + * expr.c (expand_java_switch): Call build_case_label. + (expand_java_add_case): Likewise. + +2011-04-29 Richard Guenther + + PR middle-end/48819 + * constants.c (build_constants_constructor): Use ptr_type_node for + temp. + +2011-04-20 Jim Meyering + + * jcf-parse.c (java_parse_file): Remove useless if-before-free. + +2011-04-18 Jim Meyering + + * jcf-parse.c: Fix typo in comment. + +2011-04-14 Nathan Froyd + + * decl.c (poplevel): Use BLOCK_CHAIN and block_chainon. + +2011-04-12 Nathan Froyd + + * java-tree.h (union lang_tree_node): Check for TS_COMMON before + calling TREE_CHAIN. + +2011-04-11 Martin Jambor + + * decl.c (java_mark_decl_local): Call cgraph_get_node instead of + cgraph_node and handle returned NULL. + +2011-03-25 Kai Tietz + + * jcf-parse.c (java_read_sourcefilenames): Use filename_cmp + instead of strcmp. + (set_source_filename): Likewise. + * win32-host.c (jcf_open_exact_case): Likewise. + +2011-03-21 Kai Tietz + + PR target/12171 + * lang.c (java_attribute_table): Adjust table. + +2011-02-13 Joseph Myers + + * jvspec.c (jvgenmain_spec): Remove %{a*}. + +2011-01-21 Kai Tietz + + PR bootstrap/47215 + * decl.c (java_init_decl_processing): Remove + va_list_type_node related type initializations. + +2011-01-11 Kai Tietz + + PR bootstrap/47215 + * decl.c (java_init_decl_processing): Initialize + long_integer_type_node. + +2011-01-07 Kai Tietz + + PR bootstrap/47215 + * decl.c (java_init_decl_processing): Initialize unsigned_type_node. + +2011-01-07 Kai Tietz + + * decl.c (java_init_decl_processing): Setup va_list_type_node. + +2011-01-03 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2010-12-15 Dave Korn + + * decl.c (java_init_decl_processing): Initialise integer_three_node. + * lang.c (put_decl_node): Handle nested function decls. + +2010-12-07 Joseph Myers + + * jcf-parse.c: Don't include assert.h. + (java_parse_file): Use gcc_assert. + +2010-12-03 Joseph Myers + + * lang.opt (static-libgcj): New option. + +2010-12-01 Joseph Myers + + * jcf-parse.c: Don't include toplev.h. + * Make-lang.in (java/jcf-parse.o): Don't depend on toplev.h. + +2010-11-30 Joseph Myers + + * boehm.c: Don't include toplev.h. + * Make-lang.in (java/boehm.o): Don't depend on toplev.h. + +2010-11-30 Joseph Myers + + * expr.c, lang.c, mangle.c, mangle_name.c, typeck.c, + verify-glue.c: Don't include toplev.h. + * Make-lang.in: Dependencies for above files changed to remove + toplev.h. + +2010-11-29 Joseph Myers + + * boehm.c: Include "config.h" instead of . + * builtins.c: Don't include . + * class.c: Don't include "stdio.h". + (O_BINARY): Don't define here. + * jcf-depend.c: Don't include . + (jcf_dependency_set_dep_file, jcf_dependency_init, + jcf_dependency_write): Use gcc_assert. + * jcf-io.c (O_BINARY): Don't define here. + * jcf-path.c: Don't include "tm.h". + (jcf_path_init): Use getenv instead of GET_ENVIRONMENT. + * resource.c: Don't include "stdio.h". + (O_BINARY): Don't define here. + * verify-impl.c: Don't include . + +2010-11-17 Joseph Myers + + * jcf-parse.c (java_parse_file): Take no arguments. + * java-tree.h (java_parse_file): Update prototype. + +2010-11-09 Joern Rennecke + Andrew Haley + + PR java/46386 + * config/pdp11/t-pdp11 (java/constants.o-warn): Remove. + +2010-11-12 Joseph Myers + + * Make-lang.in (jvspec.o, java/lang.o): Use $(OPTS_H). + * lang.c (java_handle_option): Take location_t parameter. + +2010-11-10 Joseph Myers + + * expr.c (expand_java_field_op): Use %' in diagnostic. + * jcf-parse.c (java_parse_file): Use %' in diagnostics. + * jvspec.c (lang_specific_driver): Use %' in diagnostic. + * lang.c (java_post_options): Use %' in diagnostics. + +2010-11-06 Joern Rennecke + + PR middle-end/46314 + * class.c: Include target.h. + (make_local_function_alias): + Use targetm.asm_out.generate_internal_label. + * expr.c (lookup_label, generate_name): Likewise. + +2010-11-03 Joern Rennecke + + PR bootstrap/44335 + * jfc-parse.c (target.h): Include. + (handle_constant): Use targetm.words_big_endian and + targetm.float_words_big_endian. + (get_constant): Use targetm.float_words_big_endian. + +2010-10-13 Richard Henderson + + * lang.c (java_eh_personality): Update call to + build_personality_function. + +2010-10-12 Joseph Myers + + * Make-lang.in (java/lang.o): Use $(OPTIONS_H) instead of + options.h. + +2010-10-11 Nathan Froyd + + * decl.c (java_init_decl_processing): Use build_function_type_list + instead of build_function_type. + * jcf-parse.c (java_emit_static_constructor): Likewise. + * builtins.c (initialize_builtins): Likewise. + +2010-10-08 Joseph Myers + + * lang.c (java_init_options_struct): New. Split out from + java_init_options. + (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. + +2010-10-04 Andi Kleen + + * Make-lang.in (xgcj, jc1, jcf-dump, jvgenmain): + Add + to build rule. + +2010-09-29 Joseph Myers + + * lang.opt: Don't use VarExists. + +2010-09-29 Joseph Myers + + * java-tree.h (flag_filelist_file, flag_assert, flag_jni, + flag_force_classes_archive_check, flag_redundant, flag_newer, + flag_use_divide_subroutine, flag_use_atomic_builtins, + flag_use_boehm_gc, flag_hash_synchronization, + flag_check_references, flag_optimize_sci, flag_indirect_classes, + flag_indirect_dispatch, flag_store_check, + flag_reduced_reflection): Remove. + * jcf-dump.c (flag_newer): Remove. + * jcf.h (quiet_flag): Remove. + * parse.h (quiet_flag): Remove. + +2010-09-28 Richard Henderson + + * lang.c: Include "target.h". + (java_eh_personality): Use targetm.except_unwind_info. + * Make-lang.in (lang.o): Update deps. + +2010-09-27 Andrew Haley + + PR java/45773 + * jvgenmain.c (main): Fix arg processing. + +2010-09-22 Joseph Myers + + * jvspec.c (lang_specific_driver): Handle OPT__help instead of + OPT_fhelp. + * lang.opt (-CLASSPATH, -all-warnings, -bootclasspath, -classpath, + -dependencies, -encoding, -extdirs, -include-directory, + -include-directory=, -output-class-directory, + -output-class-directory=, -resource, -resource=, + -user-dependencies): New. + +2010-09-16 Richard Guenther + + * jcf-parse.c (current_file_list): Remove. + (java_parse_file): Use build_translation_unit_decl. Adjust. + +2010-09-03 Joseph Myers + + * lang.opt (d): New. + +2010-09-03 H.J. Lu + + PR java/45504 + * jvgenmain.c (main): Check "-D XXX=YYY". + +2010-09-02 Joseph Myers + + * jvspec.c (jvgenmain_spec): Don't handle -fnew-verifier. + +2010-09-02 Joseph Myers + + * lang.opt (CLASSPATH, bootclasspath, classpath, encoding, + fCLASSPATH=): Mark as Java options and as aliases. + * jvspec.c (jvgenmain_spec): Don't handle -fCLASSPATH*. + (lang_specific_driver): Don't handle options marked as aliases. + * lang.c (java_handle_option): Don't handle OPT_fCLASSPATH_. + +2010-08-22 Joseph Myers + + * Make-lang.in (jvspec.o): Update dependencies. + * jvspec.c: Include opts.h. + (PARAM_ARG): Remove. + (find_spec_file): Do not add leading -specs=. + (lang_specific_driver): Use cl_decoded_option structures. + * lang.opt (C, CLASSPATH, D, bootclasspath, classpath, encoding, + extdirs, fmain=, s-bc-abi): New options. + +2010-08-20 Nathan Froyd + + * class.c: Use FOR_EACH_VEC_ELT. + * expr.c: Likewise. + * jcf-parse.c: Likewise. + * resource.c: Likewise. + +2010-08-16 Joseph Myers + + * lang.opt (MD_, MMD_, version): Mark RejectDriver. + +2010-08-05 David Daney + + * class.c (build_utf8_ref): Fix code formatting from previous commit. + +2010-08-05 David Daney + + * class.c (build_utf8_ref): Make decl DECL_USER_ALIGN. + +2010-07-27 Joseph Myers + + * lang.c (java_handle_option): Update prototype and return value + type. + +2010-07-27 Joseph Myers + + * lang.c (java_option_lang_mask): New. + (java_init_options): Update prototype. + (LANG_HOOKS_OPTION_LANG_MASK): Define. + +2010-07-15 Nathan Froyd + + * java-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN. + * boehm.c: Likewise. + * class.c: Likewise. + * decl.c: Likewise. + * expr.c: Likewise. + * jcf-parse.c: Likewise. + * typeck.c: Likewise. + * verify-glue.c: Likewise. + +2010-07-08 Manuel López-Ibáñez + + * boehm.c: Include diagnostic-core.h in every file that includes + toplev.h. + * class.c: Likewise. + * constants.c: Likewise. + * decl.c: Likewise. + * except.c: Likewise. + * expr.c: Likewise. + * jcf-parse.c: Likewise. + * mangle.c: Likewise. + * mangle_name.c: Likewise. + * resource.c: Likewise. + * typeck.c: Likewise. + * verify-glue.c: Likewise. + +2010-07-05 Nathan Froyd + + PR bootstrap/44825 + * class.c (make_class_data): Cast result of VEC_length calls to int. + +2010-07-05 Nathan Froyd + + * constants.c (build_constants_constructor): Use build_constructor + instead of build_constructor_from_list. + * class.c (make_method_value): Likewise. + (get_dispatch_table): Likewise. + (make_class_data): Likewise. + (emit_indirect_register_classes): Likewise. + (emit_symbol_table): Likewise. + (add_assertion_table_entry): Likewise. + (emit_assertion_table): Likewise. + (make_field_value): Use build_constructor_single instead of + build_constructor_from_list. + +2010-06-28 Nathan Froyd + + * java-tree.h (struct lang_type) [catch_classes]: Change type to a + VEC. + * except.c (prepare_eh_table_type): Call CONSTRUCTOR_APPEND_ELT + instead of tree_cons. + * class.c (make_class): Add dummy entry to TYPE_CATCH_CLASSES. + (emit_catch_table): Adjust for new type of TYPE_CATCH_CLASSES. + +2010-06-28 Steven Bosscher + + * lang.c: Do not include except.h + * except.c: Likewise. + (doing_eh): New, moved from except.c (in gcc/) but removed the + do_warning flag. + (maybe_start_try): Update doing_eh call. + * Make-lang.in: Update dependencies. + +2010-06-23 Anatoly Sokolov + + * decl.c (java_init_decl_processing): Use double_int_to_tree instead + of build_int_cst_wide. + * boehm.c (set_bit): Remove. + (mark_reference_fields): Use double_int type for 'mask' argument. + Use double_int_setbit instead of set_bit. + (get_boehm_type_descriptor): Use double_int_setbit instead of + set_bit. Use double_int_to_tree instead of build_int_cst_wide. + +2010-06-10 Gerald Pfeifer + + * gcj.texi: Move to GFDL version 1.3. Fix copyright years. + +2010-06-08 Laurynas Biveinis + + * jcf-reader.c (jcf_parse_constant_pool): Use typed GC allocation. + + * jcf-parse.c (java_parse_file): Likewise. + (process_zip_dir): Likewise. + + * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise. + (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise. + + * expr.c (add_type_assertion): Likewise. + + * decl.c (make_binding_level): Likewise. + (java_dup_lang_specific_decl): Likewise. + + * constants.c (set_constant_entry): Likewise. + (cpool_for_class): Likewise. + + * class.c (add_method_1): Likewise. + (java_treetreehash_new): Likewise. + + * java-tree.h (struct lang_type): Add variable_size GTY option. + (struct lang_decl): Likewise. + + * jch.h (struct cpool_entry): Likewise. + + * java-tree.h (java_treetreehash_create): Remove parameter ggc. + + * except.c (prepare_eh_table_type): Update + java_treetreehash_create call. + + * class.c (add_method_1): Update java_treetreehash_create call. + (java_treetreehash_create): Remove parameter gc. Use + htab_create_ggc. + +2010-06-04 Joseph Myers + + * jvspec.c (lang_specific_driver): Use GCC-specific formats in + diagnostics. + +2010-05-30 Steven Bosscher + + * except.c: Include tm.h. + +2010-05-28 Joseph Myers + + * jvspec.c (lang_specific_driver): Use fatal_error instead of + fatal. Use warning instead of error for warnings. + +2010-05-28 Nathan Froyd + + * expr.c (get_symbol_table_index): Add spaces in expression. + +2010-05-28 Nathan Froyd + + * java-tree.h (method_entry): Declare. Declare VECs containing it. + (struct lang_type): Change type of otable_methods, atable_methods, and + itable_methods to VECs. Fix comment for atable_methods. + (emit_symbol_table): Take a VEC instead of a tree. + (get_symbol_table_index): Take a VEC * instead of a tree *. + * class.c (add_table_and_syms): Take a VEC instead of a tree. + (emit_symbol_table): Update for changed parameter type. + * expr.c (get_symbol_table_index): Likewise. + +2010-05-27 Steven Bosscher + + * buildings.c: Pretend to be a backend file by undefining + IN_GCC_FRONTEND (still need rtl.h here). + +2010-05-26 Nathan Froyd + + * java-tree.h (struct lang_decl_func): Change type of throws_list + field to a VEC. + * jcf-parse.c (HANDLE_EXCEPTIONS_ATTRIBUTE): Adjust for changed type + of DECL_FUNCTION_THROWS. + * class.c (make_method_value): Likewise. + +2010-05-26 Nathan Froyd + + * class.c (utf8_decl_list): Delete. + (build_utf8_ref): Remove references to it. + * java-tree.h (all_class_list): Delete. + (predef_filenames): Delete. + (enum java_tree_index) [JTI ALL_CLASS_LIST,JTI_PREDEF_FILENAMES]: + Delete. + * jcf-parse.c (parse_roots): Decrease size to 2. + (current_file_list): Convert to a VEC. + (all_class_list): Declare. + (jcf_parse): Adjust for new type of all_class_list. + (java_layout_seen_class_methods): Likewise. + (predefined_filenames): Declare. + (add_predefined_file): Use it. + (predefined_filename_p): Likewise. + (java_parse_file): Adjust for new type of current_file_list. + +2010-05-25 Jakub Jelinek + + * lang.c (java_classify_record): Return RECORD_IS_INTERFACE + for interfaces. + + PR debug/43260 + * java-tree.h (pending_static_fields): New extern declaration. + (java_write_globals): New prototype. + * lang.c (LANG_HOOKS_WRITE_GLOBALS): Define. + * decl.c (java_mark_class_local): When clearing DECL_EXTERNAL + of a static field push it into pending_static_fields vector. + * class.c (pending_static_fields): New variable. + (add_field): If static field is not DECL_EXTERNAL, push it into + pending_static_fields vector. + (java_write_globals): New function. + +2010-05-24 Nathan Froyd + + * expr.c (quick_stack): Change type to a VEC. Update comment. + (tree_list_free_list): Delete. + (flush_quick_stack): Update for quick_stack type change. + (push_value): Likewise. + (pop_value): Likewise. + +2010-05-23 Steven Bosscher + + * java-gimplify.c: Do not include tm.h, toplev.h. + * typeck.c: Do not include tm.h. + * mangle_name.c: Do not include tm.h. + * jcf-dump.c: Do not include tm.h, ggc.h. + * class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h. + * decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h, + and timevar.h. + * jcf-parse.c: Do not include tm.h and tm_p.h. + * resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h, + target.h, and expr.h. + * except.c: Do not include tm.h, rtl.h, function.h. + * builtins.c: Do not include convert.h. Explain why RTL headers + have to be included here. + * verify-glue.c: Do not include tm.h. + * jcf-depend.c: Do not include tm.h. + * jcf-reader.c: Include ggc.h. + * jcf-io.c: Do not include tm.h, toplev.h. + * expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h, + gimple.h. + * lang.c: Do not include rtl.h, expr.h. + * Make-lang.in: Update dependencies. + +2010-05-23 Steven Bosscher + + * jcf-parse.c: Include bitmap.h. + * Make-lang.in: Update dependencies. + +2010-05-20 Jakub Jelinek + + PR debug/43521 + * decl.c (start_java_method): Set DECL_ARTIFICIAL on the 'this' + PARM_DECL. + +2010-05-19 Anatoly Sokolov + + * jcf-parse.c (get_constant): Use double_int_to_tree instead of + build_int_cst_wide_type. + +2010-05-18 Nathan Froyd + + * expr.c (pop_arguments): Fix use of undeclared variable. + +2010-05-18 Nathan Froyd + + * expr.c (expand_java_multianewarray): Use build_call_vec instead of + build_call_list. + (pop_arguments): Return a VEC instead of a tree. Take a method type + rather than a list of argument types. + (rewrite_rule): Change signature. of rewrite_arglist member. + (rewrite_arglist_getcaller): Update signature. + (rewrite_arglist_getclass): Likewise. + (maybe_rewrite_invocation): Update for rewrite_arglist change. + (build_known_method_ref): Take a VEC instead of a tree. + (invoke_build_dtable): Likewise. + (expand_invoke): Update calls to pop_arguments. Use build_call_vec + instead of build_call_list. + (build_jni_stub): Use build_call_vec instead of build_call_list. + * java-tree.h (maybe_rewrite_invocation): Update declaration. + (build_known_method_ref): Likewise. + (invoke_build_dtable): Likewise. + +2010-05-14 Nathan Froyd + + PR 44103 + * java-tree.h (START_RECORD_CONSTRUCTOR): Change first argument to a + vector. Move call to build_constructor... + (FINISH_RECORD_CONSTRUCTOR): ...here. Add necessary arguments. Clear + TREE_CONSTANT on the constructor. + (PUSH_SUPER_VALUE): Change first argument to a vector. + (PUSH_FIELD_VALUE): Likewise. + * resource.c (compile_resource_data): Update calls to above macros. + * constants.c (build_constants_constructor): Likewise. + * class.c (build_utf8_ref): Likewise. + (make_field_value): Likewise. + (make_method_value): Likewise. + (add_table_and_syms): New function. + (make_class_data): Call it. Update calls to above macros. + (build_symbol_table_entry): New function. + (build_symbol_entry): Call it. Update calls to above macros. + (emit_symbol_table): Likewise. + (make_catch_class_record): Update calls to above macros. + (build_assertion_table_entry): New function. + (add_assertion_table_entry): Call it. + (emit_assertion_table): Likewise. + +2010-05-06 Manuel López-Ibáñez + + PR 40989 + * lang.c (java_handle_option): Add argument kind. + +2010-04-18 Eric Botcazou + + * decl.c (java_init_decl_processing): Remove argument in call to + initialize_sizetypes + +2010-04-07 Jakub Jelinek + + * exception.cc (_Jv_Throw): Avoid set but not used warning. + * include/java-assert.h (JvAssertMessage, JvAssert): Use argument in + sizeof to avoid set but not used warnings. + +2010-01-20 Joern Rennecke + + * lang.c (java_post_options): Constify variable "dot". + + * jcf-parse.c (set_source_filename): Constify variable "dot". + (load_class): Constify variable "separator". + Use get_identifier_with_length. + + * jvspec.c (lang_specific_driver): Constify two variables named "p". + +2010-01-09 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2009-11-28 Jakub Jelinek + + * jvspec.c (lang_specific_driver): Remove unused + saw_verbose_flag variable. + * jcf-dump.c (main): Remove unused general_purpose_bits + variable. + * builtins.c (initialize_builtins): Remove unused float_ftype_float + variable. + * expr.c (java_stack_pop): Remove unused val variable. + (build_jni_stub): Remove unused res_type variable. + * verify-impl.c (check_field_constant): Remove unused len variable. + +2009-10-20 Joel Dice + + PR java/28474 + * mangle_name.c (append_unicode_mangled_name): Fix mangling + of names with multiple underscores and "U". + (unicode_mangling_length): Likewise. + +2009-10-03 Simon Baldwin + + * config-lang.in (lang_dirs): Remove zlib. + +2009-09-28 Richard Henderson + + * builtins.c (initialize_builtins): Update call to + build_common_builtin_nodes. + * lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. + +2009-09-14 Richard Henderson + + * builtins.c (initialize_builtins): Update call to + build_common_builtin_nodes. + * decl.c (java_init_decl_processing): Don't call + default_init_unwind_resume_libfunc. + * except.c: Include tree-iterator.h. + (build_exception_object_var): New. + (build_exception_object_ref): Use it. + (expand_end_java_handler): Initialize it from __builtin_eh_pointer. + Attach all CATCH_EXPRs to a single TRY_CATCH_EXPR. + * java-tree.h (DECL_FUNCTION_EXC_OBJ): New. + +2009-09-13 Richard Guenther + Rafael Avila de Espindola + + * decl.c (do_nothing): Remove. + (java_init_decl_processing): Do not set lang_eh_runtime_type. + * Make-lang.in (lang.o): Add $(EXCEPT_H) dependency. + * lang.c (java_eh_personality): New. + (java_eh_personality_decl): Likewise. + (LANG_HOOKS_EH_PERSONALITY): Define. + +2009-09-03 Diego Novillo + + * lang.c (lang_hooks): Remove const qualifier. + +2009-09-01 Jakub Jelinek + + * boehm.c (mark_reference_fields): Compute % in HOST_WIDE_INT + type. + +2009-09-01 Richard Guenther + + * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove. + * java-tree.h (java_mark_addressable): Likewise. + * typeck.c (java_mark_addressable): Likewise. + +2009-08-17 Ralf Wildenhues + + * Make-lang.in (java.install-pdf): Install gcj.pdf in + $(pdfdir)/gcc, alongside the other manuals. + +2009-08-12 Andrew Haley + + * builtins.c (compareAndSwapInt_builtin): Use + flag_use_atomic_builtins. + (compareAndSwapLong_builtin): Likewise. + (compareAndSwapObject_builtin): Likewise. + * jvspec.c: Add flag_use_atomic_builtins. + * gcj.texi: Likewise. + * java-tree.h: Likewise. + * lang.opt: Likewise. + +2009-08-11 Dodji Seketeli + + PR debug/40990 + * lang.c (put_decl_node): Outputs different level of information + depending on the verbosity level. + +2009-07-31 Andrew Haley + + PR java/40867 + * decl.c (java_replace_references): Set EXPR_LOCATION on all + generated expressions. + (binding_level.loc): new field. + (clear_binding_level): Initialize loc. + (set_input_location): New function. + (pushlevel): Set new binding_level.loc. + (poplevel): Set EXPR_LOCATION on the new BIND_EXPR_BODY. + (start_java_method): Set DECL_SOURCE_LOCATION of this new method. + (java_add_stmt): Set the EXPR_LOCATION on all subtrees of new_stmt. + +2009-07-17 Richard Guenther + + PR c/40401 + * java-gimplify.c (java_genericize): Do not gimplify here. + But replace all local references. + (java_gimplify_expr): Do not replace local references here. + (java_gimplify_modify_expr): Likewise. + * jcf-parse.c (java_parse_file): Do not finalize the CU or + optimize the cgraph here. + * decl.c (java_replace_reference): Make static. + (java_replace_references): New function. + (end_java_method): Clear base_decl_map. + * java-tree.h (java_replace_references): Declare. + (java_replace_reference): Remove. + +2009-07-14 Taras Glek + Rafael Espindola + + * Make-lang.in (java.install-plugin): New target for + installing plugin headers. + +2009-07-07 Manuel López-Ibáñez + + * class.c: Replace %J by an explicit location. Update all calls. + +2009-07-07 Manuel López-Ibáñez + + * jcf-parse.c: Replace %H by an explicit location. Update all calls. + +2009-06-29 Andrew Haley + + PR java/40590 + * java-tree.h (cxx_keyword_p): New declaration. + * mangle_name.c (utf8_cmp): Move here from mangle.c. + (cxx_keywords): Likewise. + (cxx_keyword_p): Likewise. + (MANGLE_CXX_KEYWORDS): New macro. + (append_gpp_mangled_name): Use MANGLE_CXX_KEYWORDS. + (append_gpp_mangled_name): Likewise. + * mangle.c: Move code to mangle_name.c. + (mangle_member_name): Don't call cxx_keyword_p. + +2009-06-12 Aldy Hernandez + + * java-gimplify.c (java_gimplify_block): New argument to + build_empty_stmt. + * expr.c (force_evaluation_order): Same. + * typeck.c: Add location to build_decl or PUSH_FIELD calls. + * class.c: Same. + * decl.c: Same. + * jcf-parse.c: Same. + * constants.c: Same. + * resource.c: Same. + * except.c: Same. + * builtins.c: Same. + * expr.c: Same. + * java-tree.h (PUSH_FIELD): Add location field. + +2009-06-09 Ian Lance Taylor + + * verify.h: Remove extern "C". + +2009-06-07 Ian Lance Taylor + + * jcf-parse.c (handle_constant): Change local variable 'kind' to + unsigned int. + +2009-06-01 Ian Lance Taylor + + * jcf-io.c (find_class): Use CONST_CAST. + +2009-05-27 Ian Lance Taylor + + * Make-lang.in ($(XGCJ)$(exeext)): Change $(COMPILER) to + $(LINKER). + (jc1$(exeext), jcf-dump$(exeext), jvgenmain$(exeext)): Likewise. + +2009-05-26 Ian Lance Taylor + + * Make-lang.in (jvspec.o): Use $(COMPILER). + ($(XGCJ)$(exeext), jc1$(exeext), jcf-dump$(exeext)): Likewise. + (jvgenmain$(exeext), java/jcf-io.o, java/jcf-path.o): Likewise. + +2009-05-12 Alexandre Oliva + + * Make-lang.in (GCJ): Renamed to... + (XGCJ): ... this. + +2009-04-27 Ian Lance Taylor + + * builtins.c (java_builtins): Add casts to enum type. + * verify-impl.c (check_class_constant): Add cast to enum type. + (check_constant, check_wide_constant): Likewise. + +2009-04-27 Richard Guenther + + PR java/38374 + * constants.c (build_constants_constructor): Retain the old + pointer type as valid TYPE_POINTER_TO after patching the + type of the constant pool decl. + +2009-04-24 Ian Lance Taylor + + * jcf-parse.c (handle_constant): Add cast to enum type. + +2009-04-21 Taras Glek + + * builtins.c: Update GTY annotations to new syntax + * decl.c: Likewise + * java-tree.h: Likewise + * jcf.h: Likewise + * lang.c: Likewise + +2009-04-21 Joseph Myers + + * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and + license notices. + +2009-04-18 Ian Lance Taylor + + * verify-impl.c (verify_instructions_0): Add cast to enum type. + +2009-04-09 Paolo Bonzini + + * builtins.c (compareAndSwapLong_builtin, + compareAndSwapInt_builtin, compareAndSwapObject_builtin, + VMSupportsCS8_builtin): Do not look at sync_compare_and_swap_cc. + +2009-03-31 Richard Guenther + + * java-gimplify.c (java_gimplify_expr): Do not manually gimplify + the first operand of binary and comaprison expressions. + +2009-03-30 Joseph Myers + + PR rtl-optimization/323 + * lang.c (java_post_options): Set flag_excess_precision_cmdline. + Give an error for -fexcess-precision=standard for processors where + the option is significant. + +2009-03-18 Ralf Wildenhues + + * lang.opt: Unify help text for -Wdeprecated. + +2009-02-03 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2009-01-16 Richard Guenther + + PR tree-optimization/38835 + PR middle-end/36227 + * builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR. + +2008-12-05 Sebastian Pop + + PR bootstrap/38262 + * Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS. + +2008-11-04 Andrew Haley + + PR java/37068 + * jcf-parse.c (java_emit_static_constructor): Don't call + cgraph_build_static_cdtor. Rewrite. + +2008-10-24 Jakub Jelinek + + * Make-lang.in (check-java-subtargets): New target. + +2008-10-16 David Edelsohn + + PR target/35483 + * Make-lang.in (class.o): Depend on $(TM_P_H). + (expr.o): Same. + * class.c: Include tm_p.h. + * expr.c: Include tm_p.h. + +2008-10-14 Andrew Haley + + * constants.c (build_constant_data_ref): Make sure we only build + one copy of the decl for the constant pool. + +2008-09-22 Andrew Haley + + * expr.c (rules): Add new rule for + gnu.java.lang.VMCPStringBuilder.toString. + (rewrite_rule.new_classname): New field. + (maybe_rewrite_invocation): Use new_classname field instead of + DECL_CONTEXT (*method_p). + Allow rewrite_arglist to be NULL. + +2008-09-17 Andrew Pinski + + * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define. + (java_get_callee_fndecl): Kill. + +2008-09-17 Jan Hubicka + + PR c++/18071 + * class.c (add_method_1): Do not initialize DECL_INLINE. + (make_local_function_alias): Likewise. + * expr.c (rewrite_arglist_getcaller): Set DECL_UNINLINABLE. + * lang.c (java_decl_ok_for_sibcall): Use DECL_UNINLINABLE. + +2008-09-09 Richard Guenther + + * decl.c (build_result_decl): Remove no longer applicable + promotion. + +2008-09-05 David Daney + + * gcj.texi (-freduced-reflection): Clarify option's restrictions. + +2008-08-21 David Daney + + * class.c (make_class_data): Don't add field_index when + flag_reduced_reflection set. + +2008-08-12 Ulrich Weigand + + * typeck.c (convert): Do not check for TARGET_FLOAT_FORMAT. + +2008-08-08 Manuel Lopez-Ibanez + + PR 28875 + * lang.c (java_handle_option): Replace set_Wunused with + warn_unused. + +2008-07-30 Ralf Wildenhues + + * gcj.texi: Update copyright years. Do not list GPL as + Invariant Section. + +2008-07-29 Jakub Jelinek + + * class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT + from ctype's sizes. + + * class.c (build_utf8_ref): Pad initializer string to utf8const_type's + alignment. + +2008-07-29 Jan Hubicka + + * lang.c (java_post_options): Remove handling of flag_no_inline. + +2008-07-28 Richard Guenther + + Merge from gimple-tuples-branch. + + 2008-07-18 Richard Guenther + + * expr.c: Include tree-iterator.h. + * Make-lang.in (expr.o): Add tree-iterator.h dependency. + + 2008-07-18 Aldy Hernandez + + * java-gimplify.c: Include gimple.h instead of tree-gimple.h. + * expr.c: Same. + + 2008-07-14 Aldy Hernandez + + * java-gimplify.c (java_gimplify_expr): Same. + (java_gimplify_modify_expr): Same. + * java-tree.h: Rename GENERIC_NEXT to TREE_CHAIN. + + 2008-05-02 Diego Novillo + + * expr.c (build_java_throw_out_of_bounds_exception): Fix + mixed declarations and code. + + 2008-05-02 Doug Kwan + + * expr.c (build_java_throw_out_of_bounds_exception ): Wrap call to + _Jv_ThrowBadArrayIndex with a COMPOUND_EXPR to return 0. + + 2008-02-19 Diego Novillo + + http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html + + * java-gimplify.c (java_gimplify_self_mod_expr): Change + gimple_seq arguments to gimple_seq *. Update all users. + + 2007-11-26 Aldy Hernandez + + * java-gimplify.c (java_gimplify_expr): Make pre_p and post_p + sequences. + (java_gimplify_self_mod_expr): Same. + * java-tree.h (java_gimplify_expr): Make pre_p and post_p + sequences. + +2008-07-24 Jan Hubicka + + * java/decl.c: Include cgraph.h + (end_java_method): Remove non-unit-at-a-time code. + (java_mark_decl_local): Likewise; sanity check that we don't touch + finalized nodes. + +2008-07-15 Jan Hubicka + + * lang.c (java_init_options): Enable unit-at-a-time by default. + +2008-07-14 Ralf Wildenhues + + * Make-lang.in (jvspec.o): Fix dependencies. + +2008-07-06 Tom Tromey + + * Make-lang.in (java/parse.o-warn): Remove. + (java/jcf-io.o-warn): Remove. + +2008-07-05 Tom Tromey + + * jcf-io.c: Don't include fnmatch.h. Don't use JCF_USE_SCANDIR. + (compare_path): Remove. + (java_or_class_file): Likewise. + (memoized_dirlist_entry): Likewise. + (memoized_dirlist_hash): Likewise. + (memoized_dirlist_lookup_eq): Likewise. + (memoized_dirlists): Likewise. + (caching_stat): Likewise. + (find_class): Use stat. + * jcf.h (JCF_USE_SCANDIR): Remove. + +2008-06-30 Joshua Sumali + + * Make-lang.in (JAVA_MANFILES): Add doc/aot-compile.1 and + doc/rebuild-gcj-db.1 + (java.uninstall): Likewise. + (java.maintainer-clean): Likewise. + (aot-compile.pod): New rule. + (rebuild-gcj-db.pod): New rule. + (java.install-man): Install doc/aot-compile.1 and doc/rebuild-gcj-db.1 + * gcj.texi: Add new sections for aot-compile and rebuild-gcj-db. + +2008-06-29 Kaveh R. Ghazi + + * Make-lang.in (java/jcf-io.o-warn): New. + +2008-06-24 Tom Tromey + + * jcf-path.c (jcf_path_init): Don't name variable 'try'. + * expr.c (add_type_assertion): Rename argument. + (build_java_arrayaccess): Don't name variable 'throw'. + (ARRAY_NEW_MULTI): Don't name variable 'class'. + * jcf-io.c (find_class): Don't name variable 'class'. + * mangle.c (compression_table_add): Don't name variable 'new'. + * constants.c (cpool_for_class): Rename argument. + (alloc_constant_fieldref): Likewise. + * jcf-parse.c (handle_innerclass_attribute): Don't name variable + 'class'. + (read_class): Likewise. + (parse_zip_file_entries): Likewise. + (process_zip_dir): Likewise. + * decl.c (java_mark_class_local): Rename argument. + * class.c (GEN_TABLE): Use type_name, not typename. + (gen_indirect_dispatch_tables): Likewise. + (add_field): Rename argument. + (is_compiled_class): Likewise. + (safe_layout_class): Likewise. + (emit_assertion_table): Likewise. + * typeck.c (has_method): Rename argument. + +2008-06-19 Kaveh R. Ghazi + + * class.c (ident_subst, mangled_classname, unmangle_classname, + gen_indirect_dispatch_tables, add_method_1, + build_fieldref_cache_entry, make_local_function_alias, + layout_class, java_treetreehash_find, java_treetreehash_new, + split_qualified_name): Fix for -Wc++-compat. + * constants.c (set_constant_entry, cpool_for_class): Likewise. + * decl.c (make_binding_level, java_dup_lang_specific_decl, + start_java_method): Likewise. + * except.c (prepare_eh_table_type): Likewise. + * expr.c (type_assertion_hash, note_instructions): Likewise. + * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC, + MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise. + * jcf-io.c (jcf_filbuf_from_stdio, opendir_in_zip, find_class): + Likewise. + * jcf-parse.c (reverse, java_read_sourcefilenames, + annotation_grow, rewrite_reflection_indexes, java_parse_file, + process_zip_dir): Likewise. + * jcf-path.c (add_entry, add_path, jcf_path_init, + jcf_path_extdirs_arg): Likewise. + * jcf-reader.c (jcf_parse_constant_pool): Likewise. + * jvgenmain.c (do_mangle_classname): Likewise. + * lang.c (put_decl_string): Likewise. + * verify-impl.c (make_state_copy, make_state, add_new_state): + Likewise. + +2008-06-15 Ralf Wildenhues + + * gcj.texi: Expand TABs, remove whitespace from blank lines. + +2008-06-14 Tom Tromey + + PR java/36247: + * class.c (build_class_ref): Initialize this_classdollar when + needed. + +2008-05-23 Andrew Haley + + * jcf-parse.c (give_name_to_class): Call find_sourcefile to find full + pathname of source file. + +2008-05-12 Aaron W. LaFramboise + + * jcf-dump.c (print_constant): Use + HOST_LONG_LONG_FORMAT. + +2008-05-07 Kenneth Zadeck + + * decl.c (java_init_decl_processing): Change DECL_IS_PURE to + DECL_PURE_P. + +2008-04-23 Paolo Bonzini + + * class.c (build_utf8_ref): Don't set TREE_INVARIANT. + (build_classdollar_field): Don't set TREE_INVARIANT. + (get_dispatch_table): Don't set TREE_INVARIANT. + (make_class_data): Don't set TREE_INVARIANT. + (build_symbol_entry): Don't set TREE_INVARIANT. + (emit_symbol_table): Don't set TREE_INVARIANT. + * constants.c (build_constant_data_ref): Don't set TREE_INVARIANT. + (build_ref_from_constant_pool): Don't set TREE_INVARIANT. + * resource.c (compile_resource_data): Don't set TREE_INVARIANT. + * expr.c (cache_cpool_data_ref): Don't set TREE_INVARIANT. + +2008-04-03 Tom Tromey + + * Make-lang.in (java_OBJS): New variable. + +2008-04-03 Paolo Bonzini + + * java-tree.h (insert_block): Kill. + * decl.c (insert_block): Kill. + +2008-04-01 Joseph Myers + + * gcj.texi: Include gpl_v3.texi instead of gpl.texi + * Make-lang.in (TEXI_JAVA_FILES): Include gpl_v3.texi instead of + gpl.texi. + +2008-03-27 Tom Tromey + + * Make-lang.in: Revert automatic dependency patch. + +2008-03-25 Tom Tromey + + * Make-lang.in: Removed most explicit .o targets. + (java/jvspec.o): Reduce to variable setting. Moved to java/. + ($(GCJ)$(exeext)): Update. + (JAVA_OBJS): New variable. + (JCFDUMP_OBJS): Reformat. + (java_OBJS): New variable. + (java/jvspec.o-warn): Update. + (java/parse.o-warn): Remove. + (JAVA_TREE_H): Remove. + (java/jcf-io.o): Reduce to variable setting. + (ALL_CPPFLAGS): Likewise. + +2008-03-12 Paolo Bonzini + + * mangle.c (java_mangle_decl): Remove dead check. + +2008-03-11 Paolo Bonzini + + * jcf-parse.c (java_parse_file): Assert binding levels are + left in order. + * lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, java_clear_binding_stack): + Delete. + +2008-03-02 Jakub Jelinek + + * jcf-dump.c (version): Update copyright notice dates. + +2008-02-29 Tom Tromey + + * expr.c (expand_byte_code): Set DECL_FUNCTION_LAST_LINE on + method. + * java-tree.h (struct lang_decl_func): Remove obsolete comment. + +2008-02-26 Tom Tromey + + * lang.c (java_post_options): Remove conditional. + * expr.c (expand_byte_code): Remove old location code. + * jcf-parse.c (set_source_filename): Remove old location code. + (give_name_to_class): Likewise. + (jcf_parse): Likewise. + (duplicate_class_warning): Likewise. + (parse_class_file): Likewise. + (java_parse_file): Likewise. + * decl.c (finish_method): Remove old location code. + * class.c (push_class): Remove old location code. + +2008-02-06 Kaveh R. Ghazi + + PR other/35107 + * Make-lang.in (jc1): Add $(GMPLIBS). + +2008-01-23 David Daney + + * class.c (hide) Rename to... + (java_hide_decl) ... this throughout, and make public. + * resource.c (Jr_count): Remove. + (compile_resource_data): Call java_mangle_resource_name to generate + decl name. Make resource decl public and hidden. + * mangle.c (java_mangle_resource_name): New function. + * java-tree.h (java_hide_decl, java_mangle_resource_name): Declare + functions. + +2008-01-04 Andrew Haley + + PR java/17779 + * jcf-parse.c (parse_zip_file_entries): Move decl to compile on + C90. + +2008-01-03 Andrew Haley + + PR java/17779 + * jcf-parse.c (parse_zip_file_entries): Unset TYPE_ALIAS_SET if + we're about to re-layout the type. + +2007-12-20 Alexandre Oliva + + * lang.c (java_classify_record): Don't return + RECORD_IS_INTERFACE for now. + +2007-12-18 Andrew Haley + + PR java/27643 + * jcf-parse.c (java_parse_file): Remove call to + java_mark_class_local. + (parse_class_file): Reinstate call to java_mark_class_local here. + * decl.c (java_mark_cni_decl_local): If the ASSEMBLER_NAME is + already set, call java_mangle_decl() and make_decl_rtl() to + rewrite its name as a hidden alias. + +2007-12-15 Alexandre Oliva + + PR debug/7081 + * lang.c (java_classify_record): New. + (LANG_HOOKS_CLASSIFY_RECORD): Override. + +2007-11-26 Andreas Krebbel + + PR 34081/C++ + * decl.c (finish_method): Pass 'false' for the new + allocate_struct_function parameter. + +2007-11-26 Alexandre Oliva + + * expr.c (build_jni_stub): Use the computed jni func type for + variable meth. + +2007-11-26 Alexandre Oliva + + * class.c (JAVA_TREEHASHHASH_H): Use TYPE_UID. + +2007-11-26 Alexandre Oliva + + * expr.c (type_assertion_hash): Hash type uids rather than + tree pointers. + +2007-11-17 David Daney + Andrew Haley + + * constants.c (build_constants_constructor): Use POINTER_SIZE + insead of BITS_PER_WORD in big-endian work around. + +2007-11-07 Tom Tromey + + PR java/34019: + * gcj.texi (Input Options): Add missing noun. + +2007-11-02 Tom Tromey + + PR java/33765: + * jcf-parse.c (java_parse_file): Ignore ZIPEMPTYMAGIC files. + * zipfile.h (ZIPEMPTYMAGIC): New define. + +2007-11-01 Tom Tromey + + * Make-lang.in (java/jcf-dump.o): Depend on zipfile.h. + (java/jcf-parse.o): Depend on jcf-reader.c, zipfile.h, and jcf.h. + (java/jcf-io.o): Depend on zipfile.h. + +2007-10-17 Richard Guenther + + * Make-lang.in (java/builtins.o): Add $(OPTABS_H) and $(EXPR_H) + dependencies. + +2007-10-03 Andrew Haley + + PR java/33639 + * class.c (mangled_classname): Detect and replace illegal + characters in assembly language symbols. + (gen_indirect_dispatch_tables): Call mangled_classname() on + the type. + +2007-09-27 Jakub Jelinek + + * lang.c (java_print_error_function): Add third argument. + +2007-09-15 Tom Tromey + + * java-tree.h (struct lang_decl_func) : + Remove. + : Likewise. + * lang.c (java_dump_tree): Update. + * java-tree.h (DECL_FUNCTION_BODY): Remove. + +2007-09-11 Jan Hubicka + + * decl.c (java_expand_body): Kill. + (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill. + +2007-09-06 Tom Tromey + + * jcf-parse.c (parse_class_file): Re-enter the current file. + +2007-09-07 Roman Zippel + + * boehm.c (mark_reference_fields): Move misaligned pointer check + after JREFERENCE_TYPE_P test + +2007-09-06 Roman Zippel + + * boehm.c (mark_reference_fields): Don't use bitmap as gc_descr + if pointer is misaligned. + +2007-09-06 Tom Tromey + + * lang.c (java_post_options): Update. + * jcf-parse.c (set_source_filename): Update. + (give_name_to_class): Update. + (jcf_parse): Update. + (duplicate_class_warning): Update. + (parse_class_file): Update. + (java_parse_file): Update. + * expr.c (expand_byte_code): Update. + +2007-09-05 Sandra Loosemore + + * decl.c (finish_method): Use set_cfun. + +2007-09-04 Andrew Haley + + * decl.c (java_init_decl_processing): Call "__cxa_end_cleanup" + when using the ARM EABI. + +2007-09-03 Daniel Jacobowitz + + * Make-lang.in (jvspec.o): Remove SHLIB_MULTILIB. + +2007-09-03 Kaveh R. Ghazi + + * jcf-parse.c (read_class, java_parse_file): Supply a TYPE for + CONST_CAST. + * jcf.h (JCF_FINISH): Likewise. + +2007-08-28 Tom Tromey + + * Make-lang.in (java.tags): Don't tag '*.y' files. + +2007-08-25 Kaveh R. Ghazi + + * lang.c (java_decl_ok_for_sibcall): Likewise. + +2007-08-21 Paul Brook + Nathan Sidwell + Mark Mitchell + Joseph Myers + + * jcf-dump.c (version): Use pkgversion_string. Update copyright + date. + +2007-08-20 Richard Guenther + + * lang.c (java_tree_inlining_walk_subtrees): Remove. + (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Remove. + +2007-08-17 Tom Tromey + + * typeck.c (find_method_in_interfaces): Update. + * jcf-parse.c (load_class): Update. + * java-gimplify.c (java_gimplify_component_ref): Removed. + (java_gimplify_modify_expr): Update. Removed pre_p and post_p + arguments. + (java_gimplify_expr): Update. + * decl.c (java_init_decl_processing): Update. + * class.c (set_constant_value): Update. + (make_class_data): Update. + (finish_class): Update. + (build_static_field_ref): Update. + (is_compiled_class): Update. + (maybe_layout_super_class): Update. + (layout_class): Update. + (layout_class_method): Update. + * java-tree.h (CAN_COMPLETE_NORMALLY): Removed. + (lang_decl_var) : Removed fields. + (lang_decl_func) : Removed field. + (lang_type) : Removed fields. + (FIELD_NESTED_ACCESS): Removed. + (FIELD_NESTED_ACCESS_P): Removed. + (DECL_FIELD_FINAL_IUD): Removed. + (DECL_LOCAL_FINAL_IUD): Removed + (LOCAL_FINAL_P): Removed. + (FINAL_VARIABLE_P): Removed. + (CLASS_FINAL_VARIABLE_P): Removed. + (DECL_BIT_INDEX): Removed. + (DECL_INIT_CALLS_THIS): Removed. + (FIELD_LOCAL_ALIAS): Removed. + (FIELD_LOCAL_ALIAS_USED): Removed. + (FIELD_THISN): Removed. + (DECL_FUNCTION_INIT_TEST_CLASS): Removed. + (LOCAL_CLASS_INITIALIZATION_FLAG): Removed. + (LOCAL_CLASS_INITIALIZATION_FLAG_P): Removed. + (TYPE_DOT_CLASS): Removed. + (TYPE_VERIFY_METHOD): Removed. + (ID_CLASSDOLLAR_P): Removed. + (enum java_tree_index) : + Removed. + (classdollar_identifier_node): Removed. + (TYPE_UNKNOWN): Removed. + (CLASS_FROM_SOURCE_P): Removed. + * expr.c (build_jni_stub): Update. + (force_evaluation_order): Update. + (build_java_empty_stmt): Update. + (build_class_init): Update. + (java_stack_swap): Update. + (build_jni_stub): Update. + +2007-08-17 Tom Tromey + + * java-tree.h (LABEL_TYPE_STATE): Removed. + (load_type_state): Removed. + (LABEL_PC): Removed. + (LABEL_VERIFIED): Removed. + (type_states): Declare. + * expr.c (type_states): New global. + (load_type_state): Now static. Use type_states. Changed + argument. + (lookup_label): Don't set LABEL_PC. + (expand_byte_code): Don't use LABEL_VERIFIED. + (note_instructions): Initialize type_states. + * verify-glue.c (vfy_note_stack_depth): Rewrote. + (vfy_note_stack_type): Use type_states. + (vfy_note_local_type): Likewise. + +2007-08-10 Kaveh R. Ghazi + + * jcf-parse.c (read_class, java_parse_file): Use CONST_CAST. + * jcf.h (JCF_FINISH): Likewise. + +2007-07-31 Nick Clifton + + * java-gimplify.c: Change copyright header to refer to version 3 + of the GNU General Public License and to point readers at the + COPYING3 file and the FSF's license web page. + * typeck.c, lang-specs.h, mangle_name.c, jcf-dump.c, class.c, + decl.c, config-lang.in, jcf-parse.c, constants.c, Make-lang.in, + resource.c, except.c, builtins.c, jvspec.c, java-tree.def, + javaop.def, jcf-path.c, verify-glue.c, jcf-depend.c, lang.opt, + jcf-reader.c, mangle.c, zextract.c, jcf-io.c, jcf.h, zipfile.h, + verify.h, java-except.h, win32-host.c, expr.c, jvgenmain.c, + parse.h, lang.c, java-tree.h, javaop.h, boehm.c: Likewise. + +2007-07-30 Kaveh R. Ghazi + + * jcf-io.c (find_class): Fix -Wcast-qual warnings. + +2007-07-29 Kaveh R. Ghazi + + * lang.c (java_get_callee_fndecl): Constify. + +2007-07-27 Kaveh R. Ghazi + + * mangle.c (set_type_package_list): Constify. + * verify-glue.c (vfy_make_string): Delete. + * verify.h (vfy_make_string): Likewise. + +2007-07-26 Tom Tromey + + * java-tree.h (push_labeled_block, pop_labeled_block): Remove. + (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, + EXIT_BLOCK_LABELED_BLOCK): Likewise. + * lang.c (java_tree_inlining_walk_subtrees): Update. + (java_dump_tree): Likewise. + * java-tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRY_EXPR): + Remove. + * decl.c (push_labeled_block, pop_labeled_block): Remove. + * java-gimplify.c (java_gimplify_labeled_block_expr, + java_gimplify_exit_block_expr, java_gimplify_try_expr): Remove. + (java_gimplify_expr): Update. + +2007-07-25 Kaveh R. Ghazi + + * class.c (java_treetreehash_hash, java_treetreehash_compare): + Constify. + * expr.c (type_assertion_eq): Likewise. + * jcf-io.c (compare_path): Likewise. + * jcf-parse.c (cmpstringp): Likewise. + * verify-impl.c (get_one_type, compute_argument_types, + compute_return_type): Likewise. + +2007-07-16 Rainer Orth + + PR target/32462 + PR libgcj/32465 + * class.c (hide): Wrap in HAVE_GAS_HIDDEN. + +2007-07-12 Richard Guenther + + * expr.c (expand_java_return): RETURN_EXPR has void type. + (build_jni_stub): Likewise. Use a comparison against zero + for null-pointer test in COND_EXPR. + (build_field_ref): Build POINTER_PLUS_EXPR with correct + type. Convert result instead. + (build_invokevirtual): Likewise. + +2007-07-09 Geoffrey Keating + + PR 32617 + * lang.c (java_init): Remove setting of force_align_functions_log. + * class.c (add_method_1): Set DECL_ALIGN of non-static method + to cope with ptrmemfunc_vbit_in_pfn. + +2007-07-03 David Daney + + * java/Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to + include path. + (doc/gcj.dvi): Same. + (doc/gcj.pdf): Same. + (java/index.html): Same. + +2007-06-15 Andrew Pinski + + * class.c (make_class_data): Build the index in sizetype. + Use POINTER_PLUS_EXPR instead of PLUS_EXPR when + adding to a pointer type. + (build_symbol_entry): Likewise. + * expr.c (build_java_arrayaccess): Likewise. + (build_field_ref): Likewise. + (build_known_method_ref): Likewise. + (build_invokevirtual): Likewise. + * except.c (build_exception_object_ref): Do a + NEGATIVE and then a POINTER_PLUS_EXPR instead + of a MINUS_EXPR. + +2007-06-11 Rafael Ávila de Espíndola + + * typeck.c (java_signed_type): Remove. + * lang.c (LANG_HOOKS_SIGNED_TYPE): Remove. + * java-tree.h (java_signed_type): Remove. + +2007-05-18 Geoffrey Keating + + * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx. + (print_constant): Likewise. + +2007-05-14 Rafael Ávila de Espíndola + + * expr.c (build_java_binop): Use unsigned_type_for instead of + java_unsigned_type. + * java-tree.h (java_unsigned_type): Remove. + * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove. + * typeck.c (java_unsigned_type): Remove. + +2007-04-21 Andrew Pinski + + * java-tree.h (lang_tree_node): Use GENERIC_NEXT + instead of checking GIMPLE_STMT_P in chain_next. + +2007-04-06 Colin Walters + + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161701 + * jcf-io.c (open_class): Copy 'filename'. + +2007-04-03 Andrew Haley + + * jvgenmain.c (main): Change main to use class$, not class$$. + (do_mangle_classname): Likewise. + * class.c (hide): New function. + (add_field): Hide everything that shouldn't be visible outside a + DSO. + (build_static_class_ref): Likewise. + (build_classdollar_field): Likewise. + (make_class_data): Likewise. + (layout_class_method): Likewise. + * expr.c (special_method_p): New function. + + * class.c (push_class): Don't bogusly guess the source filename. + * jcf-parse.c (give_name_to_class): Don't set input_location from + DECL_ARTIFICIAL decls. + +2007-03-30 Rafael Ávila de Espíndola + + * typeck.c (java_signed_or_unsigned_type): Removed. + (java_signed_type): use get_signed_or_unsigned_type instead of + java_signed_or_unsigned_type. + (java_unsigned_type): Ditto. + * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Removed. + * java-tree.h (java_signed_or_unsigned_type): Removed. + +2007-03-26 Tom Tromey + + * Make-lang.in (JAVA_MANFILES): Removed grmiregistry.1. + (java.maintainer-clean): Likewise. + (java.install-man): Likewise. + (.INTERMEDIATE): Removed grmiregistry.pod. + (grmiregistry.pod): Removed. + * gcj.texi (Invoking gcjh): Removed. + (Invoking gjnih): Likewise. + (Invoking grmiregistry): Likewise. + (direntry): Updated. + (Top): Likewise. + (which-gcj): Removed. + +2007-03-01 Brooks Moses + + * Make-lang.in: Add install-pdf target as copied from + automake v1.10 rules. + +2007-02-27 Brooks Moses + + * gcj.texi: Standardize title page. + +2007-02-18 Kazu Hirata + + * class.c: Fix a comment typo. + +2007-02-15 Sandra Loosemore + Brooks Moses + Lee Millward + + * java-tree.h (BUILD_MONITOR_ENTER): Use build_call_nary instead + of build3. + (BUILD_MONITOR_EXIT): Likewise. + + * java-gimplify.c (java_gimplify_component_ref): Use build_call_expr. + (java_gimplify_modify_expr): Likewise. + + * class.c (cache_this_class_ref): Use build_call_expr. + (build_static_field_ref): Likewise. + (emit_indirect_register_classes): Likewise. + (emit_register_classes): Likewise. + + * resource.c (write_resource_constructor): Use build_call_expr. + + * builtins.c (builtin_creator_function): Change interpretation of + the second parameter to be the whole CALL_EXPR instead of the arglist. + (max_builtin): Tweak parameter list. Use new CALL_EXPR accessors. + (min_builtin): Likewise. + (abs_builtin): Likewise. + (java_build_function_call_expr): Likewise. + (convert_real): Likewise. + (UNMARSHAL3): Likewise. + (UNMARSHAL4): Likewise. + (UNMARSHAL5): Likewise. + (build_arglist_for_builtin): Delete. Fix callers to use + build_call_expr instead. + (putObject_builtin): Tweak parameter list. Use new CALL_EXPR + accessors. + (compareAndSwapInt_builtin): Likewise. + (compareAndSwapLong_builtin): Likewise. + (compareAndSwapObject_builtin): Likewise. + (putVolatile_builtin): Likewise. + (getVolatile_builtin): Likewise. + (VMSupportsCS8_builtin): Likewise. + (check_for_builtin): Pass entire CALL_EXPR to builtin expander + instead of arglist. + + * expr.c (build_java_athrow): Use build_call_nary instead of build3. + (build_java_throw_out_of_bounds_exception): Likewise. + (java_check_reference): Likewise. + (build_java_arraystore_check): Likewise. + (build_newarray): Likewise. + (build_anewarray): Likewise. + (expand_java_multinewarray): Use build_call_list instead of build3. + (build_java_monitor): Use build_call_nary instead of build3. + (java_create_object): Likewise. + (expand_java_NEW): Likewise. + (build_instanceof): Likewise. + (expand_java_CHECKCAST): Likewise. + (build_java_soft_divmod): Likewise. + (build_java_binop): Likewise. + (build_field_ref): Likewise. + (build_class_init): Likewise. + (rewrite_arglist_getcaller): Use build_call_expr. + (build_invokeinterface): Use build_call_nary instead of build3. + (expand_invoke): Use build_call_list instead of build3. + (build_jni_stub): Use build_call_nary, build_call_list, or + build_call_expr instead of build3. + (expand_java_field_op): Use build_call_expr instead of build3. + (force_evaluation_order): Use new CALL_EXPR accessors. + + * lang.c (java_get_callee_fndecl): Use new CALL_EXPR accessors. + +2007-02-15 David Daney + + * Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. + (java.maintainer-clean):Add gc-analyze.1. + (.INTERMEDIATE): Add gc-analyze.pod. + (gc-analyze.pod): New rule. + (java.install-man): Install gc-analyze.1 + * gcj.texi: Add new section for the gc-analyze program. + +2007-02-07 Andrew Haley + + * class.c (uncache_this_class_ref): New. + * expr.c (build_jni_stub): Initialize the class. + (expand_byte_code): Call uncache_this_class_ref after generating + code. + +2007-02-06 Tom Tromey + + PR java/30714: + * jvspec.c (lang_specific_driver): Check for the '-' in '-I'. + +2007-02-03 Kazu Hirata + + * java-tree.h, javaop.def, jcf-parse.c: Fix comment typos. + +2007-02-02 Andrew Haley + + * expr.c (expand_byte_code): Call cache_this_class_ref() and + cache_cpool_data_ref(). + Set TYPE_CPOOL_DATA_REF. + (cache_cpool_data_ref): New function. + * constants.c (build_ref_from_constant_pool): Remove special-case + code for flag_indirect_classes. + (build_constant_data_ref): Move special-case code for + flag_indirect_classes here from build_ref_from_constant_pool. + * decl.c (finish_method): Move class initialization from here to + cache_this_class_ref. + * class.c (cache_this_class_ref): New function. + (build_class_ref): Use this_classdollar for the ouput class. + +2007-02-02 David Daney + + * class.c (is_compiled_class): Move check to avoid reloading + current class. + (layout_class_method): Don't calculate DECL_EXTERNAL if it is + already set. + +2007-02-01 Andrew Haley + + PR java/30641 + * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap. + +2007-01-31 Kazu Hirata + + * class.c, jcf-parse.c: Fix comment typos. + +2007-01-30 Tom Tromey + + * gcj.texi (Strings): Fix documentation for JvNewString. + +2007-01-30 Ralf Wildenhues + + * gcj.texi (Invoking gcjh, Invoking gjnih, Arrays): Fix some + typos. + +2007-01-30 Ben Elliston + + * jvspec.c (lang_specific_driver): Remove unused classpath_args. + +2007-01-29 Tom Tromey + + PR java/30607: + * jvspec.c (lang_specific_driver): Handle separate -I argument. + * lang.opt (-I): Add 'Separate'. + +2007-01-29 Andrew Haley + + * class.c (add_method_1): Mark fndecl as external unless we are + compiling it into this object file. + +2007-01-24 Andrew Haley + + * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): current_class is a + type node, not a decl, so use TYPE_SYNTHETIC not CLASS_SYNTHETIC. + +2007-01-22 Andrew Haley + + * builtins.c (VMSupportsCS8_builtin): New function. + +2007-01-23 Andrew Pinski + + PR java/30454 + * jcf-io.c (opendir_in_zip): Close the file + and free zipf before returning after an error. + +2007-01-16 Tom Tromey + + * java-tree.def: Added copyright header. + +2007-01-15 Tom Tromey + + * lang.c (dump_compound_expr) : Removed + case. + * java-gimplify.c (java_gimplify_expr) : + Removed case. + * java-tree.h (EXPR_WFL_EMIT_LINE_NOTE): Removed. + (EXPR_WFL_NODE): Likewise. + (EXPR_WFL_LINECOL): Likewise. + (EXPR_WFL_FILENAME): Likewise. + (EXPR_WFL_LINENO): Likewise. + (build_expr_wfl, expr_add_location): Don't declare. + (build_unknown_wfl): Removed. + (EXPR_WFL_FILENAME_NODE): Removed. + (EXPR_WFL_COLNO): Removed. + (EXPR_WFL_SET_LINECOL): Removed. + (DECL_FUNCTION_WFL): Removed. + (DECL_FIELD_FINAL_WFL): Removed. + (struct lang_decl_func) : Removed field. + : Likewise. + : Likewise. + (struct lang_decl_var) : Removed field. + (DECL_CONSTRUCTOR_CALLS): Removed. + (DECL_FUNCTION_ACCESS_DECL): Likewise. + (DECL_FUNCTION_INNER_ACCESS): Likewise. + (DECL_SPECIFIC_COUNT): Likewise. + * java-tree.def (EXPR_WITH_FILE_LOCATION): Removed. + * expr.c (build_expr_wfl): Removed. + (expr_add_location): Likewise. + +2007-01-12 Tom Tromey + + * jcf-dump.c (main): Updated call to find_class. + * lang.c (java_init): Removed dead code. + * jcf-parse.c (read_class): Don't use java_source field. Removed + dead code. + (parse_zip_file_entries): Don't use java_source field. + (process_zip_dir): Likewise. + (jcf_parse): Removed dead code. + (java_parse_file): Likewise. + (read_class): Updated call to find_class. + * jcf-io.c (find_class): Don't use java_source field. Removed + 'source_ok' argument, .java logic. + * jcf.h (JCF) : Removed field. + (JCF_ZERO): Updated. (find_class): Updated. + * decl.c: Removed dead code. + * class.c: Removed dead code. + +2007-01-11 Tom Tromey + + * typeck.c (convert): Don't use flag_emit_class_files. + * lang.c (java_post_options): Don't use flag_emit_class_files. + (java_handle_option): Don't use flag_extraneous_semicolon or + flag_redundant. + * jcf-parse.c (HANDLE_CONSTANTVALUE): Don't use + flag_emit_class_files. + (load_class): Likewise. + * java-tree.h (flag_emit_class_files): Don't declare. + (STATIC_CLASS_INIT_OPT_P): Don't use flag_emit_class_files. + (flag_extraneous_semicolon): Don't declare. + (flag_not_overriding): Likewise. + (flag_static_local_jdk1_1): Likewise. + (flag_redundant): Likewise. + * expr.c (build_newarray): Don't use flag_emit_class_files. + * class.c (DEFAULT_ENABLE_ASSERT): Don't use + flag_emit_class_files. + (build_class_ref): Likewise. + * builtins.c (check_for_builtin): Don't use + flag_emit_class_files. + +2007-01-10 Tom Tromey + + * lang.c (java_can_use_bit_fields_p): Removed. + (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed. + +2007-01-09 Andrew Haley + + * expr.c (build_java_arrayaccess): Rewrite to generate array + access in canonical form. + (expand_java_arraystore): Use build_fold_addr_expr() on address of + array access. + +2007-01-03 Andrew Haley + + PR java/28754 + * expr.c (expand_java_field_op): If we're initializing a field's + declaring interface we should not also initialize the class + context in which it was referenced. + +2007-01-02 Tom Tromey + + * java-tree.h (compiling_from_source, current_encoding, + JTI_FINIT_IDENTIFIER_NODE, JTI_INSTINIT_IDENTIFIER_NODE, + JTI_LENGTH_IDENTIFIER_NODE, JTI_SUPER_IDENTIFIER_NODE, + JTI_CONTINUE_IDENTIFIER_NODE, JTI_ACCESS0_IDENTIFIER_NODE, + JTI_WFL_OPERATOR): Removed + (finit_identifier_node, instinit_identifier_node, + length_identifier_node, super_identifier_node, + continue_identifier_node, access0_identifier_node, wfl_operator): + Removed. + (cyclic_inheritance_report, + DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND, + DECL_FUNCTION_NAP, DECL_FUNCTION_SYNTHETIC_CTOR, + DECL_FIXED_CONSTRUCTOR_P): Removed. + (struct lang_decl_func) : + Removed. + (TYPE_FINIT_STMT_LIST, TYPE_CLINIT_STMT_LIST, TYPE_II_STMT_LIST, + TYPE_IMPORT_LIST, TYPE_IMPORT_DEMAND_LIST): Removed. + (struct lang_type) : Removed. + (java_layout_seen_class_methods, init_jcf_parse, init_src_parse, + cxx_keyword_p): Removed. + (DECL_FINIT_P, DECL_INSTINIT_P, ID_FINIT_P, ID_INSTINIT_P, + TYPE_UNUSED, TYPE_UNDERFLOW, TYPE_UNEXPECTED, + CLASS_ACCESS0_GENERATED_P, CLASS_HAS_FINIT_P, + IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P, IS_A_CLASSFILE_NAME, + IS_AN_IMPORT_ON_DEMAND_P, COMPOUND_ASSIGN_P, SWITCH_HAS_DEFAULT, + PRIMARY_P, MODIFY_EXPR_FROM_INITIALIZATION_P, + CLASS_METHOD_CHECKED_P, FOR_LOOP_P, ANONYMOUS_CLASS_P, + LOCAL_CLASS_P, ARG_FINAL_P, SUPPRESS_UNREACHABLE_ERROR, + RESOLVE_PACKAGE_NAME_P, RESOLVE_TYPE_NAME_P, IS_BREAK_STMT_P, + IS_CRAFTED_STRING_BUFFER_P, IS_INIT_CHECKED, CALL_USING_SUPER, + NESTED_FIELD_ACCESS_IDENTIFIER_P, TOPLEVEL_CLASS_DECL_P, + PURE_INNER_CLASS_TYPE_P, TOPLEVEL_CLASS_TYPE_P, + CALL_CONSTRUCTOR_P, CALL_EXPLICIT_CONSTRUCTOR_P, + CALL_THIS_CONSTRUCTOR_P, CALL_SUPER_CONSTRUCTOR_P, + FINALLY_EXPR_LABEL, FINALLY_EXPR_BLOCK, BLOCK_IS_IMPLICIT, + BLOCK_EMPTY_P, IS_UNCHECKED_EXCEPTION_P, java_error_count, + java_parse_abort_on_error, extract_field_decl): Removed. + (finput): Declare. + * lang.c: (compiling_from_source, current_encoding): Removed. + (java_handle_option): Ignore -fencoding. + * parse.h: Don't include lex.h. + (java_error_count, int_fits_type_p, stabilize_reference, RULE, + RECOVERED, DRECOVERED, RECOVER, DRECOVER, YYERROR_NOW, + YYNOT_TWICE, CLASS_MODIFIERS, FIELD_MODIFIERS, METHOD_MODIFIERS, + INTERFACE_MODIFIERS, INTERFACE_INNER_MODIFIERS, + INTERFACE_METHOD_MODIFIERS, INTERFACE_FIELD_MODIFIERS, + MODIFIER_WFL, THIS_MODIFIER_ONLY, parse_error_context, + ABSTRACT_CHECK, JCONSTRUCTOR_CHECK, exit_java_complete_class, + CLASS_OR_INTERFACE, GET_REAL_TYPE, GET_TYPE_NAME, + OBSOLETE_MODIFIER_WARNING, OBSOLETE_MODIFIER_WARNING2, + BUILD_PTR_FROM_NAME, INCOMPLETE_TYPE_P, + JAVA_MAYBE_GENERATE_DEBUG_INFO, JBSC_TYPE_P, JSTRING_P, + JNULLP_TYPE_P, JDECL_P, TYPE_INTERFACE_P, TYPE_CLASS_P, + IDENTIFIER_INNER_CLASS_OUTER_FIELD_ACCESS, + MANGLE_OUTER_LOCAL_VARIABLE_NAME, + MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID, + MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STRING, + SKIP_THIS_AND_ARTIFICIAL_PARMS, MARK_FINAL_PARMS, + UNMARK_FINAL_PARMS, CRAFTED_PARAM_LIST_FIXUP, + AIPL_FUNCTION_CREATION, AIPL_FUNCTION_DECLARATION, + AIPL_FUNCTION_CTOR_INVOCATION, AIPL_FUNCTION_FINIT_INVOCATION, + ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, + ERROR_CAST_NEEDED_TO_INTEGRAL, ERROR_VARIABLE_NOT_INITIALIZED, + LOOP_EXPR_BODY_MAIN_BLOCK, LOOP_EXPR_BODY_UPDATE_BLOCK, + LOOP_EXPR_BODY_CONDITION_EXPR, LOOP_EXPR_BODY_LABELED_BODY, + LOOP_EXPR_BODY_BODY_EXPR, PUSH_LABELED_BLOCK, POP_LABELED_BLOCK, + PUSH_LOOP, POP_LOOP, PUSH_EXCEPTIONS, POP_EXCEPTIONS, + IN_TRY_BLOCK_P, EXCEPTIONS_P, ANONYMOUS_ARRAY_BASE_TYPE, + ANONYMOUS_ARRAY_DIMS_SIG, ANONYMOUS_ARRAY_INITIALIZER, + INVOKE_STATIC, INVOKE_NONVIRTUAL, INVOKE_SUPER, INVOKE_INTERFACE, + INVOKE_VIRTUAL, jdep_code, struct _jdep, JDEP_DECL, JDEP_DECL_WFL, + JDEP_KIND, JDEP_WFL, JDEP_MISC, JDEP_ENCLOSING, JDEP_CLASS, + JDEP_APPLY_PATCH, JDEP_GET_PATCH, JDEP_CHAIN, JDEP_TO_RESOLVE, + JDEP_RESOLVED_DECL, JDEP_RESOLVED, JDEP_RESOLVED_P, struct + jdeplist_s, jdeplists, CLASSD_FIRST, CLASSD_LAST, CLASSD_CHAIN, + JDEP_INSERT, SET_TYPE_FOR_RESOLUTION, WFL_STRIP_BRACKET, + STRING_STRIP_BRACKETS, PROMOTE_RECORD_IF_COMPLETE, + BLOCK_CHAIN_DECL, GET_CURRENT_BLOCK, EXPR_WFL_GET_LINECOL, + EXPR_WFL_QUALIFICATION, QUAL_WFL, QUAL_RESOLUTION, QUAL_DECL_TYPE, + GET_SKIP_TYPE, COMPLETE_CHECK_OP, COMPLETE_CHECK_OP_0, + COMPLETE_CHECK_OP_1, COMPLETE_CHECK_OP_2, BUILD_APPEND, + BUILD_STRING_BUFFER, BUILD_THROW, SET_WFL_OPERATOR, + PATCH_METHOD_RETURN_ERROR, CHECK_METHODS, CLEAR_DEPRECATED, + CHECK_DEPRECATED_NO_RESET, CHECK_DEPRECATED, REGISTER_IMPORT, + CURRENT_OSB, struct parser_ctxt, GET_CPC_LIST, CPC_INNER_P, + GET_CPC, GET_CPC_UN, GET_CPC_UN_MODE, GET_CPC_DECL_NODE, + GET_ENCLOSING_CPC, GET_NEXT_ENCLOSING_CPC, + GET_ENCLOSING_CPC_CONTEXT, INNER_ENCLOSING_SCOPE_CHECK, PUSH_CPC, + PUSH_ERROR, POP_CPC, DEBUG_CPC, CPC_INITIALIZER_LIST, + CPC_STATIC_INITIALIZER_LIST, CPC_INSTANCE_INITIALIZER_LIST, + CPC_INITIALIZER_STMT, CPC_STATIC_INITIALIZER_STMT, + CPC_INSTANCE_INITIALIZER_STMT, SET_CPC_INITIALIZER_STMT, + SET_CPC_STATIC_INITIALIZER_STMT, + SET_CPC_INSTANCE_INITIALIZER_STMT, JAVA_NOT_RADIX10_FLAG, + java_complete_class, java_check_circular_reference, + java_fix_constructors, java_layout_classes, java_reorder_fields, + java_method_add_stmt, java_get_line_col, reset_report, + java_init_lex, yyparse, java_parse, yyerror, java_expand_classes, + java_finish_classes, ctxp, ctxp_for_generation, + ctxp_for_generation_last): Removed. + * expr.c (force_evaluation_order): Don't mention NEW_CLASS_EXPR. + * mangle.c (utf8_cmp): New function. + (cxx_keywords): New global. + (cxx_keyword_p): New function. + * jvspec.c (JAVA_START_CHAR): Removed obsolete comment. + * java-tree.def (UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, + NEW_ANONYMOUS_ARRAY_EXPR, NEW_CLASS_EXPR, THIS_EXPR, + CASE_EXPR, DEFAULT_EXPR, JAVA_CATCH_EXPR, SYNCHRONIZED_EXPR, + THROW_EXPR, CONDITIONAL_EXPR, INSTANCEOF_EXPR, NEW_ARRAY_INIT, + CLASS_LITERAL, JAVA_EXC_OBJ_EXPR): Removed. + * Make-lang.in (java.srcextra): Do nothing. + (parse.c, keyword.h, gt-java-parse.h): Removed targets. + (JAVA_OBJS): Don't mention deleted files. + (java.mostlyclean): Likewise. + (java.clean): Likewise. + (JAVA_LEX_C): Removed. + (buffer.o, check-init.o, parse.o): Remove unused targets. + (typeck.o): Updated. + * jcf-parse.c (read_class): Comment out unused code. + (java_layout_seen_class_methods): New function. + (parse_source_file_1, parse_source_file_2, parse_source_file_3): + Removed. + (java_parse_file): Comment out unused code. Don't use 'ctxp'. + (init_jcf_parse): Removed. + * config-lang.in (gtfiles): Remove deleted files. + * decl.c (java_init_decl_processing): Don't initialize + finit_identifier_node, instinit_identifier_node, + length_identifier_node, super_identifier_node, + continue_identifier_node, access0_identifier_node. Don't call + init_jcf_parse. + * class.c (cyclic_inheritance_report): New global. + (add_method_1): Don't use + DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND. + (maybe_layout_super_class): Comment out code. + (safe_layout_class): New function. + * java-gimplify.c (java_gimplify_expr): Removed CASE_EXPR, + DEFAULT_EXPR, NEW_ARRAY_INIT, JAVA_CATCH_EXPR, JAVA_EXC_OBJ_EXPR, + UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, NEW_ANONYMOUS_ARRAY_EXPR, + NEW_CLASS_EXPR, SYNCHRONIZED_EXPR, CONDITIONAL_EXPR, + INSTANCEOF_EXPR, CLASS_LITERAL, THIS_EXPR. + (java_gimplify_case_expr): Removed. + (java_gimplify_default_expr): Likewise. + (java_gimplify_new_array_init): Likewise. + * parse.y: Removed. + * keyword.gperf, keyword.h: Removed. + * chartables.h: Removed. + * check-init.c: Removed. + * buffer.c, buffer.h: Removed. + * convert.h: Removed. + * gen-table.pl: Removed. + * lex.c, lex.h: Removed. + +2007-01-02 Andrew Haley + + * expr.c (expand_java_arraystore): Make sure we perform a bounds + check at runtime before we perform a type check. + +2006-12-19 Andrew Haley + + * decl.c: Bump minor BC ABI version. + +2006-12-13 Gary Benson + + * jcf-depend.c (jcf_dependency_add_file): Mark filename unused. + +2006-12-12 Tom Tromey + + * lang-specs.h: Pass -M options to jc1. + * jcf-depend.c (jcf_dependency_add_file): Don't emit + dependencies. + +2006-12-07 Mohan Embar + + * jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR. + +2006-12-06 Mohan Embar + + * lang-specs.h: Pass '%U'-based options as separate arguments. + +2006-12-05 Tom Tromey + + PR java/29495: + * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Mark fields and + classes as well. + * class.c (add_field): Handle ACC_SYNTHETIC. + (add_method_1): Likewise. Handle bridge and varargs. + (get_access_flags_from_decl): Handle synthetic, bridge, varargs, + annotation. + (set_class_decl_access_flags): Handle synthetic and annotation. + * java-tree.h (METHOD_BRIDGE): New macro. + (METHOD_VARARGS): Likewise. + (TYPE_SYNTHETIC): Likewise. + (TYPE_ANNOTATION): Likewise. + (lang_type): New fields 'synthetic' and 'annotation'. + (lang_decl_func): New fields 'varargs' and 'bridge'. + +2006-12-04 Andrew Haley + + * jcf-parse.c (rewrite_reflection_indexes): Don't do anything if + there's no map. + +2006-11-29 Gary Benson + + * expr.c (rewrite_arglist_getcaller): Reorder. + +2006-11-29 Andrew Haley + + * expr.c (rewrite_arglist_getcaller): Remove DECL_INLINE. + * lang.c (java_decl_ok_for_sibcall): Check for DECL_INLINE. + +2006-11-23 Andrew Haley + + * expr.c (rewrite_arglist_getcaller): New. + (rewrite_arglist_getclass): Fix indentation. + (rules): Add gnu.classpath.VMStackWalker.getCallingClass() and + gnu.classpath.VMStackWalker.getCallingClassLoader(). + * builtins.c (initialize_builtins): Remove duplicate def'n of + __sync_synchronize. + Add __builtin_return_address. + +2006-11-22 Andrew Haley + + * jcf-reader.c (get_attribute): Mark attr_type unused. + + * builtins.c (compareAndSwapObject_builtin): Fix declaration. + +2007-01-08 Richard Guenther + + * lex.c (do_java_lex): Use build_int_cst_wide_type. + * jcf-parse.c (get_constant): Likewise. + +2006-11-12 Jan Hubicka + + * resource.c (compile_resource_data): Update for new varpool names. + * java/class.c (build_utf8_ref): Likewise. + +2006-11-12 David Daney + + PR java/29805 + * typeck.c (build_java_array_type): Increase buffer sizes. + +2006-11-11 Richard Guenther + + * check-init.c (check_init): Remove handling of FIX_CEIL_EXPR, + FIX_FLOOR_EXPR and FIX_ROUND_EXPR. + +2006-11-06 Andrew Haley + + * java-tree.h (CONSTANT_LazyFlag): New. + * constants.c (build_constants_constructor): Mask CONSTANT_LazyFlag. + * jcf-parse.c (handle_innerclass_attribute): Write attribute to + reflection_data. + (handle_constant): Return 0 for dummy cpool entries. + Handle constants of kind Class. + Handle constants of kind NameAndType. + (handle_enclosingmethod_attribute): New. + (handle_signature_attribute): New. + (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New. + (HANDLE_SIGNATURE_ATTRIBUTE): New. + (handle_constant): Use unmangle_classname()rather than calling + identifier_subst() directly. + +2006-11-02 Andrew Haley + + * java-tree.h (FIELD_ENUM): New. + (lang_decl_var.field_enum): New. + (lang_type.enum_class): New. + (CLASS_ENUM): New. + * class.c (set_class_decl_access_flags): Handle enum types. + (add_field): Handle enum fields. + (get_access_flags_from_decl): Likewise. + + * class.c (make_class_data): Put reflection_data into rodata. + +2006-11-01 Andrew Haley + + * jcf-parse.c (field_offsets, bit_obstack): New variables. + (jcf_parse): Write end marker to annotation_data. + (java_parse_file): Create field_offsets bitmap. Destroy it. + (annotation_grow, annotation_rewrite_byte) + (annotation_rewrite_short, annotation_rewrite_int) + (annotation_read_short, annotation_write_byte) + (annotation_write_short, annotation_write_int) + (handle_long_constant, handle_constant, handle_element_value) + (handle_annotation, handle_annotations) + (handle_annotation_attribute, rewrite_reflection_indexes) + (handle_member_annotations, handle_parameter_annotations) + (handle_default_annotation): New functions. + (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE) + (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE) + (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) + (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) + (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): New definitions. + * java-tree.h (enum jv_attr_type, enum jv_attr_kind): New. + (TYPE_REFLECTION_DATA): New. + (TYPE_REFLECTION_DATASIZE): New. + * jcf.h (enum cpool_tag): Convert a bunch of #define constants to + an enum. + * jcf-reader.c (get_attribute): Pass field/method index and + attribute type to get_attribute(). + * constants.c (find_class_or_string_constant): Make nonstatic. + (cpool_for_class): Likewise. + (build_constants_constructor): Separate string and scalar types. + * class.c (make_class_data): Generate field_indexes permutation. + Pass it to rewrite_reflection_indexes(). + (make_class_data): Generate constructor for reflection_data field. + +2006-10-20 Tom Tromey + + * gcj.texi (Top): Don't mention jv-scan. + (Invoking gcj): Likewise. + (Invoking gcjh): Likewise. + (Invoking gjnih): Likewise. + (Invoking gij): Likewise. + (Invoking gcj-dbtool): Likewise. + (Invoking jv-scan): Removed. + * parse-scan.y: Removed. + * jv-scan.c: Removed. + * config-lang.in (stagestuff): Don't mention jv-scan. + * Make-lang.in (java): Removed jv-scan. + (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. + (JVSCAN_OBJS): Removed. + (jv-scan$(exeext)): Likewise. + (JAVA_MANFILES): Removed jv-scan.1. + (java.uninstall): Don't mention jv-scan. + (java.mostlyclean): Likewise. + (java.maintainer-clean): Likewise. + (.INTERMEDIATE): Likewise. + (java/jv-scan.o): Removed. + (jv-scan.pod): Likewise. + (java.srcextra): Don't mention parse-scan.c. + (java.mostlyclean): Likewise. + (java/parse-scan.c): Removed. + (java/parse-scan.o-warn): Removed. + (java/parse-scan.o): Removed. + +2006-10-20 Tom Tromey + + * lang.c (java_handle_option): Don't use + jcf_write_base_directory. + * jcf.h (jcf_write_base_directory): Removed. + * parse.y (java_expand_classes): Don't call write_classfile. + * config-lang.in (gtfiles): Removed jcf-write.c. + * Make-lang.in (JAVA_OBJS): Removed jcf-write.o. + (java/jcf-write.o): Removed. + * jcf-parse.c (parse_class_file): Don't call write_classfile. + * java-tree.h (write_classfile): Removed declaration. + * jcf-write.c: Removed. + +2006-10-20 Tom Tromey + + * Make-lang.in (java): Removed gjnih, gcjh. + (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. + (GCJH_OBJS): Removed. + (GJNIH_OBJS): Likewise. + (gjnih$(exeext)): Likewise. + (gcjh$(exeext)): Likewise. + (JAVA_MANFILES): Removed gcjh.1, gjnih.1. + (java.install-common): Don't special case gcjh. + (java.uninstall): Don't mention gcjh, gjnih. + (java.mostlyclean): Likewise. + (java.maintainer-clean): Likewise. + (.INTERMEDIATE): Likewise. + (gcjh.pod): Removed. + (gjnih.pod): Likewise. + (GCJH_TARGET_INSTALL_NAME): Removed. + (java/gjavah-jni.o): Removed. + (java/gjavah.o): Likewise. + * config-lang.in (stagestuff): Removed gjnih, gcjh. + * gjavah.c: Removed. + +2006-10-17 Tom Tromey + + * jcf-dump.c (print_element_value): Expect a utf8 constant in the + "string" case. + +2006-10-17 Tom Tromey + + * jvgenmain.c (main): Handle -findirect-dispatch. + * jvspec.c (jvgenmain_spec): Pass -findirect-dispatch to + jvgenmain. + +2006-10-06 Andrew Haley + + * builtins.c (compareAndSwapInt_builtin): Check that we really do + have a compare_and_swap builtin. + (compareAndSwapLong_builtin): Likewise. + (compareAndSwapObject_builtin): Likewise. + +2006-10-04 Andrew Haley + + * builtins.c (java_builtins): Add compareAndSwapInt, + compareAndSwapLong, compareAndSwapObject, putOrderedInt, + putOrderedLong, putOrderedObject, putIntVolatile, putLongVolatile, + putObjectVolatile, getObjectVolatile, getIntVolatile, + getLongVolatile, getLong. + (UNMARSHAL3): New macro. + (UNMARSHAL4): Likewise. + (UNMARSHAL5): Likewise. + (build_arglist_for_builtin): New function. + (build_addr_sum, build_check_this): New functions. + (putObject_builtin. compareAndSwapInt_builtin, + compareAndSwapLong_builtin, compareAndSwapObject_builtin, + putVolatile_builtin, getVolatile_builtin): New builtins. + +2006-06-08 Andrew Haley + + * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to + get_symbol_table_index(). + (maybe_rewrite_invocation): Set SPECIAL if we need to access a + private method. + (build_known_method_ref): New arg: special. Pass it to + get_symbol_table_index. + (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of + the method list. + (build_invokevirtual): New arg: special. Pass it to + get_symbol_table_index. + (expand_invoke): New variable: special. + Pass it to maybe_rewrite_invocation(). + Pass it to build_known_method_ref(). + * class.c (build_symbol_entry): Add new arg: special. Use it to + build the symbol table conbstructor. + (emit_symbol_table): Extract SPECIAL from the method list and pass + it to build_symbol_entry(). + * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set + special accordingly. + +2006-09-08 Andrew Haley + + * class.c (layout_class_method): Use build_java_signature, not + build_java_argument_signature. Use lookup_java_method, not + lookup_argument_method. + +2006-08-16 Jakub Jelinek + Bryce McKinlay + + * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. + +2006-07-18 Tom Tromey + + * lang.opt: Added missing -W options. + +2006-07-12 Tom Tromey + + PR java/28329: + * lang-specs.h: Pass '%U'-based options as separate arguments. + Use -faux-classpath. + * lang.c (java_handle_option): Handle OPT_faux_classpath. + * lang.opt (faux-classpath): New option. + +2006-07-07 Tom Tromey + + * class.c (make_class_data): Set value for reflection_data field. + * decl.c (java_init_decl_processing): Add reflection_data field. + +2006-07-07 Tom Tromey + + * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): Declare locals + earlier. + (HANDLE_SIGNATURE_ATTRIBUTE): Likewise. + +2006-07-07 Andrew Haley + + * jcf-parse.c (set_source_filename): Don't check for + CLASS_FROM_CURRENTLY_COMPILED_P. + Remove // comments. + +2006-07-07 Andrew Haley + + * java-tree.h (java_read_sourcefilenames): Declare. + * lang.c (java_handle_option): Call java_read_sourcefilenames(). + * lang.opt (fsource-filename): New opt. + * lang-specs.h: Add -fsource-filename. + * jcf-parse.c (num_files, filenames): New variables. + (reverse, cmpstringp, java_read_sourcefilenames, + find_sourcefile): New. + (set_source_filename): Call find_sourcefile to find the real name + of a source file. + +2006-06-27 Tom Tromey + + * jcf-reader.c (get_attribute): Handle EnclosingMethod, + Signature, LocalVariableTypeTable, annotation attributes. + * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New macro. + (HANDLE_SIGNATURE_ATTRIBUTE): Likewise. + (HANDLE_START_FIELD): Mention 'descriptor', not 'signature'. + (HANDLE_METHOD): Likewise. + (HANDLE_LOCALVARIABLETYPETABLE_ATTRIBUTE): New macro. + (print_annotation): New function. + (print_element_value): Likewise. + (indent): Likewise. + (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE): New macro. + (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE): Likewise. + (print_parameter_annotations): New function. + (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE): New macro. + (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE): + Likewise. + (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): Likewise. + (print_annotations): New function. + +2006-06-23 Tom Tromey + + * lang-specs.h: Default -fsource and -ftarget to 1.5. If + emitting class files, always use 1.5. + * gcj.texi (Input Options): Document -fsource. + (Code Generation): Document -ftarget. + +2006-06-21 Tom Tromey + + PR java/28089: + * expr.c (expand_java_field_op): Initialize field's declaring + class. + +2006-06-20 Tom Tromey + + * expr.c (push_value): Always flush quick stack. + +2006-06-19 Tom Tromey + + * expr.c (push_value): Also flush quick stack if value is a + component_ref. + +2006-06-19 Tom Tromey + + * expr.c (push_value): Flush quick stack if value has side + effects. + +2006-06-13 Tom Tromey + + * class.c (is_compiled_class): Explicitly check for current + class. + +2006-06-09 Tom Tromey + + * gjavah.c (decompile_method): Don't decompile a static field + accessor method. + +2006-06-06 Tom Tromey + + * lang-specs.h : Add .jar file to command line if + -fsaw-java-file. Also, remove -ffilelist-file in this case. + +2006-06-05 Tom Tromey + + * jcf-dump.c (print_access_flags): Handle varargs, bridge, + synthetic, enum, annotation. + * jcf.h (ACC_BRIDGE): New macro. + (ACC_VARARGS): Likewise. + (ACC_SYNTHETIC): Likewise. + (ACC_ENUM): Likewise. + (ACC_ANNOTATION): Likewise. + +2006-06-04 Tom Tromey + + * lang.opt (-fsaw-java-file, -fsource, -ftarget): New options. + * jvspec.c (jvgenmain_spec): Remove -fsaw-java-file, -fsource, + and -ftarget. + (lang_specific_driver): Removed dead code. Add -fsaw-java-file + when needed. Handle classpath-setting. + * Make-lang.in ($(GCJ)$(exeext)): Link in jcf-path.o. + * lang-specs.h: Rewrote. + +2006-06-04 Tom Tromey + + * jcf-io.c (find_class): Set source_ok to 0. + * jcf-parse.c (jcf_parse): Disable gnu.gcj.gcj-compiled warning. + (parse_class_file): Don't call java_mark_class_local. + (java_parse_file): Skip .java files. Call java_mark_class_local + before lowering any code. + (parse_zip_file_entries): Don't call duplicate_class_warning + here. + (process_zip_dir): ... call it here. + * class.c (add_field): Don't mark field external if it is being + compiled into this object. + (make_class_data): Handle situation where class_dtable_decl is + created before Class is compiled. + (is_compiled_class): Don't assume files in zip are compiled into + this object. + (layout_class_method): Don't mark method external if it is being + compiled into this object. + +2006-06-04 Tom Tromey + + * jcf-path.c (jcf_path_compute): New function. + * jcf.h (jcf_path_compute): Declare. + +2006-10-23 Rafael Ávila de Espíndola + + * decl.c: Include langhooks.h. + (builtin_function): Remove. + (java_init_decl_processing): Replace calls to builtin_function + with add_builtin_function. + * Make-lang.in (jc1$(exeext)): Depend on and link with attribs.o. + (java/decl.o): Depend on langhooks.h. + * java-tree.h (builtin_function): Remove. + +2006-10-10 Brooks Moses + + * Make-lang.in: Added "java.pdf", "gcj.pdf" target support. + +2006-09-12 Tom Tromey + + * expr.c (push_value): Always flush quick stack. + +2006-09-12 Tom Tromey + + PR java/29013: + * jcf-write.c (generate_bytecode_insns) : Always note + the push of the called method's return result. + +2006-09-12 Tom Tromey + + * jvspec.c (lang_specific_driver): Read spec file even if + -fsyntax-only. + +2006-09-12 Tom Tromey + + PR java/28754: + * expr.c (expand_java_field_op): Initialize field's declaring + interface if necessary. + +2006-09-12 Tom Tromey + + PR java/28892: + * expr.c (expand_java_field_op): No error for assignments not in + class initializer or constructor. + +2006-08-22 Andrew Haley + + * decl.c (java_add_stmt): Give the statement list a type. + +2006-08-16 Jakub Jelinek + Bryce McKinlay + + * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. + +2006-08-10 Simon Martin + + PR java/8923 + * parse.y (build_incdec): Emit an error instead of an ICE if '++' + or '--' is used with a constant operand. + (java_complete_lhs): When processing a '++' or '--' expression, + don't call java_complete_tree but java_complete_lhs, so that a + static final variable operand is never replaced by its value. This + avoids an ICE later on. + (patch_unaryop): Fixed typo in comment. + +2006-07-28 Volker Reichelt + + * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies. + +2006-07-12 Bryce McKinlay + + * builtins.c (check_for_builtin): If a builtin could result in a + direct call being generated, don't use it if flag_indirect_dispatch + is set. + +2006-07-12 Bryce McKinlay + + * gcj.texi (Invocation): Corrections for Invocation API example. + +2006-07-04 Andrew Haley + + * class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the + entry. + +2006-06-21 Andrew Haley + + * java-tree.h (update_aliases): Remove + * expr.c (expand_iinc): Remove call to update_aliases(). + (STORE_INTERNAL): Likewise. + * decl.c (update_aliases, initialize_local_variable) + (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls. + +2006-06-19 Andrew Haley + + PR java/1305 + PR java/27908 + * expr.c (java_modify_addr_for_volatile): New function. + (expand_java_field_op): Handle volatile fields. + * java-gimplify.c (java_gimplify_component_ref): Call + java_modify_addr_for_volatile to give the field_ref the correct + volatile type. + (java_gimplify_modify_expr): Likewise. + * java-tree.h (java_modify_addr_for_volatile): New decl. + +2006-06-17 Karl Berry + + * gcj.texi (@dircategory): Use "Software development" instead + of "Programming", following the Free Software Directory. + +2006-06-16 Andrew Haley + + * class.c (make_class_data): When using flag_indirect_classes, + don't initialize the vtable of Class instances. + +2006-06-09 Andrew Haley + + PR java/1305 + PR java/27908 + * builtins.c (initialize_builtins): Add __sync_synchronize(). + * class.c (add_field): Mark volatile fields. + * java-gimplify.c (java_gimplify_expr): Call new functions to + handle self-modifying exprs and COMPONENT_REFs. + (java_gimplify_component_ref): New. + (java_gimplify_modify_expr): Add handling for volatiles. + +2006-06-08 Tom Tromey + + * gcj.texi (libgcj Runtime Properties): Document + gnu.gcj.user.realname. + +2006-06-08 Andrew Haley + + * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to + get_symbol_table_index(). + (maybe_rewrite_invocation): Set SPECIAL if we need to access a + private method. + (build_known_method_ref): New arg: special. Pass it to + get_symbol_table_index. + (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of + the method list. + (build_invokevirtual): New arg: special. Pass it to + get_symbol_table_index. + (expand_invoke): New variable: special. + Pass it to maybe_rewrite_invocation(). + Pass it to build_known_method_ref(). + * class.c (build_symbol_entry): Add new arg: special. Use it to + build the symbol table conbstructor. + (emit_symbol_table): Extract SPECIAL from the method list and pass + it to build_symbol_entry(). + * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set + special accordingly. + +2006-06-06 David Daney + + * gcj.texi (libgcj Runtime Properties): Document + gnu.gcj.runtime.NameFinder.show_raw and + gnu.gcj.runtime.NameFinder.remove_unknown. + +2006-06-06 Tom Tromey + + * jcf-dump.c (print_access_flags): Handle varargs, bridge, + synthetic, enum, annotation. + * jcf.h (ACC_BRIDGE): New macro. + (ACC_VARARGS): Likewise. + (ACC_SYNTHETIC): Likewise. + (ACC_ENUM): Likewise. + (ACC_ANNOTATION): Likewise. + +2006-06-06 Mike Stump + + * Make-lang.in: Rename to htmldir to build_htmldir to avoid + installing during build. + +2006-05-31 Thomas Fitzsimmons + + * gcj.texi (Extensions): Document the new gcj-dbtool-based + classname-to-library resolution mechanism. + Declare the old gnu.gcj.runtime.VMClassLoader.library_control + mechanism deprecated. + (libgcj Runtime Properties): Document + gnu.gcj.runtime.VMClassLoader.library_control's new default. + +2006-05-29 Jakub Jelinek + + * javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64) + bit wide type. + (jword): Define to uint64 on 64-bit arches. + * jcf-dump.c (print_constant): Cast JPOOL_UINT to long. + +2006-05-28 Kazu Hirata + + * class.c, except.c, expr.c, java-gimplify.c: Fix comment + typos. + +2006-05-26 Tom Tromey + + * expr.c (java_push_constant_from_pool): Handle 'ldc class'. + * verify-glue.c (vfy_class_type): New function. + * verify-impl.c (check_constant): Allow 'ldc class'. + * verify.h (vfy_class_type): Declare. + +2006-05-25 Andrew Haley + + PR java/27756 + * decl.c (maybe_pushlevels): When variable ranges are non-nested + update all lifetimes, not just the first one. + +2006-05-24 Tom Tromey + + * java-tree.h: Fixed flag documentation. + +2006-05-24 Tom Tromey + + PR libgcj/27729: + * jcf.h (ACC_INVISIBLE): Changed value. + +2006-05-24 Andrew Haley + + PR java/27754 + * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a + COMPOUND_EXPR. + +2006-05-16 H.J. Lu + + * lang.opt (femit-class-file): Remove VarExists. + +2006-05-16 Tom Tromey + + * verify-impl.c (verify_instructions_0) : Special case + for Object.. + +2006-05-16 H.J. Lu + + PR driver/26885 + * Make-lang.in ($(GCJ)$(exeext)): Replace gcc.o with + $(GCC_OBJS). + +2006-05-14 H.J. Lu + + * Make-lang.in (java/decl.o): Add dependency on $(TARGET_H). + (java/expr.o): Replace target.h with $(TARGET_H). + (java/parse.o): Likewise. + +2006-05-10 Andrew Haley + + * class.c (emit_indirect_register_classes): Fix comment. + +2006-05-04 Tom Tromey + + * java-tree.h (uses_jv_markobj_p): Declare. + * class.c (uses_jv_markobj_p): Removed. + * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define. + (get_boehm_type_descriptor): Use it. + (uses_jv_markobj_p): Moved from class.c. Return bool. + +2006-05-04 Tom Tromey + + * java-tree.def (THIS_EXPR): Now a tcc_expression. + +2006-05-04 Andrew Haley + + * class.c (make_field_value): Always build_address_of fdecl if + there is an initializer. + +2006-05-03 Andrew Haley + + PR libgcj/27352 + * expr.c (maybe_rewrite_invocation): New function. + (rewrite_arglist_getclass): Likewise. + (rules): New. + (expand_invoke): Call maybe_rewrite_invocation. + * parse.y (patch_invoke): Likewise. + * java-tree.h: (maybe_rewrite_invocation): New function. + +2006-04-21 Andrew Haley + + * lang.c (java_init): Handle flag_indirect_classes. + * jvgenmain.c: Use "class$$" instead of "class$". + * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as + DECLs. + (mangle_class_field): Special case "class$$" as well as "class$". + * constants.c (build_ref_from_constant_pool): If + flag_indirect_classes, generate a ref into the heap. + * decl.c (constants_field_decl_node, + constants_data_field_decl_node): New. + * class.c (build_static_class_ref): New. + (build_classdollar_field): Factor out from build_class_ref(). + (make_field_value): Handle static fields in heap. + (make_class_data): Make sure we get a static ref to class. + Make class initializer const if flag_indirect_classes. + (register_class): Build a class_ref for initialization if + flag_indirect_classes. + (emit_indirect_register_classes): New. + +2006-04-08 Kazu Hirata + + * expr.c, gjavah.c: Fix comment typos. + +2006-04-03 Andrew Haley + + PR java/26858 + * expr.c (build_field_ref): Don't check the field offset if + flag_syntax_only. + +2006-03-30 Andrew Haley + + PR java/26858 + * lang.c (java_attribute_table): New. + (LANG_HOOKS_ATTRIBUTE_TABLE): Define. + * expr.c (build_field_ref): Add a null pointer check for all + fields of offset > 4k. Don't do so for accesses via the this + pointer, which we know can never be null. + * class.c (build_java_method_type): Mark arg 1 of all nonstatic + methods nonnull. + +2006-03-30 Carlos O'Donell + + * Make-lang.in: Rename docdir to gcc_docdir. + +2006-03-30 Tom Tromey + + PR java/26042: + * parse.y (java_reorder_fields): Reset superclass field's size as + well. + +2006-03-28 Tom Tromey + + PR java/26390: + * parse.y (find_most_specific_methods_list): Added 'class' + argument. + (lookup_method_invoke): Updated. + +2006-03-15 Tom Tromey + + * jcf-write.c (generate_bytecode_insns): Use qualifying type for + non-static method calls. + +2006-03-15 David Daney + + * java-tree.h : Moved comment for TYPE_DOT_CLASS adjacent to its + declaration. + +2006-03-15 David Daney + + * lang.opt (-freduced-reflection): New option. + * lang.c (java_post_options): Generate an error if + -freduced-reflection used with -fjni or -findirect-dispatch. + * java-tree.h (flag_reduced_reflection): Declare new variable. + * boehm.c (get_boehm_type_descriptor): Indicate all pointers + if bitmap overflows and flag_reduced_reflection set. + * class.c (uses_jv_markobj_p): New function. + (make_class_data): Moved generation of vtable to before + reflection data, generate less reflection data if + flag_reduced_reflection set. + * gcj.texi: Document -freduced-reflection. + +2006-03-15 Tom Tromey + + PR java/26638: + * class.c (get_interface_method_index): Don't put into + interface table. + +2006-03-15 Tom Tromey + + * parse.y (analyze_clinit_body): Ignore empty statements. + +2006-03-08 David Daney + + * gcj.texi: Document -static-libgcj option. + +2006-02-20 Andrew Haley + + * jcf-parse.c (parse_class_file): Set input_location from + current_class. + +2006-02-15 Andrew Haley + + * class.c (GEN_TABLE): Don't pushdecl *_SYMS_DECL here. + (make_class_data): pushdecl_top_level TYPE_OTABLE_SYMS_DECL, + TYPE_ATABLE_SYMS_DECL, TYPE_ITABLE_SYMS_DECL here. + +2006-02-09 Andrew Haley + + PR java/26192 + * expr.c (expand_invoke): Allow methods in arrays to be resolved + in their superclass. + + * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for + array types. + +2006-02-08 Tom Tromey + + PR java/22578: + * check-init.c (check_init): Handle VIEW_CONVERT_EXPR. + * builtins.c (convert_real): New function. + (java_builtins): Handle Float.intBitsToFloat, + Float.floatToRawIntBits, Double.longBitsToDouble, + Double.doubleToRawLongBits. + +2006-02-07 Andrew Haley + + * expr.c (expand_invoke): (BC mode.) If we find a method in a + class other than the one in which we expected to find it, ignore + the result. + + PR java/25535 + * constants.c (build_constants_constructor): move initializer into + first halfword on a 64-bit big-endian machine. + +2006-02-04 Tom Tromey + + PR java/25676: + * builtins.c (max_builtin): Skip floating point 'max'. + (min_builtin): Skip floating point 'min'. + (check_for_builtin): Never return NULL_TREE. + +2006-02-04 Tom Tromey + + PR java/26097: + * expr.c (push_type): Avoid side effect in gcc_assert. + +2006-02-04 Roger Sayle + + * decl.c (java_init_decl_processing): Create char_type_node as a + regular INTEGER_TYPE node. + (push_promoted_type): Preserve TYPE_STRING_FLAG on types. + * typeck.c (convert): No longer check for CHAR_TYPEs but instead + test for char_type_node and promoted_char_type_node as special + instances of INTEGER_TYPE tree codes. + (promote_type,build_java_signature): Likewise. + * jcf-write.c (adjust_typed_op): Likewise. + * mangle.c (mangle_type): Likewise. + * parse.y (do_unary_numeric_promotion): No longer handle CHAR_TYPE. + * parse.h (JINTEGRAL_TYPE_P): Likewise. + +2006-02-04 Andreas Tobler + + * expr.c (java_stack_swap): Revert gcc_assert patch. + +2006-02-03 Ben Elliston + + * java-gimplify.c: Use gcc_assert and gcc_unreachable throughout. + * typeck.c: Likewise. + * verify-impl.c: Likewise. + * class.c: Likewise. + * decl.c: Likewise. + * jcf-parse.c: Likewise. + * constants.c: Likewise. + * check-init.c: Likewise. + * jcf-write.c: Likewise. + * verify-glue.c: Likewise. + * mangle.c: Likewise. + * expr.c: Likewise. + * lang.c: Likewise. + * boehm.c: Likewise. + +2006-02-01 Jan Hubicka + + * decl.c (end_java_method): Kill hack disabling unit-at-a-time. + * lang.c (java_init_options): Set no_unit_at_a_time_default. + +2006-01-30 Andrew Haley + + PR java/21428 + * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this"). + +2006-01-21 Joseph S. Myers + + * jv-scan.c (version), jcf-dump.c (version), gjavah.c (version): + Update copyright notice dates. + +2006-01-16 Rafael Ávila de Espíndola + + * jvspec.c (lang_specific_spec_functions): Remove. + +2006-01-06 Tom Tromey + + * gcj.texi (Arrays): Added more documentation for + JvNewObjectArray. + (Primitive types): Correct information about primitive classes. + (Reference types): New node. + (Index): New node. + +2005-12-16 Alexandre Oliva + + * jcf-parse.c (set_source_filename): Set the decl source location + even when returning early. + +2005-12-15 Tom Tromey + Andrew Haley + + PR java/25429 + * parse.y (resolve_expression_name): Don't generate accessor + methods for constant fields. + +2005-12-13 Andrew Haley + + PR java/25366 + PR java/25368 + * class.c (maybe_layout_super_class): Update current_class before + calling do_resolve_class. + +2005-12-12 H.J. Lu + + PR java/25330 + * jcf-write.c (write_classfile): Use PID in temporary class + file. Save/restore errno when reporting error. + +2005-12-10 Terry Laurenzo + + PR java/9861 + * mangle.c (mangle_method_decl): Mangle Java methods by prepending 'J' + to bare_function_type and including the return type + * builtins.c (initialize_builtins) : Change builtin mangled name + constants to conform to new mangling scheme + +2005-12-08 Andrew Haley + + PR libgcj/25265 + * java-tree.h (enum java_tree_index): Add JTI_SOFT_NOSUCHFIELD_NODE. + (soft_abstractmethod_node): New. + * expr.c (build_field_ref): Add in-line check for missing field. + * decl.c (java_init_decl_processing): Add soft_nosuchfield_node. + +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in (java.all.build, java.install-normal): Remove. + +2005-12-07 Rafael Ávila de Espíndola + + * Make-lang.in: Remove all dependencies on s-gtype, except for + gt-java-parse.h. + +2005-12-07 Richard Sandiford + + * class.c (build_utf8_ref, emit_register_classes): Use + switch_to_section and get_section. + +2005-12-06 Tom Tromey + + PR java/25283: + * parse.y (patch_new_array_init): Revert previous patch. + (lookup_method_invoke): Use size-less array type when creating an + anonymous constructor. + +2005-12-05 Tom Tromey + + * parse.y (patch_new_array_init): Don't set length on array. + +2005-12-02 Richard Guenther + + * java-gimplify.c (java_gimplify_labeled_block_expr): Use + buildN instead of build. + * class.c (finish_class): Likewise. + * expr.c (java_create_object): Likewise. + +2005-11-28 Tom Tromey + + PR java/18278: + * expr.c (build_jni_stub): Unwrap the return value. + * java-tree.h (soft_unwrapjni_node): New define. + (enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE. + * decl.c (java_init_decl_processing): Initialize + soft_unwrapjni_node. + +2005-11-24 Bryce McKinlay + + * gcj.texi (gij options): Add -Xss documentation. + +2005-11-08 Wil Mahan + + PR java/23617 + * zextract.c (read_zip_archive): Fix out of memory error when + reading jar files with zip-style comments. + +2005-11-07 Terry Laurenzo + + * gjavah.c (HANDLE_CODE_ATTRIBUTE): Only define for ELF Object + formats. + * gjavah.c (decompile_method): Add ATTRIBUTE_UNUSED + +2005-10-12 Nathan Sidwell + Wil Mahan + + PR java/23620 + * class.c (make_class): Create empty binfo here. + (set_super_info): Only create binfo if we have superclasses. + +2005-10-03 Ranjit Mathew + + PR java/24127 + * parse.y (method_header): Make the result of the rule a NULL_TREE + when a parsing error occurs. + +2005-09-29 Tom Tromey + + PR java/24120: + * jcf-io.c (memoized_dirlist_hash): New function. + (caching_stat): Use it. + +2005-09-21 Ranjit Mathew + + PR java/21418 + * class.c (inherits_from_p): Try to lay out super class + if it is not already laid out. + (maybe_layout_super_class): Handle the case where SUPER_CLASS + is a NULL_TREE. + +2005-09-18 James A. Morrison + + * builtins.c (max_builtin, min_builtin, abs_builtin, + java_build_function_call_expr): Use fold_buildN. + * class.c (layout_class_method): Likewise. + * expr.c (java_truthvalue_conversion, build_java_jsr, + build_java_arrayaccess, expand_java_arrayload, expand_iinc, + build_java_binop, build_field_ref, expand_compare, + build_known_method_ref, build_invokevirtual, + process_jvm_instruction): Likewise. + * parse.y (patch_binop, patch_exit_expr): Likewise. + * typeck.c (convert_ieee_real_to_integer): Likewise. + (convert): Don't call fold after convert_ieee_real_to_integer. + +2005-09-14 Bryce McKinlay + + PR java/23891 + * parse.y (maybe_create_class_interface_decl): Set TYPE_PACKAGE for + the newly created type. Set import lists here, not in create_class. + (jdep_resolve_class): Set current_class. + (do_resolve_class): Use current_class's TYPE_PACKAGE to determine + the current package context, not ctxp->package. + (cicp_cache): Removed. + (class_in_current_package): Simplify implementation using TYPE_PACKAGE. + * jcf-parse.c (give_name_to_class): Set TYPE_PACKAGE. + * java-tree.h (TYPE_PACKAGE): New macro. + (struct lang_type): New member 'package'. + +2005-09-09 Andrew Haley + + PR libgcj/23182 + * expr.c (pop_type_0): If the expected type is object or ptr + (i.e. void*), return the type of the object we just popped from + the stack. + +2005-09-06 Andrew Pinski + + * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's + BLOCK_EXPR_BODY before returning the new BIND_EXPR. + +2005-09-06 Kazu Hirata + + * check-init.c, decl.c, expr.c, gcj.texi, java-tree.h, + jcf-parse.c, jcf.h, parse.h, parse.y, typeck.c: Fix comment + typos. Follow spelling conventions. + +2005-09-05 Ranjit Mathew + + PR java/23431 + * typeck.c (lookup_do): Look up interfaces for the original class, + not the base class. + * parse.y (java_check_regular_methods): Fix diagnostic message for + more restrictive overriding of a method from an interface. + +2005-08-16 Tom Tromey + + * class.c (make_class_data): Always emit JV_STATE_PRELOADING for + class' initial state. + +2005-08-16 Ranjit Mathew + + PR java/22113 + * lex.c (do_java_lex): Define MAX_TOKEN_LEN. Avoid overflowing + `literal_token' for large numeric input tokens. + +2005-08-16 Ranjit Mathew + + PR java/19870 + * parse.y (nested_field_access_p): Rename to nested_member_access_p + and expand to handle method accesses across nested classes. + (build_outer_method_access_method): Rename to + build_nested_method_access_method. Minor adjustments to comments. + (resolve_expression_name): Use the newly-renamed + nested_member_access_p method. + (resolve_qualified_expression_name): Likewise. + (patch_method_invocation): Also consider static methods for access + method generation. Minor adjustments to comments. + (maybe_use_access_method): Use the more general + nested_memeber_access_p to determine access across nested class + boundaries. Allow THIS_ARG to be NULL (for static methods). + +2005-08-15 Tom Tromey + + PR java/23300. + * expr.c (build_field_ref): Don't generate otable reference when + DECL_FIELD_OFFSET is 0. + * class.c (maybe_layout_super_class): Pass outer class to + do_resolve_class. + +2005-08-15 Tom Tromey + + * java-tree.h (LABEL_IN_SUBR): Removed. + (LABEL_IN_SUBR): Likewise. + (LABEL_IS_SUBR_START): Likewise. + (LABEL_SUBR_START): Likewise. + (LABEL_SUBR_CONTEXT): Likewise. + (LABEL_CHANGED): Likewise. + (LABEL_RETURN_LABEL): Likewise. + (LABEL_RETURN_TYPE_STATE): Likewise. + (LABEL_RETURN_LABELS): Likewise. + (RETURN_MAP_ADJUSTED): Likewise. + (LABEL_PENDING_CHAIN): Likewise. + +2005-08-15 Tom Tromey + + * Make-lang.in (JAVA_OBJS): Removed verify.o + (java/verify.o): Removed. + * verify.c: Removed. + * lang.c (flag_new_verifier): Removed. + (java_post_options): Updated. + * java-tree.h (flag_new_verifier): Removed. + (verify_jvm_instructions): Removed. + * expr.c (pop_type_0): Assume flag_new_verifier is true. + (build_java_check_indexed_type): Likewise. + (expand_java_arraystore): Likewise. + (expand_java_arrayload): Likewise. + (pop_arguments): Likewise. + (expand_byte_code): Likewise. + (process_jvm_instruction): Likewise. + +2005-08-10 Andrew Haley + + * java-gimplify.c (java_gimplify_modify_expr): Fix any pointer + type mismatches to make legal GIMPLE. + +2005-08-10 Robin Green + + PR java/23230: + * parse.y (maybe_use_access_method): Generalize check from + java.lang.Object to any superclass of current_class + +2005-08-08 Nathan Sidwell + + * class.c (build_class_ref): Wrap the primary class type in a + NOP_EXPR. + * parse.y (java_complete_lhs) : Extract the + primary class type from the NOP_EXPR in which it was placed. + +2005-07-28 Diego Novillo + + * expr.c (expand_load_internal): Fix missing parens in + predicate. + +2005-07-28 Andrew Haley + + * expr.c (expand_load_internal): Convert to destination type. + +2005-07-22 Manfred Hollstein + + * verify-impl.c (check_class_constant): Fix uninitialised warnings. + (check_constant): Likewise. + (check_wide_constant): Likewise. + +2005-07-20 Giovanni Bajo + + Make CONSTRUCTOR use VEC to store initializers. + * check-init.c (check_init): Update to cope with VEC in + CONSTRUCTOR_ELTS. + * class.c (make_field_value, make_method_value, get_dispatch_table, + make_class_data, emit_symbol_table, emit_catch_table, + emit_assertion_table): Use build_constructor_from_list instead of + build_constructor. + * constants.c (build_constants_constructor): Likewise. + * java-gimplify.c (java_gimplify_new_array_init): Update to cope with + VEC in CONSTRUCTOR_ELTS. + * java-tree.h (START_RECORD_CONSTRUCTOR, PUSH_SUPER_VALUE, + PUSH_FIELD_VALUE, FINISH_RECORD_CONSTRUCTOR): Create a VEC instead + of a TREE_LIST. + * jcf-write.c (generate_bytecode_insns): Update to cope with VEC in + CONSTRUCTOR_ELTS. + * parse.y (build_new_array_init): Use build_constructor_from_list + instead of build_constructor. + (patch_new_array_init): Update to cope with VEC in + CONSTRUCTOR_ELTS. + (array_constructor_check_entry): Likewise. + +2005-07-12 Tom Tromey + + * jvspec.c (lang_specific_driver): Put filelist_filename first on + command line. + +2005-07-12 Tom Tromey + + PR java/19674: + * parse-scan.y (interface_member_declaration): Added + empty_statement. + +2005-07-08 Daniel Berlin + + * java-tree.h (LABEL_RETURN_LABELS): Use decl_non_common. + (LABEL_PENDING_CHAIN): Ditto. + (LABEL_PC): Ditto. + (DECL_BIT_INDEX): Ditto. + +2005-07-07 Bryce McKinlay + + PR java/18119 + * parse.y (inner_class_accessible): New function. Logic moved from + check_inner_class_access. + (check_inner_class_access): Use inner_class_accessible. + (resolve_inner_class): Simplify arguments. Create circularity hash + here. Keep looking for classes if we found one that was inaccessible. + Return the inaccessible class only if there is no other match. + (do_resolve_class): Update for new resolve_inner_class arguments. + Don't create circularity_hash here. + +2005-07-07 Bryce McKinlay + + PR java/21045 + * parse.y (add_exception_to_throws): New function. + (purge_unchecked_exceptions): Removed. + (get_constructor_super): Renamed from verify_constructor_super. Now + returns the super constructor after verification. + (java_complete_expand_method): Don't use purge_unchecked_exceptions + or save/restore the exception list. + (check_thrown_exceptions): Add uncaught exceptions in anonymous + class initializers and constructors to the throws clause of the method. + +2005-07-05 Bryce McKinlay + + PR java/19674 + * parse.y (interface_member_declaration): Allow empty statements in + interface declarations. + +2005-07-05 Paolo Bonzini + + * Makefile.in (parse.o): Adjust dependencies. + * parse.y: Include tree-dump.h. + +2005-07-02 Joseph S. Myers + + * class.c, decl.c, expr.c: Use '+' flag instead of %J. Use 'q' + flag for quoting. + +2005-07-01 Andrew Pinski + + * parse.y (issue_warning_error_from_context): Call + pp_output_formatted_text to be able to get the buffer. + +2005-06-30 Andrew Pinski + + * parse.y (issue_warning_error_from_context): Update for the + renaming of pp_format_text to pp_format. + +2005-06-28 Paul Brook + + * decl.c (java_init_decl_processing): Call + default_init_unwind_resume_libfunc. + +2005-06-27 Tom Tromey + + PR java/21540, PR java/13788: + * parse.y (java_complete_lhs) : Use + fold_constant_for_init. + (patch_binop): Added 'folding' argument. Updated all callers. + (patch_unaryop) : New case. + (fold_constant_for_init) : Likewise. + (fold_constant_for_init) : Fix sense of test. + +2005-06-25 Jan Hubicka + + * builtins.c (define_builtin): Accept new flags parameter. + (initialize_builtins): Mark the builtins const and nothrow accordingly. + +2005-06-25 Kelley Cook + + * all files: Update FSF address in copyright headers. + +2005-06-24 Tom Tromey + + * verify-impl.c (verify_instructions_0): Correctly handle + situation where PC falls off end. + +2005-06-23 Bryce McKinlay + + PR java/20697 + * parse.y (find_most_specific_methods_list): Remove special case for + inner classes. + +2005-06-15 Tom Tromey + + PR libgcj/21906: + * class.c (make_method_value): Use soft_abstractmethod_node for + abstract method. + * java-tree.h (soft_abstractmethod_node): New define. + (JTI_SOFT_ABSTRACTMETHOD_NODE): New enum constant. + * decl.c (java_init_decl_processing): Initialize + soft_abstractmethod_node. + +2005-06-13 Geoffrey Keating + + * Make-lang.in (rule for installing gcj.1): Depends on installdirs. + +2005-06-13 Per Bothner + + * expr.c (int highest_label_pc_this_method, + start_label_pc_this_method): New globals. + (lookup_label): Add start_label_pc_this_method to pc for label, and + update highest_label_pc_this_method. This prevents conflicts between + labels from different methods. + * java-tree.h: Declare new globals. + * jcf-parse.c (parse_class_file): If needed bump + start_label_pc_this_method and reset highest_label_pc_this_method. + +2005-06-13 Tom Tromey + + PR java/21844: + * parse.y (nested_field_access_p): Handle case where outer field + is inherited by enclosing class. + +2005-06-12 Per Bothner + + * class.c (inherits_from_p): Do load_class if needed. + +2005-06-09 Kaveh R. Ghazi + + * gjavah.c (error): Add ATTRIBUTE_PRINTF_1. + * java-tree.h (parse_error_context): Move... + * parse.h (parse_error_context): ... here, add ATTRIBUTE_GCC_DIAG. + * parse.y (parse_warning_context): Add ATTRIBUTE_GCC_DIAG. + * verify-impl.c (debug_print): Add ATTRIBUTE_PRINTF_1. + +2005-06-08 Roger Sayle + + * typeck.c (convert): Only clear TREE_OVERFLOW on INTEGER_CST nodes. + +2005-06-06 Jakub Jelinek + + * jv-scan.c (fatal_error, warning, warning0): Use gmsgid instead of + msgid for argument name. + * gjavah.c (error): Likewise. + * java-tree.h (parse_error_context): Likewise. + * parse.y (parse_error_context, parse_warning_context, + issue_warning_error_from_context): Likewise. + +2005-06-01 Tom Tromey + + PR java/21722: + * class.c (build_static_field_ref): Don't fold constant fields if + current class is from a .class file and we're using indirect + dispatch. + +2005-05-31 Kaveh R. Ghazi + + * java/verify-glue.c: Don't include errors.h and include toplev.h. + * java/Make-lang.in: Updates dependencies. + +2005-05-26 Ranjit Mathew + + PR java/19870. + * java-tree.h (OUTER_FIELD_ACCESS_IDENTIFIER_P): Rename to + NESTED_FIELD_ACCESS_IDENTIFIER_P. + (FIELD_INNER_ACCESS): Rename to FIELD_NESTED_ACCESS. + (FIELD_INNER_ACCESS_P): Rename to FIELD_NESTED_ACCESS_P. + * jcf-write.c (generate_classfile): Use + NESTED_FIELD_ACCESS_IDENTIFIER_P instead of + OUTER_FIELD_ACCESS_IDENTIFIER_P. + * parse.y (build_outer_field_access): Rename to + build_nested_field_access. Support static fields and outer-to-inner + class accesses. + (outer_field_access_p): Rename to nested_field_access_p. Support + static fields and generalise to outer-to-inner class and sibling + inner class accesses. + (outer_field_expanded_access_p): Rename to + nested_field_expanded_access_p and support static fields. + (outer_field_access_fix): Rename to nested_field_access_fix and + support static fields. + (build_outer_field_access_expr): Rename to + build_nested_field_access_expr and support static fields. + (build_outer_field_access_methods): Rename to + build_nested_field_access_methods and support static fields. For + static fields, generate accessors without class instance parameters. + (build_outer_field_access_method): Rename to + build_nested_field_access_method and support static fields. + (build_outer_method_access_method): Use + NESTED_FIELD_ACCESS_IDENTIFIER_P instead of + OUTER_FIELD_ACCESS_IDENTIFIER_P. + (resolve_expression_name): Consider static field accesses across + nested classes. + (resolve_qualified_expression_name): Likewise. + (java_complete_lhs): Use nested_field_access_fix instead of + outer_field_access_fix. + (patch_unary_op): Rename outer_field_flag to nested_field_flag. + Use nested_field_expanded_access_p instead of + outer_field_expanded_access_p. Use nested_field_access_fix instead + of outer_field_access_fix. + (check_thrown_exceptions): Use NESTED_FIELD_ACCESS_IDENTIFIER_P + instead of OUTER_FIELD_ACCESS_IDENTIFIER_P. + +2005-05-26 Bryce McKinlay + + * decl.c (GCJ_BINARYCOMPAT_ADDITION, + GCJ_BOOTSTRAP_LOADER_ADDITION): Removed. + (FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER, + MINOR_BINARYCOMPAT_ABI_VERSION): New. + (GCJ_CURRENT_BC_ABI_VERSION): Use new method to calculate version ID. + (parse_version): Calculate version ID using new method. Use bit-flags + for flag_indirect_dispatch and flag_bootstrap_classes. + +2005-05-25 Richard Henderson + + PR libgcj/21692 + * Make-lang.in (java/mangle.o): Depend on LANGHOOKS_DEF_H. + * class.c (build_class_ref): Set DECL_CLASS_FIELD_P and + DECL_CONTEXT; avoid pushdecl_top_level. + (build_dtable_decl): Set DECL_VTABLE_P and DECL_CONTEXT. + (layout_class): Don't SET_DECL_ASSEMBLER_NAME. + (layout_class_method): Likewise. + * decl.c (java_mark_cni_decl_local): New. + (java_mark_class_local): Use it. + * java-tree.h (DECL_LOCAL_CNI_METHOD_P): New. + (DECL_CLASS_FIELD_P, DECL_VTABLE_P): New. + (struct lang_decl_func): Add local_cni; + (struct lang_decl_var): Add class_field, vtable. + (java_mangle_decl): Declare. + * lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New. + * mangle.c: Remove dup obstack.h; include langhooks-def.h. + (mangle_obstack_1): New. + (java_mangle_decl): Remove obstack argument. Call mangle_class_field, + mangle_vtable, and mangle_local_cni_method_decl. Fall back to + lhd_set_decl_assembler_name for things that don't need mangling. + (mangle_class_field): Rename from java_mangle_class_field, make + static, don't call init_mangling or finish_mangling. + (mangle_vtable): Similarly. + (mangle_local_cni_method_decl): New. + (init_mangling): Remove obstack argument. Use &mangle_obstack_1, + gcc_assert, and MANGLE_RAW_STRING. + (finish_mangling): Use gcc_assert, remove if 0 debugging code. + +2005-05-25 DJ Delorie + + * class.c (set_constant_value): Move warning control from if() to + warning(OPT_*). + +2005-05-24 Richard Henderson + + * builtins.c (define_builtin): Don't call make_decl_rtl. + * constants.c (build_constant_data_ref): Likewise. + * class.c (build_utf8_ref): Likewise. + (build_fieldref_cache_entry, build_static_field_ref): Likewise. + (get_dispatch_table, layout_class_method): Likewise. + (build_class_ref): Likewise. Don't set DECL_SIZE or DECL_SIZE_UNIT + by hand. + (make_local_function_alias): Don't SET_DECL_ASSEMBLER_NAME. + (make_method_value): Use METHOD_ABSTRACT instead of DECL_RTL_SET_P + to determine if we need a non-zero address. + * decl.c (builtin_function): Don't call make_decl_rtl. + (give_name_to_locals): Don't SET_DECL_ASSEMBLER_NAME. + * expr.c (build_known_method_ref): Don't call make_decl_rtl. + * resource.c (compile_resource_data): Likewise. + * parse.y (resolve_field_access): Re-word comment to avoid + building DECL_RTL. + +2005-05-24 Richard Henderson + + * class.c (registered_class): Take it out of class_roots; turn into + a vec of trees. + (register_class): Make static. Don't duplicate decl node. Use + VEC_safe_push. + (emit_register_classes): Use VEC_iterate. Use output_constant + instead of assemble_integer. Don't call mark_decl_referenced + directly. + * java-tree.h (register_class): Remove decl. + +2005-05-19 Paolo Bonzini + + PR java/17845 + + * parse.y (register_package, package_list): Remove. + (package_declaration): Do not call register_package. + (do_resolve_class): Do not use package_list. + +2005-05-15 Gerald Pfeifer + + * jcf-write.c (generate_bytecode_insns) : Remove + unused variable. + +2005-05-15 Tom Tromey + + PR java/21519: + * jcf-write.c (generate_bytecode_insns) : Don't call + NOTE_PUSH. + +2005-05-12 Aaron Luchko + + * gcj.texi: Add '-verify', '-noverify', and '-verifyremote'. + +2005-05-11 Tom Tromey + + * gcj.texi (Code Generation): Document -fbootstrap-classes. + * decl.c (GCJ_BOOTSTRAP_LOADER_ADDITION): New macro. + (parse_version): Use it. + * lang.opt (-fbootstrap-classes): New option. + +2005-05-10 Paolo Bonzini + + PR java/21436 + * class.c (maybe_layout_super_class): Look for imports in this_class. + * parse.h (ctxp_for_generation_last): New. + (do_resolve_class): Add a parameter. + * parse.y (ctxp_for_generation_last): New. + (java_pop_parser_context): Add at end of list. + (find_in_imports, find_in_imports_on_demand): Look in ctxp + if the TYPE_IMPORT_LIST or respectively the TYPE_IMPORT_DEMAND_LIST of + the given type are NULL. + (do_resolve_class): Look into the imports of the new second parameter. + Adjust recursive calls. + (resolve_class, resolve_inner_class, find_as_inner_class): Adjust + calls to do_resolve_class. + (create_class): Set the TYPE_IMPORT_LIST and TYPE_IMPORT_DEMAND_LIST. + (java_complete_class): Do not do that here. + +2005-05-03 Thomas Fitzsimmons + + PR java/20309 + * Make-lang.in (java): Add gjnih. + (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise. + (GJNIH_OBJS): New variable. + (gjnih$(exeext)): New target. + (JAVA_MANFILES): Add gjnih.1. + (java.uninstall): Add gjnih.1. + (java.mostlyclean): Add gjnih. + (java.maintainer-clean): Add gjnih.1. + (java/gjavah-jni.o): New target. + (.INTERMEDIATE): Add gjnih.pod. + (gjnih.pod): New target. + * config-lang.in (stagestuff): Add gjnih. + * gcj.texi (Top): Add gjnih node. + (Invoking gcjh): Add descriptions of -force, -old, -trace, -J and + -bootclasspath options. + (Invoking gjnih): New node. + * gjavah.c Initialize flag_jni to 1 if JNI_DEFAULT is defined. + (TOOLNAME): New macro. + (error): Replace hard-coded gcjh with TOOLNAME. + (process_file): Likewise. + (usage): Likewise. + (version): Likewise. + (help): Likewise. Add help output for -force, -old, -trace and -J + options. + (OPT_FORCE, OPT_OLD, OPT_TRACE): New macros. + (options): Add force, old, trace and J fields. + (main): Handle -force, -old, -trace and -J options. + +2005-05-03 Tom Tromey + + PR java/21245: + * gjavah.c (main): Unlink output file on error. + +2005-05-03 Kazu Hirata + + * constants.c, jvgenmain.c, lang.opt, resource.c: Update + copyright. + +2005-04-29 Tom Tromey + + * expr.c (build_jni_stub): Updated for change to build_block. + +2005-04-29 Andrew Pinski + + * expr.c (force_evaluation_order): Declare 'saved' earlier. + +2005-04-28 Andrew Haley + + PR java/19285 + * java-tree.h (soft_resolvepoolentry_node): New. + (alloc_constant_fieldref): Declare. + * expr.c (expand_java_field_op): Don't call class_init for + accesses to static fields with indirect dispatch. + * builtins.c (initialize_builtins): Add "__builtin_expect". + * decl.c (soft_resolvepoolentry_node): New variable. + (java_init_decl_processing): Create a decl for + "_Jv_ResolvePoolEntry". + * class.c (build_fieldref_cache_entry): New function. + (build_static_field_ref): Rewrite for indirect dispatch. + * constants.c (find_name_and_type_constant_tree): New function. + (alloc_constant_fieldref): Likewise. + (build_constants_constructor): Handle CONSTANT_Fieldref and + CONSTANT_NameAndType. + + PR java/21115 + * expr.c (force_evaluation_order): Convert outgoing args smaller + than integer. + +2005-04-27 Bryce McKinlay + + * gcj.texi (libgcj Runtime Properties): Remove obsolete + gnu.gcj.runtime.NameFinder.* system properties. Update documentation + for gnu.gcj.runtime.NameFinder.use_addr2line and gnu.gcj.progname. + +2005-04-25 Kaveh R. Ghazi + + * gjavah.c, jcf-dump.c, jv-scan.c, jvgenmain.c: Replace calls + to `unlock_stream' with `unlock_std_streams'. + +2005-04-25 Jakub Jelinek + + * Make-lang.in (java/decl.o, java/resource.o): Depend on $(EXPR_H) + instead of just expr.h. + +2005-04-24 Kaveh R. Ghazi + + * gjavah.c (main): Unlock the stdio streams. + * jcf-dump.c (main): Likewise. + * jv-scan.c (main): Likewise. + * jvgenmain.c (main): Likewise. + +2005-04-23 DJ Delorie + + * class.c, decl.c, expr.c, jcf-io.c, jcf-parse.c, jv-scan.c, + parse.y: Adjust warning() callers. + +2005-04-21 Bryce McKinlay + + * gcj.texi (Object fields): Change "Integer" to "Int" in example + contructor. + +2005-04-20 Bryce McKinlay + + * gcj.texi: Fix typos and bogus example. + +2005-04-19 Kazu Hirata + + * except.c: Fix a comment typo. + +2005-04-19 Julian Brown + + * decl.c (finish_method): Revert patch from 2005-04-13 for breaking + indirect dispatch with PIC. + +2005-04-18 Andrew Haley + + * java-except.h (struct eh_range.handler): Remove unused field. + (handle_nested_ranges): Remove function declaration. + (sanity_check_exception_range): Add function declaration. + * verify.c (verify_jvm_instructions): Remove call to + handle_nested_ranges. + * verify-glue.c (verify_jvm_instructions_new): Call + sanity_check_exception_range. + * except.c (link_handler, eh_range_freelist, link_handler, + handle_nested_ranges): Remove. + (add_handler): Rewrite. + (sanity_check_exception_range): New function. + (print_ranges): New function. + +2005-04-13 Julian Brown + + * decl.c (finish_method): Give methods once-only linkage. + +2005-04-11 Richard Sandiford + + * lang.opt: Refer to the GCC internals documentation instead of c.opt. + +2005-04-07 Kaveh R. Ghazi + + * java-tree.h: Don't use PARAMS(). + +2005-04-07 Per Bothner + + * class.c (push_class): By default, suppress debug output. + (finish_class): Enable debug output for classes we're emitting. + +2005-04-07 Andrew Haley + + * gcj.texi: Correct gcj-dbtool instructions. + +2005-04-04 Kazu Hirata + + * gcj.texi: Fix a typo. + * lang.c: Fix a comment typo. + +2005-04-01 Thomas Fitzsimmons + + * gcj.texi (Invoking gij): Add descriptions of new -X options. + Mention recognized-and-ignored compatibility options. + (Memory allocation): Add descriptions of JvMalloc, JvRealloc and + JvFree. + (About CNI): Add Memory allocation section. + +2005-04-01 Tom Tromey + + * decl.c (java_init_decl_processing): Fix types of + _Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject, + _Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray, + _Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ. + +2005-03-31 Jan Hubicka + + * Make-lang.in (class.o, decl.o): Depend on cgraph.h. + * class.c: Include cgraph.h + (make_local_functoin_alias): Mark aslias as needed. + * resource.c: Include cgraph.h + (compile_resource_data): Go via cgraph interface. + +2005-03-30 Ian Lance Taylor + + * parse.y (maybe_yank_clinit): Don't crash if bbody is NULL. + +2005-03-30 Tom Tromey + + * jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where + inner_class_info_index==0 or outer_class_info_index==0. + +2005-03-29 Tom Tromey + + * gcj.texi (libgcj Runtime Properties): Document + gnu.gcj.runtime.endorsed.dirs. + +2005-03-24 Anthony Green + + * gcj.texi (Invoking gcj-dbtool): Document new LIBDIR option to + 'gcj-dbtool -p'. + +2005-03-23 Tom Tromey + + * decl.c (GCJ_CURRENT_BC_ABI_VERSION): New define. + (parse_version): Use it. + +2005-03-23 Joseph S. Myers + + * lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove. + +2005-03-18 Andrew Haley + + PR java/20522 + * decl.c (update_aliases): Don't update variables that are about + to die. + (maybe_poplevels): Add comment. + +2005-03-17 Bryce McKinlay + + PR java/20502 + * jcf-parse.c (duplicate_class_warning): New function. + (java_parse_file): Call duplicate_class_warning if + CLASS_FROM_CURRENTLY_COMPILED_P is already set. + (parse_zip_file_entries): Likewise. Also set + CLASS_FROM_CURRENTLY_COMPILED_P. + +2005-03-16 Andrew Haley + + * expr.c (expand_java_arrayload): Don't generate a + NullPointerException based on the type of the node. + (build_java_array_length_access): Likewise. + +2005-03-15 Zack Weinberg + + * Make-lang.in (TEXI_JAVA_FILES): Add gcc-vers.texi. + +2005-03-11 Tom Tromey + + * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. + (libgcj Runtime Properties): Document the default .db. + +2005-03-10 Ranjit Mathew + + PR java/20312 + * parse.y (checks_throws_clauses): Check exceptions list even when + the base class does not come from a source file being compiled. + (java_complete_lhs): Remove unused variable 'wfl'. + +2005-03-09 Ranjit Mathew + + PR java/20338 + * decl.c (finish_method): Emit _Jv_InitClass for private static + methods inside inner classes as well. + +2005-03-08 Julian Brown + * Revert patch from 2005-03-08 for causing bootstrap failure on + ppc-darwin. + +2005-03-08 Julian Brown + + * decl.c (finish_method): Give methods once-only linkage. + +2005-03-07 Ranjit Mathew + + * lang.c (flag_new_verifier): Enable by default, regardless of ABI. + +2005-03-07 Bryce McKinlay + + * verify-glue.c (vfy_is_assignable_from): Perform static check using + can_widen_reference_to if the C++ ABI is in use. + (vfy_get_interface_count, vfy_get_interface): Remove unused functions. + * verify-impl.c (debug_print, make_utf8_const, init_type, copy_type, + type_isresolved, init_state, set_pc, state_get_pc, + _Jv_BytecodeVerifier): Clean up unused and disabled functions. + (verify_fail): Report the current PC from the verifier context. + (free_state): Remove #if 0 block to enable this function. + (free_verifier_context): Call free_state on state_list iterator + values before freeing them. + * expr.c (pop_type_0): Pop correct type for error message when stack + contains a multi-word type. + +2005-03-07 Ranjit Mathew + + * expr.c (build_java_array_length_access): Remove !flag_new_verifier + for known NULL array length access. + +2005-03-07 Tom Tromey + + * gcj.texi (Invoking gcj-dbtool): Document '-f'. + +2005-03-06 Kazu Hirata + + * jcf-dump.c, jcf-io.c, jcf-reader.c, lang.c, parse.h, + typeck.c: Update copyright. + +2005-03-06 Ranjit Mathew + + Remove xref code. + * xref.c, xref.h: Remove file. + * Make-lang.in (java/xref.o): Remove. + * java-tree.h (flag_emit_xref, do_not_fold): Remove declaration. + * lang.c (flag_emit_xref): Remove definition. + * parse.h (DECL_END_SOURCE_LINE, DECL_INHERITED_SOURCE_LINE): Remove. + * typeck.c (convert): Remove use of do_not_fold. + * parse.y (do_not_fold): Remove definition. + (parser grammar): Remove xref code. + (maybe_create_class_interface_decl, create_class): Likewise. + (register_fields, method_header, finish_method_declaration): Likewise. + (declare_local_variables, source_end_java_method): Likewise. + (java_complete_expand_classes): Do not set do_not_fold. + (java_complete_expand_method): Remove xref code. + (java_expand_classes, resolve_field_access, patch_invoke): Likewise. + (java_complete_tree, java_complete_lhs, patch_assignment): Likewise. + (patch_binop, build_string_concatenation, patch_array_ref): Likewise. + (patch_synchronized_statement, patch_throw_statement): Likewise. + (maybe_build_class_init_for_field): Likewise. + +2005-03-05 Kazu Hirata + + * expr.c (build_expr_wfl, expr_add_location): Use TYPE_P + instead of IS_NON_TYPE_CODE_CLASS. + +2005-03-04 Andrew Haley + + PR java/18362 + * class.c (set_method_index): Don't set method_index if it is + NULL_TREE. + (layout_class_method): Don't complain about "non-static method foo + overrides static method" in the case of indirect dispatch. + +2005-03-02 Kaveh R. Ghazi + + * jcf-io.c (caching_stat): Use __extension__ to avoid pedantic + warning. + * Make-lang.in: Don't elide warnings in jcf-io.c. + +2005-03-01 Per Bothner + + PR java/8608 + * check-init.c (wfl): Remove static. + (final_assign_error, check_init): Replace calls to parse_error_context + by plain error. + (check_init): Save, set, and restore input_location for each exp. + +2005-03-01 Per Bothner + + * jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) + if HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE is defined. + * jcf-dump.c (HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE): Print contents. + +2005-03-01 Per Bothner + + * java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro. + +2005-02-23 Thomas Fitzsimmons + + PR libgcj/16923 + * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and + JvVMOption. + +2005-02-22 Tom Tromey + + PR java/20056: + * verify-impl.c (EITHER): New define. + (types_compatible): Handle it. + (check_field_constant): Use it. + +2005-02-18 Tom Tromey + + PR java/20056: + * verify-impl.c (types_equal): Fixed test. + + PR java/20056: + * verify-glue.c (vfy_class_has_field): New function. + * verify.h (vfy_class_has_field): Declare. + * verify-impl.c (check_field_constant): Added 'putfield' + argument. + (verify_instructions_0): Updated. + (types_equal): New function. + +2005-02-14 Tom Tromey + + PR java/19921: + * jcf-write.c (generate_bytecode_insns) : Note the + stack effect of multianewarray. + +2005-02-14 Andrew Haley + + PR java/19907 + * expr.c (expand_byte_code): Call promote_arguments(). + (promote_arguments): New function. + * decl.c (check_local_unnamed_variable): Remove special case for + new verifier. + (find_local_variable): Promote all boolean types to int + when searching for local variable decls. + +2005-02-12 Kazu Hirata + + * builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c, + parse-scan.y: Update copyright. + +2005-02-11 Per Bothner + + PR java/15543 + * parse-scan.y (input_location): Remove variable. + (main_input_filename): New - replaces input_filename, which isn't + settable if USE_MAPPED_LOCATION. + * lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE, + so we don't reference input_location or wfl_operator in that case. + * jv-scan.c (expand_location): Remove - no longer used. + (main): Set main_input_filename rather than input_filename. + +2005-02-09 Richard Henderson + + * builtins.c (initialize_builtins): Call build_common_builtin_nodes. + * decl.c (java_init_decl_processing): Initialize const_ptr_type_node. + +2005-02-08 Marcin Dalecki + + * expr.c (add_type_assertion): Use the proper enumeration type, + since this is what htab_find_slot() is expecting. + +2005-02-06 Joseph S. Myers + + * gcj.texi: Update copyright dates. + +2005-02-02 Tom Tromey + + * gcj.texi (libgcj Runtime Properties): Default library_control + to 'cache'. + +2005-02-02 Ranjit Mathew + + PR java/15543 + * parse-scan.y (formal_parameter): Use $2 (type) instead of $$ + (modifiers) when square brackets are present in a declaration for + a final paramter. + * jv-scan.c (main): Set input_filename and input_line. + +2005-02-01 Tom Tromey + + PR java/19742: + * gjavah.c (get_field_name): Don't override name for JNI header. + +2005-02-01 Roger Sayle + + * jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR + of unsigned types using iushr and lushr JVM bytecodes. + +2005-02-01 Ranjit Mathew + + PR java/19738 + * gjavah.c (jni_print_float): Do not emit floating-point + initialiser for a static final field. + (jni_print_double): Likewise. + +2005-02-01 Mark Mitchell + + Revert: + 2005-01-31 Mark Mitchell + * gjavah.c (print_field_info): Mark static data members of + floating-point type with "__extension__". + +2005-01-31 Mark Mitchell + + * gjavah.c (print_field_info): Mark static data members of + floating-point type with "__extension__". + +2005-02-01 Ranjit Mathew + + PR java/9157 + * parse.y (build_string_concatenation): Remove redundant if. + (patch_conditional_expr): Attempt to patch_string() the condition + of a ?: as well, in addition to its other operands. + +2005-01-25 Tom Tromey + + * Make-lang.in (java/java-tree-inline.o): Removed. + +2005-01-25 Ranjit Mathew + + PR java/19070 + * parse.y (patch_binop): Allow comparisons against NULL only + if the other operand is of a reference type. + +2005-01-24 Tom Tromey + + * java-tree.h (gcj_abi_version): Declare. + * class.c (make_class_data): Push gcj_abi_version into "next" + field. Renamed field. + * decl.c (gcj_abi_version): New global. + (parse_version): New function. + (java_init_decl_processing): Call it. Renamed 'next' field. + Include version.h. + (GCJ_BINARYCOMPAT_ADDITION): New define. + +2005-01-24 Roger Sayle + + PR java/19295 + * jcf-write.c (generate_bytecode_insns): Conversions between + integer types of the same precision shouldn't generate widening + or narrowing conversion bytecodes. + +2005-01-22 Kazu Hirata + + * java-except.h, java-tree.h: Remove unused prototypes. + +2005-01-20 Andrew Pinski + + PR java/18091: + * jcf-write.c (perform_relocations): Don't call memcpy if source + and destination are the same. + +2005-01-17 Tom Tromey + + * verify-impl.c (get_short): Sign extend. + (get_int): Likewise. + +2005-01-12 Ranjit Mathew + + * expr.c (build_jni_stub): Replace mistaken use of TYPE_SIZE_UNIT + with TYPE_SIZE. + +2005-01-10 Ranjit Mathew + + * verify.c: Revert to the version before the BC-ABI merge. + +2005-01-10 Ranjit Mathew + + PR java/19277 + * check-init.c (check_init): Take care of references that do not + have an explicit final variable declaration (e.g. array length + access) for pre/post in/de-crement operators. + +2005-01-08 Mark Wielaard + + * parse.y (process_imports): Allocate (and free) original_name only + when not already defined. + * jcf-parse.c (read_class): Free results of find_class() and + lrealpath(). + (java_parse_file): Keep pointer to head of file_list and free when + done. Free result of lrealpath(). + +2005-01-05 Tom Tromey + + * gcj.texi (Standard Properties): java.ext.dirs is now used. + +2004-12-20 Andrew Haley + + * typeck.c: Use fold_convert for ints and booleans. + +2004-12-17 Andrew Haley + + PR java/18931 + * typeck.c (convert): Use a CONVERT_EXPR when converting to + BOOLEAN_TYPE or CHAR_TYPE. + (convert_to_boolean, convert_to_char) : Remove. + * convert.h (convert_to_boolean, convert_to_char) : Remove. + * expr.c (expand_load_internal): Do type conversion if type is not + as required. + +2004-12-13 Danny Smith + + PR target/18459 + * class.c (emit_register_classes): Use TARGET_USE_JCR_SECTION. + Update comment. + +2004-12-07 Andrew Haley + + PR java/18811: + * jcf-parse.c (load_class): Remove sanity test for missing inner + class file. + +2004-12-06 Tom Tromey + + * Make-lang.in (JAVA_MANFILES): Added gcj-dbtool. + (java.uninstall): Likewise. + (java.maintainer-clean): Likewise. + (.INTERMEDIATE): Likewise. + (java.install-man): Likewise. + (gcj-dbtool.pod): New target. + * gcj.texi (Code Generation): Document -findirect-dispatch. + (libgcj Runtime Properties): Document + gnu.gcj.precompiled.db.path. + (Top): Link to "Invoking gcj-dbtool". + +2004-12-06 Tom Tromey + + PR java/14853: + * java-tree.h (extract_field_decl): Declare. + * parse.y (extract_field_decl): Renamed from + strip_out_static_field_access_decl. No longer static. + * check-init.c (get_variable_decl): Unwrap COMPOUND_EXPRs. + +2004-12-03 Tom Tromey + + * lang.c (flag_new_verifier): Define. + (java_post_options): Set flag_new_verifier if indirect dispatch + is being used. + * lang.opt (fnew-verifier): Removed. + +2004-12-03 Tom Tromey + + PR bootstrap/14614: + * Make-lang.in (java.install-common): Only install transformed + gcjh if gcj-cross exists. + +2004-12-03 Andrew Haley + + PR java/18812 + * except.c (link_handler): Patch 'outer' field of siblings of the + range we're demoting. + +2004-12-03 Andrew Haley + + PR java/18697 + * class.c (layout_class_method): Don't fail to override a method + simply because it has DECL_ARTIFICIAL set. + +2004-12-02 Tom Tromey + + PR java/16675: + * parse.y (craft_constructor): Special case null_pointer_node. + +2004-12-02 Tom Tromey + + PR java/18741: + * java-gimplify.c (java_gimplify_expr): Don't call + SET_EXPR_LOCATION unless wrapped tree is an expression. + +2004-11-27 Per Bothner + + * jcf-parse.c (set_source_filename): Improvement to Andrew's fix: + Fix fencepost error in 'i', which got executed one too many times. + Also, fold memcpy into explicit loop, as originally intended. + Also, free temporary 'buf' which otherwise leaks. + +2004-11-27 Per Bothner + + * expr.c (build_expr_wfl): Only declare last_file and last_filenode + local static variables if not USE_MAPPED_LOCATION. + +2004-11-27 Kazu Hirata + + * class.c, decl.c, expr.c: Fix comment typos. + +2004-11-26 Andrew Pinski + + PR java/18305 + * decl.c (end_java_method): Call + attach_init_test_initialization_flags on all the init_decls. + * parse.y (attach_init_test_initialization_flags): Move to ... + * expr.c (attach_init_test_initialization_flags): here and + support BIND_EXPR also. + * java-tree.h (attach_init_test_initialization_flags): Prototype. + * jcf-parse.c (parse_class_file): Don't disable class init + optimization. + +2004-11-25 Joseph S. Myers + + * gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote + in diagnostics. + +2004-11-24 Richard Henderson + + * verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type, + vfy_string_type, vfy_throwable_type): Use ANSI declaration form. + +2004-11-24 Tom Tromey + + * verify.c (defer_merging): Don't use C++-style comment. + * verify.h (java_opcode): Added java_opcode_end. + * class.c (build_class_ref): Remove C++ comment and old FIXME. + + * verify-impl.c (vfy_push_type): Removed bogus "return". + (initialize_stack): Use vfy_alloc and vfy_free. + (verify_instructions_0): Likewise. + + * Merged gcj-abi-2-dev-branch to trunk. + +2004-11-24 Andrew Haley + + * jcf-parse.c (parse_class_file): Set file_start_location. + +2004-11-10 Tom Tromey + + * class.c (make_field_value): Don't call build_static_field_ref. + (build_static_field_ref): Don't emit direct references when using + indirect dispatch. + + * gcj.texi (Invoking gij): Document -verbose. Put -verbose and + -verbose:class into man page synopsis. + +2004-11-09 Tom Tromey + + * expr.c (build_java_arraystore_check): Still generate check if + element type is itself an array. + +2004-11-08 Tom Tromey + + * java-tree.h (soft_check_assignment_node): Removed. + (enum java_tree_index): Removed JTI_SOFT_CHECK_ASSIGNMENT_NODE. + * decl.c (java_init_decl_processing): Don't initialize + soft_check_assignment_node. + +2004-11-05 Tom Tromey + + * class.c (layout_class_methods): Don't add Miranda methods when + using indirect dispatch. + +2004-11-05 Bryce McKinlay + + * class.c (make_class_data): Call emit_assertion_table to set the + 'assertion_table' field. + (build_signature_for_libgcj): Move here from expr.c. + (add_assertion_table_entry): New function. Callback for assertion + hashtable traversal. + (emit_assertion_table): New. Take class argument, and generate + assertion table DECL based on the TYPE_ASSERTIONS hashtable. + * decl.c (init_decl_processing): Define assertion_entry_type record. + Push 'assertion_table' class field instead of 'verify'. + * expr.c (type_assertion_eq): Compare 'assertion_code' field. + (type_assertion_hash): Include 'assertion_code' in hash. + (add_type_assertion): Rewritten. Take class and assertion_code + arguments. Add assertions to the TYPE_ASSERTIONS hashtable. + (can_widen_reference_to): Use new add_type_assertion() arguments. + * java-tree.h (java_tree_index): Add JTI_ASSERTION_ENTRY_TYPE, + JTI_ASSERTION_TABLE_TYPE. Remove JTI_VERIFY_IDENTIFIER_NODE. + (verify_identifier_node): Removed. + (assertion_entry_type, assertion_table_type): New. + (ASSERTION_TYPES_COMPATIBLE, ASSERTION_IS_INSTANTIABLE): New. Type + assertion code definitions. + (struct type_assertion): Add assertion_code. Rename 'source_type' and + 'target_type' to 'op1' and 'op2'. + (add_type_assertion): Declare. + (lang_printable_name_wls): Remove unused definition. + * verify-glue.c: (vfy_is_assignable_from): New. Call add_type_assertion + to emit runtime assertion. + (vfy_note_stack_type): Clean up non-C90 declarations. + (vfy_note_local_type): Likewise. + * verify.h (vfy_is_assignable_from): Declare. + * verify-impl.c (is_assignable_from_slow): Remove unused function. + (ref_compatible): Rename arguments. Call vfy_is_assignable_from() + instead of is_assignable_from_slow(). + (types_compatible): Reinstate ref_compatible() call. + +2004-11-04 Tom Tromey + + * class.c (build_static_field_ref): Reverted previous patch. + + * class.c (build_static_field_ref): Don't emit direct references + when using indirect dispatch. + +2004-11-03 Tom Tromey + + * expr.c (expand_java_arrayload): Set lhs_type_node. + (expand_java_arraystore): Set rhs_type_node. + +2004-11-02 Tom Tromey + + * jcf-parse.c (compute_class_name): Use filename length from zip + directory, not strlen. + + * expr.c (expand_invoke): Mark new interface methods as abstract. + +2004-11-01 Tom Tromey + + * verify-impl.c (push_jump): Removed check for uninitialized + objects. + (push_exception_jump): Likewise. + (handle_ret_insn): Likewise. + (handle_jsr_insn): Likewise. + (state_check_no_uninitialized_objects): Removed. + + * decl.c (check_local_unnamed_variable): Recognize + promoted-to-int parameters when using the new verifier. + * expr.c (expand_java_arraystore): Explicitly request array type + when using new verifier. + (expand_java_arrayload): Likewise. + (invoke_build_dtable): Don't pass object_type_node as + expression argument to build_java_indirect_ref. + (build_java_check_indexed_type): Do nothing. + (build_java_arraystore_check): Handle case where array doesn't + have array type. + (build_java_array_length_access): Likewise. + (expand_invoke): Handle case where interface overrides a method + from Object. + (pop_type_0): Always succeed for reference types. + (process_jvm_instruction): Don't pop a value in a dead + exception handler. + (pop_arguments): Convert arguments to correct types. + +2004-10-29 Andrew Haley + + * jcf-parse.c (give_name_to_class): Remove line that was + incorrectly merged. + +2004-10-29 Andrew Haley + + * jcf-parse.c (set_source_filename): Add code to build new sfname. + +2004-10-20 Andrew Haley + + * decl.c (end_java_method): Don't expand if flag_syntax_only. + +2004-10-26 Tom Tromey + + * verify.h (vfy_notify_verified): Removed. + * verify-glue.c (vfy_notify_verified): Removed. + +2004-10-26 Tom Tromey + + * verify-impl.c (debug_print_state): Declare `i' before code. + (merge_types): Modify `t' when it is null_type. + +2004-10-26 Tom Tromey + + * verify-impl.c (type_print): Renamed from print. Now static and + takes an argument. + (debug_print_state): Use type_print. + +2004-10-25 Tom Tromey + + * expr.c (build_invokeinterface): Compute correct offset for + index into interface methods. + +2004-10-20 Tom Tromey + + * java-tree.h (verify_jvm_instructions_new): Declare. + + * jvspec.c (jvgenmain_spec): Remove -fnew-verifier from cc1 + command line. + + * verify-impl.c (verify_instructions): Correctly handle wide + types on the stack. + * verify-glue.c (vfy_get_class_name): Use DECL_NAME. + (vfy_get_component_type): Strip pointer types. + (vfy_find_class): Use get_type_from_signature. Strip pointer + types. + Include java-except.h. + +2004-10-20 Bryce McKinlay + + * verify-impl.c (type_array_elementpop_raw, vfy_pop_type_t, + vfy_push_type_t, set_variable, add_new_state, merge_into, + handle_jsr_insn, branch_prepass, check_class_constant, + check_wide_constant, get_one_type, compute_static_types, + verify_instructions_0): Clean up C99 declarations after statements. + +2004-10-20 Tom Tromey + + * verify-impl.c (merge_refs): Compare reference against iterator, + not ref2. + + * verify-glue.c (vfy_tag): Mask off resolved flag. + +2004-10-19 Tom Tromey + + * verify-impl.c (verify_instructions): Call vfy_note_local_type. + (init_state_with_stack): Initialize `this_type' in state. + (verify_method): Use debug_print. + * verify-glue.c (vfy_is_primitive): Removed debugging print. + (vfy_note_stack_depth): Reverted last patch. + (vfy_note_stack_type): Note pointer to Object, not Object. + (vfy_note_local_type): Likewise. + + * verify.h (vfy_note_instruction_seen): Declare. + * verify-glue.c (verify_jvm_instructions_new): Set + BCODE_EXCEPTION_TARGET on target instruction. + (vfy_note_instruction_seen): New function. + * verify-impl.c (FLAG_INSN_SEEN): New define. + (verify_instructions_0): Set flag on instruction. Save state for + PC=0 later. + (verify_instructions): Call vfy_note_instruction_seen. + + * verify-glue.c (vfy_note_stack_depth): Fix off-by-one error. + (verify_jvm_instructions_new): Call method_init_exceptions, + add_handler, and handle_nested_ranges. + * verify-impl.c (verify_method): Return 1 on success. + (verify_instructions_0): Save the state at PC=0. + + * verify-impl.c (init_type_from_class): Set is_resolved and + ref_next on new ref_intersection. + (init_type_from_string): Likewise. + +2004-10-15 Bryce McKinlay + + * expr.c (expand_bytecode): Use verify_jvm_instructions_new + if flag_new_verifier is set. + * java-tree.h (flag_new_verifier): Declare. + * lang.opt (fnew-verifier): New option. + * verify-impl.c: Work around namespace pollution by undef'ing + 'current_class'. + (struct verifier_context): Make 'bytecode' const. + (verify_fail_pc): Pass -1 PC argument to vfy_fail. + (types_compatible): For the BC-ABI, always consider reference types + compatible. + (check_class_constant): Use vfr->current_class. + (check_constant): Likewise. + (check_wide_constant): Likewise. + (check_field_constant): Check for 'L' at start of type name. + (get_one_type): Return pointer instead of type. Set type result in + caller via passed type pointer. + (compute_argument_types): Update to use new get_one_type arguments. + (compute_return_type): Likewise. + (make_verifier_context): New. Allocate and initialize 'vfr'. + (free_verifier_context): New. Free 'vfr' and its contents. + (verify_method): Remove ATTRIBUTE_UNUSED. Call make_verifier_context + and free_verifier_context. + +2004-10-15 Tom Tromey + + * verify-glue.c (vfy_note_local_type): Mark argument as unused. + * verify.h (vfy_fail): Fixed formatting. + + * verify-impl.c (vfr): Fixed comment formatting. + (collapse_type): New function. + (verify_instructions): Notify compiler about type map. + * verify.h (vfy_note_stack_depth): Updated. + (vfy_note_stack_type): Likewise. + (vfy_note_local_type): Likewise. + (vfy_unsuitable_type, vfy_return_address_type, vfy_null_type): + Declare. + * verify-glue.c (vfy_note_stack_depth): Correctly size type + state. Added `method' argument. + (vfy_note_stack_type): Renamed from vfy_note_type. Added `method' + argument. + (vfy_note_local_type): New function. + (vfy_unsuitable_type): Likewise. + (vfy_return_address_type): Likewise. + (vfy_null_type): Likewise. + + * verify.h (VFY_IN_GCC): Removed. + (VFY_WANT_TYPEMAP): Removed. + * verify-impl.c (verify_instructions_0): Removed useless "\". + (struct state) : Uncomment. + +2004-10-13 Bryce McKinlay + + * verify-impl.c: Formatting fixes. Reformat C++-style comments to + C-style. + +2004-10-06 Bryce McKinlay + + * Make-lang.in (verify.o): Re-enabled this target. + * verify-glue.c (vfy_get_interface_count): Add ATTRIBUTE_UNUSED. + (vfy_get_interface): Likewise. + (verify_jvm_instructions_new): Renamed from verify_jvm_instructions. + * verify.h (verify_jvm_instructions_new): Declare. + * verify-impl.c (free_state): Temporarily comment out unused + function. + +2004-10-06 Tom Tromey + + * java-tree.h (JV_STATE_READ): New enum value. + +2004-10-06 Bryce McKinlay + + * verify.h: New file. + +2004-10-05 Bryce McKinlay + + * verify-impl.c, verify-glue.c, verify.h: New files. + * Make-lang.in: Add rules for verify-impl.o and verify-glue.o. + +2004-09-24 Andrew Haley + + * decl.c (check_local_unnamed_variable): Always use the PARM_DECL + for a slot if it's of pointer type. + +2004-09-14 Tom Tromey + + * class.c (make_class_data): Correctly initialize "state" field. + Initialize "engine" field. + * decl.c (java_init_decl_processing): Add "engine" field. + +2004-09-10 Andrew Haley + + PR java/12760 + * expr.c (build_invokeinterface): Use fast method for interface + dispatch. + * java-tree.h (enum java_tree_index): Add JTI_ITABLE_TYPE, + JTI_ITABLE_PTR_TYPE. + (struct lang_type): Add itable_methods, itable_decl, itable_syms_decl. + (emit_symbol_table): Add new arg, element_size. + * decl.c (java_init_decl_processing): Initialize Class.itable. + * class.c (GEN_TABLE): New macro. + (gen_indirect_dispatch_tables): Use it. Add itable. + (make_class_data): Add new arg for emit_symbol_table(). + Emit itable. + (add_miranda_methods): Make sure search_class has been parsed. + (emit_symbol_table): Add new arg, element_size. + +2004-09-06 Andrew Haley + + * verify.c (merge_types): Return Object for all merges of + interfaces. + * expr.c (add_type_assertion): Don't generate assertions when + source type is array of Object. + +2004-09-03 Andrew Haley + + * class.c (finish_class): Nullify TYPE_VERIFY_METHOD. + + * lang.c (java_post_options): Force flag_verify_invocations if + we're not using indirect dispatch. + + * expr.c (pop_type_0): Move test for interfaces before call to + can_widen_reference_to(). + (build_signature_for_libgcj): Remove generation of canonical array + type. + (add_type_assertion): Canonicalize both arrays. + Don't assert that type X can be assigned to Object. + Don't assert that type X an be assigned to type X. + Don't assert that Object can be assigned to type X. + (can_widen_reference_to): Warn whenever we generate an assertion. + (process_jvm_instruction): Use throwable_type_node for the type of + an exception class. + +2004-09-01 Andrew Haley + + * decl.c (java_init_decl_processing): Change + verify_identifier_node to "__verify". + * expr.c (add_type_assertion): Use verify_identifier_node for name. + * java-tree.h (verify_identifier_node): Change to "__verify". + + * expr.c (build_signature_for_libgcj): New function. + (add_type_assertion): Use it to construct signatures for + source_type and target_type. + +2004-08-27 Andrew Haley + + * java-tree.h (enum java_tree_index): Add JTI_VERIFY_IDENTIFIER_NODE. + (verify_identifier_node): New. + (TYPE_VERIFY_METHOD): New. + (struct type_assertion): New type. + * expr.c (type_assertion_eq): New function. + (type_assertion_hash): New function. + (add_type_assertion): New function. + (can_widen_reference_to): Call add_type_assertion(). + * decl.c (java_init_decl_processing): Add verify_identifier_node. + * class.c (make_class_data): Initialize TYPE_VERIFY_METHOD (type). + (finish_class): Output TYPE_VERIFY_METHOD (type). + + * decl.c (end_java_method): Nullify unused fields. + +2004-08-17 Andrew Haley + + * verify.c (defer_merging): Quieten. + * jcf-parse.c (load_class): Only try to open a class file if it's + java.lang.Object or if it's part of the current compilation. + Check that the class we just tried to load is the class we just + loaded. Quieten. + (java_parse_file): Set flag_verify_invocations off if we're + compiling from .class. + (parse_zip_file_entries): Abort if we try to read a dummy class. + * expr.c (can_widen_reference_to): Quieten. + (build_invokevirtual): Abort if we try to invokevirtual an + interface. + (expand_invoke): Don't build a non-interface call to an interface. + (build_instanceof): Don't do premature optimization if + flag_verify_invocations is not set. + * class.c (set_super_info): Disable code that inherits TYPE_DUMMY + from superclass. + (build_static_field_ref): Add correct type conversion for + field_address. + (add_miranda_methods): Disable generation of Miranda methods for + dummy classes. + (layout_class_method): Don't complain about non-static method + overrides static method with dummy classes. + +2004-08-13 Tom Tromey + + * class.c (build_static_field_ref): Re-enable atable lookups for + static fields. + + * parse.y (strip_out_static_field_access_decl): Indentation fix. + +2004-08-11 Tom Tromey + + * gcj.texi (libgcj Runtime Properties): Document new properties. + +2004-08-06 Andrew Haley + + * jcf-parse.c (load_class): Check that we really have loaded the + class we're looking for. + +2004-07-19 Andrew Haley + + * verify.c (verify_jvm_instructions): Comment change only. + + * typeck.c (build_java_array_type): Add size field to array name. + + * java-tree.h (LOCAL_SLOT_P): New. + (update_aliases): Add PC argument. + (pushdecl_function_level): New function. + + * java-gimplify.c (java_gimplify_expr): Handle VAR_DECL, + MODIFY_EXPR, and SAVE_EXPR. + (java_gimplify_modify_expr): New function. + + * expr.c (push_type_0): Call find_stack_slot() to create temporary. + (expand_iinc): Pass PC to update_aliases(). + (STORE_INTERNAL): Likewise. + (process_jvm_instruction): Likewise. + + * decl.c (base_decl_map): New variable. + (uniq): New variable. + (update_aliases): Rewrite with more thorough checking. + (debug_variable_p): New function. + (push_jvm_slot): Don't initialize local variable. Don't pushdecl. + (check_local_named_variable): Delete whole function. + (initialize_local_variable): New function. + (check_local_unnamed_variable): Add checks and comments. + (find_local_variable): Rewrite. + (java_replace_reference): New function. + (function_binding_level): New variable. + (pushdecl_function_level): New function. + (maybe_pushlevels): Set DECL_LOCAL_END_PC. + (maybe_pushlevels): Call pushdecl() on each of the new decls. + (start_java_method): Reset uniq. Create base_decl_map. Set + function_binding_level. + (end_java_method): Null unused fields to save memory. + +2004-06-29 Andrew Haley + + * except.c (expand_start_java_handler): Push a new binding level. + Don't build a TRY_CATCH_EXPR now, we'll do it later. Call + register_exception_range() to register where we'll do it. + (expand_end_java_handler): Remove old bogus code. Replace with + new logic that simply builds TRY_CATCH_EXPRs and inserts them at + the top of the expression we're curently building. + (maybe_end_try): Delete. + * decl.c (binding_level.exception_range): New field. + (clear_binding_level): Add field exception_range. Reformat. + (poplevel): Call expand_end_java_handler(). + (poplevel): Call java_add_stmt only if functionbody is false. + (maybe_poplevels): Don't call maybe_end_try() from here. + (end_java_method): Clear no longer used trees in function decl. + (register_exception_range): New function. + * java-tree.h (register_exception_range, struct eh_range): Declare. + +2004-06-22 Andrew Haley + + * class.c (gen_indirect_dispatch_tables): Set the DECL_OWNER of + the otable. + * check-init.c (get_variable_decl): Teach check-init about + FIELD_DECLs addressed via the otable. + * jcf-parse.c (load_class): Check CLASS_LOADED_P, not + CLASS_PARSED_P. + +2004-05-28 Andrew Haley + + * jcf-parse.c (load_class): Don't try to read a class that we've + already read. + + * expr.c (build_invokeinterface): Use the old-fashioned way of + doing indirect dispatch: look up interfaces by name. + * java-tree.h (enum java_tree_index): Add + JTI_SOFT_LOOKUPINTERFACEMETHODBYNAME_NODE + * decl.c (java_init_decl_processing): Add + soft_lookupinterfacemethodbyname_node. + + * gjavah.c (print_method_info): Final methods have vtable entries, + so gjavah needs to output them. + * class.c (layout_class_method): Generate vtable entries for final + methods. + * parse.y (invocation_mode): Use INVOKE_VIRTUAL for indirect + dispatch, even if a method is final. + +2004-05-25 Andrew Haley + + * class.c (build_symbol_entry): Convert the names of constructors + to init_identifier_node when generating an entry for the indirect + dispatch table. + + * expr.c (build_known_method_ref): Generate indirect calls for + all methods marked DECL_EXTERNAL or TREE_PUBLIC. + +2004-05-24 Andrew Haley + + * expr.c (build_known_method_ref): Make sure ARRAY_REF access to + atable element is of the right type. + + * class.c (build_static_field_ref): Cast pointer to correct type + for field. + +2004-04-20 Bryce McKinlay + + * Merged with HEAD as of 20040514. Diff against + gcj-abi-2-merge-20040514. + +2004-04-16 Andrew Haley + + * verify.c (check_pending_block): Disable subroutine checks. + (defer_merging): New function. + (merge_types): If types are dummy, use defer_merging to combine them. + (verify_jvm_instructions): If invocation is invokeinterface and + target is dummy, assume target really is an interface. + + * parse.y (patch_invoke): Break out call to java_create_object. + + * lang.c (flag_verify_invocations): New. + + * jcf-parse.c (load_class): If we've already failed to load a + class, don't try again. + (load_class): If we can't find a .class file, don't fail, but emit + a warning. + (parse_class_file): Don't act on dummy methods. + + * java-tree.h (flag_verify_invocations): New. + (TYPE_DUMMY): New. + (lang_type.dummy_class): New field. + (java_create_object): New function. + (METHOD_DUMMY): New. + + * expr.c (build_field_ref): Widen field offset. + (pop_type_0): If the type in stack_type_map is a TREE_LIST, check + that each of its elements is compatible with the one we're + popping. + (pop_type_0): Issue a warning to say that we need to generate a + runtime check. + (java_create_object): New function. + (build_field_ref): Only generate hard refs if we're not using + indirect dispatch. + (expand_java_field_op): If we're using !verify_invocations and we + see a missing field, generate a decl for it. + + (expand_invoke): If a class doesn't have the method we seek and + we're using !flag_verify_invocations, generate a decl for the + method now. + + (build_known_method_ref): Always use indirect dispatch via the + atable for static methods. + + (expand_java_NEW): Break out object creation into new function, + java_create_object. + + (can_widen_reference_to): Issue a warning to say that we need to + generate a runtime check. + + * class.c (set_super_info): Inherit TYPE_DUMMY from sureclass. + (make_method_value): Also use index for interfaces. + (make_class_data): Skip dummy field for inherited data. + Don't build method array for dummy methods. + Set size_in_byte to -1 when using inirect dispatch + Don't build a hard class ref if we don't have a hard ref to our + superclass, or if we're using inirect dispatch. + Null out dispatch tables. + + (layout_class_method): Don't complain about non-static method + overrides static method is method is artificial. + + (build_static_field_ref): Disable atable references to static + fields for the time being. + + (layout_class_methods): Check for CLASS_INTERFACE as + well as CLASS_ABSTRACT. + +2004-11-24 Steven Bosscher + + * class.c (make_class_data): Don't check flag_inline_functions. + * lang.c (flag_really_inline): Remove unused flag. + (java_handle_option): Don't set it here. Remove special handling + of flag_inline_functions for Java. + (java_init): Don't set flag_inline_trees here. Already done... + (java_post_options): ...here. Don't clear flag_inline_functions. + +2004-11-24 Steven Bosscher + + * java-gimplify.c (java_gimplify_labeled_block_expr): New function. + (java_gimplify_exit_block_expr): New function. + (java_gimplify_expr): Use them to gimplify EXIT_BLOCK_EXPR and + LABELED_BLOCK_EXPR. + * java-tree.def (LABELED_BLOCK_EXPR): Moved from tree.def. + (EXIT_BLOCK_EXPR): Likewise. + * java-tree.h (LABELED_BLOCK_LABEL): Moved from tree.h. + (LABELED_BLOCK_BODY): Likewise. + (EXIT_BLOCK_LABELED_BLOCK): Likewise. + * jcf-write.c (generate_bytecode_insns): Don't handle the unused + EXIT_BLOCK_RETURN operand. Use EXIT_BLOCK_LABELED_BLOCK instead of + TREE_OPERAND. + * lang.c (java_tree_inlining_walk_subtrees): Handle EXIT_BLOCK_EXPR. + (java_dump_tree): Use LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, and + EXIT_BLOCK_LABELED_BLOCK instead of TREE_OPERAND. Don't handle the + second operand of EXIT_BLOCK_EXPR. + * parse.y (find_expr_with_wfl): Use LABELED_BLOCK_BODY instead of + TREE_OPERAND. + (build_bc_statement): Use build1 to build EXIT_BLOCK_EXPR nodes. + +2004-11-23 Ben Elliston + + * xref.h (xref_flag_value): Remove. + (xref_set_data, xref_get_data): Likewise. + (xref_set_current_fp): Likewise. + (XREF_NONE): Likewise. + (XREF_GET_DATA): Likewise. + * xref.c (xref_flag_value): Remove. + (xref_set_data, xref_get_data): Likewise. + (xref_set_current_fp): Likewise. + +2004-11-23 Ben Elliston + + * gjavah.c (output_directory): Make static. + (temp_directory): Likewise. + +2004-11-15 Tom Tromey + + * decl.c (instn_ptr_type_node): Removed. + (lineNumbers_ptr_type_node): Removed. + (jint_type): Removed. + (jint_ptr_type): Removed. + +2004-11-09 Andrew Pinski + + PR java/15576 + * check-init.c (check_init): Ignore DECL_EXPR. + * expr.c (always_initialize_class_p): Reenable. + (build_class_init): Use a variable to store the decl. Also use + boolean_false_node instead of integer_zero_node. + * parse.y (attach_init_test_initialization_flags): Add a decl_expr + to the block. + +2004-11-08 Tom Tromey + + PR java/16843: + * gjavah.c (HANDLE_END_FIELD): Call print_field_info when + generating a JNI header. + (print_field_info): Handle JNI headers. + (jni_print_float): Likewise. + (jni_print_double): Likewise. + +2004-11-08 Andrew Pinski + + * decl.c (end_java_method): Remove duplicated code. + +2004-11-06 Zack Weinberg + Gerald Pfeifer + + * lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H + as well. + +2004-11-02 Bryce McKinlay + + PR java/17265 + * class.c: Reinstate 2004-08-18 patch. + (make_local_function_alias): Don't create an alias for extern (native) + functions. + +2004-10-22 Eric Botcazou + + PR java/17265 + * class.c (make_local_function_alias): Revert 2004-08-18 change. + (make_method_value): Likewise. + +2004-10-21 Andrew Haley + + PR java/18091: + * jcf-parse.c (set_source_filename): Add code to build new sfname. + +2004-10-20 Andrew Haley + + * decl.c (end_java_method): Don't expand if flag_syntax_only. + Remove duplicated code block. + +2004-10-18 Steven Bosscher + + * Make-lang.in (java/parse.o-warn, java/parse-scan.o-warn): + New rules to work around old Bison warnings. + +2004-10-17 Steven Bosscher + + * class.c (ident_subst): Always alloca buffer. + * java-opcodes.h (LAST_AND_UNUSED_JAVA_OPCODE): Add this dummy + opcode after including javaop.def. + * jcf-dump.c (CHECK_PC_IN_RANGE): Return 0 from the arm of the + conditional expression that exits, to avoid warnings. + * verify.c (CHECK_PC_IN_RANGE): Mark the __GNUC__ definition as + a user of an extension. + * win32-host.c: Move check down to have non-empty file when + WIN32 is not defined. + + * Make-lang.in (java-warn): Add STRICT_WARN. + (java/jcf-io.o-warn): Don't have Werror for this file. + * jcf-io.c (caching_stat): Add FIXME for non-POSIX scandir use. + +2004-10-16 Hans-Peter Nilsson + + * expr.c (expr_add_location): Move declaration to before all + statements. + * parse.y (java_expand_classes): Ditto. + * lex.c (java_peek_unicode): Ditto. + +2004-10-16 Ranjit Mathew + + * check-init.c: Use %<, %> and %q for quoting in diagnostics, + if possible, else convert `foo' to 'foo'. + * class.c: Likewise. + * decl.c: Likewise. + * expr.c: Likewise. + * jcf-io.c: Likewise. + * jcf-parse.c: Likewise. + * lang.c: Likewise. + * lex.c: Likewise. + * parse.h: Likewise. + +2004-10-16 Ranjit Mathew + + * parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and + rename parameter 'msg' to 'msgid' in function declaration. + (issue_warning_error_from_context): Likewise. + (yyerror): Rename parameter 'msg' to 'msgid'. + (all over): Use new quoting style for diagnostics. + +2004-10-15 Kazu Hirata + + * boehm.c, builtins.c, java-except.h, jcf-io.c, jcf-path.c, + jcf.h, lang-specs.h, lex.c, lex.h, resource.c, win32-host.c: + Update copyright. + +2004-10-14 Matt Austern + + * lang.c (java_tree_inlining_walk_subtrees): Last arg is struct + pointer_set_t* now. + +2004-10-13 Tom Tromey + + PR java/15578: + * lang.opt (--extdirs): Document. + * jvspec.c (lang_specific_driver): Recognize -encoding and + -extdirs. + +2004-10-06 Ulrich Weigand + + * parse.y (issue_warning_error_from_context): Use va_list * + instead of va_list parameter. + (parse_error_context): Update call. + (parse_warning_context): Likewise. + +2004-10-05 Zack Weinberg + + * parse.y, parse-scan.y: Add list of diagnostic messages to + insulate translation template from version of yacc/bison used + to compile the grammar. + +2004-10-05 Ranjit Mathew + + Prepare for %q, %< and %> in diagnostic message strings. + * java-tree.h (parse_error_context): remove ATTRIBUTE_PRINTF_2. + Name second parameter 'msgid'. + * parse.y: Additionally include pretty-print.h and diagnostic.h. + (issue_warning_error_from_context): Use pretty-printer functions + instead of vsprintf for constructing formatted messages. Rename + parameter 'msg' to 'msgid'. + (parse_error_context): Rename parameter 'msg' to 'msgid'. + (parse_warning_context): Likewise. + +2004-10-05 Andrew Haley + + PR java/17779 + * jcf-parse.c (parse_zip_file_entries): If a class has a + superclass and a TYPE_SIZE of zero, lay it out. + +2004-09-30 Andrew Haley + + PR java/17733 + * jcf-parse.c (compute_class_name): Rewrite. + +2004-10-01 Jan Hubicka + + * java.c (java_expand_body): Update call of tree_rest_of_compilation. + +2004-10-01 Kazu Hirata + + * lex.c: Fix a comment typo. + +2004-10-01 Kazu Hirata + + * java-tree.h: Fix a comment typo. + +2004-09-30 Per Bothner + + Simplify lexer. Implement --enable-mapped-location support. + * jcf-parse.c (parse_class_file): Use linemap_line_start. + (parse_source_file_1): Pass filename as extra parameter, so we can call + linemap_add and set input_location here, rather than in both callers. + (read_class): Pass copied filename to parse_source_file_1. + Don't initialize wfl_operator - only needed for source compilation. + (read_class, jcf_parse): Call linemap_add with LC_LEAVE. + * lex.h: Remove a bunch of debugging macros. + * lex.h (struct_java_line, struct java_error): Remove types. + (JAVA_COLUMN_DELTA): Remove - use java_lexer.next_colums instead. + (struct java_lc_s): Remove prev_col field. + (struct java_lexer): New fields next_unicode, next_columns, and + avail_unicode. New position field, and maybe token_start field. + Don't need hit_eof field - use next_unicode == -1 instead. + (JAVA_INTEGERAL_RANGE_ERROR): Rename to JAVA_RANGE_ERROR. + (JAVA_RANGE_ERROR, JAVA_FLOAT_ANGE_ERROR): Update accordingly. + * parse.h: Various changes for USE_MAPPED_LOCATION. + (EXPR_WFL_EMIT_LINE_NOTE): XXX + (BUILD_EXPR_WFL, EXPR_WFL_ADD_COL): Remove no-longer-used macros. + (struct parser_ctxt): New file_start_location field. + Remove p_line, c_line fields since we no longer save lines. + Remove elc, lineno, and current_jcf fields - no longer used. + * parse.y: Updates for USE_MAPPED_LOCATION and new lexer. + Don't use EXPR_WFL_ADD_COL since that isn't trivial with + source_location and is probably not needed anymore anyway. + Use new expr_add_Location function. + (SET_EXPR_LOCATION_FROM_TOKEN): New convenience macro. + (java_pop_parser_context): Minor cleanup. + (java_parser_context_save_global, java_parser_context_restore_global, + java_pop_parser_context): Save/restore input_location as a unit. + (issue_warning_error_from_context): If USE_MAPPED_LOCATION take + a source_location instead of a wfl context node. + (check_class_interface_creation): input_filename is not addressable. + (create_artificial_method): Calling java_parser_context_save_global + and java_parser_context_restore_global is overkill. Instead, + temporarily set input_location from class decl. + (java_layout_seen_class_methods): Set input_location from method decl. + (fix_constructors): Make more robust if no EXPR_WITH_FILE_LOCATION. + (finish_loop_body): Likewise. + * lex.c: Updates for USE_MAPPED_LOCATION. Use build_unknwon_wfl. + (java_sprint_unicode): Take a character, not index in line. + (java_sneak_uncode): Replaced by java_peek_unicode. + (java_unget_unicode): No longer used. + (java_allocate_new_line. java_store_unicode): Removed, since we + no longer remember "lines". + (java_new_lexer): Update for new data structures. + (java_read_char): Move unget_value checking to java_read_unicode. + (java_get_unicode, java_peek_unicode, java_next_unicode): New more + efficient functions that are used directly when lexing. + (java_read_unicode_collapsing_terminators): No longer needed. + (java_parse_end_comment, java_parse_escape_sequence, do_java_lex): + Re-organize to use java_peek_unicode to avoid java_unget_unicode. + (java_parse_escape_sequence): Rewrite to be simpler / more efficient. + (do_java_lex): Lots of movings around to avoid java_unget_unicode, + combine switch branches, and test for common token kinds earlier. + (java_lex_error): Rewrite. + * jv-scan.c (expand_location): New function, copied from tree.c. + (main): Set ctxp->filename instead of setting input_filename directly. + +2004-09-30 Per Bothner + + More cleanup for --enable-mapped-location. + * class.c (push_class): If USE_MAPPED_LOCATION don't set + input_location here. Instead do it in give_name_to_class. + (build_class_ref): Set DECL_ARTIFICIAL, for the sake of dwarf2out. + * expr.c (expand_byte_code): Call linemap_line_start. + * expr.c (build_expr_wfl): If USE_MAPPED_LOCATION, change final + parameters to a source_location. Don't need EXPR_WFL_FILENAME_NODE. + (expr_add_location): New function, if USE_MAPPED_LOCATION. + * class.c (maybe_layout_super_class): Adjust build_expr_wfl call + to USE_MAPPED_LOCATION case. + + * java-tree.h (JAVA_FILE_P, ZIP_FILE_P): Remove unused macros. + * jcf-parse.c (java_parse_file): Don't set input_filename. + Use IS_A_COMMAND_LINE_FILENAME_P to check for duplicate filenames. + Create a list of TRANSLATION_UNIT_DECL. + (current_file_list): Is now a TRANSLATION_UNIT_DECL chain. The + reason is so we can set a DECL_SOURCE_LOCATION for each file. + (java_parse_file): Don't set unused ZIP_FILE_P, JAVA_FILE_P.. + Create line-map LC_ENTER/LC_LEAVE entries for archive itself. + (file_start_location): New static. + (set_source_filename): Avoid extra access to input_filename macro. + Concatenate new name with class's package prefix. + (set_source_filename, give_name_to_class): Update. + (give_name_to_class): Set class's "line 0" input_location here. + (parse_class_file): Set input_location as a unit. + + * jcf-parse.c (load_class): Sanity test if missing inner class file. + +2004-09-29 Per Bothner + + * java-tree.h: Redefine some macros and add some declaration + to handle the USE_MAPPED_LOCATION case. + * parse.h (EXPR_WFL_QUALIFICATION): Use operand 1, not 2. + * java-tree.h (EXPR_WFL_FILENAME_NODE): Use operand 2, not 1. + * java-tree.def (EXPR_WITH_FILE_LOCATION): Only need two operands in + USE_MAPPED_LOCATION case, since EXPR_WFL_FILENAME_NODE is gone. + + * check-init.c (check_init): Handle USE_MAPPED_LOCATION case. + * decl.c (finish_method, java_add_stmt): Likewise. + * java-gimplify.c (java-gimplify.c): Likewise. + * jcf-write.c (generate_bytecode_insns): Likewise. + * lang.c (java_post_options): Likewise - call linemap_add. + +2004-09-29 Andrew Haley + + PR java/17007 + * parse.y (patch_binop): Don't mess with the TREE_SIDE_EFFECTS of the + result of TRUNC_MOD_EXPR. + (patch_unaryop): Likewise for CONVERT_EXPR, which may throw. + * decl.c (java_init_decl_processing): Mark + soft_lookupinterfacemethod_node and soft_instanceof_node pure. + +2004-09-28 Tom Tromey + + PR java/15710: + * class.c (add_miranda_methods): Load superinterface if not + already loaded. + +2004-09-28 Andrew Haley + + PR java/17586 + * jcf-parse.c (load_class): Don't try to read a class that we've + already read. + +2004-09-28 Andrew Haley + + * jcf-parse.c (load_class): Back out previous broken patch. + +2004-09-28 Andrew Haley + + PR java/17586 + * jcf-parse.c (load_class): Don't try to read a class that we've + already read. + Check that we really did read the right class. + +2004-09-25 Tom Tromey + + PR java/17500: + * parse.y (create_artificial_method): Use add_method_1. + +2004-09-25 Kazu Hirata + + * expr.c, jcf-dump.c, parse-scan.y, parse.y: Fix + comment typos. + * gcj.texi: Fix typos. + +2004-09-24 Tom Tromey + + PR java/15656: + * parse.y (class_instance_creation_expression): Set `$$' to NULL + in error parts of rule. + (unary_expression): Don't call error_if_numeric_overflow when $1 + is NULL. + +2004-09-24 Tom Tromey + + PR java/16789: + * parse.y (resolve_qualified_expression_name): Set + CAN_COMPLETE_NORMALLY on first call when chaining static calls. + * expr.c (force_evaluation_order): Check for empty argument list + after stripping COMPOUND_EXPR. + +2004-09-23 Andrew Haley + + PR java/16927: + * parse.y (java_complete_lhs): Call patch_string() on Operand 1 of + COND_EXPRs. + +2004-09-23 Tom Tromey + + PR java/17329: + * java-gimplify.c (java_gimplify_expr) : Ignore case + where operand is null. + +2004-09-23 Tom Tromey + + PR java/17380: + * parse.y (not_accessible_p): Allow access to protected members + even when class is not static. + +2004-09-22 Kelley Cook + + * Make-lang.in: Revert the gcc-none.o change. + +2004-09-22 Nathan Sidwell + + * parse.y (patch_anonymous_class): VEC_space returns true if there + is space. + +2004-09-21 Matt Austern + + Fix bootstrap. + * gjavah.c (free_method_name_list): Fix function definition so + it's a proper C prototype. + +2004-09-21 Tom Tromey + + PR java/17575: + * gjavah.c (free_method_name_list): New method. + (main): Call it. + +2004-09-17 Jeffrey D. Oldham + Zack Weinberg + + * java-tree.def: Use tree_code_class enumeration constants + instead of code letters. + * java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for + new tree-class enumeration constants. + +2004-09-13 Tom Tromey + + PR java/17216: + * class.c (layout_class_method): Put synthetic methods into the + vtable. + +2004-09-11 Andrew Pinski + + * Make-lang.in (java/ggc-none.c): Change dependency + for ggc.h into $(GGC_H). + +2004-09-11 Mohan Embar + + * Make-lang.in (java/win32-host.o): Add dependency on + coretypes.h. + * win32-host.c: Add includes for coretypes.h, jcf.h + +2004-09-11 Mohan Embar + + * Make-lang.in (GCJH_OBJS): Change dependency from + ggc-none.o to java/ggc-none.o + (JCFDUMP_OBJS): Likewise. + (java/ggc-none.o): New target. + +2004-08-25 Nathan Sidwell + + * boehm.c (get_boehm_type_descriptor): Adjust build_int_cst calls. + * class.c (build_utf8_ref, build_static_field_ref, + make_field_value, make_method_value, get_dispatch_table, + make_class_data, emit_symbol_table, emit_catch_table): Likewise. + * constants.c (get_tag_node, build_ref_from_constant_pool, + build_constants_constructor): Likewise. + * decl.c (java_init_decl_processing): Likewise. + * expr.c (build_java_array_length_access, build_newarray, + expand_java_multianewarray, expand_java_pushc, expand_iinc, + build_java_binop, build_field_ref, expand_java_add_case, + expand_java_call, build_known_method_ref, build_invokevirtual, + build_invokeinterface, build_jni_stub): Likewise. + * java-gimplify.c (java_gimplify_new_array_init): Likewise. + * jcf-parse.c (get_constant): Likewise. + * lex.c (do_java_lex): Likewise. + * parse.y (patch_binop, patch_unaryop, patch_cast, + build_newarray_node, patch_newarray): Likewise. + * resource.c (compile_resource_data): Likewise. + * typeck.c (build_prim_array_type): Likewise. + +2004-08-24 Nathan Sidwell + + * decl.c (java_init_decl_processing): Adjust + initialize_sizetypes call. + +2004-08-23 Nathan Sidwell + + * jv-scan.c (fancy_abort): Add. + +2004-08-20 Nathan Sidwell + + * expr.c (build_java_arrayaccess): Use convert to change + len's type. + +2004-08-19 Bryce McKinlay + + * class.c (make_local_function_alias): Allocate extra space for 'L' + in name buffer. Reported by Thomas Neumann. + +2004-08-19 Nathan Sidwell + + * parse.h (JAVA_RADIX10_FLAG): Rename to ... + (JAVA_NOT_RADIX10_FLAG): ... here. Invert meaning. + * lex.c (do_java_lex): Adjust. + (error_if_numeric_overflow): Likewise. + +2004-08-18 Andrew Pinski + + * class.c (make_local_function_alias): Only make a new decl if we + support alias attribute on all decls. + +2004-08-18 Bryce McKinlay + + * class.c (make_local_function_alias): New function. Create local + alias for public method DECL. + (make_method_value): Use make_local_function_alias. + * parse.y (craft_constructor): Don't special-case anonymous classes. + Always set ctor_name to init_identifier_node. + (lookup_method_invoke): Call layout_class_method when creating + anonymous class constructor. + +2004-08-18 Richard Henderson + + * java-gimplify.c (java_gimplify_expr): Move '2' handling into + default case. Treat '<' similarly. Update for + is_gimple_formal_tmp_var name change. + +2004-08-17 Andrew Haley + + * lang.c (lang_printable_name): Obey verbose flag. + * parse.y (constructor_circularity_msg): Set VERBOSE arg for + lang_printable_name(). + (verify_constructor_circularity, get_printable_method_name, + check_abstract_method_definitions, java_check_regular_methods, + java_check_abstract_methods, check_inner_class_access, + fix_constructors, patch_method_invocation, patch_return): + Likewise. + * expr.c (pop_type_0): Likewise. + + * java-tree.h (lang_printable_name_wls): Delete. + +2004-08-16 Tom Tromey + + PR java/8473: + * parse.y (primary): Changed for initialized and uninitialized + array creations. + (array_access): Handle array_creation_initialized. + (array_creation_expression): Split into + array_creation_initialized and array_creation_uninitialized. + +2004-08-16 Andrew Haley + + * jcf-write.c (find_constant_index): Canonicalize NaNs when + generating bytecode. + +2004-08-16 Elliot Lee + + PR java/9677 + * jcf-parse.c (java_parse_file): Handle filenames with embedded + spaces, and quoted filelists. + +2004-08-15 Nathan Sidwell + + * boehm.c (get_boehm_type_descriptor): Use build_int_cst. + * class.c (build_utf8_ref, build_static_field_ref, + make_field_value, make_method_value, get_dispatch_table, + make_class_data, emit_symbol_table, emit_catch_table): Likewise. + * constants.c (get_tag_node, build_ref_from_constant_pool, + build_constants_constructor): Likewise. + * decl.c (java_init_decl_processing): Likewise. + * expr.c (build_java_array_length_access, build_newarray, + expand_java_multianewarray, expand_java_pushc, expand_iinc, + build_java_binop, build_field_ref, expand_java_add_case, + expand_java_call, build_known_method_ref, build_invokevirtual, + build_invokeinterface, build_jni_stub): Likewise. + * java-gimplify.c (java_gimplify_new_array_init): Likewise. + * jcf-parse.c (get_constant): Likewise. + * lex.c (do_java_lex): Likewise. + * parse.y (patch_binop, patch_unaryop, patch_cast, + build_null_of_type, patch_newarray): Likewise. + * resource.c (compile_resource_data): Likewise. + * typeck.c (build_prim_array_type): Likewise. + +2004-08-10 Bryce McKinlay + + * java-gimplify.c (java_gimplify_new_array_init): Use create_tmp_var. + Don't create BLOCK here or call java_gimplify_block. + +2004-08-09 H.J. Lu + + * java-tree.h (flag_deprecated): Removed. + * lang.opt (Wdeprecated): Use existing Var(warn_deprecated). + * parse.y (check_deprecation): Check warn_deprecated instead of + flag_deprecated. + +2004-08-06 Kelley Cook + + * lang.c (flag_emit_class_files, flag_filelist_file, flag_redundant, + flag_use_divide_subroutine, flag_use_boehm_gc, flag_store_check, + flag_hash_synchronization, flag_assert, flag_jni, flag_newer, + flag_check_references, flag_extraneous_semicolon, flag_deprecated, + flag_force_classes_archive_check, flag_optimize_sci, + flag_indirect_dispatch): Remove explicit declarations. + * lang.opt: Add implicit declare/define/assign. Remove obsolete + final comment. + +2004-08-05 Michael Chastain + + PR bootstrap/14893 + * Make-lang.in (java.install-man): Install from either build + tree or source tree, whichever has the file first. + +2004-08-05 Nathan Sidwell + + * jcf-parse.c (get_constant): Adjust force_fit_type call. + * lex.h (SET_LVAL_NODE_TYPE): Remove. + * lex.c (java_perform_atof): Use SET_LVAL_NODE directly. + (do_java_lex): Likewise. Adjust force_fit_type call. + +2004-08-04 Roger Sayle + Andrew Haley + + * typeck.c (convert_ieee_real_to_integer): Call fold on the range + checking trees as they're being built. + (convert): Call convert_ieee_real_to_integer if we're + converting a constant, even if we're writing a class file. + +2004-08-02 Bryce McKinlay + + PR java/16701 + * parse.y (fold_constant_for_init): Call resolve_field_access with + correct current_class context. + +2004-08-01 Roger Sayle + + * decl.c (update_aliases, initialize_local_variable): Replace calls + to build with calls to buildN. + * java-gimplify.c (java_gimplify_modify_expr): Likewise. + * java-tree.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Likewise. + * parse.h (BUILD_THROW): Likewise. + * parse.y (switch_expression, synchronized_statement, + catch_clause_parameter, array_creation_expression, + conditional_expression, make_qualified_name, + resolve_qualified_expression_name, patch_method_invocation, + patch_invoke, build_method_invocation, build_new_invocation, + build_assignment, patch_assignment, build_binop, patch_binop, + build_string_concatenation, build_incdec, patch_unaryop, + patch_cast, build_array_ref, build_newarray_node, patch_newarray, + patch_return, build_if_else_statement, build_labeled_block, + build_new_loop, build_loop_body, build_bc_statement, + build_assertion, encapsulate_with_try_catch, build_try_statement, + build_try_finally_statement, patch_synchronized_statement, + emit_test_initialization): Likewise, replace build with buildN. + +2004-07-28 Eric Christopher + + * lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete. + (java_unsafe_for_reeval): Ditto. + +2004-07-26 + + * parse.y (build_super_invocation): Adjust declaration order to + avoid declaration after statement. + +2004-07-25 Bernardo Innocenti + + * decl.c: Rename all identifiers named `class' to `cl'. + +2004-07-25 Richard Henderson + + * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P. + +2004-07-23 Mike Stump + + * boehm.c (set_bit): Improve type safety wrt unsignedness. + * gjavah.c (throwable_p, decode_signature_piece, + print_full_cxx_name, print_include, add_namelet, add_class_decl, + process_file): Likewise. + * jcf-dump.c (main): Likewise. + * jcf-io.c (read_zip_member): Likewise. + * jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant, + give_name_to_class, get_class_constant): Likewise. + * jcf-write.c (find_constant_wide, push_long_const, + generate_classfile): Likewise. + * lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise. + * parse.y (read_import_dir): Likewise. + * typeck.c (parse_signature_type): Likewise. + * verify.c (verify_jvm_instructions): Likewise. + * zextract.c (find_zip_file_start, read_zip_archive): Likewise. + +2004-07-23 Thomas Fitzsimmons + + * Make-lang.in: Replace rmic and rmiregistry references with + grmic and grmiregistry. + * gcj.texi: Likewise. + +2004-07-20 Andrew Haley + + PR java/16431. + * verify.c (verify_jvm_instructions): Comment change only. + + * typeck.c (build_java_array_type): Add size field to array name. + + * java-tree.h (LOCAL_SLOT_P): New. + (update_aliases): Add PC argument. + (pushdecl_function_level): New function. + + * java-gimplify.c (java_gimplify_expr): Handle VAR_DECL, + MODIFY_EXPR, and SAVE_EXPR. + (java_gimplify_modify_expr): New function. + + * expr.c (push_type_0): Call find_stack_slot() to create temporary. + (expand_iinc): Pass PC to update_aliases(). + (STORE_INTERNAL): Likewise. + (process_jvm_instruction): Likewise. + + * decl.c (base_decl_map): New variable. + (uniq): New variable. + (update_aliases): Rewrite with more thorough checking. + (debug_variable_p): New function. + (push_jvm_slot): Don't initialize local variable. Don't pushdecl. + (check_local_named_variable): Delete whole function. + (initialize_local_variable): New function. + (check_local_unnamed_variable): Add checks and comments. + (find_local_variable): Rewrite. + (java_replace_reference): New function. + (function_binding_level): New variable. + (pushdecl_function_level): New function. + (maybe_pushlevels): Set DECL_LOCAL_END_PC. + (maybe_pushlevels): Call pushdecl() on each of the new decls. + (start_java_method): Reset uniq. Create base_decl_map. Set + function_binding_level. + (end_java_method): Null unused fields to save memory. + +2004-07-20 Nathan Sidwell + + * class.c (add_interface_do): Remove. + (set_super_info, interface_of_p, maybe_add_interface, + add_interface, make_class_data, layout_class, + add_miranda_methods): Adjust BINFO accessors and addition. + * expr.c (can_widen_reference_to, lookup_field): Adjust BINFO + accessors. + * jcf-write.c (generate_classfile): Likewise. + * parse.y (patch_anonymous_class, check_inner_circular_reference, + check_circular_reference, java_complete_class, + check_abstract_method_definitions, + java_check_abstract_method_definitions, + check_interface_throws_clauses, java_check_abstract_methods, + lookup_java_interface_method2, + find_applicable_accessible_methods_list): Adjust BINFO accessors + and addition. + * typeck.c (find_method_in_interfaces): Adjust BINFO accessors. + +2004-07-18 Roger Sayle + + * builtins.c (max_builtin, min_builtin, + java_build_function_call_expr): Replace calls to build with buildN. + * class.c (build_class_ref, build_static_field_ref, + get_dispatch_table, make_class_data, layout_class_method): Likewise. + * constants.c (build_ref_from_constant_pool): Likewise. + * decl.c (update_aliases, push_jvm_slot, poplevel, finish_method, + add_stmt_to_compound): Likewise. + * except.c (build_exception_object_ref, expand_end_java_handler): + Likewise. + * java-gimplify.c (java_gimplify_case_expr, + java_gimplify_default_expr, java_gimplify_block, + java_gimplify_new_array_init, java_gimplify_try_expr): Likewise. + * jcf-write.c (generate_bytecode_insns): Likewise. + * typeck.c (convert_ieee_real_to_integer): Likewise. + +2004-07-17 Joseph S. Myers + + * java-tree.h (builtin_function): Declare. + +2004-07-16 Steven Bosscher + + * parse.y (java_complete_expand_methods, java_expand_classes): Don't + abuse restore_line_number_status. + +2004-07-15 Frank Ch. Eigler + + g++/15861 + * jcf-parse.c (java_emit_static_constructor): Specify default + priority. + +2004-07-13 Per Bothner + + * java-tree.h (all_class_filename): Remove useless macro. + (enum java_tree_index): Remove JTI_ALL_CLASS_FILENAME constant. + (BUILD_FILENAME_IDENTIFIER_NODE): Remove useless macro. + * parse.y (java_parser_context_restore_global): Replace + BUILD_FILENAME_IDENTIFIER_NODE by plain get_identifier. + * jcf-parse.c (read_class, java_parse_file): Likewise. + +2004-07-12 Bryce McKinlay + + PR java/16474 + gjavah.c (print_field_info): Emit constant only if field is static. + +2004-07-11 Roger Sayle + + * expr.c (java_truthvalue_conversion, flush_quick_stack, + java_stack_swap, java_stack_dup, build_java_athrow, build_java_jsr, + build_java_ret, build_java_throw_out_of_bounds_exception, + build_java_array_length_access, java_check_reference, + build_java_arrayaccess, build_java_arraystore_check, build_newarray, + build_anewarray, expand_java_multianewarray, expand_java_arraystore, + expand_java_arrayload, build_java_monitor, expand_java_return, + expand_load_internal, expand_java_NEW, build_get_class, + build_instanceof, expand_java_CHECKCAST, expand_iinc, + build_java_soft_divmod, build_java_binop, build_field_ref, + expand_compare, expand_java_goto, expand_java_switch, + expand_java_add_case, build_class_init, build_known_method_ref, + invoke_build_dtable, build_invokevirtual, build_invokeinterface, + expand_invoke, build_jni_stub, expand_java_field_op, + java_expand_expr, expand_byte_code, STORE_INTERNAL, + force_evaluation_order, emit_init_test_initialization): Convert + calls to "build" into calls to the prefered "buildN" functions. + +2004-07-11 Joseph S. Myers + + * java-tree.h (set_block): Remove. + * lang.c (java_clear_binding_stack): New. + (LANG_HOOKS_CLEAR_BINDING_STACK): Define. + * decl.c (struct binding_level): Remove this_block. + (clear_binding_level): Likewise. + (poplevel): Don't handle this_block. + (set_block): Remove. + +2004-07-10 Bryce McKinlay + + * class.c (common_enclosing_context_p): Remove statement with no + side-effects. + +2004-07-09 Bryce McKinlay + + PR java/8618 + * parse.y (create_anonymous_class): Remove 'location' argument. Use + the WFL from TYPE_NAME to get line number for the decl. Fix comment. + (craft_constructor): Inherit access flags for implicit constructor + from the enclosing class. + (create_class): Fix comment typo. + (resolve_qualified_expression_name): Pass type of qualifier to + not_accessible_p, not the type in which target field was found. + (not_accessible_p): Handle inner classes. Expand protected + qualifier-subtype check to enclosing instances, but don't apply this + check to static members. Allow protected access to inner classes + of a subtype. Allow private access within common enclosing context. + (build_super_invocation): Get WFL line number info from current + class decl. + (build_incomplete_class_ref): Update for new create_anonymous_class + signature. + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Use + common_enclosing_instance_p. + * class.c (common_enclosing_context_p): New. Determine if types + share a common enclosing context, even across static contexts. + (common_enclosing_instance_p): Renamed from + common_enclosing_context_p. Determines if types share a common + non-static enclosing instance. + * java-tree.h (common_enclosing_instance_p): Declare. + * jcf-write.c (get_method_access_flags): New. Surpress private flag + for inner class constructors. + (generate_classfile): Use get_method_access_flags. + +2004-07-09 Bryce McKinlay + + * class.c (interface_of_p): Check for null TYPE_BINFO. + +2004-07-09 Nathan Sidwell + + * class.c (make_class): Do not create binfo here. + (set_super_info): Create it here. + * java-tree.h (CLASS_HAS_SUPER): Cope with lack of a binfo. + +2004-07-08 Richard Henderson + + * expr.c (case_identity, get_primitive_array_vtable, + java_expand_expr, emit_init_test_initialization): Remove. + * java-tree.h (java_expand_expr): Remove. + * lang.c (LANG_HOOKS_EXPAND_EXPR): Remove. + +2004-07-07 Per Bothner + + * class.c (build_static_field_ref): Add a NOP_EXPR; otherwise we + get internal error due to mismatched types. + + * gcj.texi (Invoking gij): Document new -verbose:class flag. + + * gcj.texi (Linking): New node. Document -lgij usage. + +2004-07-07 Nathan Sidwell + + * java-tree.h (CLASSTYPE_SPUER): Adjust BINFO macros. + (TYPE_NVIRTUALS, TYPE_VTABLE): Likewise. + * java/class.c (set_super_info, class_depth, interface_of_p, + maybe_add_interface, add_interface, make_class_data, + layout_class, add_miranda_methods): Adjust BINFO macros. + * expr.c (can_widen_reference_to, lookup_field): Likewise. + * jcf-write.c (generate_classfile): Likewise. + * parse.y (patch_anonymous_class, + check_inner_circular_reference, check_circular_reference, + java_complete_class, check_abstract_method_definitions, + java_check_abstract_method_definitions, + check_interface_throws_clauses, java_check_abstract_methods, + lookup_java_interface_method2, + find_applicable_accessible_methods_list): Likewise. + * typeck.c (find_method_in_interface): Likewise. + * verify.c (merge_types): Likewise. + +2004-07-06 Nathan Sidwell + + * java-tree.h (CLASS_HAS_SUPER_FLAG): Use BINFO_FLAG_1. + * class.c (add_interface_do): Use BINFO_VIRTUAL_P. + +2004-07-05 Nathan Sidwell + + * class.c (make_class): Use make_tree_binfo. + (set_super_info, add_interface_do): Likewise. + * java-tree.h (CLASS_HAS_SUPER_FLAG): Expect a BINFO. + +2004-07-04 Ranjit Mathew + + * verify.c: Correct array element access formatting thinko. + +2004-07-04 Ranjit Mathew + + * verify.c: Insert a short blurb at the start referring to the JVMS. + (merge_type_state): Remove redundant nested if statement. + (verify_jvm_instructions): Ensure current_subr is initialised to + NULL_TREE. + Minor formatting fixes all over the place. + +2004-07-02 Richard Henderson + + * jcf-write.c (generate_bytecode_insns ): Rewrite. + +2004-07-01 Richard Henderson + + * class.c (registerClass_libfunc): Remove. + (init_class_processing): Don't set it. + (emit_register_classes): Take list_p parameter. Fill it in + with _Jv_RegisterClass calls. + * decl.c (java_init_decl_processing): Don't call + init_resource_processing. + * jcf-parse.c (java_emit_static_constructor): New. + (java_parse_file): Call it. + * resource.c (registerResource_libfunc): Remove. + (init_resource_processing): Remove. + (write_resource_constructor): Take list_p parameter. Fill it in + with _Jv_RegisterResource calls. + * java-tree.h: Update prototypes. + +2004-06-29 Bryce McKinlay + + PR java/1262 + * class.c (layout_class_method): Do not override package-private + method if its in a different package. + (split_qualified_name): Move here from parse.y. Rename from + breakdown_qualified. Add comment. + (in_same_package): Move here from parse.y. Add comment. + * java-tree.h (break_down_qualified, in_same_package): Declare. + (in_same_package): Likewise. + * parse.y (breakdown_qualified, in_same_package): Moved to class.c. + Callers updated. + +2004-06-29 Andrew Haley + + * except.c (expand_start_java_handler): Push a new binding level. + Don't build a TRY_CATCH_EXPR now, we'll do it later. Call + register_exception_range() to register where we'll do it. + (expand_end_java_handler): Remove old bogus code. Replace with + new logic that simply builds TRY_CATCH_EXPRs and inserts them at + the top of the expression we're curently building. + (maybe_end_try): Delete. + * decl.c (binding_level.exception_range): New field. + (clear_binding_level): Add field exception_range. Reformat. + (poplevel): Call expand_end_java_handler(). + (poplevel): Call java_add_stmt only if functionbody is false. + (maybe_poplevels): Don't call maybe_end_try() from here. + (end_java_method): Clear no longer used trees in function decl. + (register_exception_range): New function. + * java-tree.h (register_exception_range, struct eh_range): Declare. + +2004-06-28 Bryce McKinlay + + * jcf-write.c (get_classfile_modifiers): Formatting fixes. + +2004-06-27 Ranjit Mathew + + Formatting fixes. + * expr.c (class_has_finalize_method): Fix method name indentation. + (expand_java_call): Remove K&R style parameter declaration. + (expand_invoke): Fix statement indentation. + (expand_java_field_op): Likewise. + * parse-scan.y: Fix typo. + (reset_report): Fix method name indentation. + * parse.y (unresolved_type_p, build_expr_block): Remove extra blank + line. Fix typos. + * verify.c (verify_jvm_instructions): Document parameters, insert + page break. + * lang.c (lang_init_source): Fix method name indentation. + * class.c (common_enclosing_context_p): Likewise. + (emit_symbol_table): Fix parameter list indentation. + * decl.c (add_stmt_to_compound, java_add_stmt): Remove K&R style + parameter declaration. + * constants.c: Fix copyright notice indentation. + * typeck.c (find_method_in_superclasses): Fix parameter list + indentation. + (find_method_in_interfaces): Likewise. + * zextract.c (makelong): Fix method name indentation. + +2004-06-26 Bryce McKinlay + + PR java/15715. + * parse.y (create_interface): Set correct access modifiers for + interfaces. + * jcf-write.c (get_classfile_modifiers): New function. + (generate_classfile): Use get_classfile_modifiers, not + get_access_flags. + +2004-06-26 Bryce McKinlay + + * parse.y (register_incomplete_type): Set JDEP_ENCLOSING for "super" + dependency to current parser context, not NULL_TREE, for top-level + classes. + (jdep_resolve_class): Enable member access check for all inner + class dependencies. + +2004-06-26 Bryce McKinlay + + * parse.y (qualify_and_find): Pass type decl, not identifier, to + load_class. + +2004-06-26 Bryce McKinlay + + PR java/15734 + * expr.c (expand_java_field_op): Ensure that target class for static + field access has been loaded. + +2004-06-26 Bryce McKinlay + Ranjit Mathew + + PR java/1207, java/16178 + * jcf-parse.c (load_class): Return immediately if passed a type decl + where CLASS_FROM_SOURCE_P is set. Remove FIXME. + * parse.y (do_resolve_class): Remove checks for CLASS_FROM_SOURCE_P + before calling load_class. + (qualify_and_find): Likewise. + (find_in_imports_on_demand): Likewise. + (find_applicable_accessible_methods_list): Likewise. + +2004-06-24 Bryce McKinlay + + * parse.y (java_layout_seen_class_methods): Don't call load_class + on class defined by source parser. + +2004-06-23 Bryce McKinlay + + * parse.y (set_nested_class_simple_name_value): Removed. + (java_complete_expand_class): Remove calls to + set_nested_class_simple_name_value. + +2004-06-22 Andrew Haley + Ranjit Mathew + + Fixes PR java/16113. + * decl.c (force_poplevels): Remove call to expand_end_bindings. + +2004-06-22 Ranjit Mathew + + * parse.y (create_class): Correct diagnostic message about + java.lang.Object extending anything else. + +2004-06-21 Richard Kenner + + * class.c (build_class_ref): Add new operand for COMPONENT_REF. + (build_static_field_ref): Likewise and add new operands for ARRAY_REF. + * constants.c (build_ref_from_constant_pool): Likewise. + * expr.c (build_java_array_length_access): Likewise. + (build_get_class, build_field_ref, build_known_method_ref): Likewise. + (invoke_build_dtable, build_invokevirtual): Likewise. + (build_invokeinterface, java_expand_expr): Likewise. + (emit_init_test_initialization): Likewise. + * java-gimplify.c (java_gimplify_new_array_init): Likewise. + * parse.y (make_qualifed_name, build_array_ref): Likewise. + +2004-06-21 Andrew Haley + + * java-gimplify.c (java_gimplify_block): set TREE_USED on the new + block. + +2004-06-21 Joseph S. Myers + + * jcf.h (struct JCF): Change java_source, right_zip and finished + to unsigned int. + * lex.h (struct java_lexer): Change hit_eof, read_anything, + byte_swap and use_fallback to unsigned int. + * parse.h (struct _jdep): Change flag0 to unsigned int. + +2004-06-17 Ranjit Mathew + + Fixes PR java/13948 + * parse.y (java_layout_seen_class_methods): Ensure class is loaded + before trying to lay out its methods. + * jcf-parse.c (read_class): Track parsed files using canonical paths + obtained via lrealpath from libiberty. + (java_parse_file): Likewise. + (parse_source_file_1): Rename formal parameter to reflect its + modified purpose. Minor formatting fix. + +2004-06-15 Paolo Bonzini + + * class.c (emit_register_classes): Make the function uninlinable, + do not set current_function_cannot_inline. + * resource.c (write_resource_constructor): Do not reset + flag_inline_functions around rest_of_compilation. + +2004-06-08 Andrew Pinski + + PR java/15769 + * expr.c (java_truthvalue_conversion): Handle + UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR, + ORDERED_EXPR, and UNORDERED_EXPR as comparison operators, + i.e. return the expression. + +2004-06-03 Mark G. Adams + + * gjavah.c: Include version.h + +2004-05-31 Bryce McKinlay + + * jcf-write.c (generate_bytecode_conditional): Correct handling + of unordered conditionals. Add comment. + +2004-05-29 Ranjit Mathew + Per Bothner + + * java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a + local variable was initialised upon declaration. + * parse.y (declare_local_variables): Set DECL_LOCAL_FINAL_IUD if + variable was final and initialised upon declaration. + * check-init.c (check_final_reassigned): Give error only if a blank + final is not definitely unassigned or if an initialised final is + reassigned. + (check_bool_init): Respect JLS2 16.1.7 requirements for boolean + assignment expressions. Remove case MODIFY_EXPR, label do_default. + (check_init): Perform initialised-variable-removing-optimisation + only on non-final local variables. + +2004-05-28 Bryce McKinlay + + * jcf-write.c (generate_bytecode_conditional): Handle binops + UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, + and LTGT_EXPR. + (generate_bytecode_insns): Likewise. + +2004-05-28 Bryce McKinlay + + * check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR, + UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR. + +2004-05-28 Bryce McKinlay + + * gcj.texi (Object allocation): Remove _Jv_AllocBytes. + (Mixing with C++): Document JvAllocBytes and RawDataManaged. + +2004-05-26 Bryce McKinlay + + * decl.c (struct binding_level): Add GTY marker. Compile + binding_depth unconditionally. + (current_binding_level, free_binding_level, global_binding_level): + Likewise. + (clear_binding_level): Unconditionally set binding_depth. + (make_binding_level): Use ggc_alloc_cleared, not xmalloc. + +2004-05-26 Bryce McKinlay + + * lex.c (java_new_lexer): Set 'encoding'. + (java_read_char): Improve error message for unrecognized characters. + * lex.h (struct java_lexer): New field 'encoding'. + +2004-05-23 Paolo Bonzini + + * Make-lang.in: Link in $(LIBCPP) instead of mkdeps.o. + +2004-05-21 Mark Wielaard + + * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not + extern. + +2004-05-19 Paolo Bonzini + + * typeck.c: Remove non-printable character 160. + +2004-05-17 Ranjit Mathew + + * check-init.c: Correct minor typos. + +2004-05-13 Diego Novillo + + * Make-lang.in, expr.c, java-gimplify.c: Rename + tree-simple.[ch] to tree-gimple.[ch]. + +2004-05-14 Ranjit Mathew + + * java-gimplify.c (java_gimplify_expr): Correct minor typos. + +2004-05-13 Diego Novillo + + Merge from tree-ssa-20020619-branch. See + ChangeLog.tree-ssa for details. + + * Make-lang.in, builtins.c, check-init.c, class.c, + constants.c, decl.c, except.c, expr.c, java-except.h, + java-tree.def, java-tree.h, jcf-parse.c, jcf-write.c, + lang.c, lang.opt, parse.y, resource.c: Merged. + * java-gimplify.c: New file. + +2004-05-10 Andrew Haley + + * parse.y (create_class): Set TYPE_VFIELD. + * decl.c (java_init_decl_processing): Likewise. + + * expr.c (build_invokevirtual): Remove DECL_VINDEX offset adjustment. + * class.c (make_method_value): Replace DECL_VINDEX with call to + get_method_index(). + (get_dispatch_vector): Likewise. + (layout_class_method): Likewise. + Replace set of DECL_VINDEX with call to set_method_index(). + (set_method_index): New function. + (get_method_index): New function. + * java-tree.h (set_method_index): New function decl. + (get_method_index): New function decl. + +2004-05-10 Andrew Pinski + + * parse.y (check_pkg_class_access): Add new argument + and use it when cl is NULL to call lookup_cl on it. + (parser_check_super_interface): Do not call lookup_cl. + Pass this_decl to check_pkg_class_access and NULL + instead of lookup_cl. + (parser_check_super): Update for change in + check_pkg_class_access. + (do_resolve_class): Likewise. + (process_imports): Likewise. + (find_in_imports_on_demand): Likewise. + (resolve_qualified_expression_name): Likewise. + +2004-05-06 Ranjit Mathew + + Fixes PR java/9685, PR java/15073 + * parse.y (accessibility_string): New method. + (not_accessible_field_error): Use accessibility_string() + instead of java_accstring_lookup(). + (resolve_qualified_expression_name): Check with + check_pkg_class_access() before allowing access using + qualified names. + Fix comment typo. + Use check_pkg_class_access() instead of not_accessible_p() + for unqualified types. + (not_accessible_p): Use DECL_CONTEXT (member) instead of + REFERENCE for package-private access checking. + (patch_method_invocation): Use accessibility_string() instead + of java_accstring_lookup(). + +2004-04-30 Ranjit Mathew + + Fixes PR java/15133 + * gjavah.c (struct method_name): Add member is_native. + (overloaded_jni_method_exists_p): Match candidate method only if + it is native. + (print_method_info): Initialise is_native flag from the method's + access flags. + +2004-04-30 Roger Sayle + + * builtins.c (java_builtins): Add acos, asin, ceil and floor. + (initialize_builtins): Likewise, define acos, asin, ceil and floor. + +2004-04-22 Roger Sayle + + * resource.c (write_resource_constructor): Guard call to possibly + NULL targetm.asm_out.constructor with targetm.have_ctors_dtors. + +2004-04-19 Bryce McKinlay + + * class.c (make_class_data): Add new field aux_info. + * decl.c (java_init_decl_processing): Push type and decl for + `aux_info'. + +2004-04-15 Bryce McKinlay + + * expr.c (expand_java_NEW): Don't use size argument for + _Jv_AllocObject calls. + * parse.y (patch_invoke): Likewise. + +2004-04-12 Bryce McKinlay + + * expr.c (build_invokeinterface): Remove unused variables to + fix warnings. + +2004-04-12 Bryce McKinlay + + * class.c (get_interface_method_index): New function. Return dispatch + index for interface method. + (make_method_value): For interface methods, set index field to + iface dispatch index, not DECL_VINDEX. + * expr.c (build_invokeinterface): Use get_interface_method_index. + +2004-03-31 Richard Kenner + + * jcf-write.c (generate_bytecode_insns): Use TYPE_UNSIGNED. + +2004-03-31 Andrew Haley + + PR java/14104 + * jcf-io.c (opendir_in_zip): Tidy up error handling. + +2004-03-30 Zack Weinberg + + * builtins.c, expr.c, jcf.h, parse.h: Use new shorter + form of GTY markers. + +2004-03-25 Marcus Meissner + + PR java/14689: + * jcf-path.c (jcf_path_extdirs_arg): Add missing closedir. + +2004-03-23 Tom Tromey + + PR java/14315: + * jcf-write.c (make_class_file_name): Don't report if mkdir + failed with EEXIST. + +2004-03-23 Tom Tromey + + * gcj.texi (Extensions): Document GCJ_PROPERTIES. + +2004-03-20 Kazu Hirata + + * class.c, gjavah.c, lang.c: Fix comment typos. + * gcj.texi: Fix typos. + +2004-03-19 Per Bothner + + * gcj.texi (Code Generation): Document new flags and assert defaults. + + * class.c (assume_compiled_node_struct): Rename type to + class_flag_node_struct, as it is now also used for enable_assertions. + Rename assume_compiled_node typedef. Rename excludep field to value. + (find_assume_compiled_node): Rename function to find_class_flag_node. + Minor optimization - avoid needless strlen. + (add_assume_compiled): Some tweaking and optimization. + Rename and generalize to add_class_flag takem an extra parameter. + (add_assume_compled): New just calls add_class_flag. + (add_enable_assert, enable_assertions): New functions. + (enable_assert_tree): New static. + * java-tree.h (add_enable_assert, enable_assertions): New declarations. + * lang.opt (fenable-assertions, fenable-assertions=, + fdisable-assertions, fdisable-assertions=): New options. + * lang.c (java_handle_option): Handle new options. + * parse.y (build_incomplete_class_ref): Handle class$ in an inner + class in an interface - create helper class nested in outer interface. + (build_assertion): Short-circuit if enable_assertions is false. + +2004-03-18 Richard Kenner + + * java-tree.h: Changes throughout to add checking to macros + and numerous whitespace changes. + (VAR_OR_FIELD_CHECK): New macro. + * jcf-write.c (get_access_flags): Use FIELD_PUBLIC, METHOD_PUBLIC, + FIELD_FINAL, and METHOD_FINAL instead of CLASS_PUBLIC and CLASS_FINAL. + +2004-03-16 Per Bothner + + * jcf-jump.c (options): New --print-constants option. + * gcj.texi (Invoking jcf-dump): Document --print-constants. + + * jcf-dump.c (flag_print_constant_pool): Default to off. + (print_constant_terse_with_index): New helper function. + (various places): Check flag_print_constant_pool where missing. + (main): If verbose set flag_print_constant_pool. + (HANDLE_INNERCLASSES_ATTRIBUTE): Null inner class name is anonymous. + +2004-03-15 Andrew Haley + + PR java/14581 + * parse.y (java_complete_lhs): Check that final variable has an + initializer. + +2004-03-12 Andrew Haley + + PR java/14551 + * typeck.c (convert): Clear TREE_OVERFLOW after an integer + conversion. + +2004-02-29 Roger Sayle + + * jcf-parse.c (java_parse_file): Handle the case that input_filename + is NULL. + +2004-02-27 Per Bothner + + * parse.y (build_assertion): Re-do 02-25 change following Jeff Sturm + suggestion: Use build_incomplete_class_ref. + This fixes PR java/13508, java/11714. + +2004-02-27 Kazu Hirata + + * java/parse.h: Update copyright. + +2004-02-26 Andrew Haley + + PR java/14231: + * parse.y (check_interface_throws_clauses): Check for + !METHOD_INVISIBLE (iface_method). + * class.c (layout_class_methods): Check for CLASS_INTERFACE as + well as CLASS_ABSTRACT. + +2004-02-25 Per Bothner + + * parse.y (build_assertion): If we're in an inner class, create the + class$ helper routine in the outer class. + +2004-02-19 Richard Henderson + + * parse.y (switch_label): Use make_node for DEFAULT_EXPR. + +2004-02-16 Geoffrey Keating + + * Make-lang.in (java.install-man): Add extra dependencies. + +2004-02-13 Geoffrey Keating + + * Make-lang.in: Install man pages under the same names + (possibly transformed) as the program they document. + +2004-02-10 Joseph S. Myers + + * gjavah.c: Include "intl.h". + (error): New function. + (main): Call gcc_init_libintl. + (get_field_name, throwable_p, print_c_decl, print_full_cxx_name, + print_stub_or_jni, process_file, main): Use error rather than + fprintf. + (print_method_info, usage, help, version, main): Mark strings for + translation with _. Avoid splitting up sentences. Send + information messages to stdout. + * jcf-dump.c: Include "intl.h". + (main): Call gcc_init_libintl. + (process_class, usage, help, version, main, CHECK_PC_IN_RANGE): + Mark error, usage and version messages for translation with _. + Avoid splitting up sentences. + * jv-scan.c: Include "intl.h". + (fatal_error, warning): Change parameter s to msgid. Translate + messages. + (main): Call gcc_init_libintl. + (usage, help, version): Mark error, usage and version messages for + translation with _. Avoid splitting up sentences. + * jvgenmain.c: Include "intl.h". + (main): Call gcc_init_libintl. + (usage, main): Mark error messages for translation with _. + * Make-lang.in (GCJH_OBJS, JVSCAN_OBJS, JCFDUMP_OBJS, + JVGENMAIN_OBJS): Add intl.o. + (java/jcf-dump.o, java/gjavah.o, java/jv-scan.o, + java/jvgenmain.o): Update dependencies. + +2004-02-08 Per Bothner + + * parse.y (resolve_qualified_expression_name): In case of inaccessible + class don't use not_accessible_field_error, which can get confused. + +2004-02-05 Kelley Cook + + Make-lang.in (po-generated): Delete. + +2004-02-05 Kazu Hirata + + * Make-lang.in (java/decl.o, java/expr.o, java/parse.o): + Depend on target.h. + * decl.c: Include target.h. + (start_java_method): Replace PROMOTE_PROTOTYPES with + targetm.calls.promote_prototypes. + * expr.c: Include target.h. + (pop_arguments): Replace PROMOTE_PROTOTYPES with + targetm.calls.promote_prototypes. + * parse.y: Include target.h. + (start_complete_expand_method): Replace PROMOTE_PROTOTYPES + with targetm.calls.promote_prototypes. + +2004-02-04 Kazu Hirata + + * typeck.c: Update copyright. + +2004-02-02 Tom Tromey + + * decl.c (java_init_decl_processing): Remove duplicate + gnu/gcj/RawData. + +2004-01-30 Kelley Cook + + * Make-lang.in (doc/gcj.dvi): Use $(abs_docdir). + +2004-01-28 Andrew Pinski + + * expr.c (build_field_ref): Move variable + definition up. + +2004-01-28 Andrew Haley + + * expr.c (build_field_ref): Widen field offset. + +2004-01-27 Andrew Haley + + java/13273 + * parse.y (check_interface_throws_clauses): Make sure class_decl + has been loaded. + +2004-01-22 Jeff Sturm + + PR java/13733 + * parse.y (patch_assignment): Don't modify lhs_type for + reference assignments. + +2004-01-20 Kelley Cook + + * Make-lang.in: Replace $(docdir) with doc. + (java.info, java.srcinfo, java.man, java.srcman): New rules. + (java.install-man): Revamp rule. + +2004-01-20 Kelley Cook + + * Make-lang.in (JAVA_INSTALL_NAME, JAVA_TARGET_INSTALL_NAME, + GCJH_TARGET_INSTALL_NAME): Define via a immediate $(shell) + instead of deferred backquote. + +2004-01-16 Andrew Pinski + + * typeck.c (find_method_in_interfaces): Move variable + definition up. + +2004-01-16 Andrew Haley + + PR java/13273: + * typeck.c (shallow_find_method): New. + (find_method_in_superclasses): New. + (find_method_in_interfaces): New. + (lookup_do): Rewrite. + * java-tree.h (SEARCH_ONLY_INTERFACE): Delete. + + * jcf-parse.c (read_class): Save and restore output_class. + * decl.c (java_expand_body): Set output_class from fndecl. + +2004-01-15 Michael Chastain + + * class.c (gen_indirect_dispatch_tables): Fix string length + calculations. + +2004-01-15 Kelley Cook + + * Make-lang.in (parse.c, parse-scan.c): Always build in doc directory. + (java.srcextra): Copy above back to source directory if requested. + (po-generated): Delete reference to $(parsedir). + (java/parse.o, java/parse-scan.o): Delete reference to $(parsedir). + Use implicit rule. + +2004-01-14 Jan Hubicka + + * lang.c (java_estimate_num_insns_1): Fix bug in MODIFY_EXPR cost + estimation. + +2004-01-09 Mark Mitchell + + * java-tree.h (java_expand_expr): Change prototype. + * expr.c (java_expand_expr): Add alt_rtl parameter. + +2004-01-09 Andrew Haley + + PR java/12755: + * parse.y (java_fix_constructors): Set output_class. + (java_reorder_fields): Likewise. + (java_layout_classes): Likewise. + (java_expand_classes): Generate indirect dispatch tables. + (java_expand_classes): Set output_class. + (java_finish_classes): Likewise. + * lang.c (java_init): Turn on always_initialize_class_p if we're + using indirect dis[atch. + (java_decl_ok_for_sibcall): Use output_class, not current_class. + (java_get_callee_fndecl): Use class local atable. + * jcf-parse.c + (always_initialize_class_p): Decl moved to java-tree.h. + (HANDLE_CLASS_INFO): Set output_class. + (read_class): Likewise. + (parse_class_file): Call gen_indirect_dispatch_tables. + (parse_zip_file_entries): Set output_class. + (java_parse_file): Set output_class. Don't emit symbol tables. + * java-tree.h (output_class): New. + Remove global declarations for otable, atable, and ctable. + (always_initialize_class_p): moved here from decl.c. + (DECL_OWNER): New. + (TYPE_ATABLE_METHODS, TYPE_ATABLE_SYMS_DECL, TYPE_ATABLE_DECL, + TYPE_OTABLE_METHODS, TYPE_OTABLE_SYMS_DECL, TYPE_OTABLE_DECL, + TYPE_CTABLE_DECL, TYPE_CATCH_CLASSES): New. + (struct lang_type): Add otable_methods, otable_decl, + otable_syms_decl, atable_methods, atable_decl, atable_syms_decl, + ctable_decl, catch_classes, type_to_runtime_map. + * expr.c (build_field_ref): Make otable, atable, and ctable class + local rather than global. + (build_known_method_ref): Likewise. + (build_invokeinterface): Likewise. + (java_expand_expr): Pass runtime type (rather than actual type) to + expand_start_catch. + * except.c (prepare_eh_table_type): Create TYPE_TO_RUNTIME_MAP for + this class. Look up each class in that map to delete duplicates. + (expand_end_java_handler): Pass runtime type (rather than actual + type) to expand_start_catch. + * decl.c: (always_initialize_class_p): Decl moved to java-tree.h. + (do_nothing): New. + (java_init_decl_processing): Rearrange things. Remove global + declarations of otable, atable, and ctable. + (java_init_decl_processing): Make lang_eh_runtime_type do_nothing. + (java_expand_body): Set output_class. + * constants.c (build_constant_data_ref): Use output_class, not + current_class. + (alloc_name_constant): Likewise. + * class.c (gen_indirect_dispatch_tables): New. + (build_class_ref): Generate hard reference to superclass, even if + using indirect dispatch. + (build_static_field_ref): Use class local atable. + (make_class_data): Generate hard reference to superclass, even if + using indirect dispatch. + Generate symbolic references to interfaces when using indirect + dispatch. + (make_class_data): Emit otable, atable, and ctable. + Make otable, atable, and ctable class local rather than global. + (emit_catch_table): Make otable, atable, and ctable class local + rather than global. + +2003-12-25 Andrew Pinski + + * parse.y (catch_clause_parameter): Fix typo. + + PR java/13404 + * parse.y: (catch_clause_parameter): Return early if $3, aka + formal_parameter, is null. + +2003-12-20 Kazu Hirata + + * class.c: Remove uses of "register" specifier in + declarations of arguments and local variables. + * decl.c: Likewise. + * expr.c: Likewise. + * gjavah.c: Likewise. + * jcf-dump.c: Likewise. + * jcf-io.c: Likewise. + * jcf-parse.c: Likewise. + * jcf-write.c: Likewise. + * keyword.h: Likewise. + * parse.y: Likewise. + * typeck.c: Likewise. + * verify.c: Likewise. + +2003-12-06 Kelley Cook + + * Make-lang.in (GCJ_CROSS_NAME): Delete. + (java.install_common, java.install-man): Adjust for above. + (java.uninstall): Likewise. + +2003-12-03 Michael Koch + + * class.c (make_class_data): + Push field value to 'hack_signers' instead of 'signers'. + * decl.c (java_init_decl_processing): + Push field 'hack_signers' instead of 'signers'. + +2003-12-03 Zack Weinberg + + * lex.h: Check both HAVE_ICONV and HAVE_ICONV_H before + including iconv.h. + +2003-12-03 Ralph Loader + + PR java/12374: + * parse.y (qualify_ambiguous_name): Remove lots of broken + field access processing - there's no need to do that here, + because we have resolve_field_access. Remove + RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else. + * java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't + used. + +2003-12-01 Jeff Sturm + + Fix PR java/13237 + * parse.y (java_complete_lhs): Save location prior to patching + CALL_EXPR. + +2003-11-25 Mohan Embar + + PR java/12548 + * resource.c (write_resource_constructor): Append + "_resource" to constructor identifier name. + +2003-11-25 Jeff Sturm + + Fix PR java/13183. + * constants.c (cpool_for_class): New function. + (outgoing_cpool): Remove global variable. + (alloc_name_constant): Use cpool_for_class. + (build_constants_constructor): Likewise. + * decl.c (java_expand_body): Set current_class. + * java-tree.h (outgoing_cpool) Remove declaration. + (init_outgoing_cpool): Likewise. + * jcf-parse.c (init_outgoing_cpool): Remove function. + (parse_class_file): Don't call init_outgoing_cpool. + * parse.y (java_complete_expand_methods): Don't call + init_outgoing_cpool. Don't save outgoing_cpool. + (java_expand_classes): Don't restore outgoing_cpool. + (java_finish_classes): Likewise. + +2003-11-24 Mohan Embar + + * Make-lang.in: (java.install-common) Add + symlink for $(target_noncanonical)-gcjh for + native builds. + +2003-11-20 Joseph S. Myers + + * Make-lang.in (java.extraclean): Delete. + +2003-11-20 Joseph S. Myers + + * Make-lang.in (check-java): Add. + +2003-11-19 Jeff Sturm + + Fix PR java/13024. + * except.c (prepare_eh_table_type): Allocate variable-sized + buffer `buf' with alloca. + +2003-11-17 Jeff Sturm + + Fix PR java/12857. + + decl.c (java_init_decl_processing): Don't initialize + class_not_found_type_node, no_class_def_found_type_node. + + java-tree.h (JTI_CLASS_NOT_FOUND_TYPE_NODE, + JTI_NO_CLASS_DEF_FOUND_TYPE_NODE): Remove from java_tree_index. + (class_not_found_type_node, no_class_def_found_type_node): + Don't define. + + parse.y (build_dot_class_method_invocation): Add this_class + argument. Qualify method invocations to a different class. + (create_new_parser_context): Initialize saved_data_ctx to 0. + (java_parser_context_save_global): Initialize saved_data_ctx to 1. + (build_dot_class_method): Don't load classes. Register + incomplete types. + (build_incomplete_class_ref): Special cases for interfaces + and inner classes. Move build_dot_class_method call to here... + (patch_incomplete_class_ref): ...from here. Pass current_class + to build_dot_class_method_invocation. + (build_assertion): Pass class_type to + build_dot_class_method_invocation. + (encapsulate_with_try_catch): Handle EXPR_WITH_FILE_LOCATION node. + +2003-11-17 Jeff Sturm + + Fix PR java/12739. + * java-tree.h (BLOCK_EMPTY_P): Define. + * parse.y (java_complete_lhs): Check for empty blocks + in TRY_FINALLY_EXPR case. + +2003-11-17 Andrew Haley + + * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New. + (struct lang_decl_var:freed): New variable. + * decl.c (poplevel): Mark local vars that have gone out of scope. + (push_jvm_slot): Don't use the RTL of a var that has gone out of + scope. + +2003-11-16 Jason Merrill + + * Make-lang.in (java.tags): Create TAGS.sub files in each directory + and TAGS files that include them for each front end. + +2003-11-15 Tom Tromey + + * gjavah.c (print_stub_or_jni): Pass `env' to FatalError. + +2003-11-12 Jason Merrill + + PR optimization/12547 + * lang.c (java_tree_inlining_walk_subtrees): Just walk + BLOCK_EXPR_BODY directly. + +2003-11-12 Andrew Haley + + PR java/11045 + * parse.y (fold_constant_for_init): Check that we really do have a + constant. + + PR java/11533 + * lang.c (merge_init_test_initialization): Clear DECL_INITIAL for + init_test_decls being inlined. + + PR java/12890: + * parse.y (do_resolve_class): Check return value from + breakdown_qualified(). + +2003-11-11 Tom Tromey + + PR java/12915: + * parse.y (merge_string_cste): Handle case where we have a + pointer that happens to be zero, not null_pointer_node. + +2003-11-10 Tom Tromey + + * jcf-parse.c (classify_zip_file): Correctly compare + filename_length against length of manifest file's name. + +2003-11-08 Tom Tromey + + PR java/12894: + * jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file. + +2003-11-06 Andrew Haley + + * expr.c (java_stack_swap): Make sure destination stack slots are + of the correct type. + +2003-11-03 Kelley Cook + + * Make-lang.in (dvi): Move targets to $(docobjdir). + (gcj.dvi): Simplify rule and adjust target. + (gcj.info): Simplify rule. + (gcj.pod): New intermediate rule. + (gcjh.pod): Likewise. + (jv-scan.pod): Likewise. + (jcf-dump.pod): Likewise. + (gij.pod): Likewise. + (jv-convert.pod): Likewise. + (rmic.pod): Likewise. + (rmiregistry.pod): Likewise. + (gcj.1): Delete. + (gcjh.1): Delete. + (jv-scan.1): Delete. + (jcf-dump.1): Delete. + (gij.1): Delete. + (jv-convert.1): Delete. + (rmic.1): Delete. + (rmiregistry.1): Delete. + +2003-11-02 Jeff Sturm + + Fixes PR java/12866. + * parse.y (resolve_qualified_expression_name): Move test + for outer field access methods from here... + (check_thrown_exceptions) ...to here. + +2003-11-01 Kelley Cook + + * .cvsignore: Delete. + +2003-10-28 Frank Ch. Eigler + + * verify.c (verify_jvm_instructions): Don't warn about legal + eh binding regions generated for example by jdk 1.4.1. + +2003-10-24 David S. Miller + + * jcf-parse.c (jcf_parse): Fix args to fatal_error(). + +2003-10-22 Andrew Haley + + * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. + (java_get_callee_fndecl): New. + + * jcf-parse.c (java_parse_file): Call emit_catch_table(). + + * java-tree.h (ctable_decl): New. + (catch_classes): New. + (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES. + + * decl.c (java_init_decl_processing): Add catch_class_type. + Add ctable_decl. + Add catch_classes field. + + * class.c (build_indirect_class_ref): Break out from + build_class_ref. + (make_field_value): Check flag_indirect_dispatch. + (make_class_data): Ditto. + Tidy uses of PUSH_FIELD_VALUE. + Add field catch_classes. + (make_catch_class_record): New. + + * java-tree.h (PUSH_FIELD_VALUE): Tidy. + +2003-10-22 Kazu Hirata + + * jcf-write.c: Follow spelling conventions. + * parse.y: Likewise. + +2003-10-22 Kazu Hirata + + * ChangeLog: Fix typos. + * expr.c: Fix comment typos. + * jcf-write.c: Likewise. + * lang.c: Likewise. + * lex.c: Likewise. + * mangle.c: Likewise. + * parse-scan.y: Likewise. + * parse.y: Likewise. + +2003-10-22 Tom Tromey + + * expr.c (expand_byte_code): Only warn about dead bytecode when + extra_warnings is set. + +2003-10-22 Bryce McKinlay + + Fix for PR java/12586. + * mangle.c (find_compression_record_match): Don't iterate through + package namespace elements unless they all match compression_table + entries. + +2003-10-20 Kelley Cook + + * Make-lang.in (info): Honor $(parsedir) and $(docobjdir). + (generate-manpages): Likewise. + (java.maintainer-clean): Likewise. + (gcj.info): Likewise. + (gcj.1): Likewise. + (gcjh.1): Likewise. + (jv-scan.1): Likewise. + (jcf-dump.1): Likewise. + (gij.1): Likewise. + (jv-convert.1): Likewise. + (rmic.1): Likewise. + (rmiregistry.1): Likewise. + (java.install-man): Likewise. + (parse-scan.o): Move and define complete compile line. + (parse.o): Likewise. + (jcf-tree-inline.o): Move. + +2003-10-20 Mark Mitchell + + * Make-lang.in (info): Update dependencies. + (java.install-info): Remove. + ($(srcdir)/java/gcj.info): Replace with ... + ($(docobjdir)/gcj.info): ... this. + +2003-10-14 Nathanael Nerode + + * Make-lang.in: Replace uses of $(target_alias) with + $(target_noncanonical). + +2003-10-09 Tom Tromey + + * decl.c (java_init_decl_processing): Declare signers field. + * class.c (make_class_data): Set signers field. + +2003-10-09 Jason Merrill + + * parse.y (patch_assignment): Use make_node to create a BLOCK. + * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a + POINTER_TYPE. + +2003-10-06 Mark Mitchell + + * Make-lang.in (java.info): Replace with ... + (info): ... this. + (java.dvi): Replace with ... + (dvi): ... this. + (java.generated-manpages): Replace with ... + +2003-10-03 Kelley Cook + + * builtins.c, jcf.h, jvspec.c: Remove PARAMS macros. + +2003-10-01 Andrew Haley + + * jcf-parse.c (java_parse_file): Write otable and atable. + * java-tree.h (atable_methods): New. + (atable_decl): New. + (atable_syms_decl): New. + (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL, + JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*. + (symbol_*type): Rename method_symbol* to symbol*type. + (emit_offset_symbol_table): Delete. + (emit_symbol_table): New. + (get_symbol_table_index): New. + (atable_type): New. + * expr.c (build_field_ref): Handle flag_indirect_dispatch. + (build_known_method_ref): Likewise. + (get_symbol_table_index): Rename from get_offset_table_index. + Parameterize to allow re-use by differing types of symbol table. + (build_invokevirtual): Pass table to get_offset_table_index. + * decl.c (java_init_decl_processing): Push types and decls for + atable and atable_syyms. + * class.c (build_static_field_ref): Handle flag_indirect_dispatch. + (make_class_data): Add new fields atable and atable_syms. + (emit_symbol_table): Rename from emit_offset_symbol_table. + Parameterize to allow re-use by different types of symbol table. + (build_symbol_entry): Renamed from build_method_symbols_entry. + +2003-09-30 Roger Sayle + + * jcf-write.c (generate_bytecode_insns): Implement evaluate-once + semantics for SAVE_EXPR, by caching the result in a temporary. + +2003-09-28 Richard Henderson + + * check-init.c (check_init): Save and restore input_location + instead of file and line separately. + * decl.c (java_expand_body): Likewise. + * jcf-write.c (generate_bytecode_insns): Likewise. + * parse.y (safe_layout_class): Likewise. + * jcf-parse.c (read_class, parse_class_file): Likewise. + (java_parse_file): Use %H for warning locator. + +2003-09-28 Roger Sayle + + * expr.c (java_check_reference): Use the semantics of COND_EXPRs + with void-type branches instead of using a COMPOUND_EXPR. + +2003-09-28 Jeff Sturm + + * decl.c (java_optimize_inline, dump_function): Remove. + * java-tree.h (java_optimize_inline): Remove declaration. + * jcf-parse.c (java_parse_file): Assume flag_unit_at_a_time is set. + * parse.y (source_end_java_method, java_expand_classes): + Likewise. Remove dead code. + +2003-09-27 Roger Sayle + + * lang.c (java_init_options): Set flag_evaluation_order. + * expr.c (force_evaluation_order): Don't attempt to force + evaluation order of binary operations using save_expr. + * parse.y (java_complete_lhs): No longer need to call + force_evaluation_order when constructing binary operators. + +2003-09-27 Alexandre Petit-Bianco + Bryce McKinlay + + PR java/1333: + * parse.y (not_accessible_field_error): New function. + (resolve_expression_name): Check field access permissions. + (resolve_qualified_expression_name): Use + not_accessible_field_error. + (resolve_qualified_expression_name): Likewise. + +2003-09-24 Rainer Orth + + * class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value. + +2003-09-23 Roger Sayle + + * jcf-write.c (generate_bytecode_insns): Optimize binary operations + with equal operands without side-effects. + +2003-09-22 Jeff Sturm + + * decl.c (java_init_decl_processing): Don't emit otable decls + if flag_indirect_dispatch is not set. + +2003-09-21 Richard Henderson + + * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, + resource.c: Revert. + +2003-09-21 Richard Henderson + + * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, + resource.c: Update for DECL_SOURCE_LOCATION rename and change to const. + +2003-09-20 Richard Henderson + + * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics. + +2003-09-18 Roger Sayle + + * expr.c (java_truthvalue_conversion): Remove FFS_EXPR case. + * check-init.c (check_init): Likewise. + +2003-09-18 Roger Sayle + + * jcf-write.c (generate_bytecode_insns): Add support for fconst_2. + +2003-09-16 Andrew Haley + + * jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR. + +2003-09-17 Ranjit Mathew + + Fixes PR java/9577 + * mangle.c (find_compression_record_match): Skip + over a "6JArray" (the array template mangled string) + IDENTIFIER_NODE. + (mangle_array_type): Correct minor typo. + (atms): Move definition to the beginning. + +2003-09-16 Bryce McKinlay + + * class.c (add_miranda_methods): Ensure super-interfaces are laid + out. Fix for PR java/12254. + +2003-09-11 Richard Henderson + + * parse.y (source_end_java_method): Update for new + cgraph_finalize_function argument. + +2003-09-09 Richard Henderson + + * parse.y (source_end_java_method): Update call to + cgraph_finalize_function. + +2003-09-03 Jeff Sturm + + * decl.c (java_expand_body): New function. + * expr.c (build_class_init): Set DECL_IGNORED_P. + * java-tree.h (start_complete_expand_method, + java_expand_body): Declare. + * jcf-parse.c (cgraph.h): Include. + (java_parse_file): Handle flag_unit_at_a_time. + * lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING, + LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define. + (java_estimate_num_insns): Use walk_tree_without_duplicates. + (java_start_inlining): New function. + * parse.h (java_finish_classes): Declare. + * parse.y: Include cgraph.h. + (block): Don't special-case empty block production. + (craft_constructor): Set DECL_INLINE. + (source_end_java_method): Handle flag_unit_at_a_time. + Replace inline code with call to java_expand_body. + (start_complete_expand_method): Remove static modifier. + (java_expand_method_bodies): Patch function tree for + class initialization and/or synchronization as needed. + Don't begin RTL expansion yet. + (java_expand_classes): Check flag_unit_at_a_time before + calling finish_class. + (java_finish_classes): New function. + (java_complete_lhs): Ensure COMPOUND_EXPR has non-NULL type. + (patch_assignment): Set DECL_CONTEXT on temporary variable. + (emit_test_initialization): Set DECL_IGNORED_P. + +2003-09-03 Roger Sayle + + * builtins.c (enum builtin_type): Delete unused enumeration. + * Make-lang.in (java/builtins.o): Remove built-types.def dependency. + +2003-08-28 Tom Tromey + + * gcj.texi (Extensions): Document gcjlib URLs. + +2003-08-20 Tom Tromey + + * gcj.texi (Extensions): Added xref. + (libgcj Runtime Properties): Document + gnu.gcj.runtime.VMClassLoader.library_control. + +2003-08-20 Andrew Haley + + * except.c (prepare_eh_table_type): Use new encoding for exception + handlers when using -fno-assume-compiled. + +2003-08-13 Tom Tromey + + * gcj.texi (Invoking gij): Document -X and -?. + +2003-08-13 Mohan Embar + + * Make-lang.in: Added missing win32-host.o to JAVA_OBJS, + GCJH_OBJS, JCFDUMP_OBJS + * win32-host.c: Removed the unnecessary and broken dependency + on jcf.h + +2003-08-11 Tom Tromey + + * parse.y (java_check_regular_methods): Typo fixes. Call + check_interface_throws_clauses. Use + check_concrete_throws_clauses. + (check_interface_throws_clauses): New function. + (check_concrete_throws_clauses): New function. + (hack_is_accessible_p): New function. + (find_most_specific_methods_list): Added FIXME. + * typeck.c (lookup_do): Use `flags' argument to decide what to + do. Reimplemented. + (lookup_argument_method_generic): New function. + (lookup_argument_method2): Removed. + * jcf.h (ACC_INVISIBLE): New define. + * jcf-write.c (generate_classfile): Skip invisible methods. + * class.c (add_miranda_methods): New function. + (layout_class_methods): Use it. + (get_access_flags_from_decl): Use ACC_INVISIBLE. + * java-tree.h (METHOD_INVISIBLE): New define. + (lang_decl_func) [invisible]: New field. + (lookup_argument_method_generic): Declare. + (SEARCH_INTERFACE): New define. + (SEARCH_SUPER): Likewise. + (SEARCH_ONLY_INTERFACE): Likewise. + (SEARCH_VISIBLE): Likewise. + (lookup_argument_method2): Removed declaration. + +2003-08-05 Tom Tromey + + Fix for PR java/11600: + * parse.y (java_complete_lhs): See whether we're calling a method + on an array. + (check_thrown_exceptions): Added `is_array_call' argument; + fixed `clone' checking; updated all callers. + +2003-08-05 Steven Bosscher + + * java-tree.h (DECL_ESTIMATED_INSNS): Remove (moved to tree.h). + +2003-08-03 Tom Tromey + + * java-tree.h (METHOD_TRANSIENT): Removed. + * decl.c (pushdecl): Removed some dead code. + * class.c (get_access_flags_from_decl): Can't have transient + method. + (add_method_1): Can't have a transient method. + +2003-07-28 Andreas Jaeger + + * jvspec.c: Convert to ISO C90 prototypes. + +2003-07-25 Nathan Sidwell + + * decl.c (force_poplevels): Fix warning call. + +2003-07-25 Gabriel Dos Reis + + * expr.c (expand_java_field_op): Don't use xxx_with_decl + (expand_java_field_op): Likewise. + * class.c (layout_class_method): Likewise + (emit_register_classes): Likewise. + * decl.c (pushdecl): Likewise. + (poplevel): Likewise. + (force_poplevels): Likewise. + (give_name_to_locals): Likewise. + * check-init.c (check_for_initialization): Likewise. + +2003-07-24 Jason Merrill + + * java-tree.h: Move boolean_type_node et al to the back end. + +2003-07-19 Kaveh R. Ghazi + + * class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary + casts. + +2003-07-19 Neil Booth + + * lang.opt: Don't show -MD_ and -MDD_. + +2003-07-18 Neil Booth + + * lang-options.h: Remove. + * lang.opt: Add help text. + +2003-07-15 Kazu Hirata + + * expr.c: Remove the last argument to expand_assignment(). + +2003-07-09 Jan Hubicka + + * java-tree.h (DECL_NUM_STMTS): Rename to... + (DECL_ESTIMATED_INSNS): ... this. + * lang.c (java_estimate_num_insns, java_estimate_num_insns_1): + New static functions. + (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define. + * parser.y (add_stmt_to_compound): Do not account statements. + +2003-07-08 Mark Wielaard + + * gcj.texi: CNI now expands to Compiled Native Interface. + +2003-07-08 Rainer Orth + + * Make-lang.in (java/gcj.dvi): Use PWD_COMMAND. + +2003-07-07 Nathan Sidwell + + * expr.c (expand_byte_code): Adjist emit_line_note call. + +2003-07-06 Neil Booth + + * lang.c (java_handle_option): Don't handle filenames. + +2003-07-02 Zack Weinberg + + * jcf-path.c: Don't default-define PATH_SEPARATOR nor + DIR_SEPARATOR. + Use FILENAME_CMP. + * jcf-write.c: Don't default-define DIR_SEPARATOR. + * jcf.h: Delete COMPARE_FILENAMES definition. + +2003-07-02 Neil Booth + + * lang.c (java_init_options): Update prototype. + +2003-07-01 Nathan Sidwell + + * decl.c (poplevel): Adjust define_label call. + +2003-06-27 Zack Weinberg + + * gjavah.c (flag_jni): Make non-static. + * parse-scan.y (ctxp): Make non-static. + + * class.c (build_method_symbols_entry) + * expr.c (get_offset_table_index) + * jcf-parse.c (jcf_parse): + Mark the definition static, matching the forward declaration. + +2003-06-26 Neil Booth + + * lang.c (java_handle_option): Don't check for missing arguments. + +2003-06-20 Nathan Sidwell + + * class.c (push_class): Use a location_t to save place. + (emit_register_classes): Set input_location. Adjust + expand_function_end call. + * resource.c (write_resource_constructor): Likewise. + * decl.c (end_java_method): Adjust expand_function_end call. + * parse.y (source_end_java_method): Likewise. + +2003-06-17 Robert Abeles + + * lang.c (java_handle_option): Likewise. + +2003-06-16 Neil Booth + + * lang.c (java_handle_option): Special-casing of optional + joined arguments no longer needed. + * lang.opt: Update switches that take optional argument. + +2003-06-15 Neil Booth + + * lang.opt: Declare Java. + * lang.c (java_init_options): Update. + +2003-06-15 Neil Booth + + * lang.c (version_flag): Rename to v_flag to avoid clash w/ toplev.h. + +2003-06-14 Neil Booth + + * lang-specs.h: Rewrite -MD and -MMD to append an underscore. + * lang.c (java_handle_option): -MD and -MMD have an underscore. + * lang.opt: -MD and -MMD have an underscore. + +2003-06-14 Nathan Sidwell + + * class.c (emit_register_classes): Adjust init_function_start + call. + * decl.c (complete_start_java_method): Likewise. + * resource.c (write_resource_constructor): Likewise. + +2003-06-14 Neil Booth + + * Make-lang.in: Update to use options.c and options.h. + * lang.c: Include options.h not j-options.h. + (java_handle_option): Abort on unrecognized option. + (java_init_options): Request Java switches. + +2003-06-11 Neil Booth + + * Make-lang.in: Handle mostlyclean. + +2003-06-11 Tom Tromey + + * lang.c (java_handle_option): Update dependency_tracking for + OPT_MF case. + + * lang.c (java_handle_option): OPT_fbootclasspath_ can take an + empty argument. + +2003-06-10 Andrew Haley + + * 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 + +2003-06-10 Andrew Haley + + * lang.c (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. + (java_decl_ok_for_sibcall): New. + +2003-06-09 Neil Booth + + * 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. + +2003-06-09 Nathan Sidwell + + * java-tree.h (DECL_FUNCTION_LAST_LINE): New. + (struct lang_decl_func): Add last_line field. + * parse.h (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, + DECL_SOURCE_LINE_LAST): Remove. + * parse.y (missing_return_error, finish_method_declaration, + lookup_cl, start_artificial_method_body, source_end_java_method, + start_complete_expand_method): Adjust. + +2003-06-08 Tom Tromey + + * jvspec.c (jvgenmain_spec): Added `*' after fassume-compiled and + fno-assume-compiled. + +2003-06-08 Roger Sayle + + * builtins.c (define_builtin_type, builtin_types): Delete. + (define_builtin): Rewritten to take just the built-in code, + the function's name, type and fallback library function name. + All built-ins used by Java are implicit and BUILT_IN_NORMAL. + (initialize_builtins): Overhaul to define the GCC builtins + used by gcj manually, providing the Java run-time's + implementations as the fallback library function. + +2003-06-08 Anthony Green + + * parse.y (patch_cast): Fix conversions from floating-point to + integral types. + +2003-06-08 Neil Booth + + * Make-lang.in: Update. + * lang.c: Include opts.h. Define cl_options_count and cl_options. + +2003-06-07 Neil Booth + + * lang.c (java_init_options): Update. + +2003-06-05 Jan Hubicka + + * Make-lang.in: Add support for stageprofile and stagefeedback + +2003-05-31 Roger Sayle + + * lang.c (java_init_options): Prescribe wrap-around two's + complement arithmetic overflow by setting flag_wrapv. + +2003-05-29 Roger Sayle + + * builtins.c (cos_builtin, sin_builtin, sqrt_builtin): Delete. + (builtin_record): Add an additional builtin_code field to + record which GCC built-in corresponds to the Java function. + (java_builtins): Add new entries for atan, atan2, exp, log, + pow and tan. + (max_builtin, min_builtin, abs_builtin): Perform constant + folding on the resulting tree. + (java_build_function_call_expr): Likewise, perform constant + folding on the resulting tree. + (initialize_builtins): The NULL creators are now allowed in + the java_builtins table, which is now terminated by an entry + with builtin_code == END_BUILTINS. + (check_for_builtin): Likewise. If the matching creator is + NULL, construct the call using java_build_function_call_expr + directly with the decl for the corresponding builtin_code. + +2003-05-23 Nathanael Nerode + + * win32-host.c: Normalize copyright boilerplate. + +2003-05-16 Kaveh R. Ghazi + + * parse.y (print_int_node): Use string concatentation on + HOST_WIDE_INT_PRINT_* format specifier to collapse multiple + function calls into one. + +2003-05-13 Zack Weinberg + + * jcf-parse.c, jcf-write.c, lex.c: Replace all calls to + fatal_io_error with calls to fatal_error; add ": %m" to the end of + all the affected error messages. + +2003-05-13 Richard Henderson + + * class.c (layout_class_method): Set DECL_EXTERNAL. + * decl.c (java_mark_decl_local, java_mark_class_local): New. + * java-tree.h (java_mark_class_local): Declare. + * jcf-parse.c (parse_class_file): Use it. + * parse.y (java_expand_classes): Likewise. + +2003-05-04 Nathan Sidwell + + * Make-lang.in (java/parse.o, java/parse-scan.o): Depend on input.h. + * lex.h: #include input.h. + * jv-scan.c (input_filename): Remove. + +2003-05-02 Tom Tromey + + PR java/10491: + * gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. + (handle_inner_classes): New function. + +2003-05-01 Tom Tromey + + PR java/10459: + * parse.y (finish_for_loop): Do nothing if update expression is a + EXPR_WFL_NODE wrapping nothing. + (java_complete_lhs) : Likewise. + +2003-05-02 Nathan Sidwell + + * lex.h (input_lineno): Remove declaration. + * parse-scan.y: #include input.h. + (input_filename): Remove declaration. + (input_location): Add definition. + (input_line): Remove definition. + +2003-05-01 Nathan Sidwell + + * lex.h (lineno): Rename to ... + (input_line): ... here + * parse-scan.y (lineno): Rename to ... + (input_line): ... here. + (reset_report): Rename lineno to input_line. + * check-init.c (check_init): Likewise. + * class.c (push_class): Likewise. + * decl.c (complete_start_java_method, end_java_method): Likewise. + * expr.c (expand_byte_code): Likewise. + * jcf-parse.c (give_name_to_class, parse_class_file): Likewise. + * jcf-write.c (generate_bytecode_insns): Likewise. + * lex.c (java_init_lex, java_allocate_new_line, + do_java_lex): Likewise. + * parse.h (YYNOT_TWICE): Likewise. + * parse.y (empty_statement, expression_statement, + java_pop_parser_context, java_parser_context_save_global, + yyerror, register_fields, method_header, safe_layout_class, + find_in_imports_on_demand, create_artificial_method, + source_end_java_method, start_complete_expand_method, + build_thisn_assign, java_complete_lhs, + maybe_absorb_scoping_block): Likewise. + +2003-04-20 Mohan Embar + + * jcf-io.c (find_class): use DIR_SEPARATOR instead of + '/' when computing java source filename + +2003-04-13 Tom Tromey + + * gjavah.c (print_c_decl): Indentation fix. + +2003-04-12 Zack Weinberg + + * class.c (make_field_value, make_method_value, get_dispatch_table) + (make_class_data, emit_offset_symbol_table) + * constants.c (build_constants_constructor) + * java-tree.h (START_RECORD_CONSTRUCTOR) + * parse.y (maybe_build_array_element_wfl): + Use build_constructor. + +2003-04-10 Eric Blake + + PR java/10253: + * parse.y (string_convert_int_cst): Always use at least one digit + in string conversion. Remove ASCII dependence. + (merge_string_cste): Fix merging of 3-byte UTF-8 characters. + +2003-03-16 Mohan Embar + + * Make-lang.in: added win32-host.c + * jcf.h: defined macro JCF_OPEN_EXACT_CASE which + resolves to open() on non-Win32 platforms and + Win32-specific jcf_open_exact_case() on Win32 + * jcf-io.c (find_class): use JCF_OPEN_EXACT_CASE + when trying .java and .class files + * win32-host.c: added to repository. Defines + Win32-specific jcf_open_exact_case() + +2003-04-10 Andrew Haley + + * jcf-write.c (struct jcf_partial): num_jsrs: new field. + (maybe_free_localvar): Renamed from localvar_free. + Add new arg, really. + (generate_bytecode_insns): Set new variable, jsrs. + Only free local vars if no jsr insns have been emittted. + Call maybe_free_localvar, not localvar_free. + +2003-03-30 Joseph S. Myers + + * gcj.texi: Remove @ at start of file. + +2003-03-25 Tom Tromey + + * parse.y (create_interface): Call CHECK_DEPRECATED. + +2003-03-23 Zack Weinberg + + * Make-lang.in: Link jcf-dump against $(LDEXP_LIB). + +2003-03-21 Zack Weinberg + + * javaop.h (jfloat, jdouble): Make them structures mirroring + the bit fields of IEEE float and double respectively. + (JFLOAT_FINITE, JFLOAT_QNAN_MASK, JFLOAT_EXP_BIAS, + JDOUBLE_FINITE, JDOUBLE_QNAN_MASK, JDOUBLE_EXP_BIAS): New. + (union Word, union DWord): Delete. + (WORD_TO_FLOAT, WORDS_TO_DOUBLE): Update to match. + + * gjavah.c (java_float_finite, java_double_finite, F_NAN_MASK, + D_NAN_MASK): Delete. + (jni_print_float, jni_print_double): New. Generate + hexadecimal floating constants. + (print_field_info): Use jni_print_float/double. + + * jcf-dump.c: Include math.h. Use ldexp/frexp to assemble + finite floating point numbers for output; special case + non-finite floats. + +2003-03-19 Nathanael Nerode + + * lang.c (java_dump_tree): Change return type from 'int' to 'bool'. + Replace 0 and 1 with true and false in return statements. + +2003-03-19 Tom Tromey + + * lex.c (do_java_lex): Renamed from java_lex. + (java_lex): New function. + Include timevar.h. + +2003-03-13 Tom Tromey + + * parse.y (resolve_inner_class): Error if qualifier is a primitive + type. + +2003-03-04 Andrew Haley + + * gjavah.c (is_first_data_member): New global variable. + (print_c_decl): If it's the first data member, align it as the + superclass. + (process_file): Set is_first_data_member. + +2003-03-11 Tom Tromey + + * parse.y (resolve_field_access): Initialize class if field is + found in another static field. + * expr.c (build_class_init): Don't optimize out initialization of + implemented interface. + +2003-03-11 Andrew Haley + + * jcf-io.c (caching_stat): Initialize origsep to remove compiler + warning. + +2003-03-10 Ranjit Mathew + + * jcf-io.c (caching_stat): Account for both DIR_SEPARATOR + and DIR_SEPARATOR_2 for a target. + Correct minor typos. + + * jcf-write.c (make_class_file_name): Take both DIR_SEPARATOR + and DIR_SEPARATOR_2 for a target into account. + +2003-03-08 Neil Booth + + * lang.c (java_init): Update prototype, move code to java_post_options. + (java_post_options): Similarly. + +2003-03-05 Ranjit Mathew + + * jcf.h (COMPARE_FILENAMES): New macro similar to "strcmp" to + compare file name components depending on the case-sensitivity + or otherwise of the host file system. + + * jcf-path.c (add_entry): Use COMPARE_FILENAMES instead of + "strcmp" to compare file name components. + Use IS_DIR_SEPARATOR instead of comparing directly against + DIR_SEPARATOR. + (jcf_path_extdirs_arg): Use IS_DIR_SEPARATOR instead of + comparing directly against DIR_SEPARATOR. + +2003-03-04 Tom Tromey + + * Make-lang.in (java.tags): New target. + +2003-03-01 Roger Sayle + + * java/builtins.c (builtin_type): Handle DEF_FUNCTION_TYPE_VAR_3. + (initialize_builtins): Handle DEF_FUNCTION_TYPE_VAR_3. + +2003-03-01 Tom Tromey + + * parse.y (jdep_resolve_class): Only check deprecation if we found + a decl. + +2003-02-28 Tom Tromey + + PR java/9695: + * class.c (maybe_layout_super_class): Always pass a WFL to + do_resolve_class. + * parse.y (do_resolve_class): Updated comment to explain + parameters. + +2003-02-26 Tom Tromey + + * jcf-write.c (generate_classfile): Check whether class is + deprecated before writing attribute count. + +2003-02-25 Roger Sayle + + * java/decl.c (java_init_decl_processing): Get soft_fmod_node from + built_in_decls[BUILT_IN_FMOD] rather than define it ourselves. + +2003-02-23 Tom Tromey + + * lang-options.h: Added -Wdeprecated. + * gcj.texi (Warnings): Document -Wdeprecated. + * java-tree.h (flag_deprecated): Declare. + * lang.c (lang_W_options): Added deprecated. + (flag_deprecated): New global. + * chartables.h: Rebuilt. + * gen-table.pl (process_one): Look at whitespace. + (print_tables): Define LETTER_SPACE, LETTER_MASK. + * parse.h (CLEAR_DEPRECATED): New macro. + (CHECK_DEPRECATED_NO_RESET): New macro. + * jcf-parse.c (handle_deprecated): New function. + (HANDLE_DEPRECATED_ATTRIBUTE): New define. + * jcf-reader.c (get_attribute): Handle Deprecated attribute. + * parse.y (resolve_type_during_patch): Check deprecation. + (jdep_resolve_class): Likewise. + (process_imports): Likewise. + (resolve_expression_name): Likewise. + (check_deprecation): Strip arrays from decl. Check + flag_deprecated. + (patch_method_invocation): Also check the particular constructor + for deprecation. + (register_fields): Use CHECK_DEPRECATED_NO_RESET in loop. + * jcf-write.c (append_deprecated_attribute): New function. + (generate_classfile): Generate deprecated attribute when + appropriate. + * lex.c (java_parse_doc_section): Return type now void. Rewrote. + (java_lex) [case '*']: Simplify logic. + (java_start_char_p): Use LETTER_MASK. + (java_part_char_p): Likewise. + (java_space_char_p): New function. + +2003-02-20 Nathan Sidwell + + Change base class access representation. + * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC. + (add_interface_do): Likewise. + +2003-02-12 Ranjit Mathew + + * decl.c (java_init_decl_processing): Change + soft_lookupjnimethod_node to reflect the change in + signature of _Jv_LookupJNIMethod in libjava/jni.cc + * expr.c (build_jni_stub): Calculate and pass the size + on the stack of the arguments to a JNI function. Use + new target macro MODIFY_JNI_METHOD_CALL to allow a + target to modify the call to a JNI method. + +2003-02-08 Roger Sayle + + * jcf-io.c (java_or_class_file): Use libiberty's lbasename + instead of basename to avoid compiler warnings on Tru64. + +2003-02-04 Joseph S. Myers + + * gcj.texi: Update to GFDL 1.2. + +2003-01-31 Andrew Haley + + * parse.y (java_expand_classes): Scan the whole class list looking + for access methods that haven't yet been expanded. + +2003-01-31 Adrian Bunk + + Fix for java/4269: + + * jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO + to fix bootstrap on sparc-unknown-netbsdelf1.5. + * jcf-parse.c: Likewise. + +2003-01-31 Mark Wielaard + + * gjavah.c (throwable_p): Allocate 1 more byte for string. + +2003-01-31 Nathan Sidwell + + * class.c (make_class): Use BINFO_ELTS. + (set_super_info): Likewse. + (add_interface_do): Likewise. + +2003-01-30 Tom Tromey + + * jcf-parse.c (read_class): Update identifier's class value if it + changed during parsing. + +2003-01-30 Loren James Rittle + + * Make-lang.in (po-generated): Find the targets in $(parsedir). + Propagate change to all other rules as required. + (java/parse-scan.o): Add explicit dependency on + $(parsedir)/java/parse-scan.c . + +2003-01-29 Tom Tromey + + * parse.y (patch_assignment): Only transform the rhs of an + assignment when compiling to native. + +2003-01-28 Tom Tromey + + * jcf-write.c (generate_bytecode_conditional): Typo fixes. + +2003-01-28 Tom Tromey + + * lex.c (java_lex): Don't include UEOF as part of token. + (java_read_unicode): Error if \u sequence prematurely terminated. + +2003-01-27 Tom Tromey + + * parse.y (java_check_regular_methods): Check for construct after + checking types in throws clause. + +2003-01-24 Tom Tromey + + * class.c (build_static_field_ref): Only a String or numeric field + can fold to a constant. + +2003-01-23 Tom Tromey + + * jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of + file name in resource buffer. + +2003-01-23 Tom Tromey + + * expr.c (build_known_method_ref): Use method's context to find + method table index. + +2003-01-23 Tom Tromey + + * constants.c (set_constant_entry): Allocated cleared memory. + +2003-01-22 Tom Tromey + + * java-tree.h: Don't use PARAMS. + * resource.c: Add prototypes for all functions. + (write_resource_constructor): Use `const char *' to avoid + warning. + +2003-01-22 Nathanael Nerode + + * jcf-parse.c (process_zip_dir): Remove unused variable. + +2003-01-22 Tom Tromey + + * expr.c (build_invokeinterface): Abort if method's context is not + an interface. + +2003-01-22 Tom Tromey + + * gcj.texi (Input and output files): Mention non-class entries. + * decl.c (java_init_decl_processing): Call + init_resource_processing. + * java-tree.h (compile_resource_data, write_resource_constructor, + compile_resource_file, init_resource_processing): Declare. + * config-lang.in (gtfiles): Added resource.c. + * Make-lang.in (gt-java-resource.h): New target. + (JAVA_OBJS): Added resource.o. + (java/resource.o): New target. + * resource.c: New file. + * class.c (compile_resource_file): Moved to resource.c. + (registerResource_libfunc): Likewise. + (utf8_decl_list): Mark with GTY; now static. + * jcf-parse.c (classify_zip_file): New function. + (parse_zip_file_entries): Use it; compile .properties files. + (process_zip_dir): Use classify_zip_file and compute_class_name. + Don't write class name into zip directory. + (java_parse_file): Call write_resource_constructor. + (compute_class_name): New function. + * jcf-io.c (read_zip_member): Reindented. + +2003-01-21 Tom Tromey + + * class.c (supers_all_compiled): New function. + (make_class_data): Use it. + +2003-01-21 Tom Tromey + + * parse.y (method_header): Native method can't be strictfp. + No method can be transient or volatile. + +2003-01-21 Kaveh R. Ghazi + + Make-lang.in (jvspec.o-warn): Add -Wno-error. + +2003-01-18 Kazu Hirata + + * check-init.c: Fix comment typos. + * class.c: Likewise. + * constants.c: Likewise. + * decl.c: Likewise. + * except.c: Likewise. + * expr.c: Likewise. + * java-except.h: Likewise. + * java-tree.h: Likewise. + * javaop.h: Likewise. + * jcf-dump.c: Likewise. + * jcf-io.c: Likewise. + * jcf-parse.c: Likewise. + * jcf-write.c: Likewise. + * lang.c: Likewise. + * mangle.c: Likewise. + * typeck.c: Likewise. + * verify.c: Likewise. + +2003-01-18 Kaveh R. Ghazi + + * Make-lang.in (java/jcf-write.o): Depend on $(TM_P_H). + * jcf-write.c: Include "tm_p.h". + +2003-01-17 Kaveh R. Ghazi + + * jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*. + +2003-01-16 Kaveh R. Ghazi + + * builtins.c (java_build_function_call_expr): Renamed from + build_function_call_expr. All callers changed. + + * Make-lang.in (java/jcf-parse.o): Depend on $(TM_P_H). + * jcf-parse.c: Include tm_p.h. + + * jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned + warning. + +2003-01-14 Tom Tromey + + * class.c (make_class_data): Check that super is compiled before + building class reference to it. + +2003-01-14 Andrew Haley + + * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a + varargs function -- correct. + +2003-01-14 Andrew Haley + + * decl.c (java_init_decl_processing): Temporarily back out previous patch. + +2003-01-14 Andrew Haley + + * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a + varargs function -- correct. + + * parse.y (patch_assignment): Copy the rhs of an assignment into a + temporary if the RHS is a reference. + +2003-01-11 Kaveh R. Ghazi + + * Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf. + * keyword.h: Regenerated. + + * All Files: Convert to ISO C style function definitions. + +2003-01-09 Nathanael Nerode + + * parse.y (check_pkg_class_access): ANSIfy definition. + +2003-01-09 Kaveh R. Ghazi + + * decl.c, parse-scan.y, parse.y: Don't cast return value of + xmalloc et al. + + * class.c, gjavah.c, parse.y, verify.c: Don't use PTR. + +2003-01-09 Geoffrey Keating + + Merge from pch-branch: + + 2002-12-02 Geoffrey Keating + + * Make-lang.in (java/gjavah.o): Update dependencies. + * gjavah.c: Include ggc.h. + + 2002-08-16 Geoffrey Keating + + * Make-lang.in (GCJH_OBJS): Add ggc-none.o. + (JCFDUMP_OBJS): Add ggc-none.o. + (java/jcf-dump.o): Depend on GGC_H. + * jcf-reader.c (jcf_parse_constant_pool): Use ggc_alloc to allocate + CPool substructures. + * jcf-parse.c (process_zip_dir): Use ggc_alloc to allocate JCFs. + * jcf-dump.c: Include ggc.h. + + 2002-08-08 Geoffrey Keating + + * jcf.h (union cpool_entry): New. + (struct CPool): Use gengtype to mark. Change field 'data' to be + an array of unions. + (struct JCF): Use gengtype to mark. + (CPOOL_UINT): Update for new cpool_entry type. + (CPOOL_USHORT1): Likewise. + (CPOOL_USHORT2): Likewise. + (CPOOL_FINISH): Use GC to free cpool subfields. + * parse.h (struct parser_ctxt): Mark field current_jcf. + * lex.c (java_init_lex): Use GC to allocate struct JCF. + * jcf-parse.c (HANDLE_CONSTANT_Utf8): Update for new cpool_entry type. + (main_jcf): Use gengtype to mark. + (ggc_mark_jcf): Delete. + (get_constant): Update for new cpool_entry type. + (give_name_to_class): Likewise. + (get_class_constant): Likewise. + (init_outgoing_cpool): Use GGC to allocate struct CPool. + (java_parse_file): Use GGC to allocate struct JCF. + (init_jcf_parse): Don't call ggc_add_root. + * jcf-reader.c (jcf_parse_constant_pool): Update for new + cpool_entry type. + * java-tree.h (current_jcf): Use gengtype to mark. + (CPOOL_UTF): Update for new cpool_entry type. + (outgoing_cpool): Use gengtype to mark. + (struct lang_type): GC struct JCF and struct CPool. + * config-lang.in (gtfiles): Add jcf.h. + * constants.c (find_tree_constant): New. + (set_constant_entry): Allocate cpool subfields using GGC. Update + for new cpool_entry type. + (find_constant1): Update for new cpool_entry type. + (find_constant2): Likewise. + (find_utf8_constant): Use find_tree_constant. + (find_class_or_string_constant): Remove unnecessary cast to jword. + Update for new cpool_entry type. + (count_constant_pool_bytes): Update for new cpool_entry type. + (write_constant_pool): Likewise. + (alloc_name_constant): Use find_tree_constant. + (build_constants_constructor): Update for new cpool_entry type. + + 2002-08-08 Geoffrey Keating + + * parse.y (mark_parser_ctxt): Delete. + (goal): Don't use ggc_add_root. + (create_new_parser_context): Use GC to allocate struct parser_ctxt. + (java_pop_parser_context): Let GC free parser_ctxt. + (java_parser_context_resume): Likewise. + * parse.h (struct parser_ctxt): Use gengtype to mark. + (ctxp): Likewise. + (ctxp_for_generation): Likewise. + * lex.h (struct java_lc_s): Mark for gengtype. + (java_lexer): Rearrange for gengtype. + * config-lang.in (gtfiles): Add lex.h, parse.h. + +2003-01-09 Kaveh R. Ghazi + + * All Files: Remove PARAMS macro. + + * expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c, + jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or + `__STDC__' macros. + + * jv-scan.c, parse.y: Remove VPARAMS, VA_OPEN, VA_FIXEDARG and + VA_CLOSE. + +2003-01-09 Christian Cornelssen + + * Make-lang.in (java.install-common, java.uninstall, + java.install-info, java.install-man): Prepend $(DESTDIR) + to destination paths in all (un)installation commands. + (java.install-common): Rewrite $(LN) command to support + DESTDIR with "ln" as well as with "ln -s". + +2003-01-08 Nathanael Nerode + + * java-tree.h: Protect against multiple inclusion. + +2003-01-07 Tom Tromey + + * class.c (add_assume_compiled): Don't adjust parent if we're + already at the root of tree. + +2003-01-05 Kaveh R. Ghazi + + * lang.c (dump_compound_expr): Prototype. + +2003-01-03 Tom Tromey + + Fix for PR java/8712: + * expr.c (build_instanceof): Build an NE_EXPR, not a COND_EXPR, + when simply checking against `null'. + +2003-01-03 Tom Tromey + + * gcj.texi (Standard Properties): Document http.proxyHost and + http.proxyPort. + + * gcj.texi (GNU Classpath Properties): Document new properties. + +2003-01-02 Steven Bosscher + + * java/jcf-reader.c, java/jvgenmain.c, java/keyword.gperf, + java/lang-options.h, java/mangle.c, java/mangle_name.c, + java/xref.c, java/zextract.c,java/zipfile.h: Fix copyright years. + +2003-01-01 Steven Bosscher + + * Make-lang.in, boehm.c, buffer.c, + buffer.h, builtins.c, class.c, + config-lang.in, constants.c, + convert.h, decl.c, except.c, + expr.c, java-except.h, + java-tree.h, javaop.def, + jcf-parse.c, jcf-write.c, + jv-scan.c, jvgenmain.c, + jvspec.c, keyword.gperf, + keyword.h, lang-options.h, + lang-specs.h, lang.c, lex.c, + lex.h, mangle.c, mangle_name.c, + parse-scan.y, parse.h, parse.y, + typeck.c, verify.c, xref.c, + xref.h: Replace "GNU CC" with + "GCC" in the copyright header. + + * check-init.c, gjavah.c, javaop.h, + jcf-depend.c, jcf-dump.c, jcf-io.c, + jcf-path.c, jcf-reader.c, jcf.h, + zextract.c, zipfile.h: These files are + "part of GCC". Also say "GCC" not "GNU CC". + +2002-12-30 DJ Delorie + + * Make-lang.in: Protect against texi2pod/pod2man failing. + +2002-12-28 Joseph S. Myers + + * gcj.texi: Use @copying. + +2002-12-27 Mark Mitchell + + * gjavah.c (print_name_for_stub_or_jni): Adjust call to + print_cxx_classname. + (print_cxx_classname): Add add_scope parameter. + (print_class_decls): Do not emit a semicolon after the extern + "Java" block. + (process_file): Adjust calls to print_cxx_classname. + +2002-12-23 Joseph S. Myers + + * gcj.texi: Include Cover Texts in man page. + +2002-12-23 Jeff Sturm + + * class.c (build_static_field_ref): Check FIELD_FINAL. + + * constants.c (alloc_class_constant): Use TYPE_CPOOL_DATA_REF + instead of current_constant_pool_data_ref. + * java-tree.h (current_constant_pool_data_ref): Undefine. + (JTI_CURRENT_CONSTANT_POOL_DATA_REF): Remove. + * jcf-parse.c (init_outgoing_cpool): Don't initialize + current_constant_pool_data_ref. + + * except.c (prepare_eh_table_type ): Use DECL_NAME of class type, + not build_internal_class_name. + + * parse.y (patch_incomplete_class_ref): Always emit `class$' method. + Use it when class ref isn't certain to be compiled. + +2002-12-23 Joseph S. Myers + + * gcj.texi: Include gcc-common.texi. + * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Depend on + $(srcdir)/doc/include/gcc-common.texi. + +2002-12-22 Anthony Green + + * gcj.texi (Limitations): Add note about org.xml.sax and + org.w3c.dom. + +2002-12-20 Tom Tromey + + * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Handle case + where minimum case value is Integer.MIN_VALUE. + Fixes PR java/8955. + +2002-12-18 Andrew Haley + + * parse.y (patch_invoke): Force evaluation order when `check' is + set. For PR libgcj/8945. + +2002-12-16 Mark Mitchell + + * gcj.texi: Change version number to 3.4. + +2002-12-05 Ranjit Mathew + Andrew Haley + + * parse.y (source_end_java_method): Remove custom encoding of line + numbers for a function decl before passing it to the back end. + +2002-12-03 Andrew Haley + + * class.c (make_class_data): New field, "chain". + * decl.c (java_init_decl_processing): Likewise. + +2002-12-02 Tom Tromey + + For PR java/8740: + * parse.y (do_resolve_class): Handle qualified name via + recursion. + +2002-11-30 Zack Weinberg + + * boehm.c, buffer.c, builtins.c, check-init.c, class.c, + constants.c, decl.c, except.c, expr.c, gjavah.c, jcf-depend.c, + jcf-dump.c, jcf-io.c, jcf-parse.c, jcf-path.c, jcf-write.c, + jv-scan.c, jvgenmain.c, jvspec.c, lang.c, mangle.c, mangle_name.c, + parse-scan.y, parse.y, typeck.c, verify.c, xref.c, zextract.c: + Include coretypes.h and tm.h. + * Make-lang.in: Update dependencies. + +2002-11-27 Kaveh R. Ghazi + + * decl.c (java_init_decl_processing): Use `LL' on 64-bit constant. + +2002-11-25 Diego Novillo + + * jcf-reader.c: Don't expand JCF_readu4 inside the + expansion of JCF_SKIP. + +2002-11-25 Diego Novillo + + * jcf-reader.c: Don't expand JCF_readu4 inside the + expansion of JCF_SKIP. + +2002-11-22 Tom Tromey + + * parse.y (patch_binop): Cast right hand side of shift expression + to `int'. Fixes PR java/8676. + +2002-11-22 Ranjit Mathew + Andrew Haley + + * gcc/java/jcf-write.c (write_classfile): Remove target + class file, if it exists, before renaming the temporary + class file to it. + +2002-11-19 Jason Thorpe + + * jvspec.c (lang_specific_spec_functions): New. + +2002-11-18 Tom Tromey + + Fix for PR java/7912: + * expr.c (can_widen_reference_to): Allow cast of array to + Cloneable or Serializable. + * java-tree.h (java_lang_cloneable_identifier_node): Declare. + (java_io_serializable_identifier_node): Likewise. + * parse.y (java_lang_cloneable, java_io_serializable): Removed. + (valid_ref_assignconv_cast_p): Use new identifier nodes. + * lex.c (java_init_lex): Don't initialize java_lang_cloneable and + java_io_serializable. + * decl.c (java_init_decl_processing): Initialize + java_lang_cloneable_identifier_node and + java_io_serializable_identifier_node. + (java_lang_cloneable_identifier_node): New global. + (java_io_serializable_identifier_node): Likewise. + +2002-11-14 Jens-Michael Hoffmann + + * buffer.c: Remove unnecessary casts. + * check-init.c: Likewise. + * class.c: Likewise. + * constants.c: Likewise. + * decl.c: Likewise. + * except.c: Likewise. + * gjavah.c: Likewise. + * jcf-io.c: Likewise. + * jcf-parse.c: Likewise. + * jcf-path.c: Likewise. + * jvspec.c: Likewise. + * lang.c: Likewise. + * lex.c: Likewise. + * verify.c: Likewise. + +2002-11-06 Tom Tromey + + * gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in + a JNI header. + +2002-11-05 Tom Tromey + + Fix for PR java/6388. + * lex.h (JAVA_INTEGRAL_RANGE_ERROR): Wrap in do...while. + * java-tree.h (enum java_tree_index): New values + JTI_DECIMAL_INT_MAX_NODE, JTI_DECIMAL_LONG_MAX_NODE. + (decimal_int_max, decimal_long_max): New defines. + * lex.c (yylex): Rewrote range checking. Sign extend literals. + (error_if_numeric_overflow): Rewrote range checking. + * decl.c (java_init_decl_processing): Initialize decimal_int_max, + decimal_long_max. + +2002-11-02 Tom Tromey + + * java-tree.h: Move JV_STATE_ERROR before JV_STATE_DONE. + + * class.c (make_method_value): Put class name, not signature, into + `throws' field. For PR java/8415. + +2002-10-24 Tom Tromey + + * gcj.texi (Invoking gij): Document --showversion. + (Standard Properties): java.library.path now set. + +2002-10-23 Tom Tromey + + * gjavah.c (decode_signature_piece): In JNI mode, print + `jobjectArray' when array depth is nonzero. + Fixes PR java/8296. + +2002-10-15 Andrew Haley + + * parse.y (patch_invoke): Call force_evaluation_order on a static + arg list. + (resolve_qualified_expression_name): Call force_evaluation_order + on a arg list that is part of a Qualified Expression Name. + + * lang.c (dump_compound_expr): New. + (java_dump_tree): New. + +2002-10-20 Ranjit Mathew + + * gcj.texi: Added item describing the GCJ runtime property + "gnu.gcj.progname". + +2002-10-15 Richard Henderson + + * jcf-parse.c (get_constant): Fix type warning. + +2002-10-15 Andrew Haley + + * java-tree.h (java_inlining_merge_static_initializers): Declare. + (java_inlining_map_static_initializers): Declare. + +2002-10-14 Andrew Haley + + * tree-inline.c (remap_block): All local class initialization + flags go in the outermost scope. + (expand_call_inline): Call java_inlining_map_static_initializers. + (expand_call_inline): Call java_inlining_merge_static_initializers. + * java/lang.c (merge_init_test_initialization): New. + (java_inlining_merge_static_initializers): New. + (inline_init_test_initialization): New. + (java_inlining_map_static_initializers): New. + +2002-10-11 Mark Wielaard + + * gcj.texi (Compatibility): Add Limitations and Extensions section. + +2002-10-10 Kaveh R. Ghazi + + * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. + +2002-10-09 Kaveh R. Ghazi + + * parse.y (merge_string_cste): Add parentheses around & within |. + +2002-10-08 Tom Tromey + + * parse.y (variable_declarator_id): Simplify error path for + array declarator error. For PR java/8003. + +2002-10-08 Zack Weinberg + + * gjavah.c, jcf-dump.c, jv-scan.c: Globally replace GCCBUGURL with + bug_report_url. + +2002-10-08 Andrew Haley + + * parse.y (attach_init_test_initialization_flags): Check for + error_mark_node. + +2002-10-07 Anthony Green + + * parse.y (merge_string_cste): Fix bug in string concatenation. + +2002-10-03 Michael Koch + + * gcj.texi (Standard properties): + Change default of java.awt.toolkit to gnu.awt.gtk.GtkToolkit. + +2002-10-02 Roger Sayle + + PR optimization/6627 + * lang.c (java_init): If storing the vbit in function + pointers, ensure that force_align_functions_log is atleast + one to aid compatability with g++ vtables. + +2002-10-01 Nathan Sidwell + + * jcf-dump.c (print_constant, case CONSTANT_float): Don't fall + foul of type-based aliasing. + +2002-09-30 Anthony Green + + * gcj.texi (Invoking jv-scan): Fix texinfo. + +2002-09-28 Anthony Green + + * gcj.texi (Invoking jv-scan): Add --no-assert documentation. + (Code Generation): Add -fno-assert documentation. + * jv-scan.c (flag_assert): New global. + (options): Add assert option. + (help): Add --no-assert documentation. + * parse-scan.y (flag_assert): New global. + * lang.c (lang_f_options): Add -fassert/-fno-assert support. + (flag_assert): New global. + * java-tree.h (flag_assert): New global. + * lex.c (java_lex): Obey flag_assert. + * jvspec.c (jvgenmain_spec): Strip -fassert/-fno-assert when + calling cc1. + +2002-09-26 Andrew Haley + + * expr.c (build_java_array_length_access): Check for null pointer. + * expr.c (expand_java_arrayload): Likewise. + +2002-09-21 Richard Henderson + + * jcf-parse.c (get_constant): Decode from IEEE no matter + what the target format. + +2002-09-20 Kazu Hirata + + * ChangeLog: Follow spelling conventions. + * class.c: Likewise. + * decl.c: Likewise. + * expr.c: Likewise. + * gjavah.c: Likewise. + * java-tree.h: Likewise. + * jcf-dump.c: Likewise. + * jcf-parse.c: Likewise. + * jvspec.c: Likewise. + * lang.c: Likewise. + * mangle.c: Likewise. + * parse.y: Likewise. + +2002-09-17 Tom Tromey + + * lex.c (java_read_unicode_collapsing_terminators): Handle case + where \r appears at EOF. Fixes PR java/7950. + +2002-09-16 Volker Reichelt + + * jvspec.c (lang_specific_driver): Remove unused variable. + +2002-09-16 Geoffrey Keating + + * java-tree.h (union lang_tree_node): Add chain_next option. + +2002-09-16 Richard Henderson + + * jcf-parse.c (get_constant): Runtime check for IEEE format; + use new real.h interface. + * jcf-write.c (find_constant_index): Use new real.h interface. + * lex.c (IS_ZERO): Use REAL_VALUES_EQUAL. + +2002-09-15 Kazu Hirata + + * lang.c: Follow spelling conventions. + +2002-09-11 Per Bothner + + * parse.y (fold_constant_for_init): If a VAR_DECL, convert numerical + constant to the type of the field. + (java_complete_tree): Remove now-redundant code. + + * parse.y (fold_constant_for_init): 'null' is not a constant expr. + +2002-09-03 Jesse Rosenstock + + For PR java/5794: + * verify.c (verify_jvm_instructions) [OPCODE_jsr]: Only push the + return label if a ret instruction for the jsr has been reached. + +2002-09-09 Ranjit Mathew + + * parse.y (DIR_SEPARATOR): Don't define. + (check_class_interface_creation): Use IS_DIR_SEPARATOR. + +2002-08-28 Andrew Haley + + * verify.c (verify_jvm_instructions): Allow exception handler + inside code that is being protected, but generate a warning. + * except.c (link_handler): Initialize `expanded' in new eh_range. + (binding_depth, is_class_level, current_pc): Declare extern. + +2002-09-01 Mark Wielaard + + * gcj.texi: Add chapter about system properties. + Fixed some typos. + +2002-08-26 Tom Tromey + + * parse.y (try_builtin_assignconv): Allow narrowing primitive + conversion if RHS_TYPE is byte, short, or char. + +2002-08-22 Tom Tromey + + * gcj.texi (Invoking gij): Document -cp and -classpath. + +2002-08-21 Tom Tromey + + * Make-lang.in (java/jcf-path.o): Use $(datadir), not + $(prefix)/share. For PR libgcj/7633. + + For PR java/6005 and PR java/7611: + * lang.c (LANG_HOOKS_CAN_USE_BITFIELDS_P): New define. + (java_can_use_bit_fields_p): New function. + +2002-08-16 Tom Tromey + + * gcj.texi (Class Initialization): Mention class initialization of + arrays. + +2002-07-30 Andrew Haley + + * Make-lang.in (java-tree-inline.o): New. + (JAVA_OBJS): Add java-tree-inline.o. + * parse.y (source_end_java_method): Call java_optimize_inline. + (java_expand_method_bodies): Save method's tree in + DECL_SAVED_TREE. + (add_stmt_to_compound): Keep track of the number of statments. + * lang.c (java_init): Enable flag_inline_trees. + (java_post_options): If flag_inline_functions is on, enable + flag_inline_trees instread. + (decl_constant_value): New. + (java_tree_inlining_walk_subtrees): New. + * java-tree.h (DECL_NUM_STMTS): New macro. + (java_optimize_inline): Declare. + * expr.c (java_expand_expr): Allow a BLOCK to return a value. + Handle a LABEL_EXPR. + * decl.c (build_result_decl): If we already have a DECL_RESULT + don't make another. + (dump_function): New. + (java_optimize_inline): New. + (dump_function): New. + +2002-08-13 Jesse Rosenstock + + For PR java/7483: + * parse.y (build_assertion): Invert return from + desiredAssertionStatus. + +2002-08-08 Bryce McKinlay + + * jcf-write.c (get_access_flags): Return correct access flags for + private and protected inner classes. + +2002-08-08 Nathan Sidwell + + * java/Make-lang.in (java.mostlyclean): Remove coverage files. + +2002-08-05 Geoffrey Keating + + * mangle_name.c: Don't include obstack.h twice. + * xref.c: Don't include obstack.h. + +2002-08-04 Geoffrey Keating + + * class.c: (permanent_obstack): Delete declaration. + * constants.c: (permanent_obstack): Delete declaration. + * except.c: (permanent_obstack): Delete declaration. + * expr.c: (permanent_obstack): Delete declaration. + * jcf-parse.c: (permanent_obstack): Delete declaration. + (saveable_obstack): Delete declaration. + * parse.h: (permanent_obstack): Delete declaration. + * typeck.c: (permanent_obstack): Delete declaration. + +2002-08-04 Joseph S. Myers + + * gcj.texi (version-gcc): Increase to 3.3. + +2002-07-22 Tom Tromey + + * lex.c (java_lex): Check for `e' or `E' after 0. + +2002-07-21 Richard Henderson + + * lang.c (java_unsafe_for_reeval): New. + (LANG_HOOKS_UNSAFE_FOR_REEVAL): New. + +2002-07-21 Neil Booth + + * jcf-path.c (GET_ENV_PATH_LIST): Remove. + (jcf_path_init): Use GET_ENVIRONMENT. + +2002-07-10 Roger Sayle + Zack Weinberg + + * builtins.c (initialize_builtins): Remove defines that + handled C/C++ specific junk hereby removed from builtins.def. + +2002-07-07 Neil Booth + + * lang.c (java_post_options): Update prototype. + +2002-07-05 Roger Sayle + + * builtins.c (initialize_builtins): Ignore the additional + parameter to DEF_BUILTIN. Handle more C/C++ specific junk in + the builtins.def file. + +2002-07-01 Tom Tromey + + For PR libgcj/7073: + * parse.y (patch_incomplete_class_ref): Handle VOID_TYPE + specially. + +2002-07-01 Roger Sayle + + * java/decl.c (builtin_function): Accept additional parameter. + (java_init_decl_processing): Pass an additional NULL_TREE + argument to builtin_function. + +2002-06-29 T.J. Mather + + * gcj.texi: Fixed gcj invocation example so that it compiles. + +2002-06-26 Kaveh R. Ghazi + + * lex.c (java_init_lex): Avoid incorrect hardcoded constant 11. + * parse.y (mark_parser_ctxt): Likewise. + (check_modifiers, declare_local_variables): Avoid incorrect + hardcoded constant 10. + + * lex.c (java_read_char): Avoid "comparison is always true" + warning. + +2002-06-25 Andreas Schwab + + * expr.c (JSR): Avoid undefined operation on PC. + +2002-06-21 Kaveh R. Ghazi + + * decl.c (clear_binding_level): Const-ify. + +2002-06-13 Akim Demaille + + * parse.y (class_declaration, interface_declaration): Make sure + all their rules have an action, in order to avoid meaningless `$$ + = $1' and their type clashes. + +2002-06-11 Tom Tromey + + * jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC. + * parse-scan.y (statement_without_trailing_substatement): Added + assert_statement. + (assert_statement): New rule. + * java-tree.h (struct lang_type) [assertions]: New field. + (TYPE_USES_ASSERTIONS): New macro. + (CLASS_USES_ASSERTIONS): Likewise. + (FIELD_SYNTHETIC): New define. + * lex.c (java_lval;): Added ASSERT_TK. + * parse.y (ASSERT_TK): Added. + (statement_without_trailing_substatement): Added assert_statement. + (assert_statement): New rule. + (build_assertion): New function. + (maybe_generate_pre_expand_clinit): Create and initialize + $assertionsDisabled. + (lookup_package_type): Removed decl. + * keyword.h: Rebuilt. + * keyword.gperf (assert): New token. + +2002-06-10 Akim Demaille + + * parse.y (interface_type_list, class_member_declaration) + (unary_expression_not_plus_minus): Remove duplicate %type. + Whitespace changes. + +2002-06-09 Tom Tromey + + * Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H. + + * parse.y (method_header): Give error message in all cases. + Fixes PR java/6865. + +2002-06-10 Bryce McKinlay + + Don't use RTL inlining. Fix for PR java/6820. + * lang.c (LANG_HOOKS_POST_OPTIONS): Define. + (flag_really_inline): New. + (java_decode_option): Set flag_really_inline if -finline-functions + is seen. + (java_post_options): New function. Turn off inlining unless + flag_really_inline is set. + +2002-06-10 Bryce McKinlay + + * gjavah.c (throwable_p): Accept argument as either a classname or + signature fragment. Create null-terminated classname string for super + when calling itself recursively. + (decode_signature_piece): Skip first character from class name + signature when calling throwable_p. + +2002-06-08 H.J. Lu (hjl@gnu.org) + + * jcf-path.c (jcf_path_init): Allocate 1 more byte for string. + +2002-06-04 Tom Tromey + + * jcf-write.c (perform_relocations): Optmize a goto to a goto. + +2002-06-04 Michael Koch + + * gcj.texi (Input Options): Fixed typo. + +2002-06-04 Zack Weinberg + + * java-tree.h, class.c, expr.c, jcf-parse.c, parse.y, + typeck.c, verify.c: Remove all #if JAVA_USE_HANDLES blocks, + all mention of CLASS_TO_HANDLE_TYPE or HANDLE_TO_CLASS_TYPE, + and all now-pointless local variables. Rename other local + variables to reflect their not being handles. + + * java-tree.h, jcf-dump.c, jcf-io.c: Remove all + #if JCF_USE_STDIO blocks. + + * parse.y: Add missing semicolon at end of rule. + +2002-06-03 Geoffrey Keating + + * check-init.c (attach_initialized_static_class): Delete, unused. + * parse.y: Use htab_t instead of struct hashtable, update + all uses. + * java-tree.h: Include hashtab.h instead of hash.h. + (struct lang_decl_func): Use htab_t, set up for gengtype. + (struct init_test_hash_entry): Delete. + (struct treetreehash_entry): New. + (java_treetreehash_find): New + (java_treetreehash_new): New prototype. + (java_treetreehash_create): New prototype. + (java_mark_tree): Delete prototype. + (java_hash_hash_tree_node): Delete prototype. + (java_hash_compare_tree_node): Delete prototype. + (attach_initialized_static_class): Delete prototype. + * expr.c (build_class_init): Update to use java_treetreehash + functions. + (java_expand_expr): Update to use htab_t. + (emit_init_test_initialization): Likewise. + * decl.c (java_mark_tree): Delete. + * class.c (init_test_hash_newfunc): Delete. + (java_hash_hash_tree_node): Delete. + (java_hash_compare_tree_node): Delete. + (add_method_1): Update to use java_treetreehash functions. + (JAVA_TREEHASHHASH_H): New macro. + (java_treetreehash_hash): New function. + (java_treetreehash_compare): New function. + (java_treetreehash_find): New function. + (java_treetreehash_new): New function. + (java_treetreehash_create): New function. + * Make-lang.in (JAVA_TREE_H): Replace hash.h by HASHTAB_H. + + * Make-lang.in (java/parse.o): Depend on debug.h. + * java-tree.h (struct lang_identifier): Use gengtype. + (union lang_tree_node): New. + (struct lang_decl_func): Use gengtype. + (struct lang_decl_var): Likewise. + (struct lang_decl): Likewise. + * parse.y: Include debug.h. + * lang.c (LANG_HOOKS_MARK_TREE): Delete. + + * lang.c (struct language_function): New dummy structure. + + * java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Set + descriminator for DECL_LANG_SPECIFIC. + (struct lang_decl_func): Rename from struct lang_decl. + (enum lang_decl_desc): New. + (struct lang_decl): Make it a union. Update all the accessor macros. + (struct lang_type): Use gengtype. + * class.c (add_method_1): Set descriminator for DECL_LANG_SPECIFIC. + * decl.c (java_dup_lang_specific_decl): All lang_decl structures + are now the same size. + (lang_mark_tree): Use gengtype to mark TYPE_LANG_SPECIFIC; + use discriminator to mark DECL_LANG_SPECIFIC. + + * Make-lang.in (gt-java-builtins.h): New rule. + (java/builtins.o): Add dependency on gt-.h. + * builtins.c: Use gengtype for roots. + (union string_or_tree): Use gengtype. + (struct builtin_record): Use gengtype. + * config-lang.in (gtfiles): Add builtins.c. + + * Make-lang.in (gt-java-class.h, gt-java-constants.h, + gt-java-decl.h, gt-java-expr.h, gt-java-jcf-parse.h, + gt-java-jcf-write.h, gt-java-lang.h, gt-java-mangle.h, + gt-java-parse.h, gtype-java.h): Add rules to generate. + (parse.o): Add dependency on gt-java-parse.h, gt-java.h. + (class.o): Add dependency on gt-*.h. + (constants.o): Likewise. + (decl.o): Likewise. + (expr.o): Likewise. + (jcf-parse.o): Likewise. + (jcf-write.o): Likewise. + (lang.o): Likewise. + * config-lang.in (gtfiles): New. + * class.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. + * constants.c: Replace uses of ggc_add_* with GTY markers. + Include gt-*.h. + * decl.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. + * expr.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. + * java-tree.h: Replace uses of ggc_add_* with GTY markers. + * jcf-parse.c: Replace uses of ggc_add_* with GTY markers. + Include gt-*.h. + * jcf-write.c: Replace uses of ggc_add_* with GTY markers. + Include gt-*.h. + * lang.c: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. + * mangle.c: Replace uses of ggc_add_* with GTY markers. Include + gt-*.h. + * parse.y: Replace uses of ggc_add_* with GTY markers. Include gt-*.h. + Include gtype-java.h. + +2002-06-02 Tom Tromey + + Fix for PR java/5913: + * parse.y (patch_binop): Call patch_string on op1. + +2002-06-02 Tom Tromey + + Fix for PR java/1343, PR java/6336: + * parse.y (make_nested_class_name): Remove extraneous `else'; fix + formatting. Changed return type. + (anonymous_class_counter): Moved to top of file. + (maybe_make_nested_class_name): Append number to class name for + function-local classes. + +2002-05-28 Zack Weinberg + + * decl.c, jcf-parse.c, parse.y, typeck.c: Include real.h. + * Make-lang.in: Update dependency lists. + +2002-05-18 Mark Mitchell + + * gjavah.c (throwable_p): Do not free the name of the class after + passing it to find_class. + * java-tree.h (CLASS_BEING_LAIDOUT): Remove duplicate definition. + * jcf-io.c (dirent.h): Include it. + (fnmatch.h): Likewise. + (compare_path): New function. + (java_or_class_file): Likewise. + (memoized_dirlist_entry): New type. + (memoized_dirlist_lookup_eq): New function. + (memoized_dirlists): New variable. + (caching_stat): New function. + (memoized_class_lookup_eq): New function. + (memoized_class_lookups): Likewise. + (find_class): Use memoized_class_lookups and caching_stat. + * jcf.h (JCF_USE_SCANDIR): Define. + * parse.y (java_expand_classes): Write the class files in reverse + order. + +2002-05-16 Rainer Orth + + * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. + +2002-05-13 Mark Mitchell + + * jcf-write.c (write_classfile): Unlink the temporary file if it + cannot be renamed. Use concat to build up the name of the + temporary file. + +2002-05-08 Mark Mitchell + + * jcf-write.c (write_classfile): Write the file to a + temporary file and then rename it. + +2002-05-07 Tom Tromey + + * gjavah.c (throwable_p): Use xstrdup, not strdup. + + Fix for PR java/1200: + * gjavah.c (throwable_p): New function. + (decode_signature_piece): Use it. A `WeakReference' isn't the + same as a `jweak'. + Include hashtab.h. + (gcjh_streq): New function. + +2002-05-07 Andreas Jaeger + + * parse.y (finish_for_loop): Fix if statement. + +2002-05-06 Tom Tromey + + Fix for PR java/5941: + * parse.y (finish_for_loop): Set SUPPRESS_UNREACHABLE_ERROR for + loop update expression. + (java_complete_lhs): Use SUPPRESS_UNREACHABLE_ERROR. + * java-tree.h (SUPPRESS_UNREACHABLE_ERROR): New macro. + +2002-05-04 Mark Wielaard + + For PR java/6519: + * parse.y (build_string_concatenation): Return just op1 only when op2 + is null and op1 is a STRING_CST, otherwise always construct a + StringBuffer. + +2002-04-27 Tom Tromey + + For PR java/6382: + * parse.y (string_convert_int_cst): New function. + (merge_string_cste): Use it. + +2002-04-25 Neil Booth + + * java-tree.h (java_parse_file): Update. + (java_set_yydebug): Remove. + * jcf-parse.c (yydebug): Remove. + (java_set_yydebug): Die. + (java_parse_file): Update. + * lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. + +2002-04-24 Tom Tromey + + For PR java/6425: + * parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose + EXPR_WFL_QUALIFICATION of qual_wfl. + +2002-04-23 Per Bothner + + * expr.c (PRE_JSR): Call NOTE_LABEL for return address. + * java-tree.h (BCODE_RETURN_TARGET): Removed - never set. + (BCODE_TARGET): Remove BCODE_RETURN_TARGET. + +2002-04-23 Tom Tromey + + For PR java/6314: + * jvspec.c (lang_specific_driver): Use --resource, not -R. Also + recognize `-fcompile-resource='. + * gcj.texi (Invoking gcj): Use --resource, not -R. Expanded text + a bit. + +2002-04-22 Alexandre Petit-Bianco + + * jcf-parse.c: (yyparse): Don't prepend "./" to relative + paths. Fixes PR java/2791. + +2002-04-19 Andrew Haley + + * jcf-write.c (push_long_const): lo, hi: New variables. + Use rshift_double to extract the high part of a 64-bit long. + Use WORD_TO_INT to extract the low part. + + * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned + HOST_WIDE_INT for num. Use JPOOL_UINT to get it. + CONSTANT_Double: Use JPOOL_UINT to get both halve of a double. + +2002-04-18 Neil Booth + + * typeck.c (incomplete_type_error): Remove. + +2002-04-18 Bryce McKinlay + + * 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. + +2002-04-16 Mark Wielaard + + * jcf-write.c (generate_bytecode_insns): Only write const_0 if not + negative zero. + +2002-04-16 Bryce McKinlay + + Fix for PR java/6294: + * parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner + interfaces. + +2002-04-15 Bryce McKinlay + + Fix for PR java/6085: + * parse.y (patch_method_invocation): Always use build_access_to_thisn + to get enclosing "this" argument for inner-class constructor + invocation. Pass correct arguments to build_access_to_thisn. + +2002-04-10 Andreas Jaeger + + * gcj.texi (Input Options): Fix extdirs patch. + +2002-04-10 Anthony Green + + * jcf-path.c (jcf_path_init) : Clean up local extdirs declaration. + +2002-04-09 Anthony Green + + * gcj.texi (Input Options): Add --extdirs documentation. + * jcf-dump.c (OPT_extdirs): New macro. + (options): Add extdirs option. + (help): Describe --extdirs. + (main): Handle OPT_extdirs. + * gjavah.c (OPT_extdirs): New macro. + (options): Add extdirs option. + (help): Describe --extdirs. + (main): Handle OPT_extdirs. + * jcf-path.c (jcf_path_init): Add extdirs support. + (jcf_path_extdirs_arg): New function. + (extensions): New variable to hold extensions path entries. + * jvspec.c: Remove -fextdirs= when compiling main(). + * lang.c (java_decode_option): Handle -fextdirs=. + * jcf.h (jcf_path_extdirs_arg): Declare new function. + * Make-lang.in: Compile jcf-path with version info for use in + identifying the appropriate libgcj.jar. + +2002-04-08 Tom Tromey + + For PR libgcj/5303: + * .cvsignore: Added rmic.1 and rmiregistry.1. + * gcj.texi (Top): Link to new nodes. + (Invoking rmic): New node. + (Invoking rmiregistry): Likewise. + * Make-lang.in (java.generated-manpages): Added rmic.1 and + rmiregistry.1. + (java.maintainer-clean): Likewise. + ($(srcdir)/java/rmic.1): New target. + ($(srcdir)/java/rmiregistry.1): Likewise. + (java.install-man): Handle rmic.1 and rmiregistry.1. + +2002-04-08 Bryce McKinlay + + * gcj.texi (Invocation): Update JvAttachCurrentThread documentation. + Add note about handling uncaught exceptions. Add an exception handler + to example. + +2002-04-08 Bryce McKinlay + + * parse.y (resolve_qualified_expression_name): Clear "from_super" flag + after using it to patch CALL_EXPR. + +2002-04-08 Bryce McKinlay + + * gcj.texi (Invocation): Document CNI invocation API. + +2002-04-04 Neil Booth + + * expr.c (truthvalue_conversion): Rename. Update. + (expand_compare): Update. + * java-tree.h (java_truthvalue_conversion): New. + * lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine. + +2002-04-01 Neil Booth + + * java-tree.h (java_mark_addressable): New. + * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. + * typeck.c (mark_addressable): Rename, update. + +2002-04-01 Neil Booth + + * expr.c (build_java_binop): Update. + * java-tree.h (java_signed_type, java_unsigned_type, + java_signed_or_unsigned_type): Update. + * lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, + LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. + * parse.y (patch_binop): Update. + * typeck.c (signed_or_unsigned_type, unsigned_type, + signed_type): Update. + +2002-03-31 Neil Booth + + * lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. + (java_dummy_print): Remove. + (lang_print_error): Rename. Exit early if inhibiting output. + (inhibit_error_printing_function): New. + (java_init): Don't set hook. + (lang_init_source): Use new boolean. + +2002-03-29 Martin Kahlert + + * parse.y (do_resolve_class): Fix infinite recursion. + +2002-03-29 Tom Tromey + + * parse.y (check_inner_circular_reference): Ignore incomplete + types. + +2002-03-29 Neil Booth + + * Make-lang.in (builtins.o): Update. + * boehm.c (get_boehm_type_descriptor): Update. + * builtins.c: Include langhooks.h. + * decl.c (java_init_decl_processing): Update. + * java-tree.h (java_type_for_mode, java_type_for_size): New. + * lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE): + Redefine. + * typeck.c (type_for_mode, type_for_size): Update. + +2002-03-29 Martin Kahlert + + * lex.c (java_new_lexer): Alias "646" to DEFAULT_ENCODING. + +2002-03-28 Tom Tromey + + * except.c (expand_end_java_handler): If the handler type is NULL, + use java.lang.Throwable. Fixes PR java/5986. + +2002-03-28 Alexandre Petit-Bianco + + Fix for PR java/4715: + * jcf-parse.c (parse_source_file_3): New function. + (read_class): Call it. + (java_parse_file): Likewise. + +2002-03-28 Jan Hubicka + + * java/lang.c (java_init_options): Set flag_trapping_math to 0. + +2002-03-28 Bryce McKinlay + + * parse.y (resolve_package): Initialize "decl". + (lookup_package_type): Remove unused function. + +2002-03-28 Bryce McKinlay + + Fix for PR java/5993: + * parse.y (resolve_package): Return the decl if resolution was + successful. Don't special case "java.lang" and "java.lang.reflect" + packages. Set type_name to the merged identifier. + (resolved_qualified_expression_name): Print error using "name" if + resolve_package returns NULL_TREE. + +2002-03-27 Tom Tromey + + * expr.c (expand_invoke): Don't generate null pointer check if + we're calling . + +2002-03-27 Neil Booth + + * expr.c (java_lang_expand_expr): Rename java_expand_expr, + fix prototype. + * java-tree.h (java_lang_expand_expr): Similarly. + * lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine. + (java_init): Don't set hook. + +2002-03-27 Bryce McKinlay + + Fix for PR java/5850: + * parse.y (lookup_field_wrapper): Call itself recursively for enclosing + context if field was not found in the current scope. + * expr.c (lookup_field): Don't look in enclosing contexts. + +2002-03-26 Tom Tromey + + Fix for PR java/5942: + * parse.y (init_src_parse): Added sanity check. + * parse.h (struct parser_ctxt) [modifier_ctx]: Array has 12 + elements, not 11. + +2002-03-26 Neil Booth + + * decl.c (lang_mark_tree): Rename java_mark_tree. + * java-tree.h (java_mark_tree): New. + * java-lang.c (LANG_HOOKS_MARK_TREE): Redefine. + +2002-03-25 Zack Weinberg + + * lex.c: Change java_perform_atof to take normal parameters + instead of a pointer to a parameter block. Call it directly + from java_lex. + +2002-03-22 Mark Wielaard + + Fix for PR java/5368: + * parse.y (resolve_qualified_expression_name): Use decl not field_decl + when printing error message. + +2002-03-25 Neil Booth + + * decl.c (maybe_build_cleanup): Remove. + +2002-03-22 Tom Tromey + + Andrew Haley + + * expr.c (build_field_ref): Don't build a check if the field is a + member of `this'. + +2002-03-21 Eric Blake + + Fix for PR java/6026: + * lex.c (java_lex): Fix parsing of consecutive floats. + +2002-03-21 Tom Tromey + + * parse.y (build_access_to_thisn): Stop when FROM is not an inner + class. + +2002-03-21 Neil Booth + + * cp-tree.h (pushdecl, pushlevel, poplevel, set_block, + insert_block, getdecls, kept_level_p, global_bindings_p): New. + +2002-03-20 Nic Ferrier + + * gcj.texi: @code{gcj} becomes @command{gcj}. + @code{gcc} becomes @command{gcc}. + GcjRaw changed to gnu.gcc.RawData. + +2002-03-20 Neil Booth + + * decl.c (start_java_method): Use new hook. + * lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. + (java_init): Remove old hook. + +2002-03-18 Alexandre Petit-Bianco + + * builtins.c (define_builtin): Do nothing if `type' is null. + Fixes PR java/5876. + +2002-03-18 Bryce McKinlay + + * parse.y (parser_check_super_interface): Fix error message + grammar/order. + +2002-03-17 Kaveh R. Ghazi + + * jcf-parse.c (get_constant): Delete unused variables. + +2002-03-17 Neil Booth + + * java-tree.h (java_parse_file): New. + * jcf-parse.c (yyparse): Rename java_parse_file. + * lang.c (LANG_HOOKS_PARSE_FILE): Redefine. + +2002-03-16 Bryce McKinlay + + * parse.y (craft_constructor): Return the constructor decl. + (java_expand_classes): Update comments. + (lookup_method_invoke): Call fix_constructors immediately for + anonymous class. Fixes PR java/5935. + +2002-03-15 Anthony Green + + * jcf-parse.c (yyparse): Don't emit class registration + constructor when compiling resource files. + +2002-03-12 Kaveh R. Ghazi + + * lang.c (java_tree_code_type, java_tree_code_length, + tree_code_name): Delete. + (tree_code_type, tree_code_length, tree_code_name): Define. + (java_init): Don't try to copy into the various tree_code + arrays. + +2002-03-12 Tom Tromey + + * jcf-parse.c (get_constant) [CONSTANT_String]: String values are + UTF-8, not UCS-2. Fixes PR java/5923. + + * parse.y (qualify_ambiguous_name): Handle case where QUAL_WFL is + a call_expr wrapped in a convert. Fixes PR java/5848. + +2002-03-12 Bryce McKinlay + + * jcf-write.c (write_classfile): Improve error strings. + +2002-03-11 Eric Blake + + * lex.c: Adjust comments to GNU standards. + +2002-03-11 Eric Blake + + Fix for PR java/5902: + * lex.c (java_lex): Fix parsing of literals. + +2002-03-11 Bryce McKinlay + + * parse.y (patch_assignment): Wrap the right-hand-side with a save_expr + to prevent it getting evaluated twice in the store checking case. + * expr.c (build_java_arraystore_check): Unwrap SAVE_EXPR's when + examining OBJECT. + +2002-03-09 Bryce McKinlay + + * decl.c (java_init_decl_processing): Make sure class_type_node + alignment is not less than 64 bits if hash synchronization is enabled. + +2002-03-08 Per Bothner + + * parse.y (java_complete_lhs): Check if patch_assignment + returned an error-mark. + + * parse.y (try_builtin_assignconv): Don't special-case zero. + +2002-03-08 Per Bothner + + Fix for PR java/5812. + * expr.c (build_java_jsr): Take pc arguments, and do lookup_label + here instead of in JSR macro. Likewise with load_type_state call. + Do the latter on if the return_pc has been verified (the jsr returns). + (JSR): Now just call build_java_jsr. + +2002-03-07 Jeff Sturm + + * java/Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define. + (java.install-common): Link native driver to + JAVA_TARGET_INSTALL_NAME. + +2002-03-05 David Billinghurst + + * builtins.c(cos_builtin): method_return_type ATTRIBUTE_UNUSED + * builtins.c(sin_builtin): Likewise + * builtins.c(sqrt_builtin): Likewise + +2002-03-03 Zack Weinberg + + * java/expr.c, java/jcf-parse.c, java/lex.c: + Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef + REAL_ARITHMETIC blocks unconditional. Delete some further + #ifdef blocks predicated on REAL_ARITHMETIC. + +2002-03-03 Kaveh R. Ghazi + + * class.c (init_class_processing): Use ARRAY_SIZE in lieu of + explicit sizeof/sizeof. + * decl.c (java_init_decl_processing): Likewise. + * jcf-parse.c (init_jcf_parse): Likewise. + * parse.y (init_src_parse): Likewise. + +2002-03-02 Per Bothner + + Make --CLASSPATH by a synonym for --classpath and -classpath. + Implement --bootclasspath. + * jcf-path.c (classpath_u): Rename static variable to classpath_user. + (classpath_l): Remove. + (jcf_path_CLASSPATH_arg): Remove. + (jcf_path_bootclasspath_arg): New function. + (jcf_path_seal): Simplify accordingly. + + * jcf.h (jcf_path_bootclasspath_arg): New declarations. + (jcf_path_CLASSPATH): Remove declaration. + * jvspec.c (jvgenmain_spec): Also accept -fbootclasspath*. + (lang_specific_driver): Translate -bootclasspath. + * lang-options.h: Add --bootclasspath. Update --CLASSPATH. + * lang.c (decode_lang_options): Do jcf_path_init first. + Handle -fCLASSPATH same as -fclasspath. Also process -fbootclasspath. + * gjavah.c: Also handle --bootclasspath. + Handle --CLASSPATH as a synonum for --classpath. + * jcf-dump.c: Likewise. + + "." is not part of system path, but is the default for --classpath. + * jcf-path.c (jcf_path_init): Don't add "." to sys_dirs. + (jcf_path_seal): Add "." if no CLASSPATH specified. + + * gcj.texi: Document changes. + +2002-03-01 Bryce McKinlay + + * expr.c (build_java_arraystore_check): Fix formatting. + +2002-02-28 Alexandre Petit-Bianco + + Fix for PR java/5758, java/5632: + * jcf-parse.c (load_class): Renamed local variable, consider `.' an + inner-class separator too. + * parse.y (do_resolve_class): New local `decl_result.' + Progressively build a name for what can have been loaded. + +2002-02-28 Bryce McKinlay + + * expr.c (java_array_data_offset): Removed function. + (JAVA_ARRAY_LENGTH_OFFSET): Removed macro. + (build_java_array_length_access): Obtain "length" value using a + COMPONENT_REF, instead of INDIRECT_REF and arithmetic. + (build_java_arrayaccess): Correct comment. Access "data" using a + COMPONENT_REF, and return an ARRAY_REF instead of an INDIRECT_REF. + (build_java_arraystore_check): New function. + (expand_java_arraystore): Use build_java_arraystore_check. + * parse.y (patch_assignment): Simplify code to insert a store check + when lvalue is an ARRAY_REF. Use build_java_arraystore_check. + * check-init.c (check_init): Update to reflect that an array length + access is now a COMPONENT_REF. + * gcj.texi (Code Generation): Improve documentation of + -fno-bounds-check. Add documentation for -fno-store-check. + * java-tree.h (flag_store_check): Declare. + (build_java_arraystore_check): Declare. + * lang.c (flag_store_check): Initialize to 1. + (lang_f_options): Add store-check option. + * jvspec.c: Don't pass store-check option to jvgenmain. + * lang-options.h: Add help string for -fno-store-check. + +2002-02-28 Neil Booth + + * decl.c (copy_lang_decl): Rename java_dup_lang_specific_decl. + * java-tree.h (java_dup_lang_specific_decl): New. + * lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. + +2002-02-27 Zack Weinberg + + * builtins.c, decl.c: Delete traditional-mode-related code + copied from the C front end but not used, or used only to + permit the compiler to link. + +2002-02-22 Tom Tromey + + Fix for PR java/2369: + * jvspec.c (verify_class_name): New function. + (lang_specific_driver): Call it. + (JAVA_START_CHAR_P): New macro. + (JAVA_PART_CHAR_P): Likewise. + +2002-02-22 Per Bothner + + * class.c: Change vtable to be more compatible with g++ v3 abi. + (get_dispatch_table): Prepend offset-to-top (always 0) and + type_info pointer (currently unimplemented hence NULL) to vtable. + Specifically, prepend offset-to-top and typeinfo ptr (currently null). + (make_class_data): Variable dtable_start_offset is sizeof 2 pointers. + Adjust vtable pointers by dtable_start_offse - i.e. skip new words. + (build_dtable_decl): Add declarations for new fields. + +2002-02-20 Per Bothner + + * parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call + to finit$ (otherwise generate_bytecode_insns drops it). However, we + don't need to set it on the COMPOUND_EXPR - the caller does that. + +2002-02-20 Nic Ferrier + + * gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option + `--CLASSPATH' becomes `--classpath.' + * gjavah.c: Likewise. + * jcf-dump.c: Likewise. + * lang-options.h: Likewise. + * lang.c: Likewise. + * jcf-path.c: Updated comment. + (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' + (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' + * jcf.h (jcf_path_CLASSPATH_arg): Ditto. + (jcf_path_CLASSPATH_arg): Ditto. + (classpath_u): Updated leading comment. + +2002-02-20 Per Bothner + + * builtins.c (check_for_builtin): New function. + (build_call_or_builtin): Remove. + * java-tree.h: Update accordingly. + * expr.c (expand_invoke): Use build + check_for_builtin instead + of build_call_or_builtin. + * parse.y (patch_invoke): Likewise. This avoids needlessly creating + a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER + flag (which had caused jcf-write to incorrectly emit invokevirtual). + +2002-02-17 Tom Tromey + + * java-tree.h (TYPE_STRICTFP): New macro. + (struct lang_type) [strictfp]: New field. + (CLASS_STRICTFP): New macro. + (METHOD_STRICTFP): New macro. + (struct lang_decl) [strictfp]: New field. + * parse.y (method_header): Disallow strictfp constructor or + abstract method. + (STRICT_TK): Move before MODIFIER_TK. + * parse.h (CLASS_MODIFIERS): Added ACC_STRICT. + (METHOD_MODIFIERS): Likewise. + (INTERFACE_MODIFIERS): Likewise. + * jcf-write.c (get_access_flags): Likewise. + * class.c (set_class_decl_access_flags): Recognize ACC_STRICT. + (add_method_1): Likewise. + (get_access_flags_from_decl): Likewise. + * jcf-dump.c (print_access_flags): Print in standard order. Also, + recognize strictfp flag. + * jcf.h (ACC_STRICT): New define. + +2002-02-12 David Billinghurst + + * class.c(build_utf8_ref): Move declaration of decl_size + +2002-02-07 Tom Tromey + + * gcj.texi (Input Options): --CLASSPATH does not suppress system + path. + +2002-02-04 Anthony Green + + * class.c (build_utf8_ref): Put UTF-8 constants into merged + sections if available. + +2002-02-04 Bryce McKinlay + + * parse.y (java_expand_classes): Fix typo in static field loop. + +2002-02-02 Richard Henderson + + * class.c (add_field): Mark static fields external. + (build_class_ref): Remove redundant set. + * parse.y (java_expand_classes): Mark static fields of classes + to be compiled as local. + * jcf-parse.c (parse_class_file): Likewise. + +2002-02-02 Nic Ferrier + + * gcj.texi (About CNI): New node. + +2002-02-01 Craig Rodrigues + + PR java/5080 + * jcf-parse.c : Check for HAVE_LOCALE_H before using + setlocale() with LC_CTYPE as a parameter. + * jv-scan.c: Same. + +2002-01-31 Joseph S. Myers + + * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): + Follow GNU Coding Standards for --version. + +2002-01-28 Tom Tromey + + * expr.c (build_jni_stub): Ensure storage for `meth' is + generated. + * parse.y (java_complete_expand_methods): Set + current_function_decl before building JNI stub. + +2002-01-26 Andreas Tobler + + * gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not + BUILT_IN_SQRTF. + +2002-01-22 Tom Tromey + + * decl.c (java_init_decl_processing): Use add_predefined_file. + Predefine RawData.java. + (predef_filenames): Removed. + (java_init_decl_processing): Don't register predef_filenames. + * jcf-parse.c (add_predefined_file): New function. + (predefined_filename_p): Rewrote. + (predefined_filename_p): No longer static. + * decl.c (java_init_decl_processing): Call initialize_builtins. + * Make-lang.in (JAVA_OBJS): Added builtins.o. + (java/builtins.o): New target. + * builtins.c: New file. + * parse.y (patch_invoke): Use build_call_or_builtin. + * java-tree.h (build_call_or_builtin): Declare. + (initialize_builtins): Declare. + (java_set_exception_lang_code): Removed unused declaration. + (PREDEF_FILENAMES_SIZE): Removed. + (java_tree_index): Added JTI_PREDEF_FILENAMES. + (predef_filenames): New define. + (add_predefined_file): Declare. + (predefined_filename_p): Declare. + * expr.c (expand_invoke): Use build_call_or_builtin. + +2002-01-22 Kaveh R. Ghazi + + * parse.y (patch_switch_statement): Fix format specifier. + +2002-01-16 Tom Tromey + + More for PR java/5365: + * gjavah.c (print_stub_or_jni): Cause exception to be thrown by + default. + (process_file): Generate include for + java.lang.UnsupportedOperationExceptions. + +2002-01-15 Andreas Jaeger + + * .cvsignore: Add man pages. + +2002-01-15 Tom Tromey + + Fix for PR java/5365: + * gjavah.c (process_file): Turn class name into a file name. + +2002-01-14 Matthias Klose + + * gcj.texi: Fix whitespace and formatting errors in the + synopsis of the man pages. Update copyright. + +2002-01-14 Tom Tromey + + For PR libgcj/5303: + * Make-lang.in (java.install-man): Handle jv-convert man page. + (java.generated-manpages): Added jv-convert.1. + (java.uninstall): Remove jv-convert.1. + (java.maintainer-clean): Likewise. + ($(srcdir)/java/jv-convert.1): New target. + * gcj.texi (Top): Link to jv-convert node. + (Individual utilities): Likewise. + (Invoking jv-convert): New node. + +2001-01-10 Jeff Sturm + Martin Kahlert + + * jcf-parse.c (get_constant): Don't swap lo/hi for big + endian targets when HOST_BITS_PER_WIDE_INT >= 64. + +2002-01-03 Graham Stott + + * class.c (compile_resource_file): Update copyright date. + Constify filename parameter. + (java-tree.h): Update copyright date. + (compile_resource_file): Constify filename parameter. + +2002-01-03 Graham Stott + + * gcc/jcf-parse.c: Update copyright date. + (yyparse): Constify resource_filename. + +2002-01-02 Kaveh R. Ghazi + + * parse.y (src_parse_roots): Don't needlessly zero init. + +2001-12-31 Tom Tromey + + * parse.y (dump_java_tree): New function. + (source_end_java_method): Call it. + (end_class_declaration): Likewise. + * lang.c (java_decode_option): Call dump_switch_p. + +2001-12-28 Tom Tromey + + * gen-table.pl: Don't process characters after \uffff. Added + comment pointing to input file. + +2001-12-28 Kaveh R. Ghazi + + * gen-table.pl: Const-ify output. Document the location of a + suitable unicode input file. + + * chartables.h: Regenerate. + +2001-12-26 Kaveh R. Ghazi + + * chartables.h: Const-ify. + * gjavah.c (options): Likewise. + * jcf-dump.c (options): Likewise. + * jv-scan.c (options): Likewise. + * lex.c (java_start_char_p, java_part_char_p): Likewise. + * parse.y (binop_lookup): Likewise. + +2001-12-23 Kaveh R. Ghazi + + * Make-lang.in (keyword.h): Pass -C to gperf to const-ify + the static arrays that are output. + * jvspec.c (jvgenmain_spec): Make static. + * keyword.gperf (struct java_keyword, java_keyword): Const-ify. + * keyword.h: Regenerate. + * lang.c (string_option, process_option_with_no, lang_f_options, + lang_W_options): Const-ify. + * lex.c (java_lex): Likewise. + +2001-12-21 Richard Henderson + + * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into .. + (get_boehm_type_descriptor): ... here. Arrange for the + TREE_TYPE to get set properly. + +2001-12-21 Richard Henderson + + * class.c (compile_resource_file): Set TREE_PUBLIC on the constructor + only if the target requires collect2. + + * class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL. + +2001-12-20 Tom Tromey + + For PR java/4509: + * parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute + CAN_COMPLETE_NORMALLY for the node. + * jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't + generate code for second branch if first branch can't complete + normally. + (generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to + the loop head if the loop body can't complete normally. + +2001-12-20 Tom Tromey + + For PR java/4766: + * jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle + case where `finally' clause can't complete normally. + +2001-12-20 Tom Tromey + + Fixes PR java/5057: + * parse.y (analyze_clinit_body): Added this_class parameter. + Check for more cases where we must keep . + (maybe_yank_clinit): Cleaned up flow control. + +2001-12-20 Bryce McKinlay + + * decl.c (java_init_decl_processing): Don't initialize + finit_leg_identifier_node. + * java-tree.h (java_tree_index): Remove JTI_FINIT_LEG_IDENTIFIER_NODE. + (finit_leg_identifier_node): Remove. + (ID_FINIT_P): Don't check for JTI_FINIT_LEG_IDENTIFIER_NODE. + +2001-12-20 Bryce McKinlay + + * mangle.c (mangle_member_name): Don't special-case for + NO_DOLLAR_IN_LABEL. + * mangle_name.c (unicode_mangling_length): Likewise. + (append_unicode_mangled_name): Likewise. + * parse.y (make_nested_class_name): Remove dead NO_DOLLAR_IN_LABEL + code. + +2001-12-20 Bryce McKinlay + + * expr.c (build_java_array_length_access): Don't force null pointer + check unless flag_check_references is set. + +2001-12-20 Tom Tromey + + Fix for PR java/3417: + * parse.y (patch_assignment): Added special processing for + `return'. + (patch_return): Don't convert booleans to integers, and don't + special-case `null'. + +2001-12-20 Joseph S. Myers + + * config-lang.in (diff_excludes): Remove. + +2001-12-17 Joseph S. Myers + + * gcj.texi: Update link to GCC manual. + +2001-12-17 Tom Tromey + + * parse.y (link_nested_class_to_enclosing): Removed useless + statement. + +2001-12-16 Tom Tromey + + * mangle.c (mangle_method_decl): Never emit `C2' constructor. + Fixes PR java/5088. + +2001-12-16 Joseph S. Myers + + * ChangeLog, Make-lang.in, class.c, expr.c, gcj.texi, java-tree.h, + jcf-parse.c, jcf-write.c, lex.c, parse.h, parse.y, verify.c: Fix + spelling errors. + +2001-12-16 Kaveh R. Ghazi + + * lex.c (java_read_unicode, java_lex): Use hex_p/hex_value. + +2001-12-16 Bryce McKinlay + + * decl.c (java_init_decl_processing): Build otable_type correctly. + otable_decl is an otable_type. + +2001-12-15 Bryce McKinlay + + * java-tree.h (otable_methods, otable_decl, otable_syms_decl, + otable_type, otable_ptr_type, method_symbol_type, + method_symbols_array_type, method_symbols_array_ptr_type): New + field/global tree definitions. + (flag_indirect_dispatch): New flag. + * decl.c (java_init_decl_processing): Initialize new otable and + otable_syms type nodes and decls. Add new field "index" to + method_type_node. + * class.c (build_method_symbols_entry): New function. + (make_method_value): Set "index" to to method's vtable index for + virtual methods when indirect-dispatch is not used. + (make_class_data): For indirect-dispatch, don't emit the dtable_decl, + and set vtable_method_count to -1. Set otable and otable_syms field + if indirect-dispatch is used and there was something to put in them. + (build_method_symbols_entry): New function. + (emit_offset_symbol_table): New function. + * expr.c (get_offset_table_index): New function. + (build_invokevirtual): Build array reference to otable at the index + returned by get_offset_table_index, and use the result as the vtable + offset. + (build_invokeinterface): Similar. + * jcf-parse.c (yyparse): If indirect-dispatch, call + emit_offset_symbol_table at the end of compilation, after all classes + have been generated. + * jvspec.c: Don't pass findirect-dispatch to jvgenmain. + * lang.c (flag_indirect_dispatch): Define. + (lang_f_options): Add indirect-dispatch flag. + +2001-12-14 Matthias Klose + + * gcj.texi: Markup for man page generation. Document missing + options printed by --help. + Terminate description of gij's -ms option with a dot. + * Make-lang.in ($(srcdir)/java/*.1): New targets. + (java.generated-manpages java.install-man, java.uninstall, + java-maintainer-clean) Updated. + +2001-12-14 Hans Boehm + + * class.c (get_dispatch_table): Fix java vtable layout + for TARGET_VTABLE_USES_DESCRIPTORS. + * decl.c (java_init_decl_processing): Initialize + alloc_no_finalizer_node, finalize_identifier_node. + * expr.c (class_has_finalize_method): New function. + (expand_java_NEW): Generate calls for finalizer-free allocation. + (build_invokevirtual): Fix java vtable layout for + TARGET_VTABLE_USES_DESCRIPTORS. + * java-tree.h (enum java_tree_index): New entries: + JTI_ALLOC_NO_FINALIZER_NODE, JTI_FINALIZE_IDENTIFIER_NODE. + (alloc_no_finalizer_node, finalize_deintifier_node): New macros. + (class_has_finalize_method): declare. + (HAS_FINALIZER_P): New macro. + * parse.y (patch_invoke): Generate calls for finalizer-free + allocation. + +2001-12-12 Matthias Klose + + * Make-lang.in: JAVA_INSTALL_NAME, JAVA_CROSS_NAME: Remove + whitespace at end of line. + +2001-12-11 Tom Tromey + + * lex.c (java_init_lex): Define wfl_to_string as + gnu.gcj.runtime.StringBuffer unless generating bytecode. + +2001-12-11 Jeff Sturm + + * class.c (make_method_value): Use null_pointer_node to + represent empty exception table. + +2001-12-10 Tom Tromey + + * check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT. + +2001-12-10 Douglas B. Rupp + + * Make-lang.in (jvspec.o): Add $(OUTPUT_OPTION). + +2001-12-09 Per Bothner + + * check-init.c (current_switch_has_default): New static field. + (check_init): Case DEFAULT_EXPR: Set current_switch_has_default. + Case SWITCH_EXPR: Save/restore current_switch_has_default. If no + DEFAULT_EXPR seen, simulate a default alternative that copies state. + +2001-12-09 Tom Tromey + + * check-init.c (check_init): Don't allow pre- or post- increment + or decrement of final variable. + (final_assign_error): Minor error message rewording. + +2001-12-08 Tom Tromey + + * java-tree.h: Fixed typo. + + * gjavah.c (decompile_method): Don't decompile to `return this' + for static methods. + + * gjavah.c (cxx_keywords): Re-sorted. + * lex.c (cxx_keywords): Re-sorted. + + * gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything + else. + + * gjavah.c (print_namelet): Clear subnamelets. + (HANDLE_METHOD): Set `method_printed' earlier. + +2001-12-07 Tom Tromey + + * lang.c (lang_f_options): Added + optimize-static-class-initialization. + (java_decode_option): Removed special case. + +2001-12-07 Per Bothner + + * check-init.c (check_init): Fix typo freeing memory twice. + +2001-12-05 Per Bothner + + Restore support for static class initialization optimization. + * java-tree.h (STATIC_CLASS_INIT_OPT_P): Re-enable. + * check-init.c (check_int): At end of BLOCK handle initialization + blocks, which used to be done in java_complete_expand_method but did + not handle the case where check_for_initialization might allocate + more than a word of bits. + * decl.c (lang_make_tree): The smic field is now a tree. + * expr.c (build_class_init): Set DECL_FUNCTION_INIT_TEST_CLASS field. + * java-tree.h (DECL_FUNCTION_INIT_TEST_TABLE): New macro. + + * parse.y (emit_test_initialization): Combine hash_lookup calls. + + * java-tree.h (DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND): + Change from a hash table to a list. + (struct_lang_decl): Change field 'smic' to match. + * class.c (add_method_1): Initialize + DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND to null list. + * parse.y (adjust_init_test_initialization): Removed - inlined into - + (java_expand_method_bodies): -here, since 'smic' is now a list. + (patch_invoke): Add to 'smic' list, instead of hash_lookup. + + * check-init.c (WORD_SIZE): Use BITS_PER_UNIT. + + * class.c (java_hash_compare_tree_node): Fix casts. + +2001-12-04 Per Bothner + + * check-init.c: Handle definite unassignment to finals in addition + to definite assignment. + (loop_current_locals): New field. + (num_current_locals, int start_current_locals, num_current_words): + Make static. + (SET_P, CLEAR_P, SET_BIT): Add needed but missing parentheses. + (ASSIGNED_P, UNASSIGNED_P, SET_ASSIGNED, SET_UNASSIGNED, + CLEAR_ASSIGNED, CLEAR_UNASSIGNED): New macros. + (get_variable_decl, check_final_reassigned): New functions. + (check_init, check_bool_init): Modify as needed for checking finals. + (check_for_initialization): Take extra parameter and return void. + Do extra start-up logic to check final fields for assignment. + * parse.y (check_static_final_variable_assignment_flag, + reset_static_final_variable_assignment_flag, check_final_assignment, + check_final_variable_local_assignment_flag, + reset_final_variable_indirect_assignment_flag, + reset_final_variable_global_assignment_flag): Remove functions. + (java_complete_expand_methods, outer_field_access_fix, + patch_assignment): Remove no-longer used logic. + * java-tree.h (DECL_FIELD_FINAL_IUD): Change usage and comments. + * parse.y (register_fields, java_complete_tree): Update accordingly. + + * check-init.c (ALLOC_WORDS/FREE_WORDS): Use xmalloc/free, not alloca. + (DECLARE_BUFFERS, RELEASE_BUFFERS, ALLOC_BUFFER, FREE_BUFFER): New. + (check_cond_init, check_bool2_init): Use DECLARE_BUFFERS. + + * java-tree.h (STATIC_CLASS_INIT_OPT_P): Temporarily turn off. + + * java-tree.h (DECL FINAL): New bit-field. + (METHOD_FINAL, FIELD_FINAL, CLASS_FINAL): Define as DECL_FINAL. + (LOCAL_FINAL_P): Use DECL_FINAL rather than old LOCAL_FINAL. + (DECL_INIT_CALLS_THIS): New macro. + (struct lang_decl): New bit-field init_calls_this. + (DECL_FUNCTION_ALL_FINAL_INITIALIZED, DECL_FIELD_FINAL_LIIC, + DECL_FIELD_FINAL_IERR, LOCAL_FINAL, TYPE_HAS_FINAL_VARIABLE + (DECL_BIT_INDEX): Change to use pointer_alias_set since we now + use it for both local variables and final fields. + (struct lang_decl_var): Remove bit-fields final_liic, final_ierr, + and local_final. + (struct lang_type): Remove hfv bit-field. + (check_for_initialization): Change to return void. + + * java-tree.h (IS_ARRAY_LENGTH_ACCESS): New macros. + * expr.c (build_java_array_length_access): Set IS_ARRAY_LENGTH_ACCESS. + * check-init.c (final_assign_error): New helper function. + (check_final_reassigned, check_init): Use it. + (check_init): Also check IS_ARRAY_LENGTH_ACCESS for ARRAY.length. + + * java-tree.h (struct lang_decl, struct lang_decl_var): Change all + bit-fields to unsigned. + +2001-12-03 Per Bothner + + * parse.y (patch_binop): Minor constant folding. + + * parse.y (build_current_thisn): Shorter 'buffer'. + +2001-12-03 Per Bothner + + * decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR + instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR. + * jcf-write.c (generate_bytecode_insns): Remove support for + CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR as they are no longer used. + * check-init.c (check_init): Likewise. + +2001-12-03 Per Bothner + + * verify.c (subroutine_nesting): New function. + (verify_jvm_instructions): Use it to fix logic for checking that + we're done with the current subroutine. + + * verify.c (verify_jvm_instruction): For OPCODE_checkcast and + OPCODE_instanceof use POP_TYPE macro for better diagnostics. + +2001-12-03 Per Bothner + + * jcf.h: Fix obvious typo in comment. + * typeck.c (build_null_signature): Add comment. + +2001-12-03 Neil Booth + + * expr.c: Remove leading capital from diagnostic messages, as + per GNU coding standards. + * jcf-io.c: Similarly. + * jcf-parse.c: Similarly. + * jv-scan.c: Similarly. + * jvspec.c: Similarly. + * mangle.c: Similarly. + +2001-12-02 Tang Ching-Hui + Alexandre Petit-Bianco + + * expr.c (build_java_arrayaccess): Call save_expr on array for + correct evaluation order, modified comment, fixed indentation. + * parse.y: (patch_assignment): Correctly extract the array base + from the tree generate by build_java_arrayaccess, added comments. + (patch_array_ref): Remove SAVE_EXPR on ARRAY_REF. + Fixes PR java/3096, PR java/3803, PR java/3965. + +2001-12-01 Neil Booth + + * expr.c (expand_byte_code): Remove trailing periods from messages. + * jcf-parse.c (load_class, jcf_parse): Similarly. + * jcf-write.c (generate_classfile): Similarly. + * lex.c (java_lex): Similarly. + +2001-11-30 Bryce McKinlay + + * class.c (add_interface_do): Set BINFO_VPTR_FIELD. + +2001-11-29 Joseph S. Myers + + * Make-lang.in (java.generated-manpages): New dummy target. + +2001-11-27 Rainer Orth + + * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks + ASM_FINAL_SPEC. + (lang_specific_pre_link): Use set_input to set input_filename. + Append `main' here. + * jvgenmain.c (usage): Append literal `main' to CLASSNAME. + (main): Fix definition. + Strip `main' from classname. + Fixes PR java/227. + +2001-11-18 Roger Sayle + + * parse.h (java_expand_switch): Remove old prototype. + +2001-11-18 Tom Tromey + + Fix for PR java/1401: + * jcf-write.c (generate_bytecode_insns) [binop]: Handle case where + arg0 is null. + (generate_bytecode_insns) [MODIFY_EXPR]: Handle `OP=' case + correctly. + +2001-11-18 Neil Booth + + * lang.c (finish_parse): Rename to java_finish. + (LANG_HOOKS_FINISH, java_finish): New. + +2001-11-15 Neil Booth + + * decl.c (init_decl_processing): Rename java_init_decl_processing. + * java-tree.h: New prototype. + * lang.c (java_init): Update prototype. Combine with old init_parse. + +2001-11-13 Tom Tromey + + * gjavah.c (method_signature): New global. + (HANDLE_METHOD): Set it. + (decompile_return_statement): New function. + (decompile_method): Use it. + (print_method_info): Removed `synth' argument. + +2001-11-09 Neil Booth + + * java-tree.h (java_set_yydebug): New. + * jcf-parse.c (set_yydebug): Rename java_set_yydebug. + * lang.c (LANG_HOOKS_SET_YYDEBUG): Override. + (print_lang_decl, print_lang_type, print_lang_identifier, + print_lang_statistics, lang_print_xnode): Remove. + +2001-11-09 Neil Booth + + * jcf-parse.c (init_lex): Remove. + * lang.c (language_string, lang_identify): Remove. + (struct lang_hooks): Constify. + (LANG_HOOKS_NAME): Override. + (init_parse): Update. + +2001-11-08 Andreas Franck + + * Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle + program_transform_name the way suggested by autoconf. + (java.install-common): Also transform auxiliary program names with + program_transform_name. + +2001-11-08 Tom Tromey + + * parse.y (trap_overflow_corner_case): New rule. + (unary_expression): Use it. + * lex.c (java_init_lex): Don't set minus_seen. + (yylex): Don't use minus_seen. Communicate overflow to parser for + it to handle. + (error_if_numeric_overflow): New function. + * parse.h (minus_seen): Removed field. + (JAVA_RADIX10_FLAG): New define. + +2001-11-07 Tom Tromey + + Patch for PR java/1414: + * parse.y (case_label_list): New global. + (goal): Register case_label_list with GC. + (java_complete_lhs): Save new case on case_label_list. + (patch_switch_statement): Check for duplicate case labels. + +2001-11-07 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Removed unused third argument. + (java_complete_lhs): Removed unused third argument to patch_assignment. + +2001-11-06 Neil Booth + + * lang.c: Include langhooks-def.h. + * Make-lang.in: Update. + +2001-10-31 Zack Weinberg + + * Make-lang.in: Replace $(INTL_TARGETS) with po-generated. + +2001-10-29 Bryce McKinlay + + * mangle.c (find_compression_record_match): Don't match compression + records for package name elements unless they occur at the start of + the name. Fix for PR java/4717. + +2001-10-25 Bryce McKinlay + + * expr.c (expand_java_field_op): Don't special-case references to + java.lang.PRIMTYPE.TYPE. + (build_primtype_type_ref): Removed. + * java-tree.h (build_primtype_type_ref): Remove prototype. + * parse.y (maybe_build_primttype_type_ref): Removed. + (complete_function_arguments): Don't special-case references to + java.lang.PRIMTYPE.TYPE. + (patch_assignment): Likewise. + (array_constructor_check_entry): Likewise. + +2001-10-24 Alexandre Petit-Bianco + + * mangle.c (static tree compression_table): Fixed leading comment. + * parse.h (struct parser_ctxt): Fixed field comment. + * parse.y (check_pkg_class_access): New prototype, fixed leading + comment, new parameter used to emit error only if passed as true. + (parse_check_super): Pass extra argument to check_pkg_class_access. + (do_resolve_class): Likewise. + (process_imports): Likewise. + (read_import_dir): Fixed indentation. + (find_in_imports_on_demand): New local class_type_name. Local + node_to_use deleted. while loop changed into for loop. Report + multiple definition only for accessible classes. Improved error + message. + (start_complete_expand_method): Local `ptr' removed. DECL_ARGUMENTS + assigned to parameter list, fixed indentation. while loop changed + into for loop, restore TREE_CHAIN on local `tem' before the next + iteration. + +2001-10-23 Richard Kenner + + * lang.c (lang_get_alias_set): Deleted. + +2001-10-21 Kaveh R. Ghazi + + * gjavah.c (jni_print_char): Fix thinko in last change. + + * gjavah.c (jni_print_char, decode_signature_piece): Use + safe-ctype macros and/or fold extra calls into fewer ones. + * lex.c (java_read_unicode, java_lex): Likewise. + * lex.h (JAVA_START_CHAR_P, JAVA_PART_CHAR_P, JAVA_ASCII_DIGIT, + JAVA_ASCII_HEXDIGIT, JAVA_ASCII_LETTER): Likewise. + * mangle_name.c (append_unicode_mangled_name, + unicode_mangling_length): Likewise. + +2001-10-17 Richard Henderson + + * Make-lang.in (java/lang.o): Depend on langhooks.h. + +2001-10-15 Alexandre Petit-Bianco + + * lang.c (langhooks.h): Included. + (LANG_HOOKS_INIT): Redefined. + (LANG_HOOKS_INIT_OPTIONS): Likewise. + (LANG_HOOKS_DECODE_OPTION): Likewise. + (struct lang_hooks lang_hooks): New initialization. + +2001-10-11 Per Bothner + + * parse.y (patch_synchronized_statement): Use a TRY_FINALLY_EXPR + rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair. + The former is simpler, and jcf-write.c handles it better. + (java_complete_lhs): No longer need to handle CLEANUP_POINT_EXPR + or WITH_CLEANUP_EXPR. + * jcf-write.c: Revert Alex's change from 2000-10-18. It is no + longer needed, as we already handle empty TRY_FINALLY_EXPR bodies fine. + + * parse.y (patch_if_else_statement): If the condition is constant, + optimize away the test. + +2001-10-09 Alexandre Petit-Bianco + + * parse.y (patch_cast): Call patch_string on the first operand of + the incoming node, update it if necessary. Fixes PR java/4510. + +2001-10-09 Bryce McKinlay + + * parse.y (find_as_inner_class): Don't disregard the enclosing scope + when name qualifier matches a package name. + +2001-10-08 Tom Tromey + + Fix for PR java/4489: + * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Always + force a new label when computing `body_block'. + +2001-10-07 Kaveh R. Ghazi + + * jcf-io.c (format_uint): Const-ify. + * lang.c (java_tree_code_type, java_tree_code_length): Likewise. + * lex.c (java_get_line_col): Likewise. + * parse.y (build_incdec): Likewise. + +2001-10-05 Alexandre Petit-Bianco + + * parse.y (register_incomplete_type): Set JDEP_SUPER to be given + a NULL enclosing context if appropriate. Fixes PR java/4466. + +2001-10-03 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Use lvalue's original TYPE when + building the final COMPOUND_EXPR. + (try_reference_assignconv): Fixed leading comment. + +2001-09-26 Alexandre Petit-Bianco + + * parse.y (check_final_variable_indirect_assignment): For + COMPOUND_EXPR, return only if finals were found initialized + properly, if not, keep on checking. + (check_final_variable_global_assignment_flag): New local + error_found, set when appropriate and used to decide whether to + report uninitialized finals. Fixed typo in comment. + +2001-09-22 Alexandre Petit-Bianco + + * decl.c (init_decl_processing): Fixed typo in predef_filenames + last three initializations. Fixes PR java/4360. + +2001-09-21 Richard Henderson + + * class.c (get_dispatch_table): Handle function descriptors. + (build_dtable_decl): Likewise. + * expr.c (build_invokevirtual): Likewise. + +2001-09-20 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Build class initialization + when static finals are used to qualify method invocation. + Fixes PR java/4366. + +2001-09-19 Alexandre Petit-Bianco + + * parse.h: (WFL_STRIP_BRACKET): Re-written using + build_type_name_from_array_name. + (STRING_STRIP_BRACKETS): New macro. + * parse.y (build_type_name_from_array_name): New function. + (array_creation_expression:): Accumulate []s instead of [s. + (cast_expression:): Accumulate []s instead of [s after cast type + name. + (build_array_from_name): Local string deleted, use + build_type_name_from_array_name. + (build_unresolved_array_type): Accumulate []s instead of [s after + type name. + (register_fields): Fixed comment. + (resolve_class): Local name, base deleted, new locals tname and + array_dims. Use build_type_name_from_array_name. Use array_dims to + build array type. + (purify_type_name): Use STRING_STRIP_BRACKETS. + +2001-09-18 Andreas Jaeger + + * parse.y: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout. + * jv-scan.c: Likewise. + +2001-09-17 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Inner class creation context + check not enforced within constructors. Fixes PR java/1873. + +2001-09-16 Tom Tromey + + * jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Call + NOTE_PUSH for single-case push. Fixes PR java/4189. + +2001-09-13 Alexandre Petit-Bianco + + * java-tree.h (TYPE_IMPORT_LIST): New macro. + (TYPE_IMPORT_DEMAND_LIST): Likewise. + (struct lang_type): New fields import_list and import_demand_list. + * parse.y (java_complete_class): Initialize TYPE_IMPORT_LIST and + TYPE_IMPORT_DEMAND_LIST with ctxp counterparts. + (do_resolve_class): New local saved_enclosing_type, initialized, + passed as parameter to find_in_imports and find_in_imports_on_demand. + (find_in_imports): Added paramater enclosing_type, use its + TYPE_IMPORT_LIST when applicable. + (find_in_imports_on_demand): Added parameter enclosing_type, use + its TYPE_IMPORT_DEMAND_LIST when applicable. Reorganized locals + declaration and initialization. + (fold_constant_for_init): Switch/restore current_class to the + appropriate context. + +2001-09-13 Mark Mitchell + + * verify.c (verify_jvm_instructions): Fix typo. + +2001-09-13 Kaveh R. Ghazi + + * expr.c (expand_invoke): Const-ification. + * parse.y (patch_method_invocation): Likewise. + +2001-09-12 Kaveh R. Ghazi + + * gjavah.c (cxx_keywords): Const-ification. + * keyword.gperf (java_keyword): Likewise. + * lang.c (java_tree_code_name): Likewise. + * lex.c (cxx_keywords): Likewise. + * parse.y (java_parser_context_suspend, merge_string_cste): Likewise. + +2001-09-11 Richard Henderson + + * parse.h (ctxp_for_generation): Mark extern. + +2001-09-10 Richard Henderson + + * class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl. + +2001-09-07 Matt Kraai + + * typeck.c (java_array_type_length, build_prim_array_type): + Represent empty arrays by NULL index. + +2001-09-06 Alexandre Petit-Bianco + + * java-tree.h (compile_resource_file): Grouped with other prototypes. + * jvspec.c (lang_specific_driver): Removed unused local `ptr.' + +2001-09-06 Anthony Green + + * class.c (O_BINARY): Define if necessary. + (registerResource_libfunc): Declare. + (init_class_processing): Initilize registerResource_libfunc. + (compile_resource_file): New function. + * java-tree.h (resource_name): Declare. + (compile_resource_file): Declare. + * jcf-parse.c (yyparse): Handle compiling java resource files. + * lang.c (java_decode_option): Handle -fcompile-resource option. + * jvspec.c (lang_specific_driver): Handle -R flag for compiling + resource files. + * gcj.texi (Code Generation): Add documentation for -R flag. + +2001-09-05 Alexandre Petit-Bianco + + * jcf-write.c (generate_classfile): Issue an error in case of + field/initial value mismatch. + * parse.y (analyze_clinit_body): Keep if an array is + being initialized and we're generating bytecode. + (java_complete_lhs): In MODIFY_EXPR section: added comments, + set DECL_INITIAL properly when appropriate. + Fixes PR java/4230 + Fixes PR java/4204 + +2001-09-01 Per Bothner + + * parse.y (maybe_yank_clinit): A field without an initializer is not + relevant. All initializers except static final and constant require + , regardless of flag_emit_class_files. + +2001-08-31 Per Bothner + + * class.c (set_constant_value): When not emitting class files, then a + String ConstantValue is a utf8const_ptr_type. + +2001-08-30 Per Bothner + + * jcf-write.c (generate_classfile): Check that field is primitive + or string before emitting ConstantValue attribute. + +2001-08-30 Per Bothner + + * parse.y (resolve_qualified_expression_name): If creating a + COMPOUND_EXPR, set it's type correctly. + +2001-08-30 Per Bothner + + * jcf-io.c (open_class): Set filename field. + + * jcf-parse,c (parse_class_file): Set current_function_decl + for better error message when Code attribute is missing. + + * lang.c (put_decl_node, lang_print_error): Re-arrange for + better diagnostics, especially for constructors. + +2001-08-30 Per Bothner + + * jcf-write.c (generate_classfile): Don't write ConstantValue + attribute if field is not final, for compatibility with jdk. + + * jcf-write.c (generate_classfile): Convert ConstantValue values + to correct type. Work-around for front-end bug. + * class.c (set_constant_value): Error if constant has wrong type. + +2001-08-30 Per Bothner + + * jcf-dump.c (print_constant): Fix fencepost error so "Float" and + "Double" are printed at verbosity 1. + + * jcf-dump.c (main): Disable flag_print_attributes if --javap. + + * jcf-dump.c (SPECIAL_IINC): Remove unneeded casts to long. + +2001-08-30 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Don't verify final re-assignment here. + (java_complete_lhs): Verify assignments to finals calling + patch_assignment. Verify re-assignments to finals before calling + patch_assignment. + +2001-08-29 Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): Allow final locals in CASE_EXPRs. + Fixes PR java/1413 + +2001-08-28 Alexandre Petit-Bianco + + * lex.c (java_lex): new local found_hex_digits. Set and then used + in test to reject invalid hexadecimal numbers. + * parse.y (java_complete_tree): Prevent unwanted cast with + initialized floating point finals. + (patch_binop): Emit a warning when detecting a division by zero, + mark result not constant, don't simplify non integer division. + +2001-08-28 Per Bothner + + * jcf-write.c (generate_bytecode_insns): For increments and + decrements just recurse to push constant. Improvement on Mark's patch. + +2001-08-28 Mark Mitchell + + * jcf-write.c (generate_bytecode_insns): Generate an integer to + real conversion for increments and decrements of reals. + +2001-08-27 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Handle unresolved + qualified expressions, prevent numerical qualifiers, fixed typo. + Fixes PR java/4141 + +2001-08-24 Alexandre Petit-Bianco + + * parse.y (check_deprecation): Handle TYPE_DECL in a special case, + don't report anything but deprecated class when marked so. Handle + VAR_DECL. + (patch_method_invocation): Check deprecation on methods and types. + (patch_binop): code becomes an enum tree_code, added default: to + switch to handle that. Detect division by zero, try to fold and + return before using a subroutine. + +2001-08-23 Alexandre Petit-Bianco + + * jcf-parse.c (yyparse): Set magic to 0, don't issue error for a + file smaller than 4 bytes. + * parse.y (check_inner_circular_reference): New function. + (check_circular_reference): Likewise. + (array_initializer:): Accept {,}. + (java_check_circular_reference): Rewritten using + check_circular_reference and check_inner_circular_reference. + (java_complete_expand_method): Unconditionally save and restore + the unpurged exception list. + (build_dot_class_method_invocation): Unmangle signature parameter. + +2001-08-21 Tom Tromey + + * decl.c (init_decl_processing): Add `throws' field to method + descriptor. + * class.c (make_method_value): Compute `throws' field for method. + +2001-08-22 Alexandre Petit-Bianco + + * parse.y (resolve_inner_class): Keep local_enclosing to NULL if + circularity is detected. + (ctors_unchecked_throws_clause_p): Fixed leading comment. + +2001-08-17 Richard Henderson + + * class.c (emit_register_classes): Add align parameter to + call to assemble_integer. + +2001-08-16 Alexandre Petit-Bianco + + * jcf-parse.c (load_class): New locals saved and class_loaded. If + loading a class_or_name fails, try considering an innerclass name + and load the enclosing context. + * parse.y (resolve_inner_class): New function. + (find_as_inner_class): Added leading comment. + (register_incomplete_type): Keep the current context as enclosing + context for JDEP_FIELD dependencies. + (do_resolve_class): Locals new_class_decl and super initialized to + NULL. Call resolve_inner_class, explore the enclosing context + superclass if necessary. + Fixes PR java/4007 + +2001-08-16 Tom Tromey + + * jcf-dump.c (main): Updated for change to jcf_path_seal. + * gjavah.c (main): Updated for change to jcf_path_seal. + * lang.c (version_flag): New global. + (java_decode_option): Recognize `-version'. + (java_init): Update for change to jcf_path_seal. + * jcf.h (jcf_path_seal): Added `print' argument. + * jcf-path.c (jcf_path_seal): Added `print' argument. + +2001-08-13 Zack Weinberg + + * Make-lang.in (java/decl.o): Update dependencies. + * decl.c: Include libfuncs.h, don't include toplev.h. + +2001-08-12 Alexandre Petit-Bianco + + * decl.c (init_decl_processing): exception_type_node, + class_not_found_type_node, and no_class_def_found_type_node + initialized. predef_filenames augmented accordingly. + instinit_identifier_node initialized. + * java-tree.def (INSTANCE_INITIALIZERS_EXPR): Entry removed. + * java-tree.h (enum java_tree_index): New entries + JTI_EXCEPTION_TYPE_NODE, JTI_CLASS_NOT_FOUND_TYPE_NODE, + JTI_NO_CLASS_DEF_FOUND_TYPE_NODE, JTI_INSTINIT_IDENTIFIER_NODE. + (exception_type_node): New macro. + (class_not_found_type_node): Likewise. + (no_class_def_found_type_node): Likewise. + (instinit_identifier_node): Likewise. + (PREDEF_FILENAMES_SIZE): Adjusted. + (TYPE_HAS_FINAL_VARIABLE): Fixed typo. + (struct lang_type): Fixed typo in bitfield name. + (DECL_INSTINIT_P): New macro. + (ID_INSTINIT_P): Likewise. + * jcf-write.c (generate_classfile): instinit$ bears the Synthetic + attribute. + * parse.y (encapsulate_with_try_catch): New function. + (generate_instinit): Likewise. + (build_instinit_invocation): Likewise. + (ctors_unchecked_throws_clause_p): Likewise. + (add_instance_initializer): Deleted. + (build_instance_initializer): Likewise. + (in_instance_initializer): Likewise. + (check_method_redefinition): instinit$ not to be verified. + (java_complete_expand_methods): Generate instinit$, simplified code. + (build_dot_class_method): Eliminated unnecessary locals. Use + encapsulate_with_try_catch, removed unnecessary code. + (fix_constructors): New local iii. Use build_instinit_invocation. + (patch_method_invocation): Added comment. + (maybe_use_access_method): Don't consider instinit$. + (find_applicable_accessible_methods_list): Shorten the search for + instinit$ too. + (java_complete_lhs): case INSTANCE_INITIALIZERS_EXPR removed. + (patch_return): Use DECL_INSTINIT_P instead of in_instance_initializer. + (patch_throw_statement): Likewise. Fixed typo. + +2001-08-12 David Edelsohn + + Revert: + 2001-08-02 Rainer Orth + * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks + ASM_FINAL_SPEC. + (lang_specific_pre_link): Use set_input to set input_filename. + Append `main' here. + * jvgenmain.c (usage): Append literal `main' to CLASSNAME. + (main): Fix definition. + Strip `main' from classname. + Fixes PR java/227. + +2001-08-11 Zack Weinberg + + * lex.h: Don't include setjmp.h. Don't define + SET_FLOAT_HANDLER or prototype set_float_handler. + +2001-08-09 Alexandre Petit-Bianco + + * expr.c (java_lang_expand_expr): Call `expand_end_bindings' and + `poplevel' in the right order. + +2001-08-09 Richard Henderson + + * Make-lang.in (class.o): Depend on TARGET_H. + * class.c (emit_register_classes): Use target hooks instead of + assemble_constructor and assemble_destructor. + +2001-08-08 Alexandre Petit-Bianco + + * check-init.c (flags.h): Include + (check_init): Don't report uninitialized static class + initialization flags, don't free bit index when doing static class + initialization optimization. + (check_for_initialization): Return type changed to `unsigned int.' + (attach_initialized_static_class): New function. + * class.c (add_method_1): Create the initialized static class + table if necessary. + (finish_class): Always emit deferred inline methods. + * decl.c (emit_init_test_initialization): Moved to expr.c + (complete_start_java_method): Don't traverse + DECL_FUNCTION_INIT_TEST_TABLE. + (lang_mark_tree): Mark hash tables in function decls. + * expr.c (emit_init_test_initialization): Moved from decl.c. + (build_class_init): Create LAG_DECL_SPECIFIC for the static class + initialization flag, set DECL_CONTEXT and + LOCAL_CLASS_INITIALIZATION_FLAG. + (java_lang_expand_expr): Emit initialization code for static class + initialized flags when entering block, if necessary. + * gcj.texi (-fno-optimize-static-class-initialization): Documented. + * java-tree.h (flag_optimize_sci): New global variable declaration. + (DECL_FUNCTION_INITIALIZED_CLASS_TABLE): New macro. + (DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND): Likewise. + (LOCAL_FINAL_P): Fixed typo in comment. + (FINAL_VARIABLE_P): Likewise. + (LOCAL_CLASS_INITIALIZATIO_FLAG): New macro. + (LOCAL_CLASS_INITIALIZATIO_FLAG_P): Likewise. + (struct lang_decl): New fields `ict', `smic' and `cif.' + (check_for_initialization): New returned value for global. + (attach_initialized_static_class): New global function. + (STATIC_CLASS_INIT_OPT_P): New macro. + * lang-options.h (-fno-optimize-static-class-initialization): New flag. + * lang.c (java_decode_option): Handle + `-fno-optimize-static-class-initialization' + * parse.y (start_complete_expand_method): New function. + (java_expand_method_bodies): Likewise. + (attach_init_test_initialization_flags): Likewise. + (adjust_init_test_initialization): Likewise. + (emit_test_initialization): Likewise. + (java_complete_expand_methods): Nullify abstract and native method + bodies. + (java_complete_expand_method): New locals `fbody', `block_body' + and `exception_copy.' Reorganized: directly return on empty method + bodies, call `start_complete_expand_method', remember definitely + initialized static class in function, don't expand method bodies. + (java_expand_classes): Call `java_expand_method_bodies' before + `finish_class' when compiling to native. + (resolve_expression_name): Use `orig' after building outer class + field access. + (patch_invoke): Remember static method invocations. + +2001-08-06 Richard Henderson + + * class.c (emit_register_classes): Pass a symbol_ref and priority + to assemble_constructor. + +2001-08-02 Alexandre Petit-Bianco + + * java-tree.h (all_class_filename): New macro. + (enum java_tree_index): New enum `JTI_ALL_CLASS_FILENAME.' + (BUILD_FILENAME_IDENTIFIER_NODE): Fixed leading comment. Link + newly created IDENTIFIER_NODE to `all_class_filename.' + +2001-08-01 Jeff Sturm + + * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): + Use ggc_add_tree_root to register roots. + +2001-07-31 Alexandre Petit-Bianco + + * check-init.c (check_init): WITH_CLEANUP_EXPR node to use its + second operand calling check_init. + * decl.c (complete_start_java_method): Swaped second and third + arguments while creating WITH_CLEANUP_EXPR node. + * jcf-write.c (generate_bytecode_insns): Use second operand + instead of third when handling WITH_CLEANUP_EXPR. + * parse.y (java_complete_lhs): Expand second operand of + WITH_CLEANUP_EXPR nodes. + (patch_synchronized_statement): Swaped second and third arguments + while creating WITH_CLEANUP_EXPR node. + +2001-07-18 Alexandre Petit-Bianco + + * parse.y (create_interface): Avoid cyclic inheritance report when + syntax error encountered during class definition. + Fixes PR java/2956 + +2001-08-02 Rainer Orth + + * jvspec.c (jvgenmain_spec): Cannot use %umain, breaks + ASM_FINAL_SPEC. + (lang_specific_pre_link): Use set_input to set input_filename. + Append `main' here. + * jvgenmain.c (usage): Append literal `main' to CLASSNAME. + (main): Fix definition. + Strip `main' from classname. + Fixes PR java/227. + +2001-07-18 Tom Tromey + + For PR java/2812: + * lex.h: Use HAVE_ICONV, not HAVE_ICONV_H. + * lex.c (java_new_lexer): Use ICONV_CONST. + (java_read_char): Likewise. + * Make-lang.in (jc1$(exeext)): Link against LIBICONV. + (jv-scan$(exeext)): Likewise. + +2001-07-17 Alexandre Petit-Bianco + + * parse.h (INTERFACE_INNER_MODIFIERS): Disallow `private.' + * parse.y (check_class_interface_creation): Allow `private' if the + enclosing is not an interface. + (create_interface): Interface tagged public if the enclosing + context is an interface. + (create_class): Class tagged public if the enclosing context + is an interface. + Fixes PR java/2959 + +2001-07-17 Alexandre Petit-Bianco + + * class.c (push_class): Set DECL_SIZE to `integer_zero_node.' + Fixes PR java/2665 + +2001-07-14 Tim Josling + + * check-init.c (check_init): Remove references to EXPON_EXPR. + +2001-07-13 Alexandre Petit-Bianco + + * parse.y (java_complete_lsh): Set CAN_COMPLETE_NORMALLY and unset + TREE_CONSTANT_OVERFLOW of CASE_EXPR value. + Fixes PR java/3602 + +2001-07-13 Tom Tromey + + * jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 + invocation. + +2001-07-12 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Don't override primary if one + is already provided, but let this$ be built. Fixed comment. + +2001-07-12 Alexandre Petit-Bianco + + * parse.y (empty_statement:): Report empty statement error only + when found at class declaration level. + Fixes PR java/3635 + +2001-07-12 Tom Tromey + + * expr.c (expand_load_internal): New function. + (LOAD_INTERNAL): Use it. + +2001-07-11 Alexandre Petit-Bianco + + * parse.y (verify_constructor_super): Compare anonymous class ctor + args with `valid_method_invocation_conversion_p.' + Fixes PR java/3285 + +2001-07-10 Alexandre Petit-Bianco + + * lang-specs.h: Forbit the use if `-femit-class-file{s}' without + `-fsyntax-only.' Fixes PR java/3248 + +2001-07-10 Alexandre Petit-Bianco + + * jcf-io.c (find_class): Clarified error message. Fixes PR java/2603 + +2001-07-10 Alexandre Petit-Bianco + + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): No `this' is fine if the + current function is static. Fixes PR java/1970 + +2001-07-09 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Add enclosing context to ctor + calls if necessary. Fixes PR java/2953 + +2001-07-09 Alexandre Petit-Bianco + + * parse.y (resolve_package): Abort if qualified expression member + isn't right. + (qualify_ambiguous_name): Don't qualify as type if `this' in use. + Fixes PR java/1391 + +2001-07-07 Zack Weinberg + + * verify.c: Don't use // comments. + +2001-07-05 Tom Tromey + + * lang.c (flag_assume_compiled): Removed. + * java-tree.h (flag_assume_compiled): Removed. + * lang-options.h: Removed -ffile-list-file, -fuse-boehm-gc, + -fhash-synchronization, -fuse-divide-subroutine, + -fcheck-references, -femit-class-file, -femit-class-files, + -fassume-compiled. Updated --encoding information. Changed + -foutput-class-dir to `-d'. + +2001-07-04 Daniel Berlin + + * jcf-parse.c (parse_class_file): Add lineno parameter to + debug_start_source_file call. + +2001-07-04 Joseph S. Myers + + * gcj.texi: Use gpl.texi. + * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Update + dependencies and use doc/include in search path. + +2001-07-03 Jeff Sturm + + * parse.y (fix_constructors): Test if a CALL_EXPR invokes + `this'. If so, don't build instance initializers. + +2001-07-03 Alexandre Petit-Bianco + + * parse.y (resolve_expression_name): Improved error message for + inner class cases. Fixes PR java/1958 + +2001-06-28 Gabriel Dos Reis + + * lang.c: #include diagnostic.h + (lang_print_error): Add a `diagnostic_context *' parameter. + (java_dummy_print): Likewise. + * Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h + +2001-06-27 Alexandre Petit-Bianco + + * jcf-parse.c (gcc_mark_jcf): Test for a finished JCF. + * jcf.h (typedef struct JCF): New bitfield `finished.' + (JCF_FINISH): Set `finished.' + (JCF_ZERO): Reset `finished.' + Fixes PR java/2633 + +2001-06-27 Alexandre Petit-Bianco + + * parse.y (class_body_declaration:): Don't install empty instance + initializers. + Fixes PR java/1314 + +2001-06-27 Alexandre Petit-Bianco + + * class.c (set_super_info): Call `set_class_decl_access_flags.' + (set_class_decl_access_flags): New function. + * java-tree.h (set_class_decl_access_flags): New prototype. + * jcf-parse.c (handle_innerclass_attribute): Read and set access flags. + (parse_class_file): New local `decl_max_locals.' Take wide types + into account to compute DECL_MAX_LOCALS. + * parse.y (type_import_on_demand_declaration:): Ignore duplicate + imports on demand. + +2001-06-22 Jan van Male + + * zipfile.h: Use GCC_JCF_H instead of JCF_H. + +2001-06-20 Alexandre Petit-Bianco + + * class.c (java_hash_tree_node): Fixed indentation in leading comment. + * parse.y (do_resolve_class): Moved comments out to leading comment + section. Removed local `start', New local `_ht' and + `circularity_hash.' Record `enclosing' in hash table and search + it to detect circularity. Use `enclosing' as an argument to + `lookup_cl.' Free the hash table when done. + +2001-06-19 Tom Tromey + + * lex.c (java_read_char): Disallow invalid and overlong + sequences. Fixes PR java/2319. + +2001-06-05 Jeff Sturm + + * decl.c (create_primitive_vtable): Don't call make_decl_rtl. + +2001-06-04 Alexandre Petit-Bianco + + * expr.c (force_evaluation_order): Match wrapped ctor calls, locate + arguments accordingly. + +2001-06-02 Joseph S. Myers + + * gcj.texi: Move contents to just after title page. + +2001-06-01 Alexandre Petit-Bianco + + * parse.y (type_literals:): Use `build_incomplete_class_ref' with + builtin type. + (patch_incomplete_class_ref): Build the class ref, build the class + init if necessary, complete the tree. + Fixes PR java/2605 + +2001-05-31 Alexandre Petit-Bianco + + * parse.y (lookup_field_wrapper): Test `name' code. + (resolve_qualified_expression_name): Test `qual_wfl' code. + (qualify_ambiguous_name): Handle `CONVERT_EXPR', fixe indentation, + handle `qual_wfl' by code. + (maybe_build_primttype_type_ref): Test `wfl' code. + +2001-05-23 Theodore Papadopoulo + + * Make-lang.in ($(srcdir)/java/gcj.info): Added dependencies on + fdl.texi. + (java/gcj.dvi): Use TEXI2DVI instead of custom tex calls. Create + the dvi file in the java directory. + +2001-05-25 Sam TH + + * gen-table.pl javaop.h jcf.h lex.h, + parse.h: Fix header include guards. + +2001-05-23 Joseph S. Myers + + * jv-scan.c (version): Update copyright year. + +2001-05-21 Per Bothner + + * jcf-parse.c (read_class): If class is from .class or .zip file + and it's already been read, don't push/pop parser context. + +2001-05-18 Per Bothner + + * jvspec.c (lang_specific_pre_link): Re-arrange the linker + command line so the jvgenmain-generated main program comes first. + +2001-05-15 Tom Tromey + + * class.c (build_utf8_ref): Don't generate identifier based on + utf8const contents. + +2001-05-12 Richard Henderson + + * java-tree.def (JAVA_EXC_OBJ_EXPR): New. + * expr.c (java_lang_expand_expr): Expand it. + (process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of + calling build_exception_object_ref. + * parse.y (catch_clause_parameter): Likewise. + (build_dot_class_method): Likewise. + (try_reference_assignconv): Likewise. + * check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR. + * jcf-write.c (generate_bytecode_insns): Likewise. + +2001-05-07 Alexandre Petit-Bianco + + * parse.y (build_unresolved_array_type): Set + EXPR_WFL_QUALIFICATION on the newly created wfl. + Fixes PR java/2538. Fixes PR java/2535. + +2001-05-07 Alexandre Petit-Bianco + + * parse.y (fix_constructors): Removed unnecessary assignment to + local. Moved assignment to `this$', fixed comments and + indentation. + (build_wfl_wrap): Fixed indentation. + Fixes PR java/2598, java/2579 and java/2658. + +2001-05-03 Mo DeJong + + * lex.c (java_new_lexer): Call iconv_close on temp handle used to + check for byte swap. + +2000-05-02 Jeff Sturm + + * expr.c (build_class_init): Move MODIFY_EXPR + outside of COND_EXPR. Remove variable `call'. + +2001-05-02 Kaveh R. Ghazi + + * decl.c: NULL_PTR -> NULL. + * jcf-write.c: Likewise. + +2001-05-01 Tom Tromey + + * Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'. + (java/gcj.dvi): Added $(srcdir) to TEXINPUTS. + * gcj.texi: Updated copyright text. Include fdl.texi. + (Top): Link to new node. + +2001-05-01 Per Bothner + + * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon. + +2001-05-01 Per Bothner + + * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the + import_list contains the name, not the TREE_PURPOSE. + +2001-04-29 Kaveh R. Ghazi + + * jcf-io.c (read_zip_member): Cast to long in comparison with + signed value. + + * jvspec.c (lang_specific_driver): Initialize variables. + + * mangle.c (find_compression_record_match): Likewise. + + * typeck.c (build_null_signature): Provide static prototype. Mark + parameter with ATTRIBUTE_UNUSED. + + * verify.c (verify_jvm_instructions): Initialize variable. + +2001-04-27 Bryce McKinlay + + * parse.y (do_resolve_class): Check for cyclic inheritance during + inner class resolution. + +2001-04-27 Per Bothner + + * parse.y (java_expand_classes): Don't change ctxp_for_generation + while iterating, since that could cause gc to lose stuff. + +2001-04-26 Per Bothner + + Fix method search wrt scope of inner classes to match JLS2. + * typeck.c (build_null_signature): New static function. + (has_method): New function. Uses build_null_signature and lookup_do. + * java-tree.h (has_method): New declaration. + * parse.y (find_applicable_accessible_methods_list): Do not search + context of inner classes here. + (patch_method_invocation): Search scope, ie. current and outer clases, + for method matching simple name, to find class. + +2001-04-26 Per Bothner + + * jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): + Fix thinko: If a single case, use if_icmpeq, not ifeq. + + * constants.c (find_methodref_with_class_index): New function. + (find_methodref_index): Use find_methodref_with_class_index. + * java-tree.h (find_methodref_with_class_index): New declaration. + * jcf-write.c (generate_bytecode_insns case CALL_EXPR): Don't change + DECL_CONTEXT, instead use new find_methodref_with_class_index function. + If context changed from interface to class, don't use invokeinterface. + +2001-04-25 Per Bothner + + * verify.c (verify_jvm_instructions): For field instructions, + check that field index is valid. For invoke instructions, check that + method index is valid. + +2001-04-25 Alexandre Oliva + + * config-lang.in (target_libs): Copy from $libgcj_saved. + +2001-04-25 Bryce McKinlay + + * decl.c (init_decl_processing): Add new class "protectionDomain" + field. + * class.c (make_class_data): Set initial value for "protectionDomain". + +2001-04-22 Kaveh R. Ghazi + + * jvspec.c (lang_specific_driver): Fix memory allocation + deficit, by using concat in lieu of xmalloc/sprintf. + +2001-04-20 Per Bothner + + Fixes to compile multiple .class files at once. + * decl.c (init_decl_processing): Don't set CLASS_LOADED_P. + * java-tree.h (CLASS_PARSED_P): New macro. + (CLASS_LOADED_P): Re-define to use TYPE_SIZE and CLASS_PARSED_P. + * jcf-parse.c (jcf_parse_source): Inline into read_class. + (read_class): Avoid some code duplication. + Don't call JCF_FINISH for a .class file - might be needed later. + (jcf_parse): Don't call layout_class here. Check/set CLASS_PARSED_P + rather than CLASS_LOADED_P, since latter implies class laid out. + (yyparse): Do layout_class and JCF_FINISh here instead, in pass 2. + * parse.y: Don't need to set CLASS_LOADED_P for array types. + +2001-04-11 Kaveh R. Ghazi + + * Make-lang.in (java/boehm.o): Depend on toplev.h. + + * boehm.c: Include toplev.h. + +2001-04-06 Tom Tromey + Alexandre Petit-Bianco + + Fix for PR gcj/1404 and PR gcj/2332: + * parse.y (build_array_from_name): If we use the type_wfl then + accumulate dimensions from the original type as well. + (build_unresolved_array_type): Don't modify TYPE_OR_WFL in place. + +2001-04-06 Tom Tromey + + * parse.y (analyze_clinit_body): Return true if the second operand + of a METHOD_EXPR is nonzero. + +2001-04-06 Tom Tromey + + * Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build + directory. + ($(srcdir)/java/parse.c): Likewise. + +2001-04-05 Alexandre Petit-Bianco + + * gcj.texi: Use `which-gcj' instead of `which-g77.' + (version-gcc): Initialized. + (which-gcj): Likewise. + +2001-04-04 Alexandre Petit-Bianco + + * java-tree.h (struct lang_decl): New macro + `DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.' + * parse.y (build_instance_initializer): New function. + (add_instance_initializer): Use it. + (java_fix_constructors): Set `current_class' before fix pass. + (fix_constructors): Just return if already fixed. Move `super()' + invocation ahead. Use `build_instance_initializer.' + Fixes PR java/1315. + +2001-04-04 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Pass field's + DECL_CONTEXT to `not_accessible_p.' + (not_accessible_p): Changed parameters order in `inherits_from_p' + invocation. + +2001-03-27 Andrew Haley + + * lang-options.h: Add flag_check_references. + +2001-04-04 Per Bothner + + * java-tree.h (CONSTANT_VALUE_P): New macro. + * jcf-write.c (generate_classfile): Use CONSTANT_VALUE_P. + * parse.y (maybe_build_class_init_for_field): New static function. + (resolve_expression_name, resolve_field_access): Use + maybe_build_class_init_for_field instead of build_class_init + This does not do the init if the field is compile-time-constant. + (resolve_field_access): Simplify. + + * parse.y (fold_constant_for_init): Merge test into switch. + +2001-04-03 Zack Weinberg + + * Make-lang.in (buffer.o, check-init.o, class.o): Don't depend + on gansidecl.h. + * buffer.c, jvgenmain.c: Don't include gansidecl.h. + +2001-04-02 Zack Weinberg + + * expr.c (pop_type_0): Save the result of the first + lang_printable_name call in a scratch buffer, so it + won't be clobbered by the second call. + +2001-03-30 Alexandre Petit-Bianco + + * parse-scan.y (array_type:): Rewritten. + (type_declaration:): `empty_statement' replaces `SC_TK.' + (class_member_declaration:): `empty statement' added. + (method_body:): Simplified. + (static_initializer:): Likewise. + (primary_no_new_array:): Use `type_literals.' + (type_literals:): New rule. + (dims:): Set and update `bracket_count.' + Fixes PR java/1074. Fixes PR java/2412. + +2001-03-28 Hans Boehm + + * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.' + (get_boehm_type_descriptor): Set type on returned value to be a + pointer length integer. + +2001-03-28 Kaveh R. Ghazi + + * expr.c (pop_type_0): Call `concat' rather than building the + string manually. + (pop_type): Add format specifier in call to `error'. + + * parse.y (patch_method_invocation): Avoid casting away + const-ness. + +2001-03-28 Jeffrey Oldham + + * jvgenmain.c (do_mangle_classname): End string constant with '\0'. + +2001-03-28 Richard Henderson + + IA-64 ABI Exception Handling: + * Make-lang.in (except.o): Don't depend on eh-common.h. + * check-init.c (check_init): Handle EXC_PTR_EXPR. + * decl.c (init_decl_processing) [throw_node]: No _Jv_Sjlj_Throw. + [soft_exceptioninfo_call_node]: Remove. + [eh_personality_libfunc, lang_eh_runtime_type]: New. + (end_java_method): No emit_handlers. + * except.c (java_set_exception_lang_code): Remove. + (method_init_exceptions): Don't call it. + (prepare_eh_table_type): No CATCH_ALL_TYPE. + (build_exception_object_ref): New. + (expand_end_java_handler): Update for except.h name changes. + (emit_handlers, expand_resume_after_catch): Remove. + * expr.c (java_lang_expand_expr): Update for except.h name changes. + (process_jvm_instruction): Use build_exception_object_ref. + * java-tree.h (JTI_SOFT_EXCEPTIONINFO_CALL_NODE): Remove. + (soft_exceptioninfo_call_node): Remove. + (build_exception_object_ref): Declare. + * jcf-write.c (generate_bytecode_insns) [CALL_EXPR]: No + soft_exceptioninfo_call_node. Move processing ... + [EXC_PTR_EXPR]: ... here. + * parse.h (BUILD_ASSIGN_EXCEPTION_INFO): Remove dead code. + * parse.y (catch_clause_parameter): Use build_exception_object_ref. + (source_end_java_method): No java_set_exception_lang_code or + emit_handlers. + (build_dot_class_method): Use build_exception_object_ref. + (try_reference_assignconv): Check EXC_PTR_EXPR not + soft_exceptioninfo_call_node. + +2001-03-28 Richard Henderson + + * java-tree.h (throw_node): Define as a single member of + java_global_trees instead of a separate array. + (JTI_THROW_NODE): New. + * decl.c (throw_node): Don't declare. + (init_decl_processing): Init a scalar throw_node. + Don't register it for gc. + * check-init.c (check_init): Reference scalar throw_node. + * expr.c (build_java_athrow): Likewise. + * jcf-write.c (generate_bytecode_insns): Likewise. + * parse.h (BUILD_THROW): Likewise. + +2001-03-28 Richard Henderson + + * decl.c (end_java_method): Do not save and restore + flag_non_call_exceptions. + * parse.y (source_end_java_method): Likewise. + * lang.c (flag_exceptions): Don't declare. + (java_init_options): Set flag_non_call_exceptions. Set + flag_exceptions here ... + (java_init): ... not here. + +2001-03-27 Richard Henderson + + * expr.c, parse.h: Use USING_SJLJ_EXCEPTIONS instead of + exceptions_via_longjmp. + + * lang.c (flag_new_exceptions): Don't declare it. + (java_init_options): Or set it. + +2001-03-27 Richard Henderson + + * decl.c (end_java_method): Rename asynchronous_exceptions to + flag_non_call_exceptions. + * parse.y (source_end_java_method): Likewise. + +2001-03-27 Kaveh R. Ghazi + + * Make-lang.in: Depend on $(SYSTEM_H), not system.h. + +2001-03-26 Mark Mitchell + + * parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE. + +2001-03-26 Alexandre Petit-Bianco + + * parse.y (find_as_inner_class): Follow current package + indications not to mistakingly load an unrelated class. + +2001-03-25 Kaveh R. Ghazi + + * constants.c (PUTN): Use memcpy, not bcopy. + + * lex.c (java_read_char): Use memmove, not bcopy. + + * parse.y (java_parser_context_resume): Use memcpy, not bcopy. + +2001-03-23 Per Bothner + + * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE + macro for better error pin-pointing. + * java-tree.h: Fix typo in comment. + + * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. + Don't include jsr/goto in exception range. + Check if start and end of exception range are the same (also TRY_EXPR). + Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. + However, do emit the following goto even if try_block is empty. + Defer freeing exception_decl until after the finalizer, to make + sure the local isn't reused in the finalizer. Fixes PR java/1208. + + * parse.y (java_complete_lhs): If the try-clause is empty, just + return the finally-clause and vice versa. + +2001-03-23 Alexandre Petit-Bianco + + * gcj.texi (Input Options): documented the check for attribute + `gnu.gcc.gccj-compiled' and the `-fforce-classes-archive-check' flag. + * java-tree.h (flag_force_classes_archive_check): Declared extern. + * jcf-parse.c (HANDLE_GCJCOMPILED_ATTRIBUTE): New macro. + (jcf_parse): Check for the right classes archive if necessary. + * jcf-reader.c (get_attribute): Define `MATCH_ATTRIBUTE' and use it. + (jcf_parse_fields): Fixed indentation. + * jcf-write.c (append_gcj_attribute): New function. + (generate_classfile): Compute the attribute count, invoke + `append_gcj_attribute'. + * jcf.h (typedef struct JCF): `seen_in_zip' and `java_source' + turned into bit-fields. New bit-field `right_zip.' + (JCF_ZERO): Set `right_zip' to zero. + * lang-options.h (-fforce-classes-archive-check): Added flag. + * lang.c (flag_force_classes_archive_check): New flag. + (lang_f_options): New entry `force-classes-archive-check.' + Fixes PR java/1213. + +2001-02-07 Andrew Haley + + * gcj.texi (Configure-time Options): Add -fcheck-references. + * expr.c (build_java_indirect_ref): New function. + (java_check_reference): New function. + (build_java_array_length_access): Use build_java_indirect_ref to + check for null references. + (build_java_arrayaccess): Likewise. + (build_get_class): Likewise. + (build_field_ref): Likewise. + (invoke_build_dtable): Likewise. + (build_invokeinterface): Likewise. + * lang.c (lang_f_options): Add flag_check_references. + * jvspec.c (jvgenmain_spec): Add flag_check_references. + * java-tree.h (flag_check_references): New variable. + * lang.c (flag_check_references): Likewise. + * parse.y (patch_invoke): Use java_check_reference. + (patch_assignment): Allow for extra nesting in + _Jv_CheckArrayStore. + +2001-03-23 Bryce McKinlay + + * gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. + * lex.c (cxx_keywords): Likewise. + +2001-03-21 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Broaden `length' + recognition. Help MODIFY_EXPR be resolved as expression names. + Fixes PR java/2066. Fixes PR java/2400. + +2001-03-21 Bryce McKinlay + + * gjavah.c (process_file): Mark interface definitions with + "__attribute__ ((java_interface))". + +2001-03-21 Alexandre Petit-Bianco + + * class.c (layout_class): Fixed push_super_field's second + argument. Fixes PR java/2333. + (jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's + too early to lay innerclasses out. + +2001-03-20 Tom Tromey + Alexandre Petit-Bianco + + * parse.y (patch_assignment): Handle the case of a SAVE_EXPR + inside an array reference. Insertion of the array store check + rewritten. Fixes PR java/2299. + +2001-03-20 Tom Tromey + + * lex.c (java_read_unicode): Only accept leading `u's. + +2001-03-20 Tom Tromey + + * jcf-parse.c (read_class): Initialize `class'. + +2001-03-20 Matt Kraai + + * jcf_parse.c (jcf_parse): Eliminate unused variable. + +2001-03-19 Mark Mitchell + + * class.c (build_class_ref): Use SET_DECL_ASSEMBLER_NAME. + (layout_class): Likewise. + (layout_class_method): Likewise. + (emit_register_classes): Likewise. + * decl.c (builtin_function): Likewise. + (give_name_to_locals): Likewise. + +2001-03-19 Per Bothner + + * jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P + before trying to load an inner class. + + Fixes to process to command-line .class files in two passes. + * java-tree.h (JAVA_FILE_P, CLASS_FILE_P, ZIP_FILE_P): New flags. + (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P): Rename to .. + (CLASS_FROM_CURRENTLY_COMPILED_P): ... because it is more general now. + * class.c (is_compiled_class): Fix for renamed flag. + * parse.y (maybe_create_class_interface_decl): Likewise. + * jcf-parse.c (yyparse): Also set if compiling .class files. + * jcf-parse.c (read_class); Read current_class. + (jcf_parse): Make static. + (load_inner_classes): New function, with code moved from jcf_parse, + because we need to inner classes after the command-line files are read. + (yyparse): Set finput to NULL when it doesn't need to be closed. + Reduce use of main_jcf (basically only for archive) and + use finput instead of main_jcf->read_state. + Inline jcf_figure_file_type into yyparse. + Set JAVA_FILE_P, CLASS_FILE_P, or ZIP_FILE_P on filename list name. + Defer load_inner_classes and parse_class_file to a second pass, + after we've correctly mapped command-line .clas fiels to classes. + (jcf_figure_file_type): Removed. + * jcf.h (JCF_ZIP, JCF_CLASS, JCF_SOURCE): Removed flags. + (JCF_ZERO): Also clear zipd field. + * zipfile.h: Conditionalize on JCF_H insread of JCF_ZIP. + +2001-03-18 Matt Kraai + + * jcf-parse.c (yyparse): Change ch from char * to char. + +2001-03-19 Per Bothner + + * jvspec.c (lang_specific_driver): Check for .zip and .jar files. + Add constructed filelist-file at end, following -xjava. Thus any .o + and library files are not affected by the -xjava. Also wrap + explicit @FILE with -xjava and -xnone. + +2001-03-19 Andrew Haley + + * class.c (build_static_field_ref): Call make_decl_rtl() after + setting the DECL_EXTERNAL flag. + +2001-03-17 Per Bothner + + * decl.c (clear_binding_level): Fix initializer (broke 03-15). + + * jcf-write.c (generate_bytecode_insns): Handle emitting iinc + when result is is needed (target is STACK_TARGET). + + * parse.h (JDEP_SOLV): Removed. + * parse.y (register_incomplete_type): Use JDEP_TO_RESOLVE instead. + + * parse.y (incomplete_class_list): Removed. + (obtain_incomplete_type): Don't use or set incomplete_class_list. + It doesn't work if resolve_class changes the name of an array type + that is on the list and then someone else looks for the modified name. + Also, seems liable to break when compiling multiple source files at + once. So the simplest is to just remove incomplete_class_list - + it is only a minor space win and it is not even clear it saves time. + + * parse.y (resolve_class): Remove unneeded promote_type. + +2001-03-15 Per Bothner + + * java-tree.h (BLOCK_IS_IMPLICIT): New flag. + * parse.h (BLOCK_EXPR_ORIGIN): Removed macro. + * parse.y (declare_local_variables, maybe_absorb_scoping_blocks): + Use BLOCK_IS_IMPLICIT rather than BLOCK_EXPR_ORIGIN. + + * jcf-parse.c (yyparse): Set/reset input_filename for source file. + * parse.y (java_expand_classes): Likewise. + + * parse.y (expand_start_java_method): Was only called once and had a + misleading name, so inline in caller java_complete_expand_method. + (enter_a_block): Likewise inline in enter_block and remove. + + Remove junk from when gcc/java was created (by copying from C/C++). + * decl.c (keep_next_level_flag, keep_next_if_subblocks): Remove. + (struct binding_level): Remove fields keep, keep_if_subblocks, + more_cleanups_ok, have_cleanups (which have never been used). + (pushlevel, poplevel): Remove related useless code. + + * class.c (make_class_data): The class_dtable_decl (i.e. the + vtable for Class) should be external, except when compiling Class. + + * jvspec.c (lang_specific_driver): Fix -C handling. + Check -save-temps to see if temp @FILE should be deleted. + Follow-up to/fix for February 16 patch. + + * verify.c (verify_jvm_instructions): Better error msgs for dup. + (type_stack_dup): Remove no-longer neded error check. + +2001-03-15 Bryce McKinlay + + * mangle.c (mangle_record_type): Rename 'from_pointer' argument + to 'for_pointer'. If this type is for a pointer (argument) mangling, + don't surround the element with 'N..E' if the type name is + unqualified. + +2001-03-14 Mark Mitchell + + * class.c (build_static_field_ref): Use COPY_DECL_RTL, + DECL_RTL_SET_P, etc. + (make_method_value): Likewise. + (get_dispatch_table): Likewise. + + * decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. + +2001-03-07 Tom Tromey + + * config-lang.in (lang_requires): Define. + +2001-03-07 Brad Lucier + + * typeck.c (convert): Check flag_unsafe_math_optimizations, + not flag_fast_math. + +2001-03-05 Per Bothner + + Fix a problem where rest_of_decl_compilation applied to + class_dtable_decl causes problems because it was done too early, + before output file was opened. + * decl.c (init_decl_processing): Remove init of class_dtable_decl. + * class.c (class_dtable_decl): Add macro - element of class_roots. + (make_class_data): Define class_dtable_decl. + * java-tree.h (JTI_CLASS_DTABLE_DECL, class_dtable_decl): Removed. + +2001-03-01 Zack Weinberg + + * java/class.c, java/decl.c, java/java-tree.h: Replace all + uses of 'boolean' with 'bool'. + +2001-03-01 Zack Weinberg + + * lang-specs.h: Add zero initializer for cpp_spec field to all + array elements. + +2001-02-16 Per Bothner + + Handle compiling multiple input files at once, and @FILE syntax. + * gcj.texi: Updated documentation to match. + * java-tree.h (flag_filelist_file, init_src_parse): New declarations. + * jcf-parse.c (parse_source_file): Split into ... + (parse_source_file_1): New function - and: + (parse_source_file_2): New function. + (yyparse): On -ffilelist-file, open and scan named file. + On first pass over files, only do parse_source_file_1. + A new second pass calls parse_source_file_2 for each file to compile. + (init_jcf_parse): Call init_src_parse. + * jvspec.c (INDIRECT_FILE_ARG): New flag. + (lang_specific_driver): Support @FILELIST-FILE syntax, as well + as multiple input file combined in one compilation. + * lang-options.h: Add -ffilelist-file + * lang.c (flag_filelist_file): New flag variable. + (lang_f_options): Handle -ffilelist-file. + * lex.c (java_init_lex): Don't clear ctxp->incomplete_class. + * parse.h (struct parse_ctxt): Remove fields incomplete_class and + gclass_list - use global fields of src_parse_roots instead. + * parse.y (src_parse_roots): New array. + (incomplete_class_list, gclass_list): New macros. + (push_parser_context, java_pop_parser_context, + java_parser_context_resume): Don't fiddle with deleted fields. + (various): Use incomplete_class gclass_list and global macros + instead of parse_ctxt fields - the lists are global. + (init_src_parse): New function. + +2001-02-23 Richard Kenner + + * decl.c (set_block): Set NAMES and BLOCKS from BLOCK. + +2001-02-20 Alexandre Petit-Bianco + + * parse.y (check_inner_class_access): Moved declaration of local + `enclosing_decl_type' to the right location. + +2001-02-19 Bryce McKinlay + + * parse.y (parser_check_super_interface): Don't call + check_pkg_class_access for an inner interface. + (parser_check_super): Don't call check_pkg_class_access for inner + class. + (do_resolve_class): Simplify enclosing type loop. Don't call + check_pkg_class_access if CL and DECL are not set. + (find_in_imports_on_demand): Set DECL if class_type needed to be + loaded. Don't call check_pkg_class_access for an inner class. + (check_inner_class_access): Rewritten to implement member access + rules as per spec 6.6.1. + (check_pkg_class_access): Handle the empty package correctly. + (in_same_package): New function. Determine if two classes are in the + same package. + +2001-02-18 Bryce McKinlay + + * typeck.c (build_java_array_type): Don't try to poke a public `clone' + method into array types. + * parse.y (patch_method_invocation): Bypass access check on clone call + to array instance. + +2001-02-15 Alexandre Petit-Bianco + + * expr.c (build_instanceof): Check for arrays when trying fold to + false. + +2001-02-15 Jim Meyering + + * Make-lang.in (java.install-common): Depend on `installdirs'. + (java.install-info): Likewise. + +2001-02-15 Bryce McKinlay + + * Make-lang.in (jvspec.o): Modify rule to match that of cp/g++spec.o. + +2001-02-14 Tom Tromey + Alexandre Petit-Bianco + + Fix for PR java/1261. + * typeck.c (build_java_array_type): Add public `clone' method to + arrays. + * parse.y (resolve_qualified_expression_name): Use current_class + when checking for inaccessibility. + (patch_method_invocation): Fixed error message when accessibility + denied. Added `from_super' argument. + +2001-02-14 Alexandre Petit-Bianco + + * parse.y (resolve_class): Don't build a fake decl. Use the one + already built. + * typeck.c (build_java_array_type): Build and assign decl to array + type. + +2001-02-14 Alexandre Petit-Bianco + + * parse.y (not_accessible_p): Changed leading comment. Added extra + `where' argument. Use it to enforce protected access rules. + (resolve_qualified_expression_name): Added extra argument to + not_accessible_p. + (patch_method_invocation): Use argument `primary' to provide + not_accessible_p with an extra argument. + (lookup_method_invoke): Added extra argument to not_accessible_p. + (search_applicable_method_list): Likewise. + +2001-02-13 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Try to resolve as + an inner class access only if `decl' is a TYPE_DECL. + +2001-02-13 Alexandre Petit-Bianco + + * decl.c (classdollar_identifier_node): Initialize. + * java-tree.h (enum java_tree_index): New entry + `JTI_CLASSDOLLAR_IDENTIFIER_NODE.' + (classdollar_identifier_node): New macro. + (ID_CLASSDOLLAR_P): Likewise. + * parse.y (build_dot_class_method): Use `classdollar_identifier_node.' + (build_dot_class_method_invocation): Likewise. + (find_applicable_accessible_methods_list): `class$' can't be + inherited. + +2001-02-09 Raja R Harinath + + * Make-lang.in (java/mangle_name.o): Add 'make' prereqs. + +2001-02-09 Alexandre Petit-Bianco + + * Manke-lang.in (JVGENMAIN_OBJS): Added `errors.o' + * jvgenmain.c (error): Reversed 2001-02-09 patch. `error' is now + gone. + +2001-02-09 Alexandre Petit-Bianco + + * mangle_name (append_unicode_mangled_name): Emit `_' or `U' + outside of the `__U' sequence too. + (unicode_mangling_length): Count `_' or `U' outside of the `__U' + sequence too. + +2001-02-09 Alexandre Petit-Bianco + + * jvgenmain.c (error): Reversed 2001-02-01 deletion. + +2001-02-08 Alexandre Petit-Bianco + + * Make-lang.in (JAVA_OBJS): Added java/mangle_name.o + (JVGENMAIN_OBJS): Likewise. + * java-tree.h (append_gpp_mangled_name): New prototype. + * jcf-parse.c (ggc_mark_jcf): Argument now `void *.' + Removed cast calling `gcc_add_root.' + * jvgenmain.c (mangle_obstack): New global, initialized. + (main): Use it. + (do_mangle_class): Constify local `ptr.' + Removed macro `MANGLE_NAME.' Removed cast in `for.' Call + append_gpp_mangle_name and update `count' if necessary. + Use `mangle_obstack.' + * mangle.c (append_unicode_mangled_name): Removed. + (append_gpp_mangled_name): Likewise. + (unicode_mangling_length): Likewise. + (mangle_member_name): Return type set to `void.' + (mangle_field_decl): Don't append `U' in escaped names. + (mangle_method_decl): Likewise. + (mangle_member_name): Just use `append_gpp_mangled_name.' + * mangle_name.c: New file. + +2001-02-07 Per Bothner + + * check-init.c (check_init): Fix TRY_FINALLY_EXPR logic. + + * check-init.c (check_init): Don't call done_alternative after + processing loop code, as a LOOP_EXPR never terminates normally. + +2001-02-08 Joseph S. Myers + + * gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. + +2001-02-07 Alexandre Petit-Bianco + + * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field + DECLs. + +2001-02-06 Tom Tromey + + * lex.c (java_new_lexer): Longer error message. + +2001-02-05 Jeff Sturm + Alexandre Petit-Bianco + + * typeck.c (build_prim_array_type): Added leading comment. + (build_java_array_type): Moved locals out of + block. Always create the `data' field, fixed alignment to match + C++. + +2001-02-04 Tom Tromey + + * expr.c (java_lang_expand_expr): Don't bother recomputing + `length'. Use rest_of_decl_compilation, not make_decl_rtl. + Fixes PR java/1866. + +2001-02-05 Alexandre Petit-Bianco + + * parse.y (process_imports): Save the original name of the import + for better error report. + +2001-02-04 Bryce McKinlay + + * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list + of macros used when compiling jvspec.c. + * jvspec.c (lang_specific_driver): Link with the shared + libgcc by default. + +2001-02-04 Richard Kenner + + * check-init.c (check_init): Call internal_error instead of fatal. + * expr.c (java_lang_expand_expr): Likewise. + * jcf-parse.c (get_constant): Likewise. + * mangle.c (java_mangle_decl): Likewise. + * parse.y (make_nested_class_name, java_complete_lhs): Likewise. + (operator_string): Likewise. + * check-init.c (check_init): Call abort instead of fatal. + * class.c (build_class_ref): Likewise. + * constants.c (write_constant_pool): Likewise. + * decl.c (start_java_method): Likewise. + * expr.c (push_type, java_stack_pop, java_stack_swap): Likewise. + (java_stack_dup, encode_newarray_type): Likewise. + (build_java_array_length_access): Likewise. + (build_java_check_indexed_type, expand_java_pushc): Likewise. + (build_java_soft_divmod, build_invokeinterface): Likewise. + * java-tree.h (INNER_CLASS_P): Likewise. + * jcf-parse.c (parse_signature, get_name_constant): Likewise. + (give_name_to_class, get_class_constant): Likewise. + * jcf-write.c (CHECK_PUT, CHECK_OP, get_access_flags): Likewise. + (find_constant_index, generate_bytecode_conditional): Likewise. + (generate_bytecode_insns, perform_relocations): Likewise. + * lex.c (java_unget_unicode, java_lex): Likewise. + * mangle.c (mangle_type, mangle_record_type): Likewise. + (mangle_pointer_type, mangle_array_type, init_mangling): Likewise. + (finish_mangling): Likewise. + * parse.h (MARK_FINAL_PARMS): Likewise. + * parse.y (pop_current_osb, unreachable_stmt_error): Likewise. + (obtain_incomplete_type, java_complete_class): Likewise. + (java_check_regular_methods, java_complete_expand_method): Likewise. + (cut_identifier_in_qualified, check_deprecation): Likewise. + (patch_invoke, find_applicable_accessible_methods_list): Likewise. + (java_complete_lhs, lookup_name_in_blocks): Likewise. + (check_final_variable_indirect_assignment, build_unaryop): Likewise. + * typeck.c (set_local_type, parse_signature_type): Likewise. + (parse_signature_string, build_java_signature): Likewise; + (set_java_signature): Likewise. + * verify.c (type_stack_dup, CHECK_PC_IN_RANGE): Likewise. + * class.c (add_method): Call fatal_error instead of fatal. + (build_static_field_ref): Likewise. + * expr.c (build_known_method_ref, expand_invoke): Likewise. + * jcf-parse.c (get_constant, jcf_parse): Likewise. + * lex.c (java_new_new_lexer): Likewise. + * jv-scan.c (main): Likewise. + (fatal_error): Renamed from fatal. + * jcf-parse.c (yyparse): Call fatal_io_error instead of + pfatal_with_name. + * jcf-parse.c (jcf_parse_source): Call fatal_io_error, not fatal. + (yyparse): Likewise. + * jcf-write.c (make_class_file_name, write_classfile): Likewise. + * lex.c (java_get_line_col): Likewise. + * jcf-parse.c (load_class): Make errors non-fatal. + * lex.c (byteswap_init, need_byteswap): Only #ifdef HAVE_ICONV. + +2001-02-01 Bryce McKinlay + + * jvgenmain.c (class_mangling_suffix): Remove unused string. + (error): Remove unused function. + (main): Don't use "__attribute__ alias" on generated class symbol. + +2001-01-30 Alexandre Petit-Bianco + + * jcf-parse.c (init_jcf_parse): Added cast to ggc_add_root's last + argument. + * parse.y (finish_method_declaration): Code accounting for WFLed + method DECL_NAMEs deleted. + (check_abstract_method_definitions): Likewise. + (resolve_type_during_patch): Layout resolved type. + * typeck.c (lookup_do): Removed unused local. + +2001-01-30 Bryce McKinlay + + * java-tree.h: Remove JTI_INTEGER_NEGATIVE_ONE_NODE. + * decl.c (init_decl_processing): Use integer_minus_one_node, not + integer_negative_one_node. + * expr.c (build_java_binop): Likewise. + +2001-01-24 Jeff Sturm + + * zextract.c (read_zip_archive): Read file_offset before writing + zipd and consequently clobbering the header contents. + +2001-01-27 Kaveh R. Ghazi + + * Make-lang.in: Remove all dependencies on defaults.h. + * decl.c: Don't include defaults.h. + * expr.c: Likewise. + * parse.y: Likewise. + +2001-01-25 Alexandre Petit-Bianco + + * ChangeLog (2001-01-21): Fixed typo. + * class.c (layout_class_method): Code accounting for WFLed + method DECL_NAMEs deleted. + * constant.c (find_methodref_index): Likewise. + * decl.c (lang_mark_tree): Mark `wfl' field in struct lang_decl. + * java-tree.h (DECL_FUNCTION_WFL): New macro. + (struct lang_decl): New field `wfl'. + (java_get_real_method_name): Prototype deleted. + * mangle.c (mangle_method_decl): Code accounting for WFLed + method DECL_NAMEs deleted. + * parse.h (GET_METHOD_NAME): Macro deleted. + * parse.y (reset_method_name): Deleted. + (method_header): Set DECL_FUNCTION_WFL. + (check_abstract_method_header): Code accounting for WFLed method + DECL_NAMEs deleted. + (java_get_real_method_name): Deleted. + (check_method_redefinition): Code accounting for WFLed method + DECL_NAMEs deleted. Use DECL_FUNCTION_WFL. + (java_check_regular_methods): Likewise. + (java_check_abstract_methods): Likewise. + (java_expand_classes): Don't call `reset_method_name.' + (search_applicable_method_list): Use DECL_NAMEs instead of + GET_METHOD_NAME. + * typeck.c (lookup_do): Code accounting for WFLed method + DECL_NAMEs deleted. + +2001-01-25 Richard Earnshaw + + * lex.c (java_read_char): Check for EOF from getc first. + +2001-01-23 Alexandre Petit-Bianco + + * class.c (layout_class): Don't lay the superclass out if it's + already being laid out. + * jcf-parse.c (handle_innerclass_attribute): New function. + (HANDLE_INNERCLASSES_ATTRIBUTE): Invoke + handle_innerclasses_attribute. + (jcf_parse): Don't load an innerclasses if it's already being + laid out. + * jcf-write.c (append_innerclass_attribute_entry): Static + `anonymous_name' and its initialization deleted. `ocii' and `ini' + to be zero for anonymous classes. + +2001-01-23 Alexandre Petit-Bianco + + * class.c (set_constant_value): Set DECL_FIELD_FINAL_IUD if + necessary. + * jcf-parse.c (set_source_filename): Use + MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC if necessary. + +2001-01-23 Alexandre Petit-Bianco + + * expr.c (build_jni_stub): Set DECL_CONTEXT on `meth_var' so it + gets a unique asm name. + +2001-01-23 Alexandre Petit-Bianco + + * jcf-parse.c (HANDLE_END_METHODS): Nullify current_method. + (HANDLE_START_FIELD): Invoke MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC + if necessary. + (HANDLE_SYNTHETIC_ATTRIBUTE): New macro. + * jcf-reader.c (get_attribute): Handle `Synthetic' attribute. + * parse.y (lookup_package_type_and_set_next): Deleted. + (resolve_package): Removed unnecessary code. + (find_applicable_accessible_methods_list): `finit$' can't be + inherited. + * verify.c (pop_argument_types): Added missing prototype. + +2001-01-23 Bryce McKinlay + + * config-lang.in: Disable java by default. + +2001-01-23 Tom Tromey + + * gcj.texi (Copying): New node. + Added copyright information. + +2001-01-21 Per Bothner + + Various fixes to allow compiling a compressed .jar/.zip archive. + * zipfile.h (struct ZipFileCache): Replace by struct ZipFile. + (struct ZipFile): Add fields name and next (from ZipFileCache). + (struct ZipDirectory): New field zipf points to owning ZipFile. + * jcf.h (struct ZipDirectory): Add forward declaration. + (struct JCF): Declare zipd field to have type struct ZipDirectory. + Remove seen_in_zip and zip_offset fields. + (JCF_SEEN_IN_ZIP): New macro. + * zextract.c (read_zip_archive): Set ZipDirectory's zipf field. + * jcf-io.c: Change all ZipFileCache to ZipFile. + (read_zip_member): New function. + (open_in_zip): Call read_zip_member. + * jcf-parse.c (find_in_current_zip): Remove function. + (read_class): Merge in find_in_current_zip functionality. + Call read_zip_member if needed. + (parse_zip_file_entries): Use read_zip_member. + (process_zip_dir): Update for removed and added JCF fields. + (jcf_figure_file_type): Re-use, don't copy initial ZipFile struct. + +2001-01-21 Per Bothner + + Minor optimization of static ggc roots. + * jcf-parse.c (parse_roots): New static field. + (current_field, current_method, current_file_list): Replace by macros + naming fields of parse_roots. + (init_jcf_parse): Combine 3 ggc_add_tree_root calls to 1. + * class.c (class_roots): New static field. + (registered_class, fields_ident, info_ident, class_list): + New macros naming fields of parse_roots. + (build_static_field_ref): Don't register roots here. + (layout_class): Static field list replaced by macro class_list. + (init_class_processing): Call ggc_add_tree_root for 4 roots. + Initialize fields_ident and info_ident here. + +2001-01-21 Per Bothner + + * jcf-parse.c (ggc_mark_jcf): New function. + (init_jcf_parse): Register current_jcf as ggc root. + +2001-01-21 Per Bothner + + * lang.c (put_decl_node): Print method's name. + +2001-01-21 Per Bothner + + * verify.c (VERIFICATION_ERROR_WITH_INDEX): New macro. + (verify_jvm_instructions): Use it, for better error messages on loads. + +2001-01-21 Per Bothner + + * verify.c (merge_type_state): Still may have to merge even if + LABEL_VERIFIED (label). + +2001-01-21 Per Bothner + + * parse.y (method_header): Don't set the DECL_NAME of a FUNCTION_DECL + to a EXPR_WITH_FILE_LOCATION - that is just too fragile and wrong. + +2001-01-19 Per Bothner + + * expr.c (pop_type_0): Only return object_ptr_type_node on mismatch + if expeting an interface type. Refines Tom's change of 2000-09-12. + +2001-01-18 Per Bothner + + * gcj.texi (Input Options): Mention .java files. + +2001-01-17 Alexandre Petit-Bianco + + * lang-options.h (-Wunsupported-jdk11): Removed. + * lang.c (flag_not_overriding): Deleted. + (flag_static_local_jdk1_1): Likewise. + (lang_W_options): Removed "unsupported-jdk11" entry. + * parse.y (java_check_methods): Removed dead code. + +2001-01-17 Tom Tromey + + Changes suggested by Per Bothner: + * gcj.texi (Input Options): Don't mention input files. + (Code Generation): Updated --main information. + (Invoking jcf-dump): Mention that --javap is incomplete. + From Alexandre Petit-Bianco: + (Warnings): Don't mention -Wunsupported-jdk11. + My stuff: + (Compatibility): Mention JDK 1.2-ness of libraries. + (Resources): Mention resources used when writing gcj. + +2001-01-17 Tom Tromey + + * gcj.texi: New file. + * Make-lang.in ($(srcdir)/java/gcj.info): New target. + (java.info): Depend on gcj.info. + (java/gcj.dvi): New target. + (java.dvi): Depend on gcj.dvi. + (java.install-info): Wrote. + +2001-01-16 Jeff Sturm + + * expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after + having called make_decl_rtl. + +2001-01-14 Per Bothner + + Various patches to emit better messages on verification errors. + * expr.c (push_type_0): Return error indication on stack overflow, + instead of callinfg fatal. + (push_type): Now just call push_type_0 (nd fatal on overflow). + (pop_type_0): Return detailed error message (in a char** argument). + (pop_type): If pop_type_0 fails, print error message. + (pop_argument_types): Moved to verify.c. + * verify.c (pop_argument_types): Moved from expr.c. + Return a (possible) error message, rather than void. + (POP_TYPE, POP_TYPE_CONV, PUSH_TYPE, PUSH_PENDING): New macros. + (verify_jvm_instruction): Use new macros, improving error messages. + For case OPCODE_astore use object_ptr_type_node. + * java-tree.h (TYPE_UNDERFLOW, TYPE_UNEXPECTED): New macros. + (pop_type_0, push_type_0, pop_argument_types): Update accordingly. + + * parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is + constant, return body without wrapper. (Improves constant folding.) + * lex.c (build_wfl_node): Clear TREE_TYPE from returned node. + +2001-01-13 Per Bothner + + * expr.c (expand_java_field_op): Assigning to a final field outside + an initializer does not violate JVM spec, so should be warning, not + error. (Sun's verifier does not complain - though MicroSoft's does.) + +2001-01-12 Joseph S. Myers + + * gjavah.c (version), jcf-dump.c (version): Update copyright year + to 2001. + +2001-01-11 Bryce McKinlay + + * parse.y (resolve_expression_name): Permit instance variables from + enclosing context in super constructor call. + (resolve_qualified_expression_name): Permit enclosing class's qualified + "this" in super constructor call. + +2001-01-10 Mark Mitchell + + * class.c (build_utf8_ref): Remove last argument in call to + make_decl_rtl; use make_function_rtl instead of make_decl_rtl. + (build_class_ref): Likewise. + (build_static_field_ref): Likewise. + (get_dispatch_table): Likewise. + (layout_class_method): Likewise. + (emit_register_classes): Likewise. + * constants.c (build_constant_data_ref): Likewise. + * decl.c (builtin_function): Likewise. + (create_primitive_vtable): Likewise. + * expr.c (build_known_method_def): Likewise. + (build_jni_stub): Likewise. + (java_lang_expand_expr): Likewise. + +2001-01-10 Tom Tromey + + * jvspec.c (jvgenmain_spec): Omit -fencoding from cc1 invocation. + +2001-01-08 Alexandre Petit-Bianco + + * java-tree.h (lang_printable_name_wls): New prototype. + * lang.c (put_decl_name): Removed dead code. Use DECL_CONTEXT + rather than `current_class' to print type name. Don't prepend type + names when printing constructor names. + (lang_printable_name_wls): New function. + * jcf-parse.c (jcf_parse_source): Pass NULL `file' argument to + `build_expr_wfl', alway set EXPR_WFL_FILENAME_NODE. + * parse.y (patch_method_invocation): Message tuned for constructors. + (not_accessible_p): Grant `private' access from within + enclosing contexts. + +2001-01-07 Alexandre Petit-Bianco + + All files with updated copyright when applicable. + * Make-lang.in (JVGENMAIN_OBS): Removed java/mangle.o. + * class.c (mangle_class_field): Function removed. + (append_gpp_mangled_type, mangle_static_field, mangle_field): Likewise. + (utf8_cmp, cxx_keyword_p): Moved to lex.c. + (build_class_ref): Call `java_mangle_class_field' instead of + `mangle_class_field.' + (build_dtable_decl): Rewritten to call `java_mangle_vtable.' + (layout_class): Call `java_mangle_decl' instead of + `mangle_static_field.' + (cxx_keywords): Initialized static array moved to `lex.c.' + (layout_class_method): Changed leading comment. Simplified to + call `java_mangle_decl.' Local `ptr' moved in for loop body. + * decl.c (lang_mark_tree): Mark field `package_list.' + * java-tree.h (TYPE_PACKAGE_LIST): New macro. + (struct lang_type): New field `package_list.' + (unicode_mangling_length): Prototype removed. + (append_gpp_mangled_name, append_gpp_mangled_classtype, + emit_unicode_mangled_name): Likewise. + (cxx_keyword_p): New prototype. + (java_mangle_decl, java_mangle_class_field, + java_mangle_class_field_from_string, java_mangle_vtable): Likewise. + * jcf-parse.c (jcf_parse_source): Constify `file' argument to + `build_expr_wfl.' + * jvgenmain.c (main_method_prefix): Global variable removed. + (main_method_suffix): Likewise. + (do_mangle_classname): New function. + (main): Call it. Format changed to accommodate new mangling scheme. + * lex.c: (utf8_cmp): Conditionally prototyped. + (cxx_keywords): Moved from class.c, conditionally defined. + (utf8_cmp, cxx_keyword_p): Likewise. + * mangle.c (obstack.h, ggc.h): Included. + (mangle_field_decl): New function. + (mangle_method_decl, mangle_type, mangle_pointer_type, + mangle_array_type, mangle_record_type, + find_compression_pointer_match, find_compression_array_match, + find_compression_record_match, + find_compression_array_template_match, set_type_package_list, + entry_match_pointer_p, emit_compression_string, init_mangling, + finish_mangling, compression_table_add, mangle_member_name): Likewise. + (mangle_obstack): New global. + (MANGLE_RAW_STRING): New macro. + (unicode_mangling_length): Turned static. + (append_unicode_mangled_name): Renamed from + `emit_unicode_mangled_name.' Turned static. `mangle_obstack' + replaces `obstack', removed from the parameter list. + (append_gpp_mangled_name): Turned static. `mangle_obstack' + replaces parameter `obstack', removed from the parameter list. Call + `append_unicode_mangled_name' instead of `emit_unicode_mangled_name. + (append_gpp_mangled_classtype): Removed. + (compression_table, compression_next): New static variables. + * parse.y (temporary_obstack): Extern declaration removed. + +2001-01-05 Alexandre Petit-Bianco + + * parse.y (patch_binop): Compute missing type in error situations. + +2001-01-05 Bryce McKinlay + + * class.c (make_class_data): Push initial value for "arrayclass". + * decl.c (init_decl_processing): Add new class field "arrayclass". + +2001-01-05 Bryce McKinlay + + From patha@softlab.ericsson.se: + * parse.y (switch_label): Use build, not build1, to construct + DEFAULT_EXPR. + +2001-01-04 Neil Booth + + * lang.c (lang_decode_option): Change -MA to -MP. + * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target): + Update to new prototype; do quote targets. + (jcf_dependency_write): Update. + +2000-12-22 Bryce McKinlay + + Shorten primitive array allocation path: + * decl.c (init_decl_processing): Use _Jv_NewPrimArray not _Jv_NewArray + to create new primitive arrays. + * expr.c (build_newarray): If generating native code, call + soft_newarray_node with a reference to the primitive TYPE identifier + instead of type_value. + +2000-12-17 Bryce McKinlay + + Fix for PRs gcj/312 and gcj/253: + * parse.y (valid_ref_assignconv_cast_p): Load classes for source and + dest if they arn't already. + * class.c (layout_class): Call maybe_layout_super_class on + superinterfaces also, but only if compiling from bytecode. + + Fix for PR gcj/373: + * parse.y (create_class): Set ACC_STATIC if class is declared in an + interface. + +2000-12-15 Tom Tromey + + * jcf-parse.c (jcf_parse_source): Set wfl_operator if not already + set. + +2000-12-14 Andrew Haley + + * boehm.c (mark_reference_fields): Change test to correctly detect + bitmap overflow. + +2000-12-15 Andreas Jaeger + + * config-lang.in (lang_dirs): Added. + +2000-12-15 Alexandre Petit-Bianco + + * parse.y (end_artificial_method_body): Fixed undefined behavior. + Credits go to rth for finding it. + +2000-12-13 Mike Stump + + * parse.y (check_static_final_variable_assignment_flag): Fix spelling. + +2000-11-07 Tom Tromey + + * Make-lang.in (JAVA_LEX_C): Added chartables.h. + * lex.c (java_ignorable_control_p): Removed. + (java_letter_or_digit_p): Removed. + (java_start_char_p): New function. + (java_read_char): Return `int', not `unicode_t'. Changed + callers. + (java_read_unicode): Likewise. + (java_read_unicode_collapsing_terminators): Likewise. + (java_get_unicode): Likewise. + (java_new_lexer): Initialize hit_eof. + (java_parse_end_comment): Take `int' argument. + (java_parse_doc_section): Likewise. + (java_parse_escape_sequence): Don't allow backlash-newline. + Return `int'. + * lex.h (JAVA_DIGIT_P): Removed. + (_JAVA_LETTER_OR_DIGIT_P): Removed. + (_JAVA_IDENTIFIER_IGNORABLE): Removed. + (JAVA_START_CHAR_P): Renamed from JAVA_ID_CHAR_P. + (JAVA_PART_CHAR_P): New macro. + (UEOF): Now -1. + (JAVA_CHAR_ERROR): Now -2. + (java_lexer): New field `hit_eof'. + * chartables.h: New file. + * gen-table.pl: new file. + +2000-11-20 Tom Tromey + Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): Only allow compound assignment of + reference type if type is String. + +2000-12-09 Alexandre Petit-Bianco + + * Make-lang.in (java/jcf-path.o:): libgcj.jar replaces libgcj.zip. + jcf-path.c: Likewise. + +2000-12-09 Anthony Green + + * zipfile.h (ZipDirectory): Declare size, uncompressed_size, + filestart and filename_length as int values. + +2000-12-07 Mo DeJong + + * jcf-io.c (find_class): Correct the logic that tests to see if a + .java file is newer than its .class file. The compiler was + incorrectly printing a warning when file mod times were equal. + +2000-12-07 Zack Weinberg + + * jvgenmain.c: Use ISPRINT not isascii. + +2000-12-06 Alexandre Petit-Bianco + + * parse.y (end_artificial_method_body): Fixed typo. + +2000-12-04 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Pick the correct enclosing + context when creating inner class instances. + Fixes gcj/332. + +2000-11-26 Joseph S. Myers + + * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): + Update copyright year to 2000. + +2000-11-23 Anthony Green + + * jcf-parse.c (init_jcf_parse): Register current_file_list root. + Move current_file_list out of yyparse and make it static. + + * expr.c: Declare quick_stack and tree_list_free_list as static + (init_expr_processing): Register quick_stack and + tree_list_free_list roots. + +2000-11-22 Alexandre Petit-Bianco + + * parse.y (build_outer_field_access): New local `decl_ctx', use + it. Check for field's context and current class immediate outer + context inheritance. + (outer_field_access_p): Consider fields inherited from the last + enclosing context. + (build_access_to_thisn): Stop at the last enclosing context if + necessary. + Fixes gcj/367. + +2000-11-23 J"orn Rennecke + + * Make-lang.in (jvspec.o): Depend on $(CONFIG_H). + +2000-11-22 Bryce McKinlay + + * jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the + scratch buffer. + +2000-11-20 Tom Tromey + + * 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. + +2000-11-20 Tom Tromey + + * 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. + +2000-11-20 Tom Tromey + + * lex.c (yylex): Recognize floating point constants with leading + 0. + +2000-11-19 Kaveh R. Ghazi + + * java-tree.h (cyclic_inheritance_report): Constify. + * parse.y (cyclic_inheritance_report): Likewise. + +2000-11-17 Zack Weinberg + + * parse.y (goal): Remove call to ggc_add_string_root. + +2000-11-16 Zack Weinberg + + * jcf-parse.c (get_constant), parse.y (do_merge_string_cste): + Create string in scratch buffer, then pass to build_string. + +2000-11-13 Joseph S. Myers + + * parse.y (issue_warning_error_from_context): Add + ATTRIBUTE_PRINTF. + +2000-11-11 Anthony Green + + * jcf-parse.c (process_zip_dir): Add finput parameter. + (jcf_figure_file_type): Call process_zip_dir with appropriate + argument. + +2000-11-10 Kaveh R. Ghazi + + * decl.c (copy_lang_decl): Use memcpy, not bcopy. + * jcf-parse.c (jcf_figure_file_type): Likewise. + +2000-11-09 Joseph S. Myers + + * parse.y (create_new_parser_context): Use memset () instead of + bzero (). + +2000-11-08 Tom Tromey + + * gjavah.c (process_file): Only include gcj/cni.h when generating + CNI stubs. + +2000-11-07 Joseph S. Myers + + * expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c + (init_outgoing_cpool), lex.c (java_init_lex): Use memset () + instead of bzero (). + +2000-11-05 Tom Tromey + + * lex.h (JAVA_FLOAT_RANGE_ERROR): Typo fix. + * lex.c (IS_ZERO): New define. + (java_perform_atof): Error on floating point underflow. + +2000-11-04 Tom Tromey + + * lex.c (java_parse_escape_sequence): Only read two octal + characters if the first one is greater than 3. Don't allow + "octal" numbers to include the digits 8 or 9. + +2000-11-05 Joseph S. Myers + + * Make-lang.in (java.distdir): Remove. + +2000-11-03 Tom Tromey + + * Make-lang.in (java.dvi): New target. + Partial fix for PR other/567. + + * lang-options.h: Mention -Wout-of-date. + * jcf-dump.c (flag_newer): New global. + * gjavah.c (flag_newer): New global. + * jcf-io.c (find_class): Only warn when flag_newer set. + * lang.c (flag_newer): New global. + (struct string_option): New declaration. + (lang_W_options): New global. + (process_option_with_no): New function. + (lang_decode_option): Use it. + + * class.c (cxx_keyword_p): Accept keywords with trailing `$'s. + * gjavah.c (cxx_keyword_subst): Handle any number of trailing + `$'. + + * lex.h (_JAVA_IDENTIFIER_IGNORABLE): New macro. + (JAVA_ID_CHAR_P): Also try java_ignorable_control_p. + * lex.c (java_read_unicode): Removed `term_context' argument. + Recognize any number of `u' in `\u'. + (java_read_unicode_collapsing_terminators): New function. + (java_get_unicode): Use it. + (java_lineterminator): Removed. + (yylex): Produce error if character literal is newline or single + quote. Return if eof found in middle of `//' comment. EOF in + `//' comment is only an error if pedantic. + (java_ignorable_control_p): New function. + (java_parse_end_comment): Return if eof found in middle of + comment. + Include flags.h. + * jv-scan.c (pedantic): New global. + +2000-10-31 Alexandre Petit-Bianco + + * parse.y (outer_field_access_p): Inherited fields aren't + consider outer fields. + (maybe_build_thisn_access_method): Use + PURE_INNER_CLASS_TYPE_P instead of INNER_CLASS_TYPE_P. + (resolve_expression_name): Trigger an error if a static field + is being accessed as an outer field. + +2000-10-29 Alexandre Petit-Bianco + + * Make-lang.in (LIBGCJ_ZIP_FILE): Define with `$(prefix)'. + Fixes gcj/365. + +2000-10-27 Zack Weinberg + + * Make-lang.in: Move all build rules here from Makefile.in, + adapt to new context. Wrap all rules that change the current + directory in parentheses. Expunge all references to $(P). + When one command depends on another and they're run all at + once, use && to separate them, not ;. Add OUTPUT_OPTION to + all object-file generation rules. Delete obsolete variables. + + * Makefile.in: Delete. + * config-lang.in: Delete outputs= line. + +2000-10-25 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): NULLify this_arg when already + inserted. + (maybe_use_access_method): Handle call to methods unrelated to the + current class. Fixed comment. + Fixes gcj/361. + +2000-10-24 Alexandre Petit-Bianco + + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Check inherited type in + scope. + +2000-10-24 Tom Tromey + + * lex.c (java_new_lexer): Initialize new fields. Work around + broken iconv() implementations. + (java_read_char): Swap bytes if required. Use fallback decoder if + required. + (byteswap_init, need_byteswap): New globals. + (java_destroy_lexer): Only close iconv handle if it is in use. + * lex.h (java_lexer): New fields read_anything, byte_swap, + use_fallback. + Made out_buffer unsigned. + +2000-10-24 Alexandre Petit-Bianco + + * parse.y (register_incomplete_type): Include JDEP_FIELD as a case + where an enclosing context can be set on the jdep. + (do_resolve_class): Fixed identation. + +2000-10-21 Kaveh R. Ghazi + + * gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define + + * jcf-reader.c (peek_attribute, skip_attribute): Only define + when requested. + + * parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN. + + * verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void. + +2000-10-18 Alexandre Petit-Bianco + + * jcf-write.c (OP1): Update `last_bc'. + (struct jcf_block): Fixed indentation and typo in comments. New + field `last_bc'. + (generate_bytecode_insns): Insert `nop' if `jsr' immediately + follows `monitorenter'. + * parse.y (patch_synchronized_statement): New local `tmp'. Call + `patch_string'. + Fixes gcj/232. + +2000-10-16 Tom Tromey + + * jvspec.c (lang_specific_driver): Recognize -MF and -MT. + * lang-specs.h: Added %{MA}, %{MF*}, %{MT*}. + * lang-options.h: Added -MA, -MT, -MF.. + * lang.c (lang_decode_option): Recognize -MA, -MT, -MF. + (DEPEND_TARGET_SET): New macro. + (DEPEND_FILE_ALREADY_SET): Likewise. + (init_parse): Handle new flags. + * jcf.h (jcf_dependency_print_dummies): Declare. + * Make-lang.in (s-java): Added mkdeps.o. + * Makefile.in (BACKEND): Added mkdeps.o. + (../gcjh$(exeext)): Added mkdeps.o. + (../jcf-dump$(exeext)): Added mkdeps.o. + * jcf-depend.c: Include mkdeps.h. + (struct entry, dependencies, targets, MAX_OUTPUT_COLUMNS, + add_entry): Removed. + (jcf_dependency_reset): Rewrote. + (dependencies): New global. + (jcf_dependency_set_target): Rewrote. + (jcf_dependency_add_target): Likewise. + (jcf_dependency_add_file): Likewise. + (munge): Removed. + (print_ents): Removed. + (jcf_dependency_write): Rewrote. + (print_dummies): New global. + (jcf_dependency_print_dummies): New function + (jcf_dependency_write): Call deps_dummy_targets if required. + +2000-10-18 Alexandre Petit-Bianco + + * gjavah.c (add_class_decl): Removed unused variables `tname', + `tlen' and `name_index'. + * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): New macro. + * jcf-parse.c (jcf_parse_source): Use it and set EXPR_WFL_FILENAME + in `wfl_operator' with value. + (yyparse): Use BUILD_FILENAME_IDENTIFIER_NODE. + (jcf_figure_file_type): Fixed identation. + * lex.c (java_get_line_col): Use EOF. Tuned `^' placement. + * parse.y (analyze_clinit_body): New function. + (static_initializer:): Reset `current_static_block'. + (java_parser_context_restore_global): Set EXPR_WFL_FIILENAME_NODE in + `wfl_operator' with new value. + (lookup_cl): Use EXPR_WFL_FILENAME. + (maybe_yank_clinit): Handle bogus bodies, call + analyze_clinit_body. + (build_outer_field_access): Access to this$ built from + current_class, not its outer context. + (build_access_to_thisn): Fixed leading comment. Tidied things up. + (resolve_qualified_expression_name): Handle `T.this' and `T.this.f()'. + (patch_method_invocation): Use `is_static_flag' when already + initialized. + (patch_newarray): Removed assignment in ternary operator. + +2000-10-17 Alexandre Petit-Bianco + + * except.c (free_eh_ranges): Don't free `whole_range'. + +2000-10-15 Anthony Green + + * decl.c (init_decl_processing): Call init_class_processing before + anything else. + +2000-10-13 Alexandre Petit-Bianco + + * check-init.c (check_init): Fixed leading comment. Use + LOCAL_FINAL_P. + * decl.c (push_jvm_slot): Use MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. + (give_name_to_locals): Likewise. + (lang_mark_tree): Handle FIELD_DECL. Register `am' and `wfl' + fields in lang_decl_var. + * java-tree.h (DECL_FUNCTION_SYNTHETIC_CTOR, + DECL_FUNCTION_ALL_FINAL_INITIALIZED): New macros. + (FIELD_INNER_ACCESS): Removed ugly cast, macro rewritten. + (FIELD_INNER_ACCESS_P, DECL_FIELD_FINAL_IUD, DECL_FIELD_FINAL_LIIC, + DECL_FIELD_FINAL_IERR, DECL_FIELD_FINAL_WFL): New macros. + (LOCAL_FINAL): Rewritten. + (LOCAL_FINAL_P, FINAL_VARIABLE_P, CLASS_FINAL_VARIABLE_P + MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): New macros. + (struct lang_decl): Fixed comments. Added `synthetic_ctor' and + `init_final' fields. + (struct lang_decl_var): Fixed leading comment. Added `am', `wfl', + `final_uid', `final_liic', `final_ierr' and `local_final' fields. + (TYPE_HAS_FINAL_VARIABLE): New macro. + (struct lang_type): Added `afv' field. + * parse.y (check_static_final_variable_assignment_flag): New function. + (reset_static_final_variable_assignment_flag): Likewise. + (check_final_variable_local_assignment_flag): Likewise. + (reset_final_variable_local_assignment_flag): Likewise. + (check_final_variable_indirect_assignment): Likewise. + (check_final_variable_global_assignment_flag): Likewise. + (add_inner_class_fields): Use LOCAL_FINAL_P. + (register_fields): Handle local finals and final variables. + (craft_constructor): Set DECL_FUNCTION_SYNTHETIC_CTOR. + (declare_local_variables): Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. + (source_start_java_method): Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC + on local finals. + (java_complete_expand_methods): Loop to set + TYPE_HAS_FINAL_VARIABLE. Call + `reset_final_variable_local_assignment_flag' and + `check_final_variable_local_assignment_flag' accordingly before + and after constructor expansion. Call + `reset_static_final_variable_assignment_flag' + before expanding and after call + `check_static_final_variable_assignment_flag' if the + current_class isn't an interface. After all methods have been + expanded, call `check_final_variable_global_assignment_flag' and + `check_static_final_variable_assignment_flag' if the current class + is an interface. + (maybe_yank_clinit): Fixed typo in comment. + (build_outer_field_access_methods): Removed old sanity check. Use + FIELD_INNER_ACCESS_P. Call MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC. + Don't create access methods for finals. + (resolve_field_access): Use `CLASS_FINAL_VARIABLE_P'. + (java_complete_tree): Likewise. Reset DECL_FIELD_FINAL_IUD if + existing DECL_INIT has been processed. + (java_complete_lhs): Likewise. + (check_final_assignment): Filter input on `lvalue''s TREE_CODE. + Test for COMPONENT_REF to get to the FIELD_DECL. Implemented new + logic. + (patch_assignment): Use LOCAL_FINAL_P. + (fold_constant_for_init): Reset DECL_FIELD_FINAL_IUD if + DECL_INITIAL is nullified. + Fixes gcj/163. + +2000-10-13 Kaveh R. Ghazi + + * Make-lang.in (parse.c, parse-scan.c): Create atomically. + + * Makefile.in (parse.c, parse-scan.c): Likewise. + +2000-10-12 Mark Mitchell + + * class.c (temporary_obstack): Remove. + (make_class): Don't mess with obstascks. + (push_class): Likewise. + (set_super_info): Likewise. + (add_method_1): Likewise. + (add_method): Likewise. + (add_field): Likewise. + (build_utf8_ref): Likewise. + (build_class_ref): Likewise. + (build_static_field_ref): Likewise. + (finish_class): Likewise. + (push_super_field): Likewise. + (layout_class): Likewise. + (layout_class_methods): Likewise. + (init_class_processing): Likewise. + * constants.c (get_tag_node): Likewise. + (build_constant_data_ref): Likewise. + * decl.c (ggc_p): Remove. + (copy_lang_decl): Use ggc_alloc. + (complete_start_java_method): Don't mess with obstacks. + (start_java_method): Likewise. + (end_java_method): Likewise. + * except.c (link_handler): Use xmalloc. + (free_eh_ranges): New function. + (method_init_exceptions): Use it. + (add_handler): Use xmalloc. + (expand_start_java_handler): Don't mess with obstacks. + (prepare_eh_table_type): Likewise. + (expand_end_java_handler): Likewise. + * expr.c (push_value): Likewise. + (create_label_decl): Likewise. + (build_jni_stub): Likewise. + (java_lang_expand_expr): Likewise. + (note_instructions): Use xrealloc. + (java_push_constant_from_pool): Don't mess with obstacks. + (process_jvm_instruction): Likewise. + * java-tree.h (cyclic_inheritance_report): Remove duplicate + declaration. + * jcf-parse.c (get_constant): Don't mess with obstacks. + (read_class): Likewise. + (jcf_parse): Likewise. + * lex.c (expression_obstack): Remove. + (java_lex): Don't use obstack_free. + * parse.h (exit_java_complete_class): Don't mess with obstacks. + (MANGLE_OUTER_LOCAL_VARIABLE_NAME): Adjust. + (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID): Likewise. + (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STRING): Likewise. + * parse.y (gaol): Add more GC roots. + (add_inner_class_fields): Adjust calls to MANGLE_* macros. + (lookup_field_wrapper): Likewise. + (obtain_incomplete_type): Don't mess with obstacks. + (build_alias_initializer_parameter_list): Adjust calls to MANGLE_* + macros. + (craft_constructor): Don't mess with obstacks. + (safe_layout_class): Likewise. + (java_complete_class): Likewise. + (source_end_java_method): Likewise. + (build_outer_field_access_methods): Likewise. + (build_outer_method_access_method): Likewise. + (maybe_build_thisn_access_method): Likewise. + (build_dot_class_method_invocation): Likewise. + (java_complete_tree): Likewise. + (java_complete_lhs): Likewise. + (do_merge_string_cste): Likewise. + (patch_string_cst): Likewise. + (array_constructor_check_entry): Likewise. + * typeck.c (build_java_array_type): Likewise. + (parse_signature_string): Likewise. + (build_java_signature): Likewise. + +2000-10-12 Tom Tromey + + Fix for PR gcj/356: + * gjavah.c (add_class_decl): Don't special-case inner classes. + (add_namelet): Likewise. + +2000-10-11 Rodney Brown + + * java-tree.h: Constify current_encoding. + * lang.c: Constify current_encoding. + +2000-10-10 Jeff Sturm + + * jvgenmain.c (class_mangling_suffix): Omit `.'. + (main): Use `$' when NO_DOLLAR_IN_LABEL is not set, otherwise `.'. + +2000-10-10 Alexandre Petit-Bianco + + * expr.c (java_lang_expand_expr): Reinstall 1999-08-14 Anthony's + patch. Fixes gcj/340. + +2000-10-10 Tom Tromey + + * lex.c (java_new_lexer): Initialize out_first and out_last + fields. + * lex.h (java_lexer): Added out_buffer, out_first, out_last. + +2000-10-09 Alexandre Petit-Bianco + + * parse.y (pop_current_osb): New function. + (array_type:): Use `dims:', changed actions + accordingly. Suggested by Anthony Green. + (array_creation_expression:): Used pop_current_osb. + (cast_expression:): Likewise. + (search_applicable_method_list): Fixed indentation. + +2000-10-08 Anthony Green + + * parse.y (array_type_literal): Remove production. + (type_literals): Refer to array_type, not array_type_literal. + +2000-10-07 Alexandre Petit-Bianco + + Patch contributed by Corey Minyard. + * decl.c (check_local_named_variable): New function. + (tree check_local_unnamed_variable): Likewise. + (find_local_variable): Splitted. Call check_local_{un}named_variable. + +2000-10-07 Anthony Green + + * class.c (layout_class): Handle case where superclass can't be + layed out yet. + +2000-10-07 Joseph S. Myers + + * Makefile.in (keyword.h): Refer to GNU FTP site for updated + gperf. + +2000-10-05 Tom Tromey + + * jvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'. + * jvgenmain.c (class_mangling_prefix): Removed. + (class_mangling_suffix): New global. + (main): Use it. + * gjavah.c (cxx_keyword_subst): Mangle C++ keywords by appending + `$'. + (print_method_info): Handle overrides for static and final + methods. + (process_file): Generate declaration for class object field. + * class.c (cxx_keywords): New array. + (utf8_cmp): New function. + (cxx_keyword_p): New function. + (layout_class_method): Mangle C++ keywords by appending `$'. + (mangle_field): New function. + (mangle_class_field): Use mangle_field. Mangle class name as + `class$'. + (mangle_static_field): Use mangle_field. + +2000-10-03 Alexandre Petit-Bianco + + * decl.c (find_local_variable): Removed uncessary type check and + fixed range check typo. From Corey Minyard. + +2000-09-13 Alexandre Petit-Bianco + + * decl.c (give_name_to_locals): New local `code_offset'. Call + `maybe_adjust_start_pc'. + * expr.c (note_instructions): New function. + (expand_byte_code): Don't collect insn starts here. + (peek_opcode_at_pc): New function. + (maybe_adjust_start_pc): Likewise. + * java-tree.h (maybe_adjust_start_pc): Declare. + (note_instructions): Likewise. + * jcf-parse.c (parse_class_file): Call `note_instructions'. + +2000-09-13 Alexandre Petit-Bianco + + * parse.y (field_access:): Fixed indentation. + (qualify_ambiguous_name): Properly qualify `this.a[b].c'. + +2000-09-07 Tom Tromey + + Fix for PR gcj/307: + * parse.y (patch_binop): Use JNUMERIC_TYPE_P, not + JPRIMITIVE_TYPE_P, for arithmetic operators. + (patch_method_invocation): Indentation fix. + (try_builtin_assignconv): Handle boolean specially. Fixed typo. + (valid_builtin_assignconv_identity_widening_p): Handle boolean. + (do_unary_numeric_promotion): Cleaned up code. + (valid_cast_to_p): Handle boolean correctly. + +2000-09-27 Tom Tromey + + * lex.c (java_read_unicode): Reset bs_count when finished with + `\u' sequence. + +2000-10-01 Mark Mitchell + + Convert to GC. + * Make-lang.in (s-java): Don't depend on ggc-callbacks.o. + * Makefile.in (BACKEND): Don't include ggc-callbacks.o. + (typeck.o): Depend on ggc.h. + * class.c (add_method_1): Use GC functions for allocation. + (init_class_processing): Register roots. + * decl.c (ggc_p): Set to 1. + (pending_local_decls): Make it static. + (push_jvm_slot): Use GC functions for allocation. + (init_decl_processing): Register roots. + (give_name_to_locals): Use GC functions for allocation. + (lang_mark_tree): New function. + * java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC + functions for allocation. + * jcf-parse.c (jcf_parse_source): Use ggc_strdup. + * lex.c (java_lex): Use build_string, rather than replicating it + inline. + * parse.y (goal): Add more roots. + (mark_parser_ctxt): New function. + * typeck.c: Include ggc.h. + +2000-09-29 Alexandre Petit-Bianco + + * parse.y (maybe_yank_clinit): Also keep if its body + contains something else than MODIFY_EXPR. + +2000-09-23 Mark Mitchell + + * Make-lang.in (JAVA_SRCS): Include java-tree.h. + * Makefile.in (parse.o): Depend on ggc.h. + (class.o): Likewise. + (constants.o): Likewise. + (decl.o): Likewise. + (expr.o): Likewise. + (jcf-parse.o): Likewise. + (jcf-write.o): Likewise. + (mangle.o): Likewise. + * class.c: Include ggc.h. + (build_static_field_ref): Register GC roots. + (layout_class): Likewise. + (init_class_processing): Likewise. + * constants.c: Include ggc.h. + (current_constant_pool_data_ref): Remove. + (tag_nodes): Move it to ... + (get_tag_node): ... here. Register GC roots. + * decl.c: Include ggc.h. Remove many global tree definitions. + (throw_node): Define. + (java_global_trees): Likewise. + (predef_filenames): Make the size a constant. + (init_decl_processing): Adjust accordingly. + (init_decl_processing): Call init_jcf_parse. Register GC roots. + * expr.c: Include ggc.h. + (init_expr_processing): Register GC roots. + (build_invokeinterface): Likewise. + * java-tree.h: Replace extern tree declarations with macros. + (java_global_trees): New variable. + (java_tree_index): New enumeration. + (init_jcf_parse): Declare. + * jcf-parse.c: Include ggc.h. + (current_class): Remove declaration. + (main_class): Likewise. + (all_class_list): Likewise. + (predefined_filename_p): Adjust for constant size of + predef_filenames. + (init_jcf_parse): New function. + * jcf-write.c: Include ggc.h. + (generate_classfile): Register GC roots. + (append_synthetic_attribute): Likewise. + (append_innerclass_attribute_entry): Likewise. + * lang.c: Include ggc.h. + (lang_print_error): Register GC roots. + * parse.h (struct parser_ctxt): Rename fields to avoid conflicts + with macros. + * parse.y: Include ggc.h. + (wfl_operator): Remove. + (goal): Register GC roots. + (java_pop_parser_context): Adjust for new field names. + (java_parser_context_save_global): Likewse. + (java_parser_context_restore_global): Likewise. + (java_parser_context_suspend): Likewise. + (java_parser_context_resume): Likewise. + (verify_constructor_circularity): Register GC roots. + (lookup_cl): Likewise. + (java_reorder_fields): Likewise. + (build_current_this): Likewise. + (class_in_current_package): Likewise. + (argument_types_convertible): Likewise. + (patch_cast): Rename wfl_op parameter to avoid macro conflicts. + +2000-09-14 Tom Tromey + + * lex.h: Use HAVE_ICONV_H, not HAVE_ICONV. + +2000-09-13 Tom Tromey + + * jcf-parse.c: Include . + * jv-scan.c: Include . + +2000-09-12 Tom Tromey + + * expr.c (pop_type_0): Return `Object' if trying to merge two + interface types. + * verify.c (merge_types): Don't return `TYPE_UNKNOWN' for + interface types; `Object' is always a valid supertype. + +2000-09-12 Tom Tromey + + Fix for PR gcj/33: + * jv-scan.c (help): Document --encoding. + (options): Added `encoding' entry. + (OPT_ENCODING): New define. + (main): Handle --encoding. + Include if nl_langinfo exists. + * lang-options.h: Document --classpath, --CLASSPATH, --main, and + --encoding. + * jcf-parse.c Include if we have nl_langinfo. + (parse_source_file): Correctly call java_init_lex. Added `finput' + argument. Use nl_langinfo to determine default encoding. + * java-tree.h (current_encoding): Declare. + * parse.y (java_parser_context_restore_global): Don't restore + `finput'. + (java_parser_context_save_global): Don't set `finput' field. + (java_pop_parser_context): Don't restore `finput'. Free old lexer + if required. + * lang.c (current_encoding): New global. + (lang_decode_option): Recognize `-fencoding='. + (finish_parse): Don't close finput. + * parse.h (struct parser_ctxt): Removed `finput' and + `unget_utf8_value' fields. Added `lexer' field. + (java_init_lex): Fixed declaration. + * lex.c (java_new_lexer): New function. + (java_destroy_lexer): Likewise. + (java_read_char): Added `lex' argument. Handle iconv case. + (java_read_unicode): Added `lex' argument. Count backslashes in + lexer structure. + (java_init_lex): Added `finput' and `encoding' arguments. Set + `lexer' field in ctxp. + (BAD_UTF8_VALUE): Removed. + (java_lex): Handle seeing UEOF in the middle of a string literal. + * lex.h: Include if HAVE_ICONV defined. + (java_lexer): New structure. + (UNGETC): Removed. + (GETC): Removed. + (DEFAULT_ENCODING): New define. + (java_destroy_lexer): Declare. + +2000-09-12 Tom Tromey + + Fix for PR gcj/343: + * lex.c (java_init_lex): Initialize java_io_serializable. + * parse.y (java_io_serializable): New global. + (valid_ref_assignconv_cast_p): An array can be cast to + serializable. + +2000-09-10 Zack Weinberg + + * decl.c, expr.c: Include defaults.h if not already included. + Don't define the *_TYPE_SIZE macros. + +2000-09-09 Geoffrey Keating + + * typeck.c (build_java_array_type): Correct first parameter + in ADJUST_FIELD_ALIGN invocation. + +2000-09-06 Tom Tromey + + * lang-specs.h: Also recognize `-femit-class-files'. + +2000-09-05 Alexandre Petit-Bianco + + * verify.c (merge_types): Load the types to merge if necessary. + +2000-09-02 Anthony Green + + * jcf-io.c: Include zlib.h. + (open_in_zip): Read compressed class file archives. + * zipfile.h (ZipDirectory): Add uncompressed_size and + compression_method fields. + * zextract.c (read_zip_archive): Collect file compression info. + +2000-08-15 Bryce McKinlay + + * parse.y (do_resolve_class): Also explore superclasses of + intermediate enclosing contexts when searching for inner classes. + +2000-08-11 Alexandre Petit-Bianco + + * parse.y (variable_declarator_id:): Better error message. + (expression_statement:): Use YYNOT_TWICE. + (cast_expression:): Likewise. + (assignment:): Likewise. + +2000-08-11 Alexandre Petit-Bianco + + * parse.y (do_merge_string_cste): New locals. Create new + STRING_CSTs each time, use memcpy. Fixes gcj/311. + +2000-08-07 Hans Boehm + + * boehm.c (mark_reference_fields): Set marking bits for all words in + a multiple-word record. + (get_boehm_type_descriptor): Use the procedure marking descriptor for + java.lang.Class. + +2000-08-31 Mike Stump + + * Make-lang.in (jc1$(exeext), gcjh$(exeext), jv-scan$(exeext), + jcf-dump$(exeext)): Make parallel safe. + +2000-08-29 Zack Weinberg + + * jcf-parse.c (set_source_filename): Constify a char *. + * jcf-write.c (append_innerclasses_attribute, + make_class_file_name): Constify a char *. Don't recycle a + variable for an unrelated purpose. + * parse.y: (build_alias_initializer_parameter_list): Constify a char *. + (breakdown_qualified): Do not modify IDENTIFIER_POINTER strings. + +2000-08-29 Alexandre Petit-Bianco + + * expr.c (can_widen_reference_to): Fixed indentation. + * java-tree.h (CLASS_METHOD_CHECKED_P): Added leading comment. + * parse.y: `finit$' replaces `$finit$' in comments. + (try_builtin_assignconv): Fixed leading comment. + +2000-08-25 Greg McGary + + * gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE. + +2000-08-24 Greg McGary + + * lang.c (lang_decode_option): Use ARRAY_SIZE. + * parse.y (BINOP_LOOKUP): Likewise. + +2000-08-22 Andrew Haley + + * javaop.h (WORD_TO_INT): Mask lower 32 bits of a jword before + sign extending. Fixes gcj/321. + * jcf-parse.c (get_constant): Mask lower 32 bits of a jint before + combining to make a jlong. Fixes gcj/321. + +2000-08-21 Nix + + * lang-specs.h: Do not process -o or run the assembler if + -fsyntax-only. + +2000-08-16 Andrew Haley + + * typeck.c (build_java_array_type): Rewrite code to do array + alignment. Take into account back-end macros when aligning array + data. Remove setting of TYPE_USER_ALIGN; Java doesn't allow the + user to set alignment. Fixes gcj/252 and 160. + +2000-08-09 Tom Tromey + + * parse.y (check_abstract_method_definitions): Now return `int'. + Check implemented interfaces. Fixes PR gcj/305. + + * parse.y (patch_switch_statement): Disallow `long' in switch + expressions. Fixes PR gcj/310. + +2000-08-15 Alexandre Petit-Bianco + + * decl.c (finit_leg_identifier_node): New global. + (init_decl_processing): Use `finit$' to initialize + finit_identifier_node. Use `$finit$' to initialize + finit_leg_identifier_node. + * expr.c (expand_java_field_op): Use ID_FINIT_P. + * java-tree.h (finit_identifier_node): Changed attached comment. + (finit_leg_identifier_node): New declaration. + (ID_FINIT_P): Take finit_identifier_node and + finit_leg_identifier_node into account. This is a backward + compatibility hack. + +2000-08-14 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_conditional): Re-installed lost + Jan 6 2000 patch. + (generate_bytecode_insns): Check `nargs' before emitting it. + * verify.c (merge_type_state): Fixed typo. + * ChangeLog: Fixed typo in some jcf-write.c entries mentioning + generate_bytecode_{conditional,insns}. + +2000-08-13 Anthony Green + + * check-init.c (check_init): Add case for BIT_FIELD_REF (required + for -pg builds). + +2000-08-10 Alexandre Petit-Bianco + + * class.c (maybe_layout_super_class): Fixed indentation. + * java-tree.h (CLASS_METHOD_CHECKED_P): New macro. + (java_check_methods): New function declaration. + * jcf-parse.c (get_constant): Let `char_len' go up to 3. Use `str' + instead of `str_ptr'. + * jcf-write.c (generate_bytecode_insns): Emit number the of args + of a `invokeinterface' at the right time. + * parse.h (WFL_STRIP_BRACKET): New macro. + (SET_TYPE_FOR_RESOLUTION): Use it. + * parse.y (build_unresolved_array_type): Reuse `type_or_wfl'. + (check_class_interface_creation): Don't check for cross package + innerclass name clashes. + (method_header): Behave properly if MDECL is `error_mark_node'. + (method_declarator): Return `error_mark_node' if bogus current + class. + (resolve_class): Apply WFL_STRIP_BRACKET on `cl' if necessary. + (resolve_and_layout): New local `decl_type', set and used. Call + java_check_methods. + (java_check_methods): New method. + (java_layout_classes): Use it. + (resolve_qualified_expression_name): No EH check necessary in + access$. + (java_complete_lhs): Use VAR_DECL's DECL_INITIAL when evaluating + `case' statement. + (patch_assignment): Set DECL_INITIAL on integral final local. + +2000-08-08 Alexandre Petit-Bianco + + * java-tree.h (flag_extraneous_semicolon): New extern. + * lang-options.h: (-Wextraneous-semicolon): New option. + * lang.c (flag_redundant): Fixed typo in leading comment. + (flag_extraneous_semicolon): New global. + (lang_decode_option): Set `flag_extraneous_semicolon' when + -Wall. Decode `-Wextraneous-semicolon'. + * parse.y (type_declaration:): Removed `SC_TK' hack, added + `empty_statement' rule. + (class_body_declaration): Likewise. + (method_body:): Accept `;' as a method body. + (static_initializer:): Removed `SC_TK' hack. + (constructor_block_end:): Likewise. + (empty_statement:): Report deprecated empty declaration. Fixes + gcj/295 + +2000-08-07 Alexandre Petit-Bianco + + * parse.y (build_dot_class_method_invocation): Changed parameter + name to `type'. Build signature from `type' and convert it to a + STRING_CST if it's an array. + (patch_incomplete_class_ref): `build_dot_class_method_invocation' + to use `ref_type' directly. + +2000-08-06 Ovidiu Predescu + + * lang-options.h: Added a comma after the last element to avoid + syntax errors when other languages define additional options. + +2000-08-04 Zack Weinberg + + * Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist. + * Makefile.in: Add BACKEND; delete OBJS, OBJDEPS. + (jc1): Link with $(BACKEND). + (jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND). + +2000-08-02 Zack Weinberg + + * jvspec.c: Adjust type of second argument to + lang_specific_driver, and update code as necessary. + + * class.c (build_dtable_decl): Initialize dummy. + +2000-08-01 Alexandre Petit-Bianco + + * parse.y (maybe_yank_clinit): When generating bytecode: non empty + method bodies not to rule out discarding `'; don't use + to initialize static fields with constant initializers. + +2000-08-01 Alexandre Petit-Bianco + + * gjavah.c (print_method_info): Added `synth' parameter. Skip + synthetic methods. + (method_synthetic): New global. + (HANDLE_METHOD): Recognize synthetic method and tell + `print_method_info' about it. + (HANDLE_END_METHOD): Do not issue an additional `;\n' if we're + processing a synthetic method. + * jcf-reader.c (skip_attribute): New function. + ( skip_attribute): Likewise. + +2000-08-01 Alexandre Petit-Bianco + + * parse.y (build_outer_field_access): Fixed comments. + (fix_constructors): Emit the initialization of this$ before + calling $finit$. + (resolve_qualified_expression_name): Build an access to `decl' if + necessary. + +2000-07-31 Alexandre Petit-Bianco + + * parse-scan.y (curent_class): Non longer const. + (inner_qualifier, inner_qualifier_length): Deleted. + (current_class_length): New global. + (bracket_count): Fixed typo in leading comment. + (anonymous_count): New global. + (class_instance_creation_expression:): Handle anonymous classes. + (anonymous_class_creation:): New rule. + (push_class_context): Rewritten. + (pop_class_context): Likewise. + (INNER_QUALIFIER): Macro deleted. + (report_class_declaration): call `push_class_context' when + entering the function. `fprintf' format modified not to use + INNER_QUALIFIER. + (report_class_declaration): Assign `package_name' and + `current_class' to NULL separately. + +2000-07-31 Alexandre Petit-Bianco + + * expr.c (build_invokeinterface): Call layout_class_methods on + target interface. + +2000-07-27 Tom Tromey + Anthony Green + Alexandre Petit-Bianco + + * class.c (make_class_data): Create vtable for abstract classes. + (get_dispatch_table): Changed to cope with abstract classes. + +2000-07-27 Tom Tromey + + * parse.y (patch_method_invocation): Don't reverse the argument + list when dealing with anonymous class constructors. Fixed typo in + comment. + +2000-07-27 Alexandre Petit-Bianco + + * parse.y (build_alias_initializer_parameter_list): Reverse + crafted list when building aliases for anonymous class + constructors. + +2000-07-25 Alexandre Petit-Bianco + + * parse.y (jdep_resolve_class): Don't bother checking potential + innerclass access if `decl' is NULL. + (find_in_imports_on_demand): TREE_PURPOSE of `import' contains the + WFL. + +2000-07-25 Alexandre Petit-Bianco + + * parse.c: Remove (again.) + +2000-07-24 Alexandre Petit-Bianco + + * parse.y (find_as_inner_class): Removed 2000-07-19 patches. + * jcf-parse.c (HANDLE_INNERCLASSES_ATTRIBUTE): Local `decl' moved + outside the `if' statement, alias to innerclass removed, `decl' + used to mark the class complete. + +2000-07-21 Alexandre Petit-Bianco + + * parse.y (simple_name:): Fixed typo in error message. + +2000-07-21 Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): LOOP_EXPR:, SWITCH_EXPR: the node + or its first operand can be error marks. + +2000-07-20 Alexandre Petit-Bianco + + * parse.h (SET_TYPE_FOR_RESOLUTION): Use GET_CPC. + * parse.y (method_header): Likewise. + +2000-07-19 Alexandre Petit-Bianco + + * parse.y (process_imports): Consider that one might be trying to + import an innerclass. Fixes gcj/254 + +2000-07-19 Alexandre Petit-Bianco + + * parse.y (find_as_inner_class): Handle the case where the + enclosing context of an innerclass has been loaded as bytecode. + +2000-07-19 Alexandre Petit-Bianco + + * parse.y (simple_name:): Reject `$' in type names. + (resolve_type_during_patch): Use `type' as a second + argument to resolve_no_layout. Fixes gcj/257. + +2000-07-18 Bryce McKinlay + + * parse.y (find_most_specific_methods_list): Select the only + non-abstract method even if max has been set. + Fixes gcj/285, gcj/298. + +2000-07-18 Jeff Sturm + + * lang-specs.h: Added %(jc1) to java compiler options. + +2000-07-14 Zack Weinberg + + * .cvsignore: New file. + +2000-07-13 Alexandre Petit-Bianco + + * parse.y (not_accessible_p): Access granted to innerclasses + (indirectly) extending the reference type. Fixes gcj/249. + +2000-07-13 Alexandre Petit-Bianco + + * parse.y (patch_method_invocation): Fixed comment. + (maybe_use_access_method): Build this$s to the context of the + target method, or a type that extends it. Fixes gcj/242. + +2000-07-13 Mark Mitchell + + * parse.c: Remove. + +2000-07-13 Alexandre Petit-Bianco + + * parse.y (fold_constant_for_init): Avoid bullish conversion. + +2000-07-13 Tom Tromey + + * lang-specs.h: Added %{I*}. + +2000-07-13 Zack Weinberg + + * lang-specs.h: Use the new named specs. Remove unnecessary braces. + +2000-07-12 Mark Mitchell + + * parse-scan.c: Remove. + +2000-07-10 Alexandre Petit-Bianco + + * class.c (set_super_info): Handled protected inner classes. + (common_enclosing_context_p): Bail early if arguments aren't both + inner classes. + (get_access_flags_from_decl): Handle private and protected inner + classes. + * java-tree.h (TYPE_PROTECTED_INNER_CLASS): New macro. + (CLASS_PROTECTED): Likewise. + (struct lang_type): New bitfield `poic'. + * parse.y (jdep_resolve_class): Call check_inner_class_access on + inner classes only. + (check_inner_class_access): Renamed arguments, added + comments. Handles protected inner classes (fixes gcj/225) + (not_accessible_p): Fixed comments. Avoid handling inner classes. + +2000-07-10 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Verify qualified + access to `this'. Fixes gcj/239. + +2000-07-10 Alexandre Petit-Bianco + + * jcf-write.c (generate_classfile): Don't install ConstantValue + for null pointers. + +2000-07-07 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Handle inner class + access. Fixes gcj/256. + +2000-07-07 Alexandre Petit-Bianco + + * jcf-write.c (generate_classfile): Properly install the + ConstantValue attribute and the initial value constant pool index + on string constants. + * parse.y (java_complete_lhs): Keep DECL_INITIAL when emitting + class files. + +2000-07-06 Alexandre Petit-Bianco + + * parse.h (BUILD_PTR_FROM_NAME): Surround with a do/while + construct. + * parse.y (find_as_inner_class): Fixed typo. + (do_resolve_class): Explore enclosing contexts when searching for + innerclasses. Removed curly brackets around BUILD_PTR_FROM_NAME. + (check_inner_class_access): Check `decl' which can be null in case + of previous errors. + +2000-07-05 Alexandre Petit-Bianco + + * java-tree.h (java_debug_context): Declared `extern'. + (safe_layout_class): Likewise. + * parse.y (resolve_field_access): Field must be `static' in order + to be replaced by its initial value. Added comments. + (find_applicable_accessible_methods_list): Fixed typo. + (find_most_specific_methods_list): Methods found in innerclasses + take over methods founds in the enclosing contexts. + (java_complete_tree): Loosen restrictions on the type of DECLs + that can be replaced by their initialization values. + (valid_ref_assignconv_cast_p): Removed call to `enclosing_context_p'. + +2000-07-05 Tom Tromey + + * Make-lang.in (PARSE_DIR): New macro. + (PARSE_RELDIR): Likewise. + (PARSE_C): Likewise. + (PARSE_SCAN_C): Likewise. + ($(PARSE_C)): New target. + ($(PARSE_SCAN_C)): Likewise. + (SET_BISON): New macro. + (BISONFLAGS): Likewise. + (JAVABISONFLAGS): Likewise. + +2000-07-02 Bryce McKinlay + + * gjavah.c (HANDLE_METHOD): Call print_method_info with a NULL stream + argument on the first pass for CNI as well as JNI. + (print_method_info): Set up method name on the first pass only. + +2000-07-01 Alexandre Petit-Bianco + + * parse.y (parser_qualified_classname): Removed parameter + `is_static'. + (create_interface): Removed first passed parameter to + parser_qualified_classname. + (create_class): Likewise. Don't install alias on static + innerclasses. Fixes gcj/275. + +2000-07-01 Alexandre Petit-Bianco + + * parse.y (maybe_generate_pre_expand_clinit): Don't build a + debugable statement with empty_stmt_node. Fixes gcj/272 + +2000-07-01 Alexandre Petit-Bianco + + * expr.c (build_instanceof): Layout type after it's loaded. Fixes + gcj/271. + +2000-06-29 Alexandre Petit-Bianco + + * jcf-write.c (push_long_const): Appropriately cast short negative + constant to jword. + +2000-06-29 Alexandre Petit-Bianco + + * parse.y (verify_constructor_super): Use loop variable + `m_arg_type' initialized with `mdecl_arg_type'. + +2000-06-29 Tom Tromey + + * parse.y (resolve_field_access): Handle case where `type_found' + is NULL. + +2000-06-27 Alexandre Petit-Bianco + + * expr.c (lookup_field): The same field can be found through two + different interface. Don't declare it ambiguous in that case. + +2000-06-27 Tom Tromey + + * lex.c (java_lineterminator): Don't recognize \r after \n. If \r + follows \r, then unget it at a lower level. + +2000-06-26 Tom Tromey + + * parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to + java_complete_tree. + +2000-06-25 Tom Tromey + + * parse.y (for_statement): Wrap expression in a WFL if it is a + constant. For PR gcj/268. + +2000-06-25 Alexandre Petit-Bianco + + * parse.y (do_resolve_class): Minor optimiztion in the package + list search. Removed unnecessary test and return statement. + (valid_ref_assignconv_cast_p): Order of arguments to + enclosing_context_p fixed. + +2000-06-24 Tom Tromey + + * expr.c (lookup_field): Print error and return error_mark_node if + field reference is ambiguous. + + * parse.y (check_abstract_method_definitions): Also check if + `other_method' is abstract. + +2000-06-23 Alexandre Petit-Bianco + + * class.c (set_super_info): Handle ACC_PRIVATE for (inner) + classes. + * java-tree.h (TYPE_PRIVATE_INNER_CLASS): New macro. + (struct lang_type): New field `pic'. + (CLASS_PRIVATE): New macro. + * parse.y (check_inner_class_access): New function. + (jdep_resolve_class): Call it. + +2000-06-23 Tom Tromey + + * parse.y (patch_incomplete_class_ref): Initialize the returned + class. For PR gcj/260. + +2000-06-21 Alexandre Petit-Bianco + + * except.c (prepare_eh_table_type): Use `CATCH_ALL_TYPE'. + +2000-06-20 Alexandre Petit-Bianco + + * check-init.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for + Java specific checks. + * expr.c (build_instanceof): CLASS_INTERFACE and CLASS_FINAL usage + screened by DECL_P. + * java-tree.def (CASE_EXPR): Marked 'e'. + (DEFAULT_EXPR): Likewise. + * jcf-parse.c (set_source_filename): CLASS_COMPLETE_P usage + screened by DECL_P. + * jcf-write.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for + Java specific checks. + (generate_bytecode_insns): Test try_block for BLOCK before using + BLOCK_EXPR_BODY. + * parse.y (build_wfl_wrap): Added `location' argument. Set + EXPR_WFL_LINECOL accordingly. + (dim_expr:): Wrap constants with WFLs. + (method_declarator): Use TREE_TYPE not TYPE_NAME on GET_CPC. + (resolve_package): Check for `stmt' not being a BLOCK before + building a debuggable statement with it. + (make_qualified_primary): Added extra parameter to build_wfl_wrap + invocation. + (resolve_field_access): Make sure `decl' is a DECL before treating + it as such. + (maybe_build_primttype_type_ref): Make sure `wfl''s node is an + IDENTIFIER_NODE before treating it as such. + (patch_new_array_init): Make sure `elt' is a TREE_LIST before + treating it as such. + (find_applicable_accessible_methods_list): CLASS_INTERFACE macro + to be applied only on non array types. + +2000-06-16 Per Bothner + + * java-tree.h (LABEL_RETURN_LABELS, LABEL_PENDING_CHAIN): Don't + define in terms of DECL_RESULT, as that fails when --enable-checking. + +2000-06-15 Kaveh R. Ghazi + + * jcf-write.c (CHECK_PUT): Add static prototype. Make pointer + types the same in comparison. + (CHECK_OP): Add static prototype. + +2000-06-13 Jakub Jelinek + + * typeck.c (build_java_array_type): Set TYPE_USER_ALIGN. + * parse.y (java_complete_class): Set DECL_USER_ALIGN. + * parse.c: Rebuilt. + +2000-06-11 Kaveh R. Ghazi + + * decl.c (create_primitive_vtable): Prototype. + + * jcf-write.c (generate_bytecode_insns): Initialize variable + `saved_context'. + + * lang.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED. + +2000-06-09 Bryce McKinlay + + * parse.y (find_applicable_accessible_methods_list): Use a hashtable + to track searched classes, and do not search the same class more than + once. Call find_applicable_accessible_methods_list on immediate + superclass, instead of search_applicable_method_list on all ancestors. + Fix for PR gcj/238. + +2000-06-09 Bryce McKinlay + + * parse.y (register_fields): Permit static fields in inner classes + if they are final. Fix for PR gcj/255. + +2000-06-06 Alexandre Petit-Bianco + + * parse.h (REGISTER_IMPORT): Use `chainon' to link new entries. + * parse.y (find_in_imports): Returned type changed to void, + leading comment fixed. + (register_package): New function. + (qualify_and_find): Likewise. + (package_declaration:): Use `register_package'. + (single_type_import_declaration:): Removed local variable + `node'. Added missing `;' for consistency. + (type_import_on_demand_declaration:): Use `chainon' to link new + entries. + (lookup_field_wrapper): Lookup local variables defined in outer + contexts first. + (java_complete_class): Don't reverse the list of imported on demand. + (do_resolve_class): Reorganized. Removed local variable + `original_name'. Call `qualify_and_find' with the current package + name, invoke `find_in_imports_on_demand' right after. Call + `qualify_and_find' with the packages we've seen so far. Fixed + operations numbering in comments. + (java_expand_class): Don't reverse `package_list'. + (find_most_specific_methods_list): New local variables `abstract' + and `candidates'. Use them to pick the right method. + +2000-06-06 Tom Tromey + + * parse.y (check_modifiers_consistency): Don't subtract out + `PUBLIC_TK' from argument to THIS_MODIFIER_ONLY. + +2000-06-04 Philipp Thomas + + * Makefile.in (INTLLIBS): New. + (LIBS): Add above. + (DEPLIBS): Ditto. + +2000-06-02 Alexandre Petit-Bianco + + * class.c (get_dispatch_table): Build the vtable dummy entry list + element with a null purpose. Fixed leading comment. + (build_dtable_decl): Build an accurate dtable type when appropriate + and use it. + +2000-06-02 Richard Henderson + + * lang.c (lang_get_alias_set): New. + +2000-05-31 Alexandre Petit-Bianco + + * parse.y (resolve_field_access): Complete the DECL_INITIAL tree + before using it as the accessed field. + +2000-05-31 Tom Tromey + + * java-tree.h (boolean_array_vtable, byte_array_vtable, + char_array_vtable, short_array_vtable, int_array_vtable, + long_array_vtable, float_array_vtable, double_array_vtable): + Declare. + * expr.c (get_primitive_array_vtable): New function. + (create_primitive_vtable): New function. + (java_lang_expand_expr): Enable code to statically generate + arrays. + * decl.c (init_decl_processing): Create primitive vtables. + (boolean_array_vtable, byte_array_vtable, char_array_vtable, + short_array_vtable, int_array_vtable, long_array_vtable, + float_array_vtable, double_array_vtable): Define. + +2000-05-26 Zack Weinberg + + * java/parse.y (find_applicable_accessible_methods_list): + Don't add an uninitialized value to the list. + +2000-05-25 Tom Tromey + + * parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC + when trying to see if field's class should be initialized. Always + initialize field's declaring class, not qualified class. + For PR gcj/162. + + * parse.y (array_constructor_check_entry): Pass `wfl_value', not + `wfl_operator', to maybe_build_primttype_type_ref. + Fixes PR gcj/235. + +2000-05-23 Bryce McKinlay + + * parse.y (patch_method_invocation): Don't try to lookup methods + in primitive types. + +2000-05-02 Alexandre Petit-Bianco + + * parse.y (resolve_field_access): Call the appropriate + before accessing the length of a static array. Craft a decl for + the field while its time. Fixes PR gcj/129. + +2000-05-01 Alexandre Petit-Bianco + + * parse.y (resolve_package): Correctly set `*next' (was off by + one.) + (resolve_qualified_expression_name): Fixed comment. + +2000-04-27 Alexandre Petit-Bianco + + * jcf-parse.c (jcf_parse_source): Reset current_class and + current_function_decl to NULL before parsing a new file. + +2000-04-27 Alexandre Petit-Bianco + + * parse.y (block_end:): If the collected block doesn't feature a + statement, insert an empty statement. + +2000-04-17 Alexandre Petit-Bianco + + * parse.y (maybe_yank_clinit): New function. + (maybe_generate_pre_expand_clinit): Always link at the + end of the list of methods belonging to a class. + (java_complete_expand_method): Check whether is really + necessary and expand it accordingly. + +2000-04-17 Alexandre Petit-Bianco + + * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be + processed by the method's switch statement. + +2000-05-19 Tom Tromey + + * java-tree.h: Added init state enum. + * decl.c (emit_init_test_initialization): Initialize class + initialization check variable by looking at class' state. + +2000-05-19 Tom Tromey + + * java-tree.h (build_instanceof): Declare. + (build_get_class): Declare. + * parse.y (patch_binop): Use build_instanceof. + * expr.c (build_instanceof): New function. If class is final, + don't make a function call. + (expand_java_INSTANCEOF): Use it. + (build_get_class): New function. + +2000-05-18 Alexandre Oliva + + * jcf-write.c (generate_classfile): Scan the source_file for + slashes with the right pointer variable. + +2000-05-17 Andrew Cagney + + * lang.c (lang_decode_option): Update -Wunused flags by calling + set_Wunused. + * decl.c (poplevel): Replace warn_unused with warn_unused_label. + +2000-05-09 Zack Weinberg + + * check_init.c (check_init): Constify local char *. + * class.c (push_class): Constify local char *. + * java_tree.h: Update prototypes. + * jcf-io.c (open_class): Constify filename parameter and + return value. + (find_class): Remove redundant string copy. Cast return from + open_class. + * jcf-parse.c (read_class, parse_class_file, yyparse): + Constify local char *. + * jcf-write.c (generate_bytecode_insns, generate_classfile): + Constify local char *. + * jcf.h (JCF): Constify filename and classname. + (JCF_FINISH): Cast args to FREE to char * when appropriate. + * lang.c (init_parse): Constify parameter and return value. + * lex.c (java_get_line_col): Constify filename parameter. + * parse.h: Constify parser_ctxt.filename. Update prototypes. + * parse.y (java_parser_context_suspend, + issue_warning_error_from_context, safe_layout_class): Constify + local char *. + * parse.c: Regenerate. + +2000-05-08 Tom Tromey + + * expr.c (build_jni_stub): Cache the result of + _Jv_LookupJNIMethod. + +2000-05-05 Alexandre Petit-Bianco + + * decl.c (predef_filenames_size): Now 7. + (predef_filenames): New seventh entry. + +2000-05-04 Tom Tromey + + * boehm.c (mark_reference_fields): Don't mark RawData fields. + Keep track of when we've seen a reference field after a + non-reference field. + (get_boehm_type_descriptor): Handle case where we see + non-reference fields but no trailing reference field. + * decl.c (rawdata_ptr_type_node): Define. + (init_decl_processing): Initialize rawdata_ptr_type_node. + * java-tree.h (rawdata_ptr_type_node): Declare. + +2000-05-04 Kaveh R. Ghazi + + * jcf-dump.c (SPECIAL_IINC): Ensure arguments match format + specifiers in calls to fprintf. + +2000-05-03 Andrew Haley + + * expr.c (build_java_jsr): Use emit_jump, not expand_goto. + + * javaop.h (WORD_TO_INT): New function. + (IMMEDIATE_s4): Use WORD_TO_INT. + * jcf.h (JPOOL_INT): Ditto. + + * gjavah.c (decode_signature_piece): Don't treat `$' as namespace + separator. + +2000-04-19 Tom Tromey + + * class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE + on native function. + * jcf-parse.c (parse_class_file): Call build_jni_stub for native + JNI methods. + * expr.c (build_jni_stub): New function. + * lang-specs.h: -fjni and -femit-class-file are incompatible. + * parse.c: Rebuilt. + * parse.y (java_complete_expand_methods): Expand a native method + and call build_jni_stub if -fjni given. + * lang-options.h: Document -fjni. + * lang.c (flag_jni): New global. + (lang_f_options): Added `jni' entry. + * java-tree.h (soft_lookupjnimethod_node, + soft_getjnienvnewframe_node, soft_jnipopsystemframe_node): + Declare. + (flag_jni): Declare. + (build_jni_stub): Declare. + (struct lang_decl): Added `native' flag. + (METHOD_NATIVE): Redefined to use `native' field of lang specific + structure. + * decl.c (soft_lookupjnimethod_node, soft_getjnienvnewframe_node, + soft_jnipopsystemframe_node): New globals. + (init_decl_processing): Set them. _Jv_InitClass only takes one + argument. + + * java-tree.def: Put into `C' mode. + +2000-04-27 Tom Tromey + + Fix for PR gcj/2: + * expr.c (expand_invoke): Generate check to see if object pointer + is null in nonvirtual invocation case. + * java-tree.h (soft_nullpointer_node): Declare. + * decl.c (soft_nullpointer_node): New global. + (init_decl_processing): Initialize soft_nullpointer_node. + * parse.y (invocation_mode): Return INVOKE_NONVIRTUAL for `final' + or `private' methods. + (patch_invoke): Handle INVOKE_NONVIRTUAL case. + +2000-04-26 Alexandre Petit-Bianco + + * decl.c (complete_start_java_method): Don't call _Jv_InitClass + from + +2000-04-26 Tom Tromey + + * zextract.c (find_zip_file_start): New function. + (read_zip_archive): Use it. + +2000-04-25 Alexandre Petit-Bianco + + * parse.y (register_incomplete_type): Handle JDEP_ANONYMOUS. + +2000-04-24 Alexandre Petit-Bianco + + * class.c (common_enclosing_context_p): New function. + * java-tree.h (common_enclosing_context_p): Added prototype. + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Relaxed test to allow + classes sharing an outer context with the current instance. + * parse.y (build_access_to_thisn): Fixed leading comment. + (verify_constructor_super): New local `supper_inner'. Skip + enclosing context argument in the case of inner class constructors. + (patch_method_invocation): Insert proper context as second + parameter to pure inner class constructor super invocations. + +2000-04-24 Alexandre Petit-Bianco + + * parse.y (end_class_declaration): Reset the interface number + counter. + +2000-04-24 Alexandre Petit-Bianco + + * parse.y (source_start_java_method): Deleted unnecessary code. + (patch_method_invocation): Fixed comment. + +2000-04-24 Robert Lipe + + * parse.h (_jdep): Member `kind' now ENUM_BITFIELD. + +2000-04-23 Tom Tromey + + * boehm.c (mark_reference_fields): Use int_byte_position. + +2000-04-22 Tom Tromey + + * boehm.c (mark_reference_fields): Only call byte_position on + non-static fields. + +2000-04-22 Tom Tromey + + * boehm.c (mark_reference_fields): Added `last_view_index' + argument. Use DECL_FIELD_OFFSET to determine field's offset. + +2000-04-20 Mo DeJong + + * parse.h (INTERFACE_INNER_MODIFIERS): New macro. + * parse.y (check_class_interface_creation): Fixed comments. Select + permitted modifiers for (inner) interfaces. Changed error message + to report rejected modifiers used with local classes. + +2000-04-20 Alexandre Petit-Bianco + + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Immediate inner classes + of directly inherited type considered in scope. + * parse.y (do_resolve_class): Search inherited classes for inner + classes. + +2000-04-20 Tom Tromey + + * parse.y (not_accessible_p): Use member's class, not current + class, when doing inheritance check for protected reference. + Fixes PR gcj/124. + +2000-04-20 Jason Schroeder + + * jcf-dump.c (SPECIAL_IINC): Fixed typo printing iinc instruction. + +2000-04-19 Alexandre Petit-Bianco + + * parse.y (lookup_field_wrapper): Search for final local aliases. + (resolve_expression_name): Let lookup_field_wrapper search for + final local aliases. Force the value of `name' if one is found. + (qualify_ambiguous_name): CONVERT_EXPR is enough to now we have + an expression name. Fixed comments. + +2000-04-19 Alexandre Petit-Bianco + + * parse.y (yyerror): `msg' can be null, don't use it in that case. + +2000-04-19 Tom Tromey + + * gjavah.c (cxx_keyword_subst): Avoid potential infinite loop. + +2000-04-18 Alexandre Petit-Bianco + + * parse.y (maybe_make_nested_class_name): Use `obstack_grow0'. + +2000-04-18 Tom Tromey + + PR gcj/211: + * gjavah.c (utf8_cmp): Changed return value. + (cxx_keyword_subst): Handle all C++ keywords. Allocate new return + result. + (cxx_keywords): New global. + (get_field_name): Handle new result of cxx_keyword_subst. + (print_method_info): Likewise. + +2000-04-17 Bryce McKinlay + + * gjavah.c (print_name_for_stub_or_jni): Don't prefix method names + with a newline, for CNI. + (print_stub_or_jni): Print a space or newline before method name for + CNI as well as JNI. + (print_cxx_classname): Don't write leading "::" in CNI stub method. + (process_file): Include gcj/cni.h if generating CNI stubs. + +2000-04-16 Tom Tromey + + * gjavah.c (decompile_method): Use print_field_name. + Fixes PR gcj/205. + +2000-04-14 Alexandre Petit-Bianco + + * parse.y (java_expand_classes): Reverse the package list once. + (java_complete_lhs): PLUS_EXPR: don't try rhs and lhs at string + reduction. + (patch_binop): New temp `cn'. Call patch_string on LHS/RHS of + the `==' and `!=' operators. + +2000-04-05 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): At invocation time, + always relate an interface method to the type of its selector. + +2000-04-05 Tom Tromey + + Fix for PR gcj/2: + * expr.c (expand_invoke): Generate check to see if object pointer + is null in nonvirtual invocation case. + * java-tree.h (soft_nullpointer_node): Declare. + * decl.c (soft_nullpointer_node): New global. + (init_decl_processing): Initialize soft_nullpointer_node. + * parse.y (invocation_mode): Return INVOKE_NONVIRTUAL for `final' + or `private' methods. + (patch_invoke): Handle INVOKE_NONVIRTUAL case. + +2000-04-05 Tom Tromey + + Fix for PR gcj/140: + * parse.y (check_final_assignment): Recognize assignments to the + `length' field of an array when generating class files. + +2000-04-05 Alexandre Petit-Bianco + + * class.c (decl_hash): Prototype removed. + (decl_compare): Likewise. + +2000-04-05 Tom Tromey + + * parse.h (THIS_MODIFIER_ONLY): Changed meaning of `v' parameter. + * parse.y (check_modifiers_consistency): Check for final/volatile + clash. Fixes PR gcj/164. + +2000-04-05 Alexandre Petit-Bianco + + * class.c: (java_hash_hash_tree_node): Renamed from `decl_hash', + made global. + (java_hash_compare_tree_node): Renamed from `decl_compare, made + global. + (add_method_1): Use `java_hash_hash_tree_node' and + `java_hash_compare_tree_node'. + * java-tree.h: (java_hash_hash_tree_node): Prototyped. + (java_hash_compare_tree_node): Likewise. + * parse.y (find_applicable_accessible_methods_list): Create, + delete and use a hash table to remember already searched interfaces. + +2000-04-03 Matt Welsh + + * jcf-depend.c (add_entry): Fixed bug where list was always replaced + with latest entry. + +2000-04-04 Kaveh R. Ghazi + + * boehm.c (mark_reference_fields, set_bit): Prototype. + (set_bit): Un-ANSI-fy definition. + + * class.c (init_test_hash_newfunc, decl_hash, decl_compare): + Prototype. + + * decl.c (emit_init_test_initialization): Likewise. + + * gjavah.c (jni_print_char): Likewise. + + * parse.y (create_new_parser_context): Likewise. + +2000-03-30 Alexandre Petit-Bianco + + * expr.c (java_lang_expand_expr): Added Anthony's Thu Jan 6 2000 + patch missing hunk. Fixed indentation. + +2000-03-30 Tom Tromey + + * gjavah.c (D_NAN_MASK): Only define as word-reversed when + HOST_FLOAT_WORDS_BIG_ENDIAN and HOST_WORDS_BIG_ENDIAN disagree. + +2000-03-28 Alexandre Petit-Bianco + + * parse-scan.y (pop_class_context): Reset `inner_qualifier_length' + when negative *before* using it as an array index. + * ChangeLog: Fixed typo. + +2000-03-28 Alexandre Petit-Bianco + + * parse-scan.y (pop_class_context): Reset `inner_qualifier_length' + to 0 when it reaches -1. + +2000-03-27 Alexandre Petit-Bianco + + * jcf-parse.c (get_constant): Properly cast `num' during the + invocation of `add_double'. + * jcf-write.c (push_long_const): Properly cast `lo' before + comparing it to short bounds. + * parse-scan.y (interface_declaration:): Rule re-arrange so that + `interface_body:' is reduced after the current interface is + pushed. + +2000-03-26 Tom Tromey + + * jvspec.c (jvgenmain_spec): Add `%{<...}' construct for each + Java-specific `-f' option. + +2000-03-26 Richard Kenner + + * decl.c (init_decl_processing): Only call initialize_sizetypes once. + Adjust order of making types. + Make bitsize_*_node values. + +2000-03-25 Richard Kenner + + * class.c (make_field_value): Use byte_position. + * expr.c (JAVA_ARRAY_LENGTH_OFFSET): Use byte_position. + (java_array_data_offset): Likewise. + * java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Add case to + bzero call. + +2000-03-22 Alexandre Petit-Bianco + + * parse.y (check_abstract_method_definitions): New local + `end_type_reached'. Make sure we also consider `end_type'. + (java_check_abstract_method_definitions): Make sure we eventually + consider `java.lang.Object'. + (maybe_use_access_method): Don't use access method if not in the + context of a pure inner class or if the method's context is right. + (find_applicable_accessible_methods_list): New static flag + `object_done'. Don't search abstract classes as interfaces. Fixed + indentation. Fixed the `java.lang.Object' only search. Search + class interface(s) first, then fully search enclosing contexts. + (find_most_specific_methods_list): Pick the closest candidate when + they're all abstract. + +2000-03-20 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: + properly initialize `finished_label'. Don't emit gotos for empty + try statements. + +2000-03-19 Martin v. Löwis + + * except.c (emit_handlers): Clear catch_clauses_last. + +2000-03-17 Alexandre Petit-Bianco + + * parse.y (check_method_types_complete): New function. + (create_class): Reset anonymous class counter only when seeing an + non inner classe. + (java_complete_class): JDEP_METHOD: Don't recompute signature + if incomplete. + +2000-03-17 Alexandre Petit-Bianco + + * class.c (build_static_ref): Fixed indentation in comment. + * java-tree.def (TRY_EXPR): Fixed typo in name. + (CLASS_LITERAL): Likewise. + * java-tree.h: (TYPE_DOT_CLASS): New macro. + (struct lang_type): New field `dot_class'. + * jcf-write.c (generate_bytecode_insns): Fixed error message. + (generate_classfile): Method `class$' is synthetic. + * parse.y (build_do_class_method): New function. + (build_dot_class_method_invocation): Likewise. + (java_complete_expand_methods): Expand TYPE_DOT_CLASS if necessary. + (resolve_qualified_expression_name): Handle CLASS_LITERAL. + (qualify_ambiguous_name): Likewise. + (patch_incomplete_class_ref): Invoke synthetic method if necessary. + (build_try_statement): Fixed leading comment. + +2000-03-17 Richard Kenner + + * class.c (make_field_value): Properly handle sizes. + (get_dispatch_vector): Use tree_low_cst and host_integerp. + (layout_class_method): Count using trees. + * decl.c (push_promoted_type): Set TYPE_{MIN,MAX}_VALUE with copy_node. + * expr.c (java_array_data_offset): Use int_bit_position. + (build_newarray, build_anewarray): Use host_integerp and tree_low_cst. + (build_invokevirtual): Use tree_low_cst and do computations with trees. + +2000-03-16 Tom Tromey + + * lang.c (flag_hash_synchronization): New global. + (lang_f_options): Added `hash-synchronization'. + * lang-options.h: Mention -fhash-synchronization. + * java-tree.h (flag_hash_synchronization): Declare. + * expr.c (java_lang_expand_expr): Only push `sync_info' value when + hash table synchronization is disabled. + * decl.c (init_decl_processing): Only push `sync_info' value when + hash table synchronization is disabled. + * class.c (make_class_data): Only push `sync_info' field when hash + table synchronization is disabled. Removed dead code. + +2000-03-16 Tom Tromey + + * lang.c (lang_decode_option): Enable -Wunused when -Wall given. + +2000-03-15 Alexandre Petit-Bianco + + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Disregard anonymous + classes. + * parse.y (patch_method_invocation): Handle anonymous classes + creation in static context. + +2000-03-15 Alexandre Petit-Bianco + + * parse.h (INNER_ENCLOSING_SCOPE_CHECK): New macro. + * parse.y (resolve_qualified_expression_name): Use it. + (patch_method_invocation): Likewise. + +2000-03-15 Alexandre Petit-Bianco + + * parse.y (register_incomplete_type): JDEP_ENCLOSING set + depending on the type of dependency which dictates what the + current class is. + (unresolved_type_p): Resolved types limited to the current class. + +2000-03-15 Tom Tromey + + * decl.c (init_decl_processing): Set type of `sync_info' to be + pointer to Object. + + * boehm.c (get_boehm_type_descriptor): Correctly compute `bits'. + Correctly compute bit number for current slot. Zero `high' and + `low' in DS_LENGTH case. Don't skip inherited fields. Use + mark_reference_fields. + (mark_reference_fields): New function. + +2000-03-14 Alexandre Petit-Bianco + + * parse.y (register_incomplete_type): Fixed initialization of + JDEP_ENCLOSING. + +2000-02-28 Alexandre Petit-Bianco + + * parse-scan.y (inner_qualifier, inner_qualifier_length): New + static globals. + (push_class_context, pop_class_context): New function. + (class_body:): Call pop_class_context. + (interface_body:): Likewise. + (INNER_QUALIFIER): New macro. + (report_class_declaration): Changed output format and use + INNER_QUALIFIER. Call push_class_context. + +2000-02-14 Andrew Haley + + * check-init.c (check_init): Add new cases for unary and binary + tree nodes. + +2000-03-13 Alexandre Petit-Bianco + + * parse.y (resolve_package): Set `next' once a type name has been + progressively discovered. + (resolve_qualified_expression_name): Propagate resolution only if + there are remaining qualifiers. Take into account `q' might have + been cleared after re-qualification. + * parse.y (patch_method_invocation): New local `resolved'. + Section dealing with qualified expression rewritten to use + resolve_field_access. + +2000-03-13 Alexandre Petit-Bianco + + * parse.h (PUSH_CPC): Fixed indentation. + (DEBUG_CPC): New macro. + (SET_CPC_INITIALIZER_STMT, SET_CPC_STATIC_INITIALIZER_STMT, + SET_CPC_INSTANCE_INITIALIZER_STMT): New macros. + * parse.y (class_body_declaration:): Use + SET_CPC_INSTANCE_INITIALIZER_STMT. + (method_declaration:): Check for null current_function_decl. + (static_initializer:): Use SET_CPC_STATIC_INITIALIZER_STMT. + (java_parser_context_pop_initialized_field): Better handling of + empty lists. + (maybe_make_nested_class_name): Mark nested class name as + qualified when necessary. + (end_class_declaration): Don't call java_parse_context_resume when + one or more error occurred. + (add_inner_class_fields): Use SET_CPC_INITIALIZER_STMT. + (register_fields): Use SET_CPC_STATIC_INITIALIZER_STMT and + SET_CPC_INITIALIZER_STMT. + (method_header): Check for inner classes declaring static methods. + (resolve_qualified_expression_name): Handle situation where `this' + is implied. + +2000-03-13 Hans Boehm + + * typeck.c (build_prim_array_type): Correctly set the high word too. + +2000-03-09 Alexandre Petit-Bianco + + * parse.y (java_complete_expand_methods): Leave out of + ordinary methods. + (maybe_generate_pre_expand_clinit): Put at the end of the + list of methods for interfaces. + +2000-03-07 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Properly handle expressions + using `null'. + +2000-03-07 Alexandre Petit-Bianco + + * parse.y (check_final_assignment): Extended to process + COMPOUND_EXPR. + (patch_assignment): Have check_final_assignment called only once. + +2000-03-07 Alexandre Petit-Bianco + + * java-tree.h (IS_INIT_CHECKED): New flag. + * check-init.c (check_init): Test and set IS_INIT_CHECKED. + * parse.y (patch_string): Call force_evaluation_order on the + completed string concatenation tree. + * expr.c (force_evaluation_order): Call force_evaluation_order on + function's arguments too. + +2000-03-06 Richard Kenner + + * decl.c (emit_init_test_initialization): Mark KEY as unused. + * expr.c (build_newarray): Cast TREE_INT_CST_LOW to HOST_WIDE_INT. + (build_anewarray): Likewise. + * parse.y (patch_newarray): Likewise. + * parse.c: Regenerated. + +2000-03-06 Bryce McKinlay + + * decl.c (init_decl_processing): Added new class fields `depth', + `ancestors', and `idt' to class_type_node. Use + _Jv_LookupInterfaceMethodIdx for soft_lookupinterfacemthod_node. + * class.c (make_class_data): Push initial values for new fields. + * java-tree.h: Updated prototype for `build_invokeinterface'. + * expr.c (build_invokeinterface): Changed parameters to accept + `method' tree. Calculate index of `method' in its declaring + interface. Build call to _Jv_LookupInterfaceMethodIdx. + (expand_invoke): Call `build_invokeinterface' with new parameters. + * parse.y (patch_invoke): Call `build_invokeinterface' with new + parameters. + +2000-03-06 Bryce McKinlay + + * typeck.c (lookup_do): Search superinterfaces first + when looking up an interface method. From Godmar Back + + +2000-03-06 Tom Tromey + + * Make-lang.in (JAVA_SRCS): Added boehm.c, lex.c. + +2000-03-02 Alexandre Petit-Bianco + + * java-tree.h (lookup_argument_method2): Declared. + (safe_layout_class): Prototype moved from parse.h. + * parse.h (safe_layout_class): Prototype moved to java-tree.h. + * parse.y (java_check_regular_methods): Local `super_class' gone. + Call lookup_argument_method2 instead of lookup_argument_method. + Perform modifier match for methods found declared in implemented + interfaces. Fixed indentation problem. Overriding/hiding error + report to take place only for methods found in classes. + * typeck.c (lookup_argument_method): Changed leading + comment. Re-written by calling lookup_do. + (lookup_argument_method2): New function. + (lookup_java_method): Re-written by calling lookup_do. + (lookup_do): New function. + +2000-03-02 Alexandre Petit-Bianco + + * check-init.c (check_init): Removed dead code. Handle (blank) + final variables. + * parse.y (declare_local_variables): New local `final_p', set it + and use it to initialize LOCAL_FINAL. + (check_final_assignment): Only check FIELD_DECLs. + +2000-02-17 Tom Tromey + + * Makefile.in (JAVA_OBJS): Added boehm.o. + (boehm.o): New target. + * Make-lang.in (JAVA_SRCS): Added boehm.c. + * java-tree.h (flag_use_boehm_gc): Declare. + (get_boehm_type_descriptor): Declare. + * lang.c (lang_f_options): Added `use-boehm-gc'. + (flag_use_boehm_gc): New global. + * lang-options.h: Added -fuse-boehm-gc. + * boehm.c: New file. + * class.c (get_dispatch_table): If class uses a Boehm type + descriptor, put it in the vtable. + (make_class_data): Removed dead code. + +2000-03-03 Per Bothner + + * decl.c (init_decl_processing): Initialize sizetype properly. + +2000-03-01 Alexandre Petit-Bianco + + * java-tree.h (LOCAL_CLASS_P): New flag usage and macro. + (PURE_INNER_CLASS_DECL_P, PURE_INNER_CLASS_TYPE_P): New macros. + * jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. + * jcf-parse.c (HANDLE_INNERCLASSES_ATTRIBUTE): Likewise. + (jcf_parse): New local `current'. Load innerclasses seen in outer + context being processed. + * jcf-reader.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. + * jcf-write.c (append_innerclasses_attribute): New function. + (append_innerclasses_attribute_entry): Likewise. + (get_access_flags): Handle static classes. Set anonymous and local + classes to be private. + (generate_classfile): Attribute count adjusted. Call + append_innerclasses_attribute. + * parse.h (SKIP_THIS_AND_ARTIFICIAL_PARMS): Use + PURE_INNER_CLASS_TYPE_P. + * parse.y (parser_qualified_classname): New parameter `is_static', + produce non qualified name accordingly. + (block_statement:): Set LOCAL_CLASS_P when declaring local class. + (create_interface): Added argument to parser_qualified_classname. + (create_class): Added argument to parser_qualified_classname. Setup + alias for top level classes. Use PURE_INNER_CLASS_DECP_P. + (add_inner_class_fields): Fixed indentation. + (method_declarator): Use PURE_INNER_CLASS_DECP_P. + (method_declarator): Fixed typo in comment. + (craft_constructor): Use PURE_INNER_CLASS_DECP_P. + (build_current_thisn): Likewise. + (patch_method_invocation): Likewise. + +2000-03-01 Martin von Löwis + + * decl.c (current_function_decl): Move to toplev.c. + +2000-02-28 Richard Kenner + + * java-tree.h (LABEL_PC): Relect name changes in ../tree.h. + (DECL_BIT_INDEX): Use underlying representation. + * parse.h (DECL_INHERITED_SOURCE_LINE): Likewise. + +2000-02-27 Richard Kenner + + * expr.c (build_java_ret): Pass proper type to size_binop. + +2000-02-25 Anthony Green + + * expr.c (build_class_init): Mark the decl to be ignored by + check_init. + * java-tree.h (DECL_BIT_INDEX): Move definition from check-init.c + * check-init.c: Move DECL_BIT_INDEX to java-tree.h + * class.c (init_test_hash_newfunc): New function. + (decl_hash): New function. + (decl_compare): New function. + * decl.c (emit_init_test_initialization): New function. + (complete_start_java_method): Traverse the init test hashtable, + calling emit_init_test_initialization. + (always_initialize_class_p): Define. + * expr.c (build_class_init): Use initialization tests when + emitting class initialization code. + (always_initialize_class_p): Declare. + * jcf-parse.c (parse_class_file): Set always_initialize_class_p to + 1. + * java-tree.h: Include hash.h. + (DECL_FUNCTION_INIT_TEST_TABLE): Define. + (struct lang_decl): Add init_test_table field. + (init_test_hash_entry): Define. + +2000-02-25 Alexandre Petit-Bianco + + * gjavah.c (main): Avoid using `argi' to report unimplemented + options. + +2000-02-25 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: + initialize locals to avoid warnings. Local `exception_type' moved + into if statement. + +2000-02-25 Alexandre Petit-Bianco + + * parse.y (resolve_expression_name): Use `orig' as a second + argument to resolve_field_access. + (resolve_field_access): Removed unnecessary code when dealing with + static fields. + +2000-02-23 Alexandre Petit-Bianco + + * class.c (push_super_field): Don't push the field twice. + * jcf-parse.c (parse_source_file): Call java_reorder_fields. + * parse.h (java_reorder_fields): Prototyped. + * parse.y (java_reorder_fields): New function. + (java_layout_class): Simplified not to worry about re-ordering. + +2000-02-23 Tom Tromey + + * gjavah.c (print_name): In JNI case, correctly quote string. + (print_method_info): Don't handle overrides in JNI mode. + +2000-02-22 Alexandre Petit-Bianco + + * parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned + value type set to `boolean_type_node'. + +2000-01-18 Joerg Brunsmann + + * jcf-dump.c (main): Test for correct condition after + output file creation. + +2000-02-19 Anthony Green + + * jcf-depend.c (add_entry): Fix test for first list entry. + +2000-02-19 Richard Kenner + + * class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT. + * constants.c (build_constants_constructor): Likewise. + +2000-02-19 Anthony Green + + * jcf-depend.c (add_entry): Add entries to the end of the list. + +1999-11-03 Pekka Nikander + + * decl.c (INT_TYPE_SIZE): Define if necessary. + (expand_java_return): Handle the case of a native integer smaller + than a JVM integer. + +2000-02-18 Martin von Löwis + + * gjavah.c (help): Use GCCBUGURL. + * jv-scan.c (help): Likewise. + * jcf-dump.c (help): Likewise. + +2000-02-17 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): Don't generate empty + `finally' clauses. + +2000-02-17 Alexandre Petit-Bianco + + * jcf-parse.c (load_class): Call `fatal' if no file containing + the target class are found. + +2000-02-16 Zack Weinberg + + * Makefile.in (PARSE_C, PARSE_SCAN_C): Move dependencies on + lex.c, lex.h, and PARSE_H to... + (parse.o, parse-scan.o): ...here, respectively. + + * lex.c: Split out code that may trigger SIGFPE from yylex() + to its own function. + * lex.h (JAVA_FLOAT_RANGE_ERROR): Don't set value. + +2000-02-16 Kaveh R. Ghazi + + * Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h. + +2000-02-15 Alexandre Petit-Bianco + + * parse.y (outer_field_access_p): Stop in time when outer contexts + are exhausted. + (resolve_qualified_expression_name): Properly qualify *everything* + after a package.type to be resoled as expression names. + (find_applicable_accessible_methods_list): Save/restore `class' to + isolate it from a possible outer context search. + +2000-02-15 Tom Tromey + + * gjavah.c (jni_print_char): New function. + (print_full_cxx_name): Use it. + (decode_signature_piece): Likewise. + (print_cxx_classname): Likewise. + +2000-02-15 Kaveh R. Ghazi + + * Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with + version.o. + (jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h. + + * gjavah.c: Include version.h. + + * jcf-dump.c: Likewise. + + * jv-scan.c: Likewise. + +2000-02-12 Alexandre Petit-Bianco + + * parse.y (outer_field_access_fix): First parameter now a tree + node. Check for assignment to final. First argument to + build_outer_field_access_fix modified to accommodate prototype. + (build_outer_field_access): Don't check for assignment to final + here. + (java_complete_lhs): MODIFY_EXPR case: Check for `error_mark_node' + possibly returned by outer_field_access_fix. Changed + outer_field_access_fix's first argument. + (check_final_assignment): $finit$'s context is OK. + (patch_unaryop): Use node instead of its line/column value when + calling outer_field_access_fix. + +2000-02-11 Alexandre Petit-Bianco + + * parse.y (interface_declaration:): No longer tagged + . Re-installed default action. + (class_member_declaration:): Handle inner interfaces. + (interface_member_declaration): Handle inner interfaces and + classes. + (create_interface): Push error if one seen. Suspend parsing + context when processing an inner interface. + (register_fields): Inner class static field limitations not to + apply to inner interfaces. + +2000-02-10 Alexandre Petit-Bianco + + * jcf-parse.c (load_class): Update `java_error_count' when a + class' file can't be found. + (parse.y): Avoid (byte)code generation when errors seen. + +2000-02-10 Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): Handle TRUNC_DIV_EXPR. Ensure `fatal' + decodes a valid node. + (patch_binop): Handle TRUNC_DIV_EXPR. + +2000-02-10 Alexandre Petit-Bianco + + * parse.y (resolve_package): New local `acc'. Try to progressively + build and guess a package and type name. + +2000-02-10 Alexandre Petit-Bianco + + * parse.y (find_applicable_accessible_methods_list): Load and + layout the search class if necessary. + (java_complete_tree): Keep to original type of the folded initial + value. + +2000-02-09 Alexandre Petit-Bianco + + * class.c (layout_class): Set and test CLASS_BEING_LAIDOUT. + Generate error message if circularity is detected. New static + local `list'. + * java-tree.h (CLASS_BEING_LAIDOUT): New flag usage, new macro. * + * jcf-write.c (generate_bytecode_insns): Very simply handle + SAVE_EXPR. + * parse.y (java_check_circular_reference): Use + `cyclic_inheritance_report' during report, if necessary. + (java_complete_lhs): fixed comment with `THROW_EXPR:' case. Avoid + walking NEW_ARRAY_INIT twice. + +2000-02-09 Tom Tromey + + * parse.y (check_class_interface_creation): Allow inner classes to + be `private' or `protected', check modifiers' consistency. Prevent + block local classes from bearing any modifiers. + +2000-02-10 Kaveh R. Ghazi + + * except.c (check_start_handlers): Re-add prototype lost in last + patch. + (maybe_start_try): Remove excess argument to `check_start_handlers'. + +2000-02-09 Andrew Haley + + * decl.c (clear_binding_level): Remove excess initializer. + (maybe_poplevels): Remove unused variable. + (force_poplevels): Ditto. + (struct binding_level): Add comment. + +2000-02-07 Alexandre Petit-Bianco + + * jcf-write.c (generate_classfile): Don't consider + pre-initialization with reference value (use instead.) + * parse.y (java_fix_constructors): No generated constructor for + interfaces. + (build_outer_field_access): Removed debug message. + (outer_field_expanded_access_p): Adapted to bytecode generation. + (build_outer_field_access_method): Use fix_method_argument_names. + (build_outer_method_access_method): Fixed indentation. Added + comment. Handle access method generation for static and also void + methods. + (build_access_to_thisn): Inserted debug message. + (maybe_build_thisn_access_method): Use fix_method_argument_names. + (resolve_qualified_expression_name): Fixed comment. + (not_accessible_p): Adapted to bytecode generation. Added comment. + (patch_method_invocation): Added comment. + (maybe_use_access_method): Fixed leading comment. Handle static + methods. + (java_complete_lhs): Don't shortcut handling of initialized upon + declaration String type static fields when generating bytecode. + (patch_unaryop): Handle outer field access when generating + bytecode. + +2000-02-03 Alexandre Petit-Bianco + + * java-tree.h (FIELD_THISN): New macro. + * jcf-write.c (append_synthetic_attribute): New function. + (generate_classfile): Set "Synthetic" attribute on this$, + val$ fields, access$ and $finit$ methods. Fixed indentation. + * parse.y (add_inner_class_fields): Set FIELD_THISN for created + this$ fields. + (build_outer_field_access): Turned on access functions usage and + generation when compiling to bytecode. + (maybe_use_access_method): Likewise. + +2000-01-25 Andrew Haley + + * java-except.h (struct eh_range): Add `expanded' field. + (maybe_start_try): Add end_pc arg. + (maybe_end_try): Ditto. + * java-tree.h (force_poplevels): new function. + * expr.c (expand_byte_code): Don't call maybe_start_try or + maybe_end_try. + * except.c (add_handler): Reset expanded. + (expand_start_java_handler): Set expanded. + (check_start_handlers): Don't expand a start handler that's + already been expanded. + (maybe_start_try): Add end_pc arg. Only expand a handler which + ends after end_pc. + (expand_end_java_handler): call force_poplevels. + (force_poplevels): new function. + * decl.c (binding_level): Add start_pc of binding level. + (maybe_pushlevels): Call maybe_start_try when pushing binding + levels. + (maybe_poplevels): Call maybe_end_try when popping binding levels. + (LARGEST_PC): Define. + (clear_binding_level): Use LARGEST_PC. + + * java-tree.h (DEBUG_JAVA_BINDING_LEVELS): new define. + * decl.c (DEBUG_JAVA_BINDING_LEVELS): new define. + (binding_depth, is_class_level, current_pc): new variables. + (struct binding_level): ditto. + (indent): new function. + (push_jvm_slot): add debugging info. + (maybe_pushlevels): ditto. + (maybe_poplevels): ditto. + (pushlevel): ditto. + (poplevel): ditto. + (start_java_method): ditto. + (give_name_to_locals): comment only. + * except.c (binding_depth, is_class_level, current_pc): + new variables. + (expand_start_java_handler): add debugging info. + (expand_end_java_handler): ditto. + +2000-02-05 Kaveh R. Ghazi + + * gjavah.c (overloaded_jni_method_exists_p): Add prototype. + (print_name_for_stub_or_jni, process_file): Constify a char*. + +2000-02-03 Tom Tromey + + * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input. + +2000-01-31 Scott Bambrough + + * gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to + assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is + defined to be 1. + +2000-02-02 Alexandre Petit-Bianco + + * java-tree.def (INSTANCE_INITIALIZERS_EXPR): New tree code. + * java-tree.h (TYPE_II_STMT_LIST): New macro. + (struct lang_type): New field `ii_block'. + * lex.c (java_init_lex): Use CPC_INITIALIZER_LIST, + CPC_STATIC_INITIALIZER_LIST and CPC_INSTANCE_INITIALIZER_LIST. + * parse.h (struct parser_ctxt): New field `instance_initializers'. + (CPC_INITIALIZER_LIST, CPC_STATIC_INITIALIZER_LIST, + CPC_INSTANCE_INITIALIZER_LIST, CPC_INITIALIZER_STMT, + CPC_STATIC_INITIALIZER_STMT, CPC_INSTANCE_INITIALIZER_STMT): New + macros. + * parse.y (add_instance_initializer): New function. + (in_instance_initializer): New static global. + (class_body_declaration:): Link instance initializer block. + (static_initializer:): Use CPC_STATIC_INITIALIZER_STMT. + (array_creation_expression:): Remove unused local. + (java_parser_context_push_initialized_field): Fixed leading + comment. Use CPC_STATIC_INITIALIZER_LIST, CPC_INITIALIZER_LIST and + CPC_INSTANCE_INITIALIZER_LIST. + (java_parser_context_pop_initialized_field): Likewise. + (add_inner_class_fields): Use CPC_INITIALIZER_STMT. + (register_fields): Use CPC_STATIC_INITIALIZER_STMT and + CPC_INITIALIZER_STMT. + (fix_constructors): New local `class_type'. Use it. Call + add_instance_initializer. + (java_complete_lhs): New case INSTANCE_INITIALIZERS_EXPR. + (patch_return): Forbid return in instance initializers. + (patch_throw_statement): Enforce exception handling in the context + of instance initializers. + +2000-02-03 Tom Tromey + + * Make-lang.in (java.mostlyclean): Remove executables in + `mostlyclean'. + +2000-01-31 Scott Bambrough + + * gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when + HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1. + (java_float_finite): Convert to use union Word from javaop.h. + (java_double_finite): Convert to use union DWord from javaop.h. + +2000-02-02 Tom Tromey + + * gjavah.c (options): Added `jni' entry. + (help): Document -jni. + (flag_jni): New global. + (process_file): Handle JNI output. Don't print text from + -prepend, -add, etc, when generating stubs. Only remove `.class' + suffix if it actually exists. + (main): Create a `.c' file when run with `--jni --stubs'. Create + correct output file name with `--jni'. + (print_include): Mangle header name differently in JNI case. + (HANDLE_METHOD): In JNI mode, call print_method_info to generate + method list. + (print_method_info): Handle JNI case. Put signature info into + method name. Handle case when STREAM is NULL. + (print_name_for_stub_or_jni): New function. + (print_stub_or_jni): Renamed from `print_stub'. Handle JNI. + (print_cxx_classname): Handle JNI. + (print_full_cxx_name): Likewise. + (decode_signature_piece): Likewise. + (overloaded_jni_method_exists_p): New function. + (struct method_name): Added `signature' and `sig_length' fields. + (HANDLE_END_FIELD): Do nothing in JNI mode. + +2000-02-02 Tom Tromey + + * jv-scan.c: Include version.c, . + (LONG_OPT, OPT_HELP, OPT_VERSION): New macros. + (options): New array. + (usage): New function. + (version): New function. + (main): Use getopt_long to parse command line. + * jcf-dump.c: Include version.c, . + (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION, + OPT_JAVAP): New macros. + (options): New array. + (usage): Return `void'. Changed message. + (help): New function. + (version): New function. + (main): Use getopt_long_only to parse command line. + * gjavah.c: Include . + (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP, + OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M, + OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros. + (options): New array. + (java_no_argument): Removed. + (help): Updated with missing options. + (main): Use getopt_long_only to parse command line. + (usage): Changed message. + +2000-02-01 Alexandre Petit-Bianco + + * java-tree.def (NEW_ANONYMOUS_ARRAY_EXPR): New tree code. + * parse.h (ANONYMOUS_ARRAY_BASE_TYPE, ANONYMOUS_ARRAY_DIMS_SIG, + ANONYMOUS_ARRAY_INITIALIZER): New access macros. + * parse.y (array_creation_expression:): Handle anonymous arrays. + (build_array_from_name): Don't set `ret_name' if null. + (resolve_qualified_expression_name): New case NEW_ANONYMOUS_ARRAY_EXPR. + (qualify_ambiguous_name): Likewise. + (java_complete_expand_class): Likewise. + +2000-02-01 Alexandre Petit-Bianco + + * java-tree.def (SYNCHRONIZED_EXPR): Fixed typo. + * parse.h (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID): New macro. + (MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STR): Likewise. + (SKIP_THIS_AND_ARTIFICIAL_PARMS): Use DECL_FINIT_P. + (AIPL_FUNCTION_FINIT_INVOCATION): Replaces + AIPL_FUNCTION_COMPLETED_INVOCATION. + (AIPL_FUNCTION_CTOR_INVOCATION): Replaces + AIPL_FUNCTION_INVOCATION_READY. + (AIPL_FUNCTION_DECLARATION): New enum entry. + * parse.y (reorder_static_initialized): New function. + (java_parser_context_pop_initialized_field): Use it. + (add_inner_class_fields): Use + MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID. Comment + augmented. Install marker after last alias initializer, if any. + (generate_finit): Fixed typo. Don't try to retain only the used + fields. + (method_header): Compute and set DECL_FUNCTION_NAP. + (method_declarator): Fixed comment. Insert alias initializer in + parameter list. + (build_alias_initializer_parameter_list): Fixed leading + comment. New case for AIPL_FUNCTION_DECLARATION. Old enum value + replaced by new ones. Use MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID. + (java_complete_expand_class): Code to retain only used aliases + removed. + (java_complete_expand_methods): New local `first_decl'. Generate + $finit$ first, then expand the constructors, regular methods and + . + (java_complete_expand_method): Don't report error on missing + return statement if previously detected bogus. + (fix_constructors): Don't patch constructor parameters list. + (patch_method_invocation): Use new AIPL enum values. Reverse + alias initializer list for anonymous classes. + +2000-01-30 Anthony Green + + * jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to + determine how many stack slots to pop. + +2000-01-29 Alexandre Petit-Bianco + + * parse.y (formal_parameter:): Set `$$' to NULL_TREE for better + error handling/recovery. + * java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment. + +2000-01-28 Alexandre Petit-Bianco + + * java-tree.h (ARG_FINAL_P, FIELD_LOCAL_ALIAS, + FIELD_LOCAL_ALIAS_USED): New macros. + (DECL_FUNCTION_NAP): New macro. + (struct lang_decl): New field `nap'. + (TYPE_FINIT_STMT_LIST, TYPE_CLINIT_STMT_LIST): New macros. + (struct lang_type): New fields `finit_stmt_list' and + `clinit_stmt_list'. + (CLASS_HAS_FINIT_P): Defined using TYPE_FINIT_STMT_LIST. + * parse.h (MANGLE_OUTER_LOCAL_VARIABLE_NAME): New macro. + (SKIP_THIS_AND_ARTIFICIAL_PARMS, MARK_FINAL_PARMS, + UNMARK_FINAL_PARMS, CRAFTED_PARAM_LIST_FIXUP): New macros. + (AIPL_FUNCTION_CREATION, AIPL_FUNCTION_COMPLETED_INVOCATION, + AIPL_FUNCTION_INVOCATION_READY): New enum fields. + (BUILD_THROW): Macro line separator re-indented. + * parse.y (end_class_declaration): New function. + (maybe_generate_pre_expand_clinit): New name for + java_pre_expand_clinit. Create off TYPE_CLINIT_STMT_LIST, + pre-expand static fields. + (maybe_generate_clinit): Function deleted. + (check_for_static_method_reference): Prototype's parameter list + indented. + (generate_finit): New name for maybe_generate_finit. Changed + leading comment. Function rewritten to use + TYPE_FINIT_STMT_LIST. Call build_alias_initializer_parameter_list. + (build_alias_initializer_parameter_list): New function. + (java_parser_context_pop_initialized_field): Likewise. + (add_inner_class_fields): Likewise. + (type_declaration:): Call end_class_declaration. + (class_member_declaration:): Likewise. + (formal_parameter_list:): Fixed typos. + (formal_parameter:): Use ARG_FINAL_P to mark created tree list + element. Improved error handling. + (block_statement:): Call end_class_declaration. + (anonymous_class_creation:): Likewise. + (create_anonymous_class): Fixed comments. + (create_class): Call add_inner_class_fields. + (register_fields): Set FIELD_LOCAL_ALIAS according to ARG_FINAL_P. + (method_header): Use MARK_FINAL_PARMS. + (finish_method_declaration): Use UNMARK_FINAL_PARMS. + (method_declarator): Propagate final argument flag. + (craft_constructor): New local `artificial'. Call + build_alias_initializer_parameter_list. Use + CRAFTED_PARAM_LIST_FIXUP, assign DECL_FUNCTION_NAP. + (source_start_java_method): Mark parm decls with LOCAL_FINAL if + necessary. + (complete_expand_class): Get rid of unused outer context local + alias fields. + (java_complete_expand_methods): Fixed leading + comment. Generate/pre-expand first. Changed method + expansion order to regular, $finit$, constructors, . + (java_complete_expand_method): Set current_function_decl. + (fix_constructors): Fix constructor parameter list to account for + outer context local alias initializers. + (verify_constructor_super): Use SKIP_THIS_AND_ARTIFICIAL_PARMS. + (resolve_expression_name): Lookup outer context local aliases. New + local `access', use it. + (patch_method_invocation): Patch inner class ctor invocation with + outer context local aliases initialization values. $finit$ + invocation patching now includes things generated with + build_alias_initializer_parameter_list. + (argument_types_convertible): Use SKIP_THIS_AND_ARTIFICIAL_PARMS. + (build_super_invocation): Likewise. + (patch_assignment): Changed comment. + +2000-01-27 Andrew Haley + + * jcf-write.c (emit_goto): RESERVE 3 bytes for insn. + (emit_if): Ditto. + (emit_jsr): Ditto. + +2000-01-25 Kaveh R. Ghazi + + * parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string + concatenation. + (OBSOLETE_MODIFIER_WARNING2): New macro allowing two args. + + * parse.y (register_fields): Don't pass a format specifier to + OBSOLETE_MODIFIER_WARNING. + (check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2 + instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format + specifier. + (check_modifiers): Change function into a macro. + (check_class_interface_creation): Pass a literal format string. + +2000-01-21 Kaveh R. Ghazi + + * buffer.h: PROTO -> PARAMS. + * check-init.c: Likewise. + * class.c: Likewise. + * constants.c: Likewise. + * convert.h: Likewise. + * decl.c: Likewise. + * except.c: Likewise. + * expr.c: Likewise. + * gjavah.c: Likewise. + * java-except.h: Likewise. + * java-tree.h: Likewise. + * jcf-depend.c: Likewise. + * jcf-dump.c: Likewise. + * jcf-parse.c: Likewise. + * jcf-path.c: Likewise. + * jcf-reader.c: Likewise. + * jcf-write.c: Likewise. + * jcf.h: Likewise. + * jv-scan.c: Likewise. + * jvgenmain.c: Likewise. + * jvspec.c: Likewise. + * lang.c: Likewise. + * lex.c: Likewise. + * lex.h: Likewise. + * parse-scan.y: Likewise. + * parse.h: Likewise. + * parse.y: Likewise. + * typeck.c: Likewise. + * verify.c: Likewise. + * xref.c: Likewise. + * xref.h: Likewise. + * zextract.c: Likewise. + * zipfile.h: Likewise. + +2000-01-18 Alexandre Petit-Bianco + + * class.c (make_class): Use MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC. + (is_compiled_class): Remove test on TYPE_LANG_SPECIFIC, use TYPE_JCF. + * constants.c (build_constant_data_ref): Check for cached + current_constant_pool_data_ref. Cache current_constant_pool_data_ref + in TYPE_CPOOL_DATE_REF. + * java-tree.h (TYPE_JCF, TYPE_CPOOL, TYPE_CPOOL_DATA_REF, + MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC:) New macros. + (struct lang_type): New fields `cpool' and `cpool_data_ref'. + (LOCAL_FINAL): New macro. + * jcf-parse.c (init_outgoing_cpool): Always allocate new outgoing + constant pool -- don't try to reuse. + (parse_zip_file_entries): Use TYPE_JCF, don't lazily allocate + TYPE_LANG_SPECIFIC. + (find_in_current_zip): Use TYPE_JCF. + * parse.h (java_check_final): Prototype removed. + * parse.y (create_class): Reversed Jan 12, 2000 extra argument patch. + (maybe_create_class_interface_decl, + check_class_interface_creation): Likewise. + (java_expand_finals): Function removed. + (class_declaration:): Reversed Jan 12, 2000 extra argument patch. + (block_statement:): Fixed comment. + (anonymous_class_creation:): Likewise. + (check_class_interface_creation): Reversed Jan 12, 2000 extra + argument patch. + (check_class_interface_creation): Loosened error report on (inner) + public class declarations. CPC_INNER_P replaces GET_CPC_LIST. + (link_nested_class_to_enclosing): Reversed Jan 12, 2000 patch. + (maybe_create_class_interface_decl): Reversed Jan 12, 2000 extra + argument patch. + (create_interface): Likewise. + (anonymous_class_counter): New static global. + (create_anonymous_class): Reversed Jan 12, 2000 extra argument + patch. Fixed comments. + (create_class): Reversed Jan 12, 2000 extra argument patch. Reset + anonymous_class_counter when declaring a toplevel class. + (craft_constructor): Fixed constructor name when handling + anonymous classes. Anonymous class constructors to feature hidden + this$ parameter. + (java_fix_constructors): Added comment. + (java_check_final): Function removed. + (java_complete_expand_methods): Fixed comment. Don't generate + class data, save its outgoing constant pool instead. + (verify_constructor_super): Skip anonymous class constructor + hidden this$ parameter. + (java_expand_classes): New local `saved_ctxp'. Removed call to + java_expand_finals and java_check_final. Expand anonymous class + constructors. Generate class data. + (build_super_invocation): Skip anonymous class hidden this$ + parameter. + * typeck.c (build_java_signature): Use TYPE_SIGNATURE and + MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC. + (set_java_signature): Likewise. + +2000-01-18 Joerg Brunsmann + + * gjavah.c: Delete ACC_VISIBILITY define. + * jcf.h: Add ACC_VISIBILITY define. + * parse.y: final: rule tagged . + (java_check_regular_methods): Use ACC_VISIBILITY define for + default package access check. + (local_variable_declaration_statement): Use final: rule. + +2000-01-17 Joerg Brunsmann + + * parse.y (format_parameter:): Use final: rule instead of modifiers:. + (final:): New rule. + +2000-01-17 Tom Tromey + + * gjavah.c (print_field_info): Allow non-static final fields. + +2000-01-14 Alexandre Petit-Bianco + + * parse.h (enum jdep_code): New entry `JDEP_ANONYMOUS'. + * parse.y (patch_anonymous_class): New function. + (create_anonymous_class): Register incomplete type when the + class/interface to extends/implement isn't known yet. + (parser_check_super_interface): Simplify argument to CLASS_INTERFACE. + (verify_constructor_super): Tuned error message. + +2000-01-14 Alexandre Petit-Bianco + + * java-tree.h (FOR_LOOP_P): Replaces IS_FOR_LOOP_P. + (ANONYMOUS_CLASS_P): New macro. + (TYPE_SIGNATURE, TYPE_JCF): New macros. + (INNER_CLASS_TYPE_P): Fixed typo in leading comment. + * parse.y (create_class): Added leading argument. + (maybe_create_class_interface_decl, + check_class_interface_creation): Likewise. + (craft_constructor): New function. + (verify_constructor_super): Added argument in prototype. + (class_declaration:): Inserted leading argument. + (for_begin:): Use FOR_LOOP_P. + (anonymous_class_creation): Create WFL of the anonymous class to + instantiate. Call build_new_invocation. Added comments. + (check_class_interface_creation): Handle parameter `anonymous' in + verbose mode class creation announce. + (link_nested_class_to_enclosing): Exclude anonymous classes. + (maybe_create_class_interface_decl): Don't set DECL_CONTEXT on + anonymous class, even though they appear to have an enclosing + context. + (create_interface): Pass extra argument to + check_class_interface_creation. + (create_anonymous_class): Set ANONYMOUS_CLASS_P to 1. + (create_class): Call check_class_interface_creation and + maybe_create_class_interface_decl with extra new argument. Don't + add private this$ to anonymous classes. + (method_declarator): Insert hidden this$ to anonymous class + constructors. + (java_fix_constructors): Deleted code creating default + constructor. Call craft_constructor instead. + (java_check_regular_methods): Set `saw_constructor' to 1 for + anonymous classes. + (fix_constructors): Pass extra argument to verify_constructor_super. + (verify_constructor_super): New local `sdecl', use it. Search for + matching constructor (possibly featuring arguments) in super + class. + (lookup_method_invoke): Craft constructor according to arguments + list when dealing with anonymous class constructors. + (build_super_invocation): Pass arguments to anonymous class super + constructors. + (search_loop): Use FOR_LOOP_P. + (labeled_block_contains_loop_p): Likewise. + +2000-01-12 Alexandre Petit-Bianco + + * class.c (set_super_info): Set CLASS_STATIC when appropriate. + (enclosing_context_p): New function. + (get_access_flags_from_decl): Handle CLASS_STATIC. + (maybe_layout_super_class): Extra first argument passed to + do_resolve_class. + (layout_class_method): Use ID_FINIT_P, DECL_CLINIT_P and + ID_INIT_P. + * decl.c (access0_identifier_node): New global. + (init_decl_processing): access0_identifier_node initialized. + (pushdecl): Set DECL_CONTEXT only on non type decls. + * expr.c (lookup_field): Lookup inner class fields in enclosing + contexts. + (expand_invoke): Use ID_INIT_P. + (expand_java_field_op): Use DECL_CLINIT_P. + * java-tree.def (CLASS_LITERAL): New tree code. + * java-tree.h (DECL_FUNCTION_ACCESS_DECL, + DECL_FUNCTION_INNER_ACCESS, FIELD_INNER_ACCESS): New macros. + (struct lang_decl): New field `inner_access'. + (enclosing_context_p): Prototyped. + (DECL_INIT_P, DECL_FINIT_P, DECL_CLINIT_P, ID_INIT_P, ID_FINIT_P, + ID_CLINIT_P): New macros. + (CLASS_STATIC): New macro. + (CLASS_ACCESS0_GENERATED_P): New macro. + (OUTER_FIELD_ACCESS_IDENTIFIER_P, INNER_CLASS_DECL_P, + TOPLEVEL_CLASS_DECL_P, INNER_CLASS_TYPE_P, TOPLEVEL_CLASS_TYPE_P, + INNER_CLASS_P): New macros. + (DECL_INNER_CLASS_LIST): New macro. + * jcf-parse.c (yyparse): Avoid the use of ANSI string + concatenation. + * jcf-write.c (generate_bytecode_insns): binop: Change the type of + the shift value to int. Fixed typo in comment. + * lex.c (inst_id, wpv_id): Initialize. + * mangle.c (unicode_mangling_length): Take `$' into account. + * parse.h (DRECOVER, RECOVER): Terminate properly. + (IDENTIFIER_INNER_CLASS_OUTER_FIELD_ACCESS): New macro. + (typedef struct _jdep): New field `enclosing'. + (JDEP_ENCLOSING): New macro. + (IS_CLINIT): Deleted (DECL_CLINIT_P replaces it.) + (struct parser_ctxt): New fields `marker_beginning', `marked_end'. + (GET_CPC_LIST, CPC_INNER_P, GET_CPC, GET_CPC_UN, GET_CPC_UN_MODE, + GET_CPC_DECL_NODE, GET_ENCLOSING_CPC, GET_NEXT_ENCLOSING_CPC, + GET_ENCLOSING_CPC_CONTEXT): New macros. + (PUSH_CPC, PUSH_ERROR, POP_CPC): New macros. + (do_resolve_class): Added extra argument in prototype. + * parse.y (resolve_class): Added extra argument in prototype. + (maybe_create_class_interface_decl): Likewise. + (maybe_use_access_method, build_wfl_wrap): New functions. + (java_complete_expand_classes, java_complete_expand_class): + Likewise. + (java_parser_context_push_initialized_field, + java_parser_context_suspend, java_parser_context_resume): + Likewise. + (maybe_make_nested_class_name, make_nested_class_name, + set_nested_class_simple_name_value, + link_nested_class_to_enclosing, find_as_inner_class, + find_as_inner_class_do, check_inner_class_redefinition, + build_thisn_assign, build_current_thisn, build_access_to_thisn, + maybe_build_thisn_access_method, build_outer_field_access, + build_outer_field_access_methods, build_outer_field_access_expr, + build_outer_method_access_method, build_new_access_id, + build_outer_field_access_method, outer_field_access_p, + outer_field_expanded_access_p, outer_field_access_fix, + build_incomplete_class_ref, patch_incomplete_class_ref, + create_anonymous_class): Likewise. + (inst_id, wpv_id): New static global variables. + (synchronized:): New rule, tagged . + (type_declaration:): No longer tagged . Call POP_CPC in sub + rules. + (anonymous_class_creation:): New rule, tagged . + (NEW_TK): Tagged . + (type_literals, array_type_literal): New rules, tagged . + (class_declaration:): Removed action when reducing by class_body: + (class_body:): Set DECL_END_SOURCE_LINE and rule's returned value + using GET_CPC in sub-rules. + (class_member_declaration): Handle inner classes. + (method_declaration): When reducing method_header:, reset + current_function_decl when appropriate. + (method_declarator:): Set the number of formal parameter to 0 for + method declared without arguments. + (constructor_declarator:): Likewise. + (static_initializer:): List of elements kept in a list. + (static:): Rule modifiers: replaces MODIFIER_TK. Enforce correct + use of the keyword `static' for type declarations. + (block_statement:): Handle inner class declarations. + (primary_no_new_array:): Use type_literals:. Fixed comment. Handle + type qualified `this'. + (class_instance_creation_expression): Use anonymous_class_creation: + to handle inner class instances creation. Handle qualified `new'. + (something_dot_new): Added appropriate actions. + (create_new_parser_context): New function. + (java_push_parser_context, java_parser_context_save_global, + java_parser_context_suspend): Use create_new_parser_context. + (check_modifiers): Changed leading comment. + (check_class_interface_creation): Handle interclasses. + (add_superinterfaces): Fixed comment. + (create_interface): Build qualified name from the raw_name instead + of its matching WFL. Push the initialized fields list. raw_name added + as an extra argument to maybe_create_class_interface_decl. + (create_class): Build qualified name from the raw_name instead of + its matching WFL. Removed assignment to current_parsed_class_un. + Call PUSH_ERROR before returning an error. Suspend the current + parser context when processing an inner class. Push the + initialized fields list. raw_name added as an extra argument to + maybe_create_class_interface_decl. Add the private this$ + field. + (duplicate_declaration_error_p): Use GET_CPC when calling find_field. + (register_fields): Get the class type from GET_CPC and handle + previous errors. Added code to handle the creation of static + fields in inner classes. Initialized fields initialization + statements kept in a list of lists. + (maybe_generate_finit): Initialized fields initialization + statements kept in a list of lists. Use GET_CPC. + (maybe_generate_clinit): Likewise. + (method_header): Use GET_CPC and GET_CPC_UN. + (parser_qualified_classname): Handle inner classes. + (register_incomplete_type): Set JDEP_ENCLOSING using GET_CPC. + (java_fix_constructors): Hide pointer to enclosing context + instance in constructor list when dealing with inner classes. + (jdep_resolve_class): Call resolve_class with extra first argument + JDEP_ENCLOSING. + (resolve_class): Add enclosing context as a first extra argument + to do_resolve_class. + (do_resolve_class): Call find_as_inner_class. Handle WFLs + properly. + (resolve_no_layout): Extra argument added to resolve_class + invocation. + (reset_method_name): Use DECL_CLINIT_P, DECL_FINIT_P. + (java_get_real_method_name): Use GET_CPC_UN. + (check_abstract_method_definitions): Use DECL_CLINIT_P. + (java_check_abstract_methods): Handle static method declared in + inner classes by an error. + (java_check_regular_methods): Use DECL_CLINIT_P. + (source_start_java_method): Also set DECL_MAX_LOCALS. + (create_artificial_method): Call java_parser_context_save_global + and java_parser_context_restore_global instead of saving/restoring + the context by hand. + (expand_start_java_method): Improved verbose mode message. + (java_complete_expand_methods): Fixed leading comment. Use + DECL_CLINIT_P. + (fix_constructors): Added assignment to this$ if necessary. + (java_expand_classes): Call java_complete_expand_classes instead + of java_complete_expand_methods. + (make_qualified_primary): Simplified. + (merge_qualified_name): Optimized for missing left or right parts. + (resolve_expression_name): Handle access to outer class fields from + interclasses. + (resolve_qualified_expression_name): New macro + RESTORE_THIS_AND_CURRENT_CLASS, used. Handle creation of inner + classes. Report error on non appropriate qualification of + `new'. Handle qualified `this'. + (not_accessible_p): Allow access to outer class private fields from + inner classes. + (patch_method_invocation): Handle method invocations through + access methods and inner class constructor invocations. + (find_applicable_accessible_methods_list): Search enclosing + contexts of an inner class. + (search_applicable_methods_list): Fixed typo. + (argument_types_convertible): Handle inner class constructors' + hidden outer context reference argument. + (qualify_ambiguous_name): Handle qualified `this'. + (java_complete_lhs): Handle use of field accessed through + artificial access methods in various cases of assignments. Handle + CLASS_LITERAL node. + (check_final_assignment): Use DECL_CLINIT_P. + (valid_ref_assignconv_cast_p): Handle the destination being an + enclosing context of the source. + (patch_unaryop): Handle use of field accessed through artificial + access methods. + (patch_return): Use DECL_CLINIT_P. + (patch_throw_statement): Use DECL_CLINIT_P. + (check_thrown_exceptions): Use DECL_FINIT_P and DECL_INIT_P. + * verify.c (verify_jvm_instructions): Use ID_CLINIT_P and + ID_INIT_P. + +2000-01-16 Anthony Green + + * parse.y (build_string_concatenation): Only use + StringBuffer(String) shortcut if String arg is constant. + +2000-01-12 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): binop: Change the type of + the shift value to int. Fixed typo in comment. + +2000-01-11 Mumit Khan + + * jcf-path.c: Delete PATH_SEPARATOR and DIR_SEPARATOR macros. + * jcf-write.c: Likewise. + * parse.y: Likewise. + * parse.c: Regenerate. + +2000-01-09 Anthony Green + + * jcf-write.c (generate_bytecode_insns): Emit invokeinterface + bytecodes in the correct order. + +2000-01-09 Kaveh R. Ghazi + + * Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS). + +2000-01-06 Anthony Green + + * expr.c (java_lang_expand_expr): Switch to permanent obstack + before building constant array decl. + +2000-01-06 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_conditional): Fixed indentation in + method invocation and typo in conditional expression. + (generate_bytecode_insns): COND_EXPR can be part of a binop. Issue + the appropriate NOTE_POP. + * parse.y (patch_binop): Shift value mask to feature the right + type. + +1999-12-30 Kaveh R. Ghazi + + * class.c (assume_compiled, assume_compiled_node): Add static + prototype. + (add_assume_compiled): Use xmalloc/xstrdup, not malloc/strdup. + + * jcf-dump.c (ARRAY_NEW_NUM): Cast long to int in switch. + + * jvgenmain.c (usage): Add static prototype with ATTRIBUTE_NORETURN. + + * parse.h (OBSOLETE_MODIFIER_WARNING): Rename parameter `modifier' + to `__modifier' to avoid stringifying it. + + * parse.y (verify_constructor_circularity): Don't call a variadic + function with a non-literal format string. + (java_check_abstract_methods): Move unreachable code inside + `continue' statement. + (lookup_method_invoke): Call xstrdup, not strdup. + + * expr.c (expand_java_field_op): Avoid the use of ANSI string + concatenation. + + * jcf-parse.c (yyparse): Likewise. + + * jv-scan.c (main): Likewise. + +1999-12-30 Kaveh R. Ghazi + + * parse.h (ABSTRACT_CHECK, JCONSTRUCTOR_CHECK, + ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, + ERROR_CAST_NEEDED_TO_INTEGRAL): Avoid the use of ANSI string + concatenation. + + * parse.y (synchronized, variable_redefinition_error, + check_class_interface_creation, create_interface, create_class, + method_header, finish_method_declaration, + check_modifiers_consistency, method_declarator, + complete_class_report_errors, check_abstract_method_definitions, + java_check_regular_methods, check_throws_clauses, + java_check_abstract_methods, read_import_dir, + check_pkg_class_access, declare_local_variables, fix_constructors, + cut_identifier_in_qualified, resolve_expression_name, + resolve_qualified_expression_name, patch_method_invocation, + java_complete_lhs, patch_assignment, try_builtin_assignconv, + patch_binop, patch_array_ref, patch_newarray, build_labeled_block, + patch_exit_expr, patch_exit_expr, patch_switch_statement, + patch_try_statement, patch_synchronized_statement, + patch_throw_statement, check_thrown_exceptions, + patch_conditional_expr): Likewise. + +1999-12-24 Alexandre Petit-Bianco + + * Makefile.in (LIBDEPS): Added gcc's errors.o + (../jcf-dump$(exeext):): Link with gcc's errors.o + (../gcjh$(exeext):): Likewise. + * expr.c (expand_java_NEW): Layout the entire target type instead of + laying out its methods only. + (lookup_field): Layout the class after having loaded it. + * java-tree.h (java_debug_context): Declared. + * jcf-io.c (toplev.h): Included. + (find_class): Removed assignment to jcf's outofsynch + field. Force source file to be read if newer than its matching + class file. Tweaked debug messages. + * jcf-parse.c (jcf_out_of_synch): Deleted. + (read_class): Call to jcf_out_of_synch removed. + * jcf.h (typedef struct JCF): Field `outofsynch' deleted. + (jcf_out_of_synch): Prototype deleted. + * parse.h (struct parser_ctxt): `minus_seen', `java_error_flag', + `deprecated' and `class_err': integer turned into bit-fields. + New bit-fields `saved_data_ctx' and `saved_data'. Fixed comments. + * parse.y (package_list): New global. + (package_declaration:): Record newly parsed package name. + (extra_ctxp_pushed_p): Static global deleted. + (java_parser_context_save_global): Create buffer context for the + purpose of saving globals, if necessary. + (java_parser_context_restore_global): Pop context pushed for the + purpose of saving globals, if necessary. + (java_debug_context_do): New prototype and function. + (java_debug_context): Likewise. + (do_resolve_class): Use already parsed package names to qualify + and lookup class candidate. + (java_pre_expand_clinit): Removed unnecessary local variable. + +1999-12-17 Tom Tromey + + * gjavah.c (decode_signature_piece): Print "::" in JArray<>. This + fixes PR gcj/119. + (process_file): Use `\n\' at end of each line in string. + +1999-12-16 Alexandre Petit-Bianco + + * expr.c (expand_invoke): Layout the loaded class before + attempting to use it. + (expand_java_field_op): Allow final field assignments to take + place in $finit$. + * typeck.c (convert): Return error_mark_node if expr is null. + +1999-12-14 Alexandre Petit-Bianco + + * class.c (class_depth): Return -1 if the class doesn't load + properly. + * expr.c (can_widen_reference_to): Check for errors during depth + computation and return 0 accordingly. + * jcf-parse.c (parse_source_file): Call java_fix_constructors to + create default constructors and add an other error check. + * parse.h (java_fix_constructors): Prototyped. + * parse.y (java_pre_expand_clinit): Likewise. + (build_super_invocation): Re-prototyped to feature one argument. + (java_check_circular_reference): Directly use `current'. + (java_fix_constructors): New function. + (java_check_regular_methods): Don't create default constructors + here, but abort if none were found. + (java_complete_expand_methods): Pre-process calling + java_pre_expand_clinit. + (java_pre_expand_clinit): New function. + (fix_constructors): build_super_invocation invoked with the + current method declaration as an argument. + (build_super_invocation): Use the context of the processed method + decl argument instead of current_class. + * typeck.c (lookup_java_method): Take WFLs in method names into + account. + +1999-12-14 Per Bothner + + * class.c (make_class_data): flag_keep_inline_functions to keep + private methods in the method array. + +1999-12-15 Anthony Green + + * check-init.c (check_init): Take into account both types of + `throw's when checking for uninitialized variables. + +1999-12-10 Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): Force conversion of array + dimensions to int_type_node, that's what runtime's ABI expects. + +1999-12-10 Alexandre Petit-Bianco + + * parse.h (EXPR_WFL_QUALIFICATION): Temporary uses the third + operand of a WFL, until the Java front-end gets fixed with regard + to Mark Mitchell's gcc/tree.h patch (1999-12-04.) + +1999-12-10 Andrew Haley + + * parse.h (BUILD_THROW): Add support for sjlj-exceptions. + decl.c (init_decl_processing): Add _Jv_Sjlj_Throw. + expr.c (build_java_athrow): Add support for sjlj-exceptions. + java-tree.h: Ditto. + jcf-write.c: Ditto. + +1999-12-08 Alexandre Petit-Bianco + + * expr.c (java_lang_expand_expr): Switch to permanent obstack + before calling expand_eh_region_start and expand_start_all_catch. + * except.c (expand_start_java_handler): Switch to permanent + obstack before calling expand_eh_region_start. + (expand_end_java_handler): Switch to permanent obstack before + calling expand_start_all_catch. + +1999-12-5 Anthony Green + + * decl.c (init_decl_processing): Mark throw_node as a noreturn + function with side effects. + (init_decl_processing): Mark all memory allocating DECLs with + DECL_IS_MALLOC. + +1999-12-01 Alexandre Petit-Bianco + + * except.c (expand_end_java_handler): Call + expand_resume_after_catch and end_catch_handler. + +1999-11-30 Anthony Green + + * verify.c (verify_jvm_instructions): Create new return label + chain if non existent (don't rely on the verified state of the jsr + target.) + +1999-11-30 Alexandre Petit-Bianco + + * jcf-write.c (generate_bytecode_insns): Fixed indentation for + COMPOUND_EXPR and FIX_TRUNC_EXPR cases. + + * parse.y (patch_assignment): Removed bogus final class test on + lhs when checking on whether to emit an ArrayStoreException runtime + check. + * expr.c (expand_java_arraystore): Likewise. + +1999-11-28 Anthony Green + + * decl.c (find_local_variable): Reuse single slot decls when + appropriate. + +1999-11-24 Alexandre Petit-Bianco + + * jcf-parse.c (saw_java_source): Global variable removed. + (read_class): Don't use `saw_java_source'. Added extra braces. + (yyparse): Code setting `saw_java_source' removed. + +1999-11-24 Mark Mitchell + + * except.c (emit_handlers): Zero catch_clauses after emitting them. + +1999-11-23 Alexandre Petit-Bianco + + * verify.c (merge_type_state): Non verified subroutines being + considered more than once to trigger passive type merge. + +1999-11-23 Alexandre Petit-Bianco + + * parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE + in case of error. Error message tuned. + +1999-11-21 Anthony Green + + * constants.c (find_methodref_index): Unwrap method names before + inserting them in the constant pool. + + * jcf-parse.c (jcf_parse): Display `interface' when appropriate. + + * class.c (assume_compiled_node): New typedef. + (assume_compiled_tree): New static data. + (find_assume_compiled_node): New function. + (add_assume_compiled): New function. + (assume_compiled): New function. + * class.c (make_class_data): Use assume_compiled. + (is_compiled_class): Use assume_compiled. + + * java-tree.h (add_assume_compiled): Declare. + + * lang.c (lang_decode_option): Parse new options. + +1999-11-17 Alexandre Petit-Bianco + + * class.c (layout_class): Always convert TYPE_SIZE_UNIT to + int_type_node: that's what `_Jv_AllocObject' expects. + +1999-11-11 Alexandre Petit-Bianco + + * parse.y (lookup_method_invoke): Use lang_printable_name to + reliably build the type name during error report. Fixes PR gcj/97. + +1999-11-09 Tom Tromey + + * jcf-path.c: Include . + (jcf_path_init): Search for libjava.zip. Fixes PR gcj/84. + (DIR_UP): New macro. + +1999-11-09 Alexandre Petit-Bianco + + * parse.y (source_end_java_method): Resume permanent allocation, + reversing Apr 27 1998 patch. + (patch_string_cst): Pop obstacks after having pushed the permanent + ones. + +1999-11-05 Tom Tromey + + * class.c (finish_class): Emit inlined methods if any native + methods exist in the class. Fixes PR gcj/85. + +1999-11-04 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Handle PLUS_EXPR. + (qualify_ambiguous_name): Likewise. + +1999-11-03 Godmar Back + + * typeck.c: (lookup_java_method): search all inherited + interfaces when looking up interface method. + +1999-11-01 Alexandre Petit-Bianco + + * parse.y (method_header:): Issue error message for rule `type + error'. + (synchronized:): Error report when not using synchronized. + +1999-11-01 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Prevent `this' from + being used before the superclass constructor has been called. + (complete_function_arguments): Use CALL_EXPLICIT_CONSTRUCTOR_P + instead of `CALL_THIS_CONSTRUCTOR_P'. + +1999-10-30 Todd T. Fries + + * check-init.c: Fix typo in comment. + +1999-10-29 Alexandre Petit-Bianco + + * class.c (add_method_1): Set DECL_INLINE to 1 for private, static + and final method. + +1999-10-29 Alexandre Petit-Bianco + + * parse.y (expression_statement:): Call function to report + improper invocation of a constructor. + (parse_ctor_invocation_error): New function. + +1999-10-26 Mark Mitchell + + * decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call + remember_end_note. + +1999-10-21 Tom Tromey + + * jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set + in generated `main'. + +1999-10-21 Alexandre Petit-Bianco + + * parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR. + (qualify_ambiguous_name): Likewise. + +1999-10-20 Alexandre Petit-Bianco + + * parse.y (java_complete_tree): fold_constant_for_init to work on + permanent_obstack. + (java_complete_lhs): Likewise. + (array_constructor_check_entry): Complete an initializer element + on permanent_obstack. + +1999-10-19 Tom Tromey + + * jcf-parse.c (parse_source_file): Call jcf_dependency_add_file. + From Mike Moreton . + +1999-10-15 Greg McGary + + * java-tree.h (flag_bounds_check): Remove extern decl. + * lang.c (flag_bounds_check): Remove global variable. + (lang_f_options): Remove "bounds-check" entry. + (lang_init_options): Default flag_bounds_check to "on". + +1999-10-14 Tom Tromey + + * jvgenmain.c (usage): New function. + (main): Use it. Also, handle `-D' options. + * jvspec.c (lang_specific_driver): Recognize -D. + (jvgenmain_spec): Added `%{D*}' to jvgenmain invocation. + + * jvspec.c (jvgenmain_spec): Use `%umain', not just `%u'. + +1999-10-14 Kaveh R. Ghazi + + * jcf-dump.c (print_constant, disassemble_method): Don't call a + variadic function with a non-literal format string. + + * parse-scan.y (report_main_declaration): Likewise. + + * parse.h (ERROR_CAST_NEEDED_TO_INTEGRAL): Likewise. + + * parse.y (read_import_dir, patch_assignment, patch_binop, + patch_array_ref): Likewise. + + * typeck.c (build_java_array_type): Likewise. + + * verify.c (verify_jvm_instructions): Likewise. + +1999-10-12 Alexandre Petit-Bianco + + * jcf-write.c (RELOCATION_VALUE_1): Fixed integer value from 0 to 1. + +1999-10-07 Anthony Green + + * jcf-write.c (generate_classfile): Use UNSAFE_PUTx in cases + where CHECK_PUT may fail for valid reasons. + + * jcf-write.c (UNSAFE_PUT1, UNSAFE_PUT2, UNSAFE_PUT3, + UNSAFE_PUTN): New macros. + +1999-10-04 Tom Tromey + + * lex.h (BUILD_OPERATOR2): Return ASSIGN_ANY_TK in `lite' case as + well. Fixes Java PR gcj/59. + * parse-scan.y (yyerror): Report errors. + +1999-09-24 Glenn Chambers + + * decl.c (insert_block): Remove unconditional `abort'. + +1999-09-24 Bernd Schmidt + + * decl.c (builtin_function): No longer static. New arg CLASS. Arg + FUNCTION_CODE now of type int. All callers changed. + Set the builtin's DECL_BUILT_IN_CLASS. + +1999-09-23 Tom Tromey + + * jvspec.c (lang_specific_driver): Don't read spec file if + -fsyntax-only given. + +1999-09-22 Tom Tromey + + * lang-specs.h: Added `%(jc1)' to the jc1 spec. + + * javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally. + (WORDS_TO_LONG): Likewise. + (WORDS_TO_DOUBLE): Likewise. + +1999-09-14 Alexandre Petit-Bianco + + * jcf-write.c (RELOCATION_VALUE_0): New macro. + (RELOCATION_VALUE_1): Likewise. + (emit_iinc, emit_reloc, push_constant1, push_constant2, + push_in_const, push_long_const): Prototyped. + (push_constant1): Argument `index' is of type HOST_WIDE_INT. + (push_constant2): Likewise. + (push_int_const): Cast find_constant1's integer arguments to `jword'. + (find_constant_wide): Cast find_constant2's integer arguments to + `jword'. + (find_constant_index): Cast find_constant2's and find_constant2's + integer arguments to `jword'. + (emit_pop): Argument `value' is of type HOST_WIDE_INT. + (emit_switch_reloc): Use RELOCATION_VALUE_0. + (emit_if): Use RELOCATION_VALUE_1. + (emit_goto): Likewise. + (emit_jsr): Likewise. + (generate_bytecode_insns): Use RELOCATION_VALUE_0. Cast second + argument to push_long_const to HOST_WIDE_INT. + +1999-09-15 Andreas Schwab + + * Makefile.in (parse.o): Depend on $(JAVA_TREE_H). + +1999-09-20 Nick Clifton + + * lang.c (lang_decode_option): Extend comment. + +1999-09-16 Alexandre Petit-Bianco + + * parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK + instead of fndecl. + +1999-09-16 Kaveh R. Ghazi + + * gjavah.c (get_field_name, print_method_info, print_include, + add_namelet): Use xmalloc, not malloc. + + * jcf-depend.c (add_entry): Likewise. Use xstrdup, not strdup. + (munge): Use xrealloc, not realloc, trust xrealloc to handle a + NULL pointer. + + * jcf-io.c (open_in_zip, find_class): Use xstrdup, not strdup. + + * jcf-parse.c (jcf_out_of_synch, yyparse): Likewise. + + * jcf-path.c (add_entry): Likewise. + + * jcf.h (ALLOC, REALLOC): Use xmalloc/xrealloc, not malloc/realloc. + + * jv-scan.c (xmalloc): Remove definition. + + * jvgenmain.c (xmalloc): Likewise. + + * jvspec.c (lang_specific_driver): Use xcalloc, not xmalloc/bzero. + + * lex.c (java_store_unicode): Use xrealloc, not realloc. + + * parse-scan.y: Use concat, not of xmalloc/assign/strcpy. Use + concat, not xmalloc/sprintf. + (java_push_parser_context): Use xcalloc, not xmalloc/bzero. + (xstrdup): Remove definition. + + * parse.y (duplicate_declaration_error_p, + constructor_circularity_msg, verify_constructor_circularity, + check_abstract_method_definitions, java_check_regular_methods, + java_check_abstract_methods, patch_method_invocation, + check_for_static_method_reference, patch_assignment, patch_binop, + patch_cast, array_constructor_check_entry, patch_return, + patch_conditional_expr): Use xstrdup, not strdup. + + * zextract.c (ALLOC): Use xmalloc, not malloc. + +1999-09-12 Kaveh R. Ghazi + + * Make-lang.in (jvspec.o): Depend on system.h and gcc.h. + + * jvspec.c: Include gcc.h. Don't include gansidecl.h. + (do_spec, lang_specific_pre_link, lang_specific_driver, + input_filename, input_filename_length): Don't declare. + (main_class_name, jvgenmain_spec, lang_specific_driver): + Constify a char*. + (lang_specific_driver): All calls to the function pointer + parameter now explicitly call `fatal'. + +1999-09-11 Alexandre Petit-Bianco + + * parse.y (find_applicable_accessible_methods_list): Search + abstract classes as interfaces. + +1999-09-09 Alexandre Petit-Bianco + + * class.c (finish_class): We're now outside a valid method + declaration. Tell the rest of gcc so. + +1999-09-08 Bruce Korb autogen@linuxbox.com + + * Makefile.in: Give the gperf user a hint about why "gperf -F" fails. + +1999-09-07 Tom Tromey + + * gjavah.c (add_class_decl): Generate include for gcj/array.h, not + java-array.h. + (decode_signature_piece): Don't emit "::" in JArray<>. + (print_namelet): Only print trailing `;' when printing a class. + +1999-09-10 Bernd Schmidt + + * java-tree.h: Delete declarations for all tree nodes now moved to + global_trees. + * decl.c: Delete their definitions. + +1999-09-04 Mark Mitchell + + * Make-lang.in (jc1): Depend on ggc-callbacks.o. + * Makefile.in (OBJS): Add ggc-callbacks.o. + (OBJDEPS): Likewise. + +1999-09-03 Tom Tromey + + * parse.y (strip_out_static_field_access_decl): Return operand if + it satisfies JDECL_P. + +1999-09-02 Tom Tromey + + * gjavah.c (decode_signature_piece): Emit "::" in JArray<>. + Handle nested arrays, like `[[I'. + +1999-09-02 Kaveh R. Ghazi + + * class.c (finish_class): Remove unused parameter, all callers + changed. + + * expr.c (build_java_athrow): Change return type to void. + (java_lang_expand_expr): Make sure each case in switch returns a + value. + + * java-tree.h (finish_class): Fix prototype to take void args. + + * jcf-dump.c (usage): Mark with ATTRIBUTE_NORETURN. + (main): Issue return from main, not exit. + + * jcf-parse.c (parse_class_file): Fix call to `finish_class'. + + * jcf.h (jcf_unexpected_eof): Mark with ATTRIBUTE_NORETURN. + + * jv-scan.c (main): Issue return from main, not exit. + + * parse.y (check_abstract_method_definitions, + java_check_abstract_method_definitions): Add static prototypes. + (java_complete_expand_methods): Fix call to `finish_class'. + + * verify.c (verify_jvm_instructions): Initialize variables `oldpc' + and `prevpc'. + +1999-08-30 Kaveh R. Ghazi + + * lang.c (language_string): Constify. + +1999-08-30 Kaveh R. Ghazi + + * Makefile.in (LIBS): Fix definition so we link with $(CLIB). + Remove hacks for stuff which comes from libiberty. + + * Make-lang.in: Likewise. + +1999-08-30 Hans-Peter Nilsson + + * Makefile.in (xref.o): Depend on xref.c explicitly. + +1999-08-29 Kaveh R. Ghazi + + * java-tree.h (lang_printable_name): Constify a char*. + + * lang.c (lang_printable_name): Likewise. + +1999-08-27 Jeffrey A Law (law@cygnus.com) + + * gjavah.c, jcf-write.c, verify.c: Do not use C++ style + comments in C code. + +1999-08-26 Tom Tromey + + * gjavah.c (print_cxx_classname): Print "::" before qualified + name. + +1999-08-26 Alexandre Petit-Bianco + + * parse.y (lookup_cl): Changed leading comment. Now does its best + to set the column number. + (qualify_ambiguous_name): Take WFL wrappers into account. + +1999-08-25 Gregg Townsend + + * verify.c (verify_jvm_instructions): Don't check instruction + validity beyond end of method. + +1999-08-25 Tom Tromey + + * jvspec.c (lang_specific_driver): Correctly handle --help again. + +1999-08-25 Kaveh R. Ghazi + + * gjavah.c (print_name, print_base_classname, utf8_cmp, + cxx_keyword_subst, generate_access, name_is_method_p, + get_field_name, print_field_name, super_class_name, print_include, + decode_signature_piece, print_class_decls, usage, help, + java_no_argument, version, add_namelet, print_namelet): Add static + prototype. + (print_base_classname, utf8_cmp, cxx_keyword_subst, + name_is_method_p): Constify a char*. + (get_field_name): Likewise. Prefer xstrdup over malloc/strcpy. + Provide a final else clause in an if-else-if. + (print_field_info): Add missing final arg in function call to + `print_field_name'. + (print_method_info, decompile_method, decode_signature_piece, + print_c_decl, print_full_cxx_name, print_stub, + print_mangled_classname, super_class_name, print_include, + add_namelet, add_class_decl, print_class_decls, process_file, + help): Constify a char*. + + * jcf-write.c (jcf_handler, push_constant1, push_constant2, + push_int_const, find_constant_wide, find_constant_index, + push_long_const, field_op, maybe_wide, emit_dup, emit_pop, + emit_iinc, emit_load_or_store, emit_load, emit_store, emit_unop, + emit_binop, emit_reloc, emit_switch_reloc, emit_case_reloc, + emit_if, emit_goto, emit_jsr, call_cleanups, + make_class_file_name): Add static prototypes. + (generate_bytecode_return, generate_bytecode_insns): Pass a + NULL_PTR, not a NULL_TREE. + + * jv-scan.c: Include "jcf.h". + (main): Declare using DEFUN macro. + + * jvspec.c (find_spec_file, lang_specific_pre_link, + lang_specific_driver): Add prototypes. + (find_spec_file): Constify a char*. + + * keyword.gperf (hash, java_keyword): Add prototypes. + + * lang.c (lang_print_error): Add static prototype. + (lang_init): Prefer memcpy over bcopy to avoid casts. + + * lex.c (yylex): Add static prototype. + + * parse-scan.y: Include "lex.c" earlier. + + * parse.h: Remove redundant declaration for `yylex'. + + * parse.y (java_decl_equiv, binop_compound_p, search_loop, + labeled_block_contains_loop_p): Add static prototypes. + (not_accessible_p): Make static to match prototype. + + * verify.c (start_pc_cmp): Don't needlessly cast away const. + +1999-08-22 Alexandre Petit-Bianco + + * parse.y (check_method_redefinition): Changed leading comment. + (check_abstract_method_definitions): New function. + (java_check_abstract_method_definitions): New function. + (java_check_regular_methods): Call it. + (verify_constructor_super): Fixed indentation. + (lookup_method_invoke): Likewise. + +1999-08-19 Alexandre Petit-Bianco + + * parse.y (method_header): Return a null pointer if the current + class node is null. + (finish_method_declaration): Return if the current function decl + is null. + (source_start_java_method): Likewise. + (java_method_add_stmt): Likewise. + +1999-08-18 Alexandre Petit-Bianco + + * class.c (emit_register_class): Removed unnecessary call to + start_sequence. + * parse.y (labeled_block_contains_loop_p): Removed unused local + variable. + +1999-08-17 Alexandre Petit-Bianco + + * parse.y (java_refold): Added prototype. + +1999-08-17 Alexandre Petit-Bianco + + * parse.y (BINOP_COMPOUND_CANDIDATES): New macro. + (java_stabilize_reference): Removed unnecessary `else'. + (java_complete_lhs): Set flag to remember boolean. Call + java_refold. Added comments. + (java_decl_equiv): New function. + (binop_compound_p): Likewise. + (java_refold): Likewise. + (patch_unaryop): Striped static field access assigned to decl and + op. Changed promotion scheme for ++/-- operators. + (search_loop): New function. + (labeled_block_contains_loop_p): Likewise. + (patch_loop_statement): Call labeled_block_contains_loop_p. Added + comment. + (patch_bc_statement): Call search_loop. Fixed comment. + +1999-08-14 Anthony Green + + * expr.c (java_lang_expand_expr): Mark static array data as + referenced. + +1999-08-10 Rainer Orth + + * jvgenmain.c (main): NUL-terminate name_obstack. + +1999-08-10 Kaveh R. Ghazi + + * check-init.c (check_bool2_init, done_alternative): Add static + prototypes. + + * class.c (add_interface_do, maybe_layout_super_class): Likewise. + (add_method, build_utf8_ref, build_class_ref, + append_gpp_mangled_type, layout_class_method): Constify a char*. + + * decl.c (push_promoted_type, make_binding_level): Add static + prototypes. + (push_promoted_type, pushdecl): Constify a char*. + + * except.c (find_handler_in_range, link_handler, + check_start_handlers): Add static prototypes. + + * expr.c (process_jvm_instruction): Constify a char*. + + * gjavah.c (main): Constify a char*. + + * java-tree.h (verify_jvm_instructions, process_jvm_instruction): + Constify a char*. + + * jcf-depend.c (free_entry, add_entry, munge, print_ents): Add + static prototypes. + (add_entry, jcf_dependency_set_target, jcf_dependency_add_target, + munge, print_ents): Constify a char*. + + * jcf-dump.c (disassemble_method): Constify a char*. + (print_constant_pool, print_exception_table): Add static prototypes. + (print_constant, print_exception_table, main, disassemble_method): + Constify a char*. + + * jcf-io.c (find_classfile, find_class): Likewise. + + * jcf-parse.c (JPOOL_UTF_DATA, find_in_current_zip): Likewise. + (set_source_filename, predefined_filename_p): Add static prototypes. + (set_source_filename, get_constant, get_class_constant, + find_in_current_zip): Constify a char*. + + * jcf-path.c (free_entry, append_entry, add_entry, add_path): Add + static prototypes. + (add_entry, add_path, jcf_path_classpath_arg, + jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. + + * jcf-reader.c (get_attribute, jcf_parse_preamble, + jcf_parse_constant_pool, jcf_parse_class, jcf_parse_fields, + jcf_parse_one_method, jcf_parse_methods, + jcf_parse_final_attributes): Add static prototypes. + (get_attribute): Constify a char*. + + * jcf.h (find_class, find_classfile, jcf_dependency_set_target, + jcf_dependency_add_target, jcf_path_classpath_arg, + jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. + + * jv-scan.c (main): Constify a char*. + (gcc_obstack_init): Add prototype arguments. + + * jvgenmain.c (gcc_obstack_init): Likewise. + (main): Constify a char*. + + * lang.c (put_decl_string, put_decl_node, java_dummy_print): Add + static prototypes. + (put_decl_string, lang_print_error): Constify a char*. + (lang_init): Remove redundant extern prototype. + + * mangle.c (emit_unicode_mangled_name): Constify a char*. + + * typeck.c (convert_ieee_real_to_integer, parse_signature_type): + Add static prototypes. + (get_type_from_signature): Constify a char*. + + * verify.c (check_pending_block, type_stack_dup, start_pc_cmp ): + Add static prototypes. + (start_pc_cmp): Prefer PTR over GENERIC_PTR. + (verify_jvm_instructions): Constify a char*. + + * xref.c (xref_flag_value): Likewise. + + * xref.h (xref_flag_value): Likewise. + + * zextract.c (makeword, makelong): Add static prototypes. + (makeword, makelong): Constify a uch*. + +1999-08-09 Kaveh R. Ghazi + + * lang.c (java_dummy_print): Constify a char*. + (lang_print_error): Likewise. + (lang_init): Remove redundant prototype for `print_error_function'. + (lang_init_source): Likewise. + (lang_identify): Constify a char*. + +1999-08-09 Tom Tromey + + * javaop.h (WORD_TO_FLOAT): only inline if building with gcc. + (WORDS_TO_LONG): Likewise. + (WORDS_TO_DOUBLE): Likewise. + +1999-08-04 Kaveh R. Ghazi + + * Makefile.in (lang.o): Depend on $(RTL_H) $(EXPR_H). + + * expr.c (java_stack_pop, java_array_data_offset, + build_java_throw_out_of_bounds_exception, case_identity, + build_java_check_indexed_type): Add static prototypes. + (linenumber_table, expand_invoke, expand_java_field_op, + build_primtype_type_ref, expand_byte_code): Constify a char*. + + * java-tree.h (build_primtype_type_ref, linenumber_table): + Constify a char*. + (java_lang_expand_expr): Add prototype. + + * lang.c: Include rtl.h and expr.h. Remove extern prototype for + `java_lang_expand_expr'. + + * lex.c (java_lex_error): Constify a char*. + (java_get_unicode, java_read_char, java_allocate_new_line, + java_unget_unicode, java_sneak_unicode): Prototype. + + * parse-scan.y (current_class, package_name, method_declarator, + report_class_declaration, yyerror): Constify a char*. + + * parse.h (java_report_errors): Prototype. + (yyerror): Constify a char*. + + * parse.y (classitf_redefinition_error, check_modifiers, + parse_jdk1_1_error, lookup_package_type, + lookup_package_type_and_set_next, get_printable_method_name, + purify_type_name): Constify a char*. + (build_super_invocation, maybe_generate_finit, + verify_constructor_super, parser_add_interface, + add_superinterfaces, jdep_resolve_class, note_possible_classname, + java_complete_expand_methods, java_expand_finals, + cut_identifier_in_qualified, java_stabilize_reference, + do_unary_numeric_promotion, operator_string, do_merge_string_cste, + merge_string_cste): Prototype. + (single_type_import_declaration, yyerror, + variable_redefinition_error, build_array_from_name, + build_unresolved_array_type, check_class_interface_creation, + resolve_class, complete_class_report_errors, + note_possible_classname, read_import_dir, + find_in_imports_on_demand, resolve_package, fix_constructors, + check_deprecation, lookup_method_invoke, + maybe_build_primttype_type_ref, array_constructor_check_entry): + Constify a char*. + (java_complete_expand_methods, java_expand_finals): Make static. + (convert_narrow): Remove static prototype. + +1999-08-03 J"orn Rennecke + + * Makefile.in (decl.o): Depends on $(srcdir)/../defaults.h. + +1999-08-02 Richard Henderson + + * decl.c: Include defaults.h instead of expr.h. + * parse.y: Likewise. + +1999-08-02 Jakub Jelinek + + * java/decl.c (start_java_method): Change all uses of + PROMOTE_PROTOTYPES, so that it tests it as a C expression. + Ensure expr.h is included. + * java/expr.c (pop_arguments): Ditto. + * java/parse.y (expand_start_java_method): Ditto. + +1999-08-01 Kaveh R. Ghazi + + * Makefile.in (ALL_CFLAGS): Add '-W -Wall'. + +1999-07-31 Bernd Schmidt + + * decl.c: Include "function.h". + * except.c: Likewise. + * parse.y: Likewise. + * Makefile.in: Update dependencies. + +1999-07-30 Kaveh R. Ghazi + + * expr.c (build_java_soft_divmod): Provide a default case in switch. + (java_lang_expand_expr): Mark parameters `target', `tmode' and + `modifier' with ATTRIBUTE_UNUSED. + + * gjavah.c (process_file): Add braces around ambiguous `else'. + + * jcf-dump.c (print_access_flags, localvar_free): Change return + type to void. + + * parse.y (java_complete_expand_method): Initialize variable + `exception_copy'. + (resolve_qualified_expression_name): Likewise for `field_decl'. + (patch_method_invocation): Likewise for `class_to_search'. + (qualify_ambiguous_name): Likewise for `name' and `ptr_type'. + (patch_assignment): Likewise for `lhs_type'. + + * verify.c (verify_jvm_instructions): Remove unused variable + `caller'. + +1999-07-25 Richard Henderson + + * decl.c (va_list_type_node): New. + +1999-07-25 Anthony Green + + * gjavah.c (print_stub): New function. + (METHOD_IS_NATIVE): New macro. + (print_mangled_classname): Make static. + (HANDLE_END_FIELD): Don't emit fields during stub generation. + (process_file): Perform stub generation. + (HANDLE_METHOD): Don't emit class decls during stub + generation. + (HANDLE_END_METHOD): Take into account stub generation. + (print_method_info): Handle stub generation. + (print_stub): New function. + (print_cxx_classname): Make signature consistant with others. + (help): Describe -stubs option. + (main): Create stub file. + (version): Use version.c. + (print_full_cxx_name): New function. + (print_c_decl): Use print_full_cxx_name. + +1999-07-22 Alexandre Petit-Bianco + + * check-init.c (check_init): Handle MAX_EXPR. + +1999-07-15 Andrew Haley + + * lang.c (flag_use_divide_subroutine): New variable. + * typeck.c: (convert_ieee_real_to_integer): Bounds check + fp-to-integer conversion. + (convert): Call convert_ieee_real_to_integer when flag_fast_math + is not set. + + * expr.c (build_java_soft_divmod): New function. + (build_java_binop): Call build_java_soft_divmod if + flag_use_divide_subroutine is set. + * decl.c: soft_idiv_node, soft_irem_node, soft_ldiv_node, tree + soft_lrem_node: new builtin functions. + (init_decl_processing) Initialize the new builtins. + * java-tree.h soft_idiv_node, soft_irem_node, soft_ldiv_node, tree + soft_lrem_node: new builtin functions. + (build_java_soft_divmod): New function. + * parse.y: Call build_java_soft_divmod if + flag_use_divide_subroutine is set. + * parse.c: Rebuilt. + + * jvspec.c (lang_specific_driver): Always allow an extra arg (for + a --specs= arg) even if not linking. + * lang-options.h (DEFINE_LANG_NAME ("Java")): Add + -fuse-divide-subroutine + +1999-07-20 Alexandre Petit-Bianco + + * parse.y (resolve_and_layout): Check methods only once. + (resolve_qualified_expression_name): Verify thrown exceptions + compatibility. + (check_thrown_exceptions): Reject exceptions thrown in + initializer. Error message tuned. + +1999-07-14 Andrew Haley + + * expr.c (expand_expr): Do not return the last statement in a + block as the block's value. + +1999-07-03 Alexandre Petit-Bianco + + * expr.c (force_evaluation_order): Save the COMPOUND_EXPR'ed + CALL_EXPR, to avoid order of evaluation changes. + +1999-07-02 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Do not use + IDENTIFIER_LOCAL_VALUE when name is a STRING_CST. + +1999-07-01 Alexandre Petit-Bianco + + * check-init.c (check_init): Handle MAX_EXPR. + * expr.c (force_evaluation_order): Force method call arguments to + be evaluated in left-to-right order. + * parse.y (qualify_ambiguous_name): Loop again to qualify + NEW_ARRAY_EXPR properly. + +1999-06-30 Alexandre Petit-Bianco + + * parse.y (patch_invoke): Resolve unresolved invoked method + returned type. + (qualify_ambiguous_name): STRING_CST to qualify expression for + type name resolution. + +1999-06-24 Andrew Haley + + * class.c (finish_class): Whenever a deferred method is + output, rescan the list of methods to see if a new candidate for + output can be found. + +1999-06-28 Tom Tromey + + * jvspec.c (lang_specific_driver): Recognize --help. + +1999-06-25 Alexandre Petit-Bianco + + * parse.y (resolve_package): Fixed bogus return statement. + (patch_method_invocation): Resolve method invocation beginning with + a package name qualifier. + +1999-06-25 Kaveh R. Ghazi + + * Make-lang.in (java.stage1): Depend on stage1-start. + (java.stage2): Likewise for stage2-start. + (java.stage3): Likewise for stage3-start. + (java.stage4): Likewise for stage4-start. + +1999-06-24 Alexandre Petit-Bianco + + * parse.y (java_complete_lhs): When doing cross referencing, don't + try to keep file location on a WFL expanded as a CALL_EXPR. + +1999-06-23 Alexandre Petit-Bianco + + * parse.y (finish_method_declaration): Insert a RETURN_EXPR when + compiling to class file a void method with an empty method body. + As a side effect, the bytecode backend will generate the + appropriate `return' instruction. + +1999-06-22 Alexandre Petit-Bianco + + * parse.y (lookup_package_type_and_set_next): New function prototype. + (resolve_package): Search current and imported packages. + (lookup_package_type_and_set_next): New function. + +1999-06-22 Andrew Haley + + * verify.c (verify_jvm_instructions): Check for pending blocks + before invalid PC test and opcode switch, not after. + +1999-06-21 Andrew Haley + + * except.c (find_handler_in_range): The upper limit for exception + ranges is exclusive, not inclusive: (start <= pc < end). + (link_handler): find child pointer which points to outer by + searching sibling list: previous code incorrectly assumed that + outer->outer->first_child must point to outer. + * verify.c (verify_jvm_instructions): FIXME added to code for + `athrow'. + (verify_jvm_instructions): Do not assume that the last block + processed in a subroutine is a block which ends with a `ret' + instruction. With some control flows it is possible that the last + block ends with an `athrow'. + +1999-06-14 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Reorganized the post + evaluation of non WFL leading expression nodes. + +1999-06-11 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Handle ARRAY_REF after + CONVERT_EXPR. + +1999-06-10 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Handle qualified expression + beginning with a STRING_CST. + +1999-06-10 Alexandre Petit-Bianco + + * parse.y (register_fields): Set DECL_INITIAL on both + pre-initialized static and public fields. + (resolve_field_access): Static field access expressions to always + use pointer types. + (qualify_ambiguous_name): Work out buried CALL_EXPR for proper + qualification. CONVERT_EXPR to be resolved as an expression name. + (java_complete_lhs): Identify and access qualified final + initialized field in switch statement case expression. + (fold_constant_for_init): Pre-initialized field decl constant to + be folded. + +1999-06-07 Alexandre Petit-Bianco + + * parse.y (note_possible_classname): Mark returned node with + QUALIFIED_P only if the original class name contained a '/'. + +1999-06-05 Anthony Green + + * Make-lang.in (gcjh): More parallel build fixes. + +1999-06-03 Mike Stump + + * Make-lang.in (JCF_DUMP_SOURCES, jvgenmain): Fix parallel builds. + +1999-06-02 Anthony Green + + * except.c (link_handler): Chain exception handlers in order. + +1999-06-02 Anthony Green + + * expr.c (expand_byte_code): Fill unreachable bytecode regions + with nops and process as usual in order to always set correct EH + ranges. Emit detailed warnings about unreachable bytecodes. + +1999-06-02 Anthony Green + + * class.c (build_utf8_ref): Mark cinit and utf8 tree nodes as + constant. + +1999-05-28 Alexandre Petit-Bianco + + * parse.y (lookup_field_wrapper): Unified returned value to NULL + or the searched field decl. + +1999-05-28 Alexandre Petit-Bianco + + * parse.y (fold_constant_for_init): Convert numerical constant + values to the type of the assigned field. + +1999-05-27 Alexandre Petit-Bianco + + * expr.c (lookup_field): Relaxed the test on class loading error + detection. + * parse.y (fold_constant_for_init): Enabeled old code. + +1999-05-26 Alexandre Petit-Bianco + + * parse.y (valid_ref_assignconv_cast_p): Let `_Jv_CheckCast' + decide the validity of the cast of a java.lang.Cloneable reference + to an array. + (patch_conditional_expr): Fixed first argument passed to + binary_numeric_promotion. + +1999-05-26 Alexandre Petit-Bianco + + * parse.y (qualify_ambiguous_name): Take into account that a + CONVERT_EXPR might specify a type as a WFL. + +1999-05-25 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Save the rhs before using it as an + argument to _Jv_CheckArrayStore. + +1999-05-25 Alexandre Petit-Bianco + + * lex.c (java_parse_doc_section): Fixed `tag' buffer size. + +1999-05-24 Alexandre Petit-Bianco + + * lex.c (java_lex): Accepts `+' or `-' after the beginning of a + floating point literal only when the exponent indicator has been + parsed. + +1999-05-22 Alexandre Petit-Bianco + + * parse.y (formal_parameter:): Construct argument tree list + element even if a yet unsupported final parameter was encountered. + +1999-05-18 Alexandre Petit-Bianco + + * parse.y (finish_method_declaration): Issue errors for native or + abstract methods declared with a method body, as well as for non + native or non abstract methods with no method body. + +1999-05-19 Kaveh R. Ghazi + + * class.c (build_utf8_ref): Initialize variable `field'. + + * decl.c (init_decl_processing): Initialize variable `field'. + + * expr.c (build_known_method_ref): Mark parameters `method_type', + `method_signature' and `arg_list' with ATTRIBUTE_UNUSED. + (process_jvm_instruction): Likewise for parameter `length'. + + * jvspec.c (lang_specific_driver): Mark variables `saw_math', + `saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with + ATTRIBUTE_UNUSED. + + * parse.y (maybe_generate_clinit): Remove unused variable + `has_non_primitive_fields'. + (find_in_imports_on_demand): Initialize variables `node_to_use' + and `cl'. + (patch_binop): Likewise for variable `prom_type'. + (patch_unaryop): Likewise for variable `prom_type'. + + * verify.c (verify_jvm_instructions): Likewise for variable `last'. + + * xref.c (xref_table): Add missing initializer. + +1999-05-14 Tom Tromey + + * java-except.h (struct eh_range): Removed unused `next' member. + * verify.c (verify_jvm_instructions): Call check_nested_ranges + after adding all exception handlers. Sort exception ranges in + order of start PC. + (struct pc_index): New structure. + (start_pc_cmp): New function. + * except.c (add_handler): Return `void'. Don't call link_handler; + instead construct an ordinary linked list and do range + coalescing. + (check_nested_ranges): New function. + (link_handler): Changed interface to allow merging of eh_ranges. + Split overlapping ranges. Return `void'. + +1999-05-17 Alexandre Petit-Bianco + + * parse.y (constructor_block_end:): New rule, tagged . + (constructor_body:): Use `constructor_block_end' instead of + `block_end'. + +1999-05-17 Alexandre Petit-Bianco + + * parse.y (statement_nsi:): Pop `for' statement block. + (java_complete_lhs): Labeled blocks containing no statement are + marked as completing normally. + +1999-05-14 Alexandre Petit-Bianco + + * xref.c (xref_set_current_fp): New function, defined. + * xref.h (xref_set_current_fp): New function, prototyped. + +1999-05-14 Alexandre Petit-Bianco + + * check-init.c (check_init): Take into account that + LABELED_BLOCK_STMT can be empty. + +1999-05-13 Alexandre Petit-Bianco + + * parse.y (java_check_regular_methods): Warning check on not + overriding methods with default access in other packages does not + apply to `'. + (java_complete_lhs): If block body is an empty_stmt_node, replace + it by NULL_TREE. This prevents gcc from generating an irrelevant + warning. + +1999-05-13 Alexandre Petit-Bianco + + * check-init.c (check_init): Removed code accepting to see things + falling through default:, when doing xrefs. + * java-tree.h (do_not_fold): New global variable, declared. + * parse.y (do_not_fold): New global variable, defined. + (java_complete_expand_method): Set `do_not_fold' to the value of + `flag_emit_xref'. When doing xrefs: copy the thrown exceptions, + and reinstall them after them have been purged; do not check for + initializations; do not issue missing return errors. + (java_complete_lhs): Do not attempt to patch INSTANCEOF_EXPR nodes + when doing xrefs. + (patch_binop): Skip the fold part when doing xrefs. + (build_string_concatenation): Skip the concatenation part when + doing xrefs. + (patch_synchronized_statement): Do not generate a try-finally when + doing xrefs. + (patch_throw_statement): When doing xrefs, do not call BUILD_THROW + and keep the location where the throw was seen. + * typeck.c (convert): When `do_not_fold' is set, do not attempt + any treatment on the converted node an simply return a NOP_EXPR of + the targeted type. + * xref.c (xref_get_data): New function, defined. + * xref.h (xref_get_data): New function, declared. + (XREF_GET_DATA): Use xref_get_data. + +1999-05-13 Kaveh R. Ghazi + + * gjavah.c (print_include): Cast the result of `strlen' to int + when comparing against a signed value. + (add_namelet): Likewise. + +1999-05-12 Kaveh R. Ghazi + + * expr.c (expand_invoke): Mark parameter `nargs' with + ATTRIBUTE_UNUSED. + (PRE_LOOKUP_SWITCH): Likewise for variable `match'. + + * jcf-io.c (jcf_unexpected_eof): Mark parameter `count' with + ATTRIBUTE_UNUSED. + + * jcf-reader.c (get_attribute): Cast a value to long + when comparing against a signed expression. Likewise. + + * lex.h: Never define HOST_WIDE_INT, HOST_BITS_PER_WIDE_INT or + HOST_BITS_PER_CHAR. + +1999-05-11 Andrew Haley + + * parse.y (source_end_java_method): If the current method contains + any exception handlers, force asynchronous_exceptions: this is + necessary because signal handlers in libjava may throw exceptions. + * decl.c (end_java_method): Ditto. + +1999-05-11 Tom Tromey + + * Make-lang.in (jvspec.o): Don't define WITH_THREAD_x or WITH_GC_x + flags. + * jvspec.c (THREAD_NAME): Removed. + (GC_NAME): Likewise. + (MATHLIB): Likewise. + (WITHLIBC): Likewise. + (GCLIB): Likewise. + (THREADLIB): Likewise. + (MATH_LIBRARY): Likewise. + (lang_specific_driver): Don't add `-l' options to command line. + Instead, add a single --specs option. Recognize `-L' options and + use them to search for spec file. + (find_spec_file): New function. + (SPEC_FILE): New define. + +1999-05-11 Dave Brolley + + * lang-options.h: -MD, -MMD, -M and -MM not needed here for + cpplib-enabled build. + +1999-05-05 Per Bothner + + * class.c (make_field_value): DECL_INITIAL may be a string literal; + temporarily zero it while calling rest_of_decl_compilation. + + * java-tree.h (string_ptr_type_node): Add declaration. + * decl.c: Define and initialize string_ptr_type_node. + * parse.y (patch_string_cst): Use string_ptr_type_node. + + * parse.h (LOOP_HAS_LABEL_P, LOOP_HAS_LABEL_SKIP_P): Removed. + * parse.y (for_statement): Now unconditionally exit_block. + (finish_labeled_statement): No longer exit_block if for-loop. + (patch_loop_statement): Check harder if the loop is already labeled. + + * parse.y (patch_initialized_static_field): Removed function. + (maybe_generate_clinit): Removed special handling for interfaces. + (java_complete_expand_methods): Do a preliminary java_complete_tree + on to determine if it can be removed. + (java_complete_expand_method): Remove special handling for . + (java_complete_lhs): For BLOCK and EXPR_WITH_FILE_LOCATION + optimize if we get back empty_stmt_node. + For MODIFY_EXPR, re-do checking of static initializers. + (fold_constant_for_init): Don't return immediate if VAR_DECL. + For VAR_DECL, pass correct context. + + * verify.c (verify_jvm_instructions): Better error messages. + +1999-05-03 Tom Tromey + + * parse-scan.y (interface_declaration): Call + report_class_declaration for interfaces. + +1999-04-30 20:54 -0400 Zack Weinberg + + * Makefile.in: Remove -v from bison command lines. + +1999-04-30 Alexandre Petit-Bianco + + * check-init.c (check_init): Exclude a case of error when doing + xrefs. + * class.c (layout_class_method): Don't generate the error message + twice when compiling from source. + * lang-options.h: Added `-Wredundant-modifers' and + `-Wunusupported-jdk11' flags and help text. + * lang.c (lang_decode_option): Added support for + `-Wunsupported-jdk11' and `-Wredundant-modifiers'. + flag_static_local_jdk11 and flag_redundant set accordingly. + * lex.c (java_lex): Call BUILD_OPERATOR on CCB_TK. + * parse.h (EXPR_WFL_ADD_COL): New macro. + (DECL_END_SOURCE_LINE): Likewise. + (DECL_INHERITED_SOURCE_LINE): Likewise. + * parse.y (static_ref_err): New function, prototyped. + (CCB_TK): Now tagged . + (class_body:): Remember the location of the closing '}' of a class + definition when doing xrefs. + (block:): Likewise. + (block_end:): Likewise. + (create_class): Remember the location of the inherited class + identifier when doing xrefs. + (register_fields): Added test on first operand of `init' before + testing it TREE_CODE. + (method_header): Store the location of the class identifier in the + class decl when doing xrefs. + (finish_method_declaration): Don't combine first/last method line + when doing xref. + (java_check_regular_methods): Warning check on not overriding + methods with default access on other packages move before check on + static methods. Initialization of `aflags' also moved up. + (resolve_expression_name): Call static_ref_err to report the error. + (static_ref_err): New function, implemented. + (resolve_field_access): Returned simplified static field access + when doing xrefs. + (resolve_qualified_expression_name): Check for illegal use of + static fields in a non static context. Call static_ref_err to + report error in various places. + (java_complete_tree): Do not fold initialized static fields when + doing xrefs. + (java_complete_lhs): Likewise. + +1999-04-29 Anthony Green + + * expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to + create internal labels. + (lookup_label): Ditto. + +1999-04-24 Alexandre Petit-Bianco + + * class.c (layout_class_method): Generate 's rtl for + interfaces. + * decl.c (complete_start_java_method): Don't call _Jv_InitClass + for interfaces' . + * expr.c (lookup_field): Search for fields in interfaces. + (expand_invoke): Fixed indentation. + (expand_java_field_op): Likewise. Use IS_CLINIT. + * parse.h (JPRIMITIVE_TYPE_OR_VOID_P): Macro removed. + (IS_CLINIT): New macro. + * parse.y (type_declaration:): Call maybe_generate_clinit after an + interface was parsed. + (maybe_generate_clinit): Don't generate if the current class is an + interface with only fields of primitive types. + (reset_method_name): Use IS_CLINIT. + (java_complete_expand_method): Expand when it exists for + interfaces. Use IS_CLINIT. + (resolve_expression_name): Use DECL_CONTEXT instead of + current_class to build static field references. + (java_complete_lhs): Use IS__CLINIT. Don't use SAVE_EXPR on + ARRAY_REF when doing xreferencing. + (check_final_assignment): Fixed typo in leading comment. Use + IS_CLINIT. + (patch_array_ref): Don't fully expand array references when + xreferencing. + (patch_return): Use IS_CLINIT. + (patch_throw_statement): Likewise. + +1999-04-22 Tom Tromey + + * Make-lang.in (JAVA_SRCS): Added check-init.c. + +1999-04-21 Alexandre Petit-Bianco + + * decl.c (predef_filenames, predef_filenames_size): New globals + (init_decl_processing): predef_filenames and predef_filenames_size + initialized. + * java-tree.h (predef_filenames, predef_filenames_size): Declared + extern. + * jcf-parse.c (predefined_filename_p): New function. + (yyparse): Check that files on the command line are specified only + once and issue a warning otherwise. + * parse.h (JPRIMITIVE_TYPE_OR_VOID_P): New macro. + * parse.y (source_end_java_method): Nullify NOP method bodies, to + avoid a gcc warning with -W -Wall turned on. + (java_expand_classes): Abort if errors were encountered. + (java_complete_lhs): If the cross reference flag is set, wrap + field DECL node around a WFL when resolving expression name. + +1999-04-19 Alexandre Petit-Bianco + + * lang.c (lang_decode_option): Fixed returned value when parsing + `-fxref=...' and `-Wall'. + * parse.y (source_end_java_method): Do not generate code when + flag_emit_xref is set. + (resolve_expression_name): Do not build static field access when + flag_emit_xref is set. + (resolve_field_access): No special treatment on `length' when + flag_emit_xref is set. Do not build qualified static field access + when flag_emit_xref is set. + (patch_invoke): Keep the method DECL as operand 0 of the CALL_EXPR + when flag_emit_xref is set. + (patch_assignment): Do not generate array store runtime check when + flag_emit_xref is set. + * xref.c (xref_flag_value): Fixed function declaration + indentation. + (xset_set_data): New function. + * xref.h (xref_set_data): Added prototype for new function. + (typedef struct xref_flag_table): New field data. + (XREF_GET_DATA): New macro. + +1999-04-19 Tom Tromey + + * xref.h (enum): Removed trailing comma. + + * parse.y (resolve_qualified_expression_name): Added missing + `break'. + +1999-04-15 Anthony Green + + * gjavah.c: New prototypes for java_float_finite and + java_double_finite. + +1999-04-12 Alexandre Petit-Bianco + + * parse.y (patch_unaryop): Fixed ++/-- operator check on array + references. + +1999-04-06 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (TREE_H): Add tree-check.h. + (RTL_H): Add genrtl.h. + +1999-04-06 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Added ArrayStoreException runtime + check. + +1999-04-06 Per Bothner + + * expr.c (pop_type_0): New function. + (pop_type): Use pop_type_0. + * java-tree.h (pop_type_0): New declaration. + * verify.c (verify_jvm_instructions): Check return instructions. + + * parse.y (patch_binop): Don't fold if non-constant and emiting + class files. + +1999-04-05 Kaveh R. Ghazi + + * Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H). + + * gjavah.c: Include math.h earlier. Include tree.h/java-tree.h. + (main_jcf): Don't define. + (process_file): Don't set `main_jcf'. + + * java-tree.h (main_jcf): Don't declare. + + * jcf-parse.c (main_jcf): Add static definition. + + * lang.c (main_jcf): Don't define. + +1999-04-05 Kaveh R. Ghazi + + * class.c (add_method_1): Cast the argument of `bzero' to PTR. + + * decl.c (copy_lang_decl): Likewise for `bcopy'. + + * jcf-depend.c: Include "config.h", not . + + * jcf-parse.c (jcf_figure_file_type): Cast the arguments of + `bcopy' to PTR. + + * jcf-path.c: Include "config.h", not . + + * lex.c: Don't include various system header files. + (java_init_lex): Cast the argument of `bzero' to PTR + + * parse-scan.y (java_push_parser_context): Likewise. + + * parse.y (java_push_parser_context): Likewise. + (patch_bc_statement): Match format specifier to variable argument. + + * xref.c: Don't include . + +1999-04-05 Alexandre Petit-Bianco + + * parse.y (struct parser_ctxt *ctxp): Now global. + (declare_local_variables): Use WFL compound value for the + declaration source line value, when doing cross-referencing. + +1999-03-31 Tom Tromey + + * gjavah.c (print_field_info): Allow constants of other types. + (print_include): Generate include when new name is proper prefix + of already printed name. + (add_namelet): Likewise. + (cxx_keyword_subst): New function. + (print_method_info): Use it. + (print_field_name): New function. + (get_field_name): New function. + (print_field_info): Use get_field_name and print_field_name. + +1999-03-31 Kaveh R. Ghazi + + * Makefile.in (keyword.h): Generate using gperf language 'C', not + 'KR-C', so gperf uses the `const' keyword on strings. + + * keyword.gperf (java_keyword): Const-ify a char*. + +1999-03-30 Alexandre Petit-Bianco + + * parse.y (patch_bc_statement): Fixed identation and a bogus + `printf' format. + +1999-03-30 Alexandre Petit-Bianco + + * parse.y (patch_assignment): Allow static variables in other + classes to be assigned. + +1999-03-28 Kaveh R. Ghazi + + * class.c (maybe_add_interface): Remove unused variable + `interface_binfo'. + (make_class_data): Use = for assignment, not ==. Likewise. + (emit_register_classes): Remove unused variable `decl'. + + * lex.c: Fix comment so as not to contain an embedded `/*'. + + * verify.c (verify_jvm_instructions): Remove unused variable + `self_type'. + +1999-03-27 Per Bothner + + * parse.y (complete_loop_body): Rename to finish_loop_body. + (complete_labeled_statement): Rename to finish_labeled_statement. + (complete_for_loop): Rename to finish_for_loop. + (complete_method_declaration): Rename to finish_method_declaration. + + * java-tree.h (continue_identifier_node): New global node. + * decl.c: Define and initialize continue_identifier_node. + * parse.y (generate_labeled_block): Remove - no longer needed. + (build_loop_body): Use continue_identifier_node for continue block. + (finish_labeled_statement): Also do pop_labeled_block actions. + (java_complete_lhs): POP_LOOP even if error. + (build_labeled_block): Special handling for continue_identifier_node. + (patch_loop_statement): Re-organize. + (patch_bc_statement): Re-write. + +1999-03-27 Alexandre Petit-Bianco + + * parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count + using a WFL compound value. + * parse.y (xref.h): Include. + (maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the + WFL compound value. + (register_fields): Set WFL compound value to lineno if doing + xrefs. + (java_complete_expand_method): Call expand_xref if flag_emit_xref + is set. + * xref.c (system.h, jcf.h, parse.h, obstack.h): Include. + * xref.h (expand_xref): Prototype renamed from xref_generate. + +1999-03-27 Alexandre Petit-Bianco + + * parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK. + (GET_CURRENT_BLOCK): New macro. + * parse.y (current_static_block): New global variable. + (method_body:): Define action. + (complete_method_declaration): Set current_function_decl to NULL + when work on the current method is done. + (declare_local_variables): Use GET_CURRENT_BLOCK. + (java_method_add_stmt): Likewise. + (java_complete_expand_method): Disable the use of `this' when + expanding . + (enter_a_block): If no current method exist, use + current_static_block to link static initializer blocks. + (exit_block): Rewritten to use current_static_block when no current + method decl exists. + (lookup_name_in_blocks): Use GET_CURRENT_BLOCK. + (patch_return): Forbid the use of `return' in static initializers. + (patch_throw_statement): Fixed indentation. Issue specific error + for uncaught thrown checked exception in static initializer + blocks. Removed FIXME. + +1999-03-25 Zack Weinberg + + * java/Make-lang.in: Remove all references to gcj.o/gcj.c. + Link gcj from gcc.o. + +1999-03-23 Alexandre Petit-Bianco + + * parse.y (find_applicable_accessible_methods_list): When dealing + with interface: ensure that a given interface or java.lang.Object + are searched only once. + +1999-03-23 Kaveh R. Ghazi + + * gjavah.c (print_c_decl): Remove unused argument `flags'. + + * jcf-dump.c (print_access_flags): Add braces around if-else. + + * jvspec.c (lang_specific_driver): Wrap variable `len' in macro + COMBINE_INPUTS. + + * lex.c (build_wfl_node): Add static prototype. + + * lex.h (build_wfl_node): Remove static prototype. + + * parse.y: Include lex.c early enough to declare everything needed. + Ensure calls to `build_wfl_node' pass the proper arguments. + (create_class): Remove unused variable `super_decl'. + (get_printable_method_name): Initialize variable `name'. + +1999-03-22 Alexandre Petit-Bianco + + * Changelog: Fixed 1999-03-22 typos. + * lang.c (lang_decode_option): Fixed typo in error string in the + XARG section. + +1999-03-22 Alexandre Petit-Bianco + + * Makefile.in (JAVA_OBJS): Added entry xref.o. + (xref.o): New rule. + * java-tree.h (flag_emit_xref): Declared extern. + * lang.c (xref.h): Included. + (flag_emit_xref): New global variable. + (lang_decode_option): Added support for -fxref. + * xref.c: Created. + * xref.h: Likewise. + +1999-03-21 Manfred Hollstein + + * Make-lang.in ($(GCJ)$(exeext)): Add intl.o to list of files to be + linked with. + +1999-03-21 Kaveh R. Ghazi + + * Makefile.in (jcf-dump.o): Depend on $(CONFIG_H) + $(srcdir)/../system.h and $(JAVA_TREE_H). + (jcf-io.o): Depend on $(JAVA_TREE_H). + (mangle.o): Likewise. + + * check-init.c (check_cond_init): Add static prototype. + + * class.c (build_java_method_type, hashUtf8String, + make_field_value, get_dispatch_vector, get_dispatch_table, + append_gpp_mangled_type, mangle_static_field): Likewise. + (strLengthUtf8): Hide unused definition. + (hashUtf8String): Const-ify. + (make_field_value): Un-ANSI-fy. + + * constants.c: Move inclusion of jcf.h above java-tree.h. + (set_constant_entry, find_class_or_string_constant, + find_name_and_type_constant, get_tag_node, + build_constant_data_ref): Add static prototype. + + * decl.c (push_jvm_slot, builtin_function, + lookup_name_current_level): Likewise. + (builtin_function): Const-ify. + + * except.c (expand_start_java_handler, expand_end_java_handler): + Add static prototype. + + * expr.c (flush_quick_stack, push_value, pop_value, + java_stack_swap, java_stack_dup, build_java_athrow, + build_java_jsr, build_java_ret, expand_java_multianewarray, + expand_java_arraystore, expand_java_arrayload, + expand_java_array_length, build_java_monitor, expand_java_pushc, + expand_java_return, expand_java_NEW, expand_java_INSTANCEOF, + expand_java_CHECKCAST, expand_iinc, expand_java_binop, note_label, + expand_compare, expand_test, expand_cond, expand_java_goto, + expand_java_call, expand_java_ret, pop_arguments, expand_invoke, + expand_java_field_op, java_push_constant_from_pool): Likewise. + + (decode_newarray_type, expand_iinc): Un-ANSI-fy. + (build_java_arraynull_check): Mark parameters `node' and `type' + with ATTRIBUTE_UNUSED. + (note_label): Likewise for parameter `current_pc'. + (expand_java_call, expand_java_ret): Hide unused definition. + + * java-tree.h (make_class, build_constants_constructor, + java_set_exception_lang_code, pop_labeled_block, emit_handlers, + init_outgoing_cpool, register_class, emit_register_classes, + java_layout_seen_class_methods): Prototype. + (unicode_mangling_length): Const-ify. + (append_gpp_mangled_name, append_gpp_mangled_classtype, + emit_unicode_mangled_name, format_int, format_uint, + jcf_trim_old_input, jcf_print_utf8, jcf_print_char, + jcf_print_utf8_replace, open_class): Prototype. + + * jcf-dump.c: Include "config.h", not . Don't include + . Include tree.h/java-tree.h. + (utf8_equal_string usage, process_class): Add static prototype. + (open_class): Don't prototype this here. + (utf8_equal_string): Match arguments to format specifiers. + (HANDLE_CODE_ATTRIBUTE, BRANCH, JSR, RET, LOOKUP_SWITCH, + TABLE_SWITCH, disassemble_method): Likewise. + + * jcf-io.c: Include tree.h/java-tree.h. + (open_class, find_classfile, jcf_print_utf8, + jcf_print_utf8_replace): Const-ify. + + * jcf-parse.c (parse_zip_file_entries, process_zip_dir, + parse_class_file): Add static prototype. + (find_in_current_zip): Match definition to existing static + prototype. + + * jcf-write.c: Include jcf.h before tree.h/java-tree.h. + (alloc_chunk, append_chunk, append_chunk_copy, gen_jcf_label, + finish_jcf_block, define_jcf_label, get_jcf_label_here, + put_linenumber, localvar_alloc, localvar_free, get_access_flags, + write_chunks, adjust_typed_op, generate_bytecode_conditional, + generate_bytecode_return, perform_relocations, init_jcf_state, + init_jcf_method, release_jcf_state, generate_classfile): + Add static prototype. + (emit_unop): Mark parameter `type' with ATTRIBUTE_UNUSED. + (make_class_file_name): Const-ify. + + * jcf.h (find_classfile): Const-ify. + + * jv-scan.c (reset_report): Remove prototype. + + * jvgenmain.c: Include jcf.h/tree.h/java-tree.h. + (error): Rewrite to allow varargs. + + * lang.c (lang_f_options): Const-ify. + + * lex.c (java_parse_escape_sequence): Add static prototype. + (java_allocate_new_line): Match definition to existing static + prototype. + + * mangle.c Include tree.h/java-tree.h. + (unicode_mangling_length, emit_unicode_mangled_name, + append_gpp_mangled_name, append_gpp_mangled_classtype): Const-ify. + + * parse.h (jdep_code): Remove trailing comma in enumeration. + (java_get_line_col): Move prototype outside of !JC1_LITE test. + (reset_report): Add prototype. + + * verify.c (push_pending_label, merge_types): Add static + prototypes. + + * zipfile.h (opendir_in_zip, open_in_zip): Prototype. + +1999-03-19 Alexandre Petit-Bianco + + * parse.y (find_applicable_accessible_methods_list): Extend the + search to superinterfaces when relevant. + (search_applicable_methods_list): New function. + +1999-03-18 Alexandre Petit-Bianco + + * class.c (unmangle_classname): Implemented stricter testing + before setting the QUALIFIED_P flag on an identifier. + +1999-03-16 Per Bothner + + * parse.y (java_complete_lhs): Call force_evaluation_order + after patch_newarray. + (patch_binop): Don't call fold if there are side effects. + +1999-03-16 Alexandre Petit-Bianco + + * parse.y (java_stabilize_reference): Use save_expr instead of + building a SAVE_EXPR node. + (java_complete_lhs): Patch the resulting string of the `+=' + operator (if necessary) and complete the RHS after having built + the cast. + +1999-03-15 Per Bothner + + * class.c (make_class): Don't set CLASS_P here (because + this function is also called by build_java_array_type). + (push_class): Set CLASS_P here instead. + * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. + + * jcf-dump.c (print_access_flags): Take extra parameter to indicate + context. If the context is class, perfer "super" over "synchronized". + * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. + + * parse.y (create_class): Don't call parser_check_super here; + it is not robust. Always wait until later. + + * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to + match what JDK 1.2 does), but don't set ACC_PUBLIC. + +1999-03-13 Per Bothner + + * lex.c (java_read_char): UNGET invalid non-initial utf8 character. + * lex.h (UNGETC): Change misleading macro. + +1999-03-12 Alexandre Petit-Bianco + + * parse.y (java_stabilize_reference): Return NODE when patching a + COMPOUND_EXPR. + (java_complete_lhs): Put parenthesis around truth values. + +1999-03-12 Alexandre Petit-Bianco + + * class.c (layout_class_method): Don't make rtl for interface + methods. + * parse.h (GET_TYPE_NAME): New macro. + * parse.y (if_then_statement:): Fixed indentation. + (if_then_else_statement:): Likewise. + (for_statement:): Fixed spacing. + (try_statement:): Fixed indentation. + (create_interface): Don't force interfaces to be abstract. + (method_header): Abstract methods are OK in interfaces. + (declare_local_variables): Fixed typo in comment. + (java_complete_expand_method): Fixed indentation. + (resolve_qualified_expression_name): Use GET_TYPE_NAME to report + non accessible fields. + (java_stabilize_reference): New function. + (java_complete_lhs): Fixed indentation. Use + java_stabilize_reference in compound assignment. Insert the + cast. If not processing `+' fix string constants before processing + binop. + +1999-03-12 Kaveh R. Ghazi + + * constants.c (find_class_or_string_constant): Cast variable `j' + to a `jword' when comparing against one. + + * expr.c (java_lang_expand_expr): Remove unused variables + `has_finally_p' and `op0'. + + * gjavah.c (print_field_info): Cast a value to jint when comparing + against one. Likewise for a jlong. + (add_namelet): Likewise cast a `sizeof' to an int when comparing + against a signed quantity. + + * jcf-dump.c (print_signature_type): Remove unused variable `digit'. + (print_signature): Don't needlessly dereference variable `str' + + * jcf-reader.c (get_attribute): Mark variables `max_stack' and + `max_locals' with ATTRIBUTE_UNUSED. + (jcf_parse_class): Likewise for variable `index'. + + * parse.h (reverse_jdep_list): Remove static prototype. + + * parse.y (build_jump_to_finally): Remove prototype and definition. + (reverse_jdep_list): Add static prototype. + + * typeck.c (convert_ieee_real_to_integer): Remove unused variables + `assignment' and `expr_decl'. + + * verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'. + +1999-03-12 Andrew Haley + + * jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes; + we'll need a directory separator and a null character. + +1999-03-10 Per Bothner + + * jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %. + +Tue Mar 9 11:52:08 1999 Alexandre Petit-Bianco + + * parse.y (method_header): Don't set ACC_ABSTRACT flags on + interfaces. + +1999-03-05 Per Bothner + + * lex.c (java_parse_end_comment): Take extra parameter (next char). + + * class.c (build_utf8_ref): Fix possible name class/ambiguity. + + * class.c (layout_class_method): A static method in a base class + is never overridden, so treat it like it doesn't exist. + However, do complain about private non-static method overriding + public static method. + + * parse.y: Don't set unused INITIALIZED_P flag. + * java-tree.h (INITIALIZED_P): Removed no-longer needed flag. + + * parse.y (find_expr_with_wfl): Optimize tail-calls. + (build_array_from_name): Re-order &index[string] to &string[index]. + + * parse.y (java_complete_lhs): Don't call patch_assignment if rhs is + error_mark (it might catch more errors, but it is more likely to lose). + +1999-03-06 Kaveh R. Ghazi + + * Makefile.in (jcf-parse.o): Depend on $(PARSE_H). + (parse-scan.o): Depend on toplev.h. + + * class.c (make_method_value): Add prototype. Make it static. + Remove unused second argument, caller changed. + + * expr.c (java_lang_expand_expr): Remove unused variable + `return_label'. + + * java-tree.h: Don't prototype find_in_current_zip. + Add prototypes for verify_constant_pool, start_java_method, + end_java_method, give_name_to_locals, expand_byte_code, + open_in_zip, set_constant_value, find_constant1, find_constant2, + find_utf8_constant, find_string_constant, find_class_constant, + find_fieldref_index, find_methodref_index, write_constant_pool, + count_constant_pool_bytes and encode_newarray_type. + + * jcf-dump.c: Remove unused variable `LONG_temp'. + + * jcf-parse.c: Include parse.h. + (jcf_parse_source): Remove unused parameter, all callers changed. + (jcf_figure_file_type): Add static prototype. + (find_in_current_zip): Likewise. Also remove unused parameter, + all callers changed. + (read_class): Initialize variable `saved_pos'. + + * jcf-reader.c (jcf_parse_preamble): Mark variables + `minor_version' and `major_version' with ATTRIBUTE_UNUSED. + + * lex.c (java_is_eol): Wrap prototype and definition in !JC1_LITE. + (java_init_lex): Wrap variable `java_lang_imported' in !JC1_LITE. + (java_parse_doc_section): Initialize variable `seen_star'. + (java_lex): Wrap variable `number_beginning' in !JC1_LITE. + (java_lex_error): Mark parameters `msg' and `forward' with + ATTRIBUTE_UNUSED. + (java_get_line_col): Mark parameters `filename' and `line' with + ATTRIBUTE_UNUSED. + + * parse-scan.y: Include toplev.h. + (yyerror): Mark parameter `msg' with ATTRIBUTE_UNUSED. + + * parse.h: use `struct JCF', not plain `JCF'. + (java_parser_context_save_global, java_expand_classes + java_parser_context_restore_global, java_parse): Add prototypes. + + * typeck.c (convert_ieee_real_to_integer): Remove unused variable + `node'. + +1999-02-24 Per Bothner + + * check-init.c (check_init): COPYN takes word count, not bit count. + +1999-02-26 Per Bothner + + * typeck.c (convert_ieee_real_to_integer): Use save_expr instead of + explicit build_decl. (Avoids crash in reload when optimizing.) + +1999-02-25 Per Bothner + + * decl.c (complete_start_java_method): Handle synchronized method + even when compiling from bytecode. + +1999-02-26 Tom Tromey + + * gjavah.c (add_class_decl): Only generate `#include' if outer + class is not the name of the class we are processing. Correctly + append `.h' in #include. + (process_file): Clean up newlines around generated `#include's. + (decode_signature_piece): Correctly handle inner classes. + (struct include): New structure. + (all_includes): New global. + (print_include): New function. + (add_class_decl): Use it. + (process_file): Likewise. + (add_class_decl): Generate include for java-array.h if array + seen. + (process_file): Don't generate java-array.h include. + + * gjavah.c (add_namelet): Check for standard package names here. + (add_class_decl): Don't check for standard package names here. + +1999-02-25 Tom Tromey + + * parse.y (read_import_dir): Use `|=', not `+=', to set `found'. + When reading a zip file, only use strncmp if both strings are + bigger than the buffer length. Initialize `k' when looping + through zip file. + +1999-02-24 Tom Tromey + + * gjavah.c (struct namelet): New structure. + (add_namelet): New function. + (print_namelet): New function. + (print_class_decls): Use add_namelet and print_namelet to generate + namespaces and not classes. + (method_printed): New global. + (HANDLE_END_METHOD): Examine method_printed. + (print_method_info): Set method_printed when required. Print + error if function to be ignored is marked virtual. Handle $finit$ + method. + (METHOD_IS_FINAL): New macro. + (print_field_info): Use it. + (HANDLE_METHOD): Clear method_printed. + (method_pass): New global. + (HANDLE_END_FIELD): Call add_class_decl on the first pass. + (process_file): Do two passes over both fields and methods. + (HANDLE_METHOD): Examine method_pass. + (root): New global. + (add_class_decl): New function. + (print_class_decls): Don't scan over entire constant pool. + +1999-02-23 Tom Tromey + + * jvspec.c (lang_specific_driver): Recognize -fsyntax-only and + disable linking in that case. + +1999-02-20 Tom Tromey + + * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, + not 0x1f. + +1999-02-21 Per Bothner + + * decl.c (build_result_decl), java-tree.h: New method. + (complete_start_java_method): Handle synchronized methods. + Don't build DECL_RESULT here. (Ordering dependency problem.) + (start_java_method): Call build_result_decl here instead ... + * parse.y (java_complete_expand_method): ... and here. + (expand_start_java_method): Don't call complete_start_java_method here. + (java_complete_expand_method): Call it here instead. + * parse.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Moved to .. + * java-tree.h: ... here. + + * expr.c (force_evaluation_order): Fix typo, don't handle ARRAY_REF. + * parse.y (java_complete_lhs): Don't call force_evaluation_order + for ARRAY_REF - it doesn't work when array bounds are checked. + (patch_array_ref): Handle it here instead. + + * jcf-write.c (generate_classfile): Emit "Exceptions" attribute. + +1999-02-19 Per Bothner + + Force left-to-right evaluation of binary operations etc. + * expr.c (force_evaluation_order), java-tree.h: New function. + * parse.y (java_complete_lhs): Pass binary operations, procedure + calls, and ARRAY_REFs to force_evaluation_order. + (various): Set TREE_SIDE_EFFECTS more carefully. + + Tolerate random (non-UTF8) encoding in comments without complaining. + * lex.c (java_read_char): Return 0xFFFE if bad UTF8 encoding. + (java_is_eol): Handle '\r' followed by '\n' instead of vice versa. + + * parse.y (resolve_qualified_expression_name): Handle error_mark. + (java_complete_node case EXPR_WITH_FILE_LOCATION): Likewise. + + * parse.y (java_complete_lhs): Ignore an empty statement in a + COMPOUND_EXPR. Don't complain about empty statement after return. + +1999-02-19 Per Bothner + + * parse.y (obtain_incomplete_type): Don't wrap unknown types + in TREE_LIST - just chain the POINTER_TYPEs together. + (resolve_class): If type already resolved, return decl. + After resolving, update TREE_TYPE(class_type), and name (if array). + * parse.h (do_resolve_class), parse.y: Make non-static. + * class.c (maybe_layout_super_class): Take this_class argument. + Do do_resolve_class if necessary. + (layout_class, layout_class_methods): Adjust calls appropriately. + * parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED, + JDEP_RESOLVED_P): Redefined for new TREE_LIST-less convention. + * typeck.c (build_java_array_type): Don't call layout_class. + +1999-02-17 Alexandre Petit-Bianco + + * parse.y (check_pkg_class_access): Allow private class access + within the same package. + (strip_out_static_field_access_decl): New function. + (patch_unaryop): Call strip_out_static_field_access_decl on ++/-- + operator argument before testing its nature. + +1999-02-03 Per Bothner + + * java-tree.def (FINALLY_EXPR): Removed. (Now uses TRY_FINALLY_EXPR.) + (TRY_EXPR): Simplify - it no longer has a finally clause. + * check-init.c (check_init): Handle TRY_FINALLY_EXPR. + Simpler handling of TRY_EXPR, which no longer has a finally clause. + * expr.c (java_lang_expand_expr): Likewise. + * java-tree.h (CATCH_EXPR_GET_EXPR): Removed - no longer needed. + * parse.h (java_get_catch_block), parse.y: Removed - no longer needed. + * parse.y (java_complete_lhs): Add support for TRY_FIANLLY_EXPR. + (build_try_statement): Remove finally parameter and handling. + (build_try_finally_statement): New function. + (patch_try_statement): No longer need to support finally clause. + (try_statement): Update grammar action rules. + * jcf-write.c (generate_bytecode_insns): Handle TRY_FINALLY_EXPR. + Simpler handling of TRY_EXPR, which no longer has a finally clause. + +1998-11-26 Andrew Haley + + * jcf-parse.c (get_constant): Add braces around computation of 'd' + when REAL_ARITHMETIC is not defined. [Oct 26 fix got overwritten -PB] + +1999-02-17 Andrew Haley + + * class.c (build_utf8_ref): Back out broken patch which was + intended to to output signatures using '.' as a separator. + + * class.c (make_class_data): Output signatures using '.' as a + separator, rather than '/'. + (mangled_classname): Likewise. + (make_field_value): Likewise. + (make_method_value): Likewise. + * constants.c (alloc_class_constant): Likewise. + * expr.c (build_invokeinterface): Likewise. + +1999-02-11 Alexandre Petit-Bianco + + * parse.y (valid_builtin_assignconv_identity_widening_p): Got rid + of an ancient workaround. + +1999-02-10 Jeffrey A Law (law@cygnus.com) + + * jvspec.c (xmalloc): Kill the prototype. It does not belong + here anymore. + +1999-02-10 Alexandre Petit-Bianco + + * lex.c (yylex): Encode \0 as UTF8. + +1999-02-10 Tom Tromey + + * jvspec.c (lang_specific_driver): Use libgcj, not libjava. + * Makefile.in (jcf-path.o): Define LIBGCJ_ZIP_FILE. + (libgcj_zip): Renamed. + * jcf-path.c (add_entry): Use LIBGCJ_ZIP_FILE, not + LIBJAVA_ZIP_FILE. + (jcf_path_init): Use LIBGCJ_ZIP_FILE. + + * jvspec.c (THREAD_NAME): Renamed -lqthreads to -lgcjcoop. + (GC_NAME): Renamed -lgc to -lgcjgc. + +1999-02-09 Alexandre Petit-Bianco + + * lex.c (java_lang_cloneable): Initialize. + * parse.y (java_lang_cloneable): New static variable. + (qualify_ambiguous_name): Take CONVERT_EXPR into account when + doing one more qualification round. + (valid_ref_assignconv_cast_p): Reject null source or + destination. Allow an array to be cast into java.lang.Cloneable. + (patch_cast): Swapped two first arguments to first call to + valid_ref_assignconv_cast_p. + +1999-02-08 Alexandre Petit-Bianco + + * parse.h: DECL_P renamed JDECL_P. + * parse.y: DECL_P replaced by JDECL_P. + (build_array_from_name): Always use pointer's type. + (patch_bc_statement): Extra code to search continue target in a + for loop. Fixed comments. Continue target is current loop when + unlabeled. + +1999-02-05 Andrew Haley + + * class.c (make_class_data): The superclass of an interface should + be null, not class Object. + + * lex.c (java_lex): Sign extend hex literals. + +1999-02-04 Andrew Haley + + * class.c (build_utf8_ref): Output signatures using '.' as a + separator, rather than '/'. + (make_class_data): Likewise. + +1999-02-03 Marc Espie + + * Make-lang.in ($(GCJ)(exeext)): Remove choose-temp.o, pexecute.o and + mkstemp.o. Get them from libiberty now. + +1999-02-02 Jeffrey A Law (law@cygnus.com) + + * jcf-io.c: Do not include sys/stat.h or sys/wait.h + +1999-02-02 Kaveh R. Ghazi + + * jvspec.c (xmalloc): Fix the prototype to match the one obtained + from libiberty.h + +1999-02-02 Per Bothner + + Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'. + * jcf-write.c (generate_bytecode_return): New function. + (generate_bytecode_insns): Use it, for RETURN_EXPR. + + * jcf-write.c (generate_bytecode_insns): For REAL_CST that is 0 or 1, + generate special [fd]const_[01] instructions. + + * jcf-parse.c (yyparse): Don't emit_register_classes if -fsyntax-only. + + * verify.c (verify_jvm_instructions): Do INVALIDATE_PC after + handling OPCODE_lookupswitch or OPCODE_tableswitch. + +1999-02-01 Per Bothner + + * parse.y (patch_method_invocation): Handle calling static methods, + even in the form EXPR.METHOD(ARGS), not just TYPE.METHOD(ARGS). + + * parse.y (java_complete_lhs): Don't complain about unreachable + exit condition in a do-while statement. + +1999-01-29 Alexandre Petit-Bianco + + * lex.c (java_read_char): Fixed utf8 decoding. + (java_unicode_2_utf8): Fixed utf8 encoding in the 0x800-0xffff + range. + * parse.y (valid_builtin_assignconv_identity_widening_p): Fixed + comments. Local variable `all_primitive' is gone. Broadened + acceptance of `0' to floating point targets. `long' can now be + widened to `double' or `float'. + (valid_method_invocation_conversion_p): Added leading + comment. Fixed tabulation. + (build_string_concatenation): Optimize out left or right empty + string constants. + +1999-01-28 Per Bothner + + * jcf-write.c (localvar_alloc): Only emit entry for + LocalVariableTable if debug_info_level > DINFO_LEVEL_TERSE. + (generate_bytecode_insns): Only call put_linenumber if + debug_info_level > DINFO_LEVEL_NONE. + * jvspec.c (lang_specific_driver): If no -O* or -g* option + is specified, add -g1 (for compatibility wih javac). + +1999-01-28 Hans-Peter Nilsson + + * java/Makefile.in: Add missing dependencies for jcf-dump.o, + gjavah.o, check-init.o, jv-scan.o + +1999-02-01 Kaveh R. Ghazi + + * Makefile.in (gjavah.o): Depend on $(CONFIG_H) and system.h. + + * gjavah.c: Include config.h and system.h. + + * javaop.h (inline): Don't define, its handled by system.h. + (WORD_TO_FLOAT, WORDS_TO_LONG, WORDS_TO_DOUBLE): Change these + from `inline' to `static inline'. + + * jcf.h (inline): Don't define, its handled by system.h. + + * lex.c (inline): Likewise. + +1999-01-31 Zack Weinberg + + * lang-specs.h: Map -Qn to -fno-ident. + +1999-01-29 Richard Henderson + + * check-init.c (check_init): Fix CLEANUP_POINT_EXPR typo. + +1999-01-29 Tom Tromey + + * parse.h (BUILD_APPEND): If ARG is a non-String object reference, + then cast it to Object before calling `append' method. + +1999-01-28 Per Bothner + + * check-init.c (check_bool2_init, check_bool_init, check_init): + Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. + * jcf-write.c (generate_bytecode_insns): Likewise. + +1999-01-28 Alexandre Petit-Bianco + + * jcf-parse.c (jcf_parse): Don't parse the same class file twice. + * parse.y (patch_cast): Allow a boolean to be cast into a + boolean. + +1999-01-27 Alexandre Petit-Bianco + + * parse.y: (class_declaration:): Fixed indentation. + (class_member_declaration:): Extra `;' after field declaration now + accepted. + (interface_declaration:): Removed debug messages in error reports. + (patch_binop): Nodes created and returned inherit the orignal + node's COMPOUND_ASSIGN_P flag value. + (patch_cast): Fix cast from char to floating point. + +1999-01-25 Andrew Haley + + * except.c, java-except.h (expand_resume_after_catch): new + function. + * expr.c (java_lang_expand_expr): call expand_resume_after_catch + to branch back to main flow of control after a catch block. + +1999-01-23 Kaveh R. Ghazi + + * Makefile.in (parse.o): Depend on $(CONFIG_H) and + $(srcdir)/../system.h. + (class.o): Depend on $(PARSE_H) and $(srcdir)/../output.h. + (jcf-parse.o): Depend on $(srcdir)/../toplev.h. + (jcf-write.o): Likewise. + (jv-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. + (mangle.o): Depend on $(srcdir)/../toplev.h. + (parse-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. + (zextract.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. + + * class.c: Include output.h and parse.h. + (mangled_classname): Add the `const' keyword to a char*. + (find_named_method): Hide unused function definition. + (build_utf8_ref): Change type of variable `c' to unsigned char. + Use ISALPHA/ISDIGIT instead of isalpha/isdigit. + (build_class_ref): Add the `const' keyword to a char*. + (layout_class_method): Remove unused variable `buf'. + + * decl.c (find_local_variable): Remove unused variable `rtl'. + (pushdecl): Likewise for variables `different_binding_level' and + `oldglobal'. + (pushlevel): Mark parameter `unused' with ATTRIBUTE_UNUSED. + (maybe_build_cleanup): Likewise for parameter `decl'. + + * except.c (expand_start_java_handler): Mark parameter `range' + with ATTRIBUTE_UNUSED. + + * expr.c: Include except.h. + (pop_type): Remove unused variable `i'. + (pop_value): Likewise for variables `n_words' and `i'. + (expand_java_arrayload): Likewise for variable `convert'. + (java_lang_expand_expr): Likewise for variables `op0', `type', + `mode', `unsignedp', `node' and `elements'. + (expand_byte_code): Likewise for variables `prev_eh_ranges' and + `eh_ranges'. + (process_jvm_instruction): Add a `const' qualifier to a char*. + + * gjavah.c (output_directory): Add the `const' keyword to a char*. + (temp_directory): Likewise. + (print_c_decl): Likewise. + (print_method_info): Likewise. + (decode_signature_piece): Likewise. + (print_mangled_classname): Likewise. + + * java-except.h: Provide prototypes for maybe_start_try, + maybe_end_try and add_handler. + + * java-tree.h (mangled_classname): Add the `const' keyword to a char*. + (parse_error_context): Likewise. Also add ATTRIBUTE_PRINTF_2. + (pushdecl_top_level, alloc_class_constant, unicode_mangling_length, + init_expr_processing, push_super_field, init_class_processing, + can_widen_reference_to, class_depth, verify_jvm_instructions, + maybe_pushlevels, maybe_poplevels, process_jvm_instruction, + set_local_type, merge_type_state, push_type, load_type_state, + add_interface, find_in_current_zip, append_gpp_mangled_classtype, + emit_unicode_mangled_name): Add prototypes. + + * jcf-dump.c (print_constant): Add the `const' keyword to a char*. + (print_signature_type): Use ISDIGIT, not isdigit. + (print_signature): Remove unused variable `j'. + + * jcf-io.c (jcf_filbuf_from_stdio): Cast the result of `fread' to + int when comparing against one. + + * jcf-parse.c: Include toplev.h. + + * jcf-write.c: Likewise. Don't include or . + (localvar_free): Remove unused variable `i'. + (generate_bytecode_conditional): Likewise for variable `kind'. + + * jv-scan.c: Include config.h and system.h. Remove redundant + OS header and gansidecl.h includes. + (warning): Add the `const' keyword to a char*. Also add + ATTRIBUTE_PRINTF_1 to the prototype. Check ANSI_PROTOTYPES, not + __STDC__, when determining whether to use ANSI-isms. + (fatal): Likewise. Also add ATTRIBUTE_UNUSED. + (xmalloc): Don't redundantly prototype here. + (main): Remove unused parameter `envp'. Also fix the arguments + passed to function `fatal' to match the format specifier. + + * lang.c (java_tree_code_name): Add the `const' keyword to a char*. + + * mangle.c: Include toplev.h. + (emit_unicode_mangled_name): Declare parameter `len'. + + * parse.y (parse_warning_context): Add the `const' keyword to a + char*. Also add ATTRIBUTE_PRINTF_2 to the prototype. Check + `ANSI_PROTOTYPES' not `__STDC__' for whether to use ANSI-isms. + (issue_warning_error_from_context): Add the `const' keyword to + a char*. + (parse_error_context): Likewise. Also check `ANSI_PROTOTYPES' + not `__STDC__' for whether to use ANSI-isms. + + * typeck.c (incomplete_type_error): Mark parameters `value' and + `type' with ATTRIBUTE_UNUSED. + (parse_signature_type): Use ISDIGIT, not isdigit. + + * verify.c (check_pending_block): Add the `const' keyword to a char*. + (verify_jvm_instructions): Likewise. Remove unused variables + `field_name' and `default_val'. + + * zextract.c: Include config.h and system.h. Remove redundant + OS header includes. + + * zipfile.h: Prototype `read_zip_archive'. + +1999-01-21 Andrew Haley + + * typeck.c (convert): Allow conversions to void type: some + optimizations in gcc do this. + +1999-01-21 Andrew Haley + + * typeck.c (convert_ieee_real_to_integer): New function. + (convert): When not using fast-math and using hardware fp, convert + an IEEE NaN to zero. + +1999-01-18 Andrew Haley + + * parse.y (patch_binop): Do a type conversion from signed to + unsigned and then back to signed when a ">>>" is found. + +1999-01-17 Alexandre Petit-Bianco + + * java-tree.h: (check_for_initialization): Added prototype. + * lex.c (java_parse_doc_section): `\n' breaks the `*/' string. + * parse.y (do_resolve_class): Removed unused locals. + (read_import_dir): Likewise. + (resolve_qualified_expression_name): Array creation + expressions are valid primary expressions. + (qualify_ambiguous_name): Likewise. + (patch_synchronized_statement): Removed unused local. + +1999-01-17 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (zextract.o): Add dependencies. + + * Makefile.in: Do not put ^Ls at the start of a line. + +1999-01-15 Per Bothner + + * expr.c (process_jvm_instruction): Coerce to correct Throwable + sub-type the result of the call that gets the exception value. + + * parse.y (java_complete_expand_methods): If flags_syntax_only, + don't call finish_class. + + * parse.y (java_check_regular_methods): If METHOD_PRIVATE, + clear found before continuing. + + * verify.c (verify_jvm_instructions): On an array load, allow + and handle top of stack to be TYPE_NULL. + + * gjavah.c (generate_access): Translate Java package private or + protected access to C++ public, but with a comment. + +1999-01-13 Andrew Haley + + * expr.c (generate_name): Name prefix changed to avoid clashes + with assembler temp labels. + + * parse.y (patch_synchronized_statement): Set TREE_SIDE_EFFECTS on + MODIFY_EXPR. Without this, code for the assignment may not be + generated at all and the synchronized statement will read an + uninitialized variable. + +1999-01-13 Alexandre Petit-Bianco + + * class.c (maybe_layout_super_class): Fixed returned value. + * lex.c: Added 1999 to the copyright. + (java_init_lex): Initialize java_lang_imported. + * lex.h: Added 1999 to the copyright. + * parse.h: Added 1999 to the copyright. + (REGISTER_IMPORT): Fixed typo in trailing macro. + (CURRENT_OSB): New macro. + (struct parser_ctxt): New fields osb_depth, osb_limit. + * parse.y (java_lang_id): New global variable. + (type_import_on_demand_declaration): Don't import java.lang.* twice. + (array_creation_expression:): Use CURRENT_OSB. + (dims:): Uses a stack to keep track of array dimensions. + (cast_expression:): Use CURRENT_OSB. + (find_expr_with_wfl): Return NULL if node found doesn't meet the + conditions. + (register_fields): Fixed typos in comment. + (check_method_redefinition): Fixed comment indentation. + (java_check_regular_methods): Set saved found wfl to NULL after + having reinstalled it in the previously found DECL_NAME. + +1999-01-10 Richard Henderson + + * gjavah.c (java_float_finite): Use a union to do type punning. + (java_double_finite): Likewise. + +1999-01-09 Per Bothner + + * parse.y (build_new_array_init): Don't set EXPR_WFL_LINECOL + on CONSTRUCTOR (since that trashes TREE_CST_RTL). + (patch_new_array_init): Clear TREE_CONSTANT also if INDIRECT_REF. + (register_fields): Set TREE_STATIC on NEW_ARRAY_INIT, not on + CONSTRUCTOR (which causes expand_expr to call output_constant_def). + * expr.c (java_lang_expand_expr): Check TREE_STATIC of NEW_ARRAY_INIT. + +1999-01-08 Per Bothner + + * check-init.c (check_init): If compiling to native, we don't + see THROW_EXPR. Instead, look for a call to throw_node (_Jv_Throw). + +1999-01-08 Tom Tromey + + * parse-scan.y (variable_declarator_id): Set or increment + bracket_count. + (bracket_count): New global. + (formal_parameter): Handle case where bracket pairs trail variable + declarator id. + +1999-01-07 Andrew Haley + + * jcf-parse.c (yyparse): variable len changed from a char to an + int to prevent overflow. + +1999-01-06 Per Bothner + + * java-tree.h: Declare read_class. + * jcf-parse.c (read_class): New function. + (load_class): Now just call read_class. + + * java-tree.h (java_parse_abort_on_error): Only return if new errors. + * jcf-parse.c (parse_source_file): Declare save_error_count, + which is needed by java_parse_abort_on_error macro, + * parse.y (java_layout_classes, java_expand_classes): Likewise. + + * parse.y (register_fields): Set TREE_STATIC flag of NEW_ARRAY_INIT + constructor, if initializing a static field. + (patch_new_array_init): Set TREE_CONSTANT if it is. + * expr.c (java_lang_expand_expr): For a static array constructor + of primitive elements, allocate the array itself statically. + Disabled until we can set the vtable field statically. + + * check-init.c: New file. Checks for definite assignment. + * Makefile.in (JAVA_OBJS): Add check-init.o. + * parse.y (java_complete_expand_method): Call check_for_initialization. + * parse.h (BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY): Moved to java-tree.h. + +1999-01-06 Graham + + * parse.y : include system.h instead of including + standard headers directly with the exception of . + +1999-01-06 Per Bothner + + * lex.h: Moved static function declarations to lex.c, + to shut up some -Wall warnings. + * lex.c: Static function declarations moved here. + * jcf-dump.c: Small fixes to shut up -Wall warnings. + +1999-01-05 Kaveh R. Ghazi + + * Make-lang.in ($(GCJ).o): Depend on prefix.h. + +1998-12-22 Per Bothner + + * expr.c (process_jvm_instruction): Do load_type_state after JSR. + * verify.c (verify_jvm_instructions): Fix off-by-one error. + + * jcf-write.c (CHECK_PUT): Add (void) cast to avoid -Wall warnings. + (localvar_alloc): Change return type to void, + (emit_unop): Remove unused variable size. + + * jcf-write.c (struct jcf_block): Add new union. + (PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC): New macros. + (call_cleanups): New functions. + (struct jcf_partial): New fields num_finalizers and return_value_decl. + (generate_bytecode_insns): Support CLEANUP_POINT_EXPR and + WITH_CLEANUP_EXPR. Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR. + * lang.c (lang_init): Call using_eh_for_cleanups. + * parse.y (java_complete_lhs): For SYNCHRONIZED_EXPR, defer + completing operands to patch_synchronized_statement. + Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR. + (patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and + WITH_CLEANUP_EXPR instead of TRY_EXPR. + +1998-12-20 John F. Carr + + * Make-lang.in: Comment out control-Ls; they upset some makes. + +1998-12-18 Tom Tromey + + * parse.y (check_class_interface_creation): Use DIR_SEPARATOR + consistently. + +1998-12-17 Tom Tromey + + * parse.y (DIR_SEPARATOR): New define. + (check_class_interface_creation): Use it. + + * parse-scan.y (report_main_declaration): Recognize + `java.lang.String' in argument to main. + +1998-12-16 Per Bothner + + * parse.y (create_interface): Remove bogus test. + +1998-12-16 Per Bothner + + * jcf-parse.c (get_constant): Set TREE_TYPE for string constants. + (HANDLE_CONSTANTVALUE): If flag_emit_class_files, call get_constant. + +1998-12-16 Tom Tromey + + * parse-scan.y (qualified_name): Use correct sprintf format. + +1998-12-15 Tom Tromey + + * gjavah.c (print_field_info): Changed how most negative number is + printed. + +1998-12-14 Per Bothner + + * parse.y (fold_constant_for_init): New function. + (resolve_expression_name): Don't replace static final + constant-initialized fields by its value. + (java_complete_lhs): New. Same as java_complete_tree, except does + not replace static final constant-initialized fields by their values. + (register_fields): If there is an initializer, set DECL_INITIAL and + MODIFY_EXPR_FROM_INITIALIZATION_P. + (java_complete_tree): For MODIFY_EXPR, use java_complete_lhs for lhs. + Only call patch_initialized_static_field if + MODIFY_EXPR_FROM_INITIALIZATION_P. + (patch_initialized_static_field): If not valid constant, clear + DECL_INITIAL. + + * parse.y (lookup_field_wrapper): Fix thinko. + + * parse.y (java_complete_tree): In EXPR_WITH_FILE_LOCATION, + set and restore global lineno. + +1998-12-14 Tom Tromey + + * gjavah.c (print_field_info): If value to print is the smallest + value of its size, then print as hex to avoid later warnings from + C++ compiler. + +1998-12-14 Tom Tromey + + * gjavah.c (decompile_method): Decompile `return null'. + (process_file): Generate `#pragma interface'. + (method_declared): New global. + (print_method_info): Set it. + (HANDLE_CODE_ATTRIBUTE): Only print it method_declared set. + (print_method_info): Handle abstract methods. + +1998-12-13 Per Bothner + + * parse.y (patch_method_invocation): If class_decl is null + (e.g. an array type), use original type. + + * parse.y (check_thrown_exceptions): Temporary hack to suppress + errors about uncaught exception from clone (of array, specifically). + +1998-12-13 Tom Tromey + + * gjavah.c (decompile_method): Handle all types of `return' + opcode. Decompile `return this' and `return'. + (method_access): New global. + (print_method_info): Set it. + (decompile_method): Don't decompile a synchronized method. + +1998-12-13 Tom Tromey + + * jcf-reader.c (jcf_parse_one_method): Recognize + HANDLE_END_METHOD. + * gjavah.c (HANDLE_END_METHOD): New macro. + (HANDLE_CODE_ATTRIBUTE): New macro. + (decompile_method): New function. + (print_method_info): Don't print `;\n' at end of function decl. + Include java-opcodes.h. + (decompiled): New global. + +1998-12-12 Per Bothner + + * class.c (build_class_ref): Handle PRIMTYPE.class if + flag_emit_class_files. + * expr.c (expand_java_field_op): Don't optimize java.lang.XXX.TYPE + if flag_emit_class_files. + * parse.y (java_complete_tree): Pre-liminary support for + COMPONENT_REF - only to handle PRIMCLASS.TYPE. + + * parse.y (patch_synchronized_statement): Don't call monitorexit + unless block CAN_COMPLETE_NORMALLY. Propagate that flag properly. + + * java-tree.h (DECL_LOCAL_STATIC_VALUE): Removed - no longer used. + + * zipfile.h (opendir_in_zip): New declaration. + * jcf-io.c (saw_java_source): Moved to jcf-parse.c. + (opendir_in_zip): New function, using code from open_in_zip. + (open_in_zip): Call opendir_in_zip. + (find_class): Remove no-longer-used do_class_file parameter, + but add source_ok parameter. Change logic so if we find a .java file, + we don't look for .class in later classpath emtries. + * jcf-parse.c (load_class): Pass saw_java_source to find_class. + (jcf_figure_file_type): Only call open_in_zip if correct magic number. + * gjavah.c: Update call to find_class. + * jcf-dump.c: Likewise. + + * jcf-write.c (put_linenumber): Handle duplicate line numbers. + (generate_bytecode_insns): For EXPR_WITH_FILE_LOCATION, do + nothing if body is empty_stmt_node. + Various little fixes so SP gets correctly adjusted. + For NEW_ARRAY_INIT, handle IGNORE_TARGET. + For CALL_EXPR, test if static first. + (generate_classfile): Ignore fields that are DECL_ARTIFICIAL, + such as the ones we create for Object and Class. + Set and restore current_function_decl. + * parse.y: Check/set IS_AN_IMPORT_ON_DEMAND_P in read_import_dir. + (note_possible_classname): New function. + (read_import_entry): Removed. Merged with read_import_dir. + (read_import_dir): Don't call find_class - that only gives us + the first classpath entry having the needed package. + Use the struct buffer data structure from buffer.h. + (read_import_dir, find_in_imports_on_demand): The remembered + class names now use '.' (not '/') as package separator. + + * parse.y (java_complete_expand_methods): Call write_classfile + here, and not in java_expand_classes (which only gets first class). + +1998-12-12 Alexandre Petit-Bianco + + * parse.y (): Do maybe_generate_clinit last. + (register_fields): If a static fields has an initializer, just + chain it on ctxp->static_initialized, and handle later. + (java_complete_expand_methods): Force first. + (resolve_expression_name, resolve_field_access): Just get DECL_INITIAL + - it's already been completed. + (patch_initialized_static_field): New function. + (java_complete_field): Call it. + +1998-12-12 Per Bothner + + * expr.c (encode_newarray_type, build_new_array): New functions. + * java-tree.h: Declare build_new_array. + * jcf-write.c (patch_newarray): Use build_new_array. + + * expr.c (java_lang_expand_exp): Support NEW_ARRAY_INIT. + * jcf-write.c (generate_bytecode_insns): Support NEW_ARRAY_INIT. + + * parse.y (patch_new_array_init): Re-organize. + Now is passed the actual array (pointer) type of the value. + Set the type of the CONSTRUCTOR to be an ARRAY_TYPE. + (patch_array_constructor): Removed - merged into patch_new_array_init. + (java_complete_tree): Update patch_new_array_init. + + * jcf-write.c (find_constant_index): New function. + (generate_bytecode_insns): Use find_constant_index. + (generate_classfile): Use find_constant_index for ConstantValue. + +1998-12-11 Tom Tromey + + * expr.c (invoke_build_dtable): Renamed dtable -> vtable. + * decl.c (init_decl_processing): Renamed dtable -> vtable. + * class.c (make_class_data): Renamed dtable -> vtable, and + dtable_method_count -> vtable_method_count. + +1998-12-10 Alexandre Petit-Bianco + + * decl.c (long_zero_node, float_zero_node, double_zero_node): New + global variables, initialized. + * java-tree.h (long_zero_node, float_zero_node, double_zero_node): + Declared new global variables. + * lex.c (java_lex): Return long_zero_node, float_zero_node, + double_zero_node, integer_zero_node upon direct matching. + * parse.y (purify_type_name): Added function prototype. + (duplicate_declaration_error_p): Consider new_type as potentially + being a incomplete type. Use purify_type_name on type string. + (method_header): saved_type: unused variable removed. Don't figure + return type if method name is invalid. + (java_complete_tree): Set CAN_COMPLETE_NORMALLY after `node' was + processed by patch_unaryop. + (patch_unaryop): Fixed typo in comment. Re-convert pre/post + increment/decrement node into its original type after binary + numeric promotion on its operands. + +1998-12-10 Alexandre Petit-Bianco + + * parse.y (array_initializer:): Array init operand is NULL_TREE + instead of a TREE_LIST of NULL_TREEs when parsing `{}'. `{,}' is + now an error. Fixed indentation problems. + (patch_string): Handle error_mark_node as an argument. + (patch_new_array_init): Fixed indentation problems. + (array_constructor_check_entry): Removed check on null wfl_value. + Return an error if wfl_value's walk returns an error. + +1998-12-09 Alexandre Petit-Bianco + + * java-tree.def (NEW_ARRAY_INIT): New Java tree code. + * lex.c (java_lex): Remember column position before advancing one + token. Retain location information on OCB_TK. + * lex.h (typedef struct java_lc): Added new field. + * parse.h (GET_SKIP_TYPE): New macro. + (QUAL_DECL_TYPE): Redefined using GET_SKIP_TYPE. + * parse.y (build_new_array_init, patch_new_array_init, + patch_array_constructor, maybe_build_array_element_wfl, + array_constructor_check_entry): New function prototypes. + (switch_block:): Tagged . + (OCB_TK): Tagged . + (array_initializer:): Installed actions. + (variable_initializer): Build location information on element if + necessary. + (switch_statement:): Fixed indentation typo. + (switch_block:): Redefined default action. + (java_complete_tree): Handle NEW_ARRAY_INIT in MODIFY_EXPR:. + (patch_assignment): Removed duplicate code. + (maybe_build_array_element_wfl, build_new_array_init, + patch_new_array_init, patch_array_constructor, + array_constructor_check_entry): New functions. + +1998-12-07 Alexandre Petit-Bianco + + * parse.y (array_initializer): Tagged . + (variable_initializer:): Use default rule. + (array_initializer:): Defined actions. + (variable_initializers:): Likewise. + (resolve_qualified_expression_name): Use DECL_CONTEXT to build + non-static field accesses. + (patch_invoke): Fixed indentation typo. + (java_complete_tree): Likewise. + (build_labeled_block): Changed leading comment. Generate an error + in case of duplicate loop labels. + (patch_conditional_expr): Patch results of string concatenation + operations. + +1998-12-06 Per Bothner + + * constants.c (find_methodref_index): When the class is an interface, + generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef. + + * decl.c (finit_identifier_node): Use "$finit$", rather than + "" (which Sun's verifier rejects). + * parse.y (maybe_generate_finit): Leave out meaningless final flag. + (generate_field_initialization_code): Removed. + (fix_constructors) Don't add call to $finit$ here (wrong order). + (patch_method_invocation): Add $finit$ call here. + + * java-tree.h (CALL_USING_SUPER): New macro. + * parse.y (patch_invoke): Remove im local variable. + (patch_method_invocation, patch_invoke): Don't pass super parameter. + (patch_invoke): Use CALL_USING_SUPER instead of from_super parameter. + (resolve_qualified_expression_name): Maybe set CALL_USING_SUPER. + + * jcf-write.c (get_access_flags): Fix typo ACC_PUBLIC -> ACC_FINAL. + + * parse.y (java_complete_tree): Don't complain about unreachable + statement if it is empty_stmt_node. + + * jcf-write.c (find_constant_wide): New function. + (push_long_const): Use find_constant_wide. + + * jcf-write.c (generate_bytecode_insn): Fix bug in switch handling. + (generate_bytecode_insn): Use correct dup variant for MODIFY_EXPR. + Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set. + Emit invokeinterface when calling an interface method. + Emit invokespecial also when calling super or private methods. + + * jcf-write.c (generate_classfile): Emit ConstantValue attributes. + +1998-12-06 Per Bothner + + * jcf-dump.c (INVOKE): If invokeinterface, print number of args. + +1998-12-03 Alexandre Petit-Bianco + + * java-tree.h (java_layout_seen_class_methods): New function + prototype. + (LAYOUT_SEEN_CLASS_METHODS): Macro removed. + * jcf-parse.c (parse_class_file): Call java_layout_seen_class_methods. + * parse.h (PROMOTE_RECORD_IF_COMPLETE): New macro. + * parse.y (method_declarator:): Defined action. + (issue_warning_error_from_context): input_filename saved, set to + the appropriate value and restored after java_error is called. + (build_unresolved_array_type): Fixed comment. + (register_fields): Use PROMOTE_RECORD_IF_COMPLETE. + (method_header): Deal with return type the same way type are + handled for fields and method's parameters and local variables + types are handled. + (check_method_redefinition): Removed extra CR. + (declare_local_variables): Use PROMOTE_RECORD_IF_COMPLETE. + (java_layout_seen_class_methods): New function. + (java_layout_classes): Call java_layout_seen_class_methods. + +1998-12-03 Per Bothner + + * parse,y (patch_synchronized_statement): Set CAN_COMPLETE_NORMALLY. + +1998-12-03 Per Bothner + + * jcf-dump.c (main): Fix error message. + * jcf-path.c (add_entry): Style fix. + +1998-12-02 Alexandre Petit-Bianco + + * class.c (layout_class_method): Call build_java_argument_signature + on constructors too. + * parse.y (check_method_redefinition): Use TYPE_ARGUMENT_SIGNATURE. + (patch_method_invocation): Define a primary when resolving an + expression name. Augmented comment on code checking illegal `this' + usage. Loosened it test by accepting NEW_CLASS_EXPR. + +1998-12-01 Alexandre Petit-Bianco + + * class.c (layout_class_method): Don't report error on non-static + overriding static if the method is private. + * java-tree.h (finish_class): Prototype added. + * lex.c (java_get_line_col): Handle col argument -2 value. + * parse.h: All static method declarations moved to parse.y. + * parse.y: Now contains all static method declarations previously + found in parse.h. + (find_expr_with_wfl, missing_return_error, + unreachable_stmt_error): New functions. + (java_get_real_method_name): Identify constructors bearing class + names in source code compiled classes only. + (java_complete_expand_methods): Call missing_return_error. + (invocation_mode): Private methods invoked as static methods. + (java_complete_tree): Call unreachable_stmt_error. + +1998-12-01 Tom Tromey + + * Makefile.in (+target): Removed. + (+xmake_file): Likewise. + (+tmake_file): Likewise. + (.NOEXPORT): Removed duplicate. + +1998-11-27 Kaveh R. Ghazi + + * Makefile.in (jc1, jv-scan): Link with $(SUBDIR_OBSTACK). + + * jv-scan.c: Fix xmalloc prototype. Provide an xmalloc definition. + + * jvgenmain.c: Remove the xmalloc prototype, we get it from + libiberty.h. Provide an xmalloc definition. + + * jvspec.c: Remove the xmalloc prototype. + + * parse-scan.y: Include config.h and system.h. Don't include + OS headers or gansidecl.h. Don't prototype xmalloc/xstrdup. + Provide an xstrdup definition. + +1998-11-26 Alexandre Oliva + + * jcf-path.c (add_entry): Recognize ".jar" too. + * lang-specs.h: Likewise. + +1998-11-26 Per Bothner + + * jcf-write.c (generate_bytecode_insns): In Call_EXPR, handle + soft_monitorenter_node, soft_monitorexit_node, throw_node. + + * jcf-write.c (generate_bytecode_insns): + Handle pre/post-increment/decrement of long. + + * jcf-write.c (generate_bytecode_insns): + Handle missing exception handler (finally for synchronized). + +1998-11-25 Per Bothner + + * java-tree.h (end_params_node): Declare global. + * decl.c (end_params_node): New global. + (init_decl_processing, start_java_method): Use end_params_node for + end of list of parameter types. Follows correct gcc conventions. + * expr.c (pop_argument_types, pop_arguments): Likewise. + * lang.c (put_decl_node): Likewise. + * typeck.c (various places): Likewise. + * class.y (various places): Likewise. + * parse.y (various places): Likewise. + + * parse.y (java_complete_tree): Move CAN_COMPLETE_NORMALLY. + (build_jump_to_finally): Add missing CAN_COMPLETE_NORMALLY. + + * class.c: Add #include flags.h, remove no-longer needed declaration. + + * class.c (layout_class_method): Remove commented-out code, re-format. + Don't add vtable entry (or index) for private methods. + * expr.c (expand_invoke): A private method is implicitly final. + * class.c (make_class_data): If inlining or optimizing, + skip private methods. + + * class.c (finish_class): New function. Calls existing methods, + but alls emits deferred inline functions. + * jcf-parse.c (parse_class_file): Call finish_class. + * parse.y (java_complete_expand_methods): Likewise. + + * expr.c (build_java_binop): Explicit default, to silence -Wall. + + * expr.c (CHECK_PC_IN_RANGE): Add void cast to kill warnings. + +1998-11-25 Marc Espie + + * jcf-write.c (generate_bytecode_conditional): Fix typo. + +1998-11-24 Per Bothner + + * (generate_classfile): Always write class access flag with + ACC_SUPER set. + +1998-11-24 Alexandre Petit-Bianco + + * class.c (maybe_layout_super_class): New function. + (layout_class): Reorganized. Loop on class methods dispatched into + a new function. Call maybe_layout_super_class. + (layout_class_methods, layout_class_method): New functions. + * expr.c (expand_java_NEW): Call layout_class_methods on loaded + class. + (expand_invoke): Likewise. + * java-tree.h (all_class_list): New global variable declared. + (layout_class_methods, layout_class_method): New function + prototypes. + (LAYOUT_SEEN_CLASS_METHODS): New macro. + * jcf-parse.c (all_class_list): New global variable. + (load_class): Extended what class_or_name can be. Use parser + context mechanism to save globals before calling jcf_parse. + (jcf_parse_source): Don't parse twice if HAS_BEEN_ALREADY_PARSED_P + is set on the file name. + (jcf_parse): Layout class methods when Object is loaded, otherwise + record class in all_class_list for delayed method layout. + (parse_class_file): Use LAYOUT_SEEN_CLASS_METHODS. + * lang.c (put_decl_node): Decode into the decl context + class name. + * lex.c (java_allocate_new_line): Use xmalloc. + * parse.h (INCOMPLETE_TYPE_P): Redefined to work with incomplete + pointers, not TREE_LIST elements. + (struct parser_ctxt): Fixed comment indentations, added comments + and reordered some fields. + (java_check_methods): Function prototype removed. + * parse.y (java_push_parser_context): Use xmalloc. + (java_parser_context_restore_global): Pop extra pushed ctxp only + when there's nothing next. + (maybe_create_class_interface_decl): Fixed comment, add new + created class decl to all_class_list. + (method_header): Use GET_REAL_TYPE on argument's types. + (method_declarator): Use GET_REAL_TYPE, change type to the real + type in TREE_LIST dependency node. Build argument list with the + real type. + (create_jdep_list): Use xmalloc. Removed allocation error message. + (obtain_incomplete_type): Fixed leading comment. Broadened + incoming argument meaning. + (register_incomplete_type): Use xmalloc. Removed allocation error + message. + (safe_layout_class): Fixed leading comment. + (jdep_resolve_class): Reversed if statement condition and switch + if and else bodies. + (resolve_and_layout): Fixed leading comment. Broadened incoming + argument meaning. + (complete_class_report_errors): New local variable name, for + clarity. purify_type_name used for all error cases. + (java_get_real_method_name): Stricter check on constructors. + (java_check_regular_methods): Reverse methods list only if not + already laid out. Layout artificial constructor. + (java_check_methods): Deleted. + (source_start_java_method): Obtain incomplete type for patchable + method arguments. + (java_layout_classes): Fixed leading comment. Use + LAYOUT_SEEN_CLASS_METHODS, use a loop to check methods. Added else + statement to layout operation, reuse LAYOUT_SEEN_CLASS_METHODS + before returning. Fixed comments. + (java_expand_classes): Check for errors up front. + (patch_method_invocation): Class to search is resolved and laid + out. + +1998-11-24 Per Bothner + + * expr.c (java_lang_expand_expr): Add missing emit_queue. + + * javaop.h (int8): Removed - not used. + (jbyte): Redefine portably with correct signedness. + + * jcf-write.c (generate_bytecode_insns): Don't free sw_state.cases. + + * jcf-write.c (generate_bytecode_insns): Fix typo + OPCODE_getstatic to OPCODE_getfield. + + * java-tree.def (CASE_EXPR, DEFAULT_EXPR): Kind is 'x', not '1'. + * parse.y (java_complete_tree): For CASE_EXPR and DEFAULT_EXPR, + set TREE_SIDE_EFFECTS (otherwise expand_expr may skip them). + +1998-11-19 Alexandre Petit-Bianco + + * jcf-parse.c (jcf_parse_source): Function returned type is + void. Added prototype. + (jcf_parse): Function returned type is void. + (yyparse): Remove call to fclose on the last parsed file. + + * java-tree.h (jcf_parse): Changed jcf_parse prototype. + +1998-11-18 Alexandre Petit-Bianco + + * class.c (unmangle_classname): Set QUALIFIED_P when appropriate. + (layout_class): Cope with methods featuring WFL in decl names. + * decl.c (unqualified_object_id_node): New global variable, + initialized. + (build_decl_no_layout): Removed. + * expr.c (build_primtype_type_ref): Handle Double. + (java_lang_expand_expr): Fixed indentations. + * java-tree.h (CLASS_METHOD_CHECKED_P): Flag deleted. + (flag_wall, flag_redundant, flag_not_overriding, + flag_static_local_jdk1_1, unqualified_object_id_node): Global + variable declarations. + (build_decl_no_layout): Removed prototype. + (java_get_real_method_name): Added prototype. + (IS_UNCHECKED_EXPRESSION_P): Renamed IS_UNCHECKED_EXCEPTION_P. + (java_parse_abort_on_error): Macro now just returns. + * jcf-parse.c (jcf_parse_source): Check fclose returned + value. Call emit_register_classes if java_report_errors returns + zero. + * lanc.c (flag_wall, flag_redundant, flag_not_overriding, + flag_static_local_jdk1_1): New integer flags. + (lang_decode_option): New flags set here. + * parse.h (GET_REAL_TYPE, GET_METHOD_NAME): New macros. + (OBSOLETE_MODIFIER_WARNING): Issue error message conditionally to + the flag_redundant variable. + (SET_TYPE_FOR_RESOLUTION): Consider Object being java.lang.Object + when parsing java.lang.Object class. + (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Added terminal + NULL_TREE to build. + (resolve_qualified_expression_name): Fixed indentation. + (patch_array_ref): Changed prototype. + (not_initialized_as_it_should_p): Prototype removed. + (java_report_errors): Added function prototype. + * parse.y (formal_parameter:): Changed error message for not yet + supported final parameters. + (class_type_list:): Set both PURPOSE and VALUE of created + TREE_LIST to be class_type. + (primary_no_new_array:): Handle class literals on primitive types. + (parse_warning_context): Reinstalled correct force_error and + do_warning flags setups. + (java_report_errors): Changed prototype. Return java_error_count + value. + (variable_redefinition_error): Consider treating variable type as + a fake pointer. + (create_interface): Warn about redundant abstract modifier if + flag_redundant is set. Changed error message. + (lookup_field_wrapper): Save/restore globals before/after looking + up field. + (duplicate_declaration_error_p): Consider treating declaration + type as a fake pointer. + (register_fields): Extract real type from dependency node. Check + for duplicate field declaration after type adjustment. Use + DECL_INITIAL to store static final initialized values. + (method_header): Extract real function type from dependency node. + (check_abstract_method_header): Use GET_METHOD_NAME. + (obtain_incomplete_type): Layout fake pointer type. + (safe_layout_class): Don't try to check for methods before layout. + (java_complete_class): Don't check for correct throws clause + elements inheritance here. + (resolve_and_layout): Broadened name parameter meaning. + (reset_method_name): Use GET_METHOD_NAME. + (java_get_real_method_name): New function. + (java_check_regular_methods): Don't check methods in + java.lang.Object. Verify lineage of throws clause elements. Use + flag_no_overriding in warning report. + (check_throws_clauses): Don't check if class was from + bytecode. Use IS_UNCHECKED_EXCEPTION_P macro. + (java_check_methods): Don't set CLASS_METHOD_CHECKED_P flag. + (declare_local_variables): Use flag_static_local_jdk1_1 to report + warning on unsupported final local variables. Use build_decl + instead of build_decl_no_layout. Get real local variable type from + dependency node. + (source_start_java_method): Get real parameter type from + dependency node. Call build_decl instead of build_decl_no_layout. + (java_layout_classes): Reverse tree and layout type and class as + required. Mark class as loaded when done. + (resolve_field_access): Fixed indentation. Restricted condition + leading to static field access code generation. Set field_type + decl's TREE_TYPE if QUAL_DECL_TYPE not available. + (resolve_qualified_expression_name): Initialize type_found to + null. Handle static field resolved during qualification. Fixed + layout on non primitive field decl types. + (not_accessible_p): Fixed typo in comment. + (patch_method_invocation): Resolve and layout class to search from + type. + (lookup_method_invoke): Keep integer constant 0 as is. Resolve and + layout non primitive type, if necessary. Make method node only to + report errors. + (find_applicable_accessible_methods_list): Consider WFL'ed method + decl names. Fixed indentation. + (argument_types_convertible): Resolve and layout target type if + necessary. + (java_complete_tree): Fixed indentation problems. Rewrote + CALL_EXPR thrown exceptions check. Re-installed further processing + of the assignment in certain cases. + (patch_assignment): Call maybe_build_primttype_type_ref to perform + inlining on class literals. + (valid_builtin_assignconv_identity_widening_p): Cope with constant + 0 literal. + (valid_method_invocation_conversion_p): Likewise. + (patch_string): Temporary disable forbidden use of `this' in + explicit constructor invocations when doing string concatenation + within their scope. + (patch_unaryop): Added comment. Reinstalled code to disable + further check on assignment operation with cast expression RHS. + (patch_switch_statement): Fixed indentation. + (build_try_statement): Call build_decl instead of + build_decl_no_layout. + (patch_synchronized_statement): Likewise. + (patch_throw_statement): Use IS_UNCHECKED_EXCEPTION_P instead of + IS_UNCHECKED_EXPRESSION_P. + (check_thrown_exceptions_do): Changed leading comment. Resolve and + layout argument exception type. + (purge_unchecked_exceptions): Use IS_UNCHECKED_EXCEPTION_P instead + of IS_UNCHECKED_EXPRESSION_P. + +1998-11-18 Anthony Green + + * jcf-parse.c (yyparse): Open class file in binary mode. + +1998-11-15 Per Bothner + + * jvgenmain.c: Need to #include "gansidecl.h" (to get PROTO). + + * jcf-write.c (perform_relocations): Move check out one loop. + +1998-11-15 Anthony Green + + * Make-lang.in: Fix reference to srcdir. + * jv-scan.c: Add missing xmalloc prototype. + * jvgenmain.c: Ditto. + +1998-11-15 Per Bothner + + * decl.c (error_mark_node), java-tree.h: New global. + * parse.y: Use empty_stmt_node instead of size_zero_node. + (build_if_else_statement): If missing else, use empty_stmt_node. + + * parse.y (not_initialized_as_it_should_p): Removed, with its callers. + (java_complete_expand_method): Complain if return is missing. + (java_check_regular_methods): Comment out incorrect error check. + (not_accessible_p): Fix incorrect handling of protected methods. + (patch_method_invocation): Pass correct context to not_accessible_p. + (find_applicable_accessible_methods_list): Likewise. + (qualify_ambiguous_name): If ARRAY_REF, it's an expression name. + (java_complete_tree): For CASE_EXPR and DEFAULT_EXPR, set + TREE_TYPE (to void_type_node); otherwise expand_expr crashes. + (patch_if_else_statement): Fix setting of CAN_COMPLETE_NORMALLY. + + * jcf-write.c (CHECK_OP, CHECK_PUT): Add some error checking. + (push_int_const): Remove reundant NOTE_PUSH. + (generate_bytecode_insns - case STRING_CST): Do NOTE_PUSH. + (- case SWITCH_EXPR): Fix code generation bug. + (- case PREDECREMENT_EXPR etc): Remove redundant NOTE_PUSH. + (generate_classfile): More robust for abstract methods. + +1998-11-15 Anthony Green + + * Makefile.in: jv-scan and jvgenmain all require libiberty. + * Make-lang.in: Ditto. + + * jv-scan.c: Remove xmalloc and xstrdup definitions. + * jvgenmain: Ditto. + +1998-11-15 Per Bothner + + * jcf-parse.c (HANDLE_EXCEPTIONS_ATTRIBUTE): New macro. + + * jcf-io.c (find_class): Simpler/cleaner structure fixes a bug. + +1998-11-14 Per Bothner + + Allow uses of interface types to verify. This is not really + type-safe, but it matches what Sun does, and is OK as long as + there are appropriate run-time checks. + * verify.c (merge_types): If merging two interface types, + just set the result to java.lang.Object. + * expr.c (pop_type): Any interface is matches by java.lang.Object. + +1998-11-13 Tom Tromey + + * gjavah.c (main): Handle --output-class-directory argument. + * jvspec.c (lang_specific_driver): Translate `-d' into + -foutput-class-dir. + * jcf.h (jcf_write_base_directory): Declare. + * lang.c (lang_decode_option): Recognize -foutput-class-dir. + * lang-options.h: Mention -foutput-class-dir. + * jcf-write.c (jcf_write_base_directory): New global. + (make_class_file_name): Put generated .class file into `-d' + directory, or into source directory if -d not given. Function now + static. + (write_classfile): Free class file name. Handle case where class + file name is NULL. + (DIR_SEPARATOR): New macro. + Include + + * Makefile.in (prefix): New macro. + +1998-11-12 Per Bothner + + * parse.y (patch_invoke): Do less if flag_emit_class_files. + * expr.c (build_known_method_ref): Don't check flag_emit_class_files + here (done in patch_invoke instead). + (case_identity): Moved here from parse.y. + + * java-tree.h (CAN_COMPLETE_NORMALLY): New macro. + * parse.y (java_complete_tree etc): Maybe set CAN_COMPLETE_NORMALLY. + * parse.y (java_complete_tree): Re-order COMPOUND_EXPR in BLOCK + so they can be efficiently scanned without recursion. + Error it ! CAN_COMPLETE_NORMALLY first part of COMPOUND_EXPR. + * expr.c (java_lang_expand_expr): Expand statements of COMPOUND_EXPR + in BLOCK iteratively, rather than recursively. + + * parse.y (do_unary_numeric_promotion): New function. + (patch_unaryop, patch_binop, patch_array_ref): Use it. + + * parse.y (patch_newarray): Various fixes. + + Re-do handling of switch statements (for proper block scoping). + * parse.y: Add just a single block for the enture switch block, + but don't create any "case blocks". + (group_of_labels): Rmeoved unneeded non-terminal. + CASE_EXPR and DEFAULT_EXPR are added to current block. + * expr.c (java_lang_expand_expr): Inline SWITCH_EXPR here. + Now also need to handle CASE_EXPR and DEFAULT_EXPR. + * java-tree.h (SWITCH_HAS_DEFAULT): New macro. + * parse.y (wfl_operator, print_int_node): Make non-static. + (java_complete_tree): CASE_EXPR and DEFAULT_EXPR are now processed + as part of recursive scan of block. + (java_expand_switch ): Removed - inlined into java_lang_expand_expr. + (patch_switch_statement): Most tests move dinto java_complete_tree. + + * parse.y: Make various production be non-typed (void). + * parse.y (parse_error): Merged into issue_warning_error_from_context. + * parse.y (add_stmt_to_compound): Don't create/change extra node. + (patch_method_invocation_stmt): Renamed to patch_method_invocation. + + * jcf-write.c (struct jcf_handler): New type. + (struct jcf_switch_state): New type. + (SWITCH_ALIGN_RELOC, BLOCK_START_RELOC): New relocation kinds. + (alloc_handler, emit_unop, emit_reloc): New functions. + (adjust_typed_op): Add extra parameter ("max type" offset). + (emit_switch_reloc, emit_case-reloc): New function. + (generate_bytecode_conditional): Handle REAL_TYPE comparisons. + (generate_bytecode_insns): Support REAL_CST, switch statements, + exception handling, method calls, object/array creation, and more. + + * class.c: Remove some unused variables. + * constants.c (find_string_constant): New function. + (count_constant_pool_bytes): Fix to correctly handle wide constants. + * decl.c (complete_start_java_method): Don't _Jv_InitClass + if flag_emit_class_files. + +1998-11-12 Tom Tromey + + * jcf-io.c (find_class): Added explanatory comment. + + * jcf-path.c (add_entry): Look for `.zip' at end of filename. Add + trailing slash to `.zip' entries. + + * jvspec.c (lang_specific_driver): Correctly handle case where + GC_NAME not defined. + +1998-11-11 Tom Tromey + + * jvspec.c (GC_NAME): New define. + (lang_specific_driver): Use GC_NAME. Add GC_NAME to command line + if required. + * Make-lang.in (jvspec.o): Define WITH_GC_. + +1998-11-11 Per Bothner + + * jcf-dump.c (TABLE_SWITCH): Fix typos. + +1998-11-11 Tom Tromey + + * jcf-dump.c (main): Correctly recognize `--'-style long options. + +1998-11-10 Alexandre Petit-Bianco + + * class.c (is_compiled_class): Call safe_layout_class for class + compiled from source. + * conver.h (convert_to_integer, convert_to_real, + convert_to_pointer): Added prototypes. + * decl.c (init_decl_processing): Non longer push the decls of + `methodtable', `constants', `Class', `Field', `dispatchTable' + `jexception' and `Method'. + * expr.c (build_invokeinterface): New function. + (expand_invoke): static variable CLASS_IDENT now in + build_invokeinterface. Use build_invokeinterface. + (expand_java_field_op): Moved code to inline + java.lang.PRIMTYPE.TYPE into a function. + (build_primtype_type_ref): New function. + * java-tree.def (INSTANCEOF_EXPR): New tree code. + * java-tree.h (CLASS_METHOD_CHECKED_P, METHOD_DEPRECATED, + FIELD_DEPRECATED, CLASS_DEPRECATED): New flag macros. + (DECL_CONSTRUCTOR_P): Fixed typo in comment. + (DECL_LOCAL_STATIC_VALUE): New macro. + (build_invokeinterface, build_primtype_type_ref): New function + prototypes. + (java_parse_abort_on_error): Macro rewritten. + * jcf-parse.c (current_method): Add comment to declaration. + (parse_zip_file_entries, process_zip_dir, void parse_source_file): + Function prototypes fixed. + (jcf_parse_source): push/pop parser context. save/restore global. + (parse_source_file): Fixed leading comment. Now take a + IDENTIFIER_NODE as an argument. Doesn't check methods, layout + classes and pop the parser context anymore. + (yyparse): Push parser context, save globals, parse the source + file, restore globals and pop the parser context when processing a + source file. + * jcf.h (VERBOSE_SKELETON): Replaces SOURCE_FRONTEND_DEBUG define. + * lex.c (java_parse_doc_section): New function. + (java_lex): Call java_parse_doc_section when appropriate. Build an + operator around INSTANCEOF_TK. + * lex.h (java_lineterminator, java_sprint_unicode, + java_unicode_2_utf8, java_lex_error, java_store_unicode): + Prototypes rewritten. + (java_parse_escape_sequence, java_letter_or_digit_p, + java_parse_doc_section, java_parse_end_comment, java_get_unicode, + java_read_unicode, java_store_unicode, java_read_char, + java_allocate_new_line, java_unget_unicode, java_sneak_unicode): + Added function prototypes. + * parse.h (VERBOSE_SKELETON): Replaces SOURCE_FRONTEND_DEBUG + define. + (JNULLP_TYPE_P, CHECK_METHODS, CHECK_DEPRECATED, REGISTER_IMPORT): + New macros + (struct parser_ctxt): New fields: deprecated, + current_parsed_class_un, gclass_list. + (fix_method_argument_names, issue_warning_error_from_context, + resolve_package, lookup_package_type): New function prototypes. + (resolve_expression_name): Fixed function prototype. + (find_applicable_accessible_methods_list): Fixed indentation, added + extra argument in prototype. + (check_final_assignment, build_null_of_type, check_deprecation, + check_method_redefinition, reset_method_name, + java_check_regular_methods, java_check_abstract_methods, + maybe_build_primttype_type_ref): New function prototype. + * parse.y (conver.h): Include. + (INSTANCEOF_TK): Tagged . + (single_type_import_declaration): Use REGISTER_IMPORT macro. + (relational_expression:): Build binop for instanceof. + (java_push_parser_context): Remember ctxp->gclass_list across + contexts. + (java_pop_parser_context): Simply return if no context + exists. Remember gclass_list across contexts. + (issue_warning_error_from_context): New function. + (parse_error_context): Don't setup ctxp->elc here. Call + issue_warning_error_from_context instead. + (parse_warning_context): Likewise. + (maybe_create_class_interface_decl): Removed DECL_ARTIFICIAL + setup. Link new class/interface to ctxp->gclass_list. + (add_superinterfaces): Register interface as incomplete if not + loaded. + (create_class): Remember class unqualified name in + ctxp->current_parsed_class_un. Check class deprecation. + (register_fields): Check field deprecation. Remember static final + field value in DECL_LOCAL_STATIC_VALUE. Changed comment in part + processing INIT. + (method_header): New local variable ORIG_ARG. Use unqualified + current class name for check on constructor errors. Promote return + type if of record type. Argument list fix moved in + fix_method_argument_names, called here. Check method deprecation. + (fix_method_argument_names): New function. + (method_declarator): Promote record typed arguments. + (safe_layout_class): Check class methods before layout. + (java_complete_class): Compute field layout when patched. + (do_resolve_class): Try to load class after having it renamed + after the package name. + (get_printable_method_name): Use DECL_CONTEXT. + (reset_method_name): New function. + (check_method_redefinition): Use reset_method_name. + (java_check_regular_methods): New local variable + SAVED_FOUND_WFL. Temporarily reinstall overriding/hiding method + names for error report. Check for compile-time error when method + found has default (package) access. + (java_check_abstract_methods): Now takes an interface DECL node as + an argument. Also reinstall real name on unchecked + overriding/hiding methods for error report. + (java_check_methods): Fixed leading comment. Get classes to verify + from ctxp->gclass_list. Use CHECK_METHODS macro and set + CLASS_METHOD_CHECKED_P on class verification. + (lookup_java_method2): Get real method name if necessary. + (find_in_imports): Don't check package class access here. + (resolve_package, lookup_package_type): New functions. + (java_layout_classes): Fixed leading comment. Take classes to be + laid out from ctxp->gclass_list. + (java_complete_expand_methods): Don't expand native and abstract + methods. + (java_expand_classes): New function. + (resolve_expression_name): Use additional argument ORIG. Retrieve + values of static final field of primitive types. + (resolve_field_access): Handles static final field of promotive + type. + (resolve_qualified_expression_name): Handle STRING_CST as + primaries and package name resolution. Check deprecation on found + decls. Set where_found and type_found on non static field resolved + during qualification. Layout non primitive field decl types. + (check_deprecation): New function. + (maybe_access_field): Simplified. + (patch_method_invocation_stmt): Local variable CLASS_TYPE + removed. Reverse method's argument when primary is a type. Don't + use CLASS_TYPE to report problems, use IDENTIFIER_WFL + instead. Include abstract class in the list of class searchable + for constructors. Use DECL_CONTEXT of found method for access + checks. Check method deprecation. + (patch_invoke): Pay extra care to NEW_CLASS_EXPR type call when + converting arguments. Handle INVOKE_INTERFACE. + (lookup_method_invoke): Search constructor using existing + infrastructure (don't rely on lookup_java_constructor anymore). + (find_applicable_accessible_methods_list): Extra argument flag + LC. Now include constructor in the search. + (qualify_ambiguous_name): Conditional expression are primaries. + (not_initialized_as_it_should_p): static final are always + initialized. + (java_complete_tree): Pass extra NULL argument to + resolve_expression_name. Stricter test to carry on patching + assignments. New case for INSTANCEOF_EXPR. + (complete_function_arguments): Inline PRIMTYPE.TYPE read access. + (check_final_assignment, maybe_build_primttype_type_ref): New + functions. + (patch_assignment): Detect resolved static finals and carry normal + assignment error check on them. Inline PRIMTYPE.TYPE read access. + (try_builtin_assignconv): Access constant 0 on all primitive + types. + (valid_builtin_assignconv_identity_widening_p): Accept identical + types. Accept all promoted type on int type. + (valid_ref_assignconv_cast_p): Accept a null pointer to be + assigned to a reference. + (valid_method_invocation_conversion_p): Accept to check null + pointers. + (build_binop): Merge declaration and initialization of local + variable BINOP. + (patch_binop): New case for INSTANCEOF_EXPR. NE_EXPR to accept all + numeric types. Improved validity test for qualify operators on + references. + (patch_unaryop): Broadened rejection test for PREDECREMENT_EXPR + and PREINCREMENT_EXPR. Also detect resolved static finals of a + primitive type and issue the appropriate error message. + (resolve_type_during_patch): Mark class loaded when resolved. + (patch_cast): Allow null to be cased to reference types. + (build_null_of_type): New function. + (patch_array_ref): Handle array on references correctly. + (patch_return): Removed unused local variable MODIFY. Force + boolean to be returned as integers. Allows null to be returned by + a function returning a reference. + * typeck.c (convert_to_integer, convert_to_real, + convert_to_pointer): Prototypes moved to convert.h + (lookup_argument_method): Use method real name, if necessary. + +1998-10-30 Tom Tromey + + * class.c (build_class_ref): Changed name of primitive classes to + start with `_Jv_'. + + * class.c (make_class_data): Renamed fields: nmethods to + method_count, method_count to dtable_method_count. Always set + `state' field to 0. + * decl.c (init_decl_processing): Likewise. + +1998-10-28 Alexandre Petit-Bianco + + * class.c (layout_class): Don't mangle , produce + __finit instead. Don't verify artificial methods. + * decl.c (finit_identifier_node): New declared global. + (init_decl_processing): finit_identifier_node initialized. + * java-tree.def (CONDITIONAL_EXPR): New Java tree code. + * java-tree.h (finit_identifier_node): Declared as extern. + (struct lang_decl): New field called_constructor. + (DECL_CONSTRUCTOR_CALLS): Access macro to called_constructor. + (CLASS_HAS_FINIT_P): New macro. + (CALL_CONSTRUCTOR_P): Leading comment changed. Macro now checks + explicit constructor invocation. + (CALL_EXPLICIT_CONSTRUCTOR_P, CALL_THIS_CONSTRUCTOR_P, + CALL_SUPER_CONSTRUCTOR_P): New macros. + (write_classfile): Added prototype. + * jcf-parse.c (jcf_parse_source): Parse and remember for + generation if the file was seen on the command line. + (parse_source_file): Don't write the class file here. + (yyparse): Loop on files rewritten. Set current_jcf. + (parse_zip_file_entries): Parse class file only if it was found. + * lang.c (init_parse): Don't open command line provided filename + here. + (lang_parse): Don't set main_jcf anymore. + * parse.h (ABSTRAC_CHECK): Capitalized arguments. + (JCONSTRUCTOR_CHECK): New macro. + (JBSC_TYPE_P): New macro. + (IN_TRY_BLOCK_P, EXCEPTIONS_P): Fixed leading comment. + (COMPLETE_CHECK_OP_2): New macro. + (struct parse_ctxt): New field explicit_constructor_p. + (check_class_interface_creation): Fixed prototype indentation. + (patch_method_invocation_stmt): Prototype reflects added argument. + (patch_invoke): Likewise. + (complete_method_declaration, build_super_invocation, + verify_constructor_circularity, + build_this_super_qualified_invocation, get_printable_method_name, + patch_conditional_expr, maybe_generate_finit, fix_constructors, + verify_constructor_super, create_artificial_method, + start_artificial_method_body, end_artificial_method_body, + generate_field_initialization_code): New function prototypes. + * parse.y: Fixed leading comment + (constructor_header:, constructor_body:, block_end:): Rules tagged + . + (type_declaration:): Call maybe_generate_finit. + (method_declaration:): Action for method_body: placed in new + function complete_method_declaration, called here. + (constructor_declaration:): Defined actions. Removed leading + FIXME. + (constructor_header:): New rule with action. + (constructor_body:): Rule rewritten using block_begin: and + block_end:. Defined actions. + (constructor_declarator:, explicit_constructor_invocation:): + Defined actions. + (block:): Use new rules block_begin: block_end:. + (block_begin:, block_end:): New rules and actions. + (block_statements:): Fixed error message for explicit + constructors. + (method_invocation:): Call build_this_super_qualified_invocation + if primary is `this' or `super' was seen. + (conditional_expression:): Action defined. + (extra_ctxp_pushed_p): New static global flag. + (java_parser_context_save_global): Create parser context if + necessary. Use extra_ctxp_pushed_p to remember it. + (java_parser_context_restore_global): Pop extra parser context if + one exists. + (build_array_from_name): Array on primitive types are marked + loaded. + (register_fields): Restore new name in field initializer + expression if type was altered. Non static fields initialized upon + declaration marked initialized. + (maybe_generate_finit): New function. + (maybe_generate_clinit): Use create_artificial_method, + start_artificial_method_body, end_artificial_method_body. Generate + debug info for enclosed initialization statements. + (method_header): Fixed leading comment. Check constructor + flags. Detect constructor declarations and set DECL_CONSTRUCTOR_P + accordingly. + (complete_method_declaration, constructor_circularity_msg, + verify_constructor_circularity): New functions. + (get_printable_method_name): New function. + (check_method_redefinition): Don't rename methods. Fix + declared constructor names. Error message for + constructors modified. + (java_check_regular_methods): Local variable seen_constructor + renamed saw_constructor. Skip verification on constructors. Create + default constructor with create_artificial_method. + (java_check_methods): Removed unnecessary empty line. + (create_artificial_method, start_artificial_method_body, + end_artificial_method_body): New functions. + (java_layout_classes): Changed leading comment. Reverse fields + list if necessary. Always layout java.lang.Object if being + defined. + (java_complete_expand_methods): Verify constructor circularity. + (java_complete_expand_method): Call fix_constructor on + constructors. Local variable no_ac_found removed. Restore + bindings if method body expansion failed. + (fix_constructors, verify_constructor_super, + generate_field_initialization_code): New function. + (java_expand_classes): Fixed leading comment. Write class file + here. + (resolve_expression_name): Check for illegal instance variable + usage within the argument scope of an explicit constructor + invocation. + (resolve_qualified_expression_name): Pass extra from_super flag + when invoking patch_method_invocation_stmt. New case for + conditional expression when used as a primary. Check for error + when acquiring super. + (patch_method_invocation_stmt): Added extra argument super. New + local variable is_static_flag. Set class_to_search according to + the nature of the constructor invocation. Don't add `this' + argument when expanding NEW_CLASS_EXPR. Check for illegal method + invocation within the argument scope of explicit constructor + invocation. Set is_static according to is_static_flag. Provide + extra `super' argument to patch_invoke invocation. + (patch_invoke): New argument from_super. Loop on arguments + indentation fixed. Pass from_super to invocation_mode. New switch + case INVOKE_SUPER. Fixed error message in switch default case. + Don't use CALL_CONSTRUCTOR_P but rather a test on the tree node + value. + (invocation_mode): Return INVOKE_SUPER mode when appropriate. + (lookup_method_invoke): Fixed prototypes in candidates list. Error + message takes constructors into account. + (find_applicable_accessible_methods_list): Fixed indentation. + (qualify_ambiguous_name): Take explicit constructor invocation + into account. Deal with a conditional expression as a primary to + a method call. + (java_complete_tree): Added local wfl_op3. New CONDITIONAL_EXPR + case. Added extra argument to patch_method_invocation_stmt. + Register calls made to explicit constructor `this'. Don't call + save_expr in ARRAY_REF case when emitting class files. Check for + illegal use of this when expanding explicit constructor invocation + arguments. + (complete_function_arguments): Set and reset parser context + explicit_constructor_p field value when appropriate. + (build_super_invocation, build_this_super_qualified_invocation): + New functions. + (patch_assignment): Fixed typo. + (patch_unaryop): Check on final fields occurs only when a decl + exits. + (patch_return): Take constructors into account. + (patch_conditional_expr): New function. + * typeck.c (build_java_signature): Removed unnecessary empty line. + +1998-10-28 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (jcf-dump, gcjh): Link in $(LIBS) too. + +1998-10-28 Tom Tromey + + * decl.c (init_decl_processing): Renamed fields. + * class.c (make_class_data): Renamed bfsize, nfields, nsfields, + interface_len, msize fields. + + * class.c (make_class_data): Removed subclass_head and + subclass_next fields. + * decl.c (init_decl_processing): Removed subclass_head and + subclass_next fields. + +1998-10-28 Jeffrey A Law (law@cygnus.com) + + * jcf-write.c (emit_load_or_store): Avoid implicit int arguments. + * mangle.c (emit_unicode_mangled_name): Similarly. + +1998-10-26 Nick Clifton + + * jcf-parse.c (get_constant): Place braces around code to compute + 'd' when REAL_ARITHMETIC is not defined. + +1998-10-25 H.J. Lu (hjl@gnu.org) + + * Make-lang.in (jv-scan$(exeext)): Add stamp-objlist to + dependency. + +1998-10-23 Tom Tromey + + * lang-specs.h: `.zip' files are input to jc1. + +1998-10-22 Per Bothner + + * jvspecs.c: Add (but don't enable) support for combining multiple + .class and .java input filenames to a single jc1 invocation. + Add support for -C flag (copile to .class files). + Translate -classpath and -CLASSPATH arguments. + * lang-specs.h: Don't set %2 spec. + +1998-10-22 Tom Tromey + + * jcf-path.c (add_entry): Don't add trailing separator if entry is + a .zip file. + (add_path): Don't add trailing separator to non-empty path + elements. + + * lang.c (lang_decode_option): Check for -fclasspath and + -fCLASSPATH before examining other `-f' options. + + * java-tree.h (finalize_identifier_node): Don't declare. + * class.c (make_class_data): Don't push "final" field. + * decl.c (init_decl_processing): Don't push "final" field. + (finalize_identifier_node): Removed. + (init_decl_processing): Don't set finalize_identifier_node. + + * config-lang.in (stagestuff): Added jcf-dump and jv-scan. + +1998-10-11 Anthony Green + + * Make-lang.in (java): Depend on jcf-dump and jv-scan. + (JV_SCAN_SOURCES): New macro. + (JCF_DUMP_SOURCES): Likewise. + (jcf-dump$(exeext)): New target. + (jv-scan$(exeext)): New target. + +1998-10-22 Tom Tromey + + * Makefile.in (LEX): Removed. + (LEXFLAGS): Likewise. + (SET_BISON): New macro. + (BISON): Removed. + ($(PARSE_C)): Use SET_BISON. Run bison from srcdir to avoid + spurious diffs in parse.c. + ($(PARSE_SCAN_C)): Likewise. + (PARSE_DIR): New macro. + (PARSE_C): Use it. + (PARSE_SCAN_C): Likewise. + (PARSE_RELDIR): New macro. + + * jcf-io.c (saw_java_source): Define here, not in jcf-parse.c. + + * jcf-io.c (find_class): Use saw_java_source to determine when to + look for `.java' file. + * jcf-parse.c (saw_java_source): New global. + (yyparse): Set it if `.java' file seen. + + * Make-lang.in (JAVA_SRCS): Added jcf-path.c. + (GCJH_SOURCES): Likewise. + * Makefile.in (datadir): New macro. + (libjava_zip): Likewise. + (JAVA_OBJS): Added jcf-path.o. + (../jcf-dump$(exeext)): Depend on and link with jcf-depend.o. + (../gcjh$(exeext)): Likewise. + (jcf-path.o): New target. + * java-tree.h (fix_classpath): Removed decl. + * jcf-parse.c (fix_classpath): Removed. + (load_class): Don't call fix_classpath. + * parse.y (read_import_dir): Don't call fix_classpath. + * lex.h: Don't mention classpath. + * lex.c (java_init_lex): Don't initialize classpath. + * jcf-io.c (classpath): Removed global. + (find_class): Use jcf_path iteration functions. Correctly search + class path for .java file. + (open_in_zip): New argument `is_system'. + * jcf-dump.c (main): Call jcf_path_init. Recognize all new + classpath-related options. + * lang.c (lang_decode_option): Handle -fclasspath, -fCLASSPATH, + and -I. + (lang_init): Call jcf_path_init. + * lang-options.h: Mention -I, -fclasspath, and -fCLASSPATH. + * lang-specs.h: Handle -I. Minor cleanup to -M options. + Correctly put braces around second string in each entry. + * gjavah.c (main): Call jcf_path_init. Recognize all the new + classpath-related options. + (help): Updated for new options. + * jcf.h: Declare functions from jcf-path.c. Don't mention + `classpath' global. + * jcf-path.c: New file. + + * jcf-depend.c: Include jcf.h. + + * jcf-write.c (localvar_alloc): Returns `void'. + (localvar_free): Removed unused variable. + + * lang.c (OBJECT_SUFFIX): Define if not already defined. + (init_parse): Use OBJECT_SUFFIX, not ".o". + +1998-10-21 Alexandre Petit-Bianco + + * class.c (emit_register_classes): Renamed from + emit_register_class. + * java-tree.h (emit_register_classes): Prototype renamed from + emit_register_class. + * jcf-parse.c (yyparse): Call emit_register_classes once before + returning. + * parse.y (java_expand_classes): No longer register classes. + +1998-10-20 Alexandre Petit-Bianco + + * class.c (is_compiled_class): New local variable + seen_in_zip. Identify classes found in currently compiled source + file(s). + * decl.c (complete_start_java_method): Fixed typo. + * java-tree.h (CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P, + HAS_BEEN_ALREADY_PARSED_P, IS_A_COMMAND_LINE_FILENAME_P): New macros. + (CLASS_P): Moved around. + (java_parse_abort_on_error): Macro moved from jcf-parse.c + * jcf-parse.c (java_parse_abort_on_error): Macro moved to + java-tree.h + (jcf_parse_source): Changed leading comment. Removed unnecessary + fclose and CLASS_FROM_SOURCE_P marking. + (parse_source_file): New local variables remember_for_generation + and filename. Mark parsed file name identifier node. Removed block + executed when parse_only was null. Set remember_for_generation. + Use it as an argument to java_pop_parser_context. + (yyparse): New local variables several_files, list, next node and + current_file_list. Split ampersand separated file names into + current_file_list. Iterate through the list and parse accordingly. + * parse.h (java_pop_parser_context): New function prototype. + * parse.y (ctxp_for_generation): New static global variable. + (java_pop_parser_context): New argument generate. Link popped ctxp + to ctxp_for_generation list accordingly. + (java_complete_expand_methods): Fixed indentation. + (java_expand_classes): New function. + +1998-10-17 Per Bothner + + * Makefile.in: Link with libiberty.a instead of memmove.o. + +1998-10-16 Alexandre Petit-Bianco + + * lex.c (setjmp.h): No longer included. + * lex.h (setjmp.h): Included. + * parse.h (SET_TYPE_FOR_RESOLUTION): New macro. + (duplicate_declaration_error_p): Renamed from + duplicate_declaration_error. + (build_array_from_name): New function prototype. + * parse.y (setjmp.h): No longer included. + (variable_declarator_id): Define action. + (build_array_from_name): New function. + (duplicate_declaration_error_p): Renamed from + duplicate_declaration_error. Fixed leading comment. + (register_fields): Main `for' loop reorganized. Uses + SET_TYPE_FOR_RESOLUTION and build_array_from_name. + (method_declarator): Uses SET_TYPE_FOR_RESOLUTION and call + build_array_from_name. + (resolve_class): Set CLASS_LOADED_P on newly build array dimension + types. + (read_import_dir): Don't try to skip `.' and `..'. + (declare_local_variables): Uses SET_TYPE_FOR_RESOLUTION and + build_array_from_name. Main `for' loop reorganized. + (resolve_qualified_expression_name): When building access to a + field, use the type where the field was found, not its own type. + (maybe_access_field): Use field DECL_CONTEXT if the type where the + field was found is null. + (qualify_ambiguous_name): Sweep through all successive array + dimensions. + +1998-10-14 Alexandre Petit-Bianco + + * java-tree.h (pop_labeled_block, lang_printable_name, + maybe_add_interface, set_super_info, get_access_flags_from_decl, + interface_of_p, inherits_from_p, fix_classpath, + complete_start_java_method, emit_handlers, init_outgoing_cpool, + make_class_data, register_class, alloc_name_constant): New + function prototypes. + * lang.c (lang_decode_option): Set argc argument unused. Fixed + indentation. Added cast to remove warning. + (lang_printable_name): Set v argument unused. + (lang_print_error): Added argument to lang_printable_name call. + (java_dummy_print, print_lang_decl, print_lang_type, + print_lang_identifier, lang_print_xnode): All argument marked + unused. + * lex.c (java_unget_unicode): Removed unnecessary argument. + (java_allocate_new_line): Unused local variable is gone. + (java_read_char): Added parenthesis in expressions to remove + warnings. Added final return statement. + (java_read_unicode): Added parenthesis in expression to remove + warning. + (java_parse_end_comment): Fixed java_unget_unicode invocation. + (java_parse_escape_sequence): Likewise. + (java_lex): Unused local variables are gone. Fixed + java_unget_unicode invocation. + * lex.h (set_float_handler): Prototype added when JC1_LITE not + defined. + * parse.h (ERROR_CANT_CONVERT_TO_BOOLEAN): Fixed + lang_printable_name invocation in macro. + (ERROR_CANT_CONVERT_TO_NUMERIC, ERROR_CAST_NEEDED_TO_INTEGRAL): + Likewise. + (duplicate_declaration_error): Suppressed unused argument in + prototype. + (identical_subpath_p): Function declaration is gone. + (patch_invoke): Suppressed unused argument in prototype. + (patch_cast, build_labeled_block, check_thrown_exceptions): + Likewise. + * parse.y (setjmp.h): Included + (toplev.h): Likewise. + (field_declaration:): Suppressed unused local + (label_decl:): Fixed build_labeled_block invocation. + (java_pop_parser_context): Put extra parenthesis around assignment + in if. + (yyerror): Suppressed unused local variables. + (variable_redefinition_error): Fixed lang_printable_name + invocation. + (create_interface): Suppressed unused local variables. + (create_class): Likewise. + (duplicate_declaration_error): Suppressed unused argument. Fixed + lang_printable_name invocation. + (register_fields): Suppressed unused local variable. Fixed + duplicate_declaration_error invocation. + (method_header): Suppressed unused local variable. + (method_declarator, parser_check_super): Likewise. + (java_complete_class): Suppressed unused local variable. Fixed + fatal error message. + (complete_class_report_errors): Added default: in switch. + (java_check_regular_methods): Fixed lang_printable_name + invocations. + (check_throws_clauses): Likewise. + (java_check_abstract_methods): Suppressed unused local + variable. Fixed lang_printable_name invocation. + (read_import_entry): Added supplemental return statement. + (read_import_dir): Suppressed unused local variables. + (check_pkg_class_access, declare_local_variables): Likewise. + (source_start_java_method): Suppressed unused extern variable + declarations + (expand_start_java_method): Suppressed unused extern and local + variable declarations. + (java_complete_expand_methods): Likewise. + (java_complete_expand_method): Suppressed unused local variables. + (make_qualified_name): Likewise. + (resolve_qualified_expression_name): Added default: in + switch. Fixed lang_printable_name invocation. + (class_instance_creation_expression): Added parenthesis around + expressions. + (patch_method_invocation_stmt): Fixed lang_printable_name and + patch_invoke invocations. + (check_for_static_method_reference): Fixed lang_printable_name + invocation. + (patch_invoke): Suppressed unused arguments and local variables. + (lookup_method_invoke): Suppressed unused local variables. + (qualify_ambiguous_name): Added default: in switch. + (identical_subpath_p): Function removed. + (patch_assignment): Suppressed unused local variables. Suppressed + unnecessary if statement. Fixed lang_printable_name invocations. + (try_builtin_assignconv): Fixed lang_printable_name invocations. + (valid_ref_assignconv_cast_p): Parenthesis around + expression. Suppressed unused local variables. + (build_binop): Suppressed unused local variables. fixed + lang_printable_name invocations. + (string_constant_concatenation): Suppressed unused local + variables. + (patch_unaryop): Fixed lang_printable_name invocation. + (patch_cast): Suppressed unnecessary argument. Fixed + lang_printable_name invocation. + (patch_array_ref): Fixed lang_printable_name invocation. + (patch_newarray, patch_return, patch_if_else_statement): Likewise. + (build_labeled_block): Suppressed unused argument. + (generate_labeled_block): Fixed build_labeled_block invocation. + (build_loop_body): Suppressed unused local variables. + (patch_loop_statement): Likewise. + (patch_exit): Fixed lang_printable_name invocation. + (patch_switch_statement): Likewise. + (case_identity): First argument marked unused. + (patch_try_statement): Fixed lang_printable_name invocations. + (patch_synchronized_statement, patch_throw_statement): Likewise. + (check_thrown_exceptions): Fixed check_thrown_exceptions and + lang_printable_name invocations. + (check_thrown_exceptions_do): Suppressed unused argument. + +1998-10-14 Tom Tromey + + * jcf-write.c (write_classfile): Add output class file as target. + * lang-options.h: Added -MD, -MMD, -M, and -MM. + * jcf.h: Added declarations for dependency-tracking functions. + * lang-specs.h: Handle -M, -MM, MD, and -MMD. + * lang.c (lang_decode_option): Recognize -MD and -MMD. + (finish_parse): Call jcf_dependency_write. + (dependency_tracking): New global. + (DEPEND_SET_FILE): New define. + (DEPEND_ENABLE): New define. + (init_parse): Enable dependency tracking if required. + Include "flags.h". + * Makefile.in (JAVA_OBJS): Added jcf-depend.o. + (../jcf-dump$(exeext)): Depend on and link with jcf-depend.o. + (../gcjh$(exeext)): Likewise. + (jcf-depend.o): New target. + * Make-lang.in (JAVA_SRCS): Added jcf-depend.c. + (GCJH_SOURCES): Likewise. + * jcf-io.c (open_class): Call jcf_dependency_add_file. Added + dep_name argument. + (find_classfile): Added dep_name argument. + (find_class): Compute name of dependency. + (open_in_zip): Call jcf_dependency_add_file. + * gjavah.c (output_file): No longer global. + (usage): Don't mention "gjavah". + (help): Likewise. + (java_no_argument): Likewise. + (version): Likewise. + (main): Recognize and handle -M family of options. + (print_mangled_classname): Return is void. + (process_file): Handle case where output is suppressed. + (HANDLE_END_FIELD): Likewise. + (HANDLE_METHOD): Likewise. + * jcf-depend.c: New file. + +1998-10-13 Jeffrey A Law (law@cygnus.com) + + * java-tree.def: Add missing newline at EOF. + +1998-10-13 Tom Tromey + + * jcf-dump.c (process_class): Use FATAL_EXIT_CODE, not -1. + (main): Likewise. Exit with SUCCESS_EXIT_CODE at end of + function. + Include and "system.h". + (disassemble_method): Undefine RET to avoid clash with + config/i386/i386.h. + +1998-10-13 Alexandre Petit-Bianco + + * decl.c (runtime_exception_type_node, error_exception_type_node): + New global variables. + (init_decl_processing): Initialized. + * expr.c (java_lang_expand_expr): Set caught exception type to + null if catch handler argument doesn't exit. + * java-tree.def (SYNCHRONIZED_EXPR, THROW_EXPR): New Java specific + tree codes. + * java-tree.h (runtime_exception_type_node, + error_exception_type_node): Global variables declared. + (DECL_FUNCTION_THROWS): New macro. + (DECL_FUNCTION_BODY): Modified comment. + (DECL_SPECIFIC_COUNT): Likewise. + (struct lang_decl): New field throws_list. + (IS_UNCHECKED_EXPRESSION_P): New macro. + * lex.c (java_lex): Generate location information for THROW_TK. + * parse.h (PUSH_EXCEPTIONS, POP_EXCEPTIONS, IN_TRY_BLOCK_P, + EXCEPTIONS_P): New macros. + (enum jdep_code): New value JDEP_EXCEPTION. + (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT, + BUILD_ASSIGN_EXCEPTION_INFO, BUILD_THROW, SET_WFL_OPERATOR, + PATCH_METHOD_RETURN_ERROR): New macros. + (patch_method_invocation_stmt): Added new argument to prototype. + (patch_synchronized_statement, patch_throw_statement, + check_thrown_exceptions, check_thrown_exceptions_do, + purge_unchecked_exceptions, check_throws_clauses): New function + prototypes. + * parse.y Fixed typo in keyword section. + (throw:): Rule tagged . + (THROW_TK): Keyword tagged . + (method_header:): Last argument to call to method_header passed + from throws: rule. + (throws:, class_type_list:, throw_statement:, + synchronized_statement:, synchronized:): Defined actions. + (method_header): New local variable current. Register exceptions + from throws clause. + (java_complete_tree): Complete and verify exceptions from throws + clause. + (complete_class_report_errors): Error message on exceptions not + found + (java_check_regular_methods): Fixed typo. Shortcut on private + overriding methods. Changed error message on method + redefinition. Check for throws clause compatibility. + (check_throws_clauses): New function. + (java_check_abstract_methods): Use DECL_NAME for wfl or current + method. Changed error message on method redefinition. + (currently_caught_type_list): New static variable. + (java_complete_expand_methods): Purge unchecked exceptions from + throws clause list. Call PUSH_EXCEPTIONS before walk and + POP_EXCEPTIONS after. + (resolve_qualified_expression_name): Pass new argument as NULL to + patch_method_invocation_stmt. + (patch_method_invocation_stmt): New argument ref_decl. Invoke + PATCH_METHOD_RETURN_ERROR when returning with error. Reverse + argument list when appropriate. Use new argument if non null to + store selected method decl. + (patch_invoke): Convert if necessary args of builtin types before + forming CALL_EXPR. Argument list no longer reversed here. + (invocation_mode): Treat final methods as static methods. + (java_complete_tree): New cases for THROW_EXPR: and + SYNCHRONIZED_EXPR:. Check thrown exceptions when completing + function call. + (complete_function_arguments): No more RECORD_TYPE + conversion. Function parameter nodes no longer saved. + (valid_ref_assignconv_cast_p): Avoid handling null type. + (patch_binop): Fixed null constant reference handling. + (build_try_statement): Use BUILD_ASSIGN_EXCEPTION_INFO and + BUILD_THROW macros. + (patch_try_statement): Fixed comments. Record caught types in + list, push the list, expand try block and pop the list. + (patch_synchronized_statement, patch_throw_statement, + check_thrown_exceptions, check_thrown_exceptions_do, + purge_unchecked_exceptions): New functions. + * typeck.c (lookup_argument_method): Allow WFL in place of method + DECL_NAME during method definition check + +1998-10-09 Tom Tromey + + * gjavah.c (decode_signature_piece): New function. + (print_c_decl): Use it. Added `name_override' argument. + (print_method_info): Use name_override argument to print_c_decl. + (seen_fields): Removed. + (print_field_info): Don't update seen_fields. + (struct method_name): New structure. + (method_name_list): New global. + (print_method_info): Add new method to list of methods. + (name_is_method_p): New function. + (print_field_info): If field name has same name as method, then + change field name. + (process_file): Parse methods before fields. + (field_pass): New global. + (HANDLE_END_FIELD): Take field_pass into account. + +1998-10-07 Kaveh R. Ghazi + + * Makefile.in (keyword.h): Add -L KR-C -F ', 0' flags to gperf. + (keyword.h): Regenerate using gperf 2.7.1 (19981006 egcs). + +1998-10-03 Anthony Green + + * jvspec.c: Fix bug in jvgenmain_spec patch. + +1998-10-02 Alexandre Petit-Bianco + + * Makefile.in (lang.o:): Install dependency on java-tree.def. + * decl.c (soft_exceptioninfo_call_node): New global variable. + (init_decl_processing): Fixed indentation. soft_badarrayindex_node + takes extra integer argument. soft_exceptioninfo_call_node + initialized. + * except.c (java_set_exception_lang_code): New function + (method_init_exceptions): Called here. + (prepare_eh_table_type): New function. + (expand_end_java_handler): Called here. + * expr.c (build_java_throw_out_of_bounds_exception): Now features + one argument. Modified generation of call to + soft_badarrayindex_node to use new argument. + (build_java_arrayaccess): Pass faulty index value to + build_java_throw_out_of_bounds_exception. + (generate_name): New function. + (java_lang_expand_expr): New local variables node, current, + has_finally_p. Expand TRY_EXPR node. + (process_jvm_instruction): Replace top of the stack with thrown + object reference when entering exception handler. + * java-tree.def (TRY_EXPR, CATCH_EXPR, FINALLY_EXPR): New Java + specific tree codes. + * java-tree.h (soft_exceptioninfo_call_node): Declaration of new + global. + (DECL_SPECIFIC_COUNT): New macro. + (prepare_eh_table_type, java_set_exception_lang_code, + generate_name): New function declarations. + (match_java_method): Declaration deleted. + (FINALLY_EXPR_LABEL, FINALLY_EXPR_BLOCK, CATCH_EXPR_GET_EXPR): New + macros. + * lex.c (TRY_TK, CATCH_TK): Generate location information. + * parse.h (redefinition_error, refine_accessible_methods_list, + can_cast_to_p): Function declaration removed. + (classitf_redefinition_error, variable_redefinition_error, + parse_jdk1_1_error, find_applicable_accessible_methods_list, + find_most_specific_methods_list, argument_types_convertible, + enter_a_block, valid_builtin_assignconv_identity_widening_p, + valid_cast_to_p, valid_method_invocation_conversion_p, + try_reference_assignconv, add_stmt_to_compound, + build_jump_to_finally, build_tree_list, patch_try_statement, + java_get_catch_block): New function declarations. + * parse.y (string_buffer_type): Global variable deleted. + (group_of_labels, catches, catch_clause, catch_clause_parameter, + finally): Rules tagged . + (TRY_TK, CATCH_TK): Token tagged . + (class_body_declaration:, class_member_declaration:, + formal_parameter:, explicit_constructor_invocation:, + interface_member_declaration:, constant_declaration:, + primary_no_new_array:, class_instance_creation_expression:, + array_creation_expression:): Issue error on unsuported JDK1.1 + features. + (try_statement:, catches:, finally:): Define actions. + (catch_clause_parameter): New rule. + (catch_clause:): Use new rule catch_clause_parameter. + (parse_jdk1_1_error): New function. + (redefinition_error): Renamed classitf_redefinition_error. + (variable_redefinition_error): New function. + (check_class_interface_creation): Call + classitf_redefinition_error. + (java_complete_tree): Added error message on JDEP_TYPE: case. + (complete_class_report_errors): Fixed indentation. + (declare_local_variables): Call variable_redefinition_error. + (source_end_java_method): Call java_set_exception_lang_code and + emit_handlers where appropriate. + (java_method_add_stmt): Call add_stmt_to_block. + (add_stmt_to_block): New function. + (lookup_method_invoke): Fixed outside comment. new local variable + candicates. Call find_applicable_accessible_methods_list and + find_most_specific_methods_list when searching for a + method. Modified error report to list possible candidates when + applicable. + (find_applicable_accessible_methods_list, + find_most_specific_methods_list, argument_types_convertible): New + function. + (refine_accessible_methods_list): Function deleted. + (java_complete_tree): Handle TRY_EXPR. ARRAY_REF handling: save + expr (if applicable) before calling patch_array_ref. + (build_expr_block): Fixed BLOCK_EXPR_BODY assignment. + (enter_block): Fixed comment. + (enter_a_block): New function. + (patch_assignment): Reorganized. Call try_reference_assignconv for + references. Call valid_cast_to_p instead of can_cast_to_p. + (try_reference_assignconv, + valid_builtin_assignconv_identity_widening_p): New functions. + (valid_ref_assignconv_cast_p): Fixed inverted test on CLASS_FINAL. + (valid_cast_to_p, valid_method_invocation_conversion_p): New + functions. + (build_string_concatenation): Don't resolve StringBuffer. + (patch_cast): Fixed inverted arguments. + (patch_array_ref): Code to save array expr deleted. Call + valid_cast_to_p instead of can_cast_to_p. + (generate_labeled_block): Call generate_name. + (build_jump_to_finally, build_try_statement, java_get_catch_block, + patch_try_statement): New functions. + * typeck.c (match_java_method): Function deleted. + +1998-10-02 Anthony Green + + * jvspec.c: jvgenmain_spec uses different temporary file names. + +1998-10-02 Anthony Green + + * jvspec.c (lang_specific_driver): Fail if user specifies + --main= when not linking. + +1998-09-28 Tom Tromey + + * class.c (make_class_data): Push value for `thread' field. + * decl.c (init_decl_processing): Added `thread' field to class. + + * class.c (add_field): Always make static fields externally + visible. + +1998-09-26 Anthony Green + + * expr.c (build_java_athrow, + build_java_throw_out_of_bounds_exception, expand_invoke, + build_newarray, expand_java_multianewarray, build_java_monitor): + Update comments to reflect _Jv_* function names. + +1998-09-25 Per Bothner + + * decl.c (complete_start_java_method): DECL_RESULT is always promoted. + * decl.c (start_java_method): Handle PROMOTE_PROTOTYPES target macro. + * parse.y (expand_start_java_method): Likewise. + +1998-09-24 Per Bothner + + * expr.c (pop_arguments): Handle PROMOTE_PROTOTYPES target macro. + + * class.c (push_class): IDENTIFIER_SIGNATURE_TYPE is now POINTER_TYPE. + (add_field): No longer need to convert from RECORD_TYPE to pointer, + * expr.c: Remove no-longer-needed calls to promote_type. + * decl.c (give_name_to_locals): Liekwise. + * jcf-parse.c (get_class_constant): Compensate for new signatures. + * parse.y: Add/remove promote_type calls as appropriate. + * typeck.c (parse_signature_type): Returns POINTER_TYPE for objects. + (parse_signature_string): Likewise. + (build_java_array_type): Fix for now signature convenions. + + * lex.c (java_lex): Fix (from Alex) for JC1_LITE problem. + +1998-09-23 Tom Tromey + + * class.c (init_class_processing): libjava function renamed to + _Jv_RegisterClass. + +1998-09-22 Alexandre Petit-Bianco + + * expr.c (java_lang_expand_expr): New case for SWITCH_EXPR. + * java-tree.def: Fixed DEFTREECODE third argument. + (UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, NEW_CLASS_EXPR, THIS_EXPR, + CASE_EXPR, DEFAULT_EXPR): New tree codes for Java. + * java-tree.h: (IS_CRAFTED_STRING_BUFFER_P): New macro. + (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, + JAVA_THIS_EXPR): Now replaced by tree code definitions. + (CALL_CONSTRUCTOR_P): Now uses NEW_CLASS_EXPR. + * lang.c (java_tree_code_type, java_tree_code_length, + java_tree_code_name): New arrays. + (lang_init): Append Java tree node definitions to Gcc ones. + * lex.c (expression_obstack): Declared as extern when JC1_LITE + defined. + (java_init_lex): Initialize wfl_append, wfl_string_buffer, + wfl_to_string. + (java_lex): Allow declaration of empty string constants. Retain + location information on CASE_TK and DEFAULT_TK. + * parse.h (JFLOAT_TYPE_P, JINTEGRAL_TYPE_P, JNUMERIC_TYPE_P, + JPRIMITIVE_TYPE_P, JSTRING_TYPE_P, JSTRING_P, JREFERENCE_TYPE_P): + Modified to be more robust. + (BUILD_APPEND, BUILD_STRING_BUFFER): New macros. + (build_new_invocation, try_builtin_assignconv, + patch_switch_statement, string_constant_concatenation, + build_string_concatenation, patch_string_cst, patch_string, + java_expand_switch): New function declarations. + * parse.y: Rules related to switch and EH tagged . + (label_id): Set to NULL_TREE + (wfl_string_buffer, wfl_append, wfl_to_string): New static global + tree nodes. + (this_or_super:): Fixed indentation. + (statement:, statement_nsi:, statement_without_trailing_substatement:, + statement_expression:): Removed call to RULE on all sub-rules. + (switch_expression:, switch_labels:): New rules. + (switch_statement:, switch_block:, switch_block_statement_groups:, + switch_block_statement_group:, switch_labels:, switch_label:): + Defined actions. + (throw_statement:, synchronized_statement:, try_statement:): + Defined temporary actions. + (class_instance_creation_expression:): Call + build_new_invocation. Fixed indentation. + (field_access): Fixed indentation. + (method_invocation): Likewise. + (make_qualified_primary): Use THIS_EXPR. + (resolve_qualified_expression_name): Use NEW_CLASS_EXPR. When + resolving from SUPER, set *type_found. + (qualify_ambiguous_name): Use NEW_CLASS_EXPR. + (java_complete_tree): Removed unused local variable `location'. Case + for SWITCH_EXPR, sharing code with LOOP_EXPR. Use NEW_ARRAY_EXPR, + NEW_CLASS_EXPR, UNARY_PLUS_EXPR and THIS_EXPR. New string handling + on MODIFY_EXPR: and all binary operator tree code cases. Removed + STRING_CST: case. default: checks for patchable strings. + (complete_function_arguments): Transform string constant or + crafted StringBuffer if necessary. + (build_method_invocation): Fixed comments. + (build_new_invocation): New function. + (patch_assignment): Call try_builtin_assignconv to figure a valid + assignment conversion between builtin types. + (try_builtin_assignconv): New function. + (build_binop): Use URSHIFT_EXPR directly to call build. + (operator_string): Use UNARY_PLUS_EXPR. + (patch_binop): Use UNARY_PLUS_EXPR. Handle string concatenation + operator. + (do_merge_string_cste, merge_string_cste, + string_constant_concatenation, build_string_concatenation, + patch_string, patch_string_cst): New function. + (build_unary_op): Use UNARY_PLUS_EXPR and CONVERT_EXPR. + (patch_unaryop): Likewise. New test of valid ++/-- operands. + (build_newarray_node): Use NEW_ARRAY_EXPR. + (build_this): Use THIS_EXPR. + (build_return): Enable debug information on return statement. + (build_if_else_statement): Likewise. + (complete_labeled_statement): Fixed related comment. + (build_loop_body): Fixed comment. + (build_bc_statement): Enable debug information on break/continue + statements. + (patch_bc_statement): Fixed typos. Handle SWITCH statement + context. + (patch_switch_statement, case_identity, java_expand_switch): New + functions. + +1998-09-21 Per Bothner + + * buffer.h (BUFFER_INIT): New macro. + * jcf-write.c (struct jcf_partial): New type. Put global stuff here. + Pass (struct jcf_partial *state) to most functions. + (jcf_block, jcf_relocation): New types. + Support labels, branches, conditionals, loops. + +1998-09-21 Tom Tromey + + * decl.c (INT_TYPE_SIZE): Define as BITS_PER_WORD if not defined. + +1998-09-21 Per Bothner + + * decl.c (integer_type_node): Make it have INT_TYPE_SIZE. + * verify.c (verify_jvm_instructions): Use int_type_not (32 bits), + not integer_type_node (INT_TYPE_SIZ bits). + + * parse.y (patch_if_else_statement): Accept promoted_boolean_type_node. + + * jcf-reader.c (get_attribute): New HANDLE_EXCEPTION_TABLE hook. + * jcf-dump.c (print_exception_table): New function. + (disassemble_method): Better handling of wide instructions. + Make more robust for bad input. + +1998-09-30 Jeffrey A Law (law@cygnus.com) + + * jcf-write.c (OP2, OP4): Use "_i", not "_I" to avoid problems on + FreeBSD. + +1998-09-17 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (jcf-dump, jvgenmain): Link in memmove.o too. + +1998-09-17 Tom Tromey + + * Makefile.in ($(PARSE_H)): Removed target. + +1998-09-17 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (JAVA_OBJS): Add memmove.o + (memmove.o): New target & rules. + +1998-09-15 Tom Tromey + + * expr.c (expand_invoke): Don't generate a call to the class init + code. + +1998-09-14 Jeffrey A Law (law@cygnus.com) + + * Makefile.in: Add many missing dependencies. + * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h + as appropriate. + * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise. + * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise. + +1998-09-11 Per Bothner + + * decl.c (complete_start_java_method): If method is static (and + not private) call _Jv_InitClass. + * expr.c (expand_invoke): Don't call build_class_init. + + * jvspec.c (jvgenmain_spec): Fix spec for generated .o file. + +1998-09-10 Jeffrey A Law (law@cygnus.com) + + * Make-lang.in (GCJ): Define before using. + +1998-09-09 Jeffrey A Law (law@cygnus.com) + + * gjavah.c (java_no_argument): Renamed from no_argument to avoid + losing due to namespace pollution in GNU getopt.h + +1998-09-09 Tom Tromey + + * Make-lang.in (java.all.build): Don't mention jvgenmain or gcjh. + (java.all.cross): Likewise. + (java.rest.encap): Likewise. + +1998-09-08 Jeffrey A Law (law@cygnus.com) + + * gjavah.c (print_class_decls): Fix thinko in arglist + * jcv-io.c (find_classfile): Similarly. + +1998-09-07 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (INCLUDES): Update for recent toplevel gcc changes. + +1998-09-05 Tom Tromey + + * Make-lang.in (java.maintainer-clean): Don't remove parse.h. + (java.mostlyclean): Remove parse.c and parse-scan.c, not parse.h. + * Makefile.in (PARSE_C): New macro. + (PARSE_H): Likewise. + (PARSE_SCAN_C): Likewise. + ($(PARSE_C)): Target renamed from parse.c. + ($(PARSE_SCAN_C)): Target renamed from parse-scan.c. + (clean): Remove parse-scan.c as well. + (parse.o): Depend on $(PARSE_C). + +1998-09-05 Anthony Green + + * README, license.terms: Removed. + + * Make-lang.in, Makefile.in, class.c, config-lang.in, constants.c, + decl.c, except.c, expr.c, gjavah.c, java-except.h, java-tree.h, + javaop.def, javaop.h, jcf-dump.c, jcf-io.c, jcf-parse.c, + jcf-reader.c, jcf-write.c, jcf.h, jvgenmain.c, jvspec.c, + keyword.gperf, keyword.h, lang-options.h, lang-specs.h, lang.c, + lex.c, lex.h, mangle.c, parse-scan.y, parse.h, parse.y, typeck.c, + verify.c, zextract.c, zipfile.h: Fixed copyright assignment, + and Java trademark attribution. + +1998-09-04 Tom Tromey + + * Makefile.in: Use gcjh, not gjavah. + * config-lang.in (stagestuff): Use gcjh, not gjavah. + * Make-lang.in: Changed gjavah to gcjh everywhere. + +1998-09-03 Per Bothner + + * gjavah.c: Support new -prepend -add -append flags. + (print_method_info): Method is not virtual if class is final. + +1998-09-03 Alexandre Petit-Bianco + + * jv-scan.c: Fixed copyright assignment. + * keyword.gperf: Likewise. + * keyword.h: Likewise. + * lex.c: Fixed copyright assignment. + (java_lex): Push unicode back when parsing '<'. + * lex.h: Fixed copyright assignment. + * parse-scan.y: Likewise. + * parse.h: Fixed copyright assignment. + (build_debugable_stmt, complete_for_loop): New function prototypes. + * parse.y: Fixed copyright assignment. + (for_statement:): Call complete_for_loop. Set EXIT_EXPR to be + size_zero_node when completing a loop with no exit condition. + (for_statement_nsi:): Define action. + (for_init:, for_update:): Return size_zero_node when empty. + (declare_local_variables): Call build_debugable_stmt. + (build_debugable_stmt): New function. + (build_loop_body): Build debugable statement around loop + condition part. + (complete_loop_body): Take into account the debugable statement + around the EXIT_EXPR. + (complete_loop_body): New function. + (patch_exit_expr): Fixed condition inversion. + +1998-09-02 Tom Tromey + + * Make-lang.in (jvspec.o): Use GCC_THREAD_FILE to compute correct + name of thread define. + * jvspec.c (THREAD_NAME): New macro. + (GCLIB): Likewise. + (THREADLIB): Likewise. + (lang_specific_driver): Recognize attempt to link with thread + library or gc library. Recognize -ljava on command line so it + isn't linked against more than once. + +1998-09-02 Alexandre Petit-Bianco + + * parse-scan.y (report_main_declaration): Name of the class + containing `main' can be a qualified name. + +1998-08-31 Tom Tromey + + * config-lang.in: Changed gjavac to gjc everywhere. + * Make-lang.in: Changed gjavac to gjc everywhere. + +1998-08-27 Alexandre Petit-Bianco + + * Make-lang.in (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): New variable. + (java.install-common:): Loop over JAVA_TARGET_INDEPENDENT_BIN_TOOLS + and install the files. + * Makefile.in (JAVA_OBJS_LITE): New variable. + (compiler:): Now include jv-scan as a dependency. + (../jv-scan$(exeext), parse-scan.c): New targets. + (../jcf-dump$(exeext)): Was jcf-dump$(exeext) before. + * config-lang.in (compilers): Removed gcj, gjavah from the list. + * jcf-parse.c (parse_source_file): Call java_layout_classes and + check for errors even if parse_only. + * lex.c (java_init_lex): Reorganized and skip parts if JC1_LITE is + defined. + (yylex): New function. Uses java_lex body. + (java_lex): Removed commented out statement. Remove local variable + literal. Use SET_LVAL_NODE_TYPE and SET_LVAL_NODE where + appropriate. Use macros FLOAT_TYPE_NODE, DOUBLE_TYPE_NODE, + DCONST0, SET_FLOAT_HANDLER, SET_REAL_VALUE_ATOF, + SET_LVAL_NODE_TYPE and GET_TYPE_PRECISION. Don't create STRING_CST + if JC1_LITE is defined. Use BUILD_ID_WFL to build identifiers. Use + SET_MODIFIER_CTX, SET_LVAL_NODE, BUILD_ID_WFL and GET_IDENTIFIER + where appropriate. + (java_lex_error): Empty if JC1_LITE is defined. + (java_get_line_col): Return 0 if JC1_LITE is defined. + * lex.h (JAVA_FLOAT_RANGE_ERROR, JAVA_INTEGRAL_RANGE_ERROR, + SET_MODIFIER_CTX): Moved into the section containing the macros + conditionally defined by JC1_LITE. + (BUILD_OPERATOR,BUILD_OPERATOR2): Just return the TOKEN + argument if JC1_LITE is defined. + (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT, REAL_VALUE_ATOF, + REAL_VALUE_ISINF, REAL_VALUE_ISNAN): Preset to values if JC1_LITE + is defined. + (DCONST0, SET_FLOAT_HANDLER, GET_IDENTIFIER, SET_REAL_VALUE_ATOF, + FLOAT_TYPE, DOUBLE_TYPE, SET_MODIFIER_CTX, GET_TYPE_PRECISION, + SET_LVAL_NODE, SET_LVAL_NODE_TYPE, BUILD_ID_WFL): New macros, set + to different values according to JC1_LITE. + * parse.h (int_fits_type_p, stabilize_reference): Prototype not + declared if JC1_LITE set. + (jdep_code, typedef struct _jdep, typedef struct _jdeplist): Not + defined if JC1_LITE not set. + (struct parser_ctx): Reorganized and skip the jc1 front end part + if JC1_LITE set. + (java_layout_classes): New function definition. + (java_push_parser_context, java_init_lex, yyparse, yylex, + yyerror): Prototype always declared. All other static function + prototypes declared only if JC1_LITE is not set. + * parse.y (yyparse, yylex, yyerror): No longer declared here. Now + declared in parse.h. + (java_layout_classes): New function. + (java_complete_expand_methods): No longer layout the class here. + * parse-scan.y: New file. + * jv-scan.c: New file. + +1998-08-25 Tom Tromey + + * gjavah.c (main): Handle -friend option. + (friend_specs): New global. + (generate_access): Handle friend_specs. + (process_file): Likewise. + (MAX_FRIENDS): New macro. + (friend_count): New global. + (print_cxx_classname): Added `prefix' argument. Ignore arrays. + Changed all callers. + +1998-08-24 Per Bothner + + * jcf-dump.c (process_class): Move JCF_FINISH use to main, + (main): Handle processing all the entries of a named .zip archive. + * jcf-io.c (jcf_trim_old_input): New function. + * jcf.h (GET_u2_le,GET_u4_le,JCF_readu2_le,JCF_readu4_le): New macros. + +1998-08-24 Per Bothner + + * lang.c (flag_assume_compiled): Make default be on. + +1998-08-21 Per Bothner + + * jcf-dump.c: Add bunches of flags to control output more. + (process_class): New function; support printing more than one class. + (main): Support new --print-main and --javap flags. + * jcf-reader.c (IGNORE_ATTRIBUTE): New hook. + * jcf.h (CPOOL_INDEX_IN_RANGE): New macro. + +1998-08-20 Per Bothner + + Change mangling of dispatch table to match C++ vtable (w/thunks). + * class.c (build_dtable_decl), java-tree.h: New function. + (make_class_data): Call it. + * decl.c (init_decl_processing): Likewise. + +1998-08-19 Warren Levy + + * decl.c (init_decl_processing): Use _Jv_NewObjectArray, not + soft_anewarray; adjust args passed. + * expr.c (build_anewarray): Adjust args for soft_anewarray_node to + match _Jv_NewObjectArray. + +1998-08-19 Alexandre Petit-Bianco + + * decl.c (push_labeled_block, pop_labeled_block): New functions. + * expr.c (loopup_label): Call create_label_decl. + (create_label_decl): New function. + (java_lang_expand_expr): Call expand_start_bindings with argument + set to zero. + * java-tree.h Added space after PROTO in function declarations + when necessary. + (IS_FOR_LOOP_P, IS_BREAK_STMT_P): New macros. + (create_label_decl, push_labeled_block): New function + declarations. + * lex.c (label_id): Initialize. + (SUPER_TK, THIS_TK, RETURN_TK): Merged common actions in final + switch. + * parse.h Added space after PROTO in function declarations when + necessary. + (LOOP_EXPR_BODY_MAIN_BLOCK, LOOP_EXPR_BODY_UPDATE_BLOCK, + LOOP_EXPR_BODY_CONDITION_EXPR, LOOP_EXPR_BODY_LABELED_BODY, + LOOP_EXPR_BODY_BODY_EXPR, LOOP_HAS_LABEL_P, LOOP_HAS_LABEL_SKIP_P, + PUSH_LABELED_BLOCK, POP_LABELED_BLOCK, PUSH_LOOP, POP_LOOP): New + macros. + (struct parser_ctxt): New fields current_loop, + current_labeled_block. + (build_if_else_statement, patch_if_else_statement, + add_stmt_to_compound, patch_exit_expr, build_labeled_block, + generate_labeled_block, complete_labeled_statement, + build_bc_statement, patch_bc_statement, patch_loop_statement, + build_new_loop, build_loop_body, complete_loop_body): New function + declarations. + * parse.y (java_warning_count): New global variable. + (label_id): New static variable. + (BREAK_TK, CONTINUE_TK): Token tagged . + (block:): Return size_zero_node when block is empty. + (empty_statement:): Return size_zero_node. + (statement:): Implement supplemental action when for_statement: is + reduced. + (label_decl:): New rule. + (labeled_statement:): Rewritten using label_decl. Actions + implemented. + (labeled_statement_nsi:): Likewise. + (if_then_statement): Actions implemented. + (while_expression): New rule. + (while_statement:): Rewritten using while_expression. Actions + implemented. + (while_statement_nsi:): Likewise. + (do_statement_begin:): New rule. + (do_statement:): Rewritten using do_statement_begin. Actions + implemented. + (for_statement:): Rewritten using for_begin. Actions implemented. + (for_statement_nsi:): Likewise. + (for_header:, for_begin:): New rules. + (for_init:): Actions implemented. + (statement_expression_list:, break_statement:, + continue_statement:): Likewise. + (yyerror): Count number of issued warning(s). + (java_report_errors): Report error(s) and/or warning(s). + (java_complete_class): Use build_java_argument_signature to + recompute completed method signature. + (java_check_regular_methods): New locals method_wfl and aflags. + Use method_wfl instead of lookup_cl during error reports. Fixed + indentation and modified some error messages. Use + lang_printable_name in method instead of the DECL_NAME. New code + to issue warnings on methods not overriding corresponding methods + private to a different package. + (java_method_add_stmt): Call add_stmt_to_compound. + (add_stmt_to_compound): New function. + (java_complete_tree): Handle LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, + LOOP_EXPR, EXIT_EXPR and COND_EXPR. + (build_if_else_statement, patch_if_else_statement, + build_labeled_block, generate_labeled_block, + complete_labeled_statement, build_new_loop, build_loop_body, + complete_loop_body, patch_loop_statement, build_bc_statement, + patch_bc_statement, patch_exit_expr): New functions. + * typeck.c (build_java_signature): Build argument signature before + enclosing it in between parenthesis. + +1998-08-17 Warren Levy + + * Make-lang.in (JAVA_SRCS): Created for dependencies * Makefile.in + (JAVA_OBJS): Added reminder comment + +1998-08-13 Nick Clifton + + * gjavah.c (D_NAN_MASK): Append LL to the constant to force it to + be interpreted as a long long. + +1998-08-13 Warren Levy + + * decl.c (init_decl_processing): Use _Jv_InitClass, not + soft_initialise_class. Use _Jv_NewMultiArray, not + soft_multianewarray. Use _Jv_ThrowBadArrayIndex, not + soft_badarrayindex. Use _Jv_CheckCast, not soft_checkcast. Use + _Jv_CheckArrayStore, not soft_checkarraystore. Use + _Jv_LookupInterfaceMethod, not soft_lookupinterfacemethod. + +1998-08-12 Per Bothner + + * decl.c, java-tree.h (this_identifier_node, super_identifier_node, + length_identifier_node): New global tree node constants. + * parse.y (kw_super, kw_this, kw_length): Removed globals. + Replace uses by super_identifier_node etc. + * lex.c (kw_super, kw_this, kw_length): Don't initialize. + + * parse.y (resolve_field_access): Don't special-case ".length" if + flag_emit_class_files. + (patch_array_ref): Leave as ARRAY_REF if flag_emit_class_files. + * jcf-write.c (generate_bytecode_insns): Handle ARRAY_REF opcode + and ARRAY.length. + +1998-08-11 Per Bothner + + * decl.c (init_decl_processing): Remove unused method_type_node fields. + * class.c (make_method_value): Remove init for removed fields. + + * class.c (layout_class): Use build_java_argument_signature. + * java-tree.h (TYPE_ARGUMENT_SIGNATURE): New macro. + + * typeck.c (push_java_argument_signature): Removed. Merged into ... + (build_java_argument_signature): Use TYPE_ARGUMENT_SIGNATURE cache. + (build_java_signature): Don't use push_java_argument_signature. + + * typeck.c (lookup_argument_method): New function. + * parse.y (java_check_regular_methods): Use lookup_argument_method + instead of lookup_java_method2 followed by lookup_java_method. + + * parse.y (check_method_redefinition): Minor optimization. + + * jcf-write.c (generate_bytecode_insns): Handle RETURN_EXPR, + MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, and RDIV_EXPR. + +1998-08-10 Tom Tromey + + * Make-lang.in (jc1$(exeext)): Don't depend on c-common.o or + c-pragma.o. + + * gjavah.c (java_float_finite): Use K&R-style definition. + (java_double_finite): Likewise. + (generate_access): Now returns void. Changed all callers. + (last_access_generated): Removed. + (process_file): Only make a single pass over the .class file. + +1998-07-29 Per Bothner + + * class.c (get_dispatch_table): Add extra dummy vtable entry, + for compatibility for G++ (with -fvtable-thunks). + * expr.c (build_invokevirtual): Add one for extra dummy vtable entry. + + * gjavah.c (process_file): Use public inheritance for super-class. + +1998-07-29 Alexandre Petit-Bianco + + * lex.c (java_init_lex): Initialize ctxp->package. + * parse.h (struct parser_ctxt): package and package_len replaced + by tree package, an identifier node. Field method_decl_list is + gone. Fixed comments. + (lookup_field_wrapper, merge_qualified_name, not_accessible, + class_in_current_package): New function prototypes. + * parse.y (array_type:): Set class loaded flag on primitive type + arrays. + (package_declaration:): Assign ctxp->package to the + identifier node. + (method_invocation:): Handle invocation of method qualified by + `super'. + (single_type_import_declaration:): Removed ambiguity check. + (java_pop_parser_context): New local variable `next'. Reset and + set IMPORT_CLASSFILE_NAME flags on current and previous import + list. + (java_accstring_lookup): Use new local macro COPY_RETURN. + (lookup_field_wrapper): New function. + (parser_qualified_classname): Use merge_qualified_name. + (parser_check_super_interface): Broaden error message. + (do_resolve_class): Check for qualified class name in the current + compilation unit if appropriate. + (process_imports): Check for already defined classes. + (check_pkg_class_access): Got rid of call to + get_access_flags_from_decl. + (java_complete_expand_methods): Call safe_layout_class based on + the current class size. + (make_qualified_primary): Build a WFL qualification on primary if + none exists. + (merge_qualified_name): New function. + (make_qualified_name): Use merge_qualified_name. + (resolve_expression_name): Use safe_lookup_field. + (resolve_field_access): Got rid of call to get_access_flags_from_decl. + (resolve_qualified_expression_name): Likewise. Check on resolved + element accessibility. + (not_accessible_p, class_in_current_package): New functions. + (maybe_access_field): Got rid of call to get_access_flags_from_decl. + (patch_method_invocation_stmt): Merged common pieces. Check + accessibility of invoked method. + (check_for_static_method_reference): Add returned type in error + message. + (invocation_mode): Get rid of bogus check on PRIVATE methods. + (refine_accessible_methods_list): Merged two conditions in test. + (java_complete_class): Sanity check on stabilize_ref gone. + * zextract.c (read_zip_archive): Cast lseek second argument to long. + +1998-07-28 Per Bothner + + * class.c (hashUtf8String): Fix - use new JavaSoft specification. + +1998-07-24 Tom Tromey + + * gjavah.c (F_NAN): Removed. + (F_NAN_MASK): New macro. + (F_POSITIVE_INFINITY): Removed. + (F_NEGATIVE_INFINITY): Likewise. + (java_float_finite): Rewrote. + (D_NAN_MASK): Renamed. + (java_double_finite): Rewrote. + (D_POSITIVE_INFINITY): Removed. + (D_NEGATIVE_INFINITY): Likewise. + + * jcf-dump.c (print_constant): [CONSTANT_Double, CONSTANT_Float] + If verbose, print underlying representation of value in hex. + +1998-07-24 Per Bothner + + * buffer.h, buffer.c: New files. + * Makefile.in (JAVA_OBJS): Add buffer.o. + + Support locals variables and writing their debug entries to .class. + * jcf-write.c: Simplify some by user new buffer type. + (vode_buffer_grow): Removed. + (struct localvar_info): New type. + (localsvars, localvartable): New buffers. + (localvar_alloc, localvar_free): New functions. + (generate_bytecode_insns): Handle local variables. + (generate_classfile): Write LocalVariableTable attribute. + +1998-07-24 Alexandre Petit-Bianco + + * jcf-io.c (open_in_zip): Check the zipfile magic number. + * zipfile.h (ZIPMAGIC): New macro. + +1998-07-24 Tom Tromey + + * Makefile.in (gjavah.o): Updated dependencies. + (jcf-dump.o): Likewise. + (all.indirect): Use ../gjavah. + (../gjavah$(exeext)): Likewise. + (clean): Don't remove gjavah. + (clean): Remove parse.c, not java/parse.c. + * Make-lang.in (java): Added gjavah. + (gjavah$(exeext)): New target. + (GJAVAH_SOURCES): New macro. + (java.all.build): Added gjavah. + (java.all.cross): Likewise. + (java.rest.encap): Likewise. + * config-lang.in (compilers, stagestuff): Added gjavah. + +1998-07-23 Tom Tromey + + * gjavah.c (java_float_finite): New function. + (java_double_finite): Likewise. + (F_POSITIVE_INFINITY): New macro. + (F_NEGATIVE_INFINITY): Likewise. + (F_NAN): Likewise. + (D_POSITIVE_INFINITY): Likewise. + (D_NEGATIVE_INFINITY): Likewise. + (D_NAN): Likewise. + (print_field_info): Use java_float_finite and java_double_finite. + +1998-07-23 Per Bothner + + * parse.y (method_header): Name "this" implicit argument. + +1998-07-22 Per Bothner + + * jcf-write.c: Write out LineNumberTable attribute in .class file. + (linenumber_buffer, linenumber_ptr, linenumber_limit): New statics. + (put_linenumber): New function. + (generate_bytecode_insns, generate_classfile): Write line numbers. + +1998-07-22 Alexandre Petit-Bianco + + * java-tree.h (CALL_EXPR_FROM_PRIMARY_P): Changed in PRIMARY_P. + (lookup_name, build_known_method_ref, build_class_init, + build_invokevirtual, invoke_build_dtable, match_java_method, + build_field_ref, pushdecl_force_head, build_java_binop, + binary_numeric_promotion, build_decl_no_layout, + build_java_arrayaccess, build_newarray, build_anewarray, + build_java_array_length_access, build_java_arraynull_check): New + extern function prototypes. + (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, + JAVA_THIS_EXPR, CALL_CONSTRUCTOR_P): Macro definition moved in + java-tree.h. + * jcf-parse.c (init_outgoing_cpool): Set current_constant_pool_data_ref + to NULL + * jcf.h (jcf_out_of_synch): New extern function prototype. + * parse.h: Static/global function implemented in parse.y + prototyped and declarations moved at the end of the file. + (DECL_P): Check that the argument isn't null. + (JAVA_UNARY_PLUS_EXPR, JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, + JAVA_THIS_EXPR): No longer defined here. See java-tree.h + (QUAL_DECL_TYPE): New macro. + (PARAMS): Macro definition removed. + * parse.y: (yyparse, yyerror): Use PROTO instead of PARAMS. + (return_statement:): Call build_return. + (field_access:): Call make_qualified_primary in sub rule. + (method_invocation:): Build method invocation and call + make_qualified_primary when processing primaries. + (java_complete_class): Set IDENTIFIER_SIGNATURE_TYPE by calling + get_type_from_signature. + (java_check_regular_method): Extra integer 0 argument when calling + lookup_java_method2. + (lookup_java_interface_method2): Extra method DECL argument when + calling lookup_java_interface_method2. + (java_method_add_stmt): Set TREE_SIDE_EFFECTS on newly created + COMPOUND_EXPR node. + (java_complete_expand_method): Layout current class iff not + already done. Don't process interface's methods. + (java_complete_expand_method): Use super class only if it + exists. Use current class otherwise. + (make_qualified_primary): New function. + (resolve_expression_name): Process qualified expression or + expression from primary the same way. + (resolve_expression_name): Two last arguments to + resolve_field_access are now NULL_TREEs. + (resolve_field_access): New variable is_static. Local field must + be DECLs. is_static computed on field DECLs only. Append code in + where_found to the field access if necessary. Use QUAL_DECL_TYPE + to initialize field_type. + (resolve_qualified_expression_name): New local variable, + previous_call_static and is_static. Handle primaries with function + calls, casts, array references and `this'. `super' now handled as + `(super_class)this'. Use is_static to clarify boolean expressions. + Added code to handle case where a proper handle is required to + access a field. Use QUAL_DECL_TYPE where applicable. + (maybe_access_field): New function. + (patch_method_invocation_stmt): New arguments primary, where, + is_static. Branch of the test on CALL_EXPR_FROM_PRIMARY_P + deleted. Use `where' as a type to search from if specified. Check + for static method reference where forbidden. Append primary or + current_this to the argument list if not calling constructor nor + static methods. + (check_for_static_method_reference): New function. + (patch_invoke): Layout the class on which new is done if + necessary. + (lookup_method_invoke): Changed format to report errors on + methods. + (qualify_ambiguous_name): New local variable this_found. Now + handle things from primaries. Method call are considered + expression names. + (identical_subpath_p): NULL_TREE arguments to breakdown_qualified + changed into NULLs. + (not_initialized_as_it_should_p): Comply with the new DECL_P. + (java_complete_tree): New case fo RETURN_EXPR. Process function + call arguments in separate function. + (complete_function_arguments): New function. + (build_method_invocation): Don't use CALL_EXPR_FROM_PRIMARY_P + anymore. + (patch_assignment): Take the return function slot into account as + a RHS. Distinguish assignment from a return. + (valid_ref_assignconv_cast_p): Use build_java_argument_signature + when checking methods in interfaces. + (resolve_type_during_patch): NULL argument to unresolve_type_p + instead of NULL_TREE. + (patch_newarray): Fixed typo in comment. + (buid_this): Build a WFL with `kw_this' instead of a FIELD_DECL. + (build_return, patch_return): New functions. + * typeck.c (lookup_java_constructor): Fixed typo in comment. + +1998-07-21 Per Bothner + + * constants.c (find_name_and_type_constant, find_fieldref_index, + find_methodref_index): New methods. + * expr.c (build_invoke_non_interface): If flag_emit_class_files, + just return given method. Also, rename to build_known_method_ref. + (expand_invoke): Rename call to build_invoke_non_interface. + * java-tree.h, parse.h: Update prototype. + * parse.y, decl.c, jcf-parse.c: Suppress calls to back-end functions + (such as expand_expr_stmt) if flag_emit_class_files. + * jcf-write.c (RESERVE, OP1, OP2, OP4, NOTE_PUSH, NOTE_POP, + STACK_TARGET, IGNORE_TARGET): New macros. + (code_buffer, code_ptr, code_limit, code_S, code_SP_max): New globals. + (generate_bytecode_insn): New function to generate method's bytecode. + (generate_classfile): Node generate Code attribute for a method. + (code_buffer_grow, push_constant1, push_constant2, push_int_const, + push_long_const, field_op, adjust_typed_op, maybe_wide): + New functions used by generate_bytecode_insn. + + * typeck.c (signature_include_return): Remove variable. + (push_java_argument_signature, build_java_argument_signature): New. + (build_java_signature): Use push_java_argument_signature. + * parse.y: Use build_java_argument_signature instead of fiddling + with signature_include_return. + +1998-07-17 Tom Tromey + + * gjavah.c (print_c_decl): Always generate JArray<>* for array + types. + + * Makefile.in (all.indirect): Added gjavah$(exeext). + (gjavah$(exeext)): Added $(exeext). + (clean): Likewise. + +1998-07-16 Alexandre Petit-Bianco + + * class.c (layout_class): Call to java_layout_parsed_class replace + by safe_layout_class. + * expr.c (build_java_array_length_access): Removed static storage + class in the function definition. + (build_java_arraynull_check): Likewise. + Also fixed typos in two comments. + * lex.c (java_init_lex): Initialize static global kw_length. + (java_lex): Use BUILD_OPERATOR on RETURN_TK. + * lex.h (JAVA_FLOAT_RANGE_ERROR): Add extra argument to + java_lex_error. + (JAVA_INTEGRAL_RANGE_ERROR): Likewise. + * parse.h (resolve_no_layout): New static function declaration. + (get_identifier_in_static): Declaration removed. + (java_layout_parsed_class): Function name declaration changed to + safe_layout_class. + (build_newarray_node, patch_newarray, resolve_type_during_patch, + not_initialized_as_it_should_p, build_this): New static function + declarations. + (pushdecl_force_head, build_java_binop, int_fits_type_p, + binary_numeric_promotion, stabilize_reference, + build_decl_no_layout, build_java_arrayaccess): Extern function + declarations moved into their own section. + (build_newarray, build_anewarray, build_java_array_length_access, + build_java_arraynull_check): New extern function declarations. + (UNARY_PLUS_EXPR): Macro renamed into JAVA_UNARY_PLUS_EXPR. + (JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR, JAVA_THIS_EXPR): New + fake tree codes. + (CALL_CONSTRUCTOR_P): New macro. + * parse.y (kw_length): New static global tree node. + (return_statement): Tagged . + (RETURN_TK): Tagged . + (variable_declarator_id:): Build variable declaration with an + empty initialization value if a syntax error was found in the + initialization part of the variable declaration. + (statement_without_trailing_substatement:): return_statement: now + uses the default rule. + (return_statement:): Temporarily fixed to return NULL_TREE. + (primary_no_new_array:): Call build_this when THIS_TK was parsed. + (class_instance_creation_expression:): Class creation rules now + call build_method_invocation upon reduction. + (array_creation_expression:): Rules call build_newarray_node upon + reduction. + (dim_exprs:): Build a list of dimension expressions. + (dim_expr:): Store location of the OSB_TK in the dimension + expression node. + (method_invocation:): Added a new error rule. + (build_unresolved_array_type): WFL argument may also be an array + on a primitive type. Name of the argument changed to reflect this. + (method_declarator): Insert argument type at the beginning of the + argument type list and later reverse the list. + (unresolved_type_p): Argument 'returned' may be optionally + NULL_TREE. + (java_layout_class_from_source): Function renamed + safe_layout_class. + (resolve_and_layout): Now call resolve_no_layout and + safe_layout_class. + (resolve_no_layout): New function. + (purify_type_name): New function. + (complete_class_report_errors): Call purify_type_name during error + report on a type not found. + (process_imports): error_found local variable doesn't need to be + initialized to zero. + (declare_local_variables): New local type_wfl. Fixed typo in error + message. type_wfl assigned to unresolved type and used to register + incomplete type. Build a WFL around the variable initialization + statement so that debug info can be generated on it. + (source_start_java_method): Reverse argument list after they've + been processed. + (current_this): New static global variable. + (java_complete_expand_methods): Set current_this when appropriate. + (resolve_expression_name): Build correct static and non static + field access bearing a simple name. + (resolve_field_access): Resolve the length field of arrays. Handle + f.m() cases. + (patch_method_invocation_stmt): Set the type of the method + invocation to error_mark_node. This value is later overridden by a + valid type, if any. Don't handle qualified constructor invocation + as qualified method invocation. Call lookup_method_invoke with its + new flag. It's no longer necessary to access the selected method + as the value of a tree list. Handle constructor invocation. + (patch_invoke): Reverse argument list when invoking non interface + methods. Insert call to new as the first argument of the + constructor. + (invocation_mode): Return a INVOKE_STATIC is the invoked method is + defined within a final class. Return INVOKE_STATIC if the invoked + method is a constructor. + (lookup_method_invoke): New lc argument is a flag to indicate a + constructor lookup. Now handle constructor lookup. Choose the most + specific method in case several were matching the invocation + requirements. Return a method decl instead of a tree list featuring + one single method decl element. + (refine_accessible_methods_list): New lc flag argument to + indicate that a constructor is being looked up. + (not_initialized_as_it_should_p): New function. + (java_complete_tree): Now process fake tree codes + JAVA_NEW_ARRAY_EXPR, JAVA_NEW_CLASS_EXPR and JAVA_THIS_EXPR. Call + save_expr on resolved function call arguments. Case on + UNARY_PLUS_EXPR changed into a case on JAVA_UNARY_PLUS_EXPR. + (patch_assignment): LHS can be a field access expression. When + dealing with reference, lhs_type is the promoted type of the + rhs_type, not the RHS. Use not_initialized_as_it_should_p where + applicable. + (operator_string): JAVA_UNARY_PLUS_EXPR replaces UNARY_PLUS_EXPR. + (patch_binop): Use not_initialized_as_it_should_p where + applicable. + (build_unaryop): JAVA_UNARY_PLUS_EXPR replaces UNARY_PLUS_EXPR. + (patch_unaryop): Likewise. And use not_initialized_as_it_should_p + where applicable. + (resolve_type_during_patch): New function. + (patch_cast): Call resolve_type_during_patch to resolve type and + report error accordingly. + (patch_array_ref): Use not_initialized_as_it_should_p where + applicable. Array base expression is saved before being + used. Promote the type of an array elements if it contains non + builtin types. + (build_newarray_node, patch_newarray, build_this): New functions. + +1998-07-16 Tom Tromey + + * gjavah.c (print_c_decl): UTF8_GET increments pointer; don't + increment it in `for' statement. + (print_field_info): If number is inf or nan, don't print it. + (print_method_info): If method name is `delete', just ignore it. + (print_c_decl): Special-case jstringArray. + + * gjavah.c (help): New function. + (no_argument): New function. + (usage): Changed text. + (main): Rewrote argument handling. Now handles -v, --help, + --version. + (version): New function. + (found_error): New global. + (main): Return found_error. + (generate_access): Set found_error. + (print_c_decl): Likewise. + +1998-07-15 Tom Tromey + + * gjavah.c (print_c_decl): Don't print "," when examining field. + Skip type name when looking at "[L" types. + (process_file): Now static. + (generate_access): Now returns int. + (last_access_generated): New global. + (process_file): Clear last_access_generated; make multiple passes + over the class. + (print_field_info): Just return if generate_access returns true. + (print_method_info): Likewise. Also, allow functions to + pass through. + (print_c_decl): Added is_init argument. Print constructors + properly. + (print_cxx_classname): Use UTF8_GET to extract characters from + string. + (print_base_classname): New function. + (print_class_decls): New function. + (process_file): Use it. + (utf8_cmp): New function. + +1998-07-13 Nick Clifton + + * lang-options.h: Format changed to match changes in gcc/toplev.c + to implement a --help option. + +1998-07-10 Brendan Kehoe + + * decl.c (init_decl_processing): Revert change to dtable_type. + +1998-07-09 Per Bothner + + * java-tree.h (CLASS_P): Changed DECL_LANG_FLAG_7 -> TYPE_LANG_FLAG_4. + +1998-07-08 Brendan Kehoe + + * decl.c (init_decl_processing): Set CLASS_LOADED_P on dtable_type. + + * lang.c (lang_init): Default flag_exceptions to 1, without + checking to see if it's 2 first. + +1998-07-08 Jeffrey A Law (law@cygnus.com) + + * constants.c: Include "system.h". + * decl.c: Likewise. + * lang.c (flag_new_exceptions): Get via extern now. + (lang_init_options): New functions. Turn on flag_new_exceptions. + +1998-07-07 Alexandre Petit-Bianco + + * lex.c (java_lex): Return 0 when we see an invalid character in + the input. + + * lex.c (java_read_char): Specify extra argument when calling + java_lex_error. + (java_read_unicode, java_parse_end_comment, + java_parse_escape_sequence): Likewise, + (java_lex): Specify extra argument when calling + java_lex_error. Test that IDs are beginning with a legal character + for IDs. Handle invalid characters with an error message and a + call to java_lex_error. + (java_lex_error): Adjust column position by new argument + `forward'. Issue an error even if in the middle of reporting an + other error. + +1998-07-07 Brendan Kehoe + + * jcf-io.c (find_class): Zero out BUFFER before we use it, since + we don't explicitly put a null pointer when we're copying it. + +1998-07-07 Tom Tromey + + * gjavah.c (print_cxx_classname): New function. + (super_class_name): Likewise. + (print_super_fields): Removed. + (in_super): Removed. + (print_field_info): Never generate #defines. + (print_c_decl): Changed generated types to match JNI. No longer + print class name before method name. + (print_method_info): Print "static" before static methods. + Print "virtual" before non-final methods. + (usage): Use exit(1), not exit(-1). + (main): Likewise. + (print_field_info): Use %.17g to print a double. + (last_access): New globals. + (process_file): Initialize last_access. + (usage): Now static. + (ACC_VISIBILITY): New define. + (generate_access): New function. + (print_field_info): Call it. + (print_method_info): Likewise. Also, generate information for all + methods, not just native methods. Return void. + (print_c_decl): Return void. + (print_field_info): Return void. + +1998-07-02 Alexandre Petit-Bianco + + * Makefile.in (JAVABISONFLAGS): Specific flag for bison when + processing the jc1 grammar file. Prefix bison functions and + variables with java_. + (parse.c): Dependencies on parse.h and lex.h + * expr.c (build_java_arrayaccess): Function now global. + * java-tree.h: Comment reorganized to carry on previous + classification effort. + (RESOLVE_EXPRESSION_NAME_P, RESOLVE_PACKAGE_NAME_P, + RESOLVE_TYPE_NAME_P): New flags on WFLs. + * jcf-parse.c (parse_source_file): java_parse_source_file renamed + java_parse (new prefix java_ generated by bison). + (java_layout_parsed_class, java_register_parsed_class): Function + call removed. + (yyparse): Removed unnecessary call to init_outgoing_cpool. + * lex.c (static tree wfl_op): Variable deleted. + (java_init_lex): Initialize kw_super and kw_this. Initialize more + ctxp fields to NULL_TREE. + (java_lex): No longer create WFL for operators. Filename caching + mechanism deleted. Call BUILD_OPERATOR for `.', '(', '['. Strings + created as STRING_CST and later expanded. Removed extra argument + to BUILD_OPERATOR and BUILD_OPERATOR2. Build operators for THIS + and SUPER. + (build_wfl_node): Removed code in comments. + * lex.h (BUILD_OPERATOR, BUILD_OPERATOR2): No longer build a WFL but + store token and location data in the current bison token. + * parse.h: Removed pre-processor based symbol prefixes hack. Moved + static/extern function declaration at the beginning of the file. + (struct qualification): Data structure definition deleted. + (RESOLVE_CHAIN_REMAINDER): Macro definition deleted. + (qualify_ambiguous_name): Function declaration modified. Function + now returns nothing. + (build_array_ref, patch_array_ref, make_qualified_name, + resolve_qualified_expression_name, maybe_generate_clinit, + resolve_field_access): New static function declarations. + (build_java_arrayaccess): New extern function declaration. + (enum { RESOLVE_EXPRESION_NAME...}): Enum deleted. + (CALL_EXPR_PRIMARY): Macro deleted. + (EXPR_WFL_QUALIFICATION, QUAL_WFL, QUAL_RESOLUTION): New macros. + (struct parser_ctxt): Field initialized_final + removed. non_static_initialized, static_initialized: New fields. + * parse.y (static tree kw_super, static tree kw_this): New global + static. + (%union): tree wfl field of operator member replaced by int + location. WFLs are non longer created for operators. + (OSB_TK, DOT_TK, THIS_TK, SUPER_TK): Tagged . + (qualified_name:): Now calls make_qualified_name to build the + identifier. + (type_declaration:): Consider generating when class + parsing completed. + (variable_declarator:): Directly build an assignment node when the + variable is initialized when declared. + (this_or_super:): Build a WFL and set current location when THIS + or SUPER are parsed. + (expression_statement:): Wrap statement around a WFL. + (primary_no_new_array:): Fixed typo. Changed value returned by + THIS_TK because of its new type (temporary). + (dim_exprs:): Temporary fix because of OSB_TK's new type. + (field_access:): Build qualified name with SUPER. + (method_invocation:): Fixed returned value because of SUPER's new + type. + (array_access:): Use OSB_TK location information. + (post_increment_expression:, post_decrement_expression:, + unary_expression:, pre_increment_expression:, + pre_decrement_expression:, unary_expression_not_plus_minus:, + cast_expression:, multiplicative_expression:, + additive_expression:, shift_expression:, relational_expression:, + equality_expression:, and_expression:, exclusive_or_expression:, + inclusive_or_expression:, conditional_and_expression:, + conditional_or_expression:, assignment:): Use new location/token + information available on operators. + (create_class): Set super_decl_type to NULL_TREE when processing + java.lang.Object. + (register_fields): Field initialization is now a MODIFY_EXPR + node. Chain initialization code to the matching lists (according + to the field declaration modifiers). + (maybe_generate_clinit): New function. + (method_header): Don't set method's DECL_NAME to a WFL when adding + methods to java.lang.Object. + (resolve_and_layout): Now can return NULL_TREE if the type + resolution fails. Otherwise, return the class DECL instead of its + TYPE. + (check_method_redefinition): Don't patch method DECL_NAME if it + belongs to java.lang.Object. + (process_imports): Simply assign error_found to the value returned + by check_pkg_class_access. + (declare_local_variables): Don't use their init statements (if + any) when parsing error were previously found. Reuse MODIFY_EXPR + build during parsing as an init statement. + (java_method_add_stmt): Now return the current method body. + (java_layout_parsed_class, java_register_parsed_class): Functions + removed. + (java_complete_expand_methods): Initialize the constant pool on a + per class basis. Layout the classes before expanding their method + bodies. Don't try expand artificial constructor code if error were + found. Make the classes data and register them if no error were + found. + (java_complete_expand_method): Retrieve an artificial constructor + argument list before entering its body. Assign the top block to + the artificial constructor function body and set types of declared + blocks and compound statements to void. Walk method body if not an + artificial constructor. + (make_qualified_name, cut_identifier_in_qualified): New functions. + (resolve_expression_name): Fixed comments. Save/restore the + current class CLASS_LOADED_P flag value. Build non qualified + static field access and handle qualified expression names. + (resolve_field_access, resolve_qualified_expression_name): New + functions. + (patch_method_invocation_stmt): Use the new expression resolution + scheme, calling resolve_field_access when the function call is + resolved as an expression. + (qualify_ambiguous_name): Function rewritten to work on qualified + expression produced by make_qualified_name. + (java_complete_tree): Promote type when function's argument are + RECORD_TYPEs. While processing the MODIFY_EXPR case: don't patch + the assignment to discover further errors if RHS is a expression + name that fails to evaluate. Declare LHS initialized even though + the assignment failed. Don't use the location variable and removed + extra argument in patch function calls. Now handle the ARRAY_REF + case and build internal string representation when STRING_CSTs are + walked. + (build_method_invocation): Don't wrap function call around a WFL. + (build_assignment): Likewise. Use the operator location + information. + (patch_assignment): Handle array access LHSs. Handle error + provenance, resulting in a better error report. + (build_binop): Use op_location from operator as binop location + information. + (build_unaryop, build_incdec, build_cast): Likewise. + (patch_binop): Extract location information from the node. Fixed + typo in error message. + (patch_unary_op): Extract location information from the node. + (build_array_ref, patch_array_ref): New functions. + +1998-07-01 Tom Tromey + + * expr.c (expand_java_INSTANCEOF): Changed calling convention to + match _Jv_IsInstanceOf. + * decl.c (init_decl_processing): Use _Jv_NewArray, not + soft_newarray. Use _Jv_IsInstanceOf, not soft_instanceof. + +1998-06-30 Tom Tromey + + * decl.c (init_decl_processing): Functions are now named + _Jv_MonitorEnter and _Jv_MonitorExit, and return jint. + +1998-06-29 Per Bothner + + * java-tree.h (load_class): Add prototype. + * class.c (is_compiled_class): Add missing arg to load_class. + * expr.c (expand_java_NEW): Call load_class. + * parse.y (process_import): Removed bogus use of void return value. + +1998-06-25 Per Bothner + + * decl.c, java-tree.h (soft_athrow_node): Renamed to soft_node. + Function name is "_Jv_Throw" instead of "soft_athrow". + * decl.c, java-tree.h (soft_new_node): Renamed to alloc_object_node. + Function name is "_Jv_AllocObject" instead of "soft_new". + Takes an extra parameter (object size). + * expr.c: Update calls. + +1998-06-24 Per Bothner + + * lex.c (java_get_line_col): Handle end-of-file. + * except.c (expand_end_java_handler): Handle null type (i.e. finally). + +1998-06-24 Andrew MacLeod + + * lang.c (lang_init): Make -fexceptions the default. + * except.c (maybe_start_try, maybe_end_try): Don't do anything if + exception handling is not turned on. + +1998-06-23 Andrew MacLeod + + * lang.c (flag_new_exceptions): Make this this default. + * decl.c (end_java_method): Call emit_handlers. + * except.c (method_init_exceptions): Set language code and version. + (expand_start_java_handler): Enable exception, and call + expand_eh_region_start. + (expand_end_java_handler): Enable exception, and set up catch blocks. + (emit_handlers): New routine to generate the saved handlers. + * java-except.h (emit_handlers): Add prototype. + +1998-06-12 Per Bothner + + We used to have three different representations of the constant pool: + the CPool structure, the tree_constant_pool, and the constructures + used to build the Class object (which may need class and string + constants) in compiled code. None were appropriate for compiling + to .class files, so I did a major overhaul. + + First, the tree_constant_pool array was removed. Things were + modified to the CPool structure in the JCF could be used. + Second, a "capacity" field was added to the CPool, and functions + written to search for a matching constant, adding one if not found. + The code that generated the Class object was changed to use a CPool. + The actual TREE_LISTs used to build the CONSTRUCTORs used for + the static Class object are now only in build_constants_constructor. + Finally, I wrote code which can generate a .class file (including its + constant pool) from the RECORD_TYPE of a class. This is a big step + on the way to compiling Java source into .class files. + + * jcf-write.c: New file. Writes out a RECORD_TYPE as a .class file. + * Makefile.in (JAVA_OBJS): Added jcf-write.o. + + * java-tree.h (CPOOL_UTF, CONSTANT_ResolvedFlag, + CONSTANT_ResolvedString, CONSTANT_ResolvedClass): New macros. + (NAME_AND_TYPE_NAME, NAME_AND_TYPE_SIGNATURE, COMPONENT_REF_NAME, + COMPONENT_REF_NAME_AND_TYPE, COMPONENT_REF_SIGNATURE): Redefined. + (COMPONENT_REF_CLASS): Replaced by COMPONENT_REF_CLASS_INDEX. + (lang_type): Removed constant_pool field. + * jcf.h (CPool): Renamed size to count. Added field capacity. + (CPOO_COUNT, CPOOL_UINT, CPOOL_USHORT1, CPOOL_USHORT2, + CPOOL_FINISH, CPOOL_INIT, CPOOL_REINIT): New macros. + Rewrite some of the old JCF_XXX in terms of CPOOL_XXX macros. + + * constants.c (current_constant_pool_tags, current_constant_pool_data, + current_constant_pool_length), java-tree.h: Replaced by outgoing_cpool. + * constants.c (build_constants_constructor): Use new outgoing_cpool. + (set_constant_entry, find_constant1, find_constant2, + find_class_constant, count_constant_pool_bytes, write_constant_pool, + find_utf8_constant, find_class_or_string_constant): New functions. + + * jcf-parse.c (load_class): Don't save/restore tree-constant_pool. + (get_constant): Use current_jcf.cpool instead of tree_constant_pool. + (give_name_to_class, get_class_constant): Likewise. + * jcf-parse.c, java-tree.h (tree_constant_pool): Removed. + (get_name_and_type_constant, get_ref_constant): Removed. + * parse.h (parser_ctxt): Remove field tree_constant_pool. + * parse.y: Don't save/restore tree_constant_pool. + * verify.c (verify_jvm_instructions): Update for new approach. + * expr.c (expand_invoke, expand_java_field_op): Likewise. + + * lang-options.h: Added -femit-class-file, -femit-class-files. + * lang.c (flag_emit_class_files), java-tree.h: New flag. + (lang_f_options): Added "emit-class-file(s)". + + * expr.c (build_java_arrayaccess): Generate more efficient array + bounds checking, by using unsigned compare. + + * expr.c (expand_invoke): Re-arrange error checks to make more robust. + +1998-06-10 Alexandre Petit-Bianco + + * parse.h: New comment on the handling of unresolved type + identifiers. JDEPs are now part of the jdep_code enum. + (typedef struct jdep): Now use enum jdep_code or int, depending on + availability. Both are narrowed down to an 8 bits bitfield. + (CALL_EXPR_PRIMARY): Fixed comment. + +1998-06-10 Tom Tromey + + * Make-lang.in (java): Added gjavac and jvgenmain. + (java.start.encap): Depend on gjavac. + (java.rest.encap): Depend on jvgenmain. + + * Make-lang.in (JAVA_INSTALL_NAME): Name is gjavac, not c++. + (JAVA_CROSS_NAME): Likewise. + (java.all.build): Depend on jvgenmain and gjavac. + (java.all.cross): Depend on jvgenmain and gjavac-cross. + (jvgenmain$(exeext)): New target. + (java.install-common): Wrote. + * config-lang.in (compilers, stagestuff): Added gjavac and + jvgenmain. + +1998-06-10 Dave Brolley + + * lang.c (lang_decode_option): New argc/argv interface. + +1998-06-09 Alexandre Petit-Bianco + + * ChangeLog: Fixed entries not compliant with the Gnu Coding Standard. + * decl.c (build_decl_no_layout): New function. + * expr.c (java_lang_expand_expr): Layout declarations found in + blocks before they're pushed. + * jcf-parse.c (load_class): Save current line when parsing class + file. + (parse_source_file): Register class before expanding their + methods. + * lang.c (put_decl_node): Produce `null' when `void *' is + processed. + * lex.c (static tree wfl_op): New static global, for error report + on casts. + (java_init_lex): wfl_operator and wfl_op initialized + here. Filename caching added for wfl_op. Return wfl_op when `(' is + parsed. + * parse.h (build_unaryop, build_incdec, patch_unaryop, build_cast, + patch_cast, valid_ref_assignconv_cast_p, can_cast_to_p, + build_unresolved_array_type): New static function definitions. + (build_decl_no_layout): New extern function declared. + (OBSOLETE_MODIFIER_WARNING): Report error only if the WFL of the + faulty modifier exists. + (TYPE_INTERFACE_P, TYPE_CLASS_P): New macros. + (ERROR_CAST_NEEDED_TO_INTEGRAL): Error message tuned. + (UNARY_PLUS_EXPR): New fake operator. + (struct parser_ctxt): New field osb_number. + * parse.y (static tree wfl_operator): New static WFL for operator + bound error messages. + (DECR_TK, INCR_TK): Moved. + (OP_TK): Tagged . + (array_type:): Now call build_unresolved_array_type. + (dim_expr:): Count the number of '[' seen. + (post_increment_expression, post_decrement_expression, + pre_increment_expression, pre_decrement_expression, + unary_expression_not_plus_minus, unary_expression:): Actions are + now building the corresponding unary expressions. + (cast_expression:): Actions are now building cast expressions. + (build_unresolved_array_type): New function. + (create_interface): Reset the number of declared interfaces. + (create_class): Likewise. + (method_header): Methods declared within the scope of an interface + are now implicitly set public and abstract. + (java_complete_class): Variable's and parameter's type are patched + with a promoted type. + (declare_local_variables): Resolved non builtin types are promoted + before being used to build a variable decl. Removed type patch + posted on variable initialization statement. + (source_start_java_method): Use build_decl_no_layout to build the + decl of a parameter of incomplete type. + (java_register_parsed_class): Process interfaces too. Call + rest_of_decl_compilation on each processed class declarations. + (java_complete_expand_methods): Don't attempt to expand things in + interfaces. + (java_complete_tree): Process CONVERT_EXPR, even though it always + has a type. Propagate error_mark_node to node's type too. Promote + method's call argument type and return error_mark_node if + argument's completion didn't work. MODIFY_EXPR can have a WFL as a + RHS. Fixed bug in the handling of bogus RHS of a fixed type. Now + handle unary operator nodes. + (build_assignment): Added comment. + (print_int_node): New function. + (patch_assignment): New second argument. New error handling. Use + print_int_node. Handle references. Use can_cast_to_p to issue + different error message according to the context and check upon + the initialization of the RHS. + (can_cast_to_p, valid_ref_assignconv_cast_p): New functions. + (operator_string): Handle more operators. + (patch_binop): No longer use a function static + wfl_operator. Improved error message on shift distance. + (build_unaryop, build_incdec, build_cast, patch_unaryop, + patch_cast): New functions. + +1998-06-05 Per Bothner + + * jvspec.c: New file. + * Make-lang.in: New rules to build gjavac from jvspec.c and ../gcc.c. + + * java-tree.h (identifier_subst): Add declaration. + +1998-06-04 Tom Tromey + + * jvgenmain.c (main): Generate call to JvRunMain. + + * class.c (make_class_data): Push value for "sync_info" field. + * decl.c (init_decl_processing): Push "sync_info" field. + +1998-06-03 Per Bothner + + * typeck.c (build_java_array_type): Set TYPE_NAME to actual + Java (source) name, not signature. + Set TYPE_ALIGN to (at least) that of element_type. + +1998-06-02 Per Bothner + + * class.c: Moved classname-mangling-rekated code to ... + * mangle.c: ... this new file. + * jvgenmain.c: New program (needs mangle.c) to generate main program. + * Makefile.in: Update for above changes. + +1998-06-01 Alexandre Petit-Bianco + + * expr.c (truthvalue_conversion): Convert integer and floating + point value to their truth value. + * lex.c (java_lex): Handle the `null' literal. + * parse.h (JREFERENCE_TYPE_P, DECL_P): New macros. + (ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC, + ERROR_CAST_NEEDED_TO_INTEGRAL, ERROR_VARIABLE_NOT_INITIALIZED): + New macros. + + * parse.y: Reorganization/documentation on token declaration. + (binop_lookup[]): New added new tree codes. + (relational_expression): Build corresponding binary operators. + (equality_expression, conditional_and_expression, + conditional_or_expression): Likewise. + (java_complete_class): Fix crash in debug message. + (java_complete_tree): Check initialization of method call + arguments. Further bogus node evaluation to detect more error + during assignments. Handles more binary operators. + (patch_assignment): Use DECL_P. + (build_binop): Fix crash when using URSHIFT_EXPR, a Java only tree + code. + (operator_string): Handle more case. Compacted source. + (patch_binop): Changed function comment. Checking for + uninitialized first operand takes the compound assignment into + account and uses DECL_P. Checking for uninitialized second operand + delayed to routine's end. Use macros to issue type bound error + messages and issue messages on both operands if their types are + different. Force fixed type into node. Handle all binary + operators. + +1998-05-27 Alexandre Petit-Bianco + + * java-tree.h (COMPOUND_ASSIGN_P, INITIALIZED_P): New macros. + * lex.c (java_lex): Use BUILD_OPERATOR and BUILD_OPERATOR2 to + build operator node and return tokens. + * lex.h (BUILD_OPERATOR, BUILD_OPERATOR2): New macros. + * parse.h (java_complete_tree): Changed returned type in prototype. + (build_method_invocation, build_assignment, patch_assignment, + patch_binop): New static function declarations. + (JFLOAT_TYPE_P, JNUMERIC_TYPE_P, JPRIMITIVE_TYPE_P, JSTRING_P, + BUILD_EXPR_WFL): New macros. + * parse.y (enum tree_code binop_lookup[]): New static for token to + TREE_CODE lookup. + (%union): Parser union has new sub-structure `operator'. + (ASSIGN_TK, MULT_ASSIGN_TK, DIV_ASSIGN_TK, REM_ASSIGN_TK, + PLUS_ASSIGN_TK, MINUS_ASSIGN_TK, LS_ASSIGN_TK, SRS_ASSIGN_TK, + ZRS_ASSIGN_TK, AND_ASSIGN_TK, XOR_ASSIGN_TK, OR_ASSIGN_TK, + ASSIGN_ANY_TK): Tokens tagged `operator'. + (EQ_TK, GTE_TK, ZRS_TK, SRS_TK, GT_TK, LTE_TK, LS_TK, BOOL_AND_TK, + AND_TK, BOOL_OR_TK, OR_TK, INCR_TK, PLUS_TK, DECR_TK, MINUS_TK, + MULT_TK, DIV_TK, XOR_TK, REM_TK, NEQ_TK, NEG_TK, REL_QM_TK, + REL_CL_TK, NOT_TK, LT_TK): Tokens tagged `operator'. + (assignment_operator:): Rule tagged `operator'. + (expression_statement:): Re-installed default rule. + (method_invocation:): Sub rules call build_method_invocation. + (postfix_expression:): Don't attempt to resolve name here. Just + return an ID. + (multiplicative_expression:): Sub-rules build corresponding binop + expression node. + (additive_expression:, shift_expression:, and_expression:, + exclusive_or_expression:, inclusive_or_expression:): Likewise. + (assignment:): Sub rule invoke build_assignment. + (assignment_operator:): Default rules on sub rules. + (force_error): Added documentation on this variable. + (declare_local_variables): Build initialization calling + build_assignment. + (expand_start_java_method): Removed unused rtx declaration. Mark + arguments as already initialized. + (java_method_add_stmt): Type of built COMPOUND_EXPR set to NULL. + (java_complete_expand_methods): Don't process next method if + completion of the previous one triggered errors. + (java_complete_expand_method): Call source_end_java_method if no + error were found during completion. + (resolve_expression_name): Use IDENTIFIER_LOCAL_VALUE to retrieve + locals declaratilon. Handle names found within a class. Return + error_mark_node when things aren't found. + (patch_method_invocation_stmt): Return error_mark_node on failures. + (patch_invoke): Removed unused local. Return the correct node. + (java_complete_tree): Now returns a value. The BLOCK section binds + local identifiers and the type of a BLOCK is now void. Assign the + result of operand completion on COMPOUND_EXPR. Assign the + encapsulated node of a WFL to the result of its completion, except + when the node is an identifier. Now handle MODIFY_EXPR and several + binary operators. Return error_mark_node on errors. + (build_method_invocation, build_assignment, patch_assignment, + build_binop, operator_string, patch_binop): New functions. + * typeck.c (binary_numeric_promotion): New function. + +1998-05-21 Per Bothner + + * class.c (identifier_subst): New convenience wrapper for ident_subst. + Replace most uses of ident_subst by identifier_subst. + + * class.c (push_class_static_dummy_field): Removed function. + (build_class_ref): Find Class object decl by looking up "CNAME.class", + instead of looking got "class" static field. Create that decl here. + (class_identifier_node): Removed; no longer needed. + (init_class_processing): Don't init class_identifier_node. + * jcf-parse.c (jcf_parse): Don't call push_class_static_dummy_field. + Do nreverse 0 times (instead of twice) for Object and Class. + * parse.y (java_layout_parsed_class): No push_class_static_dummy_field. + +1998-05-20 Per Bothner + + * jcf-parse.c (parse_class-file): Set lino to smallest line number, + while initializing linenumber_count and linenumber_table. + Do it before init_function_start (which calls emit_line_note). + * expr.c (expand_byte_code): Don't need to clear lineno here. + +1998-05-18 Tom Tromey + + * class.c (append_gpp_mangled_type): If `qualifications' is >=9, + then mangle number as _N_. + + * class.c (mangle_class_field): New function. + (build_class_ref): Set assembler name of class reference using + mangle_class_field. + (push_class_static_dummy_field): Likewise. + +1998-05-17 Michael Tiemann + + * parse.y (source_start_java_method): Use TREE_SET_CODE instead + of assigning to TREE_CODE. The latter method exploits a feature + of GCC that is not ANSI compliant. + +1998-05-12 Alexandre Petit-Bianco + + * decl.c (pushdecl_force_head): New function. + (pushlevel): Removed conditional printf. + (complete_start_java_method): Don't enter local variable scope if + function is compiled from source code. + * expr.c: parse.h now included + (java_lang_expand_expr): New function. + * jcf-io.c (find_class): Use SOURCE_FRONTEND_DEBUG instead of + printf. Terminate buffer when doing directories. + * jcf-parse.c (parse_source_file): Call lang_init_source before + parsing and before code generation. + * jcf.h (SOURCE_FRONTEND_DEBUG): Macro redefined to conditionally + use printf if the macro is defined. + * lang.c (lang_init): Install lang_expand_expr hook on + java_lang_expand_expr. + (java_dummy_print): New function. + (lang_init_source): New function. + * lex.c (java_lex): Remember location of an opening brace at the + second nesting level. + (java_is_eol): Unget character seen after a CR if it is EOF. + * parse.h: Now includes lex.h + (SOURCE_FRONTEND_DEBUG): Macro redefined to conditionally use + printf if the macro is defined. + (expand_start_java_method, build_expr_block, enter_block, + exit_block, lookup_name_in_blocks, maybe_absorb_scoping_blocks): + New static function declarations. + (pushdecl_force_head): New extern function declaration. + (INCOMPLETE_TYPE_P): New macro. + (JDEP_PARM, JDEP_TYPE): New entries in JDEPs enum. + (BLOCK_CHAIN_DECL, BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY, + BLOCK_EXPR_ORIGIN): New macros. + (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, + DECL_SOURCE_LINE_LAST): New macros. + (struct parser_ctxt): Removed field current_method_decl, redundant + with the field current_function_decl. Added fields + first_ccb_indent1 and pending_block. + * parse.y (method_body, literal, INT_LIT_TK, FP_LIT_TK, + BOOL_LIT_TK, CHAR_LIT_TK, STRING_LIT_TK, NULL_TK, VOID_TK): Rules + tagged + (SOURCE_FRONTEND_DEBUG): Used as macro accepting varargs. + (compilation_unit:): Cosmetic on sub rule. + (type_declaration:): Cosmetic on sub rules. Added an error rule. + (variable_initializer:): Installed default rule on expression:. + (method_declaration:): method_header: starts a new + method. method_body: installs the function body, absorbs blocks + emitted for temporary variable scopings, pops function's body block + and merges function's last statement lineno in DECL_SOURCE_LINE. + (method_body:): Installed default rules. + (block:): Call enter_block when an opening brace is seen. Absorb + scoping blocks and call exit_block when a closing brace is seen. + (block_statement:): Cosmetic changes. + (method_invocation:): Create WFL around CALL_EXPR node. + (patch_stage): Added comment around definition. + (method_header): Try to use first_ccb_indent1 as the first line of + the method, so BP debug info are emitted at the first opening + brace of the function. If the function has no body, use the + location of the function's name. Override currently defined method + name with the matching WFL so we can point redefinition errors + using the location where the function's name was declared. + (check_abstract_method_header): Interprets DECL_NAME as an + identifier or as a WFL, accordingly. + (java_complete_class): New cases for JDEP_TYPE and JDEP_PARM. + (check_method_redefinition): Use DECL_NAME as a WFL. Extract + location and name information out of it and reinstall DECL_NAME to + its original identifier node value. + (lookup_cl): Use DECL_SOURCE_LINE_FIRST (first line of the + function's source code). + (read_import_dir): Test the value returned by find_class and issue + a fatal accordingly. + (declare_local_variables): Push a new block for the scope of the + new variable(s) if code has been already generated at that nesting + level. Pinpoint redefinition errors using the variable id + WFLs. Generate initialization code if necessary. If the variable + type is incomplete, register a patch on its decl. + (source_start_java_method): Rewritten. Define a new block for the + function's parameters. Build parameter decl out of function's + arguments and register them for a patch if their types are + incomplete. + (expand_start_java_method): Includes the part of + source_start_java_method that was pushing the parameter decls and + completing the method start code. + (source_end_java_method): Removed call the expand_end_bindings and + poplevel (already taken care of). Reinstall function's arguments + and get function's last line of code before calling + expand_function_end. + (java_method_add_stmt): New comment before the function's + code. Complement the second operand of the current COMPOUND_EXPR + if necessary. + (java_complete_expand_methods): Don't generate debug info on line + zero when expanding a generated constructor. + (java_complete_expand_method): Set start and end line numbers for + a artificially generated constructor to one and manually call + enter_block and exit_block when defining it. For all methods: + expand function's start calling the new expand_start_java_method + and invoke java_complete_tree on the effective method's body, if + any. + (resolve_expression_name): Now use lookup_name_in_blocks to search + local variable decls and print out an error when variables are + undefined. + (patch_method_invocation_stmt): Inserted comment before the + function's code. + (lookup_method_invoke): Chain method's arguments using chainon + with the current arg list as a second argument. Inserted missing + IDENTIFIER_POINTER when reporting an error on methods not found. + (refine_accessible_methods_list): Don't retain constructors. + (patch_arguments): Function removed. + (java_complete_tree): Inserted comment before the function's + code. New case for BLOCKs. Moved the WFL case a bit + further. Complete function's arguments. + (build_expr_block, enter_block, exit_block, lookup_name_in_blocks, + maybe_absorb_scoping_blocks): New functions. + +1998-04-27 Alexandre Petit-Bianco + + * jcf-io.c (find_class): Reset jcf->java_source after JCF_ZERO, if + previously set. + * jcf-parse.c (parse_source_file, java_error_count): New forward + and extern declarations. + (java_parse_abort_on_error): Macro moved. + (jcf_parse_source): fatal called if fopen fails. Now calls + parse_source_file. + (parse_source_file): New parse_only parameter. Reflects the + elimination of the second pass. + (yyparse): parse_source_file called with argument set to 0. + * jcf.h (JCF_ZERO): Sets java_source to zero. + * lex.c (java_init_lex): pass argument is gone. Function modified + to be called once during the analysis of a file. + (java_unget_unicode): Fixed typo in fatal message. + (java_get_line_col): Likewise. + (java_lval): Likewise. String literals no longer built during + second pass. + * lex.h (JAVA_COLUMN_DELTA): Take the tabulation character into + account. + * parse.h (MODIFIER_WFL): New macro. + (parse_check_super, parser_check_super_interface): Now return int. + (parser_chain_incomplete_item, not_builtin_p, + complete_method_decl): Declarations removed. + (build_method_invocation_stmt, build_invoke): Renamed using the + `patch' instead of `build' + (register-incomplete_type, obtain_incomplete_type, + java_complete_tree, java_complete_expand_method, + unresolved_type_p, create_jdep_list): New function declarations. + (IC_TYPE, IC_DEPEND, DEPEND_DECL, DEPEND_WFL, BEGIN_ONLY_PASS, + END_ONLY_PASS, ELSE_ONLY_PASS): Macro deleted. + (jdep): New typedef on new struct _jdep. + (JDEP_DECL, JDEP_DECL_WFL, JDEP_KIND, JDEP_SOLV, JDEP_WFL, + JDEP_MISC, JDEP_APPLY_PATCH, JDEP_GET_PATCH, JDEP_CHAIN, + JDEP_TO_REVOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED, + JDEP_RESOLVED_P): New macros. + (JDEP_NO_PATCH, JDEP_SUPER, JDEP_FIELD, JDEP_METHOD, + JDEP_METHOD_RETURN, JDEP_METHOD_END, JDEP_INTERFACE, + JDEP_VARIABLE): New enum values and jdep kinds. + (jdeplist): New typedef on struct _jdeplist. + (CLASSD_FIRST, CLASSD_LAST, CLASSD_CHAIN, JDEP_INSERT): New + macros. + (CALL_EXPR_PRIMARY): New macro. + (struct parser_ctxt): Fields java_pass, current_method_decl, + method_decl_list deleted. New field jdeplist. + (INCOMPLETE_P): Macro deleted. + * parse.y (single_type_import_declaration:): Removed pass switch. + (type_import_on_demand_declaration): Likewise. + (field_declaration:): Removed pass switch on all sub rules. + (class_declaration:): Call the complete_class_decl removed on + class_body rules. + (method_declaration:): Removed second pass switch. No longer chain + methods decl when method_header reduced. + (method_header:): Sub rules no longer depend on pass switch. + (method_declarator:): Likewise. + (method_body:): Likewise. + (abstract_method_declaration:): Likewise. + (block_statement:): Likewise. + (local_variable_declaration:): Likewise. + (argument_list:): Likewise. + (method_invocation:): Likewise. Call to build_method_invocation_stmt + removed. Partial CLASS_EXPR tree node built instead. + (postfix_expression:): Removed pass switch on all sub rules. + (java_pop_parser_context): Free classd_list content. + (yyerror): Call obstrack_grow0 to finalize error message. + (check_class_interface_creation): Comment modified to reflect new + returned value meaning. Removed second pass switch. Return 1 if an + error was found, 0 otherwise. Adjust pointer on filename if a + leading path separator was found. + (maybe_create_class_interface_decl): Removed first pass switch + when linking the class decl to the class_list. Install a new + jdep_list for the class. + (add_superinterfaces): List of unresolved interfaces is + gone. Unresolved interfaces are directly added to the current + dependencies list. + (create_interface): Second pass shortcut removed. + ctpx->modifier_ctx access through MODIFIER_WFL. + (create_class): Second pass shortcut removed. Call to + register_incomplete_type replaces the call to + parser_chain_incomplete_item. + (complete_class_decl): Function removed. + (duplicate_declaration_error): New way of retrieving redeclared + item type. + (register_fields): Call to lookup_modifier_cl replaced by + MODIFIER_WFL. New way of handling unresolved type, using + unresolved_type_p and obtain_incomplete_type. + register_incomplete_type replaces call to parser_chain_incomplete_item. + (patch_stage): New static global variable. + (method_header): New way of handling unresolved type, using + unresolved_type_p and obtain_incomplete_type. patch_stage used to + indicates that the method decl needs to be patched. + (check_abstract_method_header): Call to lookup_modifier_cl + replaced by MODIFIER_WFL. + (method_declarator): Incomplete argument type are registered + calling register_incomplete_type. Patch on the declared method is + issued in that case. + (unresolved_type_p): New function. + (parser_check_super_interface): New comment to reflect function's + modified returned type (int). Function and has a new argument + this_wfl. Call to parse_error_context uses this_wfl instead of + relying on lookup_cl. + (parser_check_super): Comment reflects function's new returned + type (int). Function returns nonzero value on error. + (create_jdep_list, reverse_jdep_list, obtain_incomplete_type, + register_incomplete_type, jdep_resolve_class): New functions to + handle incomplete types in declarations. + (java_complete_class): Rewritten to work with the new incomplete + type handling scheme. + (complete_class_report_errors): Likewise. + (complete_method_decl): Removed: it jobs is now handled by + java_complete_class. + (do_resolve_class): Class loaded in not already loaded and not + found in Java source code. + (java_check_regular_methods, java_check_abstract_methods): Don't + call complete_method_decl anymore. + (lookup_modifier_cl, not_builtin_p): Functions deleted. + (read_import_dir): Got rid of the pass number dependency. + (declare_local_variables): New handling of unresolved types (patch + issued). + (source_start_java_method): New parameter level. Function called + with level set to 1 when argument types are potentially + unresolved. Called to complete the job with level set to 2 once + types are complete. + (source_end_java_method): Call to permanent_allocation + removed. Waiting to be replaced by a more suitable obstack + management. + (java_complete_expand_methods, java_complete_expand_method, + java_expand_finals): New functions. + (build_method_invocation_stmt): Renamed + patch_method_invocation_stmt. Extracts function call expression + (wfl) and arguments (args) from CALL_EXPR tree operands. + (build_invoke): Renamed patch_invoke. Fixed typo in fatal + call. Patch the function and argument operand of the CALL_EXPR + tree argument. + (patch_argument, java_complete_tree): New functions. + +1998-04-20 Per Bothner + + Recover from missing fields and methods (i.e. error instead of fatal). + * decl.c, java-tree.h (TYPE_identifier_node): New global constant. + * expr.c (expand_invoke): Recover from missing method. + (expand_java_field_op): Recover from missing field. + Inline references to java.lang.{Integer,Char,...}.TYPE. + * typeck.c (get_type_from_signature), java-tree.h: New function. + * class.c (add_method): Use get_type_from_signature. + (build_class_ref): Handle a class that was not found. + * typeck.c (convert): Handle conversion to pointers (for convenience). + * verify.c (verify_jvm_instructions): Use get_type_from_signature + instead of lookup_field to handle missing fields. + + * jcf-parse.c (process_zip_dir): Set java_source. + +1998-04-20 Brendan Kehoe + + * jcf-parse.c (set_source_filename): Use TYPE_NAME, not DECL_NAME. + +1998-04-14 Alexandre Petit-Bianco + + * jcf-parse.c (load_class): Don't change input_filename before + calling jcf_parse_source (but still do it before calling + jcf_parse). + (jcf_parse_source): Assign input_filename after having saved the + parser context. + * lex.c (java_init_lex): Chain a WFL node to the import on demand + list. ctxp->modifier_ctx zeroed according to its new + definition. ctxp->filename initialized. Removed + JAVA_MODIFIER_CTX_UNMARK. + (java_unget_unicode): Update the character based column position. + (java_allocate_new_line): ref_count not used anymore. Always free + ctxp->p_line. Initialize c_line->char_col to 0. + (java_get_unicode): Update the character based column position. + (java_lex): Use ctxp->elc to store current position in source + file, at the beginning of the parsed token. Set modifier_ctx entry + corresponding to the parse modifier to a WFL node. Return a WFL + node when an identifier is parsed. + (java_lex_error): Now uses ctxp->elc to store current position in + source. + (build_wfl_node, java_is_eol, java_get_line_col): New functions. + * lex.h (build_wfl_node): New function definitions. + (struct java_line): ref_count and next fields are gone. New field + char_col. + (JAVA_LINE_CHECK, JAVA_LINE_MARK, JAVA_LINE_CHAIN, + JAVA_LINE_UNMARK, ID_NAME, ID_CL): Macro definitions deleted. + (JAVA_COLUMN_DELTA): New macro. + (java_lc): New typedef on new struct _java_lc. + * parse.h (lookup_cl, lookup_modifier_cl): Changed returned types. + (parse_error_context, parse_warning_context): Changed prototypes. + (java_get_line_col): Added as an available global function. + (JAVA_MODIFIER_CTX_UNMARK): Macro removed. + (IC_DECL): Replaced by macro IC_TYPE + (DEPEND_WFL): New macro. + (THIS_MODIFIER_ONLY): Now works with WFL and only remembers the first + wrong modifier. + (exit_java_complete_class): Removed a commented out statement. + (struct parser_ctxt): Added comments on fields. modifier_ctx is + now an array of tree nodes. Deleted fields line_list and + e_line. New field elc, to replace e_line. + * parse.y (array_type:): Build WFL node. + (qualified_name:): Build a single WFL node out of two. Retain + the location information of the first node in the resulting node. + (package_declaration:): Use package name as a WFL node + (single_type_import_declaration:): Use imported name as a WFL node. + (type_import_on_demand_declaration:): Use root of the imported + packages as a WFL node. + (field_declaration:): Removed unused local variable cl. + (method_declaration:): Don't call JAVA_MODIFIER_CTX_UNMARK. + (yyerror): New static elc. Removed static error_line, error_pos. + New local code_from_source. Save ctxp->elc into elc at the first + pass. Call java_get_line_col to get a string of the line where + the error occurred. + (debug_line): Removed static function. + (parse_error_context, parse_warning_context): Parameter cl is now + a WFL node. Use its value to initialize ctxp->elc. + (redefinition_error): Parameter cl is now a WFL node. + (parse_add_interface): New parameter wfl. No longer call + lookup_cl, use wfl instead. + (check_class_interface_creation): Parameter cl is now a WFL node. + (maybe_create_class_interface_decl): Likewise. + (add_superinterfaces): New function. + (create_interface): Removed local cl, node, super_decl, + super_decl_type. Function now uses id as a WFL node. Better + warning/error report on obsolete or forbidden mix of + modifiers. Now calls add_superinterfaces to register interfaces. + (create_class): Removed local cl, node. Local variable id is used + as a WFL node. Better error report on forbidden modifier + mix. Uses add_superinterfaces to register interfaces. + (find_field): Argument cl is now a WFL node. Now store the WFL + node of a fields that needs to be checked for their + initialization. + (method_header): Local variable node non longer used. Local + variable id replaces cl. + (check_modifiers_consistency): Local variable cl is now a WFL + node. + (method_declarator): Local variable cl replaced by parameter id. + (parser_qualified_name): Now uses parameter name as a WFL node. + (parser_check_super_interface): New parameter wfl, for achieve + greater accuracy during error reports. + (parser_chain_incomplete_item): New parameter named location. Used, + along the decl, to construct the incomplete item node. + (java_complete_class): resolve_class now uses WFL node extracted + from the incomplete item node. Macro IC_TYPE replaces TREE_PURPOSE + where appropriate. + (complete_method_decl): Unresolved function's argument types are WFL. + (resolve_class): Parameter cl is now a WFL node. + (resolve_and_layout): Likewise. + (do_resolve_class): Likewise. Try first to use cl and then do the + lookup on the decl when calling check_pkg_class_access. + (complete_class_report_errors): Use IC_TYPE in place of + TREE_PURPOSE where appropriate. Use DEPEND_WFL on dependency + instead of doing a lookup over the decl. + (java_check_final): Use WFL info from field tree list. + (lookup_cl): Rewritten and returns a statically defined WFL node. + (lookup_modifier_cl): Now uses information from WFL nodes. + (process_imports): Likewise. + (read_import_dir): name and cl arguments replaced by a single WFL + node. Function modified accordingly. + (find_in_imports_on_demand): Now uses WFL node. + (check_pkg_class_access): cl argument is now a WFL node. + (declare_local_variables): Fixed to use WFL nodes. + (resolve_expression_name): Likewise. + (build_method_invocation_stmt): name_combo argument renamed + wfl. Function modified to use WFL nodes. + (build_invoke): cl used as a WFL node when calling build_expr_wfl. + (lookup_method_invoke): cl is now a WFL node. Added missing + IDENTIFIER_POINTER to class type decl name. + +1998-04-14 Dave Brolley + + * lang.c (init_parse): Now returns char* containing the filename. + +1998-04-10 Per Bothner + + * class.c (layout_class): Mangle repeated arg types to match cc1plus. + + * decl.c, java-tree.h (integer_four_node): New INTEGER_CST node. + * class.c (make_class_data): If flag_assume_compiled, initial class + state is CSTATE_PREPARED; make superclass and interfaces direct + references, rather than constant pool indexes. + +1998-04-09 Alexandre Petit-Bianco + + * parser.y: Include flags.h. Removed debug variable pl. + (method_declaration:): Uses ctxp->parser_ccb_indent instead of pl. + (block:): Likewise. + (labeled_statement_nsi:): Generate debug info when reducing + expression_statement:. + (check_pkg_class_access): get_access_flags_from_decl invocation + fixed for new CLASS_* flags location. + (source_end_java_method): Save/restore parser context when + entering/leaving this routine. Restore lineno to its right value + before calling expand_end_bindings. + (build_method_invocation_stmt): build_invoke called with the + current line information. + (build_invoke): New argument cl. Wrap the function call around a + wfl node. + (refine_accessible_methods_list): Changed comment, removed + unnecessary code. + * parse.h: Fixed typo in comments. + (CLASS_OR_INTERFACE): Handle the new CLASS_* flags location. + (JAVA_MAYBE_GENERATE_DEBUG_INFO): New macro. + (struct parser_ctxt): New fields ccb_indent, last_ccb_indent1, + parser_ccb_indent. + * lex.c (java_lex): Record the last closing curly bracket of a + function. + * jcf-parse.c (jcf_parse_source): Now calls + java_check_methods. Clarified comment, fixed typo. + +1998-04-09 Dave Brolley + + * lang.c (init_parse): Expose for non USE_CPPLIB builds. + (finish_parse): Expose for non USE_CPPLIB builds. + +1998-04-08 Jeffrey A Law (law@cygnus.com) + + * lang.c (lang_print_xnode): New function. + +1998-04-03 Per Bothner + + * decl.c (class_dtable_decl), java-tree.h: New tree node. + * class.c (get_dispatch_vector, get_dispatch_table): New functions + used to build a class's dispatch table. + (make_class_data): Generate dispatch table if flag_assume_compiled. + Set dtable of class object to address of class_dtable_decl. + + * decl.c (int_decl_processing): Make soft_badarrayindex_node + be volatile and have side effects - generates better code. + + * class.c, expr.c, parse.y: CLASS_INTERFACE, CLASS_FINAL, etc: + These flags were defined for TYPE_DECLs, but used on RECORD_TYPEs. + + * expr.c (expand_invoke): If class is final, method is + effectively final, so can call it directly. + + * java-tree.h (TYPE_NVIRTUALS, TYPE_VTABLE): New macros. + + * Makefile.in, Make-lang.in: Add missing $(exeext)s. + +1998-03-19 Alexandre Petit-Bianco + + * parse.y (build_method_invocation_stmt): Removed extra argument + to build_invoke. + +1998-03-16 Alexandre Petit-Bianco + + * expr.c (dtable_indent): Now static global. + (expand_invoke): Now call invoke_build_dtable and + build_invokevirtual. + (invoke_build_dtable, build_invokevirtual): New functions. + * jcf-io.c (find_class): Defer issuing a warning by setting + jcf->outofsynch to 1. + * jcf-parse.c (jcf_out_of_synch): New function. + (load_class): Test this_jcf.outofsynch flag and call + jcf_out_of_synch accordingly. + * jcf.h: (typedef struct JCF): New flag outofsynch. Fixed typo in + comment indentation. + * lex.c (java_get_unicode): Fixed code indentation. + (java_lex): Create string literal. Fixed typo. Removed several + premature obstack_free. + * parse.h: New enums for name resolution and invocation mode. + (struct qualification): New data structure. + (RESOLVE_CHAIN_REMAINDER, BUILD_PTR_FROM_NAME): New macros. + (do_resolve_class, build_method_invocation_stmt, + breakdown_qualified, qualify_ambiguous_name, resolve_and_layout, + debug_line, identical_subpath_p, invocation_mode, + refine_accessible_methods_list, build_invoke, + lookup_method_invoke): New functions declared. + (build_invokevirtual, invoke_build_dtable, match_java_method, + build_field_ref, jcf_out_of_synch): New references to external + functions. + (struct parse_ctxt): Removed artificial_constructor field. + * parse.y: (array_type:): Type defined for this rule. + (class_type:): Installed default rule for interface_type:. + (array_type:): Now build Java array type. + (qualified_name:): Now use obstack_grow0. + (method_declaration:): Skip the artificial constructor added to + the list, if any. + (abstract_method_declaration:): Execute the code only during pass 1. + (block:): Installed default rule in block_statements:. + (block_statement:): Add the statement to the method during pass 2. + (statement_expression): Installed default rule for + method_invocation:. + (argument_list:): Added code to build the argument list. + (method_invocation:): Added call to create the method invocation + node. + (yyerror): Now use obstack_grow0. Removed bogus obstack_free. + (debug_line): New function for debug. + (complete_class_decl): No longer do something during pass 1. + (method_header): Use BUILD_PTR_FROM_NAME. + (parser_qualified_classname): Use obstack_grow0. Removed bogus + obstack_free. + (parser_chain_incomplete_item): Use BUILD_PTR_FROM_NAME. Modified + function's main comment. + (java_complete_class): Set CLASS_LOADED_P on all fixed incomplete + classes. + (complete_method_decl): Use BUILD_PTR_FROM_NAME and promote types. + (resolve_class): Now works with arrays. + (do_resolve_class, resolve_and_layout): New functions. + (java_check_regular_methods): Reverse method list before and after + having processed it. No longer set ctxp->artificial_constructor. + (read_import_dir): Test jcf->outofsynch and call jcf_out_of_synch + accordingly. Fixed typo in issued error message. Now use + obstack_grow0. + (find_in_imports_on_demand): Now use obstack_grow0. + (declare_local_variables): Use BUILD_PTR_FROM_NAME. + (source_end_java_method): Call expand_expr_stmt instead of + expand_expr. Calls it before calling expand_function_end. + (java_method_add_stmt): Do nothing if errors were found during + parsing. + (java_layout_parsed_class): Set CLASS_LOADED_P and fixed typo. + (build_method_invocation_stmt, build_invoke, invocation_mode, + lookup_method_invoke, refine_accessible_methods_list, + qualify_ambiguous_name, breakdown_qualified, identical_subpath_p): + New functions. + * typeck.c (build_java_signature): Properly end method signature + if return type skipped. + (match_java_method): New function. + +1998-03-16 Per Bothner + + * jcf-io.c (find_classfile): If USE_JCF_STDIO, fopen in binary mode. + +1998-02-25 Alexandre Petit-Bianco + + * expr.c (build_invoke_non_interface): New function. + (methods_ident, ncode_ident): Now static globals. + (expand_invoke): Use build_invoke_non_interface. + * java-tree.h (struct lang_decl): New field function_decl_body. + (DECL_FUNCTION_BODY): New macro. + * jcf-parse.c (jcf_parse_source): Deeper check before setting + CLASS_FROM_SOURCE_P. + (parse_source_file): Fixed typos. Call java_layout_parsed_class + before starting pass 2. Call to java_generate_parsed_class replaced + by java_register_parsed_class. + * lex.c: Fixed typo in header. Some line width related formating. + * lex.h: Some line width related formating. + * parse.h (source_end_java_method, resolve_expression_name, + complete_class_decl, maybe_create_class_interface_decl, + check_class_interface_creation): New static function declarations. + (java_layout_parsed_class, java_method_add_stmt): New function + declarations. + (struct parser_ctxt): Field mark_class_generate removed. New + fields class_list and artificial_constructor. + * parse.y: Fixed typo in header. + (class_declaration:): Call complete_class_decl when class body + parsed. + (method_declaration:): Call source_end_java_method in pass 2 when + the method body is defined. + (postfix_expression:): Do expression name resolution on sub-rule + name during pass 2. + (create_class, create_interface): Merged common pieces. + (check_class_interface_creation, maybe_create_class_interface_decl): + New functions. + (complete_class_decl): New function. + (register_fields): Fixed line width related typo. + (method_header): Correctly skip first argument when fixing + argument line. Changed the loop. + (java_check_circular_reference): Now use ctxp->class_list. + (java_complete_class): Removed start/stop marking. + (java_check_regular_methods): Now takes a class decl as an + argument. Add default constructor if none were encountered. + (java_check_methods): Now use ctxp->class_list. Changed call to + java_check_regular_methods. + (source_start_java_method): Set DECL_ARG_TYPE for each function + arguments. + (source_end_java_method, java_method_add_stmt): New functions. + (java_generate_parsed_class): No longer exists. + (java_layout_parsed_class, java_register_parsed_class): New functions. + (resolve_expression_name): New function. + +1998-02-12 Alexandre Petit-Bianco + + * jcf-parse.c: (parse_source_file): Check on errors after init lex. + * lex.c: (java_init_lex): Defer ctxp->java_pass initialization + until pass initializations are done. Call read_import_dir with + pass set to 0. + * parse.h: (lookup_modifier_cl): New function declared. + (INTERFACE_FIELD_MODIFIERS): New macro. + (OBSOLETE_MODIFIER_WARNING): New macro. + * parse.y: (register_fields): Class type and current field name in + local variables. Check modifier(s) if adding field(s) to an interface. + (check_abstract_method_header): Now use OBSOLETE_MODIFIER_WARNING + and report errors using the faulty modifier line context. + (lookup_modifier_cl): New function. + (read_import_dir): Detect and report default import processing + failure. + +1998-02-11 Brendan Kehoe + + Add a pair of -fassume-compiled/-fno-assume-compiled options. + * class.c (is_compiled_class): Return 1 after making sure it + qualifies as loaded, if FLAG_ASSUME_COMPILED is set. + * lang-options.h: Add -fassume-compiled/-fno-assume-compiled. + * java-tree.h (flag_assume_compiled): Add decl. + * lang.c (lang_f_options): Add the flag. + (flag_assume_compiled): Add decl, default to 0. + +1998-02-11 Alexandre Petit-Bianco + + * class.c (class_depth): Call to load_class uses extra VERBOSE arg. + (is_compiled_class): Likewise. + (layout_class): Likewise. + (layout_class): Detect and lay out classes defined in source code. + (interface_of_p, add_interface_do, may_add_interface): New + function. + (add_interface): Now use add_interface_do. + (add_method_1): New function. + (add_method): Now use add_method_1. + (pushlevel): Debug message conditional to SOURCE_FRONTEND_DEBUG. + (complete_start_java_method): New function. + (start_java_mehod): Now call complete_start_java_method. + * expr.c (lookup_field): Call to load_class uses extra VERBOSE arg. + (expand_invoke): Likewise and fixed typo. + *gjava.c: (print_super_field): Use new argument to find_class + DO_CLASS_FILE. + (main): Likewise. + *java-tree.h: (CLASS_FROM_SOURCE_P): New flag on RECORD_TYPE. + (IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P, IS_A_CLASSFILE_NAME, + QUALIFIED_P, IS_AN_IMPORT_ON_DEMAND_P): New flags on + IDENTIFIER_NODE. + (CLASS_COMPLETE_P): New flag on TYPE_DECL. + (add_method_1, push_class): New prototypes. + *jcf-dump.c: find_class now uses new DO_CLASS_FILE argument. + *jcf-io.c: (open_in_zip): jcf now stores a pointer to the Zip + directory where the class was found. + (find_class): New argument DO_CLASS_FILE. Function find_class + modified accordingly. + *jcf-parse.c: (fix_class_path): New function. + (load_class): Use new VERBOSE argument. load_class now finds and + loads/parses .class/.java files. Save read_state of current_jcf + if necessary. + (java_parser_abort_on_error): New macro. + (jcf_parse_source, parse_source_file): New function. + (jcf_parse): Fixed typo. + (yyparse): Call parse_source_file () only. + (process_zip_dir): Fixed typo, fix zdir->filename_length when + writing the real class name back in the zip directory entry. + (find_in_current_zip): IDENTIFIER_CLASS_VALUE may be null. + (jcf_figure_file_type): Fixed bogus alloc and bcopy. + *jcf.h: (typedef struct JCF): New fields java_source and zipd. + (find_class): Prototype fixed. + *lex.c: Added 1998 time stamp. + Removed all static global variables, moved into the parser + context data structure.. Now include unistd.h if SEEK_SET not + defined. + (java_init_lex): Rewritten. + (java_sneak_unicode): Modified current unicode access in current line. + (java_unget_unicode): Likewise. + (java_allocate_new_line): New allocation management. + (java_read_char): Modified access and storage of unget_utf8_value. + New way of processing current unicode. + (java_store_unicode, java_read_unicode): Fixed typo in declaration. + (java_get_unicode): Now use the parser context. + (java_lineterminator): Likewise. + (java_lex): Now used java_lval argument (pointer to YYSTYPE), part + of the reentrant parser implementation. Function now use the + parser context data structure and java_lval. Fixed production of + the float and double constant "out of range" error message. Fixed + obstack use. Return integer value when hitting a modifier. Now + return type for TRUE, FALSE and other predefined types. Return + identifier as a TREE_LIST list containing the current line context + as the TREE_VALUE sub-node. + (java_unicode_2_utf8): Fixed typo in declaration. + (java_lex_error): Now use the parser context data structure. + *lex.h: Added 1998 time stamp. + (struct java_line): New fields ref_count and next. + (JAVA_LINE_CHECK, JAVA_LINE_MARK, JAVA_LINE_CHAIN, + JAVA_LINE_UNMARK, ID_NAME, ID_CL): New macros. + (JAVA_FLOAT_RANGE_ERROR, JAVA_INTEGRAL_RANGE_ERROR, UNGETC): Fixed. + *parse.h: Added 1998 time stamp. + (java_parse_source_file): Renamed from parse_source_file. + (YYERROR_NOW, YYNOT_TWICE): Fixed. + (CLASS_MODIFIERS, FIELD_MODIFIERS, METHOD_MODIFIERS, + INTERFACE_MODIFIER, INTERFACE_METHOD_MODIFIERS, + JAVA_MODIFIER_CTX_UNMARK, IC_DECL, IC_DEPEND, DEPEND_DECL, + THIS_MODIFIER_ONLY, ABSTRACT_CHECK, BEGIN_ONLY_PASS, + END_ONLY_PASS, ELSE_ONLY_PASS, exit_java_complete_class, + CLASS_OR_INTERFACE, INCOMPLETE_P): New macros. + (struct parser_ctxt): New data structure to keep the parser context. + *parse.y: Added 1998 time stamp, got rid of static global variables. + (java_error_count, ctxp): New global variables. + (%union): New value field. + (numeric_type, integral_type): Rules removed. + (primitive_type): Rule defined to handle integral, float, double and + boolean types. + (qualified_name, package_declaration, + single_type_import_declaration, type_import_on_demand_declaration, + modifiers, class_declaration, super, interfaces, + interface_type_list, class_body, field_declaration, + field_declaration, variable_declarators, variable_declarator, + variable_declarator_id, method_declaration, method_header, + formal_parameter_list, formal_parameter, method_body, block, + static, interface_declaration, extends_interfaces, + abstract_method_declaration, local_variable_declarators): Rules now + define actions. + (force_error, do_warning): New global statics. + (push_parser_context, parser_context_save_global, + parser_context_restore_global, pop_parser_context): New functions. + (yyerror): Now uses the global parser context. Fixed use of obstack. + (parse_error, parse_error_context, parse_warning_context, + java_accstring_lookup, redefinition_error, check_modifiers, + parser_add_interface, create_interface, create_class, find_field, + duplicate_declaration_error, register_fields, method_header, + check_modifiers_consistency, check_abstract_method_header, + method_declarator, parser_qualified_classname, + parser_check_super_interface, parser_check_super, + parser_chain_incomplete_item, java_check_circular_reference, + layout_class_from_source, java_complete_class, + complete_method_decl, resolve_class, complete_class_report_errors, + java_check_final, check_method_redefinition, + java_check_regular_methods, java_check_abstract_methods, + java_check_methods, lookup_java_interface_method2, + lookup_java_method2, lookup_cl, find_name_in_single_imports, + process_imports, find_in_imports, read_import_entry, + read_import_dir, find_in_imports_on_demand, + check_pkg_class_access, not_builtin_p, declare_local_variables, + source_start_java_method, java_generate_parsed_class): New + functions. + *typeck.c: (signature_include_return): New global variable. + (build_java_signature): Use SIGNATURE_INCLUDE_RETURN figure whether + to add the function returned type in the signature. + +1998-02-09 Brendan Kehoe + + * jcf-io.c (open_in_zip): Use strncmp and LEN. + +1998-01-29 Dave Brolley + + * Make-lang.in (java.info): Added. + (java.install-info): Added + +1998-01-27 Brendan Kehoe + + * Makefile.in (clean): Also remove java/parse.c. + +1998-01-26 Brendan Kehoe + + Add a pair of -fbounds-check/-fno-bounds-check options. + * lang.c (lang_decode_option): Add code to grok arguments. + (flag_bounds_check): Add decl. + (lang_f_options): New array w/ the option in it. + * java-tree.h (flag_bounds_check): Add decl. + * lang-options.h: New file. + * expr.c (build_java_arrayaccess): Use flag_bounds_check instead + of a static macro value. + (JAVA_ARRAY_EXCEPTION): Delete macro. + +1998-01-23 Per Bothner + + * typeck.c (build_java_array_type): Fix two bugs in previous change. + * expr.c (build_anewarray): Add missing promote_type. + +1998-01-22 Per Bothner + + Add array types with known length to optimize bounds checking. + * typeck.c (build_java_array_type): Take length parameter. + (java_array_type_length, build_prim_array_type): New functions. + * java-tree.h: Update for new functions. + * expr.c, typeck.c, verify.c: Update build_java_array_type calls. + * class.c: Use build_prim_array_type. + * expr.c (can_widen_reference_to): Handle known-length array types. + (verify_jvm_instructions): Keep track of integer push instructions + followed by newarray/anewarray, so we can build known-length arrays. + (JAVA_ARRAY_DATA_OFFSET): Replace by ... + (java_array_data_offset): New function. + (build_java_array_length_access): New function. Optimize if constant. + (build_java_arrayaccess): Constant fold bounds check. + (expand_java_newarray, expand_java_anewarray): Replaced by ... + (build_newarray, build_anewarray): New functions. + (ARRAY_NEW_NUM, ARRAY_NEW_PTR): Use build_{a,}newarray. + * verify.c (merge_types): Handle known-lengh array types. + +1998-01-19 Per Bothner + + * expr.c (expand_byte_code): Fix performace bug, which caused + searching linenumber_table to be linear rather than constant. + +1997-12-12 Per Bothner + + * Makefile.in (BISON, BISONFLAGS): Add missing macros. + + * decl.c, java-tree.h (soft_fmod_node): New global. + * decl.c (init_decl_processing): Define __builtin_fmod. + * expr.c (build_java_binop): Implement TRUNC_MOD_EXPR for REAL_TYPE + using __builtin_fmod. + +1997-12-04 Alexandre Petit-Bianco + + * keyword.h: New file, output of keyword.gperf as processed by + gperf. + * lex.c (java_lex_init): Initialize java_error_flag. + * parse.c (YYERROR_NOW): Uses java_error_flag. + * parse.y: New static java_error_flag. Useless definition of + buffer_error gone. + * parse.y (java_error): Portable error recovery using + java_error_flag (not yet completely tuned). + +1997-12-04 Brendan Kehoe + + * Makefile.in (parse.c): Use $(srcdir) for parse.y. + +1997-12-03 Alexandre Petit-Bianco + + * Makefile.in: (JAVA_OBJS): New object jcf-parse.o. + (parse.c, lex.c, keyword.h): New rules for Java source code + front-end. + * parse.c: Renamed into jcf-parse.c. + * jcf-parse.c (yyparse): Invoke the parser to process Java source code. + * keyword.gperf: New file, Java keywords. + * parse.y: New file, Java language grammar. + * parse.h: New file, Java language grammar definitions. + * lex.c: New file, Java language lexer. + * lex.h: New file, Java language lexer definitions. + +1997-12-03 Per Bothner + + * decl.c (clinit_identifier_node), java-tree.h: New global. + * java-tree.h (IS_METHOD_INIT_P, IS_METHOD_CLINIT_P): Removed. + * verify.c (verify_jvm_instructions): Inline use of removed macros. + * expr.c (expand_java_field_op): Check for invalid assignment + to final field. + + * jcf-reader.c (get_attribute): Test for wrong attribute length. + +1997-10-27 Per Bothner + + * verify.c (verify_jvm_instructions): When processing a handler, + attempt to set the current_subr to the right value. + (More complicated code combines Sep 17 and Oct 22 versions.) + +1997-10-24 Per Bothner + + * class.c (push_class): Figure out (guess) name of source file. + * parse.c (set_source_filename): Set DECL_SOURCE_FILE of class decl. + (give_name_to_class): Don't guess source name; use DECL_SOURCE_FILE. + (parse_class_file): Change return type from int to void. + Call debug_start_source_file/debug_end_source_file. + + * expr.c (build_java_binop): Fix masking 2nd operand. + * decl.c (init_decl_processing): Set sizetype first. + +1997-10-22 Per Bothner + + * verify.c (verify_jvm_instructions): Don't set current_subr to NULL. + (Revert Sep 17 change.) + +1997-10-21 Alexandre Petit-Bianco + + * parse.c (process_zip_dir): Skip ZIP entries not bearing the + .class extension in their name and fix thing so we don't process + them parse_zip_file_entries(). + (parse_zip_file_entries): Cleaned unused local variables. + +1997-10-20 Per Bothner + + * expr.c (can_widen_reference_to): Allows equal array element types. + (expand_byte_code): PRE_RET must expand OPERAND_VALUE (to get index). + * jcf-dump.c (RET): Get (and print) index. + + * verify.c (verify_jvm_instructions case OPCODE_anewarray): + Promote element type to POINTER_TYPE. + +1997-10-20 Alexandre Petit-Bianco + + * jcf-reader.c, parse.c: (parse_zip_file, process_zip_dir, + find_in_current_zip, jcf_figure_file_type): Moved from + jcf-reader.c to parse.c. + * zextract.c: (read_zip_archive): takes file_comment_length possible + field into account. + +1997-10-20 Per Bothner + + * verify.c (verify_jvm_instructions): Var can also be promoted to int. + + * verify.c (merge_types): Handle array types even better ... + +1997-10-17 Per Bothner + + * expr.c (java_stack_pop): Fix use of NULL_TREE for TYPE_SECOND. + + * java-tree.h (PUSH_FIELD): Set DECL_ARTIFICIAL. + * class.c (make_class_data): Don't build fields_decl if no fields. + When building fields_decl, skip if DECL_ARTIFICIAL. + + * expr.c (java_stack_swap): Update stack_type_map. + * verify.c (merge_types): Handle array types better. + +1997-10-15 Per Bothner + + * class.c (add_field): Don't promote short integral fields to + int any more (unless JAVA_PROMOTE_TO_INT), since Kaffe doesn't. + * expr.c (push_value): Promote and convert short integral values. + + * decl.c, java-tree.h (integer_two_node): New constant node. + * verify.c (merge_types): Check for TYPE_RETURN_ADDR. + +1997-10-15 Alexandre Petit-Bianco + + * class.c (append_gpp_mangled_type): Use function argument + unpromoted type to generate mangled name. + +1997-10-13 Alexandre Petit-Bianco + + * constants.c (build_constant_data_ref): Now uses current_class + instead of main_class. + (build_constants_constructor): Now uses current_class instead of + main_class. + * zipfile.h: (struct ZipFileCache): Now defined here. Declaration + of the global variable SeepZipFiles done here. + * zextract.c (read_zip_archive): extra_field optional field taken + into account while computing the position of the class file in the + archive. + * verify.c (verify_jvm_instructions): Use current_jcf to search + the constant pool. + * parse.c (load_class): First search for the class to load in the + current zip file. Saves current_jcf (restored before returning + from that function). Don't call JCF_FINISH in the class was found + in the current ZIP file. + (jcf_parse): If the class was found in the current ZIP file, save + its tree_constant_pool (for later reuse). + (parse_class_file): New function. Process each method defined in + the current class and record the class as to be later registered. + (yyparse): Rewritten. Figure the type of the current file and switch + accordingly. + * lang.c: New global variable current_jcf. + (lang_init): Removed compiling_from_source test (done later, in + yyparse). Removed call the jcf_parse (). + * jcf.h (JCF_ZIP, JCF_CLASS, JCF_SOURCE): New defined values. + (typedef struct JCF): New fields seen_in_zip (to mark a class found + in the current ZIP file) and zip_offset (offset to the class data in + the current zip file). + * jcf-reader.c: zipfile.h included. + localToFile: New ZipFileCache static global variable + (parse_zip_file_entries): New function. Browse the current ZIP + file directory and process each class found. + (process_zip_dir): New function. Register each class found in the + ZIP file directory. The class aren't parsed but a valid JCF is + link to each of them. + (find_in_current_zip): New function. Search for a class in the + current ZIP file directory. If found, prepare the class so that it + can be loaded. + (jcf_figure_file_type): New function. Examine the file structure + to figure a class file, a ZIP file. If none of these categories are + matched, a source file is assumed. + * jcf-io.c: Removed definition of ZipFileCache (moved in zipfile.h). + SeenZipFile: New global variable. + (open_in_zip): Use zipmember's length to accelerate the search for + a member. If zipmember was NULL and zip file successfully read, + return 0. + * java-tree.h: New global variable current_jcf declared. Added + declaration for current_constant_pool_tags, current_constant_pool_data, + current_constant_pool_length, current_constant_pool_data_ref. + (struct lang_type): Augmented with two fields. struct JCF *jcf (to + store the JCF of classes seen in a zip file) and tree *constant_pool + (to save a loaded class constant pool). current_class declared here. + * expr.c (expand_invoke): Use current_jcf instead of main_jcf to + retrieve method_ref_constant. + (PUSHC): java_push_constant_from_pool now uses current_jcf. + (OBJECT): get_class_constant now uses current_jcf. + (ARRAY_NEW_PTR): get_class_constant now uses current_jcf. + (ARRAY_NEW_MULTI): get_class_constant now uses current_jcf. + (expand_invoke): Now uses current_class instead of main_class + (build_class_init): Now uses current_class instead of main_class + * class.c: New static global variable registered_class. + (register_class): New function. + (emit_register_class): Modified to use registered_class instead of + main_class + (is_compiled_class): Now take into account class seen in the archive. + +1997-10-06 Per Bothner + + * except.h: Renamed to: java-except.h. + * parse.c, except.c, expr.c, verify.c: Update #include accordingly. + * except.c: Add semi-working (commented out) implementation. + + * expr.c (expand_iinc): Add needed flush_quick_stack. + * parse.c (set_source_filename): New function. + (give_name_to_class): Set input_filename from package.classname.java. + + * jcf-io.c (find_class): Don't look first in ".". + +1997-10-01 Alexandre Petit-Bianco + + * zextract.c (read_zip_archive): Now takes into account the + extra_field field. + * expr.c (can_widen_reference_to): Modified to handle sub-interfaces. + +1997-09-20 Per Bothner + + * constants.c, java-tree.h (build_internal_class_name): New function. + (alloc_class_constant): Re-implement using build_internal_class_name. + * class.c (make_class_data): Likewise. + * class.c (hashUtf8String): Make hash algorithm match String.hashCode. + +1997-09-17 Per Bothner + + * verify.c (verify_jvm_instructions): Temporarily set current_subr + to NULL before pushing an exception handler target. + + * expr.c (flush_quick_stack): Save from low stack indexes to high. + (java_stack_swap, java_stack_dup): Re-write to be safe from + clobbering registers. + (build_class_init): New function. + +1997-09-17 Alexandre Petit-Bianco + + * typeck.c (build_java_array_type): Temporary use + permanent_obstack to create the array 'length' field. + * expr.c (lookup_label): Temporay use permanent_obstack to create + label if not found. + * class.c (push_super_field): Tempory use permanent_obstack. + +1997-09-15 Alexandre Petit-Bianco + + * typeck.c (type_for_mode): Now handles double_type_node and + float_type_node. + * verify.c (verify_jvm_instructions): The instruction following + the wide bytecode is checked. OPCODE_ret added to the list of + wide. + +1997-09-11 Alexandre Petit-Bianco + + * class.c (make_class): Temporary use permanent_obstack. Set the + class CLASS_P field to 1. + (push_class): Temporary use permanent_obstack. + (set_super_info): Temporary use permanent_obstack. + (add_method): Temporary use permanent_obstack, set + METHOD_TRANSIENT(). + (add_field): Temporary use permanent_obstack. Sets + FIELD_VOLATILE() and FIELD_TRANSIENT(). + (build_class_ref): Temporary use permanent_obstack if the class + isn't compiled. + (build_static_field_ref): Temporary use permanent_obstack when + creating field's rtl. + (get_access_flags_from_decl): Handle ACC_VOLATILE, ACC_TRANSIENT, + ACC_SYNCHRONIZED, ACC_NATIVE, ACC_ABSTRACT flags for methods + and fields. Function finalized, as far as flag handling. + (push_class_static_dummy_field): Temporary use permanent_obstack. + (emit_register_class): Force generation of class registration at + -O3 or deeper. + * decl.c (end_java_method): Call permanent_allocation() before + returning. + * expr.c (can_widen_reference_to): Added comment to interface + handling, fixed typo. + (lookup_field): Now uses CLASS_P() to correct FIXME + (expand_invoke): Verification on public && !static && + !abstract moved into soft_lookupinterfacemethod (kaffe). + Use Object class dtable if objectref is an array when expanding + invokeinterface. + (java_push_constant_from_pool): Temporary use permanent_obstack + for CONSTANT_string + * parse.c (get_ref_constant): Temporary use permanent_obstack to + create constant references. + (get_constant): Temporary use permanent_obstack to create constant. + (load_class): Temporary use permanent_obstack to load class. + (jcf_parse): Temporary use permanent_obstack to perform class + layout. + * typeck.c: (parse_signature_string): Temporary use permanent_obstack. + (build_java_signature): Temporary use permanent_obstack. + * verify.c: (verify_jvm_instruction): removed unnecessary verification + on ACC_SUPER flag. + * java-tree.h (METHOD_NATIVE, METHOD_TRANSIENT): Defined. + (FIELD_VOLATILE, FIELD_TRANSIENT): Defined. + (CLASS_P): Defined + +1997-09-11 Per Bothner + + * class.c (append_gpp_mangled_type): Fix typo. + (emit_register_class): Use main_class to get class object, rather + than looking for no-longer-existing static decl starting with _CL. + * typeck.c (parse_signature_type): Promote array element type + if it is a RECORD_TYPE. + +1997-09-10 Per Bothner + + * class.c (push_class_static_dummy_field): New function. + (mangle_static_field): New. Do G++-style mangling of static fields. + (layout_class): Mandle static fields here, not in add_field. + (build_class_ref): The class object is now a dummy static field. + * decl.c (find_local_variable): Look for best, instead of first match. + * expr.c (push_type): Always promote_type, not just for RECORD_TYPE. + (build_java_athrow): Don't check here if exception is Throwable. + * java-tree.h (TYPE_UNSET): Renamed to TYPE_UNKNOWN. + (TYPE_USED): Removed. No longer used ... + * parse.c (jcf_parse): Call push_class_static_dummy_field. + * verify.c (push_pending_label): New function. + (push_pending_block): Renamed to check_pending_block. + (merge_types): Remove unneeded suuport for TYPE_UNUSED. + (verify_jvm_instructions): Only reset prev_eh_ranges (to force + re-checking possible handlers) after a store (less wasted work). + Check for null handler (finally) before calling add_handler. + Various changes to (finally?) correctly handle try/finally. + +1997-09-09 Brendan Kehoe + + * class.c: Include stdio.h. + +1997-09-04 Per Bothner + + * expr.c (expand_invoke): Use COMPOUND_EXPR (and TREE_SIDE_EFFECTS) + to make sure class is initialized before static/special invoke. + + * verify.c (verify_jvm_instructions): On a store instruction, + call find_local_variable to force pre-allocation of decl and rtx. + * decl.c (push_jvm_slot): Set DECL_REGISTER on stack slots. + +1997-09-03 Per Bothner + + * class.c (build_class_ref): Strip off "promoted_" if need be. + (make_field_value): Call build_java_signature when needed. + (layout_class): Don't make_function_rtl if METHOD_ABSTRACT. + * expr.c (build_java_athrow): Don't push_value of exception. + (build_java_binop): Implement COMPARE_L_EXPR and COMPARE_G_EXPR to + match specification of [fd]cmp[lg] for NaNs. + (expand_byte_code): Add support for exception handler ranges. + * except.c: Add skeleton for EH code-generation. + * verify.c (merge_types): Treat all promoted integral types as equal. + * constants.c (build_constants_constructor): To force creation of + current_constant_pool_data_ref, call build_constant_data_ref. + + * javaop.def (lload): Fix typo. + * jcf-dump.c (main): Clear filename to prevent possibly-bad free. + +1997-09-02 Brendan Kehoe + + * parse.c: Don't include function.h. + +1997-08-27 Per Bothner + + * except.[ch]: New files. + * Makefile.in (JAVA_OBJS): Add except.o + * expr.c: Temporary warning about unimplemented exceptions. + * verify.c: Verify exception handlers. + + * jcf-dump.c (disassemble_method): Print exception table. + +1997-08-27 Alexandre Petit-Bianco + + * expr.c (verify_jvm_instructions): Started a thorough + verification of invoke* bytecodes. + (expand_byte_code): flush quick stack if PC is the target of a + branch. and undef RET (conflicting with config/i386/i386.h). + (expand_java_arrayload): Fixed bogus cast, when Boolean type is + used. + (expand_invoke): Now handles invokeinterface and do more + verification according to the bytecode. + (lookup_field): Don't try to load the class if processing + dtable_type. + (can_widen_reference_to): Now handles interfaces. + * decl.c (init_decl_processing): New global variable + soft_lookupinterfacemethod_node, declared in java-tree.h. + Call set_super_info on string_type_node. + * java-tree.h (CLASS_INTERFACE, CLASS_ABSTRACT, CLASS_SUPER): Now + defined. + * class.c (set_super_info): Fills the CLASS_* flags according to + access_flags. + (get_access_flags_from_decl): Handles all class flags. + +1997-08-26 Per Bothner + + * class.c (add_method): Zero out newly-allocated DECL_LANG_SPECIFIC. + * parse.c (yyparse): Check for abstract method, and missing code. + * expr.c (expand_byte_code): Change interface. + * lang.c (put_decl_node): Print promoted types prettier. + * verify.c (verify_jvm_instruction): Change interface. + Partial support for scanning exception table. + For load instructions, handle promoted integral types. + +1997-08-21 Per Bothner + + * verify.c: New file, with contents moved from expr.c. + * expr.c: Bunch of stuff (mostly verification) moved to verify.c. + * typeck.c (is_array_type_p): Moved here from expr.c. + * java-tree.h: Add some now-needed function declarations. + * Makefile.in (JAVA_OBJS): Added verify.o. + +1997-08-20 Alexandre Petit-Bianco + + * class.c (add_method): Sets the METHOD_SYNCHRONIZED flag, sets the + METHOD_ABSTRACT flag. + + * java-tree.h (METHOD_SYNCHRONIZED): Set to DECL_LANG_FLAG_4. + (IS_METHOD_CLINIT_P, IS_METHOD_INIT_P): New macros. + (METHOD_ABSTRACT): Set to DECL_LANG_FLAG_5 + + * decl.c (soft_monitorenter_node, soft_monitorexit_node): New global + variables. + (start_java_method): Hook for SYNCHRONIZED methods. + + * expr.c (build_java_jsr, build_java_ret): New functions + (JSR,PRE): New macros + (PRE_TABLE_SWITCH, PRE_LOOKUP_SWITCH): Fixed and secured. + (verify_jvm_instructions): tableswitch, lookupswitch, + monitorenter, monitorexit, goto_w: verified. + (LOOKUP_SWITCH, TABLE_SWITCH): Fixed generation of default: label + (build_java_monitor): New function. + (MONITOR_OPERATION): Modified to call build_java_monitor() + (verify_jvm_instructions): Started a thorough verification of + invoke* bytecodes. + +1997-08-19 Per Bothner + + Support verification of jsr/ret subroutines (used for try/finally). + * decl.c (return_address_type_node): New type node. + * java-tree.h (LABEL_RETURN_LABEL, LABEL_RETURN_TYPE_STATE, + RETURN_MAP_ADJUSTED, LABEL_RETURN_LABELS, LABEL_IN_SUBR, + LABEL_SUBR_START, LABEL_SUBR_CONTEXT, BCODE_VERIFIED): New macros. + (TYPE_UNSET, TYPE_SECOND, TYPE_NULL, TYPE_RETURN_ADDR, TYPE_UNUSED, + TYPE_USED): New macros for special types in type_map. + + * java-tree.h (BCODE_JUMP_TARGET): Renamed to BCODE_TARGET. + (BCODE_BACKWARDS_TARGET, CODE_FORWARDS_TARGET): Replaced by + BCODE_JUMP_TARGET. + * expr.c (expand_byte_code): Fix logic to warn of unused instructions. + + * expr.c (can_widen_reference_to): New function. + (pop_type): Use it. + (merge_type_state): Support handling start of subroutine. + (push_pending_block): Return char* error message, instead of calling + fatal on an error. Also handle subroutines. + (verify_jvm_instructions): Handle errors from push_poending_block. + Support jsr and ret instructions. + +1997-08-19 Per Bothner + + * jcf-io.c (find_classfile): Fix thinko. + * jcf-dump.c: Add CONVERT2 (to match changed javaop.def). + +1997-08-12 Jason Merrill + + * Makefile.in (BISON): Remove. + +1997-08-07 Per Bothner + + * Makefile.in: Convert to autoconf. + * config-lang.in (outputs): Added java/Makefile. + + * Make-lang.in, lang-specs.h, config-lang.in, Makefile.in: + Rename cc1java to jc1. + + * lang.c (init_parse, finihs_parse): New functions #ifdef USE_CPPLIB. + * Makefile.in (INTERNAL_CFLAGS): Add @extra_c_flags. + + * class.c (class_depth): Do load_class if needed. + + Mostly better verification. + * decl.c (pushdecl): Set TYPE_STUB_DECL for a type. + (init_decl_processing): Change return type of soft_checkcast. + * expr.c (expand_java_CHECKCAST): Do push_value of the "casted" value. + * lang.c (put_decl_string, put_decl_node, lang_printable_name, + lang_print_error): New functions. + (lang_init): Set global hook print_error_function to lang_print_error. + * expr.c: In the type_map ptr_type_node is only used for null now. + (pop_type, merge_types): Hence ptr_type_node matches any reference. + (merge_types): Dererence pointer to record types before comparing. + (decode_newarray_type, merge_types): On error just return NULL. + (build_java_binop): Add preliminary implementation (with warning) + for COMPARE_L_EXPR and COMPARE_G_EXPR (i.e. [fd]cmp[lg]). + (lookup_label): Set DECL_IGNORED_P (for dwarf2out). + (expand_compare, expand_java_goto, expand_java_call): Don't + push_pending_block, since that only makes sense when verifying. + (merge_type_state): Different return codes. + (push_pending_block): A block may need to be verified more than once. + (expand_byte_code): Warn about unused code at code generation time. + (verify_jvm_instruction): Changed logic, since code may need to be + re-verified if type-state has changed. Also, better error handling. + Implement acmpeq, acmpne, pop, pop2, swap, checkcast, instanceof. + Improve newarray, anewarray, ?aload, athrow, + * java-tree.h (LABEL_CHANGED): New macro. + +1997-08-05 Alexandre Petit-Bianco + + * decl.c (soft_athrow_node): New global variable initialized. + * javaop.def (i2b, i2c, i2s): Invoke CONVERT2 + * typeck.c (convert): Added support for REAL_TYPE. + (convert_to_char): New function. + (convert): Handle CHAR_TYPE. + * expr.c (expand_java_arraystore): Modified because CHAR/BYTE/BOOLEAN/ + SHORT now expect INT but store as CHAR/BYTE/BOOLEAN/SHORT. + (expand_java_arrayload): CHAR/BYTE/BOOLEAN/SHORT now convert result to + promoted type. + (verify_jvm_instructions): Added break a the end of bogus unop: label. + (OPCODE_astore): Pop an int operand from the type stack + (OPCODE_astore): Push the promoted type onto the stack + (process_jvm_instruction): New macro CONVERT2 for i2c, i2s and i2b. + (JAVA_ARRAY_LENGTH_OFFSET, JAVA_ARRAY_DATA_OFFSET): Modified + to Use The Right Things. + (pop_type): Accept CHAR/BYTE/BOOLEAN/SHORT promoted type as + compatible with INT. BOOLEAN is made equivalent to BYTE. + (OPCODE_athrow, OPCODE_aconst_null, OPCODE_ifnull, + OPCODE_ifnonnull): Now supported. + (build_java_athrow): New function. + +1997-08-04 Per Bothner + + Rename method name to match G++ (and fix mangling). + * class.c (layout_class): Replace method name of by class name. + (make_method_value): Do inverse renaming of constructor from . + * java-tree.h (DECL_CONSTRUCTOR_P): New macro. + * typeck.c (lookup_java_constructor): New function. + * expr.c (expand_invoke): If method_name is , call + lookup_java_constructor to find constructor. + + * parse.c (get_constant): Handle CONSTANT_Float and CONSTANT_Double. + +1997-08-01 Alexandre Petit-Bianco + + * parse.c (get_class_constant): Modified to handle array "classes" + * typeck.c (set_local_type): Bug fixed when filling type_map[] with + wide type. + (convert): Modified to handle real type. + * java-tree.h (soft_badarrayindex_node, soft_anewarray_node, + soft_multianewarray, soft_newarray_node, soft_throw_node): New global + variables declared. + * decl.c (soft_badarrayindex_node, soft_anewarray_node, + soft_multianewarray, soft_newarray_node, soft_throw_node): New + global variables initialized. + (find_local_variable): Handles the case of a pointer + (end_java_method): Restore the use of one more scope + * expr.c (build_java_arraynull_check, build_java_arrayaccess, + build_java_array_length_access, expand_java_arrayload, + expand_java_arraystore, expand_java_array_length, + expand_java_multianewarray, expand_java_anewarray, + build_java_check_indexed_type, is_array_type_p, + build_java_throw_out_of_bound_exception): New functions. + (STORE_INTERNAL): Now forces type of the decl to be type of the value. + (OPCODE_arraylength, OPCODE_newarray, OPCODE_astore, + OPCODE_aload): Implemented code for verification. + (ARRAY_STORE, ARRAY_LOAD, ARRAY_LENGTH, ARRAY_NEW_PTR, ARRAY_NEW_NUM + ARRAY_NEW_MULTI): Macro defined. + (CONVERT): Modified to invoke convert(). + (case OPCODE_aload2): Fixed index typo from 2 to 1. + +1997-07-31 Per Bothner + + * class.c (push_class): Set DECL_ARTIFICIAL (for dbxout.c). + (build_class_ref, is_compiled_class): Handle pointer-to-record types. + (make_class_data): Field name needs '/' as package prefix. + * expr.c (type_stack_dup, java_stack_dup): Fix fencepost errors. + +1997-07-25 Per Bothner + + Implement debug information for local variables. + * java-tree.h (DECL_CODE_LENGTH, DECL_ARG_SLOT_COUNT, + DECL_LOCAL_SLOT_NUMBER, DECL_LOCAL_START_PC, DECL_LOCAL_END_PC, + DECL_LOCAL_SLOT_CHAIN): New macros. + (struct lang_decl_var): New type. + * parse.c (give_name_to_locals): Move to decl.c. + * decl.c (give_name_to_locals): Re-written to Do The Right Thing. + (start_java_method): Re-write parameter handling. + (pending_local_decls): New global variable. + (push_jvm_slot, maybe_pushlevels, maybe_poplevels): New functions. + (find_local_variable): Accept pc so we can skips decls not in range. + (struct binding_level): Add end_pc field. + * expr.c (expand_byte_code): Call maybe_pushlevels and maybe_poplevels. + (various): Change so current pc gets passed to find_local_variable. + + * decl.c (init_decl_processing): Re-arrange fields in + class_type_node and and method_type_node to match kaffe 0.9.1. + * class.c (make_method_value, make_class_data): Update + initializations to match. + +1997-07-16 Per Bothner + + * class.c (unicode_mangling_length, emit_unicode_mangled_name, + append_gpp_mangled_name, append_gpp_mangled_type): New functions. + (push_super_field): New function. + (make_class_data): Handle inheritance of class static initializer. + (layout_class): New name mangling. + * constants.c (build_constant_data_ref): Init type of data array + to a one-element array. + (build_constants_constructor): Set DECL_SIZE from complete array type. + * decl.c: Rename class_type, object_type etc to class_type_node, + object_type_node etc. Make former inherit from latter. + * expr.c (expand_invoke): Add cast of function address. + * java-tree.h (TYPE_ARRAY_ELEMENT, PUSH_SUPER_VALUE): New. + * parse.c (yyparse): Don't call layout_class here. + * typeck.c (build_java_array_type): Set TYPE_ARRAY_ELEMENT. + +1997-06-14 Per Bothner + + * decl.c, class.c: Update method type to match latest Kaffe snapshot. + * constants.c (lookup_name_constant): Renamed to alloc_name_constant. + (alloc_class_constant): New. + * expr.c (expand_invoke): Make sure method's class is initialized. + * class.c (interits_from_p, emit_register_class): New functions. + * parse.c (yyparse): Call emit_register_class. + +1997-06-09 Per Bothner + + * constants.c: New file, to handle constant pool. + * Makefile.in (JAVA_OBJS): Add constants.o. + * decl.c (init_decl_processing): Update, fix, finish various structs. + (pushdecl_top_level): New. + * parse.c (layout_class): Moved to class.c. + * expr.c (java_push_constant_from_pool): New function. + * class.c (build_class_ref): Make work fully + (make_class_data): Emit super-class, constant pool, interface vector. + +1997-06-03 Per Bothner + + java-tree.h (DECL_SIGNATURE, BCODE_EMITTED): Remove. + (LABEL_VERIFIED, BCODE_EXCEPTION_TARGET, TYPE_ARRAY_P): New. + * class.c (class_depth): New function. + (lookup_named_class): Replaced by new function lookup_class. + * decl.c (object_type_node, string_type_node): New. + Remove various types that we no longer need. + * expr.c (verify_jvm_instructions): New separate verifier pass. + (push_type, pop_type): New functions for verifier. + (type_stack_dup, pop_argument_types, merge_types): Likewise. + (expand_byte_code): Simplify, since we assume already verified. + (expand_invoke): Now mostly works. + * javaop.def: Rename ldc1->ldc, ldc2->ldc_w, ldc2w->ldc2_w. + * lang.c (main_class): Move to parse.c. Don't make_class yet. + * parse.c: Wait to allocate class object until we know its name. + (layout_class): Calculate DECL_VINDEX for each virtual method. + * typeck.c (get_array_type): Rename to ... + (build_java_array_type): ... and provide working implementation. + (build_java_signature): New function - build Java signature of type. + (set_java_signature): New function - cache signature with type. + (lookup_java_method): New function. + +1997-05-06 Per Bothner + + * class.c (ident_subst): Take extra SUFFIX parameter. + (add_field): Set DECL_ASSEMBLER_NAME of static fields; more. + (set_constant_value, build_static_field_ref, is_compiled_class): New. + (build_class_ref): Actually implement. + * decl.c, java-tree.h: Renamed some xx_type to xx_type_node. + * decl.c (builtin_function): New. + (init_decl_processing): Update for current Kaffe. Declare some + builtin Kaffe functions. + * expr.c (build_address_of): New. + (expand_java_NEW, expand_java_INSTANCEOF, expand_java_CHECKCAST): + Renamed (from expand_java_new etc), and added working implementations. + (build_field_ref): Now also handle static fields. + (expand_invoke): Implement invokestatic, and start implement rest. + * java-opcodes.h: Use javaop.def to avoid duplicated list. + * javaop.def: Rename invokevirt -> invokevirtual. + * lang.c (use_handles): Removed. + * parse.c: Add support for ConstantValue attribute. + Handle nested loading of a class. (JPOOL_UTF): New. + +1997-03-11 Per Bothner + + * expr.c (expand_java_pushc): Support #ifndef REAL_ARITHMETIC case. + +1997-02-27 Per Bothner + + * Make-lang.in (java.install-man): New empty rule. + * typeck.c (set_local_type): New function. + * expr.c (STORE_INTERNAL): Call find_local_variable, + not find_stack_slot. Call set_local_type. + +1997-02-12 Per Bothner + + * java-tree.h: Various new macros for constructing RECORD_TYPEs, + and building RECORD_TYPE CONSTRUCTORs. + Also support for creating Utf8Const objects from an INDETIFIER_NODE. + + * lang.c (use_handles): Change the default to 0. + * decl.c: Define and build class_type, field_type, utf8const_type. + * class.c (make_class_data, make_field_value, + get_access_flags_from_decl, build_class_ref, build_utf8_ref, + hashUtf8String, strLengthUtf8, mangled_classname: + Functions to build reflective data structures. + * parse.c (yyparse): Call make_class_data. + + * jcf-io.c (open_class, find_classfile): New functions. + * jcf-dump.c: Support reading classfile from explicitly-named + class file (without CLASSPATH searching). + +1996-10-24 Per Bothner + + * jcf-reader.c: Add parameter list to HANDLE_CONSTANT_Utf8. + * parse.c (JPOOL_UTF_LENGTH, JPOOL_UTF_DATA, HANDLE_CONSTANT_Utf8): + Override jcf-reader macros so CONSTANT_Utf8 becomes tree node here. + (get_constant): Now trivial for CONSTANT_Utf8. + + * jcf.h: Make NEW_CPOOL the default. + * jcf.h, jcf-reader.c, parse.c: Remove support for !NEW_CPOOL. + +1996-10-24 Per Bothner + + New directory. + + +Copyright (C) 1996-2013 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index efa24ea79b7..eb5472aa0c7 100644 --- a/gcc/java/gcj.texi +++ b/gcc/java/gcj.texi @@ -17,7 +17,7 @@ @c the word ``Java'. @c When this manual is copyrighted. -@set copyrights-gcj 2001-2013 +@set copyrights-gcj 2001-2014 @copying @c man begin COPYRIGHT diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index 7438174abaf..0a9cce162d4 100644 --- a/gcc/java/jcf-dump.c +++ b/gcc/java/jcf-dump.c @@ -1,7 +1,7 @@ /* Program to dump out a Java(TM) .class file. Functionally similar to Sun's javap. - Copyright (C) 1996-2013 Free Software Foundation, Inc. + Copyright (C) 1996-2014 Free Software Foundation, Inc. This file is part of GCC. @@ -1227,7 +1227,7 @@ static void version (void) { printf ("jcf-dump %s%s\n\n", pkgversion_string, version_string); - printf ("Copyright %s 2013 Free Software Foundation, Inc.\n", _("(C)")); + printf ("Copyright %s 2014 Free Software Foundation, Inc.\n", _("(C)")); printf (_("This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n")); exit (0); diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 60f1572e09b..766484893ee 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2014-01-02 Tobias Burnus + + * libgomp.texi: Bump @copying's copyright year. + 2013-12-17 Andreas Tobler * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi index ba430fc9fd7..8461c5b0c7c 100644 --- a/libgomp/libgomp.texi +++ b/libgomp/libgomp.texi @@ -7,7 +7,7 @@ @copying -Copyright @copyright{} 2006-2013 Free Software Foundation, Inc. +Copyright @copyright{} 2006-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or diff --git a/libitm/ChangeLog b/libitm/ChangeLog index e6dc6468d19..730cf3d0248 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,7 @@ +2014-01-02 Tobias Burnus + + * libitm.texi: Bump @copying's copyright year. + 2013-11-14 Ulrich Weigand * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]: diff --git a/libitm/libitm.texi b/libitm/libitm.texi index 276cb939937..38b16b56a89 100644 --- a/libitm/libitm.texi +++ b/libitm/libitm.texi @@ -7,7 +7,7 @@ @copying -Copyright @copyright{} 2011-2013 Free Software Foundation, Inc. +Copyright @copyright{} 2011-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 005b168ea40..10d434c019d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,12 @@ +2014-01-02 Tobias Burnus + + * classpath/gnu/java/rmi/registry/RegistryImpl.java (version): Update + copyright notice dates. + * classpath/tools/gnu/classpath/tools/orbd/Main.java (run): Ditto. + * gnu/gcj/convert/Convert.java (version): Update copyright notice + dates. + * gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto. + 2013-12-09 Andreas Schwab * Makefile.am (toolexeclib_LTLIBRARIES) [USE_LIBGCJ_BC]: Use diff --git a/libjava/classpath/gnu/java/rmi/registry/RegistryImpl.java b/libjava/classpath/gnu/java/rmi/registry/RegistryImpl.java index 830a727c575..f89371d90c6 100644 --- a/libjava/classpath/gnu/java/rmi/registry/RegistryImpl.java +++ b/libjava/classpath/gnu/java/rmi/registry/RegistryImpl.java @@ -1,6 +1,5 @@ /* RegistryImpl.java -- - Copyright (c) 1996, 1997, 1998, 1999, 2002, 2005, 2008, 2009, 2010, 2011, - 2012, 2013 Free Software Foundation, Inc. + Copyright (c) 1996-2014 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -111,7 +110,7 @@ public static void version() { + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); - System.out.println("Copyright 2013 Free Software Foundation, Inc."); + System.out.println("Copyright 2014 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0); diff --git a/libjava/classpath/tools/gnu/classpath/tools/orbd/Main.java b/libjava/classpath/tools/gnu/classpath/tools/orbd/Main.java index 9e51ec6ef56..b1ab0c9e940 100644 --- a/libjava/classpath/tools/gnu/classpath/tools/orbd/Main.java +++ b/libjava/classpath/tools/gnu/classpath/tools/orbd/Main.java @@ -1,6 +1,5 @@ /* NamingServicePersistent.java -- The persistent naming service. - Copyright (C) 2006, 2008, 2009, 2010, 2011, 2012, 2013 - Free Software Foundation, Inc. + Copyright (C) 2006-2014 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -180,7 +179,7 @@ public class Main System.out.println("GNU Classpath persistent naming service " + "started at " + iorr.Internet.host + ":" + iorr.Internet.port + " key 'NameService'.\n\n" - + "Copyright (C) 2013 Free Software Foundation\n" + + "Copyright (C) 2014 Free Software Foundation\n" + "This tool comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are\nwelcome to " + "redistribute it under conditions, defined in " diff --git a/libjava/gnu/gcj/convert/Convert.java b/libjava/gnu/gcj/convert/Convert.java index 9fa3e703554..d2677cb85b2 100644 --- a/libjava/gnu/gcj/convert/Convert.java +++ b/libjava/gnu/gcj/convert/Convert.java @@ -1,5 +1,4 @@ -/* Copyright (C) 1999, 2002, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, - 2013 Free Software Foundation +/* Copyright (C) 1999-2014 Free Software Foundation This file is part of libgcj. @@ -46,7 +45,7 @@ public class Convert + ") " + System.getProperty("java.vm.version")); System.out.println(); - System.out.println("Copyright (C) 2013 Free Software Foundation, Inc."); + System.out.println("Copyright (C) 2014 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0); diff --git a/libjava/gnu/gcj/tools/gcj_dbtool/Main.java b/libjava/gnu/gcj/tools/gcj_dbtool/Main.java index c4e8c371184..5e26b19ccda 100644 --- a/libjava/gnu/gcj/tools/gcj_dbtool/Main.java +++ b/libjava/gnu/gcj/tools/gcj_dbtool/Main.java @@ -1,5 +1,4 @@ -/* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 - Free Software Foundation +/* Copyright (C) 2004-2014 Free Software Foundation This file is part of libgcj. @@ -47,7 +46,7 @@ public class Main + ") " + System.getProperty("java.vm.version")); System.out.println(); - System.out.println("Copyright 2013 Free Software Foundation, Inc."); + System.out.println("Copyright 2014 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); return; diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index 804a3d54551..371614b8ca6 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,7 @@ +2014-01-02 Tobias Burnus + + * libquadmath.texi: Bump @copying's copyright year. + 2013-12-04 Richard Sandiford * Makefile.am (AM_CPPFLAGS): Define. diff --git a/libquadmath/libquadmath.texi b/libquadmath/libquadmath.texi index 5f80d2b08c5..c9ebf6a12b0 100644 --- a/libquadmath/libquadmath.texi +++ b/libquadmath/libquadmath.texi @@ -6,7 +6,7 @@ @c %**end of header @copying -Copyright @copyright{} 2010-2013 Free Software Foundation, Inc. +Copyright @copyright{} 2010-2014 Free Software Foundation, Inc. @quotation Permission is granted to copy, distribute and/or modify this document