The previous patch wasn't quite right, apparently. Somehow the behaviour
changed after another clean build? This tweak fixes it.
This patch should be squashed with
fdcb23540a2 to go to mainline.
gcc/ChangeLog:
* dwarf2out.c (gen_subprogram_die): Check offload attributes only.
will ignore the function and everything nested within unless
we give it a notional code range (the values aren't
important, as long as they are valid). */
- if (flag_generate_offload
- && lookup_attribute ("omp target entrypoint",
- DECL_ATTRIBUTES (decl))
+ if (lookup_attribute ("omp target entrypoint",
+ DECL_ATTRIBUTES (decl))
&& subr_die->die_parent
&& subr_die->die_parent->die_tag == DW_TAG_subprogram
&& !get_AT_low_pc (subr_die->die_parent))