This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Please find attached, a fix for PR 39383 in the case of generic ELF systems and a test-case for inclusion in the test-suite.
Per Comment #6 in the PR, the .size assembler directive emitted ought to contain the "true" size of the object (when the object is of type struct containing a flexible array - using the size of the type is going to be off). The fix involves changing the definition of the ASM_DECLARE_OBJECT_NAME macro to use the size of the variable's initializer instead of the type of the variable.
The fixed GCC was bootstrapped and tested on a PowerBook G4 (7447A altivec supported), running Linux 2.6.27.5-117.fc10.ppc (compared post-fix relative to pre-fix for each of: gcc, g++, libgomp, libmudflap, objc, gfortran, libffi, libjava, libstdc++ - there were no regressions - please let me know in case you wish to see the summaries/logs) in native configuration: powerpc-unknown-linux-gnu
This is my zeroeth attempt to contribute to GCC; any advice (especially, if the ASM_FINISH_DECLARE_OBJECT macro needs the same change as well) is gratefully received.
Sincerely, Anmol P. Paralkar
Attachment:
ChangeLog
Description: Text document
Attachment:
ChangeLog.testsuite
Description: Text document
Attachment:
39383.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |