Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-09 Thread Tom Tromey
Jie == Jie Liu lj8...@gmail.com writes: Jie RTEMS does not have virtual memory management, so there is no error Jie when access the 0 address on rtems. Jie So 'str-length()' donot throw NPE and just return an meaningless value. If you compile the Java parts of the library with

Re: [PATCH] [JAVA] Double.parseDouble(null) throw NullPointerException

2011-08-08 Thread Tom Tromey
Jie == Jie Liu lj8...@gmail.com writes: Jie + if(str == NULL) Jie + throw new NullPointerException(); Jie + Jieint length = str-length(); Why doesn't 'str-length()' throw the NPE? Tom

Re: Remove line 0 hack in cp/decl.c (issue4835047)

2011-08-05 Thread Tom Tromey
Gabriel == Gabriel Charette gch...@google.com writes: Gabriel This hack, has described in more details in the email labeled Gabriel Line 0 Hack??, was now causing problem when serializing the Gabriel line_table in pph. I think you do have to handle location 0 somehow. This is UNKNOWN_LOCATION,

Re: RFC: add a testsuite for libstdc++ pretty-printers

2011-08-03 Thread Tom Tromey
. I tested this against gdb 7.2 (= unsupported) and 7.3 (= all tests pass). Let me know what you think. Tom 2011-08-03 Tom Tromey tro...@redhat.com * testsuite/libstdc++-prettyprinters/simple.cc: New file. * testsuite/lib/gdb-test.exp: New file. * testsuite/libstdc

Re: Remove unused line_maps field last_listed (issue4810058)

2011-07-28 Thread Tom Tromey
Gabriel == Gabriel Charette gch...@google.com writes: Gabriel 2011-07-28 Gabriel Charette gch...@google.com Gabriel* libcpp/include/line-map.h (struct line_maps): Gabriel Remove unused field last_listed. Ok. Tom

Re: [RFC] More compact (100x) -g3 .debug_gnu_macro (take 5)

2011-07-22 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Jakub Ok, based on further discussions here, on Dwarf-discuss and on IRC Jakub here is a hopefully final version. I've updated the gdb patch. Tom

Re: [RFC] More compact (100x) -g3 .debug_macinfo (take 3)

2011-07-18 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Jakub Ok, so how about this way (as DWARF4 modifications, of course for Jakub DWARF5 proposal GNU_ would be gone and the ops would have different Jakub codes): Thanks very much for writing it up this way. I think it is very important that all our

Re: [RFC] More compact (100x) -g3 .debug_macinfo

2011-07-18 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Tom I don't think I really understood DW_MACINFO_GNU_define_opcode, so the Tom implementation here is probably wrong. Jakub Well, I think you've skipped it correctly and furthermore even patched Jakub GCC doesn't emit it. The point of it was to

Re: [RFC] More compact (100x) -g3 .debug_macinfo (take 2)

2011-07-15 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Jakub The patch below implements that slight change, in particular the Jakub 4 suffixes from the op names were dropped, Jakub DW_MACINFO_GNU_*_indirect have DW_FORM_udata and DW_FORM_strp Jakub arguments now (i.e. DWARF_OFFSET_SIZE large) and Jakub

Re: [libcpp PATCH] Use source_location where it is due

2011-07-15 Thread Tom Tromey
Dodji == Dodji Seketeli do...@redhat.com writes: Dodji libcpp/ Dodji * directives.c (struct if_stack): Use source_location as type Dodji here. Dodji * include/cpplib.h (struct cpp_callbacks)include, define, undef, Dodji indent, def_pragma, used_define, used_undef: Properly use Dodji

Re: [RFC] More compact (100x) -g3 .debug_macinfo (take 2)

2011-07-15 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: The .debug_macinfo section doesn't have any header describing its contents. How would a consumer know which offset size to use? Jakub The same way as it knows how to interpret the second operands of Jakub DW_MACINFO_start_file. Ok, duh. I

Re: [RFC] More compact (100x) -g3 .debug_macinfo

2011-07-13 Thread Tom Tromey
bigger than it is because I moved a bunch of code into a new function. I don't think I really understood DW_MACINFO_GNU_define_opcode, so the implementation here is probably wrong. Tom 2011-07-13 Tom Tromey tro...@redhat.com * dwarf2read.c (read_indirect_string_at_offset): New function

Re: [PATCH][1/N][C][C++][Fortran]Change POINTER_PLUS_EXPR offset type requirements

2011-07-12 Thread Tom Tromey
Richard == Richard Guenther rguent...@suse.de writes: Richardjava/ Richard* builtins.c (static): Use fold_build_pointer_plus. Richard* class.c (make_class_data): Likewise. Richard(build_symbol_entry): Likewise. Richard* except.c

Re: Updated: RFA: partially hookize POINTER_SIZE

2011-06-28 Thread Tom Tromey
Joern == Joern Rennecke amyl...@spamcop.net writes: Joern This is basically the same patch as posted before in Joern http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02772.html and updated in Joern http://gcc.gnu.org/viewcvs?view=revisionrevision=168273, but with a Joern few merge conflicts in

Re: [PING] [PATCH] PR preprocessor/48532 (Wrong location in pragma involving macros)

2011-06-03 Thread Tom Tromey
Dodji == Dodji Seketeli do...@seketeli.org writes: Dodji I am pinging this patch first posted to Dodji http://gcc.gnu.org/ml/gcc-patches/2011-04/msg00697.html. Thanks, and sorry for not noticing earlier. Dodji +context of 'P'. The problem is, if we are beeing Typo, being. Ok

Re: [PATCH] c-pragma: adding a data field to pragma_handler

2011-06-02 Thread Tom Tromey
Pierre == Pierre p.vit...@laposte.net writes: Pierre I have changed this handler in order to accept a second parameter Pierre which is a void *, allowing to give extra datas to the handler. I Pierre think this data field might be of general use: we can have condition Pierre or data at register

Re: [PATCH libcpp]: S_ISREG non-zero value does not always fit in a bool

2011-06-02 Thread Tom Tromey
John == John Tytgat john.tyt...@aaug.net writes: John 2011-05-29 John Tytgat john.tyt...@aaug.net John * files.c (read_file_guts): Add test on non-zero value of S_ISREG. It seems reasonable enough to me. I am checking it in. Out of curiosity, do you know of a platform where this is an

Re: Faster streaming of enums

2011-05-26 Thread Tom Tromey
Jan == Jan Hubicka hubi...@ucw.cz writes: Some typos... Jan + /* Pack VAL into BP, be more effetive when VAL is small. Jan +Implementation is sily, we may want to do better later. */ effective and silly. Jan + /* Pack VAL into BP, be more effetive when VAL is small. Jan +

Re: [PATCH PING] unreviewed tree-slimming patches

2011-05-25 Thread Tom Tromey
Nathan == Nathan Froyd froy...@codesourcery.com writes: Nathan (C, Java, middle-end) Nathan [PATCH 18/18] make TS_BLOCK a substructure of TS_BASE Nathan http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00564.html The Java parts are ok. I think these sorts of changes should be obvious once

Re: Create common hooks structure shared between driver and cc1

2011-05-25 Thread Tom Tromey
Joseph == Joseph S Myers jos...@codesourcery.com writes: Joseph dependencies. For the latter, I looked again at Tom's reverted patch Joseph from March 2008 to use automatic dependency generation. Although Joseph there is now a fixed GNU make release (since last July), and although Joseph I'd

Re: Link more common objects consistently into host programs

2011-05-20 Thread Tom Tromey
Joseph == Joseph S Myers jos...@codesourcery.com writes: Joseph 2011-05-20 Joseph Myers jos...@codesourcery.com Joseph * Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and Joseph version.o. Joseph (JCFDUMP_OBJS): Remove errors.o, version.o and intl.o.

Re: [PATCH] Fix up typed DWARF stack support for POINTERS_EXTEND_UNSIGNED targets (PR debug/48853)

2011-05-12 Thread Tom Tromey
H.J. == H J Lu hjl.to...@gmail.com writes: H.J. On Thu, May 12, 2011 at 7:56 AM, Jakub Jelinek ja...@redhat.com wrote: On Wed, May 11, 2011 at 12:28:18PM -0700, H.J. Lu wrote: This patch restores the old behavior for Pmode. OK for trunk if there are no regressions? That is IMHO wrong,

Re: [RFC PATCH] Typed DWARF stack

2011-05-12 Thread Tom Tromey
Just for the record... Tom What my patch does now is that it generally uses a signed integer type Tom of the appropriate width for legacy DWARF values. Then, for mod, if Tom the value's type is this special type, it converts it to an Tom identically-sized unsigned type, and converts back after

Re: [RFC PATCH] Typed DWARF stack

2011-05-12 Thread Tom Tromey
Tom I have since changed this. For explicitly-typed values, I tried Tom DW_OP_shr and DW_OP_shra identically. The type encodes the desired Tom operation. Jakub pinged me on irc to say that this is not what GCC actually emits. So, I am going to change GDB to follow. That is, GDB will pick a

Re: [PATCH] split tree_type, a.k.a. tuplifying types

2011-05-10 Thread Tom Tromey
Nathan == Nathan Froyd froy...@codesourcery.com writes: Nathan gcc/java/ Nathan * java-tree.h (TYPE_ARGUMENT_SIGNATURE): Use TYPE_MINVAL. This is ok. Tom

Re: [google]: initialize language field for clone function struct

2011-05-04 Thread Tom Tromey
Joseph I don't know if Fortran, Java or Go use variable-size types at Joseph all. Java doesn't have variable-size types. AFAIK, gcj does not generate them internally for anything, either. Tom

Re: [RFC PATCH] Typed DWARF stack

2011-05-04 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Tom Should DW_OP_bra be restricted to integral types? Several other opcodes Jakub Yes. If you want to test other types, just compare them against 0 Jakub using DW_OP_ne etc. Great, thanks. Tom Currently, the comparison operators are all

Re: Toplevel cleanup: disable Java when libffi not supported

2011-04-29 Thread Tom Tromey
Joseph == Joseph S Myers jos...@codesourcery.com writes: Joseph This patch, relative to a tree with Joseph http://gcc.gnu.org/ml/gcc-patches/2011-04/msg02123.html applied, Joseph continues the cleanup of toplevel cases relating to disabling Java or Joseph Java libraries by arranging for Java to

Re: [libjava, testsuite] Link jni tests with -liconv on Tru64 UNIX

2011-04-18 Thread Tom Tromey
Rainer == Rainer Orth r...@cebitec.uni-bielefeld.de writes: Rainer 2011-04-14 Rainer Orth r...@cebitec.uni-bielefeld.de Rainer * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Rainer Add $libiconv to cxxflags for alpha*-dec-osf*. This is ok, thanks. Tom

Re: [pph] Macro Validation Correction (issue4425041)

2011-04-18 Thread Tom Tromey
Diego == Diego Novillo dnovi...@google.com writes: Unfortunately, five bits are not sufficient for the alternate use of cpp_hashnode.directive_index as a named operator index.  So, I have reverted the number of bits from five back to seven.  As a result, we now have 34 bits in small fields,

Re: [PATCH v4] Re: avoid useless if-before-free tests

2011-04-18 Thread Tom Tromey
Jim == Jim Meyering j...@meyering.net writes: Jim Since v3, I've rebased these and moved the fortran changes to precede Jim these (changing gfc_free to free introduced a few more instances Jim that this transformation deals with). As mentioned before, the Jim conditional-removing transformation

Re: [PATCH v3] Re: avoid useless if-before-free tests

2011-04-15 Thread Tom Tromey
Janne == Janne Blomqvist blomqvist.ja...@gmail.com writes: Jim Can someone add me to the gcc group?  That would help. Jim I already have ssh access to sourceware.org. Janne I'm not sure if I'm considered to be well-established Janne enough, so could someone help Jim out here, please? I added

Re: [PATCH 1/6] Linemap infrastructure for virtual locations

2011-04-14 Thread Tom Tromey
Dodji == Dodji Seketeli do...@redhat.com writes: Tom One thing to note is that there may be some code that assumes an Tom ordering of location values. If you hand out ordinary and macro Tom locations separately (which I think is what is going on), then code Tom doing this may break. [...]

Re: [pph/libcpp] Allow include callback to not read the file (issue4388057)

2011-04-13 Thread Tom Tromey
Diego == Diego Novillo dnovi...@google.com writes: Lawrence This change is not source compatible with existing code using Lawrence the callbacks (which may not be in the gcc svn).  Perhaps a new Lawrence callback is needed? Diego Well, it only changes the return value for the callback.

Re: [pph] Macro Validation (issue4379044)

2011-04-08 Thread Tom Tromey
Lawrence == Lawrence Crowl cr...@google.com writes: Diego Hm, and 5 bits are still enough for directive_index? Lawrence Yes there are enough. I added a comment at the table definition Lawrence to ensure that future changes keep it so. I suggest a static assertion of some kind. Or in lieu of

Re: [patch libjava]: Do some fixes for windows native targets

2011-04-05 Thread Tom Tromey
Kai == Kai Tietz ktiet...@googlemail.com writes: Kai this patch fixes some issues in libjava for windows targets. It Kai addresses for now only 32-bit target, but for JNICALL definition I Kai introduced already logic for 64-bit windows target too as preparation. Most of this seems ok to me.

RFA: fix PR c/48116

2011-03-16 Thread Tom Tromey
on x86-64 (compile farm). New test case included. I did not check to see whether this is a regression. Tom 2011-03-16 Tom Tromey tro...@redhat.com PR c/48116 * c-typeck.c (c_finish_return): Check warn_return_type. 2011-03-16 Tom Tromey tro...@redhat.com * gcc.dg

Re: Patch: suppress -Woverlength-strings in asm()

2011-03-14 Thread Tom Tromey
2011-02-02 Tom Tromey tro...@redhat.com * c-parser.c (c_parser_asm_string_literal): Clear warn_overlength_strings. 2011-02-02 Tom Tromey tro...@redhat.com * gcc.dg/Woverlength-strings-pedantic-c90-asm.c: New file. * gcc.dg/Woverlength-strings-pedantic-c89-asm.c: New file. * gcc.dg

Re: Patch: add systemtap-style marker to _Unwind_DebugHook

2011-03-14 Thread Tom Tromey
Roland That test would work. (That macro is not defined at all in Roland earlier versions.) Tom Here is an updated version. Tom 2011-01-14 Tom Tromey tro...@redhat.com Tom* unwind-dw2.c: Include sys/sdt.h if it exists. Tom(_Unwind_DebugHook): Use STAP_PROBE2. Tom* config.in

Re: [PATCH 07/18] generalize build_case_label to the rest of the compiler

2011-03-11 Thread Tom Tromey
Nathan == Nathan Froyd froy...@codesourcery.com writes: Nathan gcc/java/ Nathan * expr.c (expand_java_switch): Call build_case_label. Nathan (expand_java_add_case): Likewise. The java parts are ok. FWIW, I tend to think that if a core change like this one is accepted, then

Re: libiberty/cplus-dem.c, ada-demangle: plug memory leak.

2011-03-04 Thread Tom Tromey
Michael How come 'xfree' in gdb/utils.c still checks for null? I don't know, but I assume just because nobody has bothered to remove the check. I think we also still have code doing `if (x) xfree (x);', which is kind of doubly wrong :) Tom

<    1   2   3   4   5   6