is this bug merge with 4.9

Asked by Jonathan Dumaresq

Hi,

I would like to know if this bug have been incorporated in the la version of 4.9 ?

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67226

regards

Jonathan

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Jonathan Dumaresq
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Jonathan,

The last 4.9 version of the ARM embedded toolchain does not include that fix. That version was released before the fix was ready in FSF GCC. All of our GCC 5 based ARM embedded toolchain releases have that fix though, so we encourage you to migrate to the 5 series.

Best regards.

Revision history for this message
Jonathan Dumaresq (jdumaresq) said :
#2

Hi,

Is there a warning that we can activate to check to no code is using strct passed by value ?

regards

Jonathan

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#3

I am not aware of such a warning. The closest I could find is -Waggregate-return.

Best regards.

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) said :
#4

Hi Jonathan,

You can look through https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

But all I could find was:
-Waggregate-return
    Warn if any functions that return structures or unions are defined or called. (In languages where you can return an array, this also elicits a warning.)

So this will tell you if a function returns a struct (which is passed by value). For passing structs by value as arguments, I wasn't able to find any warning.

Note I didnt check whether this warning was present in gcc 5.

Cheers,
Andre

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) said :
#5

Oops, seems Thomas was faster ;)

Revision history for this message
Jonathan Dumaresq (jdumaresq) said :
#6

Thank-you for your information.

This is exactly what I find.

regards