[Bug c/92269] New: Profiling (-p) does not work on H8

2019-10-29 Thread mti-1 at tillenius dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mti-1 at tillenius dot com Target Milestone: --- gcc/config/h8300/h8300.h seems to be missing a single '.' in the definition of FUNCTION_PROFILER macro. It should be ".LP" rather than just "LP". #define F

[Bug target/92291] New: Non-optimal code generated for H8

2019-10-30 Thread mti-1 at tillenius dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mti-1 at tillenius dot com Target Milestone: --- I am using a cross compiler for Renesas H8S. In a few places it generates really bad code. Given the following program: struct s { char a, b; char c[11]; } x[2]; void test