diff options
| author | kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-20 12:28:29 +0000 |
|---|---|---|
| committer | kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-20 12:28:29 +0000 |
| commit | 258938cacda8ec25c8d21613dff04d3d578ae401 (patch) | |
| tree | f406e13e4b3d404db41eb93a87204b93ed9fd335 | |
| parent | 80599ef5404134ca4dce802d69a8ae94bb27af14 (diff) | |
| download | ppe42-gcc-258938cacda8ec25c8d21613dff04d3d578ae401.tar.gz ppe42-gcc-258938cacda8ec25c8d21613dff04d3d578ae401.zip | |
* dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
* dwarf2out.c (gen_subprogram_die): Ignore bound args.
(gen_type_die_with_usage): Skip pointer bounds.
(dwarf2out_global_decl): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205109 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/dbxout.c | 4 | ||||
| -rw-r--r-- | gcc/dwarf2out.c | 8 |
3 files changed, 17 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 039274ab38e..94afbfc93f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com> + + * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE. + * dwarf2out.c (gen_subprogram_die): Ignore bound args. + (gen_type_die_with_usage): Skip pointer bounds. + (dwarf2out_global_decl): Likewise. + 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com> * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes diff --git a/gcc/dbxout.c b/gcc/dbxout.c index ad1533e601d..bc6a3af0f96 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2367,6 +2367,10 @@ dbxout_type (tree type, int full) dbxout_type (TREE_TYPE (type), 0); break; + case POINTER_BOUNDS_TYPE: + /* No debug info for pointer bounds type supported yet. */ + break; + default: gcc_unreachable (); } diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8186b528872..23cd72666c1 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -18288,7 +18288,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) gen_formal_parameter_pack_die (generic_decl_parm, parm, subr_die, &parm); - else if (parm) + else if (parm && !POINTER_BOUNDS_P (parm)) { dw_die_ref parm_die = gen_decl_die (parm, NULL, subr_die); @@ -18300,6 +18300,8 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) parm = DECL_CHAIN (parm); } + else if (parm) + parm = DECL_CHAIN (parm); if (generic_decl_parm) generic_decl_parm = DECL_CHAIN (generic_decl_parm); @@ -19798,6 +19800,7 @@ gen_type_die_with_usage (tree type, dw_die_ref context_die, case FIXED_POINT_TYPE: case COMPLEX_TYPE: case BOOLEAN_TYPE: + case POINTER_BOUNDS_TYPE: /* No DIEs needed for fundamental types. */ break; @@ -20445,7 +20448,8 @@ dwarf2out_global_decl (tree decl) declarations, file-scope (extern) function declarations (which had no corresponding body) and file-scope tagged type declarations and definitions which have not yet been forced out. */ - if (TREE_CODE (decl) != FUNCTION_DECL || !DECL_INITIAL (decl)) + if ((TREE_CODE (decl) != FUNCTION_DECL || !DECL_INITIAL (decl)) + && !POINTER_BOUNDS_P (decl)) dwarf2out_decl (decl); } |

