Skip to content

Replace ASM block w/C macro for PSTR #6577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

earlephilhower
Copy link
Collaborator

GAS doesn't support the C language idiom of catenating two strings
together with quotes (i.e. "x" "y" === "xy").

Specify the section attribute fully in the section attribute, instead,
to allow this.

Fixes #6575 and probably #6574

GAS doesn't support the C language idiom of catenating two strings
together with quotes (i.e. "x" "y" === "xy").

Specify the section attribute fully in the section attribute, instead,
to allow this.

Fixes esp8266#6575 and probably esp8266#6574
@liebman
Copy link
Contributor

liebman commented Oct 1, 2019

I wonder if this could use some additional device tests.

@earlephilhower earlephilhower changed the title Replace ASM block w/C marco for PSTR Replace ASM block w/C macro for PSTR Oct 1, 2019
PR esp8266#6573 introduced a corner case where a blind String() without any
initialization was in an in invalid state because the buffer and len
would not be updated properly.  Concatenating to the empty string could
cause a failure.

Now, set the default state in ::init() to SSO (which is what happened
before when we were using String(char *s="")) and fix the crash.
@earlephilhower earlephilhower merged commit 215459f into esp8266:master Oct 1, 2019
@earlephilhower earlephilhower deleted the new-pstr-merge branch October 1, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSTR no longer supports concatenated string literals
2 participants