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]

Re: default_elf_select_section


Alan Modra <amodra@bigpond.net.au> writes:

> This fixes the assembler complaint in pr9571 by giving
> targetm.section_type_flags the decl that it needs.  See
> default_section_type_flags_1.  No problems fould with powerpc-linux
> and powerpc64-linux bootstraps and regression tests.
>
> 	PR target/9571
> 	* varasm.c (default_elf_select_section_1): Pass decl to named_section.

Breaks libgfortran on ia64.

../../../libgfortran/generated/product_c4.c: In function '__product_c4':
../../../libgfortran/generated/product_c4.c:143: internal compiler error: in named_section, at varasm.c:451
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The decl is actually a COMPLEX_CST, i.e. not a DECL_P.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]