File tree 1 file changed +4
-7
lines changed
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(
723
723
{
724
724
// section name is not empty, do a bit of parsing
725
725
std::string asm_name = id2string (full_spec.section );
726
- if (asm_name[0 ] ! = ' .' )
726
+ if (asm_name[0 ] = = ' .' )
727
727
{
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) ;
731
731
}
732
- std::string::size_type primary_section = asm_name.find (' .' , 1 );
733
- if (primary_section != std::string::npos)
734
- asm_name.resize (primary_section);
735
732
asm_name += " $$" ;
736
733
if (!full_spec.asm_label .empty ())
737
734
asm_name+=id2string (full_spec.asm_label );
You can’t perform that action at this time.
0 commit comments