File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -723,15 +723,12 @@ void c_typecheck_baset::typecheck_declaration(
723723 {
724724 // section name is not empty, do a bit of parsing
725725 std::string asm_name = id2string (full_spec.section );
726- if (asm_name[0 ] ! = ' .' )
726+ if (asm_name[0 ] = = ' .' )
727727 {
728- warning (). source_location = symbol. location ;
729- warning () << " section name ` " << asm_name
730- << " ' expected to start with `.' " << eom ;
728+ std::string::size_type primary_section = asm_name. find ( ' . ' , 1 ) ;
729+ if (primary_section != std::string::npos)
730+ asm_name. resize (primary_section) ;
731731 }
732- std::string::size_type primary_section = asm_name.find (' .' , 1 );
733- if (primary_section != std::string::npos)
734- asm_name.resize (primary_section);
735732 asm_name += " $$" ;
736733 if (!full_spec.asm_label .empty ())
737734 asm_name+=id2string (full_spec.asm_label );
You can’t perform that action at this time.
0 commit comments