This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/6] Conversion of gimple types to C++ inheritance (v3)
- From: Jeff Law <law at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, David Malcolm <dmalcolm at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, Bernd Schmidt <bernds at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Andrew MacLeod <amacleod at redhat dot com>
- Date: Wed, 06 Nov 2013 13:29:26 -0700
- Subject: Re: [PATCH 0/6] Conversion of gimple types to C++ inheritance (v3)
- Authentication-results: sourceware.org; auth=none
- References: <5271CBF9 dot 2070005 at redhat dot com> <1383236801-13234-1-git-send-email-dmalcolm at redhat dot com> <527960A8 dot 7030107 at redhat dot com> <CAFiYyc2okBUaSpm61XkeNv04ps4oofRcqu5G0yFmYhAs6FYzqg at mail dot gmail dot com> <527A21DB dot 301 at codesourcery dot com> <CAFiYyc0aX4a_oO_EPogK3V_4Pyp=Et+q7+jb_wgEbt5s8yfxyA at mail dot gmail dot com> <20131106114253 dot GY27813 at tucnak dot zalov dot cz> <CAFiYyc2umm7jBgD4XjTOw3q_isMHauB5KYnphy9XhyF3+WDEdw at mail dot gmail dot com> <20131106131140 dot GA27813 at tucnak dot zalov dot cz> <1383755131 dot 2963 dot 7 dot camel at surprise> <20131106164514 dot GE27813 at tucnak dot zalov dot cz> <87r4ato193 dot fsf at fleche dot redhat dot com> <527A9071 dot 6050005 at redhat dot com> <87eh6tnvuk dot fsf at fleche dot redhat dot com>
On 11/06/13 13:01, Tom Tromey wrote:
"Jeff" == Jeff Law <law@redhat.com> writes:
Jeff> ISTM that one liner belongs in GCC's .gdbinit. Until then, I'm adding
Jeff> it to my own :-)
Yeah, I think that would be reasonable.
It seems like it isn't appropriate in many cases, so we left it off by
default.
Here's the patch I installed for GCC. Thanks for the suggestion!
Jeff
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dfaf4e3..43ebbda 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-06 Jeff Law <law@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * gdbinit.in: Disable strict type checking.
+
2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
* tree-pass.h (make_pass_live_range_shrinkage): New external.
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 503ef24..c60cab1 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -205,6 +205,11 @@ set complaints 0
b exit
b abort
+# Disable strict type checking. This allows developers to (for example)
+# make inferior calls without casting absolute address to a suitable
+# pointer type.
+set check type off
+
# Skip all inline functions in tree.h.
# These are used in accessor macros.
# Note that this is added at the end because older gdb versions