Commit ff06e6b1 by Andreas Schwab

lang.c (java_init_options_struct): Set frontend_set_flag_trapping_math.

* lang.c (java_init_options_struct): Set
frontend_set_flag_trapping_math.

From-SVN: r183425
parent b2d2adc6
2012-01-23 Andreas Schwab <schwab@linux-m68k.org>
* lang.c (java_init_options_struct): Set
frontend_set_flag_trapping_math.
2012-01-01 Jakub Jelinek <jakub@redhat.com> 2012-01-01 Jakub Jelinek <jakub@redhat.com>
* jcf-dump.c (version): Update copyright notice dates. * jcf-dump.c (version): Update copyright notice dates.
...@@ -195,7 +200,7 @@ ...@@ -195,7 +200,7 @@
2011-01-07 Kai Tietz <kai.tietz@onevision.com> 2011-01-07 Kai Tietz <kai.tietz@onevision.com>
PR bootstrap/47215 PR bootstrap/47215
* decl.c (java_init_decl_processing): Initialize unsigned_type_node. * decl.c (java_init_decl_processing): Initialize unsigned_type_node.
2011-01-07 Kai Tietz <kai.tietz@onevision.com> 2011-01-07 Kai Tietz <kai.tietz@onevision.com>
...@@ -317,7 +322,7 @@ ...@@ -317,7 +322,7 @@
2010-10-04 Andi Kleen <ak@linux.intel.com> 2010-10-04 Andi Kleen <ak@linux.intel.com>
* Make-lang.in (xgcj, jc1, jcf-dump, jvgenmain): * Make-lang.in (xgcj, jc1, jcf-dump, jvgenmain):
Add + to build rule. Add + to build rule.
2010-09-29 Joseph Myers <joseph@codesourcery.com> 2010-09-29 Joseph Myers <joseph@codesourcery.com>
...@@ -863,7 +868,7 @@ ...@@ -863,7 +868,7 @@
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* class.c: Replace %J by an explicit location. Update all calls. * class.c: Replace %J by an explicit location. Update all calls.
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* jcf-parse.c: Replace %H by an explicit location. Update all calls. * jcf-parse.c: Replace %H by an explicit location. Update all calls.
...@@ -878,7 +883,7 @@ ...@@ -878,7 +883,7 @@
(MANGLE_CXX_KEYWORDS): New macro. (MANGLE_CXX_KEYWORDS): New macro.
(append_gpp_mangled_name): Use MANGLE_CXX_KEYWORDS. (append_gpp_mangled_name): Use MANGLE_CXX_KEYWORDS.
(append_gpp_mangled_name): Likewise. (append_gpp_mangled_name): Likewise.
* mangle.c: Move code to mangle_name.c. * mangle.c: Move code to mangle_name.c.
(mangle_member_name): Don't call cxx_keyword_p. (mangle_member_name): Don't call cxx_keyword_p.
2009-06-12 Aldy Hernandez <aldyh@redhat.com> 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
...@@ -896,7 +901,7 @@ ...@@ -896,7 +901,7 @@
* builtins.c: Same. * builtins.c: Same.
* expr.c: Same. * expr.c: Same.
* java-tree.h (PUSH_FIELD): Add location field. * java-tree.h (PUSH_FIELD): Add location field.
2009-06-09 Ian Lance Taylor <iant@google.com> 2009-06-09 Ian Lance Taylor <iant@google.com>
* verify.h: Remove extern "C". * verify.h: Remove extern "C".
...@@ -963,9 +968,9 @@ ...@@ -963,9 +968,9 @@
2009-04-09 Paolo Bonzini <bonzini@gnu.org> 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (compareAndSwapLong_builtin, * builtins.c (compareAndSwapLong_builtin,
compareAndSwapInt_builtin, compareAndSwapObject_builtin, compareAndSwapInt_builtin, compareAndSwapObject_builtin,
VMSupportsCS8_builtin): Do not look at sync_compare_and_swap_cc. VMSupportsCS8_builtin): Do not look at sync_compare_and_swap_cc.
2009-03-31 Richard Guenther <rguenther@suse.de> 2009-03-31 Richard Guenther <rguenther@suse.de>
...@@ -1110,7 +1115,7 @@ ...@@ -1110,7 +1115,7 @@
mixed declarations and code. mixed declarations and code.
2008-05-02 Doug Kwan <dougkwan@google.com> 2008-05-02 Doug Kwan <dougkwan@google.com>
* expr.c (build_java_throw_out_of_bounds_exception ): Wrap call to * expr.c (build_java_throw_out_of_bounds_exception ): Wrap call to
_Jv_ThrowBadArrayIndex with a COMPOUND_EXPR to return 0. _Jv_ThrowBadArrayIndex with a COMPOUND_EXPR to return 0.
...@@ -1125,8 +1130,8 @@ ...@@ -1125,8 +1130,8 @@
* java-gimplify.c (java_gimplify_expr): Make pre_p and post_p * java-gimplify.c (java_gimplify_expr): Make pre_p and post_p
sequences. sequences.
(java_gimplify_self_mod_expr): Same. (java_gimplify_self_mod_expr): Same.
* java-tree.h (java_gimplify_expr): Make pre_p and post_p * java-tree.h (java_gimplify_expr): Make pre_p and post_p
sequences. sequences.
2008-07-24 Jan Hubicka <jh@suse.cz> 2008-07-24 Jan Hubicka <jh@suse.cz>
...@@ -1272,9 +1277,9 @@ ...@@ -1272,9 +1277,9 @@
2008-04-03 Paolo Bonzini <bonzini@gnu.org> 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
* java-tree.h (insert_block): Kill. * java-tree.h (insert_block): Kill.
* decl.c (insert_block): Kill. * decl.c (insert_block): Kill.
2008-04-01 Joseph Myers <joseph@codesourcery.com> 2008-04-01 Joseph Myers <joseph@codesourcery.com>
* gcj.texi: Include gpl_v3.texi instead of gpl.texi * gcj.texi: Include gpl_v3.texi instead of gpl.texi
...@@ -1305,10 +1310,10 @@ ...@@ -1305,10 +1310,10 @@
2008-03-11 Paolo Bonzini <bonzini@gnu.org> 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
* jcf-parse.c (java_parse_file): Assert binding levels are * jcf-parse.c (java_parse_file): Assert binding levels are
left in order. left in order.
* lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, java_clear_binding_stack): * lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, java_clear_binding_stack):
Delete. Delete.
2008-03-02 Jakub Jelinek <jakub@redhat.com> 2008-03-02 Jakub Jelinek <jakub@redhat.com>
...@@ -1637,12 +1642,12 @@ ...@@ -1637,12 +1642,12 @@
2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* class.c (java_treetreehash_hash, java_treetreehash_compare): * class.c (java_treetreehash_hash, java_treetreehash_compare):
Constify. Constify.
* expr.c (type_assertion_eq): Likewise. * expr.c (type_assertion_eq): Likewise.
* jcf-io.c (compare_path): Likewise. * jcf-io.c (compare_path): Likewise.
* jcf-parse.c (cmpstringp): Likewise. * jcf-parse.c (cmpstringp): Likewise.
* verify-impl.c (get_one_type, compute_argument_types, * verify-impl.c (get_one_type, compute_argument_types,
compute_return_type): Likewise. compute_return_type): Likewise.
2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
...@@ -1668,7 +1673,7 @@ ...@@ -1668,7 +1673,7 @@
2007-07-03 David Daney <ddaney@avtrex.com> 2007-07-03 David Daney <ddaney@avtrex.com>
* java/Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to * java/Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to
include path. include path.
(doc/gcj.dvi): Same. (doc/gcj.dvi): Same.
(doc/gcj.pdf): Same. (doc/gcj.pdf): Same.
...@@ -1719,16 +1724,16 @@ ...@@ -1719,16 +1724,16 @@
2007-04-03 Andrew Haley <aph@redhat.com> 2007-04-03 Andrew Haley <aph@redhat.com>
* jvgenmain.c (main): Change main to use class$, not class$$. * jvgenmain.c (main): Change main to use class$, not class$$.
(do_mangle_classname): Likewise. (do_mangle_classname): Likewise.
* class.c (hide): New function. * class.c (hide): New function.
(add_field): Hide everything that shouldn't be visible outside a (add_field): Hide everything that shouldn't be visible outside a
DSO. DSO.
(build_static_class_ref): Likewise. (build_static_class_ref): Likewise.
(build_classdollar_field): Likewise. (build_classdollar_field): Likewise.
(make_class_data): Likewise. (make_class_data): Likewise.
(layout_class_method): Likewise. (layout_class_method): Likewise.
* expr.c (special_method_p): New function. * expr.c (special_method_p): New function.
* class.c (push_class): Don't bogusly guess the source filename. * class.c (push_class): Don't bogusly guess the source filename.
* jcf-parse.c (give_name_to_class): Don't set input_location from * jcf-parse.c (give_name_to_class): Don't set input_location from
...@@ -2242,7 +2247,7 @@ ...@@ -2242,7 +2247,7 @@
* expr.c (rewrite_arglist_getcaller): New. * expr.c (rewrite_arglist_getcaller): New.
(rewrite_arglist_getclass): Fix indentation. (rewrite_arglist_getclass): Fix indentation.
(rules): Add gnu.classpath.VMStackWalker.getCallingClass() and (rules): Add gnu.classpath.VMStackWalker.getCallingClass() and
gnu.classpath.VMStackWalker.getCallingClassLoader(). gnu.classpath.VMStackWalker.getCallingClassLoader().
* builtins.c (initialize_builtins): Remove duplicate def'n of * builtins.c (initialize_builtins): Remove duplicate def'n of
__sync_synchronize. __sync_synchronize.
...@@ -2307,21 +2312,21 @@ ...@@ -2307,21 +2312,21 @@
* jcf-parse.c (field_offsets, bit_obstack): New variables. * jcf-parse.c (field_offsets, bit_obstack): New variables.
(jcf_parse): Write end marker to annotation_data. (jcf_parse): Write end marker to annotation_data.
(java_parse_file): Create field_offsets bitmap. Destroy it. (java_parse_file): Create field_offsets bitmap. Destroy it.
(annotation_grow, annotation_rewrite_byte) (annotation_grow, annotation_rewrite_byte)
(annotation_rewrite_short, annotation_rewrite_int) (annotation_rewrite_short, annotation_rewrite_int)
(annotation_read_short, annotation_write_byte) (annotation_read_short, annotation_write_byte)
(annotation_write_short, annotation_write_int) (annotation_write_short, annotation_write_int)
(handle_long_constant, handle_constant, handle_element_value) (handle_long_constant, handle_constant, handle_element_value)
(handle_annotation, handle_annotations) (handle_annotation, handle_annotations)
(handle_annotation_attribute, rewrite_reflection_indexes) (handle_annotation_attribute, rewrite_reflection_indexes)
(handle_member_annotations, handle_parameter_annotations) (handle_member_annotations, handle_parameter_annotations)
(handle_default_annotation): New functions. (handle_default_annotation): New functions.
(HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE) (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE)
(HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE) (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE)
(HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE)
(HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE) (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE)
(HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): New definitions. (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): New definitions.
* java-tree.h (enum jv_attr_type, enum jv_attr_kind): New. * java-tree.h (enum jv_attr_type, enum jv_attr_kind): New.
(TYPE_REFLECTION_DATA): New. (TYPE_REFLECTION_DATA): New.
(TYPE_REFLECTION_DATASIZE): New. (TYPE_REFLECTION_DATASIZE): New.
* jcf.h (enum cpool_tag): Convert a bunch of #define constants to * jcf.h (enum cpool_tag): Convert a bunch of #define constants to
...@@ -2434,7 +2439,7 @@ ...@@ -2434,7 +2439,7 @@
putVolatile_builtin, getVolatile_builtin): New builtins. putVolatile_builtin, getVolatile_builtin): New builtins.
2006-06-08 Andrew Haley <aph@redhat.com> 2006-06-08 Andrew Haley <aph@redhat.com>
* expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
get_symbol_table_index(). get_symbol_table_index().
(maybe_rewrite_invocation): Set SPECIAL if we need to access a (maybe_rewrite_invocation): Set SPECIAL if we need to access a
...@@ -2454,7 +2459,7 @@ ...@@ -2454,7 +2459,7 @@
it to build_symbol_entry(). it to build_symbol_entry().
* parse.y (patch_invoke): Call maybe_rewrite_invocation() and set * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set
special accordingly. special accordingly.
2006-09-08 Andrew Haley <aph@redhat.com> 2006-09-08 Andrew Haley <aph@redhat.com>
* class.c (layout_class_method): Use build_java_signature, not * class.c (layout_class_method): Use build_java_signature, not
...@@ -2491,9 +2496,9 @@ ...@@ -2491,9 +2496,9 @@
2006-07-07 Andrew Haley <aph@redhat.com> 2006-07-07 Andrew Haley <aph@redhat.com>
* jcf-parse.c (set_source_filename): Don't check for * jcf-parse.c (set_source_filename): Don't check for
CLASS_FROM_CURRENTLY_COMPILED_P. CLASS_FROM_CURRENTLY_COMPILED_P.
Remove // comments. Remove // comments.
2006-07-07 Andrew Haley <aph@redhat.com> 2006-07-07 Andrew Haley <aph@redhat.com>
...@@ -2699,7 +2704,7 @@ ...@@ -2699,7 +2704,7 @@
* java-tree.h (update_aliases): Remove * java-tree.h (update_aliases): Remove
* expr.c (expand_iinc): Remove call to update_aliases(). * expr.c (expand_iinc): Remove call to update_aliases().
(STORE_INTERNAL): Likewise. (STORE_INTERNAL): Likewise.
* decl.c (update_aliases, initialize_local_variable) * decl.c (update_aliases, initialize_local_variable)
(maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls. (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.
2006-06-19 Andrew Haley <aph@redhat.com> 2006-06-19 Andrew Haley <aph@redhat.com>
...@@ -2999,7 +3004,7 @@ ...@@ -2999,7 +3004,7 @@
* typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for
array types. array types.
2006-02-08 Tom Tromey <tromey@redhat.com> 2006-02-08 Tom Tromey <tromey@redhat.com>
PR java/22578: PR java/22578:
...@@ -3238,7 +3243,7 @@ ...@@ -3238,7 +3243,7 @@
* parse.y (maybe_create_class_interface_decl): Set TYPE_PACKAGE for * parse.y (maybe_create_class_interface_decl): Set TYPE_PACKAGE for
the newly created type. Set import lists here, not in create_class. the newly created type. Set import lists here, not in create_class.
(jdep_resolve_class): Set current_class. (jdep_resolve_class): Set current_class.
(do_resolve_class): Use current_class's TYPE_PACKAGE to determine (do_resolve_class): Use current_class's TYPE_PACKAGE to determine
the current package context, not ctxp->package. the current package context, not ctxp->package.
(cicp_cache): Removed. (cicp_cache): Removed.
(class_in_current_package): Simplify implementation using TYPE_PACKAGE. (class_in_current_package): Simplify implementation using TYPE_PACKAGE.
...@@ -3248,7 +3253,7 @@ ...@@ -3248,7 +3253,7 @@
2005-09-09 Andrew Haley <aph@redhat.com> 2005-09-09 Andrew Haley <aph@redhat.com>
PR libgcj/23182 PR libgcj/23182
* expr.c (pop_type_0): If the expected type is object or ptr * 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 (i.e. void*), return the type of the object we just popped from
the stack. the stack.
...@@ -3406,11 +3411,11 @@ ...@@ -3406,11 +3411,11 @@
empty_statement. empty_statement.
2005-07-08 Daniel Berlin <dberlin@dberlin.org> 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
* java-tree.h (LABEL_RETURN_LABELS): Use decl_non_common. * java-tree.h (LABEL_RETURN_LABELS): Use decl_non_common.
(LABEL_PENDING_CHAIN): Ditto. (LABEL_PENDING_CHAIN): Ditto.
(LABEL_PC): Ditto. (LABEL_PC): Ditto.
(DECL_BIT_INDEX): Ditto. (DECL_BIT_INDEX): Ditto.
2005-07-07 Bryce McKinlay <mckinlay@redhat.com> 2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
...@@ -3419,7 +3424,7 @@ ...@@ -3419,7 +3424,7 @@
check_inner_class_access. check_inner_class_access.
(check_inner_class_access): Use inner_class_accessible. (check_inner_class_access): Use inner_class_accessible.
(resolve_inner_class): Simplify arguments. Create circularity hash (resolve_inner_class): Simplify arguments. Create circularity hash
here. Keep looking for classes if we found one that was inaccessible. here. Keep looking for classes if we found one that was inaccessible.
Return the inaccessible class only if there is no other match. Return the inaccessible class only if there is no other match.
(do_resolve_class): Update for new resolve_inner_class arguments. (do_resolve_class): Update for new resolve_inner_class arguments.
Don't create circularity_hash here. Don't create circularity_hash here.
...@@ -3434,7 +3439,7 @@ ...@@ -3434,7 +3439,7 @@
(java_complete_expand_method): Don't use purge_unchecked_exceptions (java_complete_expand_method): Don't use purge_unchecked_exceptions
or save/restore the exception list. or save/restore the exception list.
(check_thrown_exceptions): Add uncaught exceptions in anonymous (check_thrown_exceptions): Add uncaught exceptions in anonymous
class initializers and constructors to the throws clause of the method. class initializers and constructors to the throws clause of the method.
2005-07-05 Bryce McKinlay <mckinlay@redhat.com> 2005-07-05 Bryce McKinlay <mckinlay@redhat.com>
...@@ -3609,7 +3614,7 @@ ...@@ -3609,7 +3614,7 @@
2005-05-26 Bryce McKinlay <mckinlay@redhat.com> 2005-05-26 Bryce McKinlay <mckinlay@redhat.com>
* decl.c (GCJ_BINARYCOMPAT_ADDITION, * decl.c (GCJ_BINARYCOMPAT_ADDITION,
GCJ_BOOTSTRAP_LOADER_ADDITION): Removed. GCJ_BOOTSTRAP_LOADER_ADDITION): Removed.
(FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER, (FLAG_BINARYCOMPAT_ABI, FLAG_BOOTSTRAP_LOADER,
MINOR_BINARYCOMPAT_ABI_VERSION): New. MINOR_BINARYCOMPAT_ABI_VERSION): New.
...@@ -3804,7 +3809,7 @@ ...@@ -3804,7 +3809,7 @@
2005-04-27 Bryce McKinlay <mckinlay@redhat.com> 2005-04-27 Bryce McKinlay <mckinlay@redhat.com>
* gcj.texi (libgcj Runtime Properties): Remove obsolete * gcj.texi (libgcj Runtime Properties): Remove obsolete
gnu.gcj.runtime.NameFinder.* system properties. Update documentation gnu.gcj.runtime.NameFinder.* system properties. Update documentation
for gnu.gcj.runtime.NameFinder.use_addr2line and gnu.gcj.progname. for gnu.gcj.runtime.NameFinder.use_addr2line and gnu.gcj.progname.
2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
...@@ -3851,7 +3856,7 @@ ...@@ -3851,7 +3856,7 @@
* java-except.h (struct eh_range.handler): Remove unused field. * java-except.h (struct eh_range.handler): Remove unused field.
(handle_nested_ranges): Remove function declaration. (handle_nested_ranges): Remove function declaration.
(sanity_check_exception_range): Add function declaration. (sanity_check_exception_range): Add function declaration.
* verify.c (verify_jvm_instructions): Remove call to * verify.c (verify_jvm_instructions): Remove call to
handle_nested_ranges. handle_nested_ranges.
* verify-glue.c (verify_jvm_instructions_new): Call * verify-glue.c (verify_jvm_instructions_new): Call
...@@ -3950,7 +3955,7 @@ ...@@ -3950,7 +3955,7 @@
PR java/20502 PR java/20502
* jcf-parse.c (duplicate_class_warning): New function. * jcf-parse.c (duplicate_class_warning): New function.
(java_parse_file): Call duplicate_class_warning if (java_parse_file): Call duplicate_class_warning if
CLASS_FROM_CURRENTLY_COMPILED_P is already set. CLASS_FROM_CURRENTLY_COMPILED_P is already set.
(parse_zip_file_entries): Likewise. Also set (parse_zip_file_entries): Likewise. Also set
CLASS_FROM_CURRENTLY_COMPILED_P. CLASS_FROM_CURRENTLY_COMPILED_P.
......
/* Java(TM) language-specific utility routines. /* Java(TM) language-specific utility routines.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. 2005, 2006, 2007, 2008, 2010, 2012 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -550,6 +550,7 @@ java_init_options_struct (struct gcc_options *opts) ...@@ -550,6 +550,7 @@ java_init_options_struct (struct gcc_options *opts)
/* In Java floating point operations never trap. */ /* In Java floating point operations never trap. */
opts->x_flag_trapping_math = 0; opts->x_flag_trapping_math = 0;
opts->frontend_set_flag_trapping_math = true;
/* In Java arithmetic overflow always wraps around. */ /* In Java arithmetic overflow always wraps around. */
opts->x_flag_wrapv = 1; opts->x_flag_wrapv = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment