Skip to content

Update for newer avr-gcc. (solves https://github.com/arduino/Arduino/issues/1807) #1814

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 1 commit into from
Jan 22, 2014

Conversation

HeMan
Copy link
Contributor

@HeMan HeMan commented Jan 21, 2014

  • Newer avr-gcc doesn't use -assembler-with-cpp, but
    uses -x assembler-with-cpp.

@matthijskooijman
Copy link
Collaborator

Cool!

Just for github's convenience, I'll repeat that this fixed #1807, since it seems it didn't pick up the link in the title.

Regarding the actual commit, it looks good to me. Two remarks, though:

  • The commit message is a bit backwards. Better start with what actually changed ("Compile assembly with -x assembler-with-cpp instead of -assembler-with-cpp" and then in the longer description say that this makes things work with newer avr-gcc versions. You should probably also mention that the -x version also works with older avr-gcc versions.
  • This fixes the problem on the 1.0.x branch, but not the 1.5.x branch (which will need updating hardware/arduino/avr/platform.txt instead). Perhaps you could fix that one too (best done in a separate commit).

If you want to change this pullrequest, you can just locally apply the changes (e.g., using git commit --amend to change the commit message for example) and then do a force push to the branch in your fork, github will automatically update the commits in this pullrequest then.

Thanks for working on this!

- Newer avr-gcc doesn't use -assembler-with-cpp, but
  uses -x assembler-with-cpp. This works with older compilers as well.
@HeMan
Copy link
Contributor Author

HeMan commented Jan 21, 2014

On 2014-01-21 20:47, Matthijs Kooijman wrote:

Cool!

Just for github's convenience, I'll repeat that this fixed #1807
#1807, since it seems it
didn't pick up the link in the title.

Regarding the actual commit, it looks good to me. Two remarks, though:

  • The commit message is a bit backwards. Better start with what
    actually changed ("Compile assembly with -x assembler-with-cpp
    instead of -assembler-with-cpp" and then in the longer description
    say that this makes things work with newer avr-gcc versions. You
    should probably also mention that the -x version also works with
    older avr-gcc versions.
  • This fixes the problem on the 1.0.x branch, but not the 1.5.x branch
    (which will need updating |hardware/arduino/avr/platform.txt|
    instead). Perhaps you could fix that one too (best done in a
    separate commit).

If you want to change this pullrequest, you can just locally apply the
changes (e.g., using |git commit --amend| to change the commit message
for example) and then do a force push to the branch in your fork, github
will automatically update the commits in this pullrequest then.

Thanks for working on this!

Thanks for the response! I've updated the message with your suggestions.
Will start working on 1.5 now!

Regards,
Jimmy


Reply to this email directly or view it on GitHub
#1814 (comment).

@matthijskooijman
Copy link
Collaborator

Looking good!

cmaglie added a commit that referenced this pull request Jan 22, 2014
Update for newer avr-gcc. (solves #1807)
@cmaglie cmaglie merged commit a432e26 into arduino:master Jan 22, 2014
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.

3 participants